f6ed8158c47e907e9c2e4070ad22a06bddd0bfb2
[gnulib.git] / ChangeLog
1 2008-12-06  Bruno Haible  <bruno@clisp.org>
2
3         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
4         Suggested by Eric Blake.
5
6 2008-12-06  Bruno Haible  <bruno@clisp.org>
7
8         Fix a c-stack test failure on MacOS X.
9         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
10         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
11         handler for SIGBUS as well.
12         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
13         install a signal handler for SIGBUS as well.
14         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
15
16 2008-12-06  Bruno Haible  <bruno@clisp.org>
17
18         Advocacy documentation.
19         * doc/gnulib-intro.texi (Benefits): New section.
20         * doc/gnulib.texi: Update.
21
22 2008-12-06  Bruno Haible  <bruno@clisp.org>
23
24         Document the 'manywarnings' module.
25         * doc/manywarnings.texi: New file.
26         * doc/gnulib.texi: Include it.
27
28 2008-12-05  Eric Blake  <ebb9@byu.net>
29
30         tests: silence some gcc warnings
31         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
32         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
33         type mismatches.
34
35 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36             Bruno Haible  <bruno@clisp.org>
37
38         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
39
40 2008-11-29  Jim Meyering  <meyering@redhat.com>
41
42         fts: fix a thinko
43         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
44         (set_stat_type): Return S_IF*-valued "type" directly.
45         Prompted by James Youngman's spotting a related bug.
46         Confirmed by further testing through find.
47
48         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
49         * lib/fts.c (D_TYPE): Define.
50         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
51         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
52         (s_ifmt_shift_bits): New function.
53         (set_stat_type): New function.
54         (fts_build): When not calling fts_stat, call set_stat_type
55         to propagate dirent.d_type info to fts_read caller.
56         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
57         fts_statp->st_mode type information may be valid.
58
59 2008-11-28  Simon Josefsson  <simon@josefsson.org>
60
61         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
62         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
63         <sds@gnu.org>.
64
65 2008-11-20  Bruno Haible  <bruno@clisp.org>
66
67         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
68         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
69         INCLUDE_NEXT.
70         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
71         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
72         * modules/math (Makefile.am): Substitute
73         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
74         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
75
76 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
77             Bruno Haible  <bruno@clisp.org>
78
79         * lib/stdint.in.h: Define all type macros so that their expansion is
80         a single typedef'ed token. Fixes a compilation failure in Boost which
81         does "using ::int8_t;".
82
83 2008-11-18  Simon Josefsson  <simon@josefsson.org>
84
85         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
86         gl_MANYWARN_ALL_GCC.
87         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
88         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
89         * modules/manywarnings: New file.
90         * MODULES.html.sh: Mention manywarnings module.
91
92 2008-11-18  Bruno Haible  <bruno@clisp.org>
93
94         * doc/gnulib-tool.texi (Unit tests): New section.
95
96 2008-11-18  Simon Josefsson  <simon@josefsson.org>
97
98         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
99         paths like 'lib/po/foo.po'.
100
101 2008-11-17  Simon Josefsson  <simon@josefsson.org>
102
103         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
104         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
105
106 2008-11-17  Simon Josefsson  <simon@josefsson.org>
107
108         * m4/warnings.m4: Use CPPFLAGS to really check whether the
109         parameter works.
110
111 2008-11-17  Simon Josefsson  <simon@josefsson.org>
112
113         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
114
115 2008-11-17  Bruce Korb  <bkorb@gnu.org>
116
117         * modules/parse-duration-tests: New file.
118         * tests/test-parse-duration.sh: New file.
119         * tests/test-parse-duration.c: New file.
120
121         New module 'parse-duration'.
122         * lib/parse-duration.h: New file.
123         * lib/parse-duration.c: New file.
124         * modules/parse-duration: New file.
125
126 2008-11-17  Bruno Haible  <bruno@clisp.org>
127
128         * tests/test-select-out.sh: Comment out the first pipe test.
129         Reported by Simon Josefsson.
130
131 2008-11-17  Bruno Haible  <bruno@clisp.org>
132
133         * modules/getaddrinfo (Depends-on): Add servent, hostent.
134         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
135         gl_HOSTENT.
136
137 2008-11-17  Bruno Haible  <bruno@clisp.org>
138
139         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
140         -lnetwork and -lnet. Needed for Haiku and BeOS.
141
142 2008-11-16  Bruno Haible  <bruno@clisp.org>
143
144         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
145
146 2008-11-16  Bruno Haible  <bruno@clisp.org>
147
148         Avoid test failure on Haiku.
149         * tests/test-fsync.c: Include <errno.h>.
150         (main): Don't require that fsync (0) fails.
151
152 2008-11-15  Bruno Haible  <bruno@clisp.org>
153
154         New module 'hostent'.
155         * modules/hostent: New file.
156         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
157
158 2008-11-15  Bruno Haible  <bruno@clisp.org>
159
160         New module 'servent'.
161         * modules/servent: New file.
162         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
163
164 2008-11-15  Bruno Haible  <bruno@clisp.org>
165
166         Avoid generating same test program with two different rules.
167         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
168         test-frexp to test-frexp-nolibm.
169         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
170         test-frexpl to test-frexpl-nolibm.
171
172 2008-11-15  Bruno Haible  <bruno@clisp.org>
173
174         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
175         $(FREXPL_LIBM).
176
177 2008-11-15  Bruno Haible  <bruno@clisp.org>
178
179         * lib/netdb.in.h: Activate the definitions also when the system's
180         <netdb.h> has 'struct addrinfo'.
181         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
182         EAI_OVERFLOW or AI_NUMERICSERV.
183         * doc/posix-headers/netdb.texi: Document the problem.
184
185 2008-11-15  Bruno Haible  <bruno@clisp.org>
186
187         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
188
189         Make the 'sched' module work on platforms where <sched.h> exists but
190         is incomplete (such as Haiku).
191         * lib/sched.in.h; Include the system's <sched.h> if it exists.
192         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
193         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
194         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
195         HAVE_STRUCT_SCHED_PARAM.
196         * modules/sched (Depends-on): Add include_next.
197         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
198         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
199         * doc/posix-headers/sched.texi: Document the issue.
200
201 2008-11-13  Jim Meyering  <meyering@redhat.com>
202
203         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
204         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
205         test would fail due to the difference in the Report bugs to ...
206         line.  The expected address is empty, "<>", while the actual
207         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
208
209 2008-11-12  Bruno Haible  <bruno@clisp.org>
210
211         lstat: don't compile lstat.c on systems lacking lstat
212         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
213         which don't have lstat; this is handled by lib/sys_stat.in.h already.
214         Reported by Daniel P. Berrange via Jim Meyering.
215
216 2008-11-12  Jim Meyering  <meyering@redhat.com>
217
218         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
219
220 2008-11-12  Simon Josefsson  <simon@josefsson.org>
221
222         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
223         instead.
224
225 2008-11-12  Bruno Haible  <bruno@clisp.org>
226
227         * lib/unicodeio.c: Include unistr.h.
228         (utf8_wctomb): Remove function.
229         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
230
231 2008-11-12  Simon Josefsson  <simon@josefsson.org>
232
233         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
234         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
235         <bruno@clisp.org>.
236         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
237
238 2008-11-12  Simon Josefsson  <simon@josefsson.org>
239
240         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
241         * doc/gnulib.texi: Add section for warnings.
242
243 2008-11-11  Bruno Haible  <bruno@clisp.org>
244
245         * lib/sockets.h: Add a comment.
246
247 2008-11-11  Karl Berry  <karl@gnu.org>
248
249         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
250
251 2008-11-11  Eric Blake  <ebb9@byu.net>
252
253         fdl.texi: avoid git symlinks
254         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
255
256 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
257
258         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
259
260 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
261
262         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
263         (gl_WARN_ADD): Substitute $2 if literal.
264
265 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
266
267         * m4/warning.m4: Remove.
268
269 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
270
271         * m4/warnings.m4: Almost complete rewrite. :-)
272
273 2008-11-10  Simon Josefsson  <simon@josefsson.org>
274
275         * modules/warnings: New module.
276         * m4/warnings.m4: New file.
277         * MODULES.html.sh: Mention warnings module.
278         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
279         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
280
281 2008-11-10  Eric Blake  <ebb9@byu.net>
282
283         fdl.texi: make a symlink to the latest version
284         * doc/standards.texi: Revert today's earlier change.
285         * doc/fdl-1.2.texi: Rename from old fdl.texi...
286         * doc/fdl.texi: ...and replace this with a symlink to the newer
287         fdl-1.3.texi.
288
289 2008-11-10  Bruno Haible  <bruno@clisp.org>
290
291         * tests/test-select-fd.c (main): Accept the result file name as fourth
292         argument.
293         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
294         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
295
296 2008-11-10  Bruno Haible  <bruno@clisp.org>
297
298         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
299         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
300         as autoconf-substituted macros.
301         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
302         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
303         gl_NETDB_H_DEFAULTS. Set these variables.
304         * modules/netdb (Makefile.am): Substitute these variables.
305
306 2008-11-10  Eric Blake  <ebb9@byu.net>
307
308         standards.texi: include correct file for FDL 1.3
309         * doc/standards.texi (GNU Free Documentation License): Change
310         include file to pull in FDL 1.3, not 1.2.
311
312         fdl.texi: revert accidental change to license
313         * doc/fdl.texi: This is FDL 1.2, not 1.3.
314
315 2008-11-10  Bruno Haible  <bruno@clisp.org>
316
317         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
318         cross-compiling guesses also when the native compile gives no result.
319
320 2008-11-10  Bruno Haible  <bruno@clisp.org>
321
322         * lib/spawni.c (__spawni): Force variable into the stack.
323
324 2008-11-10  Bruno Haible  <bruno@clisp.org>
325
326         Add support for Haiku.
327         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
328         glibc and BeOS, but also on Haiku.
329         * lib/fpurge.c (fpurge): Likewise.
330         * lib/freadable.c (freadable): Likewise.
331         * lib/freadahead.c (freadahead): Likewise.
332         * lib/freading.c (freading): Likewise.
333         * lib/freadptr.c (freadptr): Likewise.
334         * lib/freadseek.c (freadptrinc): Likewise.
335         * lib/fseeko.c (rpl_fseeko): Likewise.
336         * lib/fseterr.c (fseterr): Likewise.
337         * lib/fwritable.c (fwritable): Likewise.
338         * lib/fwriting.c (fwriting): Likewise.
339         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
340
341 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
342
343         * lib/config.charset: Treat Haiku like BeOS.
344
345 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
346
347         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
348         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
349
350 2008-11-08  Bruno Haible  <bruno@clisp.org>
351
352         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
353         AC_CACHE_CHECK.
354
355 2008-11-08  Bruno Haible  <bruno@clisp.org>
356
357         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
358
359 2008-11-08  Bruno Haible  <bruno@clisp.org>
360
361         * tests/test-select-fd.c: New file.
362         * tests/test-select-in.sh: New file.
363         * tests/test-select-out.sh: New file.
364         * tests/test-select-stdin.c: New file.
365         * modules/select-tests (Files): Add the new files.
366         (Depends-on): Add gettimeofday.
367         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
368         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
369         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
370
371 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
372             Bruno Haible  <bruno@clisp.org>
373
374         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
375
376 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
377
378         * build-aux/pmccabe2html: Added support for C++ source files.
379
380 2008-11-05  Ben Pfaff  <blp@gnu.org>
381
382         Fix lib/close.c build on Windows.
383         * modules/close (Files): Add lib/w32sock.h.
384
385 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
386
387         Accept Bison's NEWS format.
388         * build-aux/announce-gen (print_news_deltas): Tweak
389         $re_prefix.
390
391 2008-11-04  Bruno Haible  <bruno@clisp.org>
392
393         * modules/random_r (Maintainer): Add glibc.
394
395 2008-11-04  Simon Josefsson  <simon@josefsson.org>
396
397         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
398         by karl@freefriends.org (Karl Berry).
399         * doc/alloca.texi: Likewise.
400         * doc/c-ctype.texi: Likewise.
401         * doc/c-strcase.texi: Likewise.
402         * doc/c-strcaseeq.texi: Likewise.
403         * doc/c-strcasestr.texi: Likewise.
404         * doc/c-strstr.texi: Likewise.
405         * doc/c-strtod.texi: Likewise.
406         * doc/c-strtold.texi: Likewise.
407         * doc/ctime.texi: Likewise.
408         * doc/error.texi: Likewise.
409         * doc/fdl.texi: Likewise.
410         * doc/gcd.texi: Likewise.
411         * doc/getdate.texi: Likewise.
412         * doc/gnulib-intro.texi: Likewise.
413         * doc/gnulib-tool.texi: Likewise.
414         * doc/gnulib.texi: Likewise.
415         * doc/inet_ntoa.texi: Likewise.
416         * doc/maintain.texi: Likewise.
417         * doc/make-stds.texi: Likewise.
418         * doc/quote.texi: Likewise.
419         * doc/regexprops-generic.texi: Likewise.
420         * doc/standards.texi: Likewise.
421         * doc/verify.texi: Likewise.
422         * doc/visibility.texi: Likewise.
423         * doc/gnulib.texi (GNU Free Documentation License): Include
424         fdl-1.3.texi instead of fdl.texi.
425
426 2008-11-04  Simon Josefsson  <simon@josefsson.org>
427
428         * doc/fdl-1.3.texi: New file, from
429         <http://www.gnu.org/licenses/fdl-1.3.texi>.
430         * modules/fdl-1.3: Add.
431         * MODULES.html.sh: Add fdl-1.3.
432
433 2008-11-03  Bruno Haible  <bruno@clisp.org>
434
435         Make determination of absolute name of header file work with AIX xlc.
436         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
437         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
438         preprocessing.
439         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
440         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
441
442 2008-11-03  Simon Josefsson  <simon@josefsson.org>
443
444         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
445         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
446         <ludo@gnu.org>.
447
448 2008-11-02  Bruno Haible  <bruno@clisp.org>
449
450         Mark 'strpbrk' obsolete.
451         * modules/strpbrk (Status, Notice): New sections.
452         * modules/strtok_r (Depends-on): Add strpbrk.
453
454 2008-11-02  Bruno Haible  <bruno@clisp.org>
455
456         Mark 'strdup' obsolete.
457         * modules/strdup (Status, Notice): New sections.
458         * modules/findprog (Depends-on): Add strdup.
459         * modules/getaddrinfo (Depends-on): Likewise.
460         * modules/localename (Depends-on): Likewise.
461         * modules/relocatable-lib (Depends-on): Likewise.
462         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
463         * modules/relocatable-prog (Depends-on): Likewise.
464         * modules/trim (Depends-on): Likewise.
465         * modules/unictype/gen-ctype (Depends-on): Likewise.
466         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
467
468 2008-11-02  Bruno Haible  <bruno@clisp.org>
469
470         Mark 'strcspn' obsolete.
471         * modules/strcspn (Status, Notice): New sections.
472
473 2008-11-02  Bruno Haible  <bruno@clisp.org>
474
475         Mark 'rmdir' obsolete.
476         * modules/rmdir (Status, Notice): New sections.
477         * modules/clean-temp (Depends-on): Add rmdir.
478         * modules/openat (Depends-on): Likewise.
479
480 2008-11-02  Bruno Haible  <bruno@clisp.org>
481
482         Mark 'raise' obsolete.
483         * modules/raise (Status, Notice): New sections.
484         (Include): Specify <signal.h>.
485         * modules/stdio (Depends-on): Add raise.
486         * modules/write (Depends-on): Likewise.
487
488 2008-11-02  Bruno Haible  <bruno@clisp.org>
489
490         Mark 'memset' obsolete.
491         * modules/memset (Status, Notice): New sections.
492
493 2008-11-02  Bruno Haible  <bruno@clisp.org>
494
495         Mark 'memmove' obsolete.
496         * modules/memmove (Status, Notice): New sections.
497         * modules/argp (Depends-on): Add memmove.
498         * modules/argz (Depends-on): Likewise.
499         * modules/canonicalize (Depends-on): Likewise.
500         * modules/canonicalize-lgpl (Depends-on): Likewise.
501         * modules/fts (Depends-on): Likewise.
502         * modules/getcwd (Depends-on): Likewise.
503         * modules/human (Depends-on): Likewise.
504         * modules/regex (Depends-on): Likewise.
505         * modules/striconveh (Depends-on): Likewise.
506         * modules/trim (Depends-on): Likewise.
507         * modules/unistr/u8-move (Depends-on): Likewise.
508         * modules/unistr/u16-move (Depends-on): Likewise.
509         * modules/unistr/u32-move (Depends-on): Likewise.
510
511 2008-11-02  Bruno Haible  <bruno@clisp.org>
512
513         Mark 'memcpy' obsolete.
514         * modules/memcpy (Status, Notice): New sections.
515
516 2008-11-02  Bruno Haible  <bruno@clisp.org>
517
518         Mark 'memcmp' obsolete.
519         * modules/memcmp (Status, Notice): New sections.
520         * modules/argmatch (Depends-on): Add memchr.
521         * modules/backupfile (Depends-on): Likewise.
522         * modules/c-strcasestr (Depends-on): Likewise.
523         * modules/crypto/des (Depends-on): Likewise.
524         * modules/csharpcomp (Depends-on): Likewise.
525         * modules/fnmatch (Depends-on): Likewise.
526         * modules/git-merge-changelog (Depends-on): Likewise.
527         * modules/isnand (Depends-on): Likewise.
528         * modules/isnand-nolibm (Depends-on): Likewise.
529         * modules/isnanf (Depends-on): Likewise.
530         * modules/isnanf-nolibm (Depends-on): Likewise.
531         * modules/isnanl (Depends-on): Likewise.
532         * modules/isnanl-nolibm (Depends-on): Likewise.
533         * modules/mbchar (Depends-on): Likewise.
534         * modules/memcoll (Depends-on): Likewise.
535         * modules/quotearg (Depends-on): Likewise.
536         * modules/regex (Depends-on): Likewise.
537         * modules/relocatable-prog (Depends-on): Likewise.
538         * modules/same (Depends-on): Likewise.
539         * modules/signbit (Depends-on): Likewise.
540         * modules/strcasestr-simple (Depends-on): Likewise.
541         * modules/unictype/gen-ctype (Depends-on): Likewise.
542         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
543         * modules/uniname/uniname (Depends-on): Likewise.
544         * modules/unistr/u8-cmp (Depends-on): Likewise.
545
546 2008-11-02  Bruno Haible  <bruno@clisp.org>
547
548         Mark 'memchr' obsolete.
549         * modules/memchr (Status, Notice): New sections.
550         * modules/argp (Depends-on): Add memchr.
551         * modules/base64 (Depends-on): Likewise.
552         * modules/c-strcasestr (Depends-on): Likewise.
553         * modules/chdir-long (Depends-on): Likewise.
554         * modules/fnmatch (Depends-on): Likewise.
555         * modules/getsubopt (Depends-on): Likewise.
556         * modules/git-merge-changelog (Depends-on): Likewise.
557         * modules/glob (Depends-on): Likewise.
558         * modules/strcasestr-simple (Depends-on): Likewise.
559         * modules/strnlen (Depends-on): Likewise.
560
561 2008-11-02  Bruno Haible  <bruno@clisp.org>
562
563         Mark 'atexit' obsolete.
564         * modules/atexit (Status, Notice): New sections.
565         * modules/chdir-long (Depends-on): Add atexit.
566         * modules/wait-process (Depends-on): Likewise.
567
568 2008-11-02  Bruno Haible  <bruno@clisp.org>
569
570         * gnulib-tool: New option --with-obsolete.
571         (func_usage): Document it.
572         (func_modules_transitive_closure): Drop obsolete dependencies if
573         incobsolete is not true.
574         (func_import): Read and save the incobsolete variable to the cache.
575
576 2008-11-02  Bruno Haible  <bruno@clisp.org>
577
578         * modules/TEMPLATE-EXTENDED: New field 'Status'.
579         * gnulib-tool: New option --extract-status.
580         (func_usage): Document it.
581         (sed_extract_prog): Recognize it.
582         (func_get_status): New function.
583
584 2008-10-30  Simon Josefsson  <simon@josefsson.org>
585
586         * modules/sockets (License): Change from LGPL to LGPLv2+.
587
588 2008-10-28  Simon Josefsson  <simon@josefsson.org>
589
590         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
591
592 2008-10-28  Simon Josefsson  <simon@josefsson.org>
593
594         * MODULES.html.sh (Support for systems lacking POSIX:2001):
595         Mention times and sys_times.
596         * modules/sys_times, modules/sys_times-tests: New modules.
597         * modules/times, modules/times-tests: Likewise
598         * m4/sys_times_h.m4: New file.
599         * lib/sys_times.in.h: Likewise
600         * lib/times.c: Likewise.
601         * tests/test-sys_times.c: Likewise.
602         * tests/test-times.c: Likewise.
603         * doc/posix-headers/sys_times.texi: Update.
604         * doc/posix-functions/times.texi: Update.
605
606 2008-10-28  Jim Meyering  <meyering@redhat.com>
607
608         * modules/tempname (Depends-on): Add lstat.
609
610         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
611
612 2008-10-28  Simon Josefsson  <simon@josefsson.org>
613
614         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
615         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
616         using idiom used elsewhere in gnulib.
617
618 2008-10-27  Jim Meyering  <meyering@redhat.com>
619
620         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
621
622 2008-10-27  Simon Josefsson  <simon@josefsson.org>
623
624         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
625         TESTS_ENVIRONMENT, for shell scripts that needs to call built
626         programs.
627         * tests/test-argp-2.sh: Use $EXEEXT when needed.
628
629 2008-10-27  Simon Josefsson  <simon@josefsson.org>
630
631         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
632
633 2008-10-27  Bruno Haible  <bruno@clisp.org>
634
635         * tests/test-lstat.c: Include <stdio.h>.
636
637 2008-10-27  Simon Josefsson  <simon@josefsson.org>
638
639         * modules/lstat-tests: New module.
640         * tests/test-lstat.c: New file.
641
642 2008-10-26  Jim Meyering  <meyering@redhat.com>
643
644         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
645
646 2008-10-26  Simon Josefsson  <simon@josefsson.org>
647             Bruno Haible  <bruno@clisp.org>
648
649         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
650         * modules/configmake (Include): Add a note that the include must come
651         after all system headers.
652         * lib/javaversion.c: Include configmake.h after all other includes.
653
654 2008-10-26  Bruno Haible  <bruno@clisp.org>
655
656         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
657         HAVE_STRUCT_RANDOM_DATA to 1.
658         (gl_STDLIB_H): Simplify.
659
660 2008-10-26  Simon Josefsson  <simon@josefsson.org>
661
662         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
663         substitute HAVE_STRUCT_RANDOM_DATA.
664         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
665         random_data.
666         * modules/stdlib (Makefile.am): Substitute
667         HAVE_STRUCT_RANDOM_DATA.
668
669 2008-10-26  Simon Josefsson  <simon@josefsson.org>
670
671         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
672         * doc/gnulib-intro.texi (Copyright): Likewise.
673
674 2008-10-26  Simon Josefsson  <simon@josefsson.org>
675
676         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
677         findings.
678
679 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
680             Bruno Haible  <bruno@clisp.org>
681
682         * lib/unistd.in.h: Include <winsock2.h>.
683         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
684         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
685         Provide dummy declarations.
686         (gethostname): Override.
687         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
688         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
689         gl_PREREQ_SYS_H_WINSOCK2.
690         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
691         * doc/posix-functions/gethostname.texi: More details.
692
693 2008-10-25  Bruno Haible  <bruno@clisp.org>
694
695         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
696         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
697         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
698
699         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
700         here ...
701         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
702         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
703         gl_UNISTD_H_DEFAULTS.
704
705 2008-10-25  Eric Blake  <ebb9@byu.net>
706
707         signbit: avoid spurious compiler failure
708         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
709         declarations inside function.
710
711 2008-10-24  Simon Josefsson  <simon@josefsson.org>
712             Bruno Haible  <bruno@clisp.org>
713
714         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
715         * modules/random_r (Depends-on): Add stdint.
716
717 2008-10-24  Bruno Haible  <bruno@clisp.org>
718
719         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
720         Eggert.
721         * modules/strerror (License): Likewise.
722
723 2008-10-24  Jim Meyering  <meyering@redhat.com>
724
725         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
726         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
727
728 2008-10-24  Eric Blake  <ebb9@byu.net>
729
730         getgroups: fix compilation when getgroups is available
731         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
732         but with <config.h> override of getgroups disabled.
733
734 2008-10-24  Simon Josefsson  <simon@josefsson.org>
735
736         * doc/gnulib.texi (Header files): Add note about C++ problems.
737         Explained by Bruno Haible <bruno@clisp.org>.
738
739 2008-10-23  Bruno Haible  <bruno@clisp.org>
740
741         Define a dummy SA_NODEFER macro on Interix.
742         * lib/signal.in.h (SA_NODEFER): Define fallback.
743         Reported by Aleksey Cheusov <cheusov@tut.by> via
744         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
745
746 2008-10-23  Bruno Haible  <bruno@clisp.org>
747
748         * modules/freadahead (License): Change to LGPLv2+.
749         Suggested by Simon Josefsson.
750
751 2008-10-23  Jim Meyering  <meyering@redhat.com>
752
753         random_r: new module
754         * modules/random_r: New file.
755         * m4/random_r.m4: New file.
756         * lib/random_r.c: New file, from glibc.
757         * modules/random_r-tests: New file.
758         * tests/test-random_r.c: New file.
759         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
760          Declare.
761         (RAND_MAX): Define.
762         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
763         * modules/stdlib: Substitute them, too.
764         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
765         * doc/glibc-functions/initstate_r.texi: Mention the new module.
766         * doc/glibc-functions/random_r.texi: Likewise.
767         * doc/glibc-functions/setstate_r.texi: Likewise.
768         * doc/glibc-functions/srandom_r.texi: Likewise.
769         * config/srclist.txt: Mention it.
770
771 2008-10-23  David Lutterkort  <lutter@redhat.com>
772
773         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
774         link requirement
775
776 2008-10-23  Jim Meyering  <meyering@redhat.com>
777
778         selinux-h: mark parameters of stub functions as intentionally unused
779         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
780         * lib/se-context.in.h: Likewise.
781
782 2008-10-22  Simon Josefsson  <simon@josefsson.org>
783
784         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
785
786 2008-10-22  Simon Josefsson  <simon@josefsson.org>
787
788         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
789
790 2008-10-22  Eric Blake  <ebb9@byu.net>
791
792         glthread/thread: avoid compiler warning
793         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
794         Add unreachable abort to silence compiler.
795
796 2008-10-22  Eric Blake  <ebb9@byu.net>
797
798         netdb: also supply struct addrinfo for cygwin 1.5.x
799         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
800         older cygwin.
801         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
802         cygwin.
803         * doc/posix-headers/netdb.texi (netdb.h): Document this.
804
805 2008-10-22  Bruno Haible  <bruno@clisp.org>
806
807         * users.txt: Update entry about pspp.
808
809 2008-10-21  Bruno Haible  <bruno@clisp.org>
810
811         Simplification.
812         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
813         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
814
815         Simplification.
816         * lib/ioctl.c (ioctl): Don't undefine.
817         * lib/socket.c (socket): Don't undefine.
818
819         Remove unused module indicator macros.
820         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
821         GNULIB_$1 as a C macro.
822
823         * doc/posix-functions/close.texi: Undo last change.
824         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
825         Windows platforms.
826
827 2008-10-21  Bruno Haible  <bruno@clisp.org>
828
829         Add gethostname() declaration to <unistd.h>.
830         * lib/unistd.in.h (gethostname): New declaration.
831         * lib/gethostname.c: Include <unistd.h>.
832         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
833         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
834         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
835         and HAVE_GETHOSTNAME.
836         * modules/gethostname (Depends-on): Add unistd.
837         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
838         (Include): Specify <unistd.h>.
839         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
840         HAVE_GETHOSTNAME.
841         * tests/test-gethostname.c: Include <unistd.h> first.
842
843 2008-10-21  Bruno Haible  <bruno@clisp.org>
844
845         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
846         * modules/select-tests (Depends-on): Likewise.
847         Reported by Simon Josefsson.
848
849 2008-10-21  Simon Josefsson  <simon@josefsson.org>
850
851         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
852         * lib/accept.c: New file, based on winsock.c.
853         * lib/bind.c: New file, based on winsock.c.
854         * lib/connect.c: New file, based on winsock.c.
855         * lib/getpeername.c: New file, based on winsock.c.
856         * lib/getsockname.c: New file, based on winsock.c.
857         * lib/getsockopt.c: New file, based on winsock.c.
858         * lib/ioctl.c: New file, based on winsock.c.
859         * lib/listen.c: New file, based on winsock.c.
860         * lib/recv.c: New file, based on winsock.c.
861         * lib/recvfrom.c: New file, based on winsock.c.
862         * lib/send.c: New file, based on winsock.c.
863         * lib/sendto.c: New file, based on winsock.c.
864         * lib/setsockopt.c: New file, based on winsock.c.
865         * lib/shutdown.c: New file, based on winsock.c.
866         * lib/socket.c: New file, based on winsock.c.
867         * lib/w32sock.h: New file, based on winsock.c.
868         * lib/winsock.c: Remove file.
869         * modules/accept: Likewise.
870         * modules/bind: Likewise.
871         * modules/connect: Likewise.
872         * modules/getpeername: Likewise.
873         * modules/getsockname: Likewise.
874         * modules/getsockopt: Likewise.
875         * modules/ioctl: Likewise.
876         * modules/listen: Likewise.
877         * modules/recv: Likewise.
878         * modules/recvfrom: Likewise.
879         * modules/send: Likewise.
880         * modules/sendto: Likewise.
881         * modules/setsockopt: Likewise.
882         * modules/shutdown: Likewise.
883         * modules/socket: Use socket.c instead of winsock.c.
884         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
885         * doc/posix-functions/accept.texi: Doc fix.
886         * doc/posix-functions/bind.texi: Doc fix.
887         * doc/posix-functions/close.texi: Doc fix.
888         * doc/posix-functions/connect.texi: Doc fix.
889         * doc/posix-functions/getpeername.texi: Doc fix.
890         * doc/posix-functions/getsockname.texi: Doc fix.
891         * doc/posix-functions/getsockopt.texi: Doc fix.
892         * doc/posix-functions/ioctl.texi: Doc fix.
893         * doc/posix-functions/listen.texi: Doc fix.
894         * doc/posix-functions/recv.texi: Doc fix.
895         * doc/posix-functions/recvfrom.texi: Doc fix.
896         * doc/posix-functions/send.texi: Doc fix.
897         * doc/posix-functions/sendto.texi: Doc fix.
898         * doc/posix-functions/setsockopt.texi: Doc fix.
899         * doc/posix-functions/shutdown.texi: Doc fix.
900         * doc/posix-functions/socket.texi: Doc fix.
901
902 2008-10-20  Bruno Haible  <bruno@clisp.org>
903
904         Take into account the role of SIGABRT_COMPAT on Windows 2008.
905         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
906         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
907         as an alias for SIGABRT.
908         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
909         (sigaction): Map it to SIGABRT.
910         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
911
912 2008-10-20  Bruno Haible  <bruno@clisp.org>
913
914         * lib/fts.c: Don't include lstat.h.
915         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
916
917         Move the lstat() declaration to <sys/stat.h>.
918         * lib/lstat.h: Remove file.
919         * lib/sys_stat.in.h: Add special invocation convention.
920         (lstat): New declaration.
921         * lib/lstat.c (orig_lstat): New function.
922         (rpl_lstat): Use orig_lstat instead of lstat.
923         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
924         AC_C_INLINE. Set REPLACE_LSTAT.
925         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
926         and REPLACE_LSTAT.
927         * modules/lstat (Files): Remove lib/lstat.h.
928         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
929         (Include): Specify <sys/stat.h> instead of lstat.h.
930         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
931         REPLACE_LSTAT.
932         * NEWS: Mention the change.
933
934 2008-10-20  Bruno Haible  <bruno@clisp.org>
935
936         * modules/posix_spawn-tests: New file.
937         * tests/test-posix_spawn3.c: New file.
938
939 2008-10-20  Bruno Haible  <bruno@clisp.org>
940
941         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
942         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
943         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
944         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
945         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
946
947 2008-10-20  Bruno Haible  <bruno@clisp.org>
948
949         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
950         of posix_spawn on AIX 5.3.
951
952 2008-10-20  Bruno Haible  <bruno@clisp.org>
953
954         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
955
956 2008-10-20  Bruno Haible  <bruno@clisp.org>
957
958         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
959         of AC_LANG_PROGRAM.
960
961 2008-10-20  Simon Josefsson  <simon@josefsson.org>
962
963         * lib/netdb.in.h: Don't define GNU specific constants until they
964         are supported or needed.  Reported by Bruno Haible
965         <bruno@clisp.org>.
966
967 2008-10-20  Simon Josefsson  <simon@josefsson.org>
968
969         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
970
971 2008-10-20  Simon Josefsson  <simon@josefsson.org>
972
973         * lib/getaddrinfo.h: Remove file.
974         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
975         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
976         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
977         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
978         * modules/netdb: Substitute GNULIB_GETADDRINFO.
979         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
980         * tests/test-getaddrinfo.c: Likewise.
981         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
982         * NEWS: Mention change.
983
984 2008-10-19  Bruno Haible  <bruno@clisp.org>
985
986         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
987
988 2008-10-19  Bruno Haible  <bruno@clisp.org>
989
990         * lib/wait-process.c: Include simply <sys/wait.h>.
991         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
992         WIFSTOPPED): Remove fallback definitions.
993         * modules/wait-process (Depends-on): Add sys_wait.
994
995         New module 'sys_wait'.
996         * modules/sys_wait: New file.
997         * lib/sys_wait.in.h: New file, partially copied from
998         lib/wait-process.c.
999         * m4/sys_wait_h.m4: New file.
1000         * doc/posix-headers/sys_wait.texi: Mention the new module.
1001
1002 2008-10-19  Bruno Haible  <bruno@clisp.org>
1003
1004         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
1005
1006 2008-10-19  Bruno Haible  <bruno@clisp.org>
1007
1008         Assume that waitpid() fills an 'int' status, not a 'union wait'.
1009         * lib/wait-process.c (WAIT_T): Remove type.
1010         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
1011         (wait_subprocess): Update.
1012
1013 2008-10-19  Bruno Haible  <bruno@clisp.org>
1014
1015         New module 'atoll'.
1016         * modules/atoll: New file.
1017         * lib/stdlib.in.h (atoll): New declaration.
1018         * lib/atoll.c: New file, from glibc with modifications.
1019         * m4/atoll.m4: New file.
1020         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
1021         HAVE_ATOLL.
1022         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
1023         * doc/posix-functions/atoll.texi: Mention the new module.
1024
1025 2008-10-19  Bruno Haible  <bruno@clisp.org>
1026
1027         Add strtoull() declaration to <stdlib.h>.
1028         * lib/stdlib.in.h (strtoull): New declaration.
1029         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
1030         Set HAVE_STRTOULL.
1031         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
1032         HAVE_STRTOULL.
1033         * modules/strtoull (Depends-on): Add stdlib.
1034         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
1035         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
1036         HAVE_STRTOULL.
1037
1038 2008-10-19  Bruno Haible  <bruno@clisp.org>
1039
1040         Add strtoll() declaration to <stdlib.h>.
1041         * lib/stdlib.in.h (strtoll): New declaration.
1042         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
1043         Set HAVE_STRTOLL.
1044         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
1045         HAVE_STRTOLL.
1046         * modules/strtoll (Depends-on): Add stdlib.
1047         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
1048         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
1049
1050 2008-10-19  Bruno Haible  <bruno@clisp.org>
1051
1052         * modules/bcopy (Depends-on): Add strings.
1053         (Include): Specify <strings.h>.
1054
1055 2008-10-19  Bruno Haible  <bruno@clisp.org>
1056
1057         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
1058
1059 2008-10-19  Bruno Haible  <bruno@clisp.org>
1060
1061         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
1062         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
1063         mingw.
1064
1065 2008-10-19  Bruno Haible  <bruno@clisp.org>
1066
1067         * lib/atanl.c: Don't include isnanl.h.
1068         * lib/cosl.c: Likewise.
1069         * lib/ldexpl.c: Likewise.
1070         * lib/logl.c: Likewise.
1071         * lib/sinl.c: Likewise.
1072         * lib/sqrtl.c: Likewise.
1073         * lib/tanl.c: Likewise.
1074
1075         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
1076         * lib/isnanf.h: Remove file.
1077         * lib/isnand.h: Remove file.
1078         * lib/isnanl.h: Remove file.
1079         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
1080         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
1081         macros.
1082         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
1083         HAVE_ISNANF, don't define it as a C macro.
1084         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
1085         HAVE_ISNAND, don't define it as a C macro.
1086         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
1087         HAVE_ISNANL, don't define it as a C macro.
1088         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
1089         HAVE_ISNAN[FDL].
1090         * modules/isnanf (Files): Remove lib/isnanf.h.
1091         (Depends-on): Add math.
1092         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
1093         (Include): Specify <math.h> instead of isnanf.h.
1094         * modules/isnand (Files): Remove lib/isnand.h.
1095         (Depends-on): Add math.
1096         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
1097         (Include): Specify <math.h> instead of isnand.h.
1098         * modules/isnanl (Files): Remove lib/isnanl.h.
1099         (Depends-on): Add math.
1100         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
1101         (Include): Specify <math.h> instead of isnanl.h.
1102         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
1103         HAVE_ISNAN[FDL].
1104         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
1105         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
1106         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
1107         * NEWS: Mention the change.
1108
1109 2008-10-18  Bruno Haible  <bruno@clisp.org>
1110
1111         Add getusershell(), setusershell(), endusershell() declarations to
1112         <unistd.h>.
1113         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
1114         declarations.
1115         * lib/getusershell.c: Include unistd.h.
1116         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
1117         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
1118         HAVE_GETUSERSHELL.
1119         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
1120         and HAVE_GETUSERSHELL.
1121         * modules/getusershell (Depends-on): Add unistd, extensions.
1122         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
1123         (Include): Specify <unistd.h>.
1124         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
1125         HAVE_GETUSERSHELL.
1126
1127 2008-10-18  Bruno Haible  <bruno@clisp.org>
1128
1129         Add a getloadavg() declaration to <stdlib.h>.
1130         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
1131         getloadavg declaration.
1132         (getloadavg): New declaration.
1133         * lib/getloadavg.c: Include <stdlib.h> first.
1134         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
1135         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
1136         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
1137         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
1138         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
1139         * modules/getloadavg (Depends-on): Add stdlib, extensions.
1140         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
1141         (Include): Specify <stdlib.h>.
1142         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
1143         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
1144
1145 2008-10-18  Bruno Haible  <bruno@clisp.org>
1146
1147         * lib/dirchownmod.c: Don't include lchmod.h.
1148
1149         Move the lchmod() declaration to <sys/stat.h>.
1150         * lib/lchmod.h: Remove file.
1151         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
1152         (lchmod): New declaration, moved here from lib/lchown.h.
1153         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
1154         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
1155         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
1156         and HAVE_LCHMOD.
1157         * modules/lchmod (Files): Remove lib/lchmod.h.
1158         (Depends-on): Add sys_stat, extensions.
1159         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
1160         (Include): Specify <sys/stat.h> instead of lchmod.h.
1161         * modules/sys_stat (Depends-on): Add link-warning.
1162         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
1163         definition of GL_LINK_WARNING.
1164         * NEWS: Mention the change.
1165
1166 2008-10-18  Bruno Haible  <bruno@clisp.org>
1167
1168         * lib/fchdir.c: Don't include dirfd.h.
1169         * lib/fts.c: Likewise.
1170         * lib/getcwd.c: Likewise.
1171         * lib/glob.c: Likewise.
1172
1173         Move the dirfd() declaration to <dirent.h>.
1174         * lib/dirfd.h: Remove file.
1175         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
1176         (dirfd): New declaration.
1177         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
1178         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
1179         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
1180         HAVE_DECL_DIRFD.
1181         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
1182         HAVE_DECL_DIRFD.
1183         * modules/dirfd (Files): Remove lib/dirfd.h.
1184         (Depends-on): Add dirent, extensions.
1185         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
1186         (Include): Specify <dirent.h> instead of dirfd.h.
1187         * modules/dirent (Depends-on): Add link-warning.
1188         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
1189         definition of GL_LINK_WARNING.
1190         * NEWS: Mention the change.
1191
1192 2008-10-18  Bruno Haible  <bruno@clisp.org>
1193
1194         Move the euidaccess() declaration to <unistd.h>.
1195         * lib/euidaccess.h: Remove file.
1196         * lib/unistd.in.h (euidaccess): New declaration.
1197         * lib/euidaccess.c: Don't include euidaccess.h.
1198         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
1199         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
1200         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
1201         and HAVE_EUIDACCESS.
1202         * modules/euidaccess (Files): Remove lib/euidaccess.h.
1203         (Depends-on): Add unistd.
1204         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
1205         (Include): Specify <unistd.h> instead of euidaccess.h.
1206         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
1207         HAVE_EUIDACCESS.
1208         * NEWS: Mention the change.
1209
1210 2008-10-18  Bruno Haible  <bruno@clisp.org>
1211
1212         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
1213
1214         Move the getdomainname() declaration to <unistd.h>.
1215         * lib/getdomainname.h: Remove file.
1216         * lib/unistd.in.h (getdomainname): New declaration.
1217         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
1218         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
1219         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
1220         HAVE_GETDOMAINNAME.
1221         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
1222         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
1223         * modules/getdomainname (Files): Remove lib/getdomainname.h.
1224         (Depends-on): Add unistd, extensions.
1225         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
1226         (Includes): Specify <unistd.h> instead of getdomainname.h.
1227         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
1228         HAVE_GETDOMAINNAME.
1229         * NEWS: Mention the change.
1230
1231 2008-10-18  Bruno Haible  <bruno@clisp.org>
1232
1233         * modules/dirent: New file.
1234         * m4/dirent_h.m4: New file.
1235         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
1236         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
1237         * modules/fchdir (Files): Remove lib/dirent.in.h.
1238         (Depends-on): Add dirent.
1239         (Makefile.am): Move rules to modules/dirent.
1240         * doc/posix-headers/dirent.texi: Mention the new module.
1241
1242 2008-10-18  Bruno Haible  <bruno@clisp.org>
1243
1244         Avoid -Wunused-parameter warnings in public gnulib header files.
1245         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
1246         macro.
1247         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
1248
1249 2008-10-18  Bruno Haible  <bruno@clisp.org>
1250
1251         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
1252         * doc/glibc-functions/error.texi: Mention the module 'error'.
1253         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
1254         * doc/glibc-functions/getdomainname.texi: Mention the module
1255         'getdomainname'.
1256         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
1257         * doc/glibc-functions/getpagesize.texi: Mention the module
1258         'getpagesize'.
1259         * doc/glibc-functions/getusershell.texi: Mention the module
1260         'getusershell'.
1261         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
1262         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
1263         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
1264         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
1265         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
1266         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
1267         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
1268         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
1269         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
1270         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
1271         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
1272         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
1273         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
1274         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
1275
1276 2008-10-17  Bruno Haible  <bruno@clisp.org>
1277
1278         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
1279         HP-UX and IRIX, use -0.0L.
1280         * tests/test-ceill.c (minus_zero): Likewise.
1281         * tests/test-floorl.c (minus_zero): Likewise.
1282         * tests/test-frexpl.c (minus_zero): Likewise.
1283         * tests/test-isnan.c (minus_zerol): Likewise.
1284         * tests/test-isnanl.h (minus_zero): Likewise.
1285         * tests/test-ldexpl.c (minus_zero): Likewise.
1286         * tests/test-roundl.c (minus_zero): Likewise.
1287         * tests/test-signbit.c (minus_zerol): Likewise.
1288         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
1289         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
1290         * tests/test-truncl.c (minus_zero): Likewise.
1291         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
1292         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
1293         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
1294         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
1295
1296 2008-10-17  Bruno Haible  <bruno@clisp.org>
1297
1298         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
1299         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
1300         that it gets activated only for gcc >= 3.0.
1301         * lib/dirent.in.h: Likewise.
1302         * lib/errno.in.h: Likewise.
1303         * lib/fcntl.in.h: Likewise.
1304         * lib/float.in.h: Likewise.
1305         * lib/iconv.in.h: Likewise.
1306         * lib/inttypes.in.h: Likewise.
1307         * lib/locale.in.h: Likewise.
1308         * lib/math.in.h: Likewise.
1309         * lib/netdb.in.h: Likewise.
1310         * lib/netinet_in.in.h: Likewise.
1311         * lib/search.in.h: Likewise.
1312         * lib/signal.in.h: Likewise.
1313         * lib/spawn.in.h: Likewise.
1314         * lib/stdarg.in.h: Likewise.
1315         * lib/stdint.in.h: Likewise.
1316         * lib/stdio.in.h: Likewise.
1317         * lib/stdlib.in.h: Likewise.
1318         * lib/string.in.h: Likewise.
1319         * lib/strings.in.h: Likewise.
1320         * lib/sys_file.in.h: Likewise.
1321         * lib/sys_ioctl.in.h: Likewise.
1322         * lib/sys_select.in.h: Likewise.
1323         * lib/sys_socket.in.h: Likewise.
1324         * lib/sys_stat.in.h: Likewise.
1325         * lib/sys_time.in.h: Likewise.
1326         * lib/sysexits.in.h: Likewise.
1327         * lib/time.in.h: Likewise.
1328         * lib/unistd.in.h: Likewise.
1329         * lib/wchar.in.h: Likewise.
1330         * lib/wctype.in.h: Likewise.
1331         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
1332
1333 2008-10-17  Jim Meyering  <meyering@redhat.com>
1334
1335         ignore-value: don't depend on inline module
1336         * modules/ignore-value (Depends-on): Remove 'inline'.
1337         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
1338         Suggestion from Bruno Haible.
1339
1340 2008-10-17  Bruno Haible  <bruno@clisp.org>
1341
1342         New implementation of condition variables for Win32.
1343         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
1344         (gl_linked_waitqueue_t): New type.
1345         (gl_cond_t): Use it.
1346         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
1347         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
1348         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
1349         (glthread_cond_init_func, glthread_cond_wait_func,
1350         glthread_cond_timedwait_func, glthread_cond_signal_func,
1351         glthread_cond_broadcast_func, glthread_cond_destroy_func):
1352         Reimplemented on the basis of gl_linked_waitqueue_t.
1353         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
1354         gl_waitqueue_t.
1355         (gl_rwlock_t): Update.
1356         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
1357
1358 2008-10-17  Simon Josefsson  <simon@josefsson.org>
1359
1360         * modules/recvfrom (Depends-on): Add dependency on getpeername.
1361         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
1362
1363 2008-10-17  Jim Meyering  <meyering@redhat.com>
1364
1365         ignore-value: new module
1366         * modules/ignore-value: New file.
1367         * lib/ignore-value.h: New file.
1368         * MODULES.html.sh (Compiler warning management): New section,
1369         just for this module.  More to come.
1370
1371 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
1372
1373         open-safer.c: avoid 'signed and unsigned in conditional...' warning
1374         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
1375         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
1376
1377 2008-10-16  Jim Meyering  <meyering@redhat.com>
1378
1379         openat-die.c: avoid 'no previous prototype' warning
1380         * lib/openat-die.c: Include "openat.h".
1381         Reported by Reuben Thomas <rrt@sc3d.org>.
1382
1383 2008-10-16  Simon Josefsson  <simon@josefsson.org>
1384
1385         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
1386         * lib/netdb.in.h: Fix typo.
1387         Reported by Bruno Haible  <bruno@clisp.org>
1388
1389         * lib/netdb.in.h: Include sys/socket.h for platforms without
1390         netdb.h, to get structures like hostent on MinGW.
1391         * modules/netdb (Depends-on): Add sys_socket.
1392
1393 2008-10-15  Simon Josefsson  <simon@josefsson.org>
1394
1395         * modules/netdb, modules/netdb-tests: New file.
1396         * m4/netdb_h.m4: New file.
1397         * lib/netdb.in.h: Add, currently just an empty file pending
1398         definitions.
1399         * tests/test-netdb.c: New file.
1400         * doc/posix-headers/netdb.texi: Mention that we replace it if
1401         needed.
1402         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
1403         netdb.
1404
1405 2008-10-15  Simon Josefsson  <simon@josefsson.org>
1406
1407         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
1408         with code.
1409
1410 2008-10-13  Bruno Haible  <bruno@clisp.org>
1411
1412         * lib/glthread/cond.c (glthread_cond_wait_func,
1413         glthread_cond_timedwait_func): Add a comment.
1414
1415 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
1416
1417         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
1418         * tests/test-select.c: Likewise,
1419
1420 2008-10-13  Bruno Haible  <bruno@clisp.org>
1421
1422         * lib/glthread/cond.c (glthread_cond_wait_func,
1423         glthread_cond_timedwait_func): Fix variable name.
1424         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
1425
1426 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
1427
1428         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
1429         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
1430         struct sockaddr.sa_len.
1431         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
1432
1433 2008-10-13  Simon Josefsson  <simon@josefsson.org>
1434
1435         * build-aux/pmccabe2html: Add css and css_url parameters.
1436
1437 2008-10-12  Bruno Haible  <bruno@clisp.org>
1438
1439         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
1440         calling aclx_get.
1441         Reported by Rainer Tammer <tammer@tammer.net>.
1442
1443 2008-10-12  Bruno Haible  <bruno@clisp.org>
1444
1445         Use msvcrt aware primitives for creation/termination of Win32 threads.
1446         * lib/glthread/thread.c: Include <process.h>.
1447         (glthread_create_func): Use _beginthreadex instead of CreateThread.
1448         (wrapper_func): Update signature.
1449         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
1450
1451 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
1452             Bruno Haible  <bruno@clisp.org>
1453
1454         Provide a Win32 implementation of the 'cond' module.
1455         * lib/glthread/cond.h [USE_WIN32]: New implementation.
1456         * lib/glthread/cond.c (glthread_cond_init_func,
1457         glthread_cond_wait_func, glthread_cond_timedwait_func,
1458         glthread_cond_signal_func, glthread_cond_broadcast_func,
1459         glthread_cond_destroy_func) [USE_WIN32]: New functions.
1460         * modules/cond (Dependencies): Add gettimeofday.
1461
1462 2008-10-11  Bruno Haible  <bruno@clisp.org>
1463
1464         Make sleep work on older versions of mingw.
1465         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
1466         only whether it exists.
1467         * doc/posix-functions/sleep.texi: Mention the problem with older
1468         versions of mingw.
1469
1470 2008-10-11  Bruno Haible  <bruno@clisp.org>
1471
1472         New module 'shutdown'.
1473         * modules/shutdown: New file.
1474         * lib/sys_socket.in.h (shutdown): New declaration.
1475         * lib/winsock.c (shutdown): New function.
1476         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
1477         GNULIB_SHUTDOWN.
1478         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
1479         * doc/posix-functions/shutdown.texi: Document the new module.
1480
1481 2008-10-11  Jim Meyering  <meyering@redhat.com>
1482
1483         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
1484
1485 2008-10-11  Bruno Haible  <bruno@clisp.org>
1486
1487         New module 'fclose'.
1488         * modules/fclose: New file.
1489         * lib/stdio.in.h (fclose): New declaration.
1490         * lib/fclose.c: New file.
1491         * m4/fclose.m4: New file.
1492         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
1493         REPLACE_FCLOSE.
1494         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
1495         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
1496         REPLACE_FCLOSE.
1497         * modules/close (Depends-on): fclose.
1498         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
1499
1500 2008-10-11  Bruno Haible  <bruno@clisp.org>
1501
1502         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
1503         set errno and don't call _close.
1504
1505 2008-10-10  Bruno Haible  <bruno@clisp.org>
1506
1507         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
1508         ACL, not afterwards. Fixes test failure on Cygwin.
1509
1510 2008-10-09  Ben Pfaff  <blp@gnu.org>
1511
1512         * build-aux/announce-gen: Fix gnulib version related part of usage
1513         message.  Die with a useful error message if no tarballs are
1514         found.
1515
1516 2008-10-10  Jim Meyering  <meyering@redhat.com>
1517
1518         bootstrap: use git's --depth=N option only if it's supported
1519         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
1520         recognize the --depth option.  Reported by Pádraig Brady.
1521
1522 2008-10-09  Bruno Haible  <bruno@clisp.org>
1523
1524         New module 'ioctl'.
1525         * modules/ioctl: New file.
1526         * lib/sys_socket.in.h (ioctl): Remove declaration.
1527         * lib/winsock.c: Include <sys/ioctl.h>.
1528         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
1529         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
1530         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
1531         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
1532         * doc/posix-functions/ioctl.texi: Mention the new module.
1533
1534 2008-10-09  Bruno Haible  <bruno@clisp.org>
1535
1536         New module 'sys_ioctl'.
1537         * lib/sys_ioctl.in.h: New file.
1538         * m4/sys_ioctl_h.m4: New file.
1539         * modules/sys_ioctl: New file.
1540         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
1541
1542 2008-10-09  Bruno Haible  <bruno@clisp.org>
1543
1544         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
1545         * lib/winsock.c: Include <stdarg.h>.
1546         (rpl_ioctl): Change to second argument 'int' and then varargs.
1547
1548 2008-10-09  Bruno Haible  <bruno@clisp.org>
1549
1550         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
1551         when the sys_socket module is present and the system has <winsock2.h>.
1552
1553 2008-10-09  Bruno Haible  <bruno@clisp.org>
1554
1555         * doc/posix-functions/close.texi: Mention module 'close' instead of
1556         module 'sys_socket'.
1557
1558 2008-10-09  Bruno Haible  <bruno@clisp.org>
1559
1560         * doc/glibc-headers/sys_ioctl.texi: New file.
1561         * doc/gnulib.texi: Include it.
1562
1563 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
1564             Bruno Haible  <bruno@clisp.org>
1565
1566         Combine the two replacements of 'close'.
1567         * lib/sys_socket.in.h (close): Define to a reminder to include
1568         <unistd.h>.
1569         (_gl_close_fd_maybe_socket): New declaration.
1570         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
1571         * lib/winsock.c (close): Remove undefinition.
1572         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
1573         needed for the gnulib module 'close'.
1574         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
1575         define to an error symbol or to a warning, if suitable.
1576         * lib/close.c: Include <sys/socket.h>.
1577         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
1578         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
1579         UNISTD_H_HAVE_WINSOCK2_H.
1580         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
1581         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
1582         UNISTD_H_HAVE_WINSOCK2_H.
1583         * modules/sys_socket (Files): Add m4/unistd_h.m4.
1584         (configure.ac): Set a module indicator.
1585         (Makefile.am): Substitute GNULIB_CLOSE.
1586         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
1587         * modules/poll-tests (Depends-on): Add close.
1588         * modules/select-tests (Depends-on): Likewise.
1589
1590 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
1591             Bruno Haible  <bruno@clisp.org>
1592
1593         New module 'close'.
1594         * modules/close: New file.
1595         * lib/unistd.in.h (close): Move declaration out of the
1596         FCHDIR_REPLACEMENT scope.
1597         (_gl_unregister_fd): New declaration.
1598         * lib/close.c: New file.
1599         * lib/fchdir.c (rpl_close): Remove function.
1600         * m4/close.m4: New file.
1601         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
1602         close.
1603         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
1604         REPLACE_CLOSE.
1605         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
1606         REPLACE_CLOSE.
1607         * modules/fchdir (Depends-on): Add close.
1608
1609 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
1610             Bruno Haible  <bruno@clisp.org>
1611
1612         * lib/fcntl.in.h (open): Simplify conditionals.
1613         (_gl_register_fd): New declaration.
1614         * lib/fchdir.c (rpl_open): Remove function.
1615         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
1616         also.
1617         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
1618         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
1619         open.
1620
1621 2008-10-09  Jim Meyering  <meyering@redhat.com>
1622
1623         GNUmakefile: use the more name-space-friendly "_version"
1624         * top/GNUmakefile (_dummy): Update.
1625         (_version): Rename from "version".
1626
1627 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
1628             Bruno Haible  <bruno@clisp.org>
1629
1630         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
1631         rpl_close.
1632         (_gl_register_fd): New function, extracted from rpl_open.
1633         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
1634         (rpl_open, rpl_opendir): Use _gl_register_fd.
1635
1636 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
1637
1638         Fix organization of 'open' replacement.
1639         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
1640         (gl_FUNC_OPEN): Use it.
1641         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
1642
1643 2008-10-08  Bruno Haible  <bruno@clisp.org>
1644
1645         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
1646
1647 2008-10-08  Simon Josefsson  <simon@josefsson.org>
1648
1649         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
1650         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
1651         listen).
1652
1653 2008-10-08  Eric Blake  <ebb9@byu.net>
1654
1655         GNUmakefile: add 'make version' target
1656         * top/GNUmakefile (_curr-ver): Split version update rules...
1657         (version): ...into a target.
1658
1659 2008-10-07  Bruno Haible  <bruno@clisp.org>
1660
1661         Use a more portable replacement expression for -0.0L.
1662         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
1663         instead of -0.0L. Fix m4 quotation.
1664
1665         * tests/test-signbit.c: Include <float.h>.
1666         (minus_zero): New variable.
1667         (test_signbitl): Use minus_zero instead of -zero.
1668         * modules/signbit-tests (Depends-on): Add float.
1669
1670         * tests/test-ceill.c: Include <float.h>.
1671         (zero): Remove variable.
1672         (minus_zero): New variable.
1673         (main): Use minus_zero instead of -zero.
1674         * modules/ceill-tests (Depends-on): Add float.
1675
1676         * tests/test-floorl.c: Include <float.h>.
1677         (zero): Remove variable.
1678         (minus_zero): New variable.
1679         (main): Use minus_zero instead of -zero.
1680         * modules/floorl-tests (Depends-on): Add float.
1681
1682         * tests/test-roundl.c: Include <float.h>.
1683         (zero): Remove variable.
1684         (minus_zero): New variable.
1685         (main): Use minus_zero instead of -zero.
1686         * modules/roundl-tests (Depends-on): Add float.
1687
1688         * tests/test-truncl.c: Include <float.h>.
1689         (zero): Remove variable.
1690         (minus_zero): New variable.
1691         (main): Use minus_zero instead of -zero.
1692         * modules/truncl-tests (Depends-on): Add float.
1693
1694         * tests/test-frexpl.c (zero): Remove variable.
1695         (minus_zero): New variable.
1696         (main): Use minus_zero instead of -zero.
1697         * modules/frexpl-tests (Depends-on): Add float.
1698
1699         * tests/test-isnan.c (zerol): Remove variable.
1700         (minus_zerol): New variable.
1701         (test_long_double): Use minus_zerol instead of -zerol.
1702         * modules/isnan-tests (Depends-on): Add float.
1703
1704         * tests/test-isnanl.h (zero): Remove variable.
1705         (minus_zero): New variable.
1706         (main): Use minus_zero instead of -zero.
1707         * modules/isnanl-nolibm-tests (Depends-on): Add float.
1708         * modules/isnanl-tests (Depends-on): Add float.
1709
1710         * tests/test-ldexpl.c (zero): Remove variable.
1711         (minus_zero): New variable.
1712         (main): Use minus_zero instead of -zero.
1713         * modules/ldexpl-tests (Depends-on): Add float.
1714
1715         * tests/test-snprintf-posix.h (zerol): Remove variable.
1716         (minus_zerol): New variable.
1717         (test_function): Use minus_zerol instead of -zerol.
1718         * modules/snprintf-posix-tests (Depends-on): Add float.
1719         * modules/vsnprintf-posix-tests (Depends-on): Add float.
1720
1721         * tests/test-sprintf-posix.h (zerol): Remove variable.
1722         (minus_zerol): New variable.
1723         (test_function): Use minus_zerol instead of -zerol.
1724         * modules/sprintf-posix-tests (Depends-on): Add float.
1725         * modules/vsprintf-posix-tests (Depends-on): Add float.
1726
1727         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
1728         (minus_zerol): New variable.
1729         (test_function): Use minus_zerol instead of -zerol.
1730         * modules/vasnprintf-posix-tests (Depends-on): Add float.
1731
1732         * tests/test-vasprintf-posix.c (zerol): Remove variable.
1733         (minus_zerol): New variable.
1734         (test_function): Use minus_zerol instead of -zerol.
1735         * modules/vasprintf-posix-tests (Depends-on): Add float.
1736
1737 2008-10-07  Simon Josefsson  <simon@josefsson.org>
1738
1739         * MODULES.html.sh (Support for building documentation): Mention
1740         pmccabe2html.  Sort entries.
1741
1742         Add pmccabe2html module, from gnupdf.
1743         * build-aux/pmccabe.css: New file.
1744         * build-aux/pmccabe2html: New file.
1745         * m4/pmccabe2html.m4: New file.
1746         * modules/pmccabe2html: New file.
1747
1748 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
1749
1750         flock: new module
1751         * MODULES.html.sh: Add to list of modules.
1752         * lib/flock.c: flock implementation for Windows and Unix systems
1753         which have fcntl.
1754         * doc/glibc-functions/flock.texi: Update documentation.
1755         * lib/sys_file.in.h: <sys/file.h> header file.
1756         * m4/flock.m4: M4 macros.
1757         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
1758         * modules/flock: flock module.
1759         * modules/flock-tests: flock tests module.
1760         * modules/sys_file: sys/file.h module.
1761         * tests/test-flock.c: test suite for flock.
1762
1763 2008-10-06  Jim Meyering  <meyering@redhat.com>
1764
1765         bootstrap: check for LT_INIT more portably still ;-)
1766         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
1767         Spotted by Bruno Haible.
1768
1769 2008-10-06  Eric Blake  <ebb9@byu.net>
1770
1771         test-signbit: avoid tripping Irix cc bug on -0.0L
1772         * tests/test-signbit.c (minus_zerol): Delete, and replace with
1773         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
1774         entire testsuite consistent and avoids an Irix 6.2 bug.
1775
1776 2008-10-05  Bruno Haible  <bruno@clisp.org>
1777             Jim Meyering  <jim@meyering.net>
1778
1779         Add an option for ignoring EPIPE during close_stdout.
1780         * lib/closeout.h: Include <stdbool.h>.
1781         (close_stdout_set_ignore_EPIPE): New declaration.
1782         * lib/closeout.c: Include <stdbool.h>.
1783         (ignore_EPIPE): New variable.
1784         (close_stdout_set_ignore_EPIPE): New function.
1785         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
1786         * lib/close-stream.c (close_stream): Mention the possible EPIPE
1787         failure.
1788         * modules/closeout (Depends-on): Add stdbool.
1789
1790 2008-10-05  Bruno Haible  <bruno@clisp.org>
1791
1792         * modules/accept: New file.
1793         * modules/bind: New file.
1794         * modules/connect: New file.
1795         * modules/getpeername: New file.
1796         * modules/getsockname: New file.
1797         * modules/getsockopt: New file.
1798         * modules/listen: New file.
1799         * modules/recv: New file.
1800         * modules/recvfrom: New file.
1801         * modules/send: New file.
1802         * modules/sendto: New file.
1803         * modules/setsockopt: New file.
1804         * modules/socket: New file.
1805         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
1806         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
1807         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
1808         the particular module is requested. Add a link warning when the
1809         particular module is not requested.
1810         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
1811         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
1812         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
1813         the particular module is requested.
1814         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
1815         gl_SYS_SOCKET_H_DEFAULTS): New macros.
1816         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
1817         * modules/sys_socket (Depends-on): Add link-warning.
1818         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
1819         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
1820         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
1821         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
1822         GL_LINK_WARNING.
1823         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
1824         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
1825         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
1826         * doc/posix-functions/getpeername.texi: Mention the new module
1827         'getpeername'.
1828         * doc/posix-functions/getsockname.texi: Mention the new module
1829         'getsockname'.
1830         * doc/posix-functions/getsockopt.texi: Mention the new module
1831         'getsockopt'.
1832         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
1833         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
1834         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
1835         * doc/posix-functions/send.texi: Mention the new module 'send'.
1836         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
1837         * doc/posix-functions/setsockopt.texi: Mention the new module
1838         'setsockopt'.
1839         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
1840         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
1841         listen, connect, accept.
1842         * modules/select-tests (Depends-on): Likewise.
1843
1844 2008-10-05  Bruno Haible  <bruno@clisp.org>
1845
1846         * lib/winsock.c (strerror): Remove unused #undef.
1847         (rpl_close): Remove unused local variable.
1848
1849         * modules/sys_socket (Depends-on); Add errno.
1850
1851 2008-10-05  Bruno Haible  <bruno@clisp.org>
1852
1853         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
1854         (select): Add a link warning when the 'select' module is not used.
1855         * modules/sys_select (Depends-on): Add link-warning.
1856         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
1857         Suggested by Paolo Bonzini.
1858
1859 2008-10-05  Jim Meyering  <meyering@redhat.com>
1860
1861         bootstrap: check for LT_INIT more portably
1862         * build-aux/bootstrap: Avoid using grep -E, since it's not
1863         portable enough.  Suggestion from Bruno Haible.
1864
1865 2008-10-05  Bruno Haible  <bruno@clisp.org>
1866
1867         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
1868         as being fixed by gnulib.
1869
1870 2008-10-05  Bruno Haible  <bruno@clisp.org>
1871
1872         * modules/select-tests: New file, mostly copied from
1873         modules/sys_select-tests.
1874         * tests/test-select.c: New file, mostly copied from
1875         tests/test-sys_select.c.
1876         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
1877         * modules/sys_select-tests (Depends-on): Remove all dependencies.
1878         (Makefile.am): Remove test_sys_select_LDADD.
1879
1880         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
1881         to an undefined symbol, for an error message.
1882         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
1883         (gl_SYS_SELECT_H_DEFAULTS): New macro.
1884         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
1885         winsock-select.c here.
1886         * modules/sys_select (Files): Remove lib/winsock-select.c.
1887         (Depends-on): Remove alloca.
1888         (Makefile.am): Substitute GNULIB_SELECT.
1889         * modules/select: New file.
1890         * doc/posix-functions/select.texi: Update.
1891
1892 2008-10-05  Bruno Haible  <bruno@clisp.org>
1893
1894         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
1895         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
1896         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
1897         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
1898         getdtablesize.
1899         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
1900         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
1901
1902 2008-10-05  Bruno Haible  <bruno@clisp.org>
1903
1904         * modules/getdtablesize-tests: New file.
1905         * tests/test-getdtablesize.c: New file.
1906
1907         New module 'getdtablesize'.
1908         * lib/unistd.in.h (getdtablesize): New declaration.
1909         * lib/getdtablesize.c: New file.
1910         * m4/getdtablesize.m4: New file.
1911         * modules/getdtablesize: New file.
1912         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
1913         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
1914         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
1915         HAVE_GETDTABLESIZE.
1916         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
1917
1918 2008-10-05  Bruno Haible  <bruno@clisp.org>
1919
1920         * modules/sched (Makefile.am): Fix typo.
1921         Reported by Simon Josefsson.
1922
1923 2008-10-05  Jim Meyering  <meyering@redhat.com>
1924
1925         bootstrap: check for LT_INIT, too
1926         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
1927         are deprecated.  Suggestion from Ralf Wildenhues.
1928
1929 2008-10-05  Bruno Haible  <bruno@clisp.org>
1930
1931         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
1932         overriding them by ours.
1933         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
1934
1935 2008-10-05  Jim Meyering  <meyering@redhat.com>
1936
1937         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
1938         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
1939         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
1940
1941 2008-10-04  Bruno Haible  <bruno@clisp.org>
1942
1943         * modules/dup2 (License): Change to LGPLv2+.
1944         * modules/sleep (License): Likewise.
1945         * modules/perror (License): Likewise.
1946         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
1947         Blake.
1948         * modules/signal (License): Likewise.
1949         * modules/sigprocmask (License): Likewise.
1950         * modules/raise (License): Change to LGPLv2+, with approval by Jim
1951         Meyering.
1952
1953 2008-10-04  Bruno Haible  <bruno@clisp.org>
1954
1955         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
1956         Reported by Rainer Tammer <tammer@tammer.net>.
1957
1958 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
1959             Bruno Haible  <bruno@clisp.org>
1960
1961         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
1962         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
1963         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
1964
1965 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
1966
1967         filevercmp: new module
1968         * lib/filevercmp.h: New function filevercmp comparing version strings.
1969         * lib/filevercmp.c: Implementation of filevercmp function.
1970         * modules/filevercmp: Module metadata.
1971         * tests/test-filevercmp.c: Unit test for new module.
1972         * modules/filevercmp-tests: Unit test metadata.
1973         * MODULES.html.sh: Add filevercmp module.
1974
1975 2008-10-03  Bruno Haible  <bruno@clisp.org>
1976
1977         * lib/c-ctype.h: Add comment.
1978         Reported by Jim Meyering.
1979
1980 2008-10-02  Bruno Haible  <bruno@clisp.org>
1981
1982         * modules/posix_spawn-internal (Depends-on): Add 'open'.
1983
1984 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
1985
1986         * build-aux/bootstrap: Allow renaming bootstrap, and change the
1987         name of bootstrap.conf accordingly.
1988
1989 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
1990
1991         * build-aux/bootstrap: Install git-merge-changelog configuration
1992         items into .gitconfig if needed.
1993
1994 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
1995
1996         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
1997         git repository, and initialize/update it accordingly.
1998
1999 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
2000
2001         * modules/fsync-tests: New file.
2002         * tests/test-fsync.c: New file.
2003
2004         New module 'fsync'.
2005         * lib/fsync.c: New file.
2006         * m4/fsync.m4: New file.
2007         * modules/fsync: New file.
2008         * lib/unistd.in.h (fsync): New declaration.
2009         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
2010         GNULIB_FSYNC and HAVE_FSYNC.
2011         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
2012         * MODULES.html.sh (posix_functions): Add fsync.
2013         * doc/posix-functions/fsync.texi: Mention the new module.
2014
2015 2008-10-02  Jim Meyering  <meyering@redhat.com>
2016
2017         fts.c: sync with similar code from coreutils' remove.c
2018         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
2019         Guard also with "#if defined __linux__", since for now at least,
2020         this code is Linux-kernel-specific.
2021
2022 2008-10-02  Jim Meyering  <meyering@redhat.com>
2023
2024         fts: bug fixes
2025         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
2026         Include <sys/vfs.h>, not <sys/statfs.h>.
2027
2028         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
2029         Include <sys/vfs.h>, not <sys/statfs.h>.
2030
2031 2008-10-01  Bruno Haible  <bruno@clisp.org>
2032
2033         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
2034         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
2035         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
2036         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
2037         * doc/posix-functions/posix_spawnp.texi: Likewise.
2038         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
2039         whether posix_spawn actually works.
2040         * m4/pipe.m4 (gl_PIPE): Likewise.
2041         * modules/execute (Files): Add m4/posix_spawn.m4.
2042         * modules/pipe (Files): Add m4/posix_spawn.m4.
2043         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
2044
2045 2008-10-01  Jim Meyering  <meyering@redhat.com>
2046
2047         remove trailing spaces
2048         * NEWS: Likewise.
2049         * lib/poll.c (poll): Likewise.
2050         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
2051         * lib/winsock.c (rpl_close): Likewise.
2052         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
2053         * modules/yield: Likewise.
2054         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
2055         * tests/test-sys_select.c (connect_to_socket): Likewise.
2056
2057         fts.c: adjust a new interface to be more generally useful
2058         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
2059         (fts_build): Adjust caller.
2060
2061 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
2062
2063         * modules/cond-tests: New file.
2064         * tests/test-cond.c: New file.
2065
2066 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
2067             Bruno Haible  <bruno@clisp.org>
2068
2069         * modules/cond (Dependencies): Add errno, time.
2070         * lib/glthread/cond.h: Include <time.h>.
2071         (gl_cond_define, gl_cond_define_initialized): Use the same definition
2072         across platforms.
2073
2074 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
2075             Bruno Haible  <bruno@clisp.org>
2076
2077         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
2078
2079 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
2080             Bruno Haible  <bruno@clisp.org>
2081
2082         * modules/tls-tests (Depends-on): Add thread, yield.
2083         (configure.ac): Remove all checks.
2084         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
2085         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
2086         gl_thread_self): Remove definitions. Include glthread/thread.h and
2087         glthread/yield.h instead.
2088         (test_tls): Pass an additional NULL argument to gl_thread_join.
2089
2090 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
2091             Bruno Haible  <bruno@clisp.org>
2092
2093         * modules/lock-tests (Depends-on): Add thread, yield.
2094         (configure.ac): Remove all checks.
2095         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
2096         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
2097         gl_thread_self): Remove definitions. Include glthread/thread.h and
2098         glthread/yield.h instead.
2099         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
2100         additional NULL argument to gl_thread_join.
2101
2102 2008-09-30  Bruno Haible  <bruno@clisp.org>
2103
2104         Fix the Win32 implementation of the 'thread' module.
2105         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
2106         pointer type.
2107         (gl_thread_self): Invoke gl_thread_self_func.
2108         (gl_thread_self_func): New declaration.
2109         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
2110         (do_init_self_key, init_self_key): New functions.
2111         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
2112         Remove some fields.
2113         (running_threads, running_lock): Remove variables.
2114         (get_current_thread_handle): New function.
2115         (gl_thread_self_func, wrapper_func, glthread_create_func,
2116         glthread_join_func, gl_thread_exit_func): Largely rewritten and
2117         simplified.
2118
2119 2008-09-30  Bruno Haible  <bruno@clisp.org>
2120
2121         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
2122         files.
2123
2124 2008-09-30  Jim Meyering  <meyering@redhat.com>
2125
2126         fts.m4: correct the test for statfs.f_type
2127         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
2128         when checking for statfs.f_type.
2129
2130 2008-09-15  Simon Josefsson  <simon@josefsson.org>
2131
2132         tests: avoid some compiler warnings
2133         * tests/test-memchr.c (main): Pass NULL indirectly.
2134         * tests/test-getdate.c (main): Remove unused variable 'ret'.
2135
2136 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
2137
2138         getdate.y: disallow countable dayshifts like "4 yesterday ago"
2139         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
2140         exactly specified dayshifts.
2141         (dayshift): New rule.
2142         (rel): Add dayshift.
2143         (relative_time_table) [tomorrow, yesterday, today, now]:
2144         Use tDAY_SHIFT in place of tDAY_UNIT.
2145         * tests/test-getdate.c: Add tests for now-disallowed countable
2146         dayshifts, e.g., "4 yesterday ago".
2147
2148 2008-09-29  Bruno Haible  <bruno@clisp.org>
2149
2150         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
2151         * tests/test-posix_spawn1.in.sh: Renamed from
2152         tests/test-posix_spawn.in.sh.
2153         * tests/test-posix_spawn2.c: New file.
2154         * tests/test-posix_spawn2.in.sh: New file.
2155         * modules/posix_spawnp-tests (Files): Update.
2156         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
2157
2158 2008-09-29  Bruno Haible  <bruno@clisp.org>
2159
2160         Propagate effects of putenv/setenv/unsetenv to child processes.
2161         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
2162         * lib/pipe.c (create_pipe): Likewise.
2163
2164 2008-09-29  Bruno Haible  <bruno@clisp.org>
2165
2166         Enable use of shell scripts as executables in mingw.
2167         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
2168         run the program as a shell script.
2169         * lib/pipe.c (create_pipe): Likewise.
2170         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
2171         resulting array.
2172
2173 2008-09-29  Eric Blake  <ebb9@byu.net>
2174
2175         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
2176
2177 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
2178
2179         * doc/posix-functions/accept.texi: Update mingw problems.
2180         * doc/posix-functions/bind.texi: Update mingw problems.
2181         * doc/posix-functions/close.texi: Update mingw problems.
2182         * doc/posix-functions/connect.texi: Update mingw problems.
2183         * doc/posix-functions/getpeername.texi: Update mingw problems.
2184         * doc/posix-functions/getsockname.texi: Update mingw problems.
2185         * doc/posix-functions/getsockopt.texi: Update mingw problems.
2186         * doc/posix-functions/ioctl.texi: Update mingw problems.
2187         * doc/posix-functions/listen.texi: Update mingw problems.
2188         * doc/posix-functions/recv.texi: Update mingw problems.
2189         * doc/posix-functions/recvfrom.texi: Update mingw problems.
2190         * doc/posix-functions/select.texi: Update mingw problems.
2191         * doc/posix-functions/send.texi: Update mingw problems.
2192         * doc/posix-functions/sendto.texi: Update mingw problems.
2193         * doc/posix-functions/setsockopt.texi: Update mingw problems.
2194         * doc/posix-functions/socket.texi: Update mingw problems.
2195
2196 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
2197             Bruno Haible  <bruno@clisp.org>
2198
2199         * lib/sys_select.in.h: Include sys/time.h.
2200         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
2201         * modules/sys_select: Depend on sys_time.
2202         * tests/test-sys_select.c: Test that sys/select.h defines struct
2203         timeval fully.
2204
2205 2008-09-29  Bruno Haible  <bruno@clisp.org>
2206
2207         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
2208         * lib/sys_select.in.h: Likewise.
2209
2210 2008-09-29  Bruno Haible  <bruno@clisp.org>
2211
2212         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
2213
2214 2008-09-29  Bruno Haible  <bruno@clisp.org>
2215
2216         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
2217         Set LIBSOCKET instead of augmenting LIBS.
2218         * modules/sockets (Link): New section.
2219         * modules/sockets-tests (test_sockets_LDADD): New variable.
2220         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
2221         * modules/poll-tests (test_poll_LDADD): New variable.
2222         * NEWS: Document the change.
2223
2224 2008-09-29  Bruno Haible  <bruno@clisp.org>
2225
2226         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
2227         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
2228         ARPA_INET_H directly.
2229         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
2230
2231 2008-09-28  Bruno Haible  <bruno@clisp.org>
2232
2233         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
2234         from gl_HEADER_SYS_SOCKET.
2235         (gl_HEADER_SYS_SOCKET): Invoke it.
2236         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
2237
2238 2008-09-28  Bruno Haible  <bruno@clisp.org>
2239
2240         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
2241         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
2242         Needed on OSF/1 4.0.
2243
2244 2008-09-28  Bruno Haible  <bruno@clisp.org>
2245
2246         Override open more carefully.
2247         * lib/open.c (orig_open): New function.
2248         (rpl_open): Use orig_open instead of open.
2249         * lib/fcntl.in.h: Add special invocation convention.
2250         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
2251         (gl_FUNC_OPEN): Invoke it.
2252
2253         Override freopen more carefully.
2254         * lib/freopen.c (orig_freopen): New function.
2255         (rpl_freopen): Use orig_freopen instead of freopen.
2256         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
2257         (gl_FUNC_FREOPEN): Invoke it.
2258
2259         Override fopen more carefully.
2260         * lib/fopen.c (orig_fopen): New function.
2261         (rpl_fopen): Use orig_fopen instead of fopen.
2262         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
2263         (gl_FUNC_FOPEN): Invoke it.
2264         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
2265
2266 2008-09-28  Bruno Haible  <bruno@clisp.org>
2267
2268         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
2269         SIGPIPE.
2270
2271 2008-09-28  Bruno Haible  <bruno@clisp.org>
2272
2273         * tests/test-sigaction.c (handler, main): Disable the check whether
2274         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
2275         glibc systems with LinuxThreads.
2276
2277 2008-09-28  Bruno Haible  <bruno@clisp.org>
2278
2279         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
2280
2281         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
2282         with AIX xlc.
2283         * lib/fcntl.in.h (open): Likewise.
2284         Reported by Rainer Tammer <tammer@tammer.net>.
2285
2286 2008-09-28  Bruno Haible  <bruno@clisp.org>
2287
2288         * modules/posix_spawnp-tests: New file.
2289         * tests/test-posix_spawn.c: New file.
2290         * tests/test-posix_spawn.in.sh: New file.
2291
2292         New module 'posix_spawnp'.
2293         * modules/posix_spawnp: New file.
2294         * lib/spawnp.c: New file, from GNU libc with modifications.
2295         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
2296
2297         New module 'posix_spawn'.
2298         * modules/posix_spawn: New file.
2299         * lib/spawn.c: New file, from GNU libc with modifications.
2300         * doc/posix-functions/posix_spawn.texi: Mention the new module.
2301
2302         New module 'posix_spawnattr_destroy'.
2303         * modules/posix_spawnattr_destroy: New file.
2304         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
2305         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
2306         module.
2307
2308         New module 'posix_spawnattr_setsigmask'.
2309         * modules/posix_spawnattr_setsigmask: New file.
2310         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
2311         modifications.
2312         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
2313         new module.
2314
2315         New module 'posix_spawnattr_getsigmask'.
2316         * modules/posix_spawnattr_getsigmask: New file.
2317         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
2318         modifications.
2319         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
2320         new module.
2321
2322         New module 'posix_spawnattr_setsigdefault'.
2323         * modules/posix_spawnattr_setsigdefault: New file.
2324         * lib/spawnattr_setdefault.c: New file, from GNU libc with
2325         modifications.
2326         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
2327         new module.
2328
2329         New module 'posix_spawnattr_getsigdefault'.
2330         * modules/posix_spawnattr_getsigdefault: New file.
2331         * lib/spawnattr_getdefault.c: New file, from GNU libc with
2332         modifications.
2333         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
2334         new module.
2335
2336         New module 'posix_spawnattr_setschedpolicy'.
2337         * modules/posix_spawnattr_setschedpolicy: New file.
2338         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
2339         modifications.
2340         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
2341         new module.
2342
2343         New module 'posix_spawnattr_getschedpolicy'.
2344         * modules/posix_spawnattr_getschedpolicy: New file.
2345         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
2346         modifications.
2347         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
2348         new module.
2349
2350         New module 'posix_spawnattr_setschedparam'.
2351         * modules/posix_spawnattr_setschedparam: New file.
2352         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
2353         modifications.
2354         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
2355         new module.
2356
2357         New module 'posix_spawnattr_getschedparam'.
2358         * modules/posix_spawnattr_getschedparam: New file.
2359         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
2360         modifications.
2361         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
2362         new module.
2363
2364         New module 'posix_spawnattr_setpgroup'.
2365         * modules/posix_spawnattr_setpgroup: New file.
2366         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
2367         modifications.
2368         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
2369         module.
2370
2371         New module 'posix_spawnattr_getpgroup'.
2372         * modules/posix_spawnattr_getpgroup: New file.
2373         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
2374         modifications.
2375         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
2376         module.
2377
2378         New module 'posix_spawnattr_setflags'.
2379         * modules/posix_spawnattr_setflags: New file.
2380         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
2381         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
2382         module.
2383
2384         New module 'posix_spawnattr_getflags'.
2385         * modules/posix_spawnattr_getflags: New file.
2386         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
2387         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
2388         module.
2389
2390         New module 'posix_spawnattr_init'.
2391         * modules/posix_spawnattr_init: New file.
2392         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
2393         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
2394         module.
2395
2396         New module 'posix_spawn_file_actions_destroy'.
2397         * modules/posix_spawn_file_actions_destroy: New file.
2398         * lib/spawn_faction_destroy.c: New file, from GNU libc with
2399         modifications.
2400         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
2401         the new module.
2402
2403         New module 'posix_spawn_file_actions_addopen'.
2404         * modules/posix_spawn_file_actions_addopen: New file.
2405         * lib/spawn_faction_addopen.c: New file, from GNU libc with
2406         modifications.
2407         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
2408         the new module.
2409
2410         New module 'posix_spawn_file_actions_adddup2'.
2411         * modules/posix_spawn_file_actions_adddup2: New file.
2412         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
2413         modifications.
2414         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
2415         the new module.
2416
2417         New module 'posix_spawn_file_actions_addclose'.
2418         * modules/posix_spawn_file_actions_addclose: New file.
2419         * lib/spawn_faction_addclose.c: New file, from GNU libc with
2420         modifications.
2421         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
2422         the new module.
2423
2424         New module 'posix_spawn_file_actions_init'.
2425         * modules/posix_spawn_file_actions_init: New file.
2426         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
2427         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
2428         new module.
2429
2430         New module 'posix_spawn-internal'.
2431         * modules/posix_spawn-internal: New file.
2432         * lib/spawn_int.h: New file, from GNU libc with modifications.
2433         * lib/spawni.c: New file, from GNU libc with modifications.
2434         * m4/posix_spawn.m4: New file.
2435
2436         New module 'spawn'.
2437         * modules/spawn: New file.
2438         * lib/spawn.in.h: New file, from GNU libc with modifications.
2439         * m4/spawn_h.m4: New file.
2440         * doc/posix-headers/spawn.texi: Mention the new module.
2441
2442 2008-09-28  Bruno Haible  <bruno@clisp.org>
2443
2444         * modules/sched-tests: New file.
2445         * tests/test-sched.c: New file.
2446
2447         New module 'sched'.
2448         * modules/sched: New file.
2449         * lib/sched.in.h: New file.
2450         * m4/sched_h.m4: New file.
2451         * doc/posix-headers/sched.texi: Mention the new module.
2452
2453 2008-09-27  Eric Blake  <ebb9@byu.net>
2454
2455         Fix previous patch, and tweak references to $0.
2456         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
2457         (func_version, func_gnulib_dir): Don't call this program
2458         gnulib-tool.
2459         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
2460         with using $0 in function.
2461         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
2462         (func_fatal_error): Reuse the name the user invoked us with.
2463
2464 2008-09-27  Bruno Haible  <bruno@clisp.org>
2465
2466         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
2467         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
2468         (gl_ICONV_H): Not here.
2469         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
2470         instead of assigning ICONV_H directly.
2471
2472         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
2473         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
2474         WCHAR_H directly.
2475
2476 2008-09-27  Bruno Haible  <bruno@clisp.org>
2477
2478         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
2479         * modules/arpa_inet (Depends-on): Add link-warning.
2480         (Makefile.am): Insert the definition of GL_LINK-WARNING.
2481         * modules/unistd (Makefile.am): Likewise.
2482
2483 2008-09-26  Bruno Haible  <bruno@clisp.org>
2484
2485         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
2486         variables.
2487         (func_version): Essentially copied from gnulib-tool.
2488         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
2489         func_readlink): Copied from gnulib-tool.
2490
2491 2008-09-26  Bruno Haible  <bruno@clisp.org>
2492
2493         * gnulib-tool (func_version): Change directory to $gnulib_dir before
2494         invoking git-version-gen.
2495
2496 2008-09-26  Bruno Haible  <bruno@clisp.org>
2497
2498         * posix-modules: Update to directory names changed on 2008-01-19.
2499         Remove commas in output before splitting into words. No more need to
2500         avoid 'ftruncate' since 2007-02-19.
2501
2502 2008-09-26  Bruno Haible  <bruno@clisp.org>
2503
2504         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
2505
2506 2008-09-26  Bruno Haible  <bruno@clisp.org>
2507
2508         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
2509         * modules/fwriteerror (Depends-on): Add errno.
2510
2511 2008-09-26  Bruno Haible  <bruno@clisp.org>
2512
2513         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
2514         * tests/test-vc-list-files-cvs.sh: Likewise.
2515
2516 2008-09-26  Bruno Haible  <bruno@clisp.org>
2517
2518         * doc/posix-headers/sys_resource.texi: Reorder items.
2519
2520 2008-09-26  Jim Meyering  <meyering@redhat.com>
2521
2522         fts: tweak inode comparison function
2523         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
2524         inode numbers, as documented.
2525
2526         fts: sort dirent entries on inode number before traversing
2527         This avoids a quadratic, seek-related performance penalty when
2528         operating on a directory containing many entries (measurable at 10k;
2529         3.5 hours at 2 million entries with a cold cache) on certain types
2530         of file systems, including ext3 and ext4, but not tmpfs.
2531         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
2532         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
2533         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
2534         (fs_handles_readdir_ordered_dirents_efficiently): New function.
2535         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
2536         (fts_build): Set the stat.st_ino member from D_INO.
2537         If it is likely to be useful, sort dirent entries on inode number.
2538
2539         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
2540         and the struct statfs.f_type member.
2541         * modules/fts (Depends-on): Add d-ino.
2542
2543 2008-09-26  Bruno Haible  <bruno@clisp.org>
2544
2545         * modules/sigpipe-die (Depends-on): Add sigpipe.
2546
2547         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
2548         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
2549         and GNULIB_STDIO_H_SIGPIPE are set.
2550         * lib/stdio-write.c: New file.
2551         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
2552         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
2553         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
2554         REPLACE_STDIO_WRITE_FUNCS.
2555         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
2556         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
2557         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
2558         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
2559         * modules/stdio (Files): Add lib/stdio-write.c.
2560         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
2561         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
2562         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
2563         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
2564         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
2565         REPLACE_FPRINTF_POSIX.
2566         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
2567         REPLACE_PRINTF_POSIX.
2568         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
2569         REPLACE_VFPRINTF_POSIX.
2570         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
2571         REPLACE_VPRINTF_POSIX.
2572         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
2573         SIGPIPE issue.
2574         * doc/posix-functions/fputc.texi: Likewise.
2575         * doc/posix-functions/fputs.texi: Likewise.
2576         * doc/posix-functions/fwrite.texi: Likewise.
2577         * doc/posix-functions/printf.texi: Likewise.
2578         * doc/posix-functions/putc.texi: Likewise.
2579         * doc/posix-functions/putchar.texi: Likewise.
2580         * doc/posix-functions/puts.texi: Likewise.
2581         * doc/posix-functions/vfprintf.texi: Likewise.
2582         * doc/posix-functions/vprintf.texi: Likewise.
2583
2584         * modules/safe-write (Depends-on): Add write.
2585
2586         * modules/sigpipe-tests: New file.
2587         * tests/test-sigpipe.c: New file.
2588         * tests/test-sigpipe.sh: New file.
2589
2590         * modules/write: New file.
2591         * lib/unistd.in.h: Include <sys/types.h>.
2592         (write): New declaration.
2593         * lib/write.c: New file.
2594         * m4/write.m4: New file.
2595         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
2596         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
2597         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
2598         GNULIB_WRITE, REPLACE_WRITE.
2599         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
2600         and the SIGPIPE issue.
2601
2602         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
2603         (raise): New declaration.
2604         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
2605         (ext_signal): New function.
2606         (rpl_raise): New function.
2607         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
2608         GNULIB_SIGNAL_H_SIGPIPE.
2609         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
2610         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
2611
2612         * modules/sigpipe: New file.
2613         * m4/sigpipe.m4: New file.
2614
2615 2008-09-25  Derek Price  <derek@ximbiot.com>
2616             Bruno Haible  <bruno@clisp.org>
2617
2618         * gnulib-tool (func_import): Report all license incompatibilities, not
2619         just the first one.
2620
2621 2008-09-25  Bruno Haible  <bruno@clisp.org>
2622
2623         * gnulib-tool (func_import): When computing the edits, consider not
2624         only the Makefile.ams that exist but also those that will be generated.
2625
2626 2008-09-25  Simon Josefsson  <simon@josefsson.org>
2627
2628         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
2629         fixes gnulib-tool --test warning about duplicate dependency.
2630
2631 2008-09-25  Bruno Haible  <bruno@clisp.org>
2632
2633         * gnulib-tool: Don't ask the user to perform edits in the generated
2634         Makefile.ams.
2635         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
2636         apply to the Makefile.am being generated.
2637         (func_emit_tests_Makefile_am): Execute edits that apply to the
2638         Makefile.am being generated.
2639         (func_import): Setup list of Makefile.am edits before emitting the
2640         Makefile.ams, not at the end.
2641         (func_create_testdir): Update.
2642         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
2643
2644 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
2645
2646         * gnulib-tool (func_import): Store the --tests-base option in the
2647         comment in gnulib-cache.m4.
2648
2649 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
2650
2651         * NEWS: Document increased portability that sys_select now provides.
2652
2653         * lib/sys_select.in.h: Install select wrapper.
2654         * lib/sys_socket.in.h: Use more descriptive name when there is no
2655         select wrapper.
2656         * lib/winsock-select.c: New.
2657         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
2658         Require gl_HEADER_SYS_SOCKET.
2659         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
2660         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
2661         * tests/test-sys_select.c: Add functional tests.
2662
2663 2008-09-24  Eric Blake  <ebb9@byu.net>
2664
2665         open, fopen: close fd leak in last patch
2666         * lib/open.c (rpl_open): Close fd before returning error.
2667         * lib/fopen.c (rpl_fopen): Close fd before returning error.
2668         * doc/posix-functions/open.texi (open): Document that Irix also
2669         has the bug.
2670         * doc/posix-functions/fopen.texi (fopen): Likewise.
2671         Reported by Paolo Bonzini.
2672
2673 2008-09-24  Bruno Haible  <bruno@clisp.org>
2674
2675         Ensure that a filename ending in a slash cannot be used to access a
2676         non-directory.
2677         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
2678         to check whether it's really a directory.
2679         * lib/fopen.c: Include fcntl.h, unistd.h.
2680         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
2681         and fdopen().
2682         * modules/fopen (Depends-on): Add unistd.
2683         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
2684         * tests/test-fopen.c (main): Likewise.
2685         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
2686         * doc/posix-functions/fopen.texi: Likewise.
2687         Reported by Eric Blake.
2688
2689 2008-09-23  Eric Blake  <ebb9@byu.net>
2690
2691         c-stack: avoid compiler optimizations when provoking overflow
2692         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
2693         recursion harder to optimize, to ensure a stack overflow occurs.
2694         * tests/test-c-stack.c (recurse): Likewise.
2695         Borrowed from libsigsegv.
2696
2697         c-stack: work around Irix sigaltstack bug
2698         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
2699         whether sigaltstack uses wrong end of stack_t (copied in part from
2700         libsigsegv).
2701         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
2702         Irix bug, without requiring an over-allocation.
2703         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
2704         bug.
2705
2706         fopen: document mingw bug on directories
2707         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
2708         not allowing a stream visiting a directory, even though reading
2709         from such a stream is not portable.
2710
2711 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
2712
2713         * lib/poll.c: Rewrite.
2714         * modules/poll: Depend on alloca.
2715
2716 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
2717
2718         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
2719         instead define prototypes for a full set of wrappers.  Ensure
2720         that Cygwin does not use the compatibility code, which is only
2721         for MinGW.
2722         * lib/winsock.c: New.
2723         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
2724         * modules/sys_socket: Add lib/winsock.c.
2725
2726         * modules/poll-tests: Add errno and perror.
2727         * tests/test-poll.c: Use ioctl, not ioctlsocket.
2728
2729 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
2730
2731         * tests/test-poll.c: Downgrade minimum needed Winsock version.
2732
2733 2008-09-23  Bruno Haible  <bruno@clisp.org>
2734
2735         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
2736         * doc/glibc-functions/*: Likewise.
2737
2738 2008-09-23  Simon Josefsson  <simon@josefsson.org>
2739
2740         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
2741         success.
2742
2743 2008-09-22  Eric Blake  <ebb9@byu.net>
2744             Bruno Haible  <bruno@clisp.org>
2745
2746         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
2747         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
2748         supply %A but mishandle pseudo-NaN.
2749         Reported by Simon Josefsson.
2750
2751 2008-09-21  Bruno Haible  <bruno@clisp.org>
2752
2753         * tests/test-lock.c (main): Tweak skip message.
2754         * tests/test-tls.c (main): Likewise.
2755
2756 2008-09-21  Bruno Haible  <bruno@clisp.org>
2757
2758         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
2759         whether 'struct sigaction' has sa_sigaction here...
2760         (gl_PREREQ_SIG_HANDLER_H): ... not here.
2761         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
2762
2763 2008-09-21  Bruno Haible  <bruno@clisp.org>
2764
2765         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
2766         section.
2767         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
2768         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
2769         the new section.
2770         (Support for obsolete systems lacking POSIX:2001): New section.
2771         (String handling <string.h>): Move strdup to the new section.
2772         Suggested by Simon Josefsson and Paolo Bonzini.
2773
2774 2008-09-21  Bruno Haible  <bruno@clisp.org>
2775
2776         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
2777         exponents in %e and %g results on 'long double'. Needed for mingw's
2778         improved *printf functions.
2779         * tests/test-vasprintf-posix.c (test_function): Likewise.
2780         * tests/test-snprintf-posix.h (test_function): Likewise.
2781         * tests/test-sprintf-posix.h (test_function): Likewise.
2782         Reported by Eric Blake.
2783
2784 2008-09-21  Bruno Haible  <bruno@clisp.org>
2785
2786         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
2787         * tests/test-sprintf-posix.h (test_function): Likewise.
2788
2789 2008-09-21  Bruno Haible  <bruno@clisp.org>
2790
2791         * modules/getpass (Depends-on): Add strdup-posix.
2792
2793         New module 'strdup-posix'.
2794         * modules/strdup-posix: New file.
2795         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
2796         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
2797         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
2798         REPLACE_STRDUP.
2799         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
2800         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
2801         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
2802         strdup-posix.
2803
2804         * modules/strdup (Depends-on): Remove malloc-posix.
2805
2806 2008-09-20  Bruno Haible  <bruno@clisp.org>
2807
2808         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
2809         Wildenhues.
2810
2811 2008-09-20  Bruno Haible  <bruno@clisp.org>
2812
2813         Ensure that wint_t gets defined on IRIX 5.3.
2814         * lib/wchar.in.h (wint_t): Define if not defined by the system.
2815         * lib/wctype.in.h (wint_t): Likewise.
2816         (__wctype_wint_t): Remove type.
2817         (isw*): Use wint_t instead of __wctype_wint_t.
2818         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
2819         * modules/wchar (Files): Add m4/wint_t.m4.
2820         (Makefile.am): Substitute HAVE_WINT_T.
2821         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
2822         * tests/test-wctype.c: Check that wint_t is defined.
2823         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
2824         * doc/posix-headers/wctype.texi: Likewise.
2825         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2826
2827 2008-09-18  Bruno Haible  <bruno@clisp.org>
2828
2829         * gnulib-tool (func_exit): Update comment.
2830
2831 2008-09-18  Simon Josefsson  <simon@josefsson.org>
2832
2833         * modules/getaddrinfo (Depends-on): Remove strdup, this module
2834         assumes strdup exists and does not depend on strdup to return
2835         ENOMEM on out of memory conditions.
2836
2837 2008-09-18  Bruno Haible  <bruno@clisp.org>
2838
2839         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
2840         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
2841         digits for the exponent.
2842
2843 2008-09-18  Jim Meyering  <meyering@redhat.com>
2844             Bruno Haible  <bruno@clisp.org>
2845
2846         * lib/vasnprintf.c (decimal_point_char): Define also if
2847         NEED_PRINTF_INFINITE_LONG_DOUBLE.
2848
2849 2008-09-16  Bruno Haible  <bruno@clisp.org>
2850         and Eric Blake  <ebb9@byu.net>
2851
2852         vasnprintf: support Irix 5.3
2853         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
2854         that mishandle long double infinity.
2855         Reported by Tom G. Christensen.
2856
2857 2008-09-16  Bruno Haible  <bruno@clisp.org>
2858
2859         * doc/glibc-functions/scandir.texi: Mention the function is missing on
2860         Solaris 9.
2861         * doc/glibc-functions/alphasort.texi: Likewise.
2862         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
2863
2864 2008-09-16  Jim Meyering  <meyering@redhat.com>
2865
2866         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
2867         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
2868         a umask modification leak out of a subshell.  Otherwise, the
2869         opensolaris /bin/sh would be accepted and thus cause unwarranted
2870         failures in the coreutils test suite.
2871
2872 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
2873
2874         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
2875         to succeed.
2876
2877 2008-09-16  Jim Meyering  <meyering@redhat.com>
2878
2879         avoid spurious test failure when library is built without ACL support
2880         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
2881         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
2882         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
2883         * tests/test-copy-acl.sh: Likewise.
2884
2885 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2886
2887         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
2888         based on character occurrence counts.
2889
2890 2008-09-15  Eric Blake  <ebb9@byu.net>
2891
2892         tests: avoid some compiler warnings
2893         * tests/test-memchr.c (main): Pass NULL indirectly.
2894         * tests/test-closein.c (main): Avoid unused variable.
2895
2896 2008-09-15  Bruno Haible  <bruno@clisp.org>
2897
2898         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
2899         are missing on OpenBSD 4.0 individually.
2900         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
2901
2902 2008-09-15  Bruno Haible  <bruno@clisp.org>
2903
2904         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
2905         * doc/posix-functions/strerror.texi: Mention also Cygwin.
2906         * doc/posix-functions/perror.texi: Likewise.
2907         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
2908         is missing.
2909         Reported by Eric Blake.
2910
2911         * lib/errno.in.h: Use replacement values >= 2000.
2912         Reported by Eric Blake.
2913
2914 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2915
2916         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
2917         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
2918         limit.
2919         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
2920         compareseq was aborted.
2921
2922 2008-09-14  Bruno Haible  <bruno@clisp.org>
2923
2924         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
2925         yvec_edit_count.
2926         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
2927         (fstrcmp_bounded): Simplify result computation accordingly.
2928
2929 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2930
2931         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
2932         (fstrcmp): Define in terms of fstrcmp_bounded.
2933         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
2934         lower_bound argument.
2935         Return quickly if the result is certainly < lower_bound.
2936         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
2937
2938 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2939
2940         * lib/diffseq.h (EARLY_ABORT): New macro.
2941         (compareseq): Change return type to bool. Return true when EARLY_ABORT
2942         evaluates to true.
2943
2944 2008-09-14  Bruno Haible  <bruno@clisp.org>
2945
2946         * modules/perror-tests: New file.
2947         * tests/test-perror.sh: New file.
2948         * tests/test-perror.c: New file.
2949
2950         New module 'perror'.
2951         * lib/stdio.in.h (perror): New declaration.
2952         * lib/perror.c: New file.
2953         * m4/perror.m4: New file.
2954         * modules/perror: New file.
2955         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
2956         * doc/posix-functions/perror.texi: Mention the perror module.
2957         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
2958         REPLACE_PERROR.
2959         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
2960         REPLACE_PERROR.
2961
2962 2008-09-14  Bruno Haible  <bruno@clisp.org>
2963
2964         * modules/stdio (Makefile.am): Reorder to match the order in
2965         lib/stdio.in.h.
2966         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
2967
2968 2008-09-13  Bruno Haible  <bruno@clisp.org>
2969
2970         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
2971
2972 2008-09-13  Bruno Haible  <bruno@clisp.org>
2973
2974         Extend strerror to cover the added errno values.
2975         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
2976         (rpl_strerror): Provide error messages for the added errno values and
2977         for the WSA* values.
2978         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
2979         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
2980         strerror.
2981         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
2982         * modules/strerror (Depends-on): Add errno.
2983         * doc/posix-functions/strerror.texi: Document the change.
2984         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
2985         and EOVERFLOW.
2986
2987 2008-09-13  Bruno Haible  <bruno@clisp.org>
2988
2989         * modules/EOVERFLOW: Remove file.
2990         * m4/eoverflow.m4: Remove file.
2991         * modules/EOVERFLOW-tests: Remove file.
2992         * tests/test-EOVERFLOW.c: Remove file.
2993         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
2994         * modules/ftell (Depends-on): Likewise.
2995         * modules/getdelim (Depends-on): Likewise.
2996         * modules/getugroups (Depends-on): Likewise.
2997         * modules/poll (Depends-on): Likewise.
2998         * modules/snprintf (Depends-on): Likewise.
2999         * modules/sprintf-posix (Depends-on): Likewise.
3000         * modules/vasnprintf (Depends-on): Likewise.
3001         * modules/vasprintf (Depends-on): Likewise.
3002         * modules/vfprintf-posix (Depends-on): Likewise.
3003         * modules/vsnprintf (Depends-on): Likewise.
3004         * modules/vsprintf-posix (Depends-on): Likewise.
3005         * modules/xvasprintf (Depends-on): Likewise.
3006         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
3007         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
3008         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
3009         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
3010         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
3011         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
3012         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
3013         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
3014         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
3015         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
3016         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
3017         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
3018         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
3019         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
3020         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
3021         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
3022         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
3023         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
3024         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
3025         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
3026         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
3027         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
3028         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
3029         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
3030         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
3031         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
3032         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
3033         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
3034         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
3035         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
3036         * MODULES.html.sh: Remove EOVERFLOW.
3037         * NEWS: Mention the change.
3038
3039 2008-09-13  Bruno Haible  <bruno@clisp.org>
3040
3041         * modules/errno-tests: New file.
3042         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
3043
3044         * lib/errno.in.h: New file.
3045         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
3046         * modules/errno: New file.
3047         * doc/posix-headers/errno.texi: Update documentation.
3048         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
3049
3050 2008-09-13  Bruno Haible  <bruno@clisp.org>
3051
3052         * tests/test-poll.c: Use #if for native Windows, rather than testing
3053         __MSVCRT__.
3054
3055 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
3056             Bruno Haible  <bruno@clisp.org>
3057
3058         * lib/glob.c: Don't include <pwd.h> on native Windows.
3059         (WINDOWS32): New macro.
3060         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
3061
3062 2008-09-13  Bruno Haible  <bruno@clisp.org>
3063
3064         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
3065         (ETIMEDOUT): Remove macro.
3066         (glthread_cond_timedwait_multithreaded): New declaration.
3067         (glthread_cond_timedwait): Use it.
3068         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
3069         (glthread_cond_timedwait_multithreaded): New function.
3070
3071 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
3072
3073         * modules/poll-tests: Do not check for io.h.
3074         * tests/test-poll.c: Check for __MSVCRT__ instead.
3075
3076 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
3077
3078         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
3079         * modules/poll-tests: Add inet_pton, stdbool, sockets.
3080         * tests/test-poll.c: Use them.  Use _pipe on Windows.
3081
3082 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
3083
3084         * modules/poll-tests: New.
3085         * tests/test-poll.c: New.
3086
3087 2008-09-12  Eric Blake  <ebb9@byu.net>
3088
3089         frexp: test for NetBSD failure on -0.0
3090         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
3091         not all, bugs from NetBSD 3.0 have been fixed.
3092         * doc/posix-functions/frexp.texi (frexp): Document bug.
3093         Reported by Thomas Klausner.
3094
3095         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
3096         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
3097         literal -0.0.
3098         Reported by Jonathan C. Patschke <jp@centtech.com>.
3099
3100 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
3101
3102         * lib/glthread/cond.h: Use dummy implementation also if
3103         USE_WIN32_THREADS.
3104
3105 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
3106
3107         * modules/fnmatch-posix (License): Change to LGPLv2+.
3108         * modules/fnmatch-gnu (License): Likewise.
3109
3110 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
3111
3112         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
3113
3114 2008-09-11  Jim Meyering  <meyering@redhat.com>
3115
3116         * users.txt: Add gtk-vnc.
3117
3118 2008-09-08  Simon Josefsson  <simon@josefsson.org>
3119
3120         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
3121         rotate amounts.
3122
3123         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
3124         required for 16-bit and 8-bit rotates.
3125         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
3126         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
3127         UINT8_MAX instead of hard-coded constants.
3128         Suggested by Paul Eggert.
3129
3130 2008-09-07  Bruno Haible  <bruno@clisp.org>
3131
3132         * tests/test-striconveh.c (main): Check behaviour when converting from
3133         UTF-7.
3134
3135         Make striconveh work better with stateful encodings.
3136         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
3137         that iconv does not increment the inptr when returning -1/EINVAL.
3138
3139 2008-09-07  Bruno Haible  <bruno@clisp.org>
3140
3141         * build-aux/config.rpath: Update according to libtool-2.2.6.
3142         * build-aux/config.libpath: Likewise.
3143
3144 2008-09-06  Bruno Haible  <bruno@clisp.org>
3145
3146         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
3147         * lib/freadptr.c (freadptr): Likewise.
3148         * lib/freadseek.c (freadptrinc): Likewise.
3149         Reported by Simon Josefsson.
3150
3151 2008-09-06  Bruno Haible  <bruno@clisp.org>
3152
3153         * modules/freadptr (License): Change to LGPLv2+.
3154         * modules/freadseek (License): Likewise.
3155         Suggested by Eric Blake.
3156
3157         * modules/memchr2 (License): Change to LGPLv2+.
3158         Approved by Eric Blake.
3159
3160 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3161             Bruno Haible  <bruno@clisp.org>
3162
3163         Make gnulib-tool work with native 'sed' on AIX.
3164         * gnulib-tool (sed_noop): New variable.
3165         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
3166         func_add_or_update, func_create_testdir): Use it to initialize sed
3167         script variables.
3168         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
3169
3170 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
3171             Bruno Haible  <bruno@clisp.org>
3172
3173         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
3174         also works after #include directives.
3175
3176 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
3177
3178         getdate.y: reject an out-of-range timezone value
3179         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
3180         the range [-24...+24].  When specified with only one or two digits,
3181         * tests/test-getdate.c: Tests for the fix.
3182         * doc/getdate.texi: Document this change.
3183
3184 2008-09-03  Bruno Haible  <bruno@clisp.org>
3185
3186         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
3187
3188 2008-09-02  Simon Josefsson  <simon@josefsson.org>
3189
3190         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
3191         <bruce.korb@gmail.com> with ideas from Ben Pfaff
3192         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
3193         Blake <ebb9@byu.net>.
3194
3195         * tests/test-bitrotate.c: Add more test vectors.
3196
3197 2008-09-02  Eric Blake  <ebb9@byu.net>
3198
3199         vasnprintf-posix: handle large precision via %.*d
3200         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
3201         when handling it ourselves.
3202         * tests/test-vasnprintf-posix.c (test_function): Add test.
3203         * tests/test-snprintf-posix.h (test_function): Likewise.
3204         * tests/test-sprintf-posix.h (test_function): Likewise.
3205         * tests/test-vasprintf-posix.c (test_function): Likewise.
3206         Reported by Alain Guibert.
3207
3208 2008-09-01  Eric Blake  <ebb9@byu.net>
3209
3210         c-stack: make configure-time check more robust
3211         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
3212         successful sigaction call.
3213         Reported by Tom G. Christensen.
3214
3215 2008-09-01  Bruno Haible  <bruno@clisp.org>
3216
3217         New module 'findprog-lgpl'.
3218         * modules/findprog-lgpl: New file.
3219         * lib/findprog-lgpl.c: New file.
3220         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
3221         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
3222         to decide whether to use strdup or xstrdup, concatenated_filename or
3223         xconcatenated_filename.
3224
3225 2008-09-01  Bruno Haible  <bruno@clisp.org>
3226
3227         Split module 'concat-filename' into 'concat-filename' (LGPL) and
3228         'xconcat-filename' (GPL).
3229         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
3230         (License): Change to LGPLv2+.
3231         * modules/xconcat-filename: New file.
3232         * lib/concat-filename.h (concatenated_filename): Change specification.
3233         (xconcatenated_filename): New declaration.
3234         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
3235         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
3236         memory situations.
3237         * lib/xconcat-filename.c: New file.
3238         * NEWS: Mention the change.
3239         * lib/findprog.c: Include concat-filename.h, not filename.h.
3240         (find_in_path): Use xconcatenated_filename instead of
3241         concatenated_filename.
3242         * lib/javacomp.c: Include concat-filename.h, not filename.h.
3243         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
3244         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
3245         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
3246         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
3247         instead of concatenated_filename.
3248         * lib/javaexec.c: Include concat-filename.h, not filename.h.
3249         (execute_java_class): Use xconcatenated_filename instead of
3250         concatenated_filename.
3251         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
3252         * modules/javacomp (Depends-on): Likewise.
3253         * modules/javaexec (Depends-on): Likewise.
3254
3255 2008-09-01  Bruno Haible  <bruno@clisp.org>
3256
3257         Split module 'filename' into 'filename' and 'concat-filename'.
3258         * modules/filename: Keep only lib/filename.h.
3259         (License): Change to LGPLv2+.
3260         * modules/concat-filename: New file, extracted from modules/filename.
3261         * lib/filename.h (concatenated_filename): Remove declaration.
3262         * lib/concat-filename.h: New file, extracted from lib/filename.h.
3263         * lib/concat-filename.c: Include concat-filename.h.
3264         * NEWS: Mention the change.
3265
3266 2008-09-01  Simon Josefsson  <simon@josefsson.org>
3267
3268         * lib/bitrotate.h (rotl8, rotr8): Add.
3269
3270         * modules/bitrotate (configure.ac): Need
3271         AC_REQUIRE([AC_C_INLINE]).
3272         (Description): Mention stdint.h.  Reported by Bruno Haible
3273         <bruno@clisp.org>.
3274
3275         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
3276         Paolo Bonzini <bonzini@gnu.org>.
3277
3278 2008-08-31  Bruno Haible  <bruno@clisp.org>
3279
3280         Assume Solaris specific bi-arch conventions on Solaris systems.
3281         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
3282         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
3283         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
3284         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
3285         like acl_libdirstem.
3286         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
3287         acl_libdirstem.
3288         * NEWS: Mention the change.
3289         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
3290
3291 2008-08-31  Jim Meyering  <meyering@redhat.com>
3292
3293         * lib/strftime.h: Add comments describing the two added arguments.
3294
3295         remove duplicate #include directives
3296         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
3297         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
3298
3299 2008-08-31  Bruno Haible  <bruno@clisp.org>
3300
3301         New module 'sigpipe-die'.
3302         * modules/sigpipe-die: New file.
3303         * lib/sigpipe-die.h: New file.
3304         * lib/sigpipe-die.c: New file.
3305         * MODULES.html.sh (Signal handling): Add sigpipe-die.
3306
3307 2008-08-31  Bruno Haible  <bruno@clisp.org>
3308
3309         Don't override previously installed signal handlers.
3310         * lib/fatal-signal.c (saved_sigactions): New variable.
3311         (uninstall_handlers): Reset the signal to the saved handler, not
3312         to SIG_DFL (except when ignored).
3313         (install_handlers): Save the previous handlers.
3314
3315 2008-08-30  Bruno Haible  <bruno@clisp.org>
3316
3317         * gnulib-tool (func_reset_sigpipe): New function.
3318         (func_get_automake_snippet, func_modules_transitive_closure,
3319         func_import): Invoke it before a join command that reads from stdin,
3320         to avoid "echo: write error: Broken pipe" error messages on stderr.
3321         Reported by Sam Steingold <sds@gnu.org>.
3322
3323 2008-08-30  Bruno Haible  <bruno@clisp.org>
3324
3325         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
3326         Code copied from m4/open.m4.
3327         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
3328         access and the filename ends in a slash. Code copied from lib/open.c.
3329         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
3330         * tests/test-fopen.c (main): Check against bug with trailing slash.
3331
3332 2008-08-29  Bruno Haible  <bruno@clisp.org>
3333
3334         Avoid some "gcc -pedantic" warnings.
3335         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
3336         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
3337         * lib/dirent.in.h: Likewise.
3338         * lib/fcntl.in.h: Likewise.
3339         * lib/float.in.h: Likewise.
3340         * lib/iconv.in.h: Likewise.
3341         * lib/inttypes.in.h: Likewise.
3342         * lib/locale.in.h: Likewise.
3343         * lib/math.in.h: Likewise.
3344         * lib/netinet_in.in.h: Likewise.
3345         * lib/search.in.h: Likewise.
3346         * lib/signal.in.h: Likewise.
3347         * lib/stdarg.in.h: Likewise.
3348         * lib/stdint.in.h: Likewise.
3349         * lib/stdio.in.h: Likewise.
3350         * lib/stdlib.in.h: Likewise.
3351         * lib/string.in.h: Likewise.
3352         * lib/strings.in.h: Likewise.
3353         * lib/sys_select.in.h: Likewise.
3354         * lib/sys_socket.in.h: Likewise.
3355         * lib/sys_stat.in.h: Likewise.
3356         * lib/sys_time.in.h: Likewise.
3357         * lib/sysexits.in.h: Likewise.
3358         * lib/time.in.h: Likewise.
3359         * lib/unistd.in.h: Likewise.
3360         * lib/wchar.in.h: Likewise.
3361         * lib/wctype.in.h: Likewise.
3362         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
3363         * modules/fchdir (Makefile.am): Likewise.
3364         * modules/fcntl (Makefile.am): Likewise.
3365         * modules/float (Makefile.am): Likewise.
3366         * modules/iconv_open (Makefile.am): Likewise.
3367         * modules/inttypes (Makefile.am): Likewise.
3368         * modules/locale (Makefile.am): Likewise.
3369         * modules/math (Makefile.am): Likewise.
3370         * modules/netinet_in (Makefile.am): Likewise.
3371         * modules/search (Makefile.am): Likewise.
3372         * modules/signal (Makefile.am): Likewise.
3373         * modules/stdarg (Makefile.am): Likewise.
3374         * modules/stdint (Makefile.am): Likewise.
3375         * modules/stdio (Makefile.am): Likewise.
3376         * modules/stdlib (Makefile.am): Likewise.
3377         * modules/string (Makefile.am): Likewise.
3378         * modules/strings (Makefile.am): Likewise.
3379         * modules/sys_select (Makefile.am): Likewise.
3380         * modules/sys_socket (Makefile.am): Likewise.
3381         * modules/sys_stat (Makefile.am): Likewise.
3382         * modules/sys_time (Makefile.am): Likewise.
3383         * modules/sysexits (Makefile.am): Likewise.
3384         * modules/time (Makefile.am): Likewise.
3385         * modules/unistd (Makefile.am): Likewise.
3386         * modules/wchar (Makefile.am): Likewise.
3387         * modules/wctype (Makefile.am): Likewise.
3388         Reported by Reuben Thomas <rrt@sc3d.org>.
3389
3390 2008-08-29  Bruno Haible  <bruno@clisp.org>
3391
3392         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
3393         any more.
3394
3395 2008-08-29  Simon Josefsson  <simon@josefsson.org>
3396
3397         * MODULES.html.sh (Misc): Add bitrotate.
3398
3399         * modules/bitrotate: New file.
3400
3401         * lib/bitrotate.h: New file.
3402
3403         * modules/bitrotate-tests: New file.
3404
3405         * tests/test-bitrotate.c: New file.
3406
3407         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
3408         on the bitrotate module.
3409
3410         * lib/arctwo.c: Use new bitrotate module.
3411
3412 2008-08-29  Jim Meyering  <meyering@redhat.com>
3413
3414         bootstrap: merge changes from coreutils
3415         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
3416         of copied files.  Remove a kludge, now that this is fixed.
3417         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
3418         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
3419         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
3420
3421 2008-08-29  Bruno Haible  <bruno@clisp.org>
3422
3423         * MODULES.html.sh: Remove --cvs-urls option.
3424
3425 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
3426
3427         maint.mk: adjust to file name change
3428         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
3429
3430 2008-08-28  Jim Meyering  <meyering@redhat.com>
3431
3432         * modules/getndelim2 (License): Relicense to LGPLv2+.
3433         Approved by Richard Stallman for the version of 1995, and by
3434         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
3435
3436 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
3437
3438         * lib/getdelim.c (flockfile, funlockfile): Make all of them
3439         dummy if one is not available.  Do not touch them if
3440         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
3441         (getc_maybe_unlocked): New.
3442         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
3443
3444 2008-08-26  Eric Blake  <ebb9@byu.net>
3445
3446         doc/INSTALL: resync from autoconf
3447         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
3448         (INSTALL_PRELUDE): Delete; this is done more efficiently by
3449         moving...
3450         * install.texi [!autoconf]: ...here.  Resync from autoconf.
3451         * INSTALL: Regenerate.
3452         * INSTALL.ISO: New file.
3453         * INSTALL.UTF-8: Likewise.
3454
3455 2008-08-26  Jim Meyering  <meyering@redhat.com>
3456
3457         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
3458         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
3459         these definitions conditional, so that they may be overridden, too.
3460
3461 2008-08-26  Bruno Haible  <bruno@clisp.org>
3462
3463         Generate INSTALL file variants with prettier quotes.
3464         * doc/Makefile (INSTALL_PRELUDE): New macro.
3465         (INSTALL): Use it.
3466         (INSTALL.ISO, INSTALL.UTF-8): New rules.
3467
3468 2008-08-26  Bruno Haible  <bruno@clisp.org>
3469
3470         Run makeinfo in an English locale.
3471         * doc/Makefile (MAKEINFO): New variable.
3472
3473 2008-08-26  Bruno Haible  <bruno@clisp.org>
3474
3475         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
3476         Suggested by Eric Blake.
3477
3478 2008-08-25  Bruno Haible  <bruno@clisp.org>
3479
3480         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
3481
3482 2008-08-25  Eric Blake  <ebb9@byu.net>
3483
3484         c-stack: test that stack overflow can be caught
3485         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
3486         that platform allows handling stack overflow; at least OS/2 EMX
3487         has sigaltstack, but crashes before transferring control to
3488         handler on stack overflow.
3489         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
3490         check for HAVE_STACK_OVERFLOW_HANDLING.
3491         Reported by Elbert Pol.
3492
3493 2008-08-25  Bruno Haible  <bruno@clisp.org>
3494
3495         * doc/posix-functions/strftime.texi: Fix description of strftime
3496         module.
3497
3498 2008-08-24  Bruno Haible  <bruno@clisp.org>
3499
3500         * tests/uniwidth/test-uc_width2.c: New file.
3501         * tests/uniwidth/test-uc_width2.sh: New file.
3502         * modules/uniwidth/width-tests (Files): Add the new files.
3503         (TESTS): Add uniwidth/test-uc_width2.sh.
3504         (TESTS_ENVIRONMENT): New variable.
3505         (check_PROGRAMS): Add test-uc_width2.
3506         (test_uc_width2_SOURCES): New variable.
3507
3508         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
3509         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
3510         not 0x00AB.
3511         Reported by Alexander V. Lukyanov <lav@netis.ru>.
3512
3513 2008-08-22  Eric Blake  <ebb9@byu.net>
3514
3515         test-lock, test-tls: mention why a test is skipped
3516         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
3517         skipped.
3518         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
3519
3520         count-one-bits: relax license
3521         * modules/count-one-bits (License): Relicense to LGPLv2+.
3522         Suggested by Ludovic Courtès, approved by Ben Pfaff.
3523
3524 2008-08-22  Andreas Schwab  <schwab@suse.de>
3525
3526         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
3527         Remove spurious space in assignment.
3528
3529 2008-08-21  Simon Josefsson  <simon@josefsson.org>
3530
3531         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
3532         Paul Eggert <eggert@CS.UCLA.EDU>.
3533
3534 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
3535
3536         * modules/gettext: Add m4/threadlib.m4.
3537
3538 2008-08-19  Eric Blake  <ebb9@byu.net>
3539
3540         test-c-stack: fix compilation failure on FreeBSD 5.0
3541         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
3542         headers before <sys/resource.h>.
3543         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
3544         the bug.
3545         Reported by Nelson H. F. Beebe.
3546
3547         strverscmp: migrate from "strverscmp.h" to <string.h>
3548         * modules/string (Makefile.am): Add new hooks.
3549         * modules/strverscmp (Files): Remove strverscmp.h.
3550         (Depends-on): Add string.
3551         (configure.ac): Add indicator.
3552         (Include): Mention new header.
3553         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
3554         defaults.
3555         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
3556         results.
3557         * lib/strverscmp.h: Delete.
3558         * lib/string.in.h (strverscmp): Provide declaration, when needed.
3559         * tests/test-strverscmp.c (includes): Adjust client.
3560         * lib/check-version.c (includes): Likewise.
3561         * NEWS: Document the change.
3562
3563         strverscmp: add unit test
3564         * modules/strverscmp-tests: New file.
3565         * tests/test-strverscmp.c: Likewise.
3566
3567 2008-08-19  Simon Josefsson  <simon@josefsson.org>
3568
3569         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
3570         regarding Windows crypto stuff, from Mono.
3571
3572 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
3573
3574         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
3575         if present, for intel RND.  Return error on failures.
3576
3577 2008-08-18  Ben Pfaff  <blp@gnu.org>
3578
3579         gitlog-to-changelog: give better diagnostic for failed pipe-open
3580         * build-aux/gitlog-to-changelog: Improve error message: suggest
3581         that the version of Git may be too old.
3582
3583 2008-08-18  Simon Josefsson  <simon@josefsson.org>
3584
3585         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
3586         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
3587
3588 2008-08-18  Bruno Haible  <bruno@clisp.org>
3589
3590         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
3591         pthread_in_use().
3592
3593 2008-08-18  Bruno Haible  <bruno@clisp.org>
3594
3595         * lib/glthread/threadlib.c: Include <pthread.h>.
3596
3597 2008-08-18  Bruno Haible  <bruno@clisp.org>
3598
3599         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
3600         glthread_recursive_lock_* macros.
3601         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
3602         Fix syntax error.
3603
3604 2008-08-18  Bruno Haible  <bruno@clisp.org>
3605
3606         * lib/glthread/thread.c: Avoid forcing a context switch right after
3607         thread creation.
3608
3609 2008-08-17  Bruno Haible  <bruno@clisp.org>
3610
3611         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
3612         * lib/glthread/thread.h: Provide Win32 specific implementation.
3613         * modules/thread (Files): Add lib/glthread/thread.c.
3614         (Depends-on): Add lock.
3615         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
3616
3617 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
3618
3619         New module 'yield'.
3620         * modules/yield: New file.
3621         * lib/glthread/yield.h: New file.
3622         * m4/yield.m4: New file.
3623         * MODULES.html.sh (Multithreading): Add yield.
3624
3625 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
3626
3627         New module 'thread'.
3628         * modules/thread: New file.
3629         * lib/glthread/thread.h: New file.
3630         * m4/thread.m4: New file.
3631         * MODULES.html.sh (Multithreading): Add thread.
3632
3633 2008-08-17  Bruno Haible  <bruno@clisp.org>
3634
3635         * lib/glthread/lock.h: Include <stdlib.h> always.
3636         * lib/glthread/tls.h: Likewise.
3637         * lib/glthread/cond.h: Likewise.
3638
3639 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
3640
3641         New module 'cond'.
3642         * modules/cond: New file.
3643         * lib/glthread/cond.h: New file.
3644         * lib/glthread/cond.c: New file.
3645         * m4/cond.m4: New file.
3646         * MODULES.html.sh (Multithreading): Add cond.
3647
3648 2008-08-16  Eric Blake  <ebb9@byu.net>
3649
3650         c-stack: fix regression on Irix 5.3 from 2008-06-21
3651         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
3652         sa_sigaction...
3653         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
3654         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
3655         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
3656         * modules/signal (Makefile.am): Use the value.
3657         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
3658         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
3659         * doc/posix-headers/signal.texi (signal.h): Document this
3660         portability issue.
3661         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
3662         Reported by Tom G. Christensen.
3663
3664 2008-08-17  Bruno Haible  <bruno@clisp.org>
3665
3666         New module 'threadlib'.
3667         * modules/threadlib: New file.
3668         * lib/glthread/threadlib.c: New file, extracted from
3669         lib/glthread/lock.c.
3670         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
3671         functions.
3672         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
3673         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
3674         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
3675         macros.
3676         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
3677         (gl_DISABLE_THREADS): Remove macro.
3678         * modules/lock (Files): Remove build-aux/config.rpath.
3679         (Depends-on): Remove havelib. Add threadlib.
3680         (configure.ac-early): Remove section.
3681         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
3682         * modules/tls (Depends-on): Remove lock. Add threadlib.
3683         (Link): New section, copied from threadlib.
3684         * MODULES.html.sh (Multithreading): Add threadlib.
3685
3686 2008-08-14  Bruno Haible  <bruno@clisp.org>
3687
3688         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
3689         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
3690         glthread_rwlock_unlock, glthread_rwlock_destroy,
3691         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
3692         glthread_recursive_lock_destroy): Define as macros always.
3693         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
3694         glthread_lock_lock.
3695         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
3696         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
3697         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
3698         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
3699         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
3700         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
3701         (glthread_recursive_lock_lock_func): Renamed from
3702         glthread_recursive_lock_lock.
3703         (glthread_recursive_lock_unlock_func): Renamed from
3704         glthread_recursive_lock_unlock.
3705         (glthread_recursive_lock_destroy_func): Renamed from
3706         glthread_recursive_lock_destroy.
3707
3708 2008-08-14  Bruno Haible  <bruno@clisp.org>
3709
3710         * lib/glthread/lock.h: Renamed from lib/lock.h.
3711         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
3712         * lib/glthread/tls.h: Renamed from lib/tls.h.
3713         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
3714         * lib/fstrcmp.c: Update includes.
3715         * lib/strsignal.c: Update includes.
3716         * modules/lock (Files, Makefile.am): Update.
3717         (Include): Change to "glthread/lock.h".
3718         * modules/tls (Files, Makefile.am): Update.
3719         (Include): Change to "glthread/tls.h".
3720         * tests/test-lock.c: Update includes.
3721         * tests/test-tls.c: Update includes.
3722         * NEWS: Mention the renamed header files.
3723
3724 2008-08-11  Jim Meyering  <meyering@redhat.com>
3725
3726         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
3727
3728 2008-08-11  Eric Blake  <ebb9@byu.net>
3729
3730         test-c-stack: avoid C99-ism
3731         * tests/test-c-stack.c (main): Fix whitespace, move declaration
3732         before statement.
3733         Reported by Alain Guibert.
3734
3735 2008-08-10  Jim Meyering  <meyering@redhat.com>
3736
3737         ensure that return value of uinttostr et al are not ignored
3738         * lib/inttostr.h (__GNUC_PREREQ): Define.
3739         (__attribute_warn_unused_result__): Define.
3740         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
3741
3742 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
3743
3744         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
3745         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
3746
3747 2008-08-07  Jim Meyering  <meyering@redhat.com>
3748
3749         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
3750
3751         * modules/mkstemp (License): Relicense under LGPLv2+.
3752         * modules/tempname (License): Likewise.
3753
3754 2008-08-06  Bruno Haible  <bruno@clisp.org>
3755
3756         * lib/poll.c (poll): Further micro-optimization.
3757
3758 2008-08-06  Jim Meyering  <meyering@redhat.com>
3759
3760         inet_pton.c: use locale-independent tolower
3761         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
3762         (inet_pton6): Use c_tolower rather than tolower.
3763         * modules/inet_pton (Depends-on): Add c-ctype.
3764
3765 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
3766
3767         * lib/poll.c (poll): Avoid division when timeout is 0, cache
3768         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
3769
3770 2008-08-06  Jim Meyering  <meyering@redhat.com>
3771
3772         * modules/inet_pton (License): Relicense under LGPLv2+.
3773
3774 2008-08-03  Bruno Haible  <bruno@clisp.org>
3775
3776         Additional non-aborting API for lock and tls.
3777         * lib/lock.h: Include <errno.h>.
3778         (glthread_lock_init): New macro/function.
3779         (gl_lock_init): Define as wrapper around glthread_lock_init.
3780         (glthread_lock_lock): New macro/function.
3781         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
3782         (glthread_lock_unlock): New macro/function.
3783         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
3784         (glthread_lock_destroy): New macro/function.
3785         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
3786         (glthread_rwlock_init): New macro/function.
3787         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
3788         (glthread_rwlock_rdlock): New macro/function.
3789         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
3790         (glthread_rwlock_wrlock): New macro/function.
3791         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
3792         (glthread_rwlock_unlock): New macro/function.
3793         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
3794         (glthread_rwlock_destroy): New macro/function.
3795         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
3796         (glthread_recursive_lock_init): New macro/function.
3797         (gl_recursive_lock_init): Define as wrapper around
3798         glthread_recursive_lock_init.
3799         (glthread_recursive_lock_lock): New macro/function.
3800         (gl_recursive_lock_lock): Define as wrapper around
3801         glthread_recursive_lock_lock.
3802         (glthread_recursive_lock_unlock): New macro/function.
3803         (gl_recursive_lock_unlock): Define as wrapper around
3804         glthread_recursive_lock_unlock.
3805         (glthread_recursive_lock_destroy): New macro/function.
3806         (gl_recursive_lock_destroy): Define as wrapper around
3807         glthread_recursive_lock_destroy.
3808         (glthread_once): New macro/function.
3809         (gl_once): Define as wrapper around glthread_once.
3810         Update function declarations.
3811         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
3812         glthread_rwlock_init. Return error code.
3813         (glthread_rwlock_rdlock_multithreaded): Renamed from
3814         glthread_rwlock_rdlock. Return error code.
3815         (glthread_rwlock_wrlock_multithreaded): Renamed from
3816         glthread_rwlock_wrlock. Return error code.
3817         (glthread_rwlock_unlock_multithreaded): Renamed from
3818         glthread_rwlock_unlock. Return error code.
3819         (glthread_rwlock_destroy_multithreaded): Renamed from
3820         glthread_rwlock_destroy. Return error code.
3821         (glthread_recursive_lock_init_multithreaded): Renamed from
3822         glthread_recursive_lock_init. Return error code.
3823         (glthread_recursive_lock_lock_multithreaded): Renamed from
3824         glthread_recursive_lock_lock. Return error code.
3825         (glthread_recursive_lock_unlock_multithreaded): Renamed from
3826         glthread_recursive_lock_unlock. Return error code.
3827         (glthread_recursive_lock_destroy_multithreaded): Renamed from
3828         glthread_recursive_lock_destroy. Return error code.
3829         (glthread_once_call): Make static.
3830         (glthread_once_multithreaded): Renamed from glthread_once.
3831         * lib/tls.h: Include <errno.h>.
3832         (glthread_tls_key_init): New macro/function.
3833         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
3834         (glthread_tls_set): New macro/function.
3835         (gl_tls_set): Define as wrapper around glthread_tls_set.
3836         (glthread_tls_key_destroy): New macro/function.
3837         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
3838         Update function declarations.
3839         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
3840         glthread_tls_get.
3841         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
3842
3843 2008-08-04  Eric Blake  <ebb9@byu.net>
3844
3845         gnumakefile: use space, not TAB, outside of targets
3846         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
3847
3848 2008-08-02  Jim Meyering  <meyering@redhat.com>
3849
3850         getdate.y: avoid locale-dependent date parsing failure
3851         In Turkish locales, getdate would fail to recognize keywords
3852         containing a lowercase "i".  The solution is not to rely on
3853         locale-sensitive case-conversion.
3854         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
3855         (lookup_word): Use c_toupper in place of toupper.
3856         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
3857         Reported by Vefa Bicakci <bicave@superonline.com> in
3858         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
3859         * modules/getdate (Depends-on): Add c-ctype.
3860
3861 2008-08-02  Bruno Haible  <bruno@clisp.org>
3862
3863         * gnulib-tool (func_import): When updating or creating a .gitignore
3864         file, prepend each added line with a slash, and ignore leading slashes
3865         from the existing lines.
3866         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
3867
3868 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3869
3870         Portability fix for GNU make 3.79.1.
3871         * top/GNUmakefile: Avoid 'else COND', which older GNU make
3872         versions do not understand.
3873
3874 2008-08-01  Bruno Haible  <bruno@clisp.org>
3875
3876         Work around bug of HP-UX 10.20 cc with -0.0 literal.
3877         * tests/test-isnanf.h (zero): New variable.
3878         (main): Avoid literal -0.0f.
3879         * tests/test-isnand.h (zero): New variable.
3880         (main): Avoid literal -0.0.
3881         * tests/test-isnanl.h (zero): New variable.
3882         (main): Avoid literal -0.0L.
3883         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
3884         (test_float, test_double, test_long_double): Avoid literals -0.0f,
3885         -0.0, -0.0L.
3886         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
3887         (test_signbitd): Avoid literal -0.0.
3888         (test_signbitl): Avoid literal -0.0L.
3889         * tests/test-ceilf1.c (zero): New variable.
3890         (main): Avoid literal -0.0f.
3891         * tests/test-ceill.c (zero): New variable.
3892         (main): Avoid literal -0.0L.
3893         * tests/test-floorf1.c (zero): New variable.
3894         (main): Avoid literal -0.0f.
3895         * tests/test-floorl.c (zero): New variable.
3896         (main): Avoid literal -0.0L.
3897         * tests/test-roundf1.c (zero): New variable.
3898         (main): Avoid literal -0.0f.
3899         * tests/test-round1.c (zero): New variable.
3900         (main): Avoid literal -0.0.
3901         * tests/test-roundl.c (zero): New variable.
3902         (main): Avoid literal -0.0L.
3903         * tests/test-truncf1.c (zero): New variable.
3904         (main): Avoid literal -0.0f.
3905         * tests/test-trunc1.c (zero): New variable.
3906         (main): Avoid literal -0.0.
3907         * tests/test-truncl.c (zero): New variable.
3908         (main): Avoid literal -0.0L.
3909         * tests/test-frexp.c (zero): New variable.
3910         (main): Avoid literal -0.0.
3911         * tests/test-frexpl.c (zero): New variable.
3912         (main): Avoid literal -0.0L.
3913         * tests/test-ldexpl.c (zero): New variable.
3914         (main): Avoid literal -0.0L.
3915         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
3916         (zerod, zerol): New variables.
3917         (test_function): Avoid literals -0.0, -0.0L.
3918         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
3919         (zerod, zerol): New variables.
3920         (test_function): Avoid literals -0.0, -0.0L.
3921         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
3922         (zerod, zerol): New variables.
3923         (test_function): Avoid literals -0.0, -0.0L.
3924         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
3925         (zerod, zerol): New variables.
3926         (test_function): Avoid literals -0.0, -0.0L.
3927         * tests/test-strtod.c (zero): New variable.
3928         (main): Avoid literal -0.0.
3929         Reported by Jonathan C. Patschke <jp@centtech.com>.
3930
3931 2008-07-31  Jim Meyering  <meyering@redhat.com>
3932
3933         sha256.h: correct definition of SHA224_DIGEST_SIZE
3934         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
3935         Reported by Paulie Pena IV <paulie4@gmail.com>.
3936         Define as 224 / 8, rather than as a literal.
3937         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
3938         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
3939         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
3940
3941 2008-07-31  Bruno Haible  <bruno@clisp.org>
3942
3943         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
3944         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
3945         Reported by Jonathan Patschke <jp@centtech.com>.
3946
3947 2008-07-31  Bruno Haible  <bruno@clisp.org>
3948
3949         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
3950         Reported by Paolo Bonzini <bonzini@gnu.org>.
3951
3952 2008-07-30  Eric Blake  <ebb9@byu.net>
3953
3954         test-strtod: allow compilation without -lm
3955         * tests/test-strtod.c (main): Avoid link dependence on fabs.
3956         Reported by Dennis Clarke <blastwave@gmail.com>.
3957
3958 2008-07-28  Jim Meyering  <meyering@redhat.com>
3959
3960         bootstrap: work also when there are no .po files in po/
3961         * build-aux/bootstrap (update_po_files): Complete the change
3962         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
3963
3964 2008-07-27  Jim Meyering  <meyering@redhat.com>
3965
3966         * users.txt: Add zile.
3967
3968 2008-07-26  Ben Pfaff  <blp@gnu.org>
3969
3970         Add missing dependencies on new m4/exponent[fdl].m4 files.
3971         * modules/isnanf-nolibm: Add m4/exponentf.m4.
3972         * modules/isnand-nolibm: Add m4/exponentd.m4.
3973         * modules/isnanl-nolibm: Add m4/exponentl.m4.
3974         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
3975         m4/isnan[fdl].m4, because the macros actually used moved.
3976         Reported by Jim Meyering.
3977
3978 2008-07-14  Ben Pfaff  <blp@gnu.org>
3979
3980         Add isinf module.
3981         * lib/isinf.c: New file.
3982         * lib/math.in.h: Define isinf macro if we have decided to replace
3983         it.
3984         * m4/isinf.m4: New file.
3985         * m4/math_h.m4: Initialize and substitute variables for isinf
3986         module.
3987         * modules/isinf: New file.
3988         * modules/isinf-tests: New file.
3989         * modules/math: Add substitutions for new module.
3990         * tests/test-isinf.c: New file.
3991         * doc/posix-functions/isinf.texi: Mention new module.
3992         * MODULES.html.sh: Mention new module.
3993
3994 2008-07-14  Ben Pfaff  <blp@gnu.org>
3995
3996         Factor out some macros for use by additional modules.
3997         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
3998         exponentf.m4.
3999         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
4000         exponentd.m4.
4001         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
4002         file exponentl.m4.
4003         * m4/exponentf.m4: New file.
4004         * m4/exponentd.m4: New file.
4005         * m4/exponentl.m4: New file.
4006         * modules/isnanf: Use new file m4/exponentf.m4.
4007         * modules/isnand: Use new file m4/exponentd.m4.
4008         * modules/isnanl: Use new file m4/exponentl.m4.
4009
4010 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
4011
4012         mktime.c: normalize tp->tm_isdst value to -1/0/1.
4013         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
4014         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
4015         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
4016
4017         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
4018         readlink on platforms without PATH_MAX.
4019
4020 2008-07-21  Eric Blake  <ebb9@byu.net>
4021
4022         Warn, not fail, on stale version.
4023         * top/GNUmakefile (_curr-ver): Tone down previous patch.
4024
4025         Don't allow installation with stale devel version number.
4026         * top/GNUmakefile (_is-install-target): New macro.
4027         (_curr-ver): Forbid installation with stale version number.
4028
4029 2008-07-20  Bruno Haible  <bruno@clisp.org>
4030
4031         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
4032         TESTS_ENVIRONMENT.
4033         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
4034
4035 2008-07-20  Bruno Haible  <bruno@clisp.org>
4036
4037         * lib/c-stack.h (c_stack_action): Add documentation.
4038         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
4039
4040 2008-07-20  Bruno Haible  <bruno@clisp.org>
4041
4042         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
4043         * modules/readlink (License): Likewise.
4044
4045 2008-07-17  Eric Blake  <ebb9@byu.net>
4046
4047         * modules/c-stack (Link): Fix typo.
4048
4049         Make c-stack use libsigsegv, when available.
4050         * modules/c-stack (Depends-on): Add libsigsegv.
4051         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
4052         needed.
4053         * lib/c-stack.c (SIGSTKSZ): Define fallback.
4054         (segv_handler, overflow_handler, c_stack_action)
4055         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
4056         implementation when libsigsegv is available, but only when using
4057         the library is necessary.
4058         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
4059         comment, explaining why XSI check fails on Linux.
4060         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
4061         * tests/test-c-stack2.sh: Tweak skip message.
4062         * NEWS: Document new link-time requirements.
4063
4064 2008-07-16  Eric Blake  <ebb9@byu.net>
4065
4066         c-stack: Expose false positives when not using libsigsegv.
4067         * modules/c-stack-tests (Files): Expand test.
4068         * tests/test-c-stack.c (main): Add means to conditionally trigger
4069         non-overflow SIGSEGV.
4070         * tests/test-c-stack2.sh: New file.
4071
4072 2008-07-14  Bruno Haible  <bruno@clisp.org>
4073
4074         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
4075         Reported by Eric Blake.
4076
4077 2008-07-14  Sam Steingold  <sds@gnu.org>
4078             Bruno Haible  <bruno@clisp.org>
4079
4080         New module libsigsegv.
4081         * modules/libsigsegv: New file.
4082         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
4083         modifications.
4084         * MODULES.html.sh (Signal handling): New section.
4085
4086 2008-07-14  Bruno Haible  <bruno@clisp.org>
4087
4088         * modules/unictype/ctype-* (Description): Add the word "function".
4089         Improves the resulting doc in MODULES.html.
4090
4091 2008-07-12  Ben Pfaff  <blp@gnu.org>
4092
4093         Add longlong module.
4094         * modules/longlong: New file.
4095
4096 2008-07-12  Bruno Haible  <bruno@clisp.org>
4097
4098         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
4099         to empty.
4100
4101 2008-07-10  Ben Pfaff  <blp@gnu.org>
4102
4103         Add isnan module.
4104         * doc/posix-functions/isnan.texi: Mention new module.
4105         * lib/math.in.h: Define isnan macro if we have decided to replace
4106         it.
4107         * m4/isnan.m4: New file.
4108         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
4109         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
4110         also.
4111         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
4112         redundancy.
4113         * m4/math_h.m4: Initialize and substitute variables for isnan
4114         module.
4115         * modules/isnan: New file.
4116         * modules/isnan-tests: New file.
4117         * modules/math: Add substitutions for new module.
4118         * tests/test-isnan.c: New file.
4119         * MODULES.html.sh: Mention new module.
4120
4121 2008-07-10  Ben Pfaff  <blp@gnu.org>
4122
4123         Add isnanf module.
4124         * lib/isnanf.m4: New file.
4125         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
4126         (gl_HAVE_ISNANF_IN_LIBM): New macro.
4127         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
4128         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
4129         * modules/isnanf: New file.
4130         * modules/isnanf-tests: New file.
4131         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
4132         files.
4133         * tests/test-isnanf-nolibm.c: factored most of its contents into
4134         new file tests/test-isnanf.h.
4135         * tests/test-isnanf.h: New file.
4136         * tests/test-isnanf.c: New file.
4137         * MODULES.html.sh: Mention new module.
4138         * doc/glibc-functions/isnanf.texi: Mention new module.
4139
4140 2008-07-10  Ben Pfaff  <blp@gnu.org>
4141
4142         Add isnand module.
4143         * lib/isnand.h: New file.
4144         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
4145         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
4146         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
4147         functionality also.
4148         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
4149         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
4150         (gl_HAVE_ISNAND_IN_LIBM): New macro.
4151         * modules/isnand: New file.
4152         * modules/isnand-tests: New file.
4153         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
4154         files.
4155         * tests/test-isnand-nolibm.c: factored most of its contents into
4156         new file tests/test-isnand.h.
4157         * tests/test-isnand.h: New file.
4158         * tests/test-isnand.c: New file.
4159         * MODULES.html.sh: Mention new module.
4160
4161 2008-07-10  Ben Pfaff  <blp@gnu.org>
4162
4163         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
4164         * lib/isnand.h: Rename lib/isnand-nolibm.h.
4165         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
4166         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
4167         * modules/isnanf-nolibm: Update references to renamed files.
4168         * modules/isnand-nolibm: Likewise.
4169         * modules/isnanf-nolibm-tests: Likewise.
4170         * modules/isnand-nolibm-tests: Likewise.
4171         * lib/frexp.c: Likewise.
4172         * lib/isfinite.c: Likewise.
4173         * lib/signbitd.c: Likewise.
4174         * lib/signbitf.c: Likewise.
4175         * lib/vasnprintf.c: Likewise.
4176         * tests/test-ceilf1.c: Likewise.
4177         * tests/test-ceilf2.c: Likewise.
4178         * tests/test-floorf1.c: Likewise.
4179         * tests/test-floorf2.c: Likewise.
4180         * tests/test-frexp.c: Likewise.
4181         * tests/test-round1.c: Likewise.
4182         * tests/test-round2.c: Likewise.
4183         * tests/test-roundf1.c: Likewise.
4184         * tests/test-strtod.c: Likewise.
4185         * tests/test-trunc1.c: Likewise.
4186         * tests/test-trunc2.c: Likewise.
4187         * tests/test-truncf1.c: Likewise.
4188         * tests/test-truncf2.c: Likewise.
4189         * NEWS: Mention the renamed header files.
4190
4191 2008-07-11  Jim Meyering  <meyering@redhat.com>
4192
4193         vc-list-files: make the last-resort awk code more portable
4194         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
4195         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
4196         does not support it.
4197
4198 2008-07-10  Eric Blake  <ebb9@byu.net>
4199
4200         Work with tar's bootstrap.
4201         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
4202         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
4203         an m4 comment.
4204
4205 2008-07-09  Jim Meyering  <meyering@redhat.com>
4206
4207         posix-shell.m4: fix typo that made this test malfunction
4208         * m4/posix-shell.m4: Remove capitalization in variable name.
4209
4210 2008-07-08  Bruno Haible  <bruno@clisp.org>
4211
4212         * m4/onceonly.m4: Update comments.
4213         Reported by Ben Pfaff <blp@cs.stanford.edu>.
4214
4215 2008-07-04  Jim Meyering  <meyering@redhat.com>
4216
4217         * users.txt: Add vc-dwim.
4218         (bison, coreutils): Use the gitweb URL.
4219
4220 2008-07-03  Jim Meyering  <meyering@redhat.com>
4221
4222         * users.txt: Add libffcall.  From Sam Steingold.
4223
4224 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
4225
4226         getdate.y: do not ignore TZ with relative day, month or year offset
4227         * lib/getdate.y (get_date): Move the tz-handling block to follow the
4228         relative-date-handling, since otherwise, the latter would clobber the
4229         sole output (an updated Start value) of the tz-handling block.
4230         * tests/test-getdate.c: Tests for the fix
4231
4232 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4233
4234         Recognize 'foo_LIBRARIES += libgnu.a'.
4235         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
4236         makefile snippet has already specified an installation location,
4237         also using '+='.
4238
4239 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
4240
4241         getdate.y: factor out common actions
4242         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
4243         Use them in place of open-coded actions.
4244
4245 2008-07-01  Simon Josefsson  <simon@josefsson.org>
4246
4247         Add self-test for getdate module.
4248         * modules/getdate-tests: New file.
4249         * tests/test-getdate.c: New file.
4250
4251 2008-06-29  Bruno Haible  <bruno@clisp.org>
4252
4253         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
4254         .gitignore.
4255         Reported by Sylvain Beucler <beuc@beuc.net>.
4256
4257 2008-06-29  Bruno Haible  <bruno@clisp.org>
4258
4259         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
4260         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
4261
4262 2008-06-29  Bruno Haible  <bruno@clisp.org>
4263
4264         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
4265         EXTRA_DIST.
4266         Reported by Sylvain Beucler <beuc@beuc.net>.
4267
4268 2008-06-26  Jim Meyering  <meyering@redhat.com>
4269
4270         make several modules depend on the "open" module
4271         This provides slightly increased consistency when opening-for-write
4272         the name of a non-directory spelled with a trailing slash.
4273         * modules/chdir-safer: Likewise.
4274         * modules/chown: Likewise.
4275         * modules/clean-temp: Likewise.
4276         * modules/copy-file: Likewise.
4277         * modules/fchdir: Likewise.
4278         * modules/fcntl-safer: Likewise.
4279         * modules/pipe: Likewise.
4280         * modules/utime: Likewise.
4281         Prompted by Eric Blake and Bruno Haible.
4282
4283 2008-06-24  Andreas Schwab  <schwab@suse.de>
4284
4285         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
4286         literals can be used as initializers for global variables.
4287
4288 2008-06-23  Eric Blake  <ebb9@byu.net>
4289
4290         Make gnulib-cache.m4 easier to diff.
4291         * gnulib-tool (func_import): Allow newlines when reading cached
4292         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
4293
4294 2008-06-23  Bruno Haible  <bruno@clisp.org>
4295
4296         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
4297         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
4298         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
4299         m4/signalblocking.m4.
4300         (gl_PREREQ_SIGACTION): Don't invoke it.
4301         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
4302         gl_PREREQ_SIG_HANDLER_H.
4303         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
4304         Don't check for sigaction here.
4305
4306 2008-06-23  Bruno Haible  <bruno@clisp.org>
4307
4308         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
4309         (install_handlers): Don't set the SA_RESETHAND flag.
4310
4311 2008-06-23  Bruno Haible  <bruno@clisp.org>
4312
4313         * m4/sigaction.m4: Comment fixes.
4314         * lib/signal.in.h: Likewise.
4315
4316 2008-06-23  Eric Blake  <ebb9@byu.net>
4317
4318         Fix typo.
4319         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
4320
4321         Avoid SA_ namespace.
4322         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
4323         Reported by Ralf Wildenhues.
4324
4325         Avoid test failure due to SA_RESTORER.
4326         * tests/test-sigaction.c (SA_MASK): New macro.
4327         (main): Avoid failing due to extension flags being set.
4328         Reported by Jim Meyering.
4329
4330         Revert use of sig-handler.h in sigprocmask.c.
4331         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
4332         it requires the existence of struct sigaction.
4333         * lib/sigprocmask.c (handler_t): Restore typedef.
4334         (rpl_signal, old_handlers): Use local type.
4335
4336 2008-06-22  Bruno Haible  <bruno@clisp.org>
4337
4338         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
4339         conditionally.
4340         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
4341
4342 2008-06-22  Bruno Haible  <bruno@clisp.org>
4343
4344         * doc/posix-functions/siginterrupt.texi: Move note.
4345
4346         * lib/signal.in.h (SA_RESTART): New macro.
4347         * lib/sigaction.c: Update comment.
4348
4349         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
4350
4351         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
4352         (gl_PREREQ_SIGPROCMASK): Invoke it.
4353         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
4354
4355         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
4356
4357         * lib/sigprocmask.c: Update a comment.
4358
4359 2008-06-21  Eric Blake  <ebb9@byu.net>
4360
4361         Use sigaction module rather than signal().
4362         * modules/c-stack (Depends-on): Add sigaction.
4363         * modules/fatal-signal (Depends-on): Likewise.
4364         * modules/nanosleep (Depends-on): Likewise.
4365         * modules/sigprocmask (Files): Add sig-handler.h.
4366         * modules/sigaction (Files): Likewise.
4367         * lib/sig-handler.h (get_handler): New file, suggested by Paul
4368         Eggert.
4369         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
4370         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
4371         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
4372         (init_fatal_signals): Likewise.
4373         * lib/nanosleep.c (rpl_nanosleep): Likewise.
4374         (siginterrupt): Delete fallback.
4375         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
4376         instead.
4377         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
4378         siginterrupt.
4379
4380         New module sigaction, for mingw.
4381         * modules/sigaction: New module...
4382         * modules/sigaction-tests: ...and its test.
4383         * m4/sigaction.m4: New file.
4384         * lib/sigaction.c: Likewise.
4385         * tests/test-sigaction.c: Likewise.
4386         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
4387         * modules/signal (Makefile.am): Likewise.
4388         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
4389         needed.
4390         * doc/posix-headers/signal.texi (signal.h): Mention provided
4391         types.
4392         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
4393         that sigaction is preferable.
4394         * doc/posix-functions/sigaction.texi (sigaction): Mention new
4395         module.
4396         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
4397         sigaction.
4398
4399         Improve robustness of sigprocmask by overriding signal.
4400         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
4401         is in use.
4402         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
4403         (SIGKILL, SIGSTOP): Provide fallbacks.
4404         (rpl_signal): Implement.
4405         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
4406         signal can be called inside handlers.
4407
4408         Fix nanosleep module on mingw.
4409         * modules/nanosleep (Depends-on): Add sys_select.
4410         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
4411
4412         Fix licensing of sigprocmask.
4413         * modules/raise (License): Relicense as LGPL.
4414
4415 2008-06-21  Bruno Haible  <bruno@clisp.org>
4416
4417         * lib/propername.c (proper_name_utf8): Don't use the transliterated
4418         result if it contains question marks.
4419         Reported by Michael Geng <linux@michaelgeng.de>.
4420
4421 2008-06-19  Bruno Haible  <bruno@clisp.org>
4422
4423         Fix CVS-ism.
4424         * doc/gnulib.texi: Include updated-stamp.texi.
4425         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
4426         (updated-stamp.texi): New rule.
4427         (gnulib.info): Depend on it.
4428         * doc/.gitignore: Add updated-stamp.texi.
4429         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
4430
4431 2008-06-19  Bruno Haible  <bruno@clisp.org>
4432
4433         * doc/Makefile (gnulib.info): Update and simplify dependencies.
4434         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
4435
4436 2008-06-19  Eric Blake  <ebb9@byu.net>
4437
4438         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
4439         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
4440         Reported by Stepan Kasal.
4441
4442 2008-06-18  Bruno Haible  <bruno@clisp.org>
4443
4444         * lib/fatal-signal.c (init_fatal_signals): Add comment.
4445         Reported by Eric Blake.
4446
4447 2008-06-18  Eric Blake  <ebb9@byu.net>
4448
4449         Work around cygwin 1.5.25 strsignal bug.
4450         * tests/test-strsignal.c: Allow for const char *.
4451         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
4452
4453 2008-06-18  Simon Josefsson  <simon@josefsson.org>
4454
4455         * users.txt: Update URL to article and add author/date
4456         information.
4457
4458 2008-06-17  Bruno Haible  <bruno@clisp.org>
4459
4460         New macro gl_DISABLE_THREADS.
4461         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
4462         if the user did not pass --enable-threads or --disable-threads option.
4463         (gl_DISABLE_THREADS): New macro.
4464         Reported by Eric Blake <ebb9@byu.net>.
4465
4466 2008-06-17  Bruno Haible  <bruno@clisp.org>
4467
4468         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
4469         when the macro ignores it.
4470         Based on a patch by Eric Blake <ebb9@byu.net>.
4471
4472 2008-06-17  Bruno Haible  <bruno@clisp.org>
4473
4474         * modules/tls (License): Change to LGPLv2+.
4475         Reported by Eric Blake.
4476
4477 2008-06-17  Eric Blake  <ebb9@byu.net>
4478
4479         Simplify c-stack prerequisites.
4480         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
4481         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
4482         no longer requires <ucontext.h> to exist.  Optimize setrlimit
4483         check.
4484         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
4485         <sys/resource.h>.
4486
4487         Move c-stack test into testsuite.
4488         * modules/c-stack-tests: New file.
4489         * lib/c-stack.c [DEBUG]: Move test program...
4490         * tests/test-c-stack.c: ...into this new file.  Skip rather than
4491         fail test if sigaltstack is lacking.
4492         * tests/test-c-stack.sh: New driver file.
4493
4494 2008-06-16  Eric Blake  <ebb9@byu.net>
4495
4496         Use raise module consistently.
4497         * modules/fatal-signal (Depends-on): Add raise.
4498         * modules/sigprocmask (Depends-on): Likewise.
4499         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
4500         * lib/sigprocmask.c (sigprocmask): Likewise.
4501         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
4502         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
4503
4504         Fix compliance bug in sigpending.
4505         * lib/sigprocmask.c (sigpending): Return pending array via
4506         parameter, not return value.
4507
4508 2008-06-14  Eric Blake  <ebb9@byu.net>
4509
4510         Improve obstack-printf test code.
4511         * tests/test-obstack-printf.c (test_function): Fix comment, and
4512         simplify usage of obstack_* in macros.  Add a test for coverage.
4513         Reported by Bruno Haible.
4514
4515 2008-06-14  Bruno Haible  <bruno@clisp.org>
4516
4517         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
4518         array size as a constant, not as a const variable.
4519         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
4520         AC_USE_SYSTEM_EXTENSIONS.
4521         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
4522         Test whether the obstack_printf function actually exists.
4523         * modules/obstack-printf (Depends-on): Add extensions.
4524         (Include): Remove obstack.h.
4525         * modules/obstack-printf-posix (Depends-on): Add extensions.
4526         (Include): Remove obstack.h.
4527
4528 2008-06-13  Eric Blake  <ebb9@byu.net>
4529
4530         Add obstack-printf and obstack-printf-posix modules.
4531         * modules/obstack-printf: New file.
4532         * modules/obstack-printf-posix: Likewise.
4533         * MODULES.html.sh (Misc): Mention them.
4534         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
4535         Likewise.
4536         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
4537         Likewise.
4538         * modules/stdio (Makefile.am): Accomodate new modules.
4539         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
4540         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
4541         Declare.
4542         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
4543         functions.
4544         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
4545         (gl_REPLACE_OBSTACK_PRINTF): New macros
4546         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
4547         * tests/test-obstack-printf.c: New file.
4548         * modules/obstack-printf-tests: Likewise.
4549         * modules/obstack-printf-posix-tests: Likewise.
4550
4551 2008-06-11  Bruno Haible  <bruno@clisp.org>
4552
4553         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
4554         * lib/open.c: Include errno.h.
4555         (open): Fail when attempting to write to a file that has a trailing
4556         slash.
4557         * tests/test-open.c (main): Test against trailing slash bug.
4558         * doc/posix-functions/open.texi: Mention the trailing slash bug.
4559
4560 2008-06-10  Bruno Haible  <bruno@clisp.org>
4561
4562         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
4563         for $? to work inside the trap command, with various /bin/sh-s.
4564         * tests/test-vc-list-files-cvs.sh: Likewise.
4565
4566 2008-06-10  Bruno Haible  <bruno@clisp.org>
4567
4568         * lib/acl-internal.h: Don't include gettext.h here.
4569         * lib/set-mode-acl.c: Include gettext.h here.
4570         * lib/copy-acl.c: Likewise.
4571
4572 2008-06-10  Bruno Haible  <bruno@clisp.org>
4573
4574         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
4575         * lib/wait-process.c (wait_subprocess): Likewise.
4576         * lib/execute.h (execute): Add termsigp argument.
4577         * lib/execute.c (execute): Likewise.
4578         * lib/csharpcomp.c (compile_csharp_using_pnet,
4579         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
4580         * lib/csharpexec.c (execute_csharp_using_pnet,
4581         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
4582         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
4583         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
4584         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
4585         is_jikes_present): Update.
4586         * lib/javaexec.c (execute_java_class): Update.
4587         * lib/javaversion.c (execute_and_read_line): Update.
4588         * NEWS: Document the changes.
4589         Reported by Eric Blake.
4590
4591 2008-06-10  Eric Blake  <ebb9@byu.net>
4592
4593         Add missing include.
4594         * tests/test-strstr.c (includes): Add <signal.h>.
4595         * tests/test-strcasestr.c (includes): Likewise.
4596         * tests/test-memmem.c (includes): Likewise.
4597
4598 2008-06-10  Bruno Haible  <bruno@clisp.org>
4599
4600         * lib/wait-process.c (wait_subprocess): Add an assertion.
4601
4602 2008-06-10  Bruno Haible  <bruno@clisp.org>
4603
4604         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
4605
4606 2008-06-10  Bruno Haible  <bruno@clisp.org>
4607
4608         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
4609         using alarm().
4610         * tests/test-strcasestr.c (main): Likewise.
4611         * tests/test-strstr.c (main): Likewise.
4612
4613 2008-06-09  Bruno Haible  <bruno@clisp.org>
4614
4615         Work around the Solaris 10 ACE ACLs ABI change.
4616         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
4617         declare if ACL_NO_TRIVIAL is present.
4618         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
4619         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
4620         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
4621         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
4622         define if ACL_NO_TRIVIAL is present.
4623         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
4624         and use the current ABI.
4625         (file_has_acl): Use same #if condition as elsewhere.
4626         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
4627         in use, and use the current ABI.
4628         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
4629         Reported by Jim Meyering.
4630
4631 2008-06-09  Eric Blake  <ebb9@byu.net>
4632
4633         Work around environments that (stupidly) ignore SIGALRM.
4634         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
4635         before using alarm().
4636         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
4637         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
4638         Reported by Ian Beckwith <ianb@erislabs.net>.
4639
4640         Produce autobuild blurb earlier in log.
4641         * modules/autobuild (configure.ac-early): Move AB_INIT here.
4642
4643 2008-06-09  Jim Meyering  <meyering@redhat.com>
4644         and OndÅ™ej Vašík  <ovasik@redhat.com>
4645
4646         utimens.c: correct kernel bug work-around
4647         OndÅ™ej Vašík found that the invalid return value of 280 indicates
4648         failure, not success, and the kernel bug we're trying to work
4649         around affects not just the utimensat call, but also the fallback
4650         futimens call.
4651         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
4652         not success.
4653         [HAVE_FUTIMENS]: Use the same work-around, here.
4654
4655 2008-06-09  Jim Meyering  <meyering@redhat.com>
4656
4657         add more guards around definition of ACE_-related code
4658         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
4659         ALLOW and ACE_OWNER are also defined.
4660
4661 2008-06-08  Bruno Haible  <bruno@clisp.org>
4662
4663         * lib/acl-internal.h: Add me as co-author.
4664         * lib/file-has-acl.c: Likewise.
4665         * lib/set-mode-acl.c: Likewise.
4666         * lib/copy-acl.c: Likewise.
4667
4668 2008-06-08  Bruno Haible  <bruno@clisp.org>
4669
4670         Add support for AIX ACLs.
4671         * lib/acl-internal.h (acl_nontrivial): New declaration.
4672         * lib/file-has-acl.c (acl_nontrivial): New function.
4673         (file_has_acl): Add implementation using AIX 4 ACL API.
4674         * lib/set-mode-acl.c (qset_acl): Likewise.
4675         * lib/copy-acl.c (qcopy_acl): Likewise.
4676
4677 2008-06-08  Bruno Haible  <bruno@clisp.org>
4678
4679         Add support for HP-UX ACLs.
4680         * lib/acl-internal.h (acl_nontrivial): New declaration.
4681         * lib/file-has-acl.c (acl_nontrivial): New function.
4682         (file_has_acl): Add implementation using HP-UX 11 ACL API.
4683         * lib/set-mode-acl.c (qset_acl): Likewise.
4684         * lib/copy-acl.c (qcopy_acl): Likewise.
4685
4686 2008-06-08  Bruno Haible  <bruno@clisp.org>
4687
4688         Add support for Cygwin ACLs.
4689         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
4690         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
4691         the chmod_or_fchmod call.
4692         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
4693
4694 2008-06-08  Bruno Haible  <bruno@clisp.org>
4695
4696         Fix bug with setuid modes in Solaris 10+ code.
4697         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
4698         succeeded, when the mode contains some special bits.
4699
4700 2008-06-08  Bruno Haible  <bruno@clisp.org>
4701
4702         Add support for Solaris 7..10 ACLs.
4703         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
4704         declarations.
4705         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
4706         functions.
4707         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
4708         * lib/set-mode-acl.c (qset_acl): Likewise.
4709         * lib/copy-acl.c (qcopy_acl): Likewise.
4710
4711 2008-06-08  Bruno Haible  <bruno@clisp.org>
4712
4713         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
4714         declaration.
4715         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
4716         (acl_access_nontrivial): Remove MacOS X case.
4717         (file_has_acl): Use acl_extended_nontrivial.
4718         * lib/copy-acl.c (qcopy_acl): Likewise.
4719
4720 2008-06-08  Bruno Haible  <bruno@clisp.org>
4721
4722         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
4723
4724 2008-06-08  Jim Meyering  <meyering@redhat.com>
4725
4726         * modules/acl (Maintainer): Add Bruno Haible.
4727
4728 2008-06-07  Bruno Haible  <bruno@clisp.org>
4729
4730         Improve support for Tru64 ACLs.
4731         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
4732         ACL on OSF/1.
4733
4734 2008-06-07  Bruno Haible  <bruno@clisp.org>
4735
4736         Add support for MacOS X ACLs.
4737         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
4738         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
4739         * lib/set-mode-acl.c (qset_acl): Likewise.
4740         * lib/copy-acl.c (qcopy_acl): Likewise.
4741
4742 2008-06-07  Bruno Haible  <bruno@clisp.org>
4743
4744         Fix memory leak introduced on 2008-05-22.
4745         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
4746         use.
4747
4748 2008-06-07  Bruno Haible  <bruno@clisp.org>
4749
4750         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
4751         to construct an empty ACL.
4752
4753 2008-06-07  Bruno Haible  <bruno@clisp.org>
4754
4755         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
4756         precisely.
4757         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
4758
4759 2008-06-07  Bruno Haible  <bruno@clisp.org>
4760
4761         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
4762         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
4763
4764 2008-06-07  Bruno Haible  <bruno@clisp.org>
4765
4766         * doc/posix-functions/_setjmp.texi: Explain the use of this function
4767         regardless of POSIX.
4768         * doc/posix-functions/_longjmp.texi: Likewise.
4769         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
4770         SystemV platform in this case.
4771
4772 2008-06-06  Eric Blake  <ebb9@byu.net>
4773
4774         Document abort() bugs.
4775         * doc/posix-functions/abort.texi (abort): Mention anomalies.
4776
4777         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
4778         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
4779         sigsetjmp.
4780         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
4781         siglongjmp, but only as a macro.
4782         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
4783         is obsolete.
4784         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
4785
4786         Tweak documentation to cover cygwin argz bugs.
4787         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
4788         argz bug fix; no code change needed since no cygwin releases
4789         occurred between the last fix and the bug being tested.
4790         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
4791         module and recently fixed cygwin bugs.
4792         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
4793         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
4794         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
4795         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
4796         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
4797         Likewise.
4798         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
4799         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
4800         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
4801         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
4802         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
4803         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
4804         Likewise.
4805
4806         Avoid gcc warning on cygwin.
4807         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
4808         !ACL_NO_TRIVIAL]: Avoid unused variable.
4809
4810 2008-06-05  Eric Blake  <ebb9@byu.net>
4811
4812         Be tolerant of UNKNOWN version in gnulib-tool test dir.
4813         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
4814         git-version-gen fails to come up with a version.
4815         Reported by Simon Josefsson.
4816
4817 2008-06-05  Jim Meyering  <meyering@redhat.com>
4818             Paul Eggert  <eggert@cs.ucla.edu>
4819
4820         utimens.c: work around a probable Linux kernel bug
4821         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
4822         appears to be a kernel bug that causes utimensat to return 280
4823         instead of 0, indicating success.
4824
4825 2008-06-04  Bruno Haible  <bruno@clisp.org>
4826
4827         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
4828         2008-06-01 commit.
4829
4830 2008-06-04  Bruno Haible  <bruno@clisp.org>
4831
4832         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
4833         * lib/file-has-acl.c (acl_access_nontrivial): New function.
4834         (file_has_acl): Use it. Save errno afterwards.
4835         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
4836
4837 2008-06-03  Bruno Haible  <bruno@clisp.org>
4838
4839         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
4840         draft code. Simplify #ifs.
4841         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
4842         Put Solaris code after POSIX-draft code. Fix comments regarding
4843         Solaris 10, HP-UX. Mention Cygwin.
4844         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
4845
4846 2008-06-03  Eric Blake  <ebb9@byu.net>
4847
4848         Provide fallback for older kernels.
4849         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
4850         Provide runtime fallback if kernel lacks support.
4851         Reported by Mike Frysinger.
4852
4853 2008-06-02  Bruno Haible  <bruno@clisp.org>
4854
4855         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
4856         it exists.
4857
4858 2008-06-02  Bruno Haible  <bruno@clisp.org>
4859
4860         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
4861         * lib/copy-acl.c (qcopy_acl): Update comment.
4862
4863 2008-06-02  Bruno Haible  <bruno@clisp.org>
4864
4865         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
4866         like ACL APIs.
4867
4868 2008-06-02  Bruno Haible  <bruno@clisp.org>
4869
4870         * tests/test-file-has-acl.sh: Use different code for Cygwin.
4871         * tests/test-set-mode-acl.sh: Likewise.
4872         * tests/test-copy-acl.sh: Likewise.
4873         * tests/test-copy-file.sh: Likewise.
4874
4875 2008-06-02  Bruno Haible  <bruno@clisp.org>
4876
4877         * tests/test-file-has-acl.sh: Remove unused code.
4878
4879 2008-06-01  Bruno Haible  <bruno@clisp.org>
4880
4881         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
4882         (copy_acl): Just a wrapper around qcopy_acl that emits the error
4883         messages.
4884         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
4885
4886 2008-06-01  Bruno Haible  <bruno@clisp.org>
4887
4888         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
4889         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
4890         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
4891         APIs.
4892         * modules/acl-tests (configure.ac): Remove tests now contained in
4893         m4/acl.m4.
4894
4895 2008-06-02  Jim Meyering  <meyering@redhat.com>
4896
4897         announce-gen: use a better key-server host name
4898         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
4899         it may be more consistently reliable.  Suggested by Werner Koch
4900         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
4901
4902 2008-06-01  Bruno Haible  <bruno@clisp.org>
4903
4904         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
4905         Reported by Voroskoi Andras <voroskoi@gmail.com>.
4906
4907 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
4908
4909         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
4910
4911 2008-06-01  Bruno Haible  <bruno@clisp.org>
4912
4913         New ACL tests.
4914         * tests/test-file-has-acl.sh: New file.
4915         * tests/test-file-has-acl.c: New file.
4916         * tests/test-set-mode-acl.sh: New file.
4917         * tests/test-set-mode-acl.c: New file.
4918         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
4919         * tests/test-copy-acl.c: New file.
4920         * modules/acl-tests: New file, based on modules/copy-file-tests.
4921         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
4922         (Depends-on): Add acl-tests.
4923         (configure.ac): Remove checks.
4924         (Makefile.am): Don't create test-sameacls program here any more.
4925
4926 2008-06-01  Bruno Haible  <bruno@clisp.org>
4927
4928         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
4929         * tests/test-sameacls.c: Include progname.h.
4930         (main): Invoke set_program_name. Portability fixes for MacOS X,
4931         Solaris, HP-UX.
4932
4933 2008-06-01  Bruno Haible  <bruno@clisp.org>
4934
4935         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
4936         function.
4937         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
4938
4939 2008-06-01  Bruno Haible  <bruno@clisp.org>
4940
4941         * modules/rpmatch (Depends-on): Add strdup.
4942
4943 2008-06-01  Bruno Haible  <bruno@clisp.org>
4944
4945         * lib/pipe.c: Include unistd-safer.h.
4946         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
4947         * modules/pipe (Depends-on): Add unistd-safer.
4948
4949 2008-05-30  Simon Josefsson  <simon@josefsson.org>
4950
4951         * modules/autobuild (configure.ac): Call AB_INIT.
4952
4953 2008-05-30  Simon Josefsson  <simon@josefsson.org>
4954
4955         * tests/test-getaddrinfo.c: Don't print debug messages by default.
4956         Suggested by Bruno Haible <bruno@clisp.org>.
4957
4958 2008-05-30  Simon Josefsson  <simon@josefsson.org>
4959
4960         * tests/test-base64.c: Cast size_t to unsigned long when invoking
4961         printf.  Use %lu instead of %d.  Reported by Bruno Haible
4962         <bruno@clisp.org>.
4963
4964 2008-05-29  Eric Blake  <ebb9@byu.net>
4965
4966         Prefer new POSIX 200x interfaces over futimesat.
4967         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
4968         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
4969         when available.
4970         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
4971
4972 2008-05-28  Bruno Haible  <bruno@clisp.org>
4973
4974         * modules/stpcpy (License): Change to LGPLv2+.
4975         Requested by David Lutterkort <dlutter@redhat.com>.
4976
4977 2008-05-27  Bruno Haible  <bruno@clisp.org>
4978
4979         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
4980         current mingw.
4981         Reported by Jose E. Marchesi <jemarch@gnu.org>.
4982
4983 2008-05-27  Bruno Haible  <bruno@clisp.org>
4984
4985         * modules/iconv_open (Link): New section, from module 'iconv'.
4986         * modules/striconv (Link): Likewise.
4987         * modules/striconveh (Link): Likewise.
4988         * modules/xstriconv (Link): Likewise.
4989         * modules/unicodeio (Link): Likewise.
4990         * modules/propername (Link): Likewise.
4991         Reported by Jim Meyering.
4992
4993 2008-05-26  Jim Meyering  <meyering@redhat.com>
4994
4995         sha256: do not artificially restrict buffer length to be < 2^32
4996         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
4997         uint32_t to size_t.
4998         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
4999         to match.
5000
5001         avoid unaligned access errors, e.g., on sparc
5002         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
5003         direct access through a possibly-unaligned uint64* pointer.
5004         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
5005         direct access through a possibly-unaligned uint32* pointer.
5006         Prompted by this patch from Tom "spot" Callaway:
5007         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
5008
5009         sha512.c: fix typo in comment
5010         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
5011
5012 2008-05-25  Bruno Haible  <bruno@clisp.org>
5013
5014         * lib/set-mode-acl.c: Renamed from lib/acl.c.
5015         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
5016         (Makefile.am): Update lib_SOURCES.
5017
5018 2008-05-25  Bruno Haible  <bruno@clisp.org>
5019
5020         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
5021
5022 2008-05-25  Jim Meyering  <meyering@redhat.com>
5023
5024         useless-if-before-free: freed expr may have white-space differences
5025         * build-aux/useless-if-before-free: Recognize cases in which the
5026         freed expression differs from the tested one in embedded white
5027         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
5028         $1 was used, so we can't make any regexp shy.  Improved tests now
5029         detect this.
5030
5031         useless-if-before-free: accept white space in the expression.
5032         * build-aux/useless-if-before-free: For now, any white space
5033         in the expression must be identical in the free argument.
5034
5035         useless-if-before-free: efficiency tweak
5036         * build-aux/useless-if-before-free: Make the expression-matching
5037         regexp "shy".
5038         Make the *outer* regexp shy, not the expr-matching one.
5039
5040         update code-in-comment to accept cast of free arg
5041         * build-aux/useless-if-before-free: Update regexp.
5042
5043 2008-05-25  Bruno Haible  <bruno@clisp.org>
5044
5045         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
5046         * modules/copy-file-tests (Files, Makefile.am): Update.
5047         * tests/test-copy-file.c (func_test_copy): Update.
5048
5049 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
5050
5051         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
5052
5053 2008-05-23  Bruno Haible  <bruno@clisp.org>
5054
5055         Improve support for ACLs on OSF/1.
5056         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
5057         Remove fallback for unknown flavors of ACLs.
5058
5059 2008-05-22  Bruno Haible  <bruno@clisp.org>
5060
5061         Add support for ACLs on OSF/1.
5062         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
5063         replacements.
5064         (acl_free_text): New macro fallback.
5065         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
5066         acl_free.
5067         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
5068         acl_free_text function. Require AC_C_INLINE.
5069
5070 2008-05-22  Bruno Haible  <bruno@clisp.org>
5071
5072         Make copy_acl work on MacOS X 10.5.
5073         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
5074         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
5075         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
5076         If MODE_INSIDE_ACL, don't assume that every system has the same text
5077         representation for ACLs as FreeBSD.
5078         * lib/copy-acl.c (copy_acl): Add support for platforms with
5079         !MODE_INSIDE_ACL.
5080         * lib/file-has-acl.c (file_has_acl): Likewise.
5081         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
5082         FreeBSD, MacOS X, or IRIX, respectively.
5083
5084 2008-05-22  Bruno Haible  <bruno@clisp.org>
5085
5086         * lib/acl.h: Don't include <sys/acl.h>.
5087         (GETACLCNT): Move fallback to lib/acl-internal.h.
5088         * lib/acl-internal.h: Include <sys/acl.h> here.
5089         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
5090
5091 2008-05-22  Bruno Haible  <bruno@clisp.org>
5092
5093         Split off copy_acl function to separate file.
5094         * lib/copy-acl.c: New file, extracted from lib/acl.c.
5095         * lib/acl.c (copy_acl): Moved function to separate file.
5096         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
5097         * modules/acl (Files): Add lib/copy-acl.c.
5098         (Makefiles.am): Augment lib_SOURCES.
5099
5100 2008-05-22  Bruno Haible  <bruno@clisp.org>
5101
5102         * modules/copy-file-tests: New file.
5103         * tests/test-copy-file.sh: New file.
5104         * tests/test-copy-file.c: New file.
5105         * tests/test-copy-file-sameacls.c: New file.
5106
5107 2008-05-22  Eric Blake  <ebb9@byu.net>
5108
5109         Avoid gcc warning.
5110         * tests/test-memcmp.c (main): Pass NULL indirectly.
5111
5112 2008-05-21  Bruno Haible  <bruno@clisp.org>
5113
5114         Add reference doc about ACLs.
5115         * doc/acl-resources.txt: New file.
5116         * doc/acl-cygwin.txt: New file.
5117
5118 2008-05-21  Bruno Haible  <bruno@clisp.org>
5119
5120         Avoid one more warning from gcc.
5121         * lib/vasnprintf.c (IF_LINT): Update comments.
5122         (VASNPRINTF): Use it also for the 'prefix' array initializer.
5123
5124 2008-05-21  Jim Meyering  <meyering@redhat.com>
5125
5126         avoid a warning from gcc
5127         * lib/vasnprintf.c (IF_LINT): Define.
5128         (scale10_round_decimal_long_double):
5129         Use it to avoid a "may be used uninitialized" warning.
5130         (scale10_round_decimal_double): Likewise.
5131
5132 2008-05-21  Simon Josefsson  <simon@josefsson.org>
5133
5134         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
5135         declared.
5136
5137 2008-05-20  Bruno Haible  <bruno@clisp.org>
5138
5139         * tests/test-memcmp.c (main): Test also the sign of the result. Test
5140         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
5141
5142 2008-05-20  Simon Josefsson  <simon@josefsson.org>
5143
5144         * modules/memcmp-tests: New file.
5145         * tests/test-memcmp.c: New file.
5146
5147 2008-05-19  Bruno Haible  <bruno@clisp.org>
5148
5149         * modules/propername (Notice, configure.ac): Put quoted "..." into
5150         --keyword option.
5151         * lib/propername.h: Update comments accordingly.
5152         Reported by Eric Blake.
5153
5154 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
5155
5156         * modules/getpass-gnu (Depends-on): Add fseeko.
5157
5158 2008-05-19  Simon Josefsson  <simon@josefsson.org>
5159
5160         * modules/base64-tests: New file.
5161
5162 2008-05-19  Bo Borgerson <gigabo@gmail.com>
5163
5164         * lib/base64.c (base64_decode_ctx): If a decode context structure
5165         was passed in use it to ignore newlines.  If a context structure
5166         was _not_ passed in, continue to treat newlines as garbage (this
5167         is the historical behavior).  Formerly base64_decode.
5168         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
5169         takes a decode context structure.
5170         * lib/base64.h (base64_decode): Macro for four-argument calls.
5171         (base64_decode_alloc): Likewise.
5172         * lib/base64.c (base64_decode_ctx): If a decode context structure
5173         was passed in use it to ignore newlines.  If a context structure
5174         was _not_ passed in, continue to treat newlines as garbage (this
5175         is the historical behavior).  Formerly base64_decode.
5176         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
5177         takes a decode context structure.
5178         * lib/base64.h (base64_decode): Macro for four-argument calls.
5179         (base64_decode_alloc): Likewise.
5180
5181 2008-05-19  Jim Meyering  <meyering@redhat.com>
5182
5183         avoid a warning from gcc
5184         * lib/trim.c (IF_LINT): Define.
5185         (trim2): Use it to avoid a "may be used uninitialized" warning.
5186
5187         Fix doc typo.
5188         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
5189
5190 2008-05-19  Bruno Haible  <bruno@clisp.org>
5191
5192         * doc/glibc-functions/getpass.texi: Document limits of other
5193         implementations.
5194
5195 2008-05-19  Simon Josefsson  <simon@josefsson.org>
5196             Bruno Haible <bruno@clisp.org>
5197
5198         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
5199
5200 2008-05-18  Bruno Haible  <bruno@clisp.org>
5201
5202         * modules/propername: New file, from GNU gettext.
5203         * lib/propername.h: New file, from GNU gettext.
5204         * lib/propername.c: New file, from GNU gettext.
5205         * MODULES.html.sh (Internationalization functions): Add propername.
5206
5207 2008-05-16  Jim Meyering  <meyering@redhat.com>
5208             Bruno Haible  <bruno@clisp.org>
5209
5210         Avoid some warnings from "gcc -Wshadow".
5211         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
5212
5213 2008-05-15  Eric Blake  <ebb9@byu.net>
5214
5215         Extend previous patch to cygwin 1.7.0.
5216         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
5217         fast implementation in cygwin >= 1.7.0.
5218         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
5219         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
5220
5221 2008-05-15  Bruno Haible  <bruno@clisp.org>
5222
5223         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
5224         implementation in glibc >= 2.9.
5225         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
5226         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
5227
5228 2008-05-15  Bruno Haible  <bruno@clisp.org>
5229
5230         * MODULES.html.sh (Internationalization functions): Remove linebreak.
5231         (Unicode string functions): Add unilbrk/*.
5232         Reported by Karl Berry.
5233
5234 2008-05-15  Eric Blake  <ebb9@byu.net>
5235
5236         Fix violation of <stdbool.h> replacement in regex.
5237         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
5238         * lib/regexec.c (re_search_internal): Likewise.
5239         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
5240
5241 2008-05-15  Jim Meyering  <meyering@redhat.com>
5242
5243         avoid distracting test output when git or cvs is not found
5244         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
5245         * tests/test-vc-list-files-git.sh: Likewise.
5246
5247 2008-05-15  Eric Blake  <ebb9@byu.net>
5248
5249         Glibc finally accepted the memmem speedup code, bugzilla #5514.
5250         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
5251         glibc version.
5252         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
5253         * doc/posix-functions/strstr.texi (strstr): Likewise.
5254         * lib/str-two-way.h (MAX): Sychronize with glibc.
5255
5256 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
5257
5258         * lib/regcomp.c (optimize_utf8): Add a note on why we test
5259         opr.ctx_type.
5260         (calc_first): Initialize constraint field.
5261         (duplicate_node_closure): Use it instead of special casing ANCHORS.
5262         Fix grammar.
5263         (duplicate_node): Merge constraint field for all node types.
5264         (calc_eclosure_iter): Look at constraint field for all node types.
5265         * lib/regex_internal.c (create_cd_newstate): Don't look at
5266         opr.ctx_type.
5267
5268 2008-05-14  Bruno Haible  <bruno@clisp.org>
5269
5270         Help GCC to do better code generation.
5271         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
5272         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
5273         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
5274         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
5275         Declare with attribute 'malloc' if supported.
5276
5277 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
5278
5279         use "echo STR|wc -c" rather than unportable "expr length STR"
5280         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
5281         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
5282
5283 2008-05-14  Jim Meyering  <meyering@redhat.com>
5284
5285         use dd ibs=$n count=1 ... rather than less-portable head -c$n
5286         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
5287         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
5288         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
5289         via Collin Lasse.
5290
5291 2008-05-14  Eric Blake  <ebb9@byu.net>
5292
5293         Avoid quadratic growth in gl_LIBSOURCES.
5294         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
5295         Suggested by Bruno Haible.
5296
5297         Test xmemdup0.
5298         * modules/xmemdup0-tests: New file.
5299         * tests/test-xmemdup0.c: Likewise.
5300
5301 2008-05-13  Eric Blake  <ebb9@byu.net>
5302
5303         Split xmemdup0 into its own module.
5304         * modules/xmemdup0: New file.
5305         * lib/xmemdup0.h: Likewise.
5306         * lib/xmemdup0.c: Likewise.
5307         * MODULES.html.sh (Memory management functions): Add xmemdup0.
5308         * lib/xalloc.h (xmemdup0): Remove.
5309         * lib/xmalloc.c (xmemdup0): Likewise.
5310
5311 2008-05-13  Eric Blake  <ebb9@byu.net>
5312             Bruno Haible  <bruno@clisp.org>
5313
5314         Reduce number of forks required during autoconf.
5315         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
5316         and gl_LIBSOURCES_DIR.
5317         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
5318         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
5319         m4_syscmd per file.
5320         <m4_foreach_w>: Move...
5321         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
5322
5323 2008-05-13  Eric Blake  <ebb9@byu.net>
5324
5325         * gnulib-tool: Fix various comment typos.
5326
5327 2008-05-12  Bruno Haible  <bruno@clisp.org>
5328
5329         Tailor the linebreaking algorithm.
5330         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
5331
5332 2008-05-12  Bruno Haible  <bruno@clisp.org>
5333
5334         Update to Unicode 5.0.0.
5335         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
5336         LBP_JV, LBP_JT. Redistribute values.
5337         (unilbrk_table): Change size.
5338         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
5339         Unicode TR#14 rev. 22.
5340         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
5341         LBP_JV, LBP_JT. Redistribute values.
5342         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
5343         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
5344         Update.
5345         * lib/unilbrk/lbrkprop1.h: Regenerated.
5346         * lib/unilbrk/lbrkprop2.h: Regenerated.
5347         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
5348         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
5349         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
5350         Likewise.
5351         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
5352         Likewise.
5353         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
5354         result.
5355         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
5356         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
5357         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
5358         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
5359         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
5360         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
5361
5362 2008-05-11  Bruno Haible  <bruno@clisp.org>
5363
5364         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
5365
5366 2008-05-11  Bruno Haible  <bruno@clisp.org>
5367
5368         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
5369         * modules/unilbrk/gen-lbrk: New file.
5370
5371 2008-05-11  Bruno Haible  <bruno@clisp.org>
5372
5373         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
5374         * m4/sha512.m4 (gl_SHA512): Likewise.
5375
5376 2008-05-11  Jim Meyering  <meyering@redhat.com>
5377
5378         New modules: crypto/sha256, crypto/sha512 (from coreutils)
5379         * modules/crypto/sha256: New file.
5380         * modules/crypto/sha512: Likewise.
5381         * lib/sha256.c: Likewise.
5382         * lib/sha256.h: Likewise.
5383         * lib/sha512.c: Likewise.
5384         * lib/sha512.h: Likewise.
5385         * lib/u64.h: Likewise.
5386         * m4/sha256.m4: Likewise.
5387         * m4/sha512.m4: Likewise.
5388         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
5389
5390 2008-05-10  Bruno Haible  <bruno@clisp.org>
5391
5392         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
5393         (Input/Output <stdio.h>): Add xprintf.
5394         (Signal handling <signal.h>): Add strsignal.
5395         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
5396         (Core language properties): Add func.
5397         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
5398         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
5399         strings.
5400         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
5401         (Input/output): New section.
5402         (File system functions): Add openat-die, stat-macros.
5403         (Networking functions): Add sockets.
5404         (Unicode string functions): Add unictype/*.
5405         (Support for building libraries and executables): Add gperf.
5406         (Support for building documentation): Add agpl-3.0.
5407         (Misc): Add nocrash.
5408
5409 2008-05-10  Bruno Haible  <bruno@clisp.org>
5410
5411         * modules/unictype/gen-ctype: New file.
5412
5413 2008-05-10  Jim Meyering  <meyering@redhat.com>
5414
5415         Make chdir-safer.c more efficient on a system with no symlinks.
5416         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
5417         also if ELOOP is zero.  Suggested by Bruno Haible.
5418
5419         Make chdir-safer.c slightly safer.
5420         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
5421         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
5422
5423         Avoid compile failure on systems without ELOOP (like mingw).
5424         * lib/chdir-safer.c (ELOOP): Define if not already defined.
5425         Reported by Bruno Haible.
5426
5427 2008-05-10  Bruno Haible  <bruno@clisp.org>
5428
5429         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
5430         (is_utf8_encoding): Use a case-insensitive comparison.
5431         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
5432         streq.
5433
5434 2008-05-10  Bruno Haible  <bruno@clisp.org>
5435
5436         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
5437         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
5438         * lib/unilbrk/ulc-common.h (iconv_string_length,
5439         iconv_string_keeping_offsets): Remove declarations.
5440         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
5441         Don't include <iconv.h>, streq.h, xsize.h.
5442         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
5443         conversion.
5444         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
5445         <iconv.h>, streq.h, xsize.h.
5446         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
5447         conversion.
5448         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
5449         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
5450         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
5451         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
5452
5453 2008-05-10  Bruno Haible  <bruno@clisp.org>
5454
5455         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
5456         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
5457
5458         * modules/unilbrk/u32-width-linebreaks-tests: New file.
5459         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
5460
5461         * modules/unilbrk/u16-width-linebreaks-tests: New file.
5462         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
5463
5464         * modules/unilbrk/u8-width-linebreaks-tests: New file.
5465         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
5466
5467         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
5468         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
5469
5470         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
5471         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
5472
5473         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
5474         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
5475
5476         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
5477         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
5478
5479 2008-05-10  Bruno Haible  <bruno@clisp.org>
5480
5481         Split up 'linebreak' module.
5482         * lib/unilbrk.h: New file, based on lib/linebreak.h.
5483         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
5484         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
5485         modifications.
5486         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
5487         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
5488         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
5489         lib/linebreak.c.
5490         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
5491         lib/linebreak.c.
5492         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
5493         lib/linebreak.c.
5494         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
5495         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
5496         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
5497         lib/linebreak.c.
5498         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
5499         lib/linebreak.c.
5500         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
5501         lib/linebreak.c.
5502         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
5503         lib/linebreak.c.
5504         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
5505         lib/linebreak.c.
5506         * modules/unilbrk/base: New file.
5507         * modules/unilbrk/tables: New file.
5508         * modules/unilbrk/u8-possible-linebreaks: New file.
5509         * modules/unilbrk/u16-possible-linebreaks: New file.
5510         * modules/unilbrk/u32-possible-linebreaks: New file.
5511         * modules/unilbrk/ulc-common: New file.
5512         * modules/unilbrk/ulc-possible-linebreaks: New file.
5513         * modules/unilbrk/u8-width-linebreaks: New file.
5514         * modules/unilbrk/u16-width-linebreaks: New file.
5515         * modules/unilbrk/u32-width-linebreaks: New file.
5516         * modules/unilbrk/ulc-width-linebreaks: New file.
5517         * lib/linebreak.h: Remove file.
5518         * lib/linebreak.c: Remove file.
5519         * m4/linebreak.m4: Remove file.
5520         * modules/linebreak: Remove file.
5521         * NEWS: Mention the changes.
5522
5523 2008-05-09  Eric Blake  <ebb9@byu.net>
5524
5525         Add xmemdup0.
5526         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
5527         implementation.
5528         * lib/xmalloc.c (xmemdup0): New C implementation.
5529
5530 2008-05-08  Bruno Haible  <bruno@clisp.org>
5531
5532         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
5533
5534 2008-05-07  Eric Blake  <ebb9@byu.net>
5535
5536         Support cross-compilation of <wctype.h>.
5537         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
5538         AC_CACHE_CHECK.
5539
5540 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
5541
5542         * build-aux/vc-list-files: Add support for bzr.
5543
5544 2008-05-03  Jim Meyering  <meyering@redhat.com>
5545
5546         avoid failed assertion with tight malloc
5547         * tests/test-getndelim2.c: Correct an off-by-one assertion.
5548
5549 2008-05-03  Simon Josefsson  <simon@josefsson.org>
5550
5551         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
5552         are needed from arpa/inet.h.
5553         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
5554         Reported by Bruno Haible.
5555
5556 2008-05-02  Jim Meyering  <meyering@redhat.com>
5557
5558         avoid compilation error on FreeBSD 6
5559         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
5560
5561 2008-05-01  Jim Meyering  <meyering@redhat.com>
5562
5563         useless-if-before-free: correct --help's exit status description
5564         * build-aux/useless-if-before-free (usage): Like grep, exit 0
5565         for one or more matches, etc.  Reported by Bruno Haible.
5566
5567         vc-list-files: make the stand-alone gnulib test work
5568         * modules/vc-list-files-tests (configure.ac):
5569         Define and AC_SUBST abs_aux_dir.
5570         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
5571         $(abs_top_srcdir) to each script and having each of them
5572         duplicate the work of setting PATH, set PATH here, using
5573         the new variable, abs_aux_dir instead.
5574         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
5575         * tests/test-vc-list-files-git.sh: Likewise.
5576         Reported by Bruno Haible.
5577
5578 2008-05-01  Bruno Haible  <bruno@clisp.org>
5579
5580         * lib/getndelim2.c (getndelim2): Fix newsize computation during
5581         reallocation. Rename 'done' to 'found_delimiter'.
5582
5583 2008-05-01  Jim Meyering  <meyering@redhat.com>
5584
5585         vc-list-files: accommodate /bin/sh like the one from Solaris 10
5586         * build-aux/vc-list-files: Use `...`, not $(...).
5587
5588 2008-04-30  Jim Meyering  <meyering@redhat.com>
5589
5590         add tests for vc-list-files
5591         * modules/vc-list-files-tests: New module.
5592         * tests/test-vc-list-files-cvs.sh: New file.
5593         * tests/test-vc-list-files-git.sh: New file.
5594
5595         avoid a warning from gcc
5596         * lib/getndelim2.c (IF_LINT): Define.
5597         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
5598
5599         vc-list-files: work properly with build-aux/cvsu, too
5600         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
5601         to all cvs-based clauses.
5602
5603         vc-list-files: work properly in the CVS+awk case, too
5604         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
5605
5606         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
5607         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
5608         take more than one file argument, so .  Add quotes, just in case $dir
5609         ever contains a shell meta-character.  Prompted by Soren Hansen in
5610         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
5611
5612 2008-04-29  Eric Blake  <ebb9@byu.net>
5613
5614         Optimize getndelim2 to use block operations when possible.
5615         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
5616         freadseek, and memchr2.
5617         * lib/getndelim2.c (getndelim2): Use them for block reads.
5618
5619 2008-04-29  Bruno Haible  <bruno@clisp.org>
5620
5621         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
5622         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
5623         * modules/inet_ntop (Depends-on): Add extensions.
5624         * modules/inet_pton (Depends-on): Likewise.
5625         Reported by Simon Josefsson.
5626
5627 2008-04-29  Jim Meyering  <meyering@redhat.com>
5628
5629         When the is more than one match in a block, match all of them.
5630         * build-aux/useless-if-before-free: Iterate through each block
5631         until there are no more matches.
5632
5633         Fix broken useless-if-before-free script.
5634         * build-aux/useless-if-before-free: Fix typo: missing "?" after
5635         the expression to match cast of argument to free-like function.
5636
5637 2008-04-29  Eric Blake  <ebb9@byu.net>
5638
5639         Use new header.
5640         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
5641
5642 2008-04-29  Jim Meyering  <meyering@redhat.com>
5643
5644         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
5645         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
5646         by gnulib to exist and to declare e.g., inet_ntop.
5647         Don't include "inet_ntop.h", now removed.
5648
5649         * m4/arpa_inet_h.m4: Remove trailing blanks.
5650
5651 2008-04-29  Eric Blake  <ebb9@byu.net>
5652
5653         Silence valgrind on safe reads beyond potential array bounds.
5654         * lib/rawmemchr.valgrind: New file.
5655         * lib/strchrnul.valgrind: Likewise.
5656         * modules/rawmemchr (Files): Distribute new file.
5657         * modules/strchrnul (Files): Likewise.
5658         Suggested by Bruno Haible.
5659
5660 2008-04-29  Bruno Haible  <bruno@clisp.org>
5661
5662         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
5663         (inet_ntop, inet_pton): Change portability warning's wording.
5664         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
5665         Invoke gl_CHECK_NEXT_HEADERS.
5666         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
5667         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
5668         set ARPA_INET_H.
5669         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
5670         * modules/arpa_inet (Description): No longer only for systems that
5671         lack it.
5672         (Depends-on): Add include_next.
5673         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
5674         HAVE_ARPA_INET_H.
5675
5676 2008-04-29  Jim Meyering  <meyering@redhat.com>
5677
5678         * modules/mkdir (License): Re-license as LGPLv2+.
5679
5680 2008-04-29  Bruno Haible  <bruno@clisp.org>
5681
5682         * modules/rawmemchr (Maintainer): Set to Eric.
5683         * modules/strchrnul (Maintainer): Likewise.
5684
5685 2008-04-29  Simon Josefsson  <simon@josefsson.org>
5686
5687         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
5688         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
5689
5690         * modules/arpa_inet (arpa/inet.h): Use them.
5691
5692 2008-04-28  Eric Blake  <ebb9@byu.net>
5693
5694         Test getndelim2.
5695         * modules/getndelim2-tests: New file.
5696         * tests/test-getndelim2.c: Likewise.
5697         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
5698         stream.
5699         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
5700
5701         * MODULES.html.sh: Document new module.
5702
5703 2008-04-20  Bruno Haible  <bruno@clisp.org>
5704
5705         * lib/c-stack.c (die): Use raise.
5706         * modules/c-stack (Depends-on): Add raise.
5707
5708 2008-04-28  Bruno Haible  <bruno@clisp.org>
5709
5710         Expect rpmatch to be declared.
5711         * lib/yesno.c (rpmatch): Remove declaration.
5712
5713         Declare rpmatch.
5714         * lib/stdlib.in.h (rpmatch): New declaration.
5715         * lib/rpmatch.c: Include <stdlib.h> first.
5716         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
5717         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
5718         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
5719         HAVE_RPMATCH.
5720         * modules/rpmatch (Depends-on): Add stdlib, extensions.
5721         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
5722         (Include): Set to <stdlib.h>.
5723         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
5724         HAVE_RPMATCH.
5725         * NEWS: Document the change.
5726
5727 2008-04-28  Bruno Haible  <bruno@clisp.org>
5728
5729         Change rpmatch to use nl_langinfo when appropriate.
5730         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
5731         (N_): New macro.
5732         (localized_pattern): New function/macro.
5733         (try): Remove match, nomatch arguments. Copy the pattern into safe
5734         memory before caching it.
5735         (rpmatch): Use localized_pattern. Add translator comments.
5736         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
5737         Suggested by Eric Blake.
5738         * modules/rpmatch (Depends-on): Add stdbool.
5739
5740 2008-04-28  Eric Blake  <ebb9@byu.net>
5741
5742         Add rawmemchr module, matching glibc.
5743         * modules/string (Makefile.am): New indicator.
5744         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
5745         * lib/string.in.h (rawmemchr): Declare when appropriate.
5746         * modules/rawmemchr: New file.
5747         * m4/rawmemchr.m4: Likewise.
5748         * lib/rawmemchr.c: Likewise.
5749         * modules/rawmemchr-tests: Likewise.
5750         * tests/test-rawmemchr.c: Likewise.
5751         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
5752         module.
5753         * modules/strchrnul (Depends-on): Add rawmemchr.
5754         * lib/strchrnul.c (strchrnul): Optimize a corner case.
5755
5756         Whitespace cleanup.
5757         * tests/test-strchrnul.c: Reindent.
5758         * lib/strchrnul.c: Likewise.
5759
5760         Optimize and test strchrnul.
5761         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
5762         * modules/strchrnul-tests: New file.
5763         * tests/test-strchrnul.c: Likewise.
5764
5765         Remove intprops dependency.
5766         * modules/memchr (Depends-on): Remove intprops.
5767         * modules/memrchr (Depends-on): Likewise.
5768         * modules/memchr2 (Depends-on): Likewise.
5769         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
5770         * lib/memrchr.c (__memrchr): Likewise.
5771         * lib/memrchr2.c (memchr2): Likewise.
5772         Reported by Simon Josefsson.
5773
5774 2008-04-28  Simon Josefsson  <simon@josefsson.org>
5775
5776         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
5777         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
5778
5779 2008-04-28  Simon Josefsson  <simon@josefsson.org>
5780
5781         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
5782
5783         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
5784
5785         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
5786
5787         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
5788         declarations.
5789         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
5790
5791         * m4/inet_pton.m4: Don't check for header files.
5792
5793         * m4/inet_ntop.m4: Don't check for header files.
5794
5795 2008-04-28  Simon Josefsson  <simon@josefsson.org>
5796
5797         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
5798         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
5799         trigger for cygwin).
5800         Reported by Bruno Haible  <bruno@clisp.org>.
5801
5802 2008-04-28  Bruno Haible  <bruno@clisp.org>
5803
5804         * doc/posix-functions/strdup.texi: Mention mingw problem.
5805
5806 2008-04-27  Bruno Haible  <bruno@clisp.org>
5807
5808         * modules/stat-time-tests (Depends-on): Add sleep.
5809         * tests/test-stat-time.c (force_unlink): New function.
5810         (cleanup): Use it.
5811         (test_mtime): Remove the ctime related tests.
5812         (test_ctime): New function, containing the ctime related tests.
5813         (main): Call test_ctime, except on native Windows platforms.
5814
5815 2008-04-27  Bruno Haible  <bruno@clisp.org>
5816
5817         * lib/rpmatch.c (rpmatch): Add some comments.
5818         Reported by James Youngman <jay@gnu.org>.
5819
5820 2008-04-27  Bruno Haible  <bruno@clisp.org>
5821
5822         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
5823         quiet NaNs.
5824
5825 2008-04-27  Bruno Haible  <bruno@clisp.org>
5826
5827         Make test-yesno.sh work on mingw.
5828         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
5829         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
5830         (main): Set stdin to binary mode.
5831         * modules/yesno-tests (Depends-on): Add binary-io.
5832
5833 2008-04-27  Bruno Haible  <bruno@clisp.org>
5834
5835         Fix 'isfinite' on x86, x86_64, ia64 platforms.
5836         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
5837         argument that lie outside the IEEE 854 domain.
5838         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
5839         (gl_ISFINITE): Use it.
5840         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
5841
5842 2008-04-27  Bruno Haible  <bruno@clisp.org>
5843
5844         Allow local renaming in config.h.
5845         * lib/memrchr.c (memrchr): Don't undefine outside libc.
5846
5847 2008-04-27  Bruno Haible  <bruno@clisp.org>
5848
5849         * lib/memchr.c (__memchr): Change type of 'i'.
5850         * lib/memchr2.c (memchr2): Likewise.
5851
5852 2008-04-26  Eric Blake  <ebb9@byu.net>
5853         and Bruno Haible  <bruno@clisp.org>
5854
5855         Optimize and test memrchr.
5856         * modules/memrchr (Depends-on): Add intprops.
5857         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
5858         * modules/memrchr-tests: New file.
5859         * tests/test-memrchr.c: New file.
5860
5861 2008-04-26  Bruno Haible  <bruno@clisp.org>
5862
5863         Add tentative support for DragonFly BSD.
5864         * lib/stdio-impl.h: Add macros for DragonFly BSD.
5865         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
5866         fp.
5867         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
5868         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
5869         * lib/fpurge.c (fpurge): Likewise.
5870         * lib/freadable.c (freaadable): Likewise.
5871         * lib/freadahead.c (freadahead): Likewise.
5872         * lib/freading.c (freading): Likewise.
5873         * lib/freadptr.c (freadptr): Likewise.
5874         * lib/freadseek.c (freadptrinc): Likewise.
5875         * lib/fseeko.c (fseeko): Likewise.
5876         * lib/fseterr.c (fseterr): Likewise.
5877         * lib/fwritable.c (fwritable): Likewise.
5878         * lib/fwriting.c (fwriting): Likewise.
5879
5880 2008-04-26  Bruno Haible  <bruno@clisp.org>
5881
5882         * lib/stdio-impl.h: New file.
5883         * lib/fbufmode.c: Include stdio-impl.h.
5884         (fbufmode): Use fp_, remove redundant #defines.
5885         * lib/fflush.c: Include stdio-impl.h.
5886         (clear_ungetc_buffer): Remove redundant #defines.
5887         * lib/fpurge.c: Include stdio-impl.h.
5888         (fpurge): Remove redundant #defines.
5889         * lib/freadable.c: Include stdio-impl.h.
5890         (freadable): Remove redundant #defines.
5891         * lib/freadahead.c: Include stdio-impl.h.
5892         (freadahead): Remove redundant #defines.
5893         * lib/freading.c: Include stdio-impl.h.
5894         (freading): Remove redundant #defines.
5895         * lib/freadptr.c: Include stdio-impl.h.
5896         (freadptr): Remove redundant #defines.
5897         * lib/freadseek.c: Include stdio-impl.h.
5898         (freadptrinc): Remove redundant #defines.
5899         * lib/fseeko.c: Include stdio-impl.h.
5900         (rpl_fseeko): Remove redundant #defines.
5901         * lib/fseterr.c: Include stdio-impl.h.
5902         (fseterr): Remove redundant #defines.
5903         * lib/fwritable.c: Include stdio-impl.h.
5904         (fwritable: Remove redundant #defines.
5905         * lib/fwriting.c: Include stdio-impl.h.
5906         (fwriting): Remove redundant #defines.
5907         * modules/fbufmode (Files): Add lib/stdio-impl.h.
5908         * modules/fflush (Files): Likewise.
5909         * modules/fpurge (Files): Likewise.
5910         * modules/freadable (Files): Likewise.
5911         * modules/freadahead (Files): Likewise.
5912         * modules/freading (Files): Likewise.
5913         * modules/freadptr (Files): Likewise.
5914         * modules/freadseek (Files): Likewise.
5915         * modules/fseeko (Files): Likewise.
5916         * modules/fseterr (Files): Likewise.
5917         * modules/fwritable (Files): Likewise.
5918         * modules/fwriting (Files): Likewise.
5919
5920 2008-04-26  Bruno Haible  <bruno@clisp.org>
5921
5922         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
5923         restore_seek_optimization, update_fpos_cache): New functions, extracted
5924         from rpl_fflush.
5925         (rpl_fflush): Use them.
5926         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
5927         (gl_REPLACE_FFLUSH): Use it.
5928
5929 2008-04-26  Bruno Haible  <bruno@clisp.org>
5930
5931         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
5932         on Solaris.
5933         * tests/test-xstrtoimax.sh: Likewise.
5934         * tests/test-xstrtoumax.sh: Likewise.
5935         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
5936
5937 2008-04-26  Bruno Haible  <bruno@clisp.org>
5938
5939         * modules/memchr-tests: New file.
5940         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
5941
5942 2008-04-26  Eric Blake  <ebb9@byu.net>
5943             Bruno Haible  <bruno@clisp.org>
5944
5945         * lib/memchr.c: Include intprops.h.
5946         (__memchr): Optimize parallel detection of matching bytes. Rename local
5947         variables. Add explanatory comments.
5948
5949 2008-04-26  Bruno Haible  <bruno@clisp.org>
5950
5951         Fix module 'memchr', broken since 2000-10-28.
5952         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
5953
5954 2008-04-26  Bruno Haible  <bruno@clisp.org>
5955
5956         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
5957         comments.
5958
5959 2008-04-25  Eric Blake  <ebb9@byu.net>
5960
5961         Use native fstatat on cygwin 1.7.0.
5962         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
5963         first.
5964
5965 2008-04-23  Eric Blake  <ebb9@byu.net>
5966
5967         Improve memchr2 performance.
5968         * lib/memchr2.c (memchr2): Further optimize parallel detection of
5969         NUL bytes.
5970         * modules/memchr2 (Depends-on): Use intprops.h.
5971
5972 2008-04-23  Simon Josefsson  <simon@josefsson.org>
5973
5974         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
5975         an inline function instead of a CPP macro.  Patch by Ben Pfaff
5976         <blp@cs.stanford.edu>.
5977
5978 2008-04-23  Simon Josefsson  <simon@josefsson.org>
5979
5980         * lib/arpa_inet.in.h: New file.
5981
5982         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
5983         (Makefile.am): Sed in substitute header file.
5984
5985         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
5986         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
5987
5988         * modules/inet_ntop (configure.ac): Use
5989         gl_ARPA_INET_MODULE_INDICATOR.
5990
5991         * modules/inet_pton (configure.ac): Use
5992         gl_ARPA_INET_MODULE_INDICATOR.
5993
5994 2008-04-22  Jim Meyering  <meyering@redhat.com>
5995
5996         * modules/verify (License): Re-license as LGPLv2+.
5997
5998 2008-04-22  Simon Josefsson  <simon@josefsson.org>
5999
6000         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
6001         parameter to void* as per POSIX standard (MinGW uses char*).
6002
6003 2008-04-21  Bruno Haible  <bruno@clisp.org>
6004
6005         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
6006         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
6007         Define to replacements if REPLACE_ISWCNTRL is 1.
6008         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
6009         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
6010         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
6011         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
6012         what it fixes.
6013         * doc/posix-functions/iswalpha.texi: Likewise.
6014         * doc/posix-functions/iswblank.texi: Likewise.
6015         * doc/posix-functions/iswcntrl.texi: Likewise.
6016         * doc/posix-functions/iswdigit.texi: Likewise.
6017         * doc/posix-functions/iswgraph.texi: Likewise.
6018         * doc/posix-functions/iswlower.texi: Likewise.
6019         * doc/posix-functions/iswprint.texi: Likewise.
6020         * doc/posix-functions/iswpunct.texi: Likewise.
6021         * doc/posix-functions/iswspace.texi: Likewise.
6022         * doc/posix-functions/iswupper.texi: Likewise.
6023         * doc/posix-functions/iswxdigit.texi: Likewise.
6024         Reported by Alain Guibert.
6025
6026 2008-04-21  Bruno Haible  <bruno@clisp.org>
6027
6028         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
6029         Patch by Alain Guibert.
6030
6031 2008-04-21  Bruno Haible  <bruno@clisp.org>
6032
6033         Fix test failures on mingw.
6034         * tests/test-xstrtol.c (print_no_progname): New function.
6035         (main): Install it in error_print_progname hook.
6036         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
6037         * tests/test-xstrtoimax.sh: Likewise.
6038         * tests/test-xstrtoumax.sh: Likewise.
6039
6040 2008-04-21  Bruno Haible  <bruno@clisp.org>
6041
6042         Fix test failure on mingw.
6043         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
6044
6045 2008-04-21  Bruno Haible  <bruno@clisp.org>
6046
6047         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
6048         Actually assign a value.
6049
6050 2008-04-20  Bruno Haible  <bruno@clisp.org>
6051
6052         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
6053         take 2.
6054         * lib/canonicalize.c (canonicalize_file_name): Elide if the
6055         'canonicalize-lgpl' module is also used.
6056         * lib/canonicalize-lgpl.c: Undo last change.
6057         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
6058
6059 2008-04-20  Bruno Haible  <bruno@clisp.org>
6060
6061         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
6062         config.h. Provide _mkdir based fallback for mingw.
6063         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
6064         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
6065         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
6066         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
6067         rather than defining mkdir in config.h.
6068         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
6069         (gl_SYS_STAT_H_DEFAULTS): New macro.
6070         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
6071         HAVE_IO_H any more.
6072         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
6073         HAVE_DECL_MKDIR and HAVE_IO_H.
6074
6075 2008-04-20  Bruno Haible  <bruno@clisp.org>
6076
6077         * lib/isapipe.c: Port to native Windows platforms.
6078
6079 2008-04-20  Bruno Haible  <bruno@clisp.org>
6080
6081         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
6082
6083 2008-04-21  Eric Blake  <ebb9@byu.net>
6084
6085         Work around preprocessors that don't handle UINTMAX_MAX.
6086         * lib/memchr2.c (memchr2): Avoid embedded #if.
6087         Reported by Alain Guibert, fix suggested by Bruno Haible.
6088
6089 2008-04-21  Simon Josefsson  <simon@josefsson.org>
6090
6091         * doc/posix-functions/strftime.texi (strftime): Explain better
6092         Windows incompatibility.  Suggested by Micah Cowan
6093         <micah@cowan.name>.
6094
6095 2008-04-20  Bruno Haible  <bruno@clisp.org>
6096
6097         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
6098         unistr/u8-mblen.
6099
6100 2008-04-20  Bruno Haible  <bruno@clisp.org>
6101
6102         Fix test failure on platforms with non-GNU iconv.
6103         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
6104         (U_TO_U8): Use it, rather than u16_to_u8.
6105         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
6106         units at the end of the input string.
6107         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
6108
6109 2008-04-20  Bruno Haible  <bruno@clisp.org>
6110
6111         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
6112         when the resulting length is 0.
6113         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
6114
6115 2008-04-20  Bruno Haible  <bruno@clisp.org>
6116
6117         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
6118         works.
6119         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
6120
6121 2008-04-20  Bruno Haible  <bruno@clisp.org>
6122
6123         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
6124         * modules/tsearch-tests (configure.ac): Test for initstate function.
6125
6126 2008-04-20  Bruno Haible  <bruno@clisp.org>
6127
6128         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
6129         for nlink_t if missing.
6130         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
6131
6132 2008-04-19  Bruno Haible  <bruno@clisp.org>
6133
6134         Work around snprintf bug on Linux libc5.
6135         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
6136         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
6137         gl_SNPRINTF_SIZE1.
6138         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
6139         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
6140         that test failed.
6141         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
6142         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
6143         * modules/snprintf (Files): Add m4/printf.m4.
6144         * modules/vsnprintf (Files): Likewise.
6145         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
6146         * doc/posix-functions/vsnprintf.texi: Likewise.
6147
6148 2008-04-19  Bruno Haible  <bruno@clisp.org>
6149
6150         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
6151         from 0.0058 to less than 10^-7.
6152
6153 2008-04-19  Bruno Haible  <bruno@clisp.org>
6154
6155         Fix rounding when a precision is given.
6156         * lib/vasnprintf.c (is_borderline): New function.
6157         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
6158         9...9x.
6159         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
6160         %e, %g.
6161         * tests/test-vasprintf-posix.c (test_function): Likewise.
6162         * tests/test-snprintf-posix.h (test_function): Likewise.
6163         * tests/test-sprintf-posix.h (test_function): Likewise.
6164         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
6165         * tests/test-printf-posix.h (test_function): Likewise.
6166         * tests/test-printf-posix.output: Update.
6167         Reported by John Darrington <john@darrington.wattle.id.au> via
6168         Ben Pfaff <blp@cs.stanford.edu>.
6169
6170 2008-04-18  Simon Josefsson  <simon@josefsson.org>
6171
6172         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
6173         Suggested by Bruno Haible <bruno@clisp.org>.
6174
6175 2008-04-17  Bruno Haible  <bruno@clisp.org>
6176
6177         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
6178         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
6179         implementation.
6180         Patch by Bruce Merry <bmerry@gmail.com>.
6181
6182 2008-04-17  Simon Josefsson  <simon@josefsson.org>
6183
6184         * doc/posix-functions/strftime.texi (strftime): Mention that %e
6185         doesn't work under Windows.
6186
6187 2008-04-16  Bruno Haible  <bruno@clisp.org>
6188
6189         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
6190         New macros.
6191         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
6192         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
6193         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
6194         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
6195         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
6196         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
6197         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
6198         macros.
6199         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
6200         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
6201         Northern Sotho, Uighur.
6202
6203 2008-04-16  Bruno Haible  <bruno@clisp.org>
6204
6205         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
6206         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
6207         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
6208         Reported by Daniel Bergström <daniel@octocode.com>.
6209
6210 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
6211             Bruno Haible  <bruno@clisp.org>
6212
6213         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
6214         function.
6215         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
6216         New functions, mostly extracted from gl_locale_name_default.
6217         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
6218
6219 2008-04-16  Eric Blake  <ebb9@byu.net>
6220
6221         Adjust strtod detection to catch glibc 2.7 bug.
6222         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
6223         Reported by John Gatewood Ham.
6224
6225 2008-04-16  Bruno Haible  <bruno@clisp.org>
6226
6227         Add tentative support for Linux libc5.
6228         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
6229         * lib/fpurge.c (fpurge): Likewise.
6230         * lib/freadable.c (freadable): Likewise.
6231         * lib/freadahead.c (freadahead): Likewise.
6232         * lib/freading.c (freading): Likewise.
6233         * lib/freadptr.c (freadptr): Likewise.
6234         * lib/freadseek.c (freadptrinc): Likewise.
6235         * lib/fseeko.c (rpl_fseeko): Likewise.
6236         * lib/fseterr.c (fseterr): Likewise.
6237         * lib/fwritable.c (fwritable): Likewise.
6238         * lib/fwriting.c (fwriting): Likewise.
6239         Reported by Alain Guibert <alguibert+bts@free.fr>.
6240
6241 2008-04-15  Bruno Haible  <bruno@clisp.org>
6242
6243         * modules/mathl (configure.ac): Define module indicator.
6244
6245 2008-04-15  Bruno Haible  <bruno@clisp.org>
6246
6247         * lib/logl.c (logl): Remove unused variables.
6248
6249 2008-04-15  Bruno Haible  <bruno@clisp.org>
6250
6251         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
6252         fails.
6253
6254 2008-04-15  Bruno Haible  <bruno@clisp.org>
6255
6256         * lib/trim.c (trim2): Fix argument of isspace() macro.
6257
6258 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
6259
6260         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
6261         to 0.
6262         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
6263
6264 2008-04-14  Bruno Haible  <bruno@clisp.org>
6265
6266         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
6267         AC_LANG_PROGRAM argument.
6268         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
6269         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
6270         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
6271         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
6272         * m4/math_h.m4 (gl_MATH_H): Likewise.
6273         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
6274         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
6275         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
6276         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
6277         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
6278         * m4/regex.m4 (gl_REGEX): Likewise.
6279         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
6280         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
6281         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
6282         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
6283         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
6284         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
6285         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
6286         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
6287
6288 2008-04-14  Jim Meyering  <meyering@redhat.com>
6289
6290         test-strtod: fix typos: s/abs/fabs/
6291         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
6292
6293 2008-04-13  Bruno Haible  <bruno@clisp.org>
6294
6295         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
6296         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
6297         module is also used and while not building the reloc-wrapper.
6298
6299 2008-04-13  Bruno Haible  <bruno@clisp.org>
6300
6301         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
6302
6303 2008-04-13  Bruno Haible  <bruno@clisp.org>
6304
6305         Fix AIX compilation failure introduced on 2008-04-02.
6306         * tests/test-frexp.c (exp): Undefine before redefining.
6307         * tests/test-frexpl.c (exp): Likewise.
6308
6309 2008-04-13  Bruno Haible  <bruno@clisp.org>
6310
6311         Work around a HP-UX stdio bug.
6312         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
6313         * tests/test-ftello.c (main): Likewise.
6314         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
6315         * doc/posix-functions/ftello.texi: Likewise.
6316
6317 2008-04-13  Bruno Haible  <bruno@clisp.org>
6318
6319         Make test-signbit pass on HP-UX/hppa.
6320         * tests/test-signbit.c (minus_zerol): New variable.
6321         (test_signbitl): Use it.
6322
6323 2008-04-13  Bruno Haible  <bruno@clisp.org>
6324
6325         Make truncl work on OSF/1 4.0.
6326         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
6327         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
6328         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
6329         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
6330         HAVE_DECL_TRUNCL.
6331         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
6332         HAVE_DECL_TRUNCL.
6333         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
6334
6335 2008-04-13  Bruno Haible  <bruno@clisp.org>
6336
6337         * lib/unictype.h: Remove trailing comma from enumeration definitions.
6338
6339 2008-04-13  Bruno Haible  <bruno@clisp.org>
6340
6341         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
6342         expression, so as to avoid HP-UX 11 cc compiler bug.
6343
6344 2008-04-13  Bruno Haible  <bruno@clisp.org>
6345
6346         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
6347
6348 2008-04-13  Bruno Haible  <bruno@clisp.org>
6349
6350         * lib/git-merge-changelog.c: Remove empty declaration outside of
6351         functions.
6352
6353 2008-04-13  Bruno Haible  <bruno@clisp.org>
6354
6355         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
6356
6357 2008-04-13  Bruno Haible  <bruno@clisp.org>
6358
6359         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
6360         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
6361         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
6362         also if it exists but lacks definitions of the SHUT_* macros.
6363         * modules/sys_socket (Description): Update.
6364         Reported by Elbert Pol <e.pol@chello.nl>.
6365
6366 2008-04-13  Bruno Haible  <bruno@clisp.org>
6367
6368         * lib/localcharset.c (OS2): Don't redefine if already defined.
6369         Reported by Elbert Pol <e.pol@chello.nl>.
6370
6371 2008-04-13  Bruno Haible  <bruno@clisp.org>
6372
6373         * lib/binary-io.h [__EMX__]: Include <io.h>.
6374         Reported by Elbert Pol <e.pol@chello.nl>.
6375
6376 2008-04-12  Bruno Haible  <bruno@clisp.org>
6377
6378         * lib/fpucw.h: Enable the definitions also for x86_64.
6379         Needed for NetBSD/x86_64.
6380         Reported by Thomas Klausner <tk@giga.or.at>.
6381
6382 2008-04-12  Bruno Haible  <bruno@clisp.org>
6383
6384         * tests/test-strtod.c: Include isnand.h.
6385         (main): Use isnand instead of isnan.
6386         Reported by Jim Meyering.
6387
6388 2008-04-12  Bruno Haible  <bruno@clisp.org>
6389
6390         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
6391         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
6392
6393 2008-04-12  Jim Meyering  <meyering@redhat.com>
6394
6395         * m4/math_h.m4 (gl_MATH_H): Fix typos.
6396
6397 2008-04-12  Bruno Haible  <bruno@clisp.org>
6398
6399         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
6400         Reported by Elbert Pol <e.pol@chello.nl>.
6401
6402 2008-04-12  Eric Blake  <ebb9@byu.net>
6403
6404         Work around Solaris 10 math.h bug.
6405         * m4/math_h.m4 (gl_MATH_H): Check for bug.
6406         (gl_MATH_H_DEFAULTS): Set up default.
6407         * modules/math (Makefile.am): Replace new indicators.
6408         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
6409         * tests/test-math.c (main): Test this.
6410         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
6411         * doc/posix-headers/math.texi (math.h): Mention bug.
6412         Reported by Nelson H. F. Beebe and Jim Meyering.
6413
6414 2008-04-11  Bruno Haible  <bruno@clisp.org>
6415
6416         Adapt to future versions of Apple GCC.
6417         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
6418         Reported by Peter O'Gorman <peter@pogma.com>.
6419
6420 2008-04-11  Bruno Haible  <bruno@clisp.org>
6421
6422         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
6423
6424 2008-04-11  Bruno Haible  <bruno@clisp.org>
6425
6426         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
6427
6428         * modules/getaddrinfo-tests (Makefile.am): Define
6429         test_getaddrinfo_LDADD.
6430
6431 2008-04-11  Bruno Haible  <bruno@clisp.org>
6432
6433         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
6434         (init): Fix syntax error.
6435         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
6436         is declared.
6437
6438 2008-04-11  Bruno Haible  <bruno@clisp.org>
6439
6440         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
6441         * modules/glob (Depends-on): Add stdbool.
6442
6443 2008-04-11  Bruno Haible  <bruno@clisp.org>
6444
6445         * lib/trim.c: Include <string.h>.
6446
6447 2008-04-11  Eric Blake  <ebb9@byu.net>
6448
6449         Avoid compile failure on OS/2.
6450         * lib/regex_internal.h (internal_function): Disable optimization
6451         on OS/2 (__EMX__), where it caused compiler error.
6452         Reported by Elbert Pol.
6453
6454 2008-04-11  Bruno Haible  <bruno@clisp.org>
6455
6456         Flush the standard error stream before aborting. Needed on mingw.
6457         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
6458         * tests/test-array_list.c (ASSERT): Likewise.
6459         * tests/test-array_oset.c (ASSERT): Likewise.
6460         * tests/test-avltree_list.c (ASSERT): Likewise.
6461         * tests/test-avltree_oset.c (ASSERT): Likewise.
6462         * tests/test-avltreehash_list.c (ASSERT): Likewise.
6463         * tests/test-binary-io.c (ASSERT): Likewise.
6464         * tests/test-byteswap.c (ASSERT): Likewise.
6465         * tests/test-c-ctype.c (ASSERT): Likewise.
6466         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
6467         * tests/test-c-strcasestr.c (ASSERT): Likewise.
6468         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
6469         * tests/test-c-strstr.c (ASSERT): Likewise.
6470         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
6471         * tests/test-canonicalize.c (ASSERT): Likewise.
6472         * tests/test-carray_list.c (ASSERT): Likewise.
6473         * tests/test-ceilf1.c (ASSERT): Likewise.
6474         * tests/test-ceilf2.c (ASSERT): Likewise.
6475         * tests/test-ceill.c (ASSERT): Likewise.
6476         * tests/test-count-one-bits.c (ASSERT): Likewise.
6477         * tests/test-fbufmode.c (ASSERT): Likewise.
6478         * tests/test-fflush2.c (ASSERT): Likewise.
6479         * tests/test-floorf1.c (ASSERT): Likewise.
6480         * tests/test-floorf2.c (ASSERT): Likewise.
6481         * tests/test-floorl.c (ASSERT): Likewise.
6482         * tests/test-fopen.c (ASSERT): Likewise.
6483         * tests/test-fpending.c (ASSERT): Likewise.
6484         * tests/test-fprintf-posix.c (ASSERT): Likewise.
6485         * tests/test-fpurge.c (ASSERT): Likewise.
6486         * tests/test-freadable.c (ASSERT): Likewise.
6487         * tests/test-freadahead.c (ASSERT): Likewise.
6488         * tests/test-freading.c (ASSERT): Likewise.
6489         * tests/test-freadptr.c (ASSERT): Likewise.
6490         * tests/test-freadptr2.c (ASSERT): Likewise.
6491         * tests/test-freadseek.c (ASSERT): Likewise.
6492         * tests/test-freopen.c (ASSERT): Likewise.
6493         * tests/test-frexp.c (ASSERT): Likewise.
6494         * tests/test-frexpl.c (ASSERT): Likewise.
6495         * tests/test-fseek.c (ASSERT): Likewise.
6496         * tests/test-fseeko.c (ASSERT): Likewise.
6497         * tests/test-fstrcmp.c (ASSERT): Likewise.
6498         * tests/test-ftell.c (ASSERT): Likewise.
6499         * tests/test-ftello.c (ASSERT): Likewise.
6500         * tests/test-func.c (ASSERT): Likewise.
6501         * tests/test-fwritable.c (ASSERT): Likewise.
6502         * tests/test-fwriting.c (ASSERT): Likewise.
6503         * tests/test-getdelim.c (ASSERT): Likewise.
6504         * tests/test-getline.c (ASSERT): Likewise.
6505         * tests/test-i-ring.c (ASSERT): Likewise.
6506         * tests/test-iconv-utf.c (ASSERT): Likewise.
6507         * tests/test-iconv.c (ASSERT): Likewise.
6508         * tests/test-isfinite.c (ASSERT): Likewise.
6509         * tests/test-isnand.c (ASSERT): Likewise.
6510         * tests/test-isnanf.c (ASSERT): Likewise.
6511         * tests/test-isnanl.h (ASSERT): Likewise.
6512         * tests/test-ldexpl.c (ASSERT): Likewise.
6513         * tests/test-linked_list.c (ASSERT): Likewise.
6514         * tests/test-linkedhash_list.c (ASSERT): Likewise.
6515         * tests/test-localename.c (ASSERT): Likewise.
6516         * tests/test-lseek.c (ASSERT): Likewise.
6517         * tests/test-mbscasecmp.c (ASSERT): Likewise.
6518         * tests/test-mbscasestr1.c (ASSERT): Likewise.
6519         * tests/test-mbscasestr2.c (ASSERT): Likewise.
6520         * tests/test-mbscasestr3.c (ASSERT): Likewise.
6521         * tests/test-mbscasestr4.c (ASSERT): Likewise.
6522         * tests/test-mbschr.c (ASSERT): Likewise.
6523         * tests/test-mbscspn.c (ASSERT): Likewise.
6524         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
6525         * tests/test-mbspbrk.c (ASSERT): Likewise.
6526         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
6527         * tests/test-mbsrchr.c (ASSERT): Likewise.
6528         * tests/test-mbsspn.c (ASSERT): Likewise.
6529         * tests/test-mbsstr1.c (ASSERT): Likewise.
6530         * tests/test-mbsstr2.c (ASSERT): Likewise.
6531         * tests/test-mbsstr3.c (ASSERT): Likewise.
6532         * tests/test-memchr2.c (ASSERT): Likewise.
6533         * tests/test-memmem.c (ASSERT): Likewise.
6534         * tests/test-open.c (ASSERT): Likewise.
6535         * tests/test-printf-frexp.c (ASSERT): Likewise.
6536         * tests/test-printf-frexpl.c (ASSERT): Likewise.
6537         * tests/test-printf-posix.c (ASSERT): Likewise.
6538         * tests/test-quotearg.c (ASSERT): Likewise.
6539         * tests/test-rbtree_list.c (ASSERT): Likewise.
6540         * tests/test-rbtree_oset.c (ASSERT): Likewise.
6541         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
6542         * tests/test-round1.c (ASSERT): Likewise.
6543         * tests/test-roundf1.c (ASSERT): Likewise.
6544         * tests/test-roundl.c (ASSERT): Likewise.
6545         * tests/test-signbit.c (ASSERT): Likewise.
6546         * tests/test-sleep.c (ASSERT): Likewise.
6547         * tests/test-snprintf-posix.c (ASSERT): Likewise.
6548         * tests/test-snprintf.c (ASSERT): Likewise.
6549         * tests/test-sprintf-posix.c (ASSERT): Likewise.
6550         * tests/test-stat-time.c (ASSERT): Likewise.
6551         * tests/test-strcasestr.c (ASSERT): Likewise.
6552         * tests/test-strerror.c (ASSERT): Likewise.
6553         * tests/test-striconv.c (ASSERT): Likewise.
6554         * tests/test-striconveh.c (ASSERT): Likewise.
6555         * tests/test-striconveha.c (ASSERT): Likewise.
6556         * tests/test-strsignal.c (ASSERT): Likewise.
6557         * tests/test-strstr.c (ASSERT): Likewise.
6558         * tests/test-strtod.c (ASSERT): Likewise.
6559         * tests/test-trunc1.c (ASSERT): Likewise.
6560         * tests/test-trunc2.c (ASSERT): Likewise.
6561         * tests/test-truncf1.c (ASSERT): Likewise.
6562         * tests/test-truncf2.c (ASSERT): Likewise.
6563         * tests/test-truncl.c (ASSERT): Likewise.
6564         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
6565         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
6566         * tests/test-vasnprintf.c (ASSERT): Likewise.
6567         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
6568         * tests/test-vasprintf.c (ASSERT): Likewise.
6569         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
6570         * tests/test-vprintf-posix.c (ASSERT): Likewise.
6571         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
6572         * tests/test-vsnprintf.c (ASSERT): Likewise.
6573         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
6574         * tests/test-wcwidth.c (ASSERT): Likewise.
6575         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
6576         * tests/test-xprintf-posix.c (ASSERT): Likewise.
6577         * tests/test-xvasprintf.c (ASSERT): Likewise.
6578         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
6579         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
6580         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
6581         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
6582         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
6583         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
6584         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
6585         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
6586         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
6587         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
6588         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
6589         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
6590         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
6591         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
6592         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
6593         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
6594         * tests/unictype/test-block_list.c (ASSERT): Likewise.
6595         * tests/unictype/test-block_of.c (ASSERT): Likewise.
6596         * tests/unictype/test-block_test.c (ASSERT): Likewise.
6597         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
6598         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
6599         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
6600         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
6601         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
6602         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
6603         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
6604         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
6605         * tests/unictype/test-combining.c (ASSERT): Likewise.
6606         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
6607         * tests/unictype/test-digit.c (ASSERT): Likewise.
6608         * tests/unictype/test-mirror.c (ASSERT): Likewise.
6609         * tests/unictype/test-numeric.c (ASSERT): Likewise.
6610         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
6611         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
6612         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
6613         * tests/unictype/test-scripts.c (ASSERT): Likewise.
6614         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
6615         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
6616         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
6617         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
6618         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
6619         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
6620         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
6621         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
6622         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
6623         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
6624         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
6625         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
6626         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
6627         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
6628         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
6629         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
6630         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
6631         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
6632         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
6633         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
6634         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
6635         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
6636         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
6637         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
6638         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
6639         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
6640         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
6641         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
6642         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
6643         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
6644         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
6645         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
6646         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
6647         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
6648         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
6649         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
6650         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
6651         Reported by Eric Blake.
6652
6653 2008-04-11  Bruno Haible  <bruno@clisp.org>
6654
6655         * lib/wchar.in.h: Tweak comment.
6656
6657 2008-04-11  Bruno Haible  <bruno@clisp.org>
6658
6659         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
6660         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
6661         gl_COMMON.
6662         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
6663
6664 2008-04-11  Bruno Haible  <bruno@clisp.org>
6665
6666         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
6667
6668 2008-04-11  Simon Josefsson  <simon@josefsson.org>
6669
6670         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
6671         of attempting to use non-existing /dev/*random.  Based on patch
6672         from Adam Strzelecki <ono@java.pl> in
6673         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
6674
6675 2008-04-08  Bruno Haible  <bruno@clisp.org>
6676
6677         Add tentative support for emx+gcc.
6678         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
6679         * lib/fpurge.c (fpurge): Likewise.
6680         * lib/freadable.c (freadable): Likewise.
6681         * lib/freadahead.c (freadahead): Likewise.
6682         * lib/freading.c (freading): Likewise.
6683         * lib/freadptr.c (freadptr): Likewise.
6684         * lib/freadseek.c (freadptrinc): Likewise.
6685         * lib/fseeko.c (rpl_fseeko): Likewise.
6686         * lib/fseterr.c (fseterr): Likewise.
6687         * lib/fwritable.c (fwritable): Likewise.
6688         * lib/fwriting.c (fwriting): Likewise.
6689         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
6690
6691 2008-04-09  Eric Blake  <ebb9@byu.net>
6692
6693         Avoid some autoconf warnings.
6694         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
6695         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
6696         * m4/afs.m4 (gl_AFS): Likewise.
6697         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
6698         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
6699         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
6700         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
6701         (gl_INTEGER_TYPE_SUFFIX): Likewise.
6702         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
6703         (AC_CHECK_DECLS_ONCE): Likewise.
6704         Rename file...
6705         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
6706         gnulib-tool requires autoconf 2.59 or better.
6707         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
6708
6709 2008-04-08  Eric Blake  <ebb9@byu.net>
6710
6711         Use 'git describe --match' if present (added in git 1.5.5).
6712         * build-aux/git-version-gen: Limit result to tags that match 'v*'
6713         if possible.
6714
6715 2008-04-08  Bruno Haible  <bruno@clisp.org>
6716
6717         Add tentative support for OpenServer.
6718         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
6719         _ptr, _cnt.
6720         * lib/fpurge.c (fpurge): Likewise.
6721         * lib/freadable.c (freadable): Likewise.
6722         * lib/freadahead.c (freadahead): Likewise.
6723         * lib/freading.c (freading): Likewise.
6724         * lib/freadptr.c (freadptr): Likewise.
6725         * lib/freadseek.c (freadptrinc): Likewise.
6726         * lib/fseeko.c (rpl_fseeko): Likewise.
6727         * lib/fseterr.c (fseterr): Likewise.
6728         * lib/fwritable.c (fwritable): Likewise.
6729         * lib/fwriting.c (fwriting): Likewise.
6730         Reported by Roger Cornelius <rac@tenzing.org> and
6731         Brian K. White <brian@aljex.com>.
6732
6733 2008-04-06  Jim Meyering  <meyering@redhat.com>
6734
6735         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
6736
6737 2008-04-06  Bruno Haible  <bruno@clisp.org>
6738
6739         Avoid possible error with non-ASCII bytes in UTF-8 locales.
6740         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
6741         * tests/test-printf-posix.sh: Likewise.
6742         * tests/test-vfprintf-posix.sh: Likewise.
6743         * tests/test-vprintf-posix.sh: Likewise.
6744         * tests/test-xprintf-posix.sh: Likewise.
6745
6746 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6747
6748         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
6749         hide error from 'ls', needed on OS/2.
6750         Report by Elbert Pol <elbert.pol@gmail.com>.
6751
6752 2008-04-04  Eric Blake  <ebb9@byu.net>
6753
6754         Make test-fseeko.c failures meaningful.
6755         * tests/test-fseeko.c: Print line number on failure.
6756         * tests/test-fseek.c: Likewise.
6757         Reported by Nelson H. F. Beebe.
6758
6759         Improve strtod bug detection check.
6760         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
6761         required for Solaris 10.
6762         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
6763
6764 2008-04-04  Bruno Haible  <bruno@clisp.org>
6765
6766         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
6767         by m4/setenv.m4.
6768
6769 2008-04-03  Eric Blake  <ebb9@byu.net>
6770
6771         Ensure sane .version contents.
6772         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
6773         version string.
6774         * build-aux/git-version-gen: Improve documentation.
6775
6776         Make GNU make output nicer.
6777         * top/GNUmakefile [!_have-Makefile]: Add dependency on
6778         MAKECMDGOALS to enforce message for all command line targets.  Set
6779         srcdir for use in maint.mk.
6780
6781         Another maintainer tweak.
6782         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
6783         a target that regenerates version.
6784
6785 2008-04-03  Jim Meyering  <meyering@redhat.com>
6786
6787         vc-list-files: don't cause coreutils "make po-check" failure
6788         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
6789
6790 2008-04-03  Eric Blake  <ebb9@byu.net>
6791
6792         Allow VPATH usage of vc-list-files.
6793         * build-aux/vc-list-files (scriptversion): Add timestamp.
6794         (options): Add --help, --version, -C.
6795         (CVS): Support installed cvsu.
6796
6797 2008-04-02  Bruno Haible  <bruno@clisp.org>
6798
6799         Avoid some "statement with no effect" warnings from gcc.
6800         * tests/test-wctype.c (main): Explicitly ignore unused values.
6801         Reported by Jim Meyering.
6802
6803 2008-04-02  Jim Meyering  <meyering@redhat.com>
6804
6805         Avoid some warnings from "gcc -Wshadow".
6806         * tests/test-frexp.c (exp): Define to a different identifier.
6807         * tests/test-frexpl.c (exp): Likewise.
6808
6809 2008-04-03  Jim Meyering  <meyering@redhat.com>
6810
6811         bootstrap: remove dangling *.[ch] symlinks from lib
6812         * build-aux/bootstrap [dangling symlink removal]: Move find's
6813         -depth option to precede all others, to avoid a warning.
6814         Remove *.[ch] files too, and from "$source_base" (usually lib/).
6815
6816 2008-04-02  Bruno Haible  <bruno@clisp.org>
6817
6818         Avoid some warnings from "gcc -Wshadow".
6819         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
6820         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
6821         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
6822         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
6823         Reported by Jim Meyering.
6824
6825 2008-04-01  Bruno Haible  <bruno@clisp.org>
6826
6827         Fix test to work on IRIX 6.5 with cc.
6828         * tests/test-math.c (numeric_equal): New function.
6829         (main): Use it.
6830
6831 2008-04-01  Bruno Haible  <bruno@clisp.org>
6832
6833         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
6834
6835 2008-04-01  Bruno Haible  <bruno@clisp.org>
6836
6837         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
6838         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
6839         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
6840         (Depends-on): Remove math.
6841
6842         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
6843         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
6844         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
6845         (Depends-on): Remove math.
6846
6847         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
6848         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
6849         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
6850         (Depends-on): Remove math.
6851         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
6852         (Depends-on): Remove math.
6853
6854         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
6855         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
6856         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
6857         (Depends-on): Remove math.
6858         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
6859         (Depends-on): Remove math.
6860
6861         * tests/test-round1.c: Include nan.h.
6862         (main): Use NaNd instead of NAN.
6863         * modules/round-tests (Files): Add tests/nan.h.
6864
6865         * tests/test-trunc1.c: Include nan.h.
6866         (main): Use NaNd instead of NAN.
6867         * modules/trunc-tests (Files): Add tests/nan.h.
6868
6869         * tests/test-roundf1.c: Include nan.h.
6870         (main): Use NaNf instead of NAN.
6871         * modules/roundf-tests (Files): Add tests/nan.h.
6872
6873         * tests/test-truncf1.c: Include nan.h.
6874         (main): Use NaNf instead of NAN.
6875         * modules/truncf-tests (Files): Add tests/nan.h.
6876
6877         * tests/test-ceilf1.c: Include nan.h.
6878         (main): Use NaNf instead of NAN.
6879         * modules/ceilf-tests (Files): Add tests/nan.h.
6880
6881         * tests/test-floorf1.c: Include nan.h.
6882         (main): Use NaNf instead of NAN.
6883         * modules/floorf-tests (Files): Add tests/nan.h.
6884
6885         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
6886         (main): Use NaNf instead of NAN.
6887         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
6888
6889         * tests/test-isnand.c: Include nan.h instead of <math.h>.
6890         (main): Use NaNd instead of NAN.
6891         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
6892
6893         * tests/test-frexp.c: Include nan.h.
6894         (main): Use NaNd instead of NAN.
6895         * modules/frexp-tests (Files): Add tests/nan.h.
6896
6897         * lib/isnan.c: Don't include <math.h>.
6898         (FUNC): Don't use NAN macro.
6899         * modules/isnand-nolibm (Depends-on): Remove math.
6900         * modules/isnanf-nolibm (Depends-on): Remove math.
6901         * modules/isnanl (Depends-on): Remove math.
6902         * modules/isnanl-nolibm (Depends-on): Remove math.
6903
6904         * tests/nan.h: New file.
6905
6906 2008-04-01  Eric Blake  <ebb9@byu.net>
6907
6908         Fix typos.
6909         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
6910         values to be the right type.
6911
6912         For now, cater to gnulib strtod inaccuracies.
6913         * tests/test-strtod.c (main): Allow 1-ulp error on expected
6914         fractional results.  While not as nice from a QoI perspective, it
6915         is a quicker patch than correctly implementing decimal to binary
6916         rounding.
6917
6918 2008-03-31  Eric Blake  <ebb9@byu.net>
6919
6920         Guarantee a definition of NAN.
6921         * lib/math.in.h (NAN): Define if missing.
6922         * tests/test-math.c (main): Test it.
6923         * doc/posix-headers/math.texi (math.h): Document this.
6924         * lib/isnan.c (rpl_isnand): Use it.
6925         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
6926         * tests/test-floorf1.c (NaN): Likewise.
6927         * tests/test-frexp.c (NaN): Likewise.
6928         * tests/test-isnand.c (NaN): Likewise.
6929         * tests/test-isnanf.c (NaN): Likewise.
6930         * tests/test-round1.c (NaN): Likewise.
6931         * tests/test-roundf1.c (NaN): Likewise.
6932         * tests/test-snprintf-posix.h (NaN): Likewise.
6933         * tests/test-sprintf-posix.h (NaN): Likewise.
6934         * tests/test-trunc1.c (NaN): Likewise.
6935         * tests/test-truncf1.c (NaN): Likewise.
6936         * tests/test-vasnprintf-posix.c (NaN): Likewise.
6937         * tests/test-vasprintf-posix.c (NaN): Likewise.
6938         * modules/isnand-nolibm (Depends-on): Add math.
6939         * modules/isnanf-nolibm (Depends-on): Likewise.
6940         * modules/isnanl (Depends-on): Likewise.
6941         * modules/isnanl-nolibm (Depends-on): Likewise.
6942         * modules/snprintf-posix-tests (Depends-on): Likewise.
6943         * modules/sprintf-posix-tests (Depends-on): Likewise.
6944         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
6945         * modules/vsprintf-posix-tests (Depends-on): Likewise.
6946         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
6947         * modules/vasprintf-posix-tests (Depends-on): Likewise.
6948
6949 2008-03-31  Bruno Haible  <bruno@clisp.org>
6950
6951         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
6952         * doc/posix-functions/strtod.texi: Likewise.
6953
6954 2008-03-31  Bruno Haible  <bruno@clisp.org>
6955
6956         * tests/test-strtod.c (main): Don't use C99 syntax.
6957
6958 2008-03-31  Bruno Haible  <bruno@clisp.org>
6959
6960         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
6961         Reported by Eric Blake.
6962
6963 2008-03-31  Jim Meyering  <meyering@redhat.com>
6964
6965         Don't compare actual signbit return values.
6966         * tests/test-strtod.c (main): Rather, compare only their
6967         zero/non-zero nature.
6968
6969 2008-03-31  Eric Blake  <ebb9@byu.net>
6970
6971         More strtod documentation.
6972         * doc/posix-functions/strtod.texi (strtod): Interpret more test
6973         failures as distinct bugs.
6974
6975 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
6976
6977         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
6978         Problem reported by Erik Benada in
6979         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
6980
6981 2008-03-30  Bruno Haible  <bruno@clisp.org>
6982
6983         * tests/test-strtod.c: Add comments about which assertion fails on which
6984         platform.
6985         * doc/posix-functions/strtod.texi: Add info about many more platforms.
6986
6987 2008-03-30  Eric Blake  <ebb9@byu.net>
6988
6989         Test signbit behavior on zeros.
6990         * tests/test-signbit.c (test_signbitf): Add tests for zero.
6991         (test_signbitd, test_signbitl): Likewise.
6992
6993         More strtod touchups.
6994         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
6995         sign of negative underflow, for now.  Use .5, not .1.
6996         * doc/posix-functions/strtod.texi (strtod): Mention these
6997         limitations.
6998         Reported by Jim Meyering.
6999
7000 2008-03-30  Bruno Haible  <bruno@clisp.org>
7001
7002         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
7003         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
7004
7005 2008-03-30  Bruno Haible  <bruno@clisp.org>
7006
7007         Avoid failure when attempting to return empty iconv results on some
7008         platforms.
7009         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
7010         allocation, don't report ENOMEM when the resulting string is empty.
7011
7012 2008-03-30  Bruno Haible  <bruno@clisp.org>
7013
7014         Fix buffer overrun.
7015         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
7016         Don't consider the width for tmp_length. Check count against tmp_length
7017         before doing the padding. Ensure enough allocation during padding.
7018
7019 2008-03-30  Eric Blake  <ebb9@byu.net>
7020
7021         strtod touchups.
7022         * lib/strtod.c (strtod): Avoid compiler warnings.
7023         Reported by Jim Meyering.
7024
7025 2008-03-30  Bruno Haible  <bruno@clisp.org>
7026
7027         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
7028         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
7029         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
7030         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
7031         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
7032         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
7033         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
7034         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
7035
7036         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
7037         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
7038         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
7039         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
7040         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
7041         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
7042         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
7043         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
7044
7045         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
7046         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
7047         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
7048         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
7049         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
7050         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
7051         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
7052         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
7053
7054         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
7055         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
7056
7057         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
7058         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
7059
7060         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
7061         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
7062
7063         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
7064         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
7065         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
7066
7067         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
7068         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
7069         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
7070
7071         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
7072         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
7073         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
7074
7075         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
7076         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
7077         * modules/vasprintf (Depends-on): Add EOVERFLOW.
7078
7079         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
7080         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
7081         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
7082         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
7083         (Depends-on): Add EOVERFLOW.
7084         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
7085         (Depends-on): Add EOVERFLOW.
7086         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
7087         (Depends-on): Add EOVERFLOW.
7088         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
7089         (Depends-on): Add EOVERFLOW.
7090         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
7091         (Depends-on): Add EOVERFLOW.
7092         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
7093         (Depends-on): Add EOVERFLOW.
7094         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
7095         (Depends-on): Add EOVERFLOW.
7096         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
7097         (Depends-on): Add EOVERFLOW.
7098
7099         * lib/sprintf.c (EOVERFLOW): Remove fallback.
7100         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
7101         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
7102
7103         * lib/snprintf.c (EOVERFLOW): Remove fallback.
7104         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
7105         * modules/snprintf (Depends-on): Add EOVERFLOW.
7106
7107         * lib/poll.c (EOVERFLOW): Remove fallback.
7108         * modules/poll (Depends-on): Add EOVERFLOW.
7109
7110         * lib/getugroups.c (EOVERFLOW): Remove fallback.
7111         * modules/getugroups (Depends-on): Add EOVERFLOW.
7112
7113         * lib/getdelim.c (EOVERFLOW): Remove fallback.
7114         * modules/getdelim (Depends-on): Add EOVERFLOW.
7115
7116         * lib/ftell.c (EOVERFLOW): Remove fallback.
7117         * modules/ftell (Depends-on): Add EOVERFLOW.
7118
7119         * lib/fprintf.c (EOVERFLOW): Remove fallback.
7120         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
7121         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
7122
7123         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
7124
7125         * modules/EOVERFLOW-tests: New file.
7126         * tests/test-EOVERFLOW.c: New file.
7127
7128         * modules/EOVERFLOW: New file.
7129         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
7130
7131 2008-03-30  Bruno Haible  <bruno@clisp.org>
7132
7133         Fix bug introduced on 2007-06-10.
7134         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
7135         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
7136
7137 2008-03-30  Bruno Haible  <bruno@clisp.org>
7138
7139         Improve freadseek's efficiency after ungetc.
7140         * lib/freadseek.c: Include freadahead.h.
7141         (freadptrinc): New function, extracted from freadseek.
7142         (freadseek): Use it in a loop. Use freadahead to determine the number
7143         of loop iterations.
7144         * modules/freadseek (Depends-on): Add freadahead.
7145         (configure.ac): Require AC_C_INLINE.
7146
7147 2008-03-30  Bruno Haible  <bruno@clisp.org>
7148
7149         * lib/freadseek.c (freadseek): Don't ignore the return value of
7150         freadptr.
7151
7152 2008-03-29  Eric Blake  <ebb9@byu.net>
7153
7154         Add hex float support.
7155         * modules/strtod (Depends-on): Add c-ctype.
7156         (Link): Mention POW_LIB.
7157         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
7158         whitespace between 'e' and exponent.
7159         * tests/test-strtod.c (main): Enable hex float tests.
7160         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
7161         now provides.
7162
7163         Document various strtod bugs, with some fixes.
7164         * doc/posix-functions/strtod.texi (strtod): Document bugs with
7165         "-0x", "inf", "nan", and hex constants.
7166         * doc/posix-functions/atof.texi (atof): Likewise.
7167         * modules/stdlib (Makefile.am): Support strtod.
7168         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
7169         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
7170         detect additional strtod bugs.
7171         * lib/stdlib.in.h (rpl_strtod): Add declarations.
7172         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
7173         bool where appropriate.  Parse 'inf' and 'nan'.
7174         * tests/test-strtod.c: New file.
7175         * modules/strtod (Depends-on): Add stdbool, stdlib.
7176         (configure.ac): Turn on module indicator.
7177         * modules/strtod-tests: New module.
7178
7179 2008-03-29  Eric Blake  <ebb9@byu.net>
7180
7181         Fix ftell on mingw.
7182         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
7183         * modules/ftell-tests (Depends-on): Add binary-io.
7184         * modules/ftello-tests (Depends-on): Likewise.
7185         * tests/test-ftell.c (main): Enhance test to cover behavior after
7186         ungetc.  Enforce binary mode.
7187         * tests/test-ftello.c (main): Likewise.
7188
7189         Pass test-freadseek on cygwin.
7190         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
7191         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
7192         ungetc buffer.
7193
7194         * tests/test-fflush2.c (main): Fix typo.
7195
7196 2008-03-29  Bruno Haible  <bruno@clisp.org>
7197
7198         * tests/test-fflush2.c (main): Temporarily disable the contents of
7199         this test.
7200         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
7201         Reported by Eric Blake.
7202
7203 2008-03-28  Simon Josefsson  <simon@josefsson.org>
7204
7205         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
7206         (GC_SHA224_DIGEST_SIZE): Add.
7207
7208         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
7209         (gc_hash_digest_length): Likewise.
7210         (gc_hash_buffer): Likewise.
7211
7212 2008-03-25  Bruno Haible  <bruno@clisp.org>
7213
7214         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
7215         detail which gettext release to use.
7216         Reported by Simon Josefsson.
7217
7218 2008-03-26  Jim Meyering  <meyering@redhat.com>
7219
7220         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
7221         * modules/gnumakefile (clean-GNUmakefile): Also, use
7222         test ... && ... || : syntax rather than if-then ... fi.
7223
7224         gnumakefile: Don't double-quote-expand $(VPATH) value.
7225         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
7226
7227 2008-03-24  Eric Blake  <ebb9@byu.net>
7228
7229         Alter GNUmakefile to install into top directory.
7230         * modules/maintainer-makefile: Split, and add dependency...
7231         * modules/gnumakefile: to this new module.
7232         * build-aux/GNUmakefile: Move...
7233         * top/GNUmakefile: ...here.
7234         * build-aux/maint.mk: Move...
7235         * top/maint.mk: ...here.
7236         * MODULES.html.sh (Support for maintaining...): Document new
7237         module.
7238
7239 2008-03-23  Bruno Haible  <bruno@clisp.org>
7240
7241         * gnulib-tool: New options --vc-files, --no-vc-files.
7242         (func_usage): Document them.
7243         (vc_files): New variable.
7244         (func_import): Consider vc_files.
7245         (func_create_testdir): Set vc_files to empty.
7246         Suggested by Jim Meyering and Karl Berry.
7247
7248 2008-03-23  Bruno Haible  <bruno@clisp.org>
7249
7250         Fix regex compilation error on HP-UX 11.
7251         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
7252         * modules/regex (Files): Add m4/mbstate_t.m4.
7253         Reported by Ton Voon <ton.voon@altinity.com>.
7254
7255 2008-03-23  Bruno Haible  <bruno@clisp.org>
7256
7257         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
7258
7259 2008-03-23  Eric Blake  <ebb9@byu.net>
7260             Bruno Haible  <bruno@clisp.org>
7261
7262         Install files from top/ in the destination directory.
7263         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
7264         augmentation also for the files from top/.
7265         (func_import, func_create_testdir): Rewrite file names:
7266         top/filename -> filename.
7267
7268 2008-03-23  Bruno Haible  <bruno@clisp.org>
7269
7270         Tweak "gnulib --version" output.
7271         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
7272
7273 2008-03-23  Bruno Haible  <bruno@clisp.org>
7274
7275         Tweak "gnulib --version" output.
7276         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
7277         rather than contents of ChangeLog, when possible.
7278
7279 2008-03-21  Eric Blake  <ebb9@byu.net>
7280
7281         More --version tweaks.
7282         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
7283         date of last ChangeLog entry.
7284
7285 2008-03-21  Jim Meyering  <meyering@redhat.com>
7286
7287         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
7288
7289 2008-03-20  Eric Blake  <ebb9@byu.net>
7290
7291         VPATH fix.
7292         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
7293
7294 2008-03-20  Simon Josefsson  <simon@josefsson.org>
7295
7296         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
7297         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
7298
7299 2008-03-20  Eric Blake  <ebb9@byu.net>
7300
7301         Sync GNUmakefile with coreutils.
7302         * build-aux/GNUmakefile (have-Makefile): Rename...
7303         (_have-Makefile): ...to this, for namespace consideration.
7304         (GNUmakefile.cfg): Include, if present.
7305         (_autoreconf): Define a default.
7306         (_is-dist-target): New rule for rebuilds to pick up intra-release
7307         version.
7308         (maint-cfg.mk): Rename...
7309         (cfg.mk): ...to this.
7310
7311 2008-03-18  Jim Meyering  <meyering@redhat.com>
7312
7313         New script and module: mktempd
7314         * MODULES.html.sh (maint+release support): Add mktempd.
7315         * build-aux/mktempd: New file.
7316         * modules/mktempd: New file.
7317
7318 2008-03-15  Jim Meyering  <meyering@redhat.com>
7319
7320         Undo last change.
7321         * lib/sha1.c, lib/md5.c: 63 != ~63.
7322         Reported by Andreas Schwab.
7323
7324         sha1.c, md5.c: Hoist a redundant expression.
7325         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
7326         "ctx->buflen" only once, before calling *_process_block.
7327         * lib/md5.c (md5_process_bytes): Likewise.
7328
7329 2008-03-14  Eric Blake  <ebb9@byu.net>
7330
7331         Bump copyright year in files generated by gnulib-tool.
7332         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
7333         gnulib-tool, rather than hard-coding it.
7334
7335         Fix 'gnulib-tool --version' output to work with git.
7336         * gnulib-tool (func_gnulib_dir): New function, extracted from...
7337         (startup): ...here.
7338         (func_version): Use it to invoke git-version-gen, rather than
7339         relying on CVS keyword expansion.  Modernize wording.
7340         (cvsdatestamp, last_checkin_date, version): Kill unused
7341         variables.
7342
7343 2008-03-12  Jim Meyering  <meyering@redhat.com>
7344
7345         Recognize optional cast of the argument to free.
7346         * build-aux/useless-if-before-free: Update regexps.
7347
7348         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
7349
7350 2008-03-11  Bruno Haible  <bruno@clisp.org>
7351
7352         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
7353         by a single package.
7354         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
7355         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
7356         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
7357         Reported by Sam Steingold <sds@gnu.org>.
7358
7359 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
7360
7361         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
7362         repositories.
7363
7364 2008-03-11  Bruno Haible  <bruno@clisp.org>
7365
7366         Avoid conflicts between local macro definitions.
7367         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
7368         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
7369
7370 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
7371             Bruno Haible  <bruno@clisp.org>
7372
7373         Make va_copy work with some version of xlc on AIX 5.1.
7374         * lib/stdarg.in.h: New file.
7375         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
7376         On AIX, use a <stdarg.h> file substitute.
7377         * modules/stdarg (Files): Add lib/stdarg.in.h.
7378         (Depends-on): Add include_next.
7379         (Makefile.am): Build a stdarg.h substitute if requested.
7380         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
7381
7382 2008-03-10  Bruno Haible  <bruno@clisp.org>
7383
7384         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
7385         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
7386         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
7387
7388 2008-03-10  Bruno Haible  <bruno@clisp.org>
7389
7390         * modules/stdlib (Depends-on): Add include_next, remove
7391         absolute-header.
7392
7393 2008-03-09  Bruno Haible  <bruno@clisp.org>
7394
7395         * lib/freadahead.h (freadahead): Document more precisely.
7396         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
7397         the sum of both buffer sizes.
7398         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
7399         * NEWS: Document the change.
7400
7401 2008-03-09  Bruno Haible  <bruno@clisp.org>
7402
7403         Extend freadptr to return also the buffer size.
7404         * lib/freadptr.h (freadptr): Add sizep argument.
7405         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
7406         (freadptr): Add sizep argument. Determine buffer size like freadahead
7407         does.
7408         * tests/test-freadptr.c: Don't include freadahead.h.
7409         (main): Adapt for new calling convention of freadptr.
7410         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
7411         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
7412         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
7413         tests/test-freadptr2.sh.
7414         (Depends): Remove freadahead.
7415         (TESTS): Add test-freadptr2.sh.
7416         (check_PROGRAMS): Add test-freadptr2.
7417
7418 2008-03-09  Bruno Haible  <bruno@clisp.org>
7419
7420         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
7421         Report and solution by Simon Josefsson.
7422
7423 2008-03-06  Bruno Haible  <bruno@clisp.org>
7424
7425         Make fflush after ungetc work on BSD platforms.
7426         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
7427         * tests/test-fflush2.c: New file.
7428         * tests/test-fflush2.sh: New file.
7429         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
7430         tests/test-fflush2.c.
7431         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
7432         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
7433
7434 2008-03-06  Eric Blake  <ebb9@byu.net>
7435
7436         Likewise for ftello.
7437         * modules/ftello (Dependencies): Add extensions.
7438         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
7439
7440 2008-03-06  Bruno Haible  <bruno@clisp.org>
7441
7442         * modules/fseeko (Dependencies): Add extensions.
7443         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
7444         Needed on glibc systems.
7445
7446 2008-03-06  Bruno Haible  <bruno@clisp.org>
7447
7448         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
7449         email address.
7450         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
7451
7452 2008-03-06  Bruno Haible  <bruno@clisp.org>
7453
7454         * users.txt: Add libgnupdf.
7455
7456 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
7457
7458         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
7459         (Header File Substitutes, Function Substitutes,
7460         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
7461         (Build robot for gnulib): Fix typo.
7462
7463 2008-03-06  Bruno Haible  <bruno@clisp.org>
7464
7465         * doc/gnulib-tool.texi (VCS Issues): Small updates.
7466         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
7467
7468 2008-03-06  Bruno Haible  <bruno@clisp.org>
7469
7470         * doc/func.texi: New file, extracted from doc/gnulib.texi.
7471         * doc/gnulib.texi: Include it.
7472
7473 2008-03-06  Simon Josefsson  <simon@josefsson.org>
7474
7475         * modules/func (License): Change license to unlimited; there was
7476         no LGPL parts in the module anyway.
7477
7478 2008-03-06  Simon Josefsson  <simon@josefsson.org>
7479
7480         * modules/__func__: Renamed to modules/func.
7481         * modules/__func__-tests: Renamed to modules/func-tests.
7482         * tests/test-__func__.c: Renamed to tests/test-func.c.
7483         * m4/__func__.m4: Renamed to m4/func.m4.
7484         * doc/gnulib.texi (__func__): Section renamed to func.
7485         Suggested by Eric Blake <ebb9@byu.net>.
7486
7487 2008-03-06  Simon Josefsson  <simon@josefsson.org>
7488
7489         * doc/gnulib.texi (__func__): Use C99 terminology when talking
7490         about __func__.  Make example self-contained.  Suggested by Eric
7491         Blake <ebb9@byu.net>.
7492
7493         * tests/test-__func__.c (main): Avoid extraneous () around __func.
7494         Suggested by Eric Blake <ebb9@byu.net>.
7495
7496 2008-03-06  Simon Josefsson  <simon@josefsson.org>
7497
7498         * modules/__func__: New file.
7499         * modules/__func__-tests: New file.
7500         * tests/test-__func__.c: New file.
7501         * m4/__func__.m4: New file.
7502         * doc/gnulib.texi (__func__): Document __func__ module.
7503
7504 2008-03-05  Simon Josefsson  <simon@josefsson.org>
7505
7506         * modules/byteswap (License): Re-license as LGPLv2+.
7507
7508 2008-03-05  Simon Josefsson  <simon@josefsson.org>
7509
7510         * doc/Makefile: Add pdf target.
7511
7512 2008-03-05  Simon Josefsson  <simon@josefsson.org>
7513
7514         * modules/inline (License): Use 'unlimited', since there are only
7515         *.m4 files in this module.
7516
7517 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
7518             Bruno Haible  <bruno@clisp.org>
7519
7520         Add support for HP C 7.1 on OpenVMS 8.3.
7521         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
7522
7523 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
7524
7525         Update VMS specifics.
7526         * lib/getopt.c [VMS]: Remove include of unixlib.h.
7527
7528 2008-03-02  Jim Meyering  <meyering@redhat.com>
7529
7530         Remove the last dependency on the "free" module.
7531         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
7532         Reported by Bob Proulx.
7533
7534         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
7535
7536         Remove useless "if" tests before free.  Deprecate "free" module.
7537         * doc/posix-functions/free.texi: Mention that this
7538         module is no longer useful.
7539         * modules/free (Notice): Say this module is obsolete.
7540         * modules/readutmp (Depends-on): Remove free.
7541         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
7542         * lib/putenv.c (putenv): Likewise.
7543         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
7544         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
7545         * tests/test-c-strcasestr.c (main): Likewise.
7546         * tests/test-c-strstr.c (main): Likewise.
7547         * tests/test-mbscasestr1.c (main): Likewise.
7548         * tests/test-mbscasestr2.c (main): Likewise.
7549         * tests/test-mbsstr1.c (main): Likewise.
7550         * tests/test-mbsstr2.c (main): Likewise.
7551         * tests/test-memmem.c (main): Likewise.
7552         * tests/test-strcasestr.c (main): Likewise.
7553         * tests/test-striconv.c (main): Likewise.
7554         * tests/test-striconveh.c (main): Likewise.
7555         * tests/test-striconveha.c (main): Likewise.
7556         * tests/test-strstr.c (main): Likewise.
7557
7558         * build-aux/git-version-gen: Adjust a comment and the Usage string.
7559
7560         bootstrap: sync from coreutils again
7561         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
7562
7563 2008-03-01  Jim Meyering  <meyering@redhat.com>
7564
7565         bootstrap: sync from coreutils
7566         * build-aux/bootstrap (update_po_files): Copy a .po file into place
7567         also when the target doesn't exist.
7568
7569 2008-03-01  Eric Blake  <ebb9@byu.net>
7570
7571         Fix bugs in last patch.
7572         * lib/memchr2.c (memchr2): Fix typo.
7573         * tests/test-memchr2.c: Test previous bug, and don't use GNU
7574         extension.
7575         Reported by Bruce Korb.
7576
7577         New module 'memchr2'.
7578         * modules/memchr2: New file.
7579         * modules/memchr2-tests: Likewise.
7580         * lib/memchr2.h: Likewise.
7581         * lib/memchr2.c: Likewise, based on memchr.c.
7582         * tests/test-memchr2.c: New test.
7583         * MODULES.html.sh (String handling): Add memchr2.
7584
7585 2008-02-29  Bruno Haible  <bruno@clisp.org>
7586
7587         * modules/freadseek-tests: New file.
7588         * tests/test-freadseek.sh: New file.
7589         * tests/test-freadseek.c: New file.
7590
7591         New module 'freadseek'.
7592         * modules/freadseek: New file.
7593         * lib/freadseek.h: New file.
7594         * lib/freadseek.c: New file.
7595         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
7596
7597 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
7598
7599         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
7600         wydawca.
7601
7602         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
7603         program_invocation_name and program_invocation_short_name are
7604         present.
7605
7606 2008-02-28  Bruno Haible  <bruno@clisp.org>
7607
7608         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
7609         * tests/test-freadptr.sh: Also test non-seekable stdin.
7610
7611 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
7612
7613         * build-aux/bootstrap (source_base, m4_base)
7614         (doc_base, tests_base): New variables.
7615         (gnulib_tool_options): Do not hardcode base directories, use
7616         the above variables instead.
7617
7618 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
7619
7620         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
7621
7622 2008-02-28  Bruno Haible  <bruno@clisp.org>
7623
7624         * modules/freadptr-tests: New file.
7625         * tests/test-freadptr.sh: New file.
7626         * tests/test-freadptr.c: New file.
7627
7628         New module 'freadptr'.
7629         * modules/freadptr: New file.
7630         * lib/freadptr.h: New file.
7631         * lib/freadptr.c: New file.
7632         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
7633
7634 2008-02-26  Karl Berry  <karl@freefriends.org>
7635
7636         Sync from Libtool:
7637         * libltdl/argz.c (argz_add, argz_count): New functions.
7638         * libltdl/argz.in.h: Declare them.
7639         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
7640
7641 2008-02-22  Bruno Haible  <bruno@clisp.org>
7642
7643         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
7644         is a pointer type.  Needed for HP-UX 10.
7645         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
7646         * doc/posix-functions/gmtime_r.texi: Likewise.
7647         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
7648
7649 2008-02-24  Bruno Haible  <bruno@clisp.org>
7650
7651         * modules/environ-tests: New file.
7652         * tests/test-environ.c: New file.
7653
7654         New module 'environ'.
7655         * modules/environ: New file.
7656         * lib/unistd.in.h (environ): New declaration.
7657         * m4/environ.m4: New file.
7658         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
7659         after use.
7660         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
7661         HAVE_DECL_ENVIRON.
7662         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
7663         HAVE_DECL_ENVIRON.
7664         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
7665         wrong claim that 'environ' is missing on some systems.
7666         * modules/execute (Depends-on): Add environ.
7667         * lib/execute.c (environ): Remove fallback declaration.
7668         * modules/pipe (Depends-on): Add environ.
7669         * lib/pipe.c (environ): Remove fallback declaration.
7670         * modules/setenv (Depends-on): Add environ.
7671         * lib/setenv.c (environ): Remove fallback declaration.
7672         * modules/unsetenv (Depends-on): Add environ.
7673         * lib/unsetenv.c (environ): Remove fallback declaration.
7674         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
7675         m4/environ.m4.
7676         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
7677         (gl_PREREQ_UNSETENV): Likewise.
7678
7679 2008-02-24  Bruno Haible  <bruno@clisp.org>
7680
7681         * doc/posix-functions/environ.texi: Document the MacOS X problem.
7682
7683 2008-02-20  Bob Proulx  <bob@proulx.com>
7684
7685         Enable use of older two part flavor 'git describe'.
7686         * build-aux/git-version-gen: If using the older two part flavor of
7687         git version then recreate the third part now present in the
7688         newer three part flavor of git describe.
7689
7690 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
7691
7692         * lib/fts.c (fts_build): Typo correction to comment.
7693
7694 2008-02-17  Bruno Haible  <bruno@clisp.org>
7695
7696         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
7697         generating no-op conflicts.
7698
7699 2008-02-17  Bruno Haible  <bruno@clisp.org>
7700
7701         Speed up by 10%.
7702         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
7703         result_entries, rather than an index-based loop.
7704
7705 2008-02-17  Bruno Haible  <bruno@clisp.org>
7706
7707         Speed up by 25%.
7708         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
7709         'hashcode_cached'.
7710         (entry_create): New function.
7711         (entry_hashcode): Use the cached hashcode if possible.
7712         (read_changelog_file, try_split_merged_entry): Use entry_create.
7713
7714 2008-02-17  Bruno Haible  <bruno@clisp.org>
7715
7716         Speed up from O(n^2) to O(n) for long ChangeLog files.
7717         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
7718         (read_changelog_file): Change implementation of entries_reversed list
7719         to rbtreehash.
7720         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
7721
7722 2008-02-17  Bruno Haible  <bruno@clisp.org>
7723
7724         New option --split-merged-entry.
7725         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
7726         (find_paragraph_end, try_split_merged_entry): New functions.
7727         (long_options): Add option --split-merged-entry.
7728         (usage): Document option --split-merged-entry.
7729         (main): Implement option --split-merged-entry.
7730         Reported by Eric Blake.
7731
7732 2008-02-17  Bruno Haible  <bruno@clisp.org>
7733
7734         * lib/git-merge-changelog.c: Include c-strstr.h.
7735         (main): Support the "git pull --rebase" situation.
7736         * modules/git-merge-changelog (Depends-on): Add c-strstr.
7737         Reported by Eric Blake.
7738
7739 2008-02-16  Eric Blake  <ebb9@byu.net>
7740
7741         Avoid doubling \ in common case of "c-maybe" quoting style.
7742         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
7743         eliding outer quotes.
7744         * lib/quotearg.h: Document this.
7745         * tests/test-quotearg.c (result_strings, inputs, results_g)
7746         (flag_results, locale_results): Test it by adding a new string to
7747         each test group.
7748         (compare_strings): Test new string.
7749
7750 2008-02-13  Eric Blake  <ebb9@byu.net>
7751
7752         Avoid trigraph quoting in default output.
7753         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
7754         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
7755         unless explicitly requested.
7756         * tests/test-quotearg.c (flag_results, main): Add additional tests.
7757
7758 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
7759
7760         Don't rely on signed integer overflowing to negative value.
7761         * lib/getugroups.c (getugroups): Include <limits.h>.
7762         Instead, compare against INT_MAX, and increment only if the test passes.
7763
7764 2008-02-13  Jim Meyering  <meyering@redhat.com>
7765         and Eric Blake  <ebb9@byu.net>
7766
7767         Avoid shadowing warning and compile errors on Linux.
7768         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
7769         forwarding macros on Linux.
7770         (dcgettext): Define a stub, for Linux.
7771         (results_g, main): Avoid warnings.
7772
7773 2008-02-12  Eric Blake  <ebb9@byu.net>
7774
7775         Silence warning in last patch.
7776         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
7777
7778         Quotearg part 4: add tests, fix c-maybe colon quoting.
7779         * lib/quotearg.h: Improve documentation.
7780         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
7781         escapes when adding outer quotes.  When quoting trigraphs, use
7782         valid C notation.  When quoting NUL, omit extra characters if next
7783         character is not digit.  Alter prototype.
7784         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
7785         callers.
7786         * modules/quotearg-tests: New module.
7787         * tests/test-quotearg.c: New test.
7788
7789 2008-02-07  Eric Blake  <ebb9@byu.net>
7790
7791         Quotearg part 3: add flag to control outer quote elision.
7792         * lib/quotearg.h (c_maybe_quoting_style): New style.
7793         (enum quoting_flags): Better documentation of flags.
7794         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
7795         c-maybe style.
7796         (quotearg_buffer_restyled): Handle new flag to elide outer
7797         quotes.
7798
7799         Quotearg part 2: add flag that can control NUL elision.
7800         * lib/quotearg.h (set_quoting_flags): New prototype.
7801         * lib/quotearg.c (struct quoting_options): Add flag field.
7802         (set_quoting_flags): New function.
7803         (quotearg_buffer_restyled): Add flags parameter.
7804         (quotearg_alloc_mem): Set the flag if length cannot be returned.
7805         (quotearg_n_options): Set the flag, since length cannot be
7806         returned.
7807         (quoting_options_from_style): Default flags correctly.
7808
7809         Quotearg part 1: more wrappers, restore quotearg_char state.
7810         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
7811         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
7812         (quotearg_colon_mem): New wrappers.
7813         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
7814         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
7815         functions.
7816         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
7817         (quotearg_colon_mem): New functions.
7818
7819 2008-02-11  Bruno Haible  <bruno@clisp.org>
7820
7821         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
7822         library in the current directory: it does not work with parallel make.
7823         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
7824
7825 2008-02-11  Bruno Haible  <bruno@clisp.org>
7826
7827         * .gitattributes: New file.
7828
7829 2008-02-11  Jim Meyering  <meyering@redhat.com>
7830
7831         useless-if-before-free: Fix reversed exit values.
7832         * build-aux/useless-if-before-free: Use correct values
7833         for EXIT_MATCH and EXIT_NO_MATCH.
7834
7835         * build-aux/useless-if-before-free: Close stdout carefully.
7836
7837 2008-02-10  Bruno Haible  <bruno@clisp.org>
7838
7839         New module 'git-merge-changelog'.
7840         * modules/git-merge-changelog: New file.
7841         * lib/git-merge-changelog.c: New file.
7842
7843 2008-02-10  Jim Meyering  <meyering@redhat.com>
7844
7845         useless-if-before-free: New option: --list (-l).
7846
7847         useless-if-before-free: Don't exit immediately upon open failure.
7848         * build-aux/useless-if-before-free: Exit 2 for errors.
7849         Upon failure to open a file, don't exit immediately.
7850         Rather, just warn and continue with any remaining files.
7851
7852 2008-02-10  Bruno Haible  <bruno@clisp.org>
7853
7854         New abstract list operation 'node_set_value'.
7855         * lib/gl_list.h (gl_list_node_set_value): New function.
7856         (struct gl_list_implementation): New field node_set_value.
7857         * lib/gl_list.c (gl_list_node_set_value): New function.
7858         * lib/gl_array_list.c (gl_array_node_set_value): New function.
7859         (gl_array_list_implementation): Update.
7860         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
7861         (gl_carray_list_implementation): Update.
7862         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
7863         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
7864         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
7865         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
7866         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
7867         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
7868         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
7869         Update.
7870         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
7871         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
7872         (gl_sublist_list_implementation): Update.
7873
7874 2008-02-10  Bruno Haible  <bruno@clisp.org>
7875
7876         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
7877         Needed when ELEMENT is #defined to 'some_type *'.
7878
7879 2008-02-10  Jim Meyering  <meyering@redhat.com>
7880
7881         New script and module: useless-if-before-free
7882         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
7883         * build-aux/useless-if-before-free: New file.
7884         * modules/useless-if-before-free: New file.
7885
7886         * build-aux/gitlog-to-changelog: Use committer date, not author date.
7887
7888         xstrtol_error: Fix typo.
7889         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
7890         s/exit_failure/exit_status/.
7891
7892 2008-02-09  Jim Meyering  <meyering@redhat.com>
7893
7894         New script and module: gitlog-to-changelog
7895         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
7896         * modules/gitlog-to-changelog: New file.
7897         * build-aux/gitlog-to-changelog: New file.
7898
7899 2008-02-08  Jim Meyering  <meyering@redhat.com>
7900
7901         Avoid two "parameter unused" warnings.
7902         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
7903         Mark "st" as used.
7904
7905         Use "git COMMAND", not "git-COMMAND".
7906         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
7907         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
7908         * build-aux/git-version-gen: Use "git status", not "git-status".
7909
7910 2008-02-07  Bruno Haible  <bruno@clisp.org>
7911
7912         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
7913         Avoids a crash on Windows Vista.
7914         Reported by Adam Strzelecki <ono@java.pl> via
7915         Simon Josefsson <simon@josefsson.org>.
7916
7917 2008-02-06  Bruno Haible  <bruno@clisp.org>
7918
7919         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
7920         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
7921         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
7922         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
7923         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
7924         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
7925         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
7926         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
7927         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
7928         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
7929         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
7930         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
7931         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
7932         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
7933         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
7934         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
7935         left-adjust flag.
7936         * tests/test-snprintf-posix.h (test_function): Likewise.
7937         * tests/test-sprintf-posix.h (test_function): Likewise.
7938         * tests/test-vasprintf-posix.c (test_function): Likewise.
7939         * doc/posix-functions/fprintf.texi: Update.
7940         * doc/posix-functions/printf.texi: Update.
7941         * doc/posix-functions/snprintf.texi: Update.
7942         * doc/posix-functions/sprintf.texi: Update.
7943         * doc/posix-functions/vfprintf.texi: Update.
7944         * doc/posix-functions/vprintf.texi: Update.
7945         * doc/posix-functions/vsnprintf.texi: Update.
7946         * doc/posix-functions/vsprintf.texi: Update.
7947         Reported by Peter Fales <psfales@alcatel-lucent.com>.
7948
7949 2008-02-06  Bruno Haible  <bruno@clisp.org>
7950
7951         Fix bug introduced on 2008-01-26.
7952         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
7953
7954 2008-02-06  Bruno Haible  <bruno@clisp.org>
7955
7956         Fix bug introduced on 2007-06-10.
7957         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
7958         !NEED_PRINTF_FLAG_ZERO.
7959
7960 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
7961
7962         getloadavg: use libperfstat on AIX5
7963         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
7964
7965 2008-02-03  Bruno Haible  <bruno@clisp.org>
7966
7967         * lib/diffseq.h: Add comments about required #includes.
7968         Reported by Michael Biggs <gnulib@doubleplum.net>.
7969
7970 2008-02-01  Bruno Haible  <bruno@clisp.org>
7971
7972         * users.txt: Add gnuit.
7973
7974 2008-01-31  Bruno Haible  <bruno@clisp.org>
7975
7976         * lib/md4.c (set_uint32): Mark as inline.
7977         * lib/md5.c (set_uint32): Likewise.
7978         * lib/sha1.c (set_uint32): Likewise.
7979         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
7980         * m4/md5.m4 (gl_MD5): Likewise.
7981         * m4/sha1.m4 (gl_SHA1): Likewise.
7982
7983 2008-01-31  Jim Meyering  <meyering@redhat.com>
7984
7985         Use "sizeof VAR", rather than a literal "4".
7986         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
7987         * lib/md4.c (md4_read_ctx): Likewise.
7988         * lib/sha1.c (sha1_read_ctx): Likewise.
7989
7990 2008-01-31  Simon Josefsson  <simon@josefsson.org>
7991
7992         * tests/test-sha1.c: New file, based on test-md5.c.
7993
7994         * modules/crypto/sha1-tests: New file.
7995
7996 2008-01-31  Simon Josefsson  <simon@josefsson.org>
7997
7998         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
7999
8000 2008-01-31  Jim Meyering  <meyering@redhat.com>
8001
8002         Prefer "sizeof v" over the equivalent "4".
8003         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
8004         * lib/md5.c (set_uint32): Likewise.
8005         * lib/sha1.c (set_uint32): Likewise.
8006
8007 2008-01-31  Simon Josefsson  <simon@josefsson.org>
8008
8009         * lib/sha1.c (set_uint32): Mark function as static.
8010
8011 2008-01-31  Simon Josefsson  <simon@josefsson.org>
8012
8013         md2: clarify comments to say that alignment is not required.
8014         * lib/md2.h: Remove warning about alignment in comment.
8015         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
8016         never been required.
8017
8018 2008-01-31  Simon Josefsson  <simon@josefsson.org>
8019
8020         md4: adapt alignment constraint fix from sha1.
8021         * lib/md4.c (set_uint32): New function, from sha1.c
8022         (md4_read_ctx): Use it.
8023         (md4_finish_ctx): Doc fix.
8024         * lib/md4.h: Doc fix.
8025
8026 2008-01-31  Simon Josefsson  <simon@josefsson.org>
8027
8028         md5: adapt alignment constraint fix from sha1.
8029         * lib/md5.c (set_uint32): New function, from sha1.c
8030         (md5_read_ctx): Use it.
8031         (md5_finish_ctx): Doc fix.
8032         * lib/md5.h: Doc fix.
8033
8034 2008-01-30  Peter Palfrader  <weasel@debian.org>
8035
8036         sha1: remove the result buffer alignment constraint
8037         * lib/sha1.c (set_uint32): New function.
8038         (sha1_read_ctx): Rewrite to remove the result buffer alignment
8039         constraint.
8040         (sha1_finish_ctx): Remove comment warning about alignment constraint.
8041         * lib/sha1.h: Likewise.
8042
8043 2008-01-30  Andreas Schwab  <schwab@suse.de>
8044             Bruno Haible  <bruno@clisp.org>
8045
8046         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
8047         correct definition of LDBL_MIN_EXP.
8048
8049 2008-01-30  Karl Berry  <karl@gnu.org>
8050
8051         * config/srclist-update: try to preserve x bit on updates.
8052         * config/srclistvars.sh: update for karl.
8053
8054 2008-01-29  Jim Meyering  <meyering@redhat.com>
8055
8056         vasnprintf.c: Avoid warning about unused label
8057         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
8058         "overflow" label definition and associated code with the
8059         same cpp condition that guards the sole use of that label.
8060
8061 2008-01-26  Bruno Haible  <bruno@clisp.org>
8062
8063         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
8064         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
8065         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
8066         * lib/isnanl-nolibm.h (isnanl): Likewise.
8067         Reported by Paul Eggert <eggert@cs.ucla.edu>.
8068
8069 2008-01-26  Bruno Haible  <bruno@clisp.org>
8070
8071         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
8072         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
8073
8074 2008-01-26  Bruno Haible  <bruno@clisp.org>
8075
8076         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
8077         GCC >= 4.0 built-in.
8078         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
8079
8080 2008-01-26  Bruno Haible  <bruno@clisp.org>
8081
8082         Rename isnan, applicable to 'double' only, to isnand.
8083         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
8084         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
8085         (configure.ac): Update.
8086         (Include): Replace "isnan.h" with "isnand.h".
8087         * m4/isnand.m4: Renamed from m4/isnan.m4.
8088         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
8089         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
8090         instead of isnan.c.
8091         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
8092         instead of HAVE_ISNAN_IN_LIBC.
8093         (isnand): Renamed from isnan.
8094         * lib/isnand.c: New file.
8095         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
8096         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
8097         (Makefile.am): Update.
8098         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
8099         Include isnand.h instead of isnan.h.
8100         (main): Test isnand instead of isnan.
8101         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
8102         isnan-nolibm.
8103         * modules/frexp (Depends-on): Likewise.
8104         * modules/frexp-tests (Depends-on): Likewise.
8105         * modules/frexp-nolibm (Depends-on): Likewise.
8106         * modules/frexp-nolibm-tests (Depends-on): Likewise.
8107         * modules/isfinite (Depends-on): Likewise.
8108         * modules/round-tests (Depends-on): Likewise.
8109         * modules/signbit (Depends-on): Likewise.
8110         * modules/signbit-tests (Depends-on): Likewise.
8111         * modules/snprintf-posix (Depends-on): Likewise.
8112         * modules/sprintf-posix (Depends-on): Likewise.
8113         * modules/trunc-tests (Depends-on): Likewise.
8114         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
8115         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
8116         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
8117         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
8118         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
8119         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
8120         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
8121         * modules/vasnprintf-posix (Depends-on): Likewise.
8122         * modules/vasprintf-posix (Depends-on): Likewise.
8123         * modules/vfprintf-posix (Depends-on): Likewise.
8124         * modules/vsnprintf-posix (Depends-on): Likewise.
8125         * modules/vsprintf-posix (Depends-on): Likewise.
8126         * lib/frexp.c: Include isnand.h instead of isnan.h.
8127         (ISNAN): Set to isnand instead of isnan.
8128         * lib/isfinite.c: Include isnand.h instead of isnan.h.
8129         (gl_isfinited): Use isnand instead of isnan.
8130         * lib/signbitd.c: Include isnand.h instead of isnan.h.
8131         (gl_signbitd): Use isnand instead of isnan.
8132         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
8133         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
8134         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
8135         (main): Use isnand instead of isnan.
8136         * tests/test-round1.c: Include isnand.h.
8137         (main): Use isnand instead of isnan.
8138         * tests/test-round2.c: Include isnand.h instead of isnan.h.
8139         (ISNAN): Set to isnand instead of isnan.
8140         * tests/test-trunc1.c: Include isnand.h.
8141         (main): Use isnand instead of isnan.
8142         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
8143         (equal): Use isnand instead of isnan.
8144         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
8145         isnand-nolibm.
8146         * NEWS: Mention the change.
8147
8148 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
8149             Bruno Haible  <bruno@clisp.org>
8150
8151         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
8152         the GCC builtins for signbits are present and set
8153         REPLACE_SIGNBIT_USING_GCC if so.
8154         * lib/math.in.h (signbit): Define using GCC builtins if
8155         REPLACE_SIGNBIT_USING_GCC is set.
8156         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
8157         REPLACE_SIGNBIT_USING_GCC.
8158         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
8159
8160 2008-01-25  Jim Meyering  <meyering@redhat.com>
8161
8162         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
8163         * lib/poll.c: Include <config.h>, not "config.h".
8164         * tests/test-getaddrinfo.c: Likewise.
8165
8166 2008-01-25  Simon Josefsson  <simon@josefsson.org>
8167
8168         * modules/sockets-tests: New file.
8169
8170 2008-01-24  Simon Josefsson  <simon@josefsson.org>
8171
8172         * modules/sockets: New module, can be used to call WSA_Startup and
8173         WSA_Cleanup when needed.
8174
8175         * lib/sockets.h, lib/sockets.c: New files.
8176
8177         * m4/sockets.m4: New file.
8178
8179         * tests/test-sockets.c: New file.
8180
8181 2008-01-19  Bruno Haible  <bruno@clisp.org>
8182
8183         * doc/posix-headers: Renamed from doc/headers.
8184         * doc/posix-functions: Renamed from doc/functions.
8185         * doc/gnulib.texi: Update.
8186
8187 2008-01-19  Bruno Haible  <bruno@clisp.org>
8188
8189         * doc/glibc-functions/strcasestr.texi: Include contents of
8190         doc/functions/strcasestr.texi, fixing the list of platforms.
8191         * doc/functions/strcasestr.texi: Remove file.
8192
8193 2008-01-19  Bruno Haible  <bruno@clisp.org>
8194
8195         * doc/glibc-functions/memmem.texi: Include contents of
8196         doc/functions/memmem.texi.
8197         * doc/functions/memmem.texi: Remove file.
8198
8199 2008-01-18  Bruno Haible  <bruno@clisp.org>
8200
8201         * doc/glibc-functions/*.texi: New files.
8202         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
8203         to use the new files.
8204
8205 2008-01-17  Bruno Haible  <bruno@clisp.org>
8206
8207         * tests/test-gethostname.c (main): Fix printf statement.
8208
8209 2008-01-17  Simon Josefsson  <simon@josefsson.org>
8210
8211         * modules/gethostname-tests: New file.
8212
8213         * tests/test-gethostname.c: New file.
8214
8215 2008-01-17  Simon Josefsson  <simon@josefsson.org>
8216
8217         * lib/gethostname.c: Include string.h unconditionally, strncpy is
8218         used by the UNAME case.  Reported by Bruno Haible
8219         <bruno@clisp.org>.
8220
8221 2008-01-17  Eric Blake  <ebb9@byu.net>
8222
8223         Convert c-strcasestr to be more efficient.
8224         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
8225         (Depends-on): Add c-strcase, remove malloca, strnlen.
8226         * tests/test-c-strcasestr.c (main): Enhance test.
8227         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
8228
8229 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
8230
8231         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
8232         Use it in creating po/Makevars.
8233
8234 2008-01-15  Simon Josefsson  <simon@josefsson.org>
8235
8236         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
8237         Applications that requires it should initialize libgcrypt
8238         manually.
8239
8240 2008-01-16  Simon Josefsson  <simon@josefsson.org>
8241
8242         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
8243
8244 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
8245
8246         Fix problem with getdate on mingw32 reported by Simon Josefsson
8247         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
8248         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
8249         tzname", when deciding whether to declare tzname.
8250         * lib/strftime.c (tzname): Likewise.
8251
8252 2008-01-15  Bruno Haible  <bruno@clisp.org>
8253
8254         Work around a MacOS X 10.5 bug in frexpl().
8255         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
8256         * doc/functions/frexpl.texi: Document the bug.
8257         Reported by Elias Pipping <pipping@gentoo.org>.
8258
8259 2008-01-14  Eric Blake  <ebb9@byu.net>
8260
8261         Touch up previous patch.
8262         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
8263         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
8264
8265         Convert strcasestr module to use Two-Way algorithm.
8266         * modules/strcasestr-simple: New module, based on the old
8267         strcasestr, but with Two-Way rather than KMP.
8268         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
8269         * lib/string.in.h (rpl_strcasestr): Declare.
8270         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
8271         performance.
8272         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
8273         * modules/string (Makefile.am): Support strcasestr.
8274         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
8275         * modules/strcasestr-tests (Depends-on): Check for alarm.
8276         * tests/test-strcasestr.c: Augment test.
8277         * lib/str-two-way.h: Clean up stray macro.
8278         * NEWS: Document new module.
8279         * MODULES.html.sh (string handling): Likewise.
8280         * doc/functions/strcasestr.texi: New file.
8281         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
8282         here, since it is not a POSIX function.
8283
8284 2008-01-14  Colin Watson  <cjwatson@debian.org>
8285             Bruno Haible  <bruno@clisp.org>
8286
8287         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
8288         works fine; if not, set REPLACE_STRSIGNAL.
8289         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
8290         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
8291         REPLACE_STRSIGNAL.
8292         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
8293         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
8294         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
8295
8296 2008-01-14  Bruno Haible  <bruno@clisp.org>
8297
8298         * modules/strsignal (Include): Change to <string.h>.
8299
8300 2008-01-14  Colin Watson  <cjwatson@debian.org>
8301
8302         * modules/argp (Notice): Add a notice recommending to change
8303         XGETTEXT_OPTIONS.
8304         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
8305
8306 2008-01-13  Colin Watson  <cjwatson@debian.org>
8307
8308         * modules/strsignal-tests: New file.
8309         * tests/test-strsignal.c: New file.
8310
8311         * lib/strsignal.c: New file, from glibc with modifications.
8312         * lib/siglist.h: New file, from glibc with modifications.
8313         * lib/string.in.h (strsignal): New declaration.
8314         * m4/strsignal.m4: New file.
8315         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
8316         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
8317         * modules/strsignal: New file.
8318         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
8319         HAVE_DECL_STRSIGNAL.
8320
8321 2008-01-13  Bruno Haible  <bruno@clisp.org>
8322
8323         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
8324         locale encoding is not ASCII. Needed for OpenBSD 4.0.
8325         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
8326         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
8327
8328 2008-01-13  Bruno Haible  <bruno@clisp.org>
8329
8330         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
8331         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
8332         * lib/argp.h (__attribute__): Likewise.
8333         * lib/c-stack.c (__attribute__): Likewise.
8334         * lib/error.h (__attribute__): Likewise.
8335         * lib/fts.c (__attribute__): Likewise.
8336         * lib/openat.h (__attribute__): Likewise.
8337         * lib/stdio.in.h (__attribute__): Likewise.
8338         * lib/string.in.h (__attribute__): Likewise.
8339         * lib/utimens.c (__attribute__): Likewise.
8340         * lib/vasnprintf.h (__attribute__): Likewise.
8341         * lib/xalloc.h (__attribute__): Likewise.
8342         * lib/xprintf.h (__attribute__): Likewise.
8343         * lib/xstrtol.h (__attribute__): Likewise.
8344         * lib/xvasprintf.h (__attribute__): Likewise.
8345
8346 2008-01-12  Bruno Haible  <bruno@clisp.org>
8347
8348         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
8349         * doc/glibc-headers/a.out.texi: New file.
8350         * doc/glibc-headers/aliases.texi: New file.
8351         * doc/glibc-headers/alloca.texi: New file.
8352         * doc/glibc-headers/ar.texi: New file.
8353         * doc/glibc-headers/argp.texi: New file.
8354         * doc/glibc-headers/argz.texi: New file.
8355         * doc/glibc-headers/byteswap.texi: New file.
8356         * doc/glibc-headers/crypt.texi: New file.
8357         * doc/glibc-headers/endian.texi: New file.
8358         * doc/glibc-headers/envz.texi: New file.
8359         * doc/glibc-headers/err.texi: New file.
8360         * doc/glibc-headers/error.texi: New file.
8361         * doc/glibc-headers/execinfo.texi: New file.
8362         * doc/glibc-headers/fpu_control.texi: New file.
8363         * doc/glibc-headers/fstab.texi: New file.
8364         * doc/glibc-headers/fts.texi: New file.
8365         * doc/glibc-headers/getopt.texi: New file.
8366         * doc/glibc-headers/ieee754.texi: New file.
8367         * doc/glibc-headers/ifaddrs.texi: New file.
8368         * doc/glibc-headers/libintl.texi: New file.
8369         * doc/glibc-headers/mcheck.texi: New file.
8370         * doc/glibc-headers/mntent.texi: New file.
8371         * doc/glibc-headers/obstack.texi: New file.
8372         * doc/glibc-headers/paths.texi: New file.
8373         * doc/glibc-headers/printf.texi: New file.
8374         * doc/glibc-headers/pty.texi: New file.
8375         * doc/glibc-headers/resolv.texi: New file.
8376         * doc/glibc-headers/shadow.texi: New file.
8377         * doc/glibc-headers/sysexits.texi: New file.
8378         * doc/glibc-headers/ttyent.texi: New file.
8379
8380 2008-01-12  Jim Meyering  <meyering@redhat.com>
8381
8382         announce-gen: emit Gnulib's git-based version string.
8383         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
8384         New option --gnulib-version=V, where V is expected to be
8385         the output of running git describe in the gnulib directory.
8386         (get_tool_versions): Request feedback on xdelta.  I suspect it's
8387         not useful, and plan to stop publishing an xdelta file with each
8388         coreutils release.
8389
8390         * build-aux/announce-gen: Also check for lzma-compressed files.
8391
8392 2008-01-11  Bruno Haible  <bruno@clisp.org>
8393
8394         * tests/test-memmem.c (main): Increase maximum allowed time.
8395         * tests/test-strstr.c (main): Likewise.
8396
8397 2008-01-11  Bruno Haible  <bruno@clisp.org>
8398
8399         * doc/functions/memmem.texi: Add more precisions about platforms.
8400         * doc/functions/strstr.texi: Likewise.
8401
8402 2008-01-10  Eric Blake  <ebb9@byu.net>
8403
8404         * m4/strstr.m4: Delete cruft from copy-n-paste.
8405         Reported by Bruno Haible.
8406
8407 2008-01-10  Bruno Haible  <bruno@clisp.org>
8408
8409         Make c-strstr rely on strstr.
8410         * lib/c-strstr.c: Don't include str-kmp.h.
8411         (c_strstr): Define in terms of strstr.
8412         * modules/c-strstr (Files): Remove lib/str-kmp.h.
8413         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
8414
8415 2008-01-10  Bruno Haible  <bruno@clisp.org>
8416
8417         * doc/gnulib.texi (String Functions in C Locale): New section.
8418         * doc/c-ctype.texi: New file.
8419         * doc/c-strcase.texi: New file.
8420         * doc/c-strcaseeq.texi: New file.
8421         * doc/c-strcasestr.texi: New file.
8422         * doc/c-strstr.texi: New file.
8423         * doc/c-strtod.texi: New file.
8424         * doc/c-strtold.texi: New file.
8425
8426 2008-01-10  Eric Blake  <ebb9@byu.net>
8427
8428         * lib/relocatable.h: Fix a comment.
8429
8430 2008-01-10  Eric Blake  <ebb9@byu.net>
8431
8432         Share two-way algorithm.
8433         * lib/str-two-way.h: New file, merged from...
8434         * lib/memmem.c: ...here...
8435         * lib/strstr.c: ...and here.
8436         * modules/memmem (Files): Use it.
8437         * modules/strstr (Files): Likewise.
8438
8439         Avoid quadratic strstr implementations.
8440         * lib/strstr.c: New file.
8441         * m4/strstr.m4: Likewise.
8442         * modules/strstr: Likewise.
8443         * modules/strstr-tests: Likewise.
8444         * tests/test-strstr.c: Likewise.
8445         * lib/string.in.h (rpl_strstr): Declare.
8446         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
8447         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
8448         * modules/string (Makefile.am): Likewise.
8449         * MODULES.html.sh (string handling): Mention new module.
8450         * doc/functions/strstr.texi (strstr): Document the bug.
8451
8452 2008-01-10  Bruno Haible  <bruno@clisp.org>
8453
8454         * lib/relocatable.h (relocate): State whether result is freshly
8455         allocated or not.
8456         * lib/relocatable.c (relocate): Return a freshly allocated string
8457         instead of a pointer to a privately held string.
8458         Reported by Sylvain Beucler <beuc@gnu.org>.
8459
8460 2008-01-10  Colin Watson  <cjwatson@debian.org>
8461
8462         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
8463         s/S_ISNLK/S_ISLNK/.
8464
8465 2008-01-09  Bruno Haible  <bruno@clisp.org>
8466
8467         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
8468         and other files.
8469         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
8470         if it's only a guess.
8471         * modules/memmem: Simplify by depending on memmem-simple.
8472
8473 2008-01-09  Bruno Haible  <bruno@clisp.org>
8474
8475         Work around OpenBSD 4.0 tdelete() bug.
8476         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
8477         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
8478         macros and don't redefine the enum values.
8479         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
8480         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
8481         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
8482
8483 2008-01-09  Bruno Haible  <bruno@clisp.org>
8484
8485         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
8486         (main): Don't perform the tests if setlocale did not install a UTF-8
8487         locale. Needed on OpenBSD 4.0.
8488         * modules/wcwidth-tests (Depends-on): Add localcharset.
8489
8490 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
8491
8492         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
8493         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
8494         * NEWS: announce this.
8495         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
8496
8497 2008-01-09  Simon Josefsson  <simon@josefsson.org>
8498         and Eric Blake  <ebb9@byu.net>
8499
8500         Add memmem-simple module.
8501         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
8502         (gl_FUNC_MEMMEM): Separate performance from presence checks.
8503         * modules/memmem-simple: New file.
8504         * modules/memmem (Description): Tweak.
8505         * MODULES.html.sh (string handling): Mention new module.
8506         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
8507         addressed by memmem-simple.
8508         * NEWS: Document the difference.
8509
8510 2008-01-09  Eric Blake  <ebb9@byu.net>
8511
8512         Give gcc some memmem optimization hints.
8513         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
8514         (strcasestr): Declare as pure.
8515         * modules/memmem (Maintainer): Claim my implementation.
8516
8517 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8518
8519         Support AIX 6.1 and higher.
8520         * build-aux/config.libpath: Likewise.
8521         * build-aux/config.rpath: Likewise.
8522
8523 2008-01-08  Jim Meyering  <meyering@redhat.com>
8524             Bruno Haible  <bruno@clisp.org>
8525
8526         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
8527         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
8528         Reported by Peter Fales in
8529         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
8530
8531 2008-01-08  Bruno Haible  <bruno@clisp.org>
8532
8533         * modules/unictype/category-of (Depends-on): Add
8534         unictype/category-none.
8535         * modules/unictype/category-and-tests (Depends-on): Add
8536         unictype/category-{L,N,Lu,Nd}.
8537         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
8538         * modules/unictype/category-or-tests (Depends-on): Add
8539         unictype/category-{L,N}.
8540         * modules/unictype/category-name-tests (Depends-on): Add
8541         unictype/category-{Z,Nl}.
8542         Reported by Simon Josefsson.
8543
8544 2008-01-08  Bruno Haible  <bruno@clisp.org>
8545
8546         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
8547         convention better.
8548         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
8549         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
8550         Reported by Peter Miller <millerp@canb.auug.org.au>.
8551
8552 2008-01-08  Eric Blake  <ebb9@byu.net>
8553
8554         Rewrite memmem to guarantee linear complexity without malloc.
8555         * lib/memmem.c (memmem): Use Two-Way rather than
8556         Knuth-Morris-Pratt, to allow O(1) space usage.
8557         (critical_factorization, two_way_short_needle)
8558         (two_way_long_needle): New functions.
8559         (knuth_morris_pratt): Delete.
8560         * modules/memmem (Depends-on): No longer need malloca or stdbool.
8561         Add stdint.
8562         * tests/test-memmem.c (main): Add tests for periodic needle and
8563         sublinear performance.
8564         * doc/functions/memmem.texi (memmem): Document other deficiencies
8565         in cygwin and older glibc.
8566
8567 2008-01-08  Bruno Haible  <bruno@clisp.org>
8568
8569         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
8570         augmentation.
8571
8572 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
8573
8574         Add a configure time option: --disable-acl.
8575         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
8576         AC_ARG_ENABLE(acl).
8577
8578 2008-01-06  Simon Josefsson  <simon@josefsson.org>
8579
8580         * tests/test-localename.c: Don't include obsolete "setenv.h".
8581
8582         * modules/localename-tests (Depends-on): Need unsetenv.
8583
8584 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8585
8586         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
8587
8588 2008-01-06  Colin Watson  <cjwatson@debian.org>
8589
8590         * users.txt: Add man-db.
8591
8592 2008-01-07  Bruno Haible  <bruno@clisp.org>
8593
8594         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
8595         previous section name.
8596
8597 2008-01-07  Bruno Haible  <bruno@clisp.org>
8598
8599         * lib/progname.c (set_program_name): Don't strip off a leading
8600         "lt-" prefix outside a .libs directory.
8601         Suggested by Paul Eggert.
8602
8603 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
8604             Bruno Haible  <bruno@clisp.org>
8605
8606         Improve memory cleanup in 'relocatable' module.
8607         * lib/relocatable.h (compute_curr_prefix): Change return type to
8608         'char *'.
8609         * lib/relocatable.c (compute_curr_prefix): Change return type to
8610         'char *'. Free curr_installdir after use.
8611         (relocate): Free curr_prefix_better after use.
8612         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
8613
8614 2008-01-01  Bruno Haible  <bruno@clisp.org>
8615
8616         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
8617         failure on older glibc systems.
8618         Reported by Peter Fales <psfales@alcatel-lucent.com>.
8619
8620 2008-01-05  Eric Blake  <ebb9@byu.net>
8621
8622         Avoid quadratic system memmem.
8623         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
8624         Reported by Ralf Wildenhues.
8625
8626         Fix memmem test for mingw.
8627         * modules/memmem-tests (configure.ac): Check for alarm.
8628         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
8629         it.
8630         * doc/functions/memmem.texi: New file.
8631         * doc/gnulib.texi (Function Substitutes): Add memmem.
8632         Reported by Bruno Haible.
8633
8634 2008-01-04  Bruno Haible  <bruno@clisp.org>
8635
8636         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
8637         Require gl_HEADER_STRINGS_H_DEFAULTS, not
8638         gl_HEADER_STRING_H_DEFAULTS.
8639
8640 2008-01-04  Eric Blake  <ebb9@byu.net>
8641
8642         Shorten duration of memmem test.
8643         * tests/test-memmem.c (main): Use alarm to declare failure if test
8644         is taking too long.
8645         Reported by Ralf Wildenhues.
8646
8647 2007-12-21  Simon Josefsson  <simon@josefsson.org>
8648
8649         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
8650         string, needed by strerror.
8651
8652 2008-01-03  Colin Watson  <cjwatson@debian.org>
8653             Bruno Haible  <bruno@clisp.org>
8654
8655         * doc/gnulib-tool.texi (Localization): New section.
8656
8657 2008-01-02  Bruno Haible  <bruno@clisp.org>
8658
8659         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
8660         variables to 'unsigned char *' type.
8661         Reported by Paul Eggert.
8662
8663 2008-01-02  Jim Meyering  <jim@meyering.net>
8664
8665         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
8666
8667 2007-12-31  Jim Meyering  <jim@meyering.net>
8668
8669         Avoid use of private FTS type name.
8670         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
8671
8672 2007-12-30  Karl Berry  <karl@gnu.org>
8673
8674         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
8675         work around defect in Texinfo and/or the standalone Info browser.
8676
8677 2007-12-30  Bruno Haible  <bruno@clisp.org>
8678
8679         Unify 5 copies of the KMP code.
8680         * lib/str-kmp.h: New file.
8681         * lib/c-strcasestr.c: Include str-kmp.h.
8682         (knuth_morris_pratt): Remove function.
8683         (c_strcasestr): Update.
8684         * lib/c-strstr.c: Include str-kmp.h.
8685         (knuth_morris_pratt): Remove function.
8686         (c_strcasestr): Update.
8687         * lib/mbscasestr.c: Include str-kmp.h.
8688         (knuth_morris_pratt_unibyte): Remove function.
8689         * lib/mbsstr.c: Include str-kmp.h.
8690         (knuth_morris_pratt_unibyte): Remove function.
8691         * lib/strcasestr.c: Include str-kmp.h.
8692         (knuth_morris_pratt): Remove function.
8693         (strcasestr): Update.
8694         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
8695         * modules/c-strstr (Files): Likewise.
8696         * modules/mbscasestr (Files): Likewise.
8697         * modules/mbsstr (Files): Likewise.
8698         * modules/strcasestr (Files): Likewise.
8699         Suggested by Paul Eggert.
8700
8701 2007-12-30  Bruno Haible  <bruno@clisp.org>
8702
8703         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
8704         defined.
8705
8706 2007-12-30  Bruno Haible  <bruno@clisp.org>
8707
8708         * lib/xmalloca.h: Include xalloc.h.
8709         (xnmalloca): New macro.
8710
8711 2007-12-30  Bruno Haible  <bruno@clisp.org>
8712
8713         * lib/malloca.h (nmalloca): New macro.
8714         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
8715         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
8716         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
8717         knuth_morris_pratt_multibyte): Likewise.
8718         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
8719         knuth_morris_pratt_multibyte): Likewise.
8720         * lib/memmem.c (knuth_morris_pratt): Likewise.
8721         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
8722
8723 2007-12-25  Bruno Haible  <bruno@clisp.org>
8724
8725         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
8726         * lib/glob.c: Don't include openat.h.
8727         (link_exists2_p): Add back the code that deals with the
8728         !GLOB_ALTDIRFUNC case.
8729         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
8730         let it do the filename concatenation.
8731         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
8732         * modules/glob (Depends-on): Remove openat.
8733
8734 2007-12-31  Bruno Haible  <bruno@clisp.org>
8735
8736         * modules/dirfd (License): Change to LGPLv2+.
8737         Approved by Jim Meyering.
8738
8739 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
8740
8741         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
8742         when multiplying M by sizeof (size_t).
8743
8744 2007-12-10  Martin Lambers  <marlam@marlam.de>
8745
8746         Override getpagesize on mingw.
8747         * lib/getpagesize.c: New file.
8748         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
8749         * modules/getpagesize (Files): Add lib/getpagesize.c.
8750         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
8751         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
8752         REPLACE_GETPAGESIZE.
8753         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
8754
8755 2007-12-25  Bruno Haible  <bruno@clisp.org>
8756
8757         * modules/localcharset (Notice): New field.
8758         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
8759         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
8760
8761 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
8762             Bruno Haible  <bruno@clisp.org>
8763
8764         Avoid using the syntax symbol() in formatted documentation.
8765         * MODULES.html.sh (func_module): When replacing symbol() with a
8766         hyperlink, remove the parentheses. Show an error if some remain.
8767         Recognize and render the '...' syntax.
8768         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
8769         Rework. Add paragraph about GCC's inlining.
8770         * doc/alloca.texi: Likewise.
8771         * doc/error.texi: Remove parentheses from symbol reference.
8772         * doc/gnulib-intro.texi: Likewise.
8773         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
8774         * modules/fnmatch (Description): Reword to say "the ... function".
8775         * modules/full-read (Description): Likewise.
8776         * modules/full-write (Description): Likewise.
8777         * modules/safe-read (Description): Likewise.
8778         * modules/safe-write (Description): Likewise.
8779         * modules/strchrnul (Description): Likewise.
8780         * modules/trim (Description): Likewise.
8781         * modules/error (Description): Remove parentheses from symbol
8782         references.
8783         * modules/verror (Description): Likewise.
8784         Reported by Karl Berry.
8785
8786 2007-12-25  Bruno Haible  <bruno@clisp.org>
8787
8788         Fixup after 2007-10-16 commit.
8789         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
8790
8791 2007-12-24  Bruno Haible  <bruno@clisp.org>
8792
8793         Make --enable-relocatable work with DESTDIR.
8794         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
8795         to compute installdir from destprog.
8796         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
8797         also set the RELOC_DESTDIR variable.
8798         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
8799
8800 2007-12-24  Bruno Haible  <bruno@clisp.org>
8801
8802         Fix link error due to xalloc_die().
8803         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
8804         of xreadlink.
8805         * lib/relocwrapper.c: Update comments.
8806         * build-aux/install-reloc: Remove xreadlink.c from file list.
8807         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
8808         xreadlink.c.
8809         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
8810
8811 2007-12-24  Bruno Haible  <bruno@clisp.org>
8812
8813         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
8814         * lib/setenv.h: Remove file.
8815         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
8816         lib/setenv.h.
8817         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
8818         (Depends-on): Add stdlib.
8819         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
8820         gl_FUNC_UNSETENV.
8821         (Include): Replace setenv.h with <stdlib.h>.
8822         * modules/unsetenv: New file.
8823         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
8824         * lib/unsetenv.c: Include <stdlib.h> first.
8825         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
8826         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
8827         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
8828         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
8829         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
8830         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
8831         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
8832         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
8833         * doc/functions/unsetenv.texi: Update.
8834         * modules/xsetenv (Depends-on): Add unsetenv.
8835         * modules/getdate (Depends-on): Likewise.
8836         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
8837         * lib/xsetenv.c: Don't include setenv.h.
8838         * lib/getdate.y: Likewise.
8839         * lib/relocwrapper.c: Likewise.
8840         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
8841         (Depends-on): Add stdlib.
8842         * NEWS: Mention the changes.
8843         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
8844
8845 2007-12-23  Bruno Haible  <bruno@clisp.org>
8846
8847         * lib/memmem.c (memmem): Use lowercase variable names. Tab
8848         indentation.
8849
8850 2007-12-23  Bruno Haible  <bruno@clisp.org>
8851
8852         * lib/c-strcasestr.c: Add more comments.
8853         * lib/c-strstr.c: Likewise.
8854         * lib/mbscasestr.c: Likewise.
8855         * lib/mbsstr.c: Likewise.
8856         * lib/strcasestr.c: Likewise.
8857         * lib/memmem.c: Likewise.
8858
8859 2007-12-23  Bruno Haible  <bruno@clisp.org>
8860
8861         * tests/test-memmem.c: Include <string.h> first.
8862
8863 2007-12-22  Bruno Haible  <bruno@clisp.org>
8864
8865         * gnulib-tool (func_create_testdir): Change $auxdir while generating
8866         the contents of $testsbase.
8867         Reported by Ralf Wildenhues.
8868
8869 2007-12-22  Bruno Haible  <bruno@clisp.org>
8870
8871         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
8872         two variables local_ldadd_before, local_ldadd_last.
8873
8874 2007-12-20  Eric Blake  <ebb9@byu.net>
8875
8876         Work around circular library issue when cross-compiling.
8877         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
8878         that progname.o does not need to pull in rpl_memcmp.
8879
8880 2007-12-19  Eric Blake  <ebb9@byu.net>
8881
8882         Fix memmem to avoid O(n^2) worst-case complexity.
8883         * lib/memmem.c (knuth_morris_pratt): New function.
8884         (memmem): Use it if first few naive iterations fail.
8885         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
8886         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
8887         * modules/memchr (License): Likewise.
8888         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
8889         malloca.
8890         * tests/test-memmem.c: Rewrite, borrowing ideas from
8891         test-mbsstr1.c; the old version wouldn't even compile!
8892         * modules/memmem-tests: New file.
8893         * lib/string.in.h (rpl_memmem): Add declaration.
8894         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
8895         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
8896         REPLACE_MEMMEM.
8897
8898 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
8899
8900         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
8901         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
8902         before any system include files, and undef after them all.  This
8903         should fix a problem on VMS reported by John E. Malmberg in
8904         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
8905
8906 2007-12-17  Eric Blake  <ebb9@byu.net>
8907
8908         Revert addition of verify, for BSD/OS.
8909         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
8910         can't handle large files, for the sake of obsolete platforms.
8911         * modules/fseeko (Depends-on): Remove verify.
8912         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
8913         * doc/functions/ftello.texi (ftello): Likewise.
8914         * doc/functions/fgetpos.texi (fgetpos): Likewise.
8915         Reported by Larry Jones.
8916
8917 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
8918
8919         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
8920         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
8921
8922 2007-12-17  Jim Meyering  <meyering@redhat.com>
8923
8924         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
8925         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
8926         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
8927         * modules/getcwd (Depends-on): Add openat.
8928         Reported by Petr Salinger.
8929
8930 2007-12-17  Bruno Haible  <bruno@clisp.org>
8931
8932         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
8933         avoid a segmentation fault of the configure test on x86_64 systems.
8934
8935 2007-12-15  Jim Meyering  <meyering@redhat.com>
8936
8937         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
8938
8939 2007-12-13  Eric Blake  <ebb9@byu.net>
8940
8941         Another fseek test.
8942         * tests/test-fseek.c (main): Also test ungetc handling.
8943         * tests/test-fseeko.c (main): Likewise.
8944         * modules/fseeko (Depends-on): Add verify.
8945         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
8946         large.
8947         Reported by Larry Jones.
8948
8949         Fix fseeko on mingw.
8950         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
8951         seek.
8952
8953         Beef up fseek tests.
8954         * tests/test-fseek.c (main): Also test eof handling.
8955         * tests/test-fseeko.c (main): Likewise.
8956         Reported by Larry Jones.
8957
8958 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
8959
8960         Fix fseeko on BSD-based platforms.
8961         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
8962         successful seek.
8963
8964 2007-12-12  Eric Blake  <ebb9@byu.net>
8965
8966         Allow circular dependency of separate libtests.a
8967         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
8968         when use_libtests.
8969
8970 2007-12-11  Eric Blake  <ebb9@byu.net>
8971
8972         Fix bug with -0.0L in previous patch.
8973         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
8974         * tests/test-isnan.c (main): Also test on zeroes.
8975         * tests/test-isnanf.c (main): Likewise.
8976         * tests/test-isnanl.h (main): Likewise.
8977
8978         Detect pseudo-denormals on x86 even when cross-compiling.
8979         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
8980         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
8981         invalid bit patterns that happen to satisfy ==.
8982
8983         Avoid link failures with separate libtests.a.
8984         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
8985         last, to satisfy circular dependencies.
8986
8987 2007-12-11  Eric Blake  <ebb9@byu.net>
8988         and Bruno Haible  <bruno@clisp.org>
8989
8990         Fix OpenBSD 4.0 <float.h> handling of long double.
8991         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
8992         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
8993         * doc/headers/float.texi (float.h): Document OpenBSD bug.
8994
8995 2007-12-11  Jim Meyering  <meyering@redhat.com>
8996
8997         * users.txt: Add libvirt.
8998
8999         Support versions of autoconf prior to 2.59c.
9000         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
9001         if it is not already defined.
9002
9003 2007-12-09  Bruno Haible  <bruno@clisp.org>
9004
9005         Let 'gnulib-tool --import' collect sources needed for the tests in
9006         tests/ rather than in lib/.
9007         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
9008         argument. If true, add rules to generate libtests.a, and put libtests.a
9009         into $(LDADD). Consider source files in subdirectories and set
9010         uses_subdirs.
9011         (func_emit_initmacro_start, func_emit_initmacro_end,
9012         func_emit_initmacro_done): Pass all arguments explicitly.
9013         (func_import): Determine two module lists main_modules,
9014         testsrelated_modules. Determine use_libtests. Determine two variables
9015         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
9016         instead of just sed_transform_lib_file. Determine two variables
9017         main_files and testsrelated_files. Compute 'files' as the union of
9018         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
9019         func_add_or_update. In the generated gnulib-comp.m4, collect the
9020         object files for tests/ in different variables than those for lib/.
9021         Substitute LIBTESTS_LIBDEPS.
9022         (func_create_testdir): Combine the uses_subdirs results from
9023         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
9024
9025 2007-12-09  Bruno Haible  <bruno@clisp.org>
9026
9027         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
9028         the build-aux directory.
9029
9030 2007-12-09  Bruno Haible  <bruno@clisp.org>
9031
9032         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
9033         introduced on 2006-09-09.
9034
9035 2007-12-07  Jim Meyering  <meyering@redhat.com>
9036
9037         Let these macros work also with autoconf-2.59.
9038         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
9039         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
9040         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
9041
9042 2007-12-06  Jim Meyering  <meyering@redhat.com>
9043
9044         Avoid a configure-time syntax error in gl_FUNC_ACL.
9045         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
9046         function in each branch, before testing the cache variable.
9047
9048 2007-12-04  Eric Blake  <ebb9@byu.net>
9049
9050         Make scripts executable.
9051         * build-aux/config.guess: Add execute permissions.
9052         * build-aux/config.sub: Likewise.
9053         * build-aux/gendocs.sh: Likewise.
9054
9055         Fix frexp on mingw.
9056         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
9057         cross-compiling.
9058         * doc/functions/frexp.texi (frexp): Document the bug.
9059
9060         Make cygwin fseeko check more reliable.
9061         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
9062         version numbers, rather than unrelated feature check.
9063         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
9064         * doc/functions/ftello.texi (ftello): Likewise.
9065         Reported by Bruno Haible.
9066
9067         * m4/strerror.m4: Bump version number.
9068
9069 2007-12-03  Bruno Haible  <bruno@clisp.org>
9070
9071         * doc/functions/mprotect.texi: Mention the mingw problem.
9072
9073 2007-12-03  Eric Blake  <ebb9@byu.net>
9074
9075         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
9076         REPLACE_STRERROR is initialized before this macro.
9077
9078 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
9079
9080         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
9081         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
9082         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
9083         put -lsec in even for programs other than 'ls'.  This fixes a problem
9084         for gettext reported by Bruno Haible in
9085         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
9086         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
9087         Add support for Solaris 10.  This isn't efficient, but should get the
9088         job done for now.
9089
9090 2007-12-03  James Youngman  <jay@gnu.org>
9091
9092         * doc/regexprops-generic.texi: change "an close-group" to "a
9093         close-group" and "illegal" to "not allowed".
9094
9095 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9096
9097         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
9098         pr_byname.h. Needed for the rare case when the maintainer has done
9099         "make maintainer-clean" in the source directory and then attempts a
9100         build outside the source directory.
9101         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
9102         scripts_byname.h.
9103
9104 2007-12-02  Martin Lambers <marlam@marlam.de>
9105             Bruno Haible  <bruno@clisp.org>
9106
9107         * lib/getpagesize.h: Remove file.
9108         * lib/unistd.in.h: Include declaration of getpagesize here.
9109         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
9110         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
9111         HAVE_SYS_PARAM_H.
9112         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
9113         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
9114         * modules/getpagesize (Files): Remove lib/getpagesize.h.
9115         (Depends-on): Add unistd.
9116         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
9117         (Include): Use <unistd.h> instead of getpagesize.h.
9118         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
9119         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
9120         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
9121         gl_GETPAGESIZE invocation, already handled by module dependency.
9122         * lib/pagealign_alloc.c: Don't include getpagesize.h.
9123
9124 2007-12-02  Bruno Haible  <bruno@clisp.org>
9125
9126         * modules/strings-tests: New file.
9127         * tests/test-strings.c: New file.
9128
9129         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
9130         * lib/strings.in.h: New file.
9131         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
9132         * m4/strings_h.m4: New file.
9133         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
9134         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
9135         * modules/strings: New file.
9136         * modules/string (Makefile.am): Update.
9137         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
9138         Reported by Karl Berry.
9139
9140 2007-12-01  Eric Blake  <ebb9@byu.net>
9141
9142         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
9143         accomodate fix in cygwin 1.5.25.
9144
9145 2007-12-01  Jim Meyering  <meyering@redhat.com>
9146
9147         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
9148         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
9149         that would inhibit utf8-optimization of a regexp containing line-
9150         or buffer-anchors, e.g., `^', `$'.
9151
9152 2007-11-30  Bruno Haible  <bruno@clisp.org>
9153
9154         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
9155         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
9156         glthread_recursive_lock_init.
9157         * lib/lock.c (glthread_recursive_lock_init)
9158         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
9159         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
9160
9161 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
9162
9163         New function qset_acl, like set_acl but with syscall semantics.
9164         * lib/acl.h (qset_acl): New decl.
9165         * lib/acl.c (qset_acl): New function.
9166         (set_acl): Use new function.  Use more-consistent diagnostics.
9167
9168 2007-11-28  Jim Meyering  <meyering@redhat.com>
9169
9170         * modules/physmem (License): Change from GPL to LGPLv2+.
9171
9172 2007-11-26  Bruno Haible  <bruno@clisp.org>
9173
9174         * lib/vasnprintf.c (decode_long_double): Don't abort if the
9175         'long double' type has excess precision.
9176         Reported by Jim Meyering in
9177         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
9178
9179 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9180
9181         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
9182         Sync from <http://gnu.org/licenses>.
9183         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
9184         with license text from same location.
9185         * doc/maintain.texi, doc/standards.texi:  Sync from
9186         <http://savannah.gnu.org/projects/gnustandards>.
9187
9188 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
9189         and Jim Meyering  <meyering@redhat.com>
9190
9191         Adjust getdate' grammar to accept a slightly more regular language.
9192         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
9193         Before, the former was rejected.
9194         * lib/getdate.y (digits_to_date_time): New function, factored
9195         out of ...
9196         (number): ...here.  Just call digits_to_date_time.
9197         (hybrid): New non-terminal to handle an <unsigned number,
9198         signed relative offset> sequence consistently.
9199
9200 2007-11-18  Jim Meyering  <meyering@redhat.com>
9201
9202         Pull my changes from coreutils:
9203         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
9204         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
9205         use of $gnulib_tool_option_extras, so that it's separated from the
9206         preceding argument.
9207
9208         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
9209         * build-aux/bootstrap (cp_mark_as_generated): Create any required
9210         parent destination directories before copying a file into place.
9211
9212 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
9213
9214         bootstrap: work also with 4-argument variant of AC_INIT
9215         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
9216
9217 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
9218
9219         Port test-getaddrinfo to Solaris.
9220         Problem reported by Bruno Haible in
9221         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
9222         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
9223         explanation of setting 'hints'.
9224         Don't reject an implementation merely because it returns EAI_SERVICE.
9225         (EAI_SERVICE): Define to 0 if not defined.
9226
9227 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
9228
9229         The license of gnu-make and posix-shell is now "GPLed build tool".
9230         * modules/gnu-make (License): Likewise.
9231         * modules/posix-shell (License): Likewise.
9232
9233         New module posix-shell, for determining a POSIX shell
9234         or perhaps something that is close enough to a POSIX shell.
9235         * m4/posix-shell.m4: New file.
9236         * modules/posix-shell: New file.
9237
9238         * MODULES.html.sh: Mention new module.
9239
9240         New module gnu-make, for determining whether we're using GNU Make.
9241         * m4/gnu-make.m4: New file.
9242         * modules/gnu-make: New file.
9243         * MODULES.html.sh: Mention new module.
9244
9245 2007-11-14  Jim Meyering  <meyering@redhat.com>
9246
9247         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
9248         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
9249         use this macro to create a function _definition_.
9250         Remove useless "#undef ARGMATCH_DIE".
9251
9252 2007-11-14  Bruno Haible  <bruno@clisp.org>
9253
9254         * lib/config.charset: Update for OpenBSD 4.1.
9255         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
9256
9257 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
9258
9259         Document 64-bit #if problems in stdint.texi.
9260         * doc/headers/stdint.texi (stdint.h): Mention problems with
9261         64-bit-#if, and how to work around them.
9262
9263         Don't insist on 'long long int' support in the preprocessor.  It
9264         breaks too many things.  For example, PRIdMAX still uses a 'long
9265         long int' format with the latest Sun compiler, even though
9266         HAVE_LONG_LONG_INT isn't defined due to that compiler's
9267         preprocessor problem.  This causes the latest coreutils to dump
9268         core on Solaris 10 sparc with the Sun C compiler.
9269         Instead, fix the 2007-10-16 problem in a different way, by evaluating
9270         the troublesome expressions at configure-time, not at #if-time.
9271         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
9272         preprocessor.
9273         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
9274         compile-time C checks, done at 'configure'-time.
9275         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
9276         * modules/inttypes (Makefile): Substitute the new symbols that
9277         gl_INTTYPES_H now generates.
9278         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
9279
9280 2007-11-12  Bruno Haible  <bruno@clisp.org>
9281
9282         Tests for Unicode character classification functions.
9283
9284         * modules/unictype/bidicategory-byname-tests: New file.
9285         * modules/unictype/bidicategory-name-tests: New file.
9286         * modules/unictype/bidicategory-of-tests: New file.
9287         * modules/unictype/bidicategory-test-tests: New file.
9288         * modules/unictype/block-list-tests: New file.
9289         * modules/unictype/block-of-tests: New file.
9290         * modules/unictype/block-test-tests: New file.
9291         * modules/unictype/category-C-tests: New file.
9292         * modules/unictype/category-Cc-tests: New file.
9293         * modules/unictype/category-Cf-tests: New file.
9294         * modules/unictype/category-Cn-tests: New file.
9295         * modules/unictype/category-Co-tests: New file.
9296         * modules/unictype/category-Cs-tests: New file.
9297         * modules/unictype/category-L-tests: New file.
9298         * modules/unictype/category-Ll-tests: New file.
9299         * modules/unictype/category-Lm-tests: New file.
9300         * modules/unictype/category-Lo-tests: New file.
9301         * modules/unictype/category-Lt-tests: New file.
9302         * modules/unictype/category-Lu-tests: New file.
9303         * modules/unictype/category-M-tests: New file.
9304         * modules/unictype/category-Mc-tests: New file.
9305         * modules/unictype/category-Me-tests: New file.
9306         * modules/unictype/category-Mn-tests: New file.
9307         * modules/unictype/category-N-tests: New file.
9308         * modules/unictype/category-Nd-tests: New file.
9309         * modules/unictype/category-Nl-tests: New file.
9310         * modules/unictype/category-No-tests: New file.
9311         * modules/unictype/category-P-tests: New file.
9312         * modules/unictype/category-Pc-tests: New file.
9313         * modules/unictype/category-Pd-tests: New file.
9314         * modules/unictype/category-Pe-tests: New file.
9315         * modules/unictype/category-Pf-tests: New file.
9316         * modules/unictype/category-Pi-tests: New file.
9317         * modules/unictype/category-Po-tests: New file.
9318         * modules/unictype/category-Ps-tests: New file.
9319         * modules/unictype/category-S-tests: New file.
9320         * modules/unictype/category-Sc-tests: New file.
9321         * modules/unictype/category-Sk-tests: New file.
9322         * modules/unictype/category-Sm-tests: New file.
9323         * modules/unictype/category-So-tests: New file.
9324         * modules/unictype/category-Z-tests: New file.
9325         * modules/unictype/category-Zl-tests: New file.
9326         * modules/unictype/category-Zp-tests: New file.
9327         * modules/unictype/category-Zs-tests: New file.
9328         * modules/unictype/category-and-not-tests: New file.
9329         * modules/unictype/category-and-tests: New file.
9330         * modules/unictype/category-byname-tests: New file.
9331         * modules/unictype/category-name-tests: New file.
9332         * modules/unictype/category-none-tests: New file.
9333         * modules/unictype/category-of-tests: New file.
9334         * modules/unictype/category-or-tests: New file.
9335         * modules/unictype/category-test-withtable-tests: New file.
9336         * modules/unictype/combining-class-tests: New file.
9337         * modules/unictype/ctype-alnum-tests: New file.
9338         * modules/unictype/ctype-alpha-tests: New file.
9339         * modules/unictype/ctype-blank-tests: New file.
9340         * modules/unictype/ctype-cntrl-tests: New file.
9341         * modules/unictype/ctype-digit-tests: New file.
9342         * modules/unictype/ctype-graph-tests: New file.
9343         * modules/unictype/ctype-lower-tests: New file.
9344         * modules/unictype/ctype-print-tests: New file.
9345         * modules/unictype/ctype-punct-tests: New file.
9346         * modules/unictype/ctype-space-tests: New file.
9347         * modules/unictype/ctype-upper-tests: New file.
9348         * modules/unictype/ctype-xdigit-tests: New file.
9349         * modules/unictype/decimal-digit-tests: New file.
9350         * modules/unictype/digit-tests: New file.
9351         * modules/unictype/mirror-tests: New file.
9352         * modules/unictype/numeric-tests: New file.
9353         * modules/unictype/property-alphabetic-tests: New file.
9354         * modules/unictype/property-ascii-hex-digit-tests: New file.
9355         * modules/unictype/property-bidi-arabic-digit-tests: New file.
9356         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
9357         * modules/unictype/property-bidi-block-separator-tests: New file.
9358         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
9359         * modules/unictype/property-bidi-common-separator-tests: New file.
9360         * modules/unictype/property-bidi-control-tests: New file.
9361         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
9362         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
9363         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
9364         * modules/unictype/property-bidi-european-digit-tests: New file.
9365         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
9366         * modules/unictype/property-bidi-left-to-right-tests: New file.
9367         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
9368         * modules/unictype/property-bidi-other-neutral-tests: New file.
9369         * modules/unictype/property-bidi-pdf-tests: New file.
9370         * modules/unictype/property-bidi-segment-separator-tests: New file.
9371         * modules/unictype/property-bidi-whitespace-tests: New file.
9372         * modules/unictype/property-byname-tests: New file.
9373         * modules/unictype/property-combining-tests: New file.
9374         * modules/unictype/property-composite-tests: New file.
9375         * modules/unictype/property-currency-symbol-tests: New file.
9376         * modules/unictype/property-dash-tests: New file.
9377         * modules/unictype/property-decimal-digit-tests: New file.
9378         * modules/unictype/property-default-ignorable-code-point-tests: New file.
9379         * modules/unictype/property-deprecated-tests: New file.
9380         * modules/unictype/property-diacritic-tests: New file.
9381         * modules/unictype/property-extender-tests: New file.
9382         * modules/unictype/property-format-control-tests: New file.
9383         * modules/unictype/property-grapheme-base-tests: New file.
9384         * modules/unictype/property-grapheme-extend-tests: New file.
9385         * modules/unictype/property-grapheme-link-tests: New file.
9386         * modules/unictype/property-hex-digit-tests: New file.
9387         * modules/unictype/property-hyphen-tests: New file.
9388         * modules/unictype/property-id-continue-tests: New file.
9389         * modules/unictype/property-id-start-tests: New file.
9390         * modules/unictype/property-ideographic-tests: New file.
9391         * modules/unictype/property-ids-binary-operator-tests: New file.
9392         * modules/unictype/property-ids-trinary-operator-tests: New file.
9393         * modules/unictype/property-ignorable-control-tests: New file.
9394         * modules/unictype/property-iso-control-tests: New file.
9395         * modules/unictype/property-join-control-tests: New file.
9396         * modules/unictype/property-left-of-pair-tests: New file.
9397         * modules/unictype/property-line-separator-tests: New file.
9398         * modules/unictype/property-logical-order-exception-tests: New file.
9399         * modules/unictype/property-lowercase-tests: New file.
9400         * modules/unictype/property-math-tests: New file.
9401         * modules/unictype/property-non-break-tests: New file.
9402         * modules/unictype/property-not-a-character-tests: New file.
9403         * modules/unictype/property-numeric-tests: New file.
9404         * modules/unictype/property-other-alphabetic-tests: New file.
9405         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
9406         * modules/unictype/property-other-grapheme-extend-tests: New file.
9407         * modules/unictype/property-other-id-continue-tests: New file.
9408         * modules/unictype/property-other-id-start-tests: New file.
9409         * modules/unictype/property-other-lowercase-tests: New file.
9410         * modules/unictype/property-other-math-tests: New file.
9411         * modules/unictype/property-other-uppercase-tests: New file.
9412         * modules/unictype/property-paired-punctuation-tests: New file.
9413         * modules/unictype/property-paragraph-separator-tests: New file.
9414         * modules/unictype/property-pattern-syntax-tests: New file.
9415         * modules/unictype/property-pattern-white-space-tests: New file.
9416         * modules/unictype/property-private-use-tests: New file.
9417         * modules/unictype/property-punctuation-tests: New file.
9418         * modules/unictype/property-quotation-mark-tests: New file.
9419         * modules/unictype/property-radical-tests: New file.
9420         * modules/unictype/property-sentence-terminal-tests: New file.
9421         * modules/unictype/property-soft-dotted-tests: New file.
9422         * modules/unictype/property-space-tests: New file.
9423         * modules/unictype/property-terminal-punctuation-tests: New file.
9424         * modules/unictype/property-test-tests: New file.
9425         * modules/unictype/property-titlecase-tests: New file.
9426         * modules/unictype/property-unassigned-code-value-tests: New file.
9427         * modules/unictype/property-unified-ideograph-tests: New file.
9428         * modules/unictype/property-uppercase-tests: New file.
9429         * modules/unictype/property-variation-selector-tests: New file.
9430         * modules/unictype/property-white-space-tests: New file.
9431         * modules/unictype/property-xid-continue-tests: New file.
9432         * modules/unictype/property-xid-start-tests: New file.
9433         * modules/unictype/property-zero-width-tests: New file.
9434         * modules/unictype/scripts-tests: New file.
9435         * modules/unictype/syntax-c-ident-tests: New file.
9436         * modules/unictype/syntax-c-whitespace-tests: New file.
9437         * modules/unictype/syntax-java-ident-tests: New file.
9438         * modules/unictype/syntax-java-whitespace-tests: New file.
9439         * tests/unictype/test-bidi_byname.c: New file.
9440         * tests/unictype/test-bidi_name.c: New file.
9441         * tests/unictype/test-bidi_of.c: New file.
9442         * tests/unictype/test-bidi_test.c: New file.
9443         * tests/unictype/test-block_list.c: New file.
9444         * tests/unictype/test-block_of.c: New file.
9445         * tests/unictype/test-block_test.c: New file.
9446         * tests/unictype/test-categ_and.c: New file.
9447         * tests/unictype/test-categ_and_not.c: New file.
9448         * tests/unictype/test-categ_byname.c: New file.
9449         * tests/unictype/test-categ_name.c: New file.
9450         * tests/unictype/test-categ_none.c: New file.
9451         * tests/unictype/test-categ_of.c: New file.
9452         * tests/unictype/test-categ_or.c: New file.
9453         * tests/unictype/test-categ_test_withtable.c: New file.
9454         * tests/unictype/test-combining.c: New file.
9455         * tests/unictype/test-decdigit.c: New file.
9456         * tests/unictype/test-digit.c: New file.
9457         * tests/unictype/test-mirror.c: New file.
9458         * tests/unictype/test-numeric.c: New file.
9459         * tests/unictype/test-pr_byname.c: New file.
9460         * tests/unictype/test-pr_test.c: New file.
9461         * tests/unictype/test-predicate-part1.h: New file.
9462         * tests/unictype/test-predicate-part2.h: New file.
9463         * tests/unictype/test-scripts.c: New file.
9464         * tests/unictype/test-sy_c_ident.c: New file.
9465         * tests/unictype/test-sy_java_ident.c: New file.
9466
9467         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
9468         for Unicode 5.0.0.
9469         * tests/unictype/test-categ_Cc.c: Likewise.
9470         * tests/unictype/test-categ_Cf.c: Likewise.
9471         * tests/unictype/test-categ_Cn.c: Likewise.
9472         * tests/unictype/test-categ_Co.c: Likewise.
9473         * tests/unictype/test-categ_Cs.c: Likewise.
9474         * tests/unictype/test-categ_L.c: Likewise.
9475         * tests/unictype/test-categ_Ll.c: Likewise.
9476         * tests/unictype/test-categ_Lm.c: Likewise.
9477         * tests/unictype/test-categ_Lo.c: Likewise.
9478         * tests/unictype/test-categ_Lt.c: Likewise.
9479         * tests/unictype/test-categ_Lu.c: Likewise.
9480         * tests/unictype/test-categ_M.c: Likewise.
9481         * tests/unictype/test-categ_Mc.c: Likewise.
9482         * tests/unictype/test-categ_Me.c: Likewise.
9483         * tests/unictype/test-categ_Mn.c: Likewise.
9484         * tests/unictype/test-categ_N.c: Likewise.
9485         * tests/unictype/test-categ_Nd.c: Likewise.
9486         * tests/unictype/test-categ_Nl.c: Likewise.
9487         * tests/unictype/test-categ_No.c: Likewise.
9488         * tests/unictype/test-categ_P.c: Likewise.
9489         * tests/unictype/test-categ_Pc.c: Likewise.
9490         * tests/unictype/test-categ_Pd.c: Likewise.
9491         * tests/unictype/test-categ_Pe.c: Likewise.
9492         * tests/unictype/test-categ_Pf.c: Likewise.
9493         * tests/unictype/test-categ_Pi.c: Likewise.
9494         * tests/unictype/test-categ_Po.c: Likewise.
9495         * tests/unictype/test-categ_Ps.c: Likewise.
9496         * tests/unictype/test-categ_S.c: Likewise.
9497         * tests/unictype/test-categ_Sc.c: Likewise.
9498         * tests/unictype/test-categ_Sk.c: Likewise.
9499         * tests/unictype/test-categ_Sm.c: Likewise.
9500         * tests/unictype/test-categ_So.c: Likewise.
9501         * tests/unictype/test-categ_Z.c: Likewise.
9502         * tests/unictype/test-categ_Zl.c: Likewise.
9503         * tests/unictype/test-categ_Zp.c: Likewise.
9504         * tests/unictype/test-categ_Zs.c: Likewise.
9505         * tests/unictype/test-ctype_alnum.c: Likewise.
9506         * tests/unictype/test-ctype_alpha.c: Likewise.
9507         * tests/unictype/test-ctype_blank.c: Likewise.
9508         * tests/unictype/test-ctype_cntrl.c: Likewise.
9509         * tests/unictype/test-ctype_digit.c: Likewise.
9510         * tests/unictype/test-ctype_graph.c: Likewise.
9511         * tests/unictype/test-ctype_lower.c: Likewise.
9512         * tests/unictype/test-ctype_print.c: Likewise.
9513         * tests/unictype/test-ctype_punct.c: Likewise.
9514         * tests/unictype/test-ctype_space.c: Likewise.
9515         * tests/unictype/test-ctype_upper.c: Likewise.
9516         * tests/unictype/test-ctype_xdigit.c: Likewise.
9517         * tests/unictype/test-decdigit.h: Likewise.
9518         * tests/unictype/test-digit.h: Likewise.
9519         * tests/unictype/test-numeric.h: Likewise.
9520         * tests/unictype/test-pr_alphabetic.c: Likewise.
9521         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
9522         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
9523         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
9524         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
9525         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
9526         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
9527         * tests/unictype/test-pr_bidi_control.c: Likewise.
9528         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
9529         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
9530         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
9531         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
9532         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
9533         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
9534         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
9535         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
9536         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
9537         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
9538         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
9539         * tests/unictype/test-pr_combining.c: Likewise.
9540         * tests/unictype/test-pr_composite.c: Likewise.
9541         * tests/unictype/test-pr_currency_symbol.c: Likewise.
9542         * tests/unictype/test-pr_dash.c: Likewise.
9543         * tests/unictype/test-pr_decimal_digit.c: Likewise.
9544         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
9545         * tests/unictype/test-pr_deprecated.c: Likewise.
9546         * tests/unictype/test-pr_diacritic.c: Likewise.
9547         * tests/unictype/test-pr_extender.c: Likewise.
9548         * tests/unictype/test-pr_format_control.c: Likewise.
9549         * tests/unictype/test-pr_grapheme_base.c: Likewise.
9550         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
9551         * tests/unictype/test-pr_grapheme_link.c: Likewise.
9552         * tests/unictype/test-pr_hex_digit.c: Likewise.
9553         * tests/unictype/test-pr_hyphen.c: Likewise.
9554         * tests/unictype/test-pr_id_continue.c: Likewise.
9555         * tests/unictype/test-pr_id_start.c: Likewise.
9556         * tests/unictype/test-pr_ideographic.c: Likewise.
9557         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
9558         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
9559         * tests/unictype/test-pr_ignorable_control.c: Likewise.
9560         * tests/unictype/test-pr_iso_control.c: Likewise.
9561         * tests/unictype/test-pr_join_control.c: Likewise.
9562         * tests/unictype/test-pr_left_of_pair.c: Likewise.
9563         * tests/unictype/test-pr_line_separator.c: Likewise.
9564         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
9565         * tests/unictype/test-pr_lowercase.c: Likewise.
9566         * tests/unictype/test-pr_math.c: Likewise.
9567         * tests/unictype/test-pr_non_break.c: Likewise.
9568         * tests/unictype/test-pr_not_a_character.c: Likewise.
9569         * tests/unictype/test-pr_numeric.c: Likewise.
9570         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
9571         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
9572         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
9573         * tests/unictype/test-pr_other_id_continue.c: Likewise.
9574         * tests/unictype/test-pr_other_id_start.c: Likewise.
9575         * tests/unictype/test-pr_other_lowercase.c: Likewise.
9576         * tests/unictype/test-pr_other_math.c: Likewise.
9577         * tests/unictype/test-pr_other_uppercase.c: Likewise.
9578         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
9579         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
9580         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
9581         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
9582         * tests/unictype/test-pr_private_use.c: Likewise.
9583         * tests/unictype/test-pr_punctuation.c: Likewise.
9584         * tests/unictype/test-pr_quotation_mark.c: Likewise.
9585         * tests/unictype/test-pr_radical.c: Likewise.
9586         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
9587         * tests/unictype/test-pr_soft_dotted.c: Likewise.
9588         * tests/unictype/test-pr_space.c: Likewise.
9589         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
9590         * tests/unictype/test-pr_titlecase.c: Likewise.
9591         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
9592         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
9593         * tests/unictype/test-pr_uppercase.c: Likewise.
9594         * tests/unictype/test-pr_variation_selector.c: Likewise.
9595         * tests/unictype/test-pr_white_space.c: Likewise.
9596         * tests/unictype/test-pr_xid_continue.c: Likewise.
9597         * tests/unictype/test-pr_xid_start.c: Likewise.
9598         * tests/unictype/test-pr_zero_width.c: Likewise.
9599         * tests/unictype/test-sy_c_whitespace.c: Likewise.
9600         * tests/unictype/test-sy_java_whitespace.c: Likewise.
9601
9602 2007-11-12  Bruno Haible  <bruno@clisp.org>
9603
9604         Unicode character classification functions.
9605         * lib/unictype.h: New file.
9606         * modules/unictype/base: New file.
9607         * modules/unictype/category-L: New file.
9608         * modules/unictype/category-Lu: New file.
9609         * modules/unictype/category-Ll: New file.
9610         * modules/unictype/category-Lt: New file.
9611         * modules/unictype/category-Lm: New file.
9612         * modules/unictype/category-Lo: New file.
9613         * modules/unictype/category-M: New file.
9614         * modules/unictype/category-Mn: New file.
9615         * modules/unictype/category-Mc: New file.
9616         * modules/unictype/category-Me: New file.
9617         * modules/unictype/category-N: New file.
9618         * modules/unictype/category-Nd: New file.
9619         * modules/unictype/category-Nl: New file.
9620         * modules/unictype/category-No: New file.
9621         * modules/unictype/category-P: New file.
9622         * modules/unictype/category-Pc: New file.
9623         * modules/unictype/category-Pd: New file.
9624         * modules/unictype/category-Ps: New file.
9625         * modules/unictype/category-Pe: New file.
9626         * modules/unictype/category-Pi: New file.
9627         * modules/unictype/category-Pf: New file.
9628         * modules/unictype/category-Po: New file.
9629         * modules/unictype/category-S: New file.
9630         * modules/unictype/category-Sm: New file.
9631         * modules/unictype/category-Sc: New file.
9632         * modules/unictype/category-Sk: New file.
9633         * modules/unictype/category-So: New file.
9634         * modules/unictype/category-Z: New file.
9635         * modules/unictype/category-Zs: New file.
9636         * modules/unictype/category-Zl: New file.
9637         * modules/unictype/category-Zp: New file.
9638         * modules/unictype/category-C: New file.
9639         * modules/unictype/category-Cc: New file.
9640         * modules/unictype/category-Cf: New file.
9641         * modules/unictype/category-Cs: New file.
9642         * modules/unictype/category-Co: New file.
9643         * modules/unictype/category-Cn: New file.
9644         * modules/unictype/category-or: New file.
9645         * modules/unictype/category-of: New file.
9646         * modules/unictype/category-test: New file.
9647         * modules/unictype/category-test-withtable: New file.
9648         * modules/unictype/category-byname: New file.
9649         * modules/unictype/category-none: New file.
9650         * modules/unictype/category-and: New file.
9651         * modules/unictype/category-and-not: New file.
9652         * modules/unictype/category-name: New file.
9653         * modules/unictype/combining-class: New file.
9654         * modules/unictype/category-all: New file.
9655         * modules/unictype/bidicategory-all: New file.
9656         * modules/unictype/bidicategory-byname: New file.
9657         * modules/unictype/bidicategory-name: New file.
9658         * modules/unictype/bidicategory-of: New file.
9659         * modules/unictype/bidicategory-test: New file.
9660         * modules/unictype/decimal-digit: New file.
9661         * modules/unictype/digit: New file.
9662         * modules/unictype/numeric: New file.
9663         * modules/unictype/mirror: New file.
9664         * modules/unictype/property-white-space: New file.
9665         * modules/unictype/property-alphabetic: New file.
9666         * modules/unictype/property-other-alphabetic: New file.
9667         * modules/unictype/property-not-a-character: New file.
9668         * modules/unictype/property-default-ignorable-code-point: New file.
9669         * modules/unictype/property-other-default-ignorable-code-point: New
9670         file.
9671         * modules/unictype/property-deprecated: New file.
9672         * modules/unictype/property-logical-order-exception: New file.
9673         * modules/unictype/property-variation-selector: New file.
9674         * modules/unictype/property-private-use: New file.
9675         * modules/unictype/property-unassigned-code-value: New file.
9676         * modules/unictype/property-uppercase: New file.
9677         * modules/unictype/property-other-uppercase: New file.
9678         * modules/unictype/property-lowercase: New file.
9679         * modules/unictype/property-other-lowercase: New file.
9680         * modules/unictype/property-titlecase: New file.
9681         * modules/unictype/property-soft-dotted: New file.
9682         * modules/unictype/property-id-start: New file.
9683         * modules/unictype/property-other-id-start: New file.
9684         * modules/unictype/property-id-continue: New file.
9685         * modules/unictype/property-other-id-continue: New file.
9686         * modules/unictype/property-xid-start: New file.
9687         * modules/unictype/property-xid-continue: New file.
9688         * modules/unictype/property-pattern-white-space: New file.
9689         * modules/unictype/property-pattern-syntax: New file.
9690         * modules/unictype/property-join-control: New file.
9691         * modules/unictype/property-grapheme-base: New file.
9692         * modules/unictype/property-grapheme-extend: New file.
9693         * modules/unictype/property-other-grapheme-extend: New file.
9694         * modules/unictype/property-grapheme-link: New file.
9695         * modules/unictype/property-bidi-control: New file.
9696         * modules/unictype/property-bidi-left-to-right: New file.
9697         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
9698         * modules/unictype/property-bidi-arabic-right-to-left: New file.
9699         * modules/unictype/property-bidi-european-digit: New file.
9700         * modules/unictype/property-bidi-eur-num-separator: New file.
9701         * modules/unictype/property-bidi-eur-num-terminator: New file.
9702         * modules/unictype/property-bidi-arabic-digit: New file.
9703         * modules/unictype/property-bidi-common-separator: New file.
9704         * modules/unictype/property-bidi-block-separator: New file.
9705         * modules/unictype/property-bidi-segment-separator: New file.
9706         * modules/unictype/property-bidi-whitespace: New file.
9707         * modules/unictype/property-bidi-non-spacing-mark: New file.
9708         * modules/unictype/property-bidi-boundary-neutral: New file.
9709         * modules/unictype/property-bidi-pdf: New file.
9710         * modules/unictype/property-bidi-embedding-or-override: New file.
9711         * modules/unictype/property-bidi-other-neutral: New file.
9712         * modules/unictype/property-hex-digit: New file.
9713         * modules/unictype/property-ascii-hex-digit: New file.
9714         * modules/unictype/property-ideographic: New file.
9715         * modules/unictype/property-unified-ideograph: New file.
9716         * modules/unictype/property-radical: New file.
9717         * modules/unictype/property-ids-binary-operator: New file.
9718         * modules/unictype/property-ids-trinary-operator: New file.
9719         * modules/unictype/property-zero-width: New file.
9720         * modules/unictype/property-space: New file.
9721         * modules/unictype/property-non-break: New file.
9722         * modules/unictype/property-iso-control: New file.
9723         * modules/unictype/property-format-control: New file.
9724         * modules/unictype/property-dash: New file.
9725         * modules/unictype/property-hyphen: New file.
9726         * modules/unictype/property-punctuation: New file.
9727         * modules/unictype/property-line-separator: New file.
9728         * modules/unictype/property-paragraph-separator: New file.
9729         * modules/unictype/property-quotation-mark: New file.
9730         * modules/unictype/property-sentence-terminal: New file.
9731         * modules/unictype/property-terminal-punctuation: New file.
9732         * modules/unictype/property-currency-symbol: New file.
9733         * modules/unictype/property-math: New file.
9734         * modules/unictype/property-other-math: New file.
9735         * modules/unictype/property-paired-punctuation: New file.
9736         * modules/unictype/property-left-of-pair: New file.
9737         * modules/unictype/property-combining: New file.
9738         * modules/unictype/property-composite: New file.
9739         * modules/unictype/property-decimal-digit: New file.
9740         * modules/unictype/property-numeric: New file.
9741         * modules/unictype/property-diacritic: New file.
9742         * modules/unictype/property-extender: New file.
9743         * modules/unictype/property-ignorable-control: New file.
9744         * modules/unictype/property-test: New file.
9745         * modules/unictype/property-byname: New file.
9746         * modules/unictype/property-all: New file.
9747         * modules/unictype/scripts: New file.
9748         * modules/unictype/scripts-all: New file.
9749         * modules/unictype/block-of: New file.
9750         * modules/unictype/block-test: New file.
9751         * modules/unictype/block-list: New file.
9752         * modules/unictype/block-all: New file.
9753         * modules/unictype/syntax-c-whitespace: New file.
9754         * modules/unictype/syntax-java-whitespace: New file.
9755         * modules/unictype/syntax-c-ident: New file.
9756         * modules/unictype/syntax-java-ident: New file.
9757         * modules/unictype/ctype-alnum: New file.
9758         * modules/unictype/ctype-alpha: New file.
9759         * modules/unictype/ctype-cntrl: New file.
9760         * modules/unictype/ctype-digit: New file.
9761         * modules/unictype/ctype-graph: New file.
9762         * modules/unictype/ctype-lower: New file.
9763         * modules/unictype/ctype-print: New file.
9764         * modules/unictype/ctype-punct: New file.
9765         * modules/unictype/ctype-space: New file.
9766         * modules/unictype/ctype-upper: New file.
9767         * modules/unictype/ctype-xdigit: New file.
9768         * modules/unictype/ctype-blank: New file.
9769         * lib/unictype/bidi_byname.c: New file.
9770         * lib/unictype/bidi_name.c: New file.
9771         * lib/unictype/bidi_of.c: New file.
9772         * lib/unictype/bidi_test.c: New file.
9773         * lib/unictype/bitmap.h: New file.
9774         * lib/unictype/block_test.c: New file.
9775         * lib/unictype/blocks.c: New file.
9776         * lib/unictype/categ_C.c: New file.
9777         * lib/unictype/categ_Cc.c: New file.
9778         * lib/unictype/categ_Cf.c: New file.
9779         * lib/unictype/categ_Cn.c: New file.
9780         * lib/unictype/categ_Co.c: New file.
9781         * lib/unictype/categ_Cs.c: New file.
9782         * lib/unictype/categ_L.c: New file.
9783         * lib/unictype/categ_Ll.c: New file.
9784         * lib/unictype/categ_Lm.c: New file.
9785         * lib/unictype/categ_Lo.c: New file.
9786         * lib/unictype/categ_Lt.c: New file.
9787         * lib/unictype/categ_Lu.c: New file.
9788         * lib/unictype/categ_M.c: New file.
9789         * lib/unictype/categ_Mc.c: New file.
9790         * lib/unictype/categ_Me.c: New file.
9791         * lib/unictype/categ_Mn.c: New file.
9792         * lib/unictype/categ_N.c: New file.
9793         * lib/unictype/categ_Nd.c: New file.
9794         * lib/unictype/categ_Nl.c: New file.
9795         * lib/unictype/categ_No.c: New file.
9796         * lib/unictype/categ_P.c: New file.
9797         * lib/unictype/categ_Pc.c: New file.
9798         * lib/unictype/categ_Pd.c: New file.
9799         * lib/unictype/categ_Pe.c: New file.
9800         * lib/unictype/categ_Pf.c: New file.
9801         * lib/unictype/categ_Pi.c: New file.
9802         * lib/unictype/categ_Po.c: New file.
9803         * lib/unictype/categ_Ps.c: New file.
9804         * lib/unictype/categ_S.c: New file.
9805         * lib/unictype/categ_Sc.c: New file.
9806         * lib/unictype/categ_Sk.c: New file.
9807         * lib/unictype/categ_Sm.c: New file.
9808         * lib/unictype/categ_So.c: New file.
9809         * lib/unictype/categ_Z.c: New file.
9810         * lib/unictype/categ_Zl.c: New file.
9811         * lib/unictype/categ_Zp.c: New file.
9812         * lib/unictype/categ_Zs.c: New file.
9813         * lib/unictype/categ_and.c: New file.
9814         * lib/unictype/categ_and_not.c: New file.
9815         * lib/unictype/categ_byname.c: New file.
9816         * lib/unictype/categ_name.c: New file.
9817         * lib/unictype/categ_none.c: New file.
9818         * lib/unictype/categ_of.c: New file.
9819         * lib/unictype/categ_or.c: New file.
9820         * lib/unictype/categ_test.c: New file.
9821         * lib/unictype/combining.c: New file.
9822         * lib/unictype/ctype_alnum.c: New file.
9823         * lib/unictype/ctype_alpha.c: New file.
9824         * lib/unictype/ctype_blank.c: New file.
9825         * lib/unictype/ctype_cntrl.c: New file.
9826         * lib/unictype/ctype_digit.c: New file.
9827         * lib/unictype/ctype_graph.c: New file.
9828         * lib/unictype/ctype_lower.c: New file.
9829         * lib/unictype/ctype_print.c: New file.
9830         * lib/unictype/ctype_punct.c: New file.
9831         * lib/unictype/ctype_space.c: New file.
9832         * lib/unictype/ctype_upper.c: New file.
9833         * lib/unictype/ctype_xdigit.c: New file.
9834         * lib/unictype/decdigit.c: New file.
9835         * lib/unictype/digit.c: New file.
9836         * lib/unictype/identsyntaxmap.h: New file.
9837         * lib/unictype/mirror.c: New file.
9838         * lib/unictype/numeric.c: New file.
9839         * lib/unictype/pr_alphabetic.c: New file.
9840         * lib/unictype/pr_ascii_hex_digit.c: New file.
9841         * lib/unictype/pr_bidi_arabic_digit.c: New file.
9842         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
9843         * lib/unictype/pr_bidi_block_separator.c: New file.
9844         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
9845         * lib/unictype/pr_bidi_common_separator.c: New file.
9846         * lib/unictype/pr_bidi_control.c: New file.
9847         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
9848         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
9849         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
9850         * lib/unictype/pr_bidi_european_digit.c: New file.
9851         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
9852         * lib/unictype/pr_bidi_left_to_right.c: New file.
9853         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
9854         * lib/unictype/pr_bidi_other_neutral.c: New file.
9855         * lib/unictype/pr_bidi_pdf.c: New file.
9856         * lib/unictype/pr_bidi_segment_separator.c: New file.
9857         * lib/unictype/pr_bidi_whitespace.c: New file.
9858         * lib/unictype/pr_byname.c: New file.
9859         * lib/unictype/pr_byname.gperf: New file.
9860         * lib/unictype/pr_combining.c: New file.
9861         * lib/unictype/pr_composite.c: New file.
9862         * lib/unictype/pr_currency_symbol.c: New file.
9863         * lib/unictype/pr_dash.c: New file.
9864         * lib/unictype/pr_decimal_digit.c: New file.
9865         * lib/unictype/pr_default_ignorable_code_point.c: New file.
9866         * lib/unictype/pr_deprecated.c: New file.
9867         * lib/unictype/pr_diacritic.c: New file.
9868         * lib/unictype/pr_extender.c: New file.
9869         * lib/unictype/pr_format_control.c: New file.
9870         * lib/unictype/pr_grapheme_base.c: New file.
9871         * lib/unictype/pr_grapheme_extend.c: New file.
9872         * lib/unictype/pr_grapheme_link.c: New file.
9873         * lib/unictype/pr_hex_digit.c: New file.
9874         * lib/unictype/pr_hyphen.c: New file.
9875         * lib/unictype/pr_id_continue.c: New file.
9876         * lib/unictype/pr_id_start.c: New file.
9877         * lib/unictype/pr_ideographic.c: New file.
9878         * lib/unictype/pr_ids_binary_operator.c: New file.
9879         * lib/unictype/pr_ids_trinary_operator.c: New file.
9880         * lib/unictype/pr_ignorable_control.c: New file.
9881         * lib/unictype/pr_iso_control.c: New file.
9882         * lib/unictype/pr_join_control.c: New file.
9883         * lib/unictype/pr_left_of_pair.c: New file.
9884         * lib/unictype/pr_line_separator.c: New file.
9885         * lib/unictype/pr_logical_order_exception.c: New file.
9886         * lib/unictype/pr_lowercase.c: New file.
9887         * lib/unictype/pr_math.c: New file.
9888         * lib/unictype/pr_non_break.c: New file.
9889         * lib/unictype/pr_not_a_character.c: New file.
9890         * lib/unictype/pr_numeric.c: New file.
9891         * lib/unictype/pr_other_alphabetic.c: New file.
9892         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
9893         * lib/unictype/pr_other_grapheme_extend.c: New file.
9894         * lib/unictype/pr_other_id_continue.c: New file.
9895         * lib/unictype/pr_other_id_start.c: New file.
9896         * lib/unictype/pr_other_lowercase.c: New file.
9897         * lib/unictype/pr_other_math.c: New file.
9898         * lib/unictype/pr_other_uppercase.c: New file.
9899         * lib/unictype/pr_paired_punctuation.c: New file.
9900         * lib/unictype/pr_paragraph_separator.c: New file.
9901         * lib/unictype/pr_pattern_syntax.c: New file.
9902         * lib/unictype/pr_pattern_white_space.c: New file.
9903         * lib/unictype/pr_private_use.c: New file.
9904         * lib/unictype/pr_punctuation.c: New file.
9905         * lib/unictype/pr_quotation_mark.c: New file.
9906         * lib/unictype/pr_radical.c: New file.
9907         * lib/unictype/pr_sentence_terminal.c: New file.
9908         * lib/unictype/pr_soft_dotted.c: New file.
9909         * lib/unictype/pr_space.c: New file.
9910         * lib/unictype/pr_terminal_punctuation.c: New file.
9911         * lib/unictype/pr_test.c: New file.
9912         * lib/unictype/pr_titlecase.c: New file.
9913         * lib/unictype/pr_unassigned_code_value.c: New file.
9914         * lib/unictype/pr_unified_ideograph.c: New file.
9915         * lib/unictype/pr_uppercase.c: New file.
9916         * lib/unictype/pr_variation_selector.c: New file.
9917         * lib/unictype/pr_white_space.c: New file.
9918         * lib/unictype/pr_xid_continue.c: New file.
9919         * lib/unictype/pr_xid_start.c: New file.
9920         * lib/unictype/pr_zero_width.c: New file.
9921         * lib/unictype/scripts.c: New file.
9922         * lib/unictype/sy_c_ident.c: New file.
9923         * lib/unictype/sy_c_whitespace.c: New file.
9924         * lib/unictype/sy_java_ident.c: New file.
9925         * lib/unictype/sy_java_whitespace.c: New file.
9926
9927         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
9928         Unicode 5.0.0.
9929         * lib/unictype/blocks.h: Likewise.
9930         * lib/unictype/categ_C.h: Likewise.
9931         * lib/unictype/categ_Cc.h: Likewise.
9932         * lib/unictype/categ_Cf.h: Likewise.
9933         * lib/unictype/categ_Cn.h: Likewise.
9934         * lib/unictype/categ_Co.h: Likewise.
9935         * lib/unictype/categ_Cs.h: Likewise.
9936         * lib/unictype/categ_L.h: Likewise.
9937         * lib/unictype/categ_Ll.h: Likewise.
9938         * lib/unictype/categ_Lm.h: Likewise.
9939         * lib/unictype/categ_Lo.h: Likewise.
9940         * lib/unictype/categ_Lt.h: Likewise.
9941         * lib/unictype/categ_Lu.h: Likewise.
9942         * lib/unictype/categ_M.h: Likewise.
9943         * lib/unictype/categ_Mc.h: Likewise.
9944         * lib/unictype/categ_Me.h: Likewise.
9945         * lib/unictype/categ_Mn.h: Likewise.
9946         * lib/unictype/categ_N.h: Likewise.
9947         * lib/unictype/categ_Nd.h: Likewise.
9948         * lib/unictype/categ_Nl.h: Likewise.
9949         * lib/unictype/categ_No.h: Likewise.
9950         * lib/unictype/categ_P.h: Likewise.
9951         * lib/unictype/categ_Pc.h: Likewise.
9952         * lib/unictype/categ_Pd.h: Likewise.
9953         * lib/unictype/categ_Pe.h: Likewise.
9954         * lib/unictype/categ_Pf.h: Likewise.
9955         * lib/unictype/categ_Pi.h: Likewise.
9956         * lib/unictype/categ_Po.h: Likewise.
9957         * lib/unictype/categ_Ps.h: Likewise.
9958         * lib/unictype/categ_S.h: Likewise.
9959         * lib/unictype/categ_Sc.h: Likewise.
9960         * lib/unictype/categ_Sk.h: Likewise.
9961         * lib/unictype/categ_Sm.h: Likewise.
9962         * lib/unictype/categ_So.h: Likewise.
9963         * lib/unictype/categ_Z.h: Likewise.
9964         * lib/unictype/categ_Zl.h: Likewise.
9965         * lib/unictype/categ_Zp.h: Likewise.
9966         * lib/unictype/categ_Zs.h: Likewise.
9967         * lib/unictype/categ_of.h: Likewise.
9968         * lib/unictype/combining.h: Likewise.
9969         * lib/unictype/ctype_alnum.h: Likewise.
9970         * lib/unictype/ctype_alpha.h: Likewise.
9971         * lib/unictype/ctype_blank.h: Likewise.
9972         * lib/unictype/ctype_cntrl.h: Likewise.
9973         * lib/unictype/ctype_digit.h: Likewise.
9974         * lib/unictype/ctype_graph.h: Likewise.
9975         * lib/unictype/ctype_lower.h: Likewise.
9976         * lib/unictype/ctype_print.h: Likewise.
9977         * lib/unictype/ctype_punct.h: Likewise.
9978         * lib/unictype/ctype_space.h: Likewise.
9979         * lib/unictype/ctype_upper.h: Likewise.
9980         * lib/unictype/ctype_xdigit.h: Likewise.
9981         * lib/unictype/decdigit.h: Likewise.
9982         * lib/unictype/digit.h: Likewise.
9983         * lib/unictype/mirror.h: Likewise.
9984         * lib/unictype/numeric.h: Likewise.
9985         * lib/unictype/pr_alphabetic.h: Likewise.
9986         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
9987         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
9988         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
9989         * lib/unictype/pr_bidi_block_separator.h: Likewise.
9990         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
9991         * lib/unictype/pr_bidi_common_separator.h: Likewise.
9992         * lib/unictype/pr_bidi_control.h: Likewise.
9993         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
9994         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
9995         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
9996         * lib/unictype/pr_bidi_european_digit.h: Likewise.
9997         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
9998         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
9999         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
10000         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
10001         * lib/unictype/pr_bidi_pdf.h: Likewise.
10002         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
10003         * lib/unictype/pr_bidi_whitespace.h: Likewise.
10004         * lib/unictype/pr_combining.h: Likewise.
10005         * lib/unictype/pr_composite.h: Likewise.
10006         * lib/unictype/pr_currency_symbol.h: Likewise.
10007         * lib/unictype/pr_dash.h: Likewise.
10008         * lib/unictype/pr_decimal_digit.h: Likewise.
10009         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
10010         * lib/unictype/pr_deprecated.h: Likewise.
10011         * lib/unictype/pr_diacritic.h: Likewise.
10012         * lib/unictype/pr_extender.h: Likewise.
10013         * lib/unictype/pr_format_control.h: Likewise.
10014         * lib/unictype/pr_grapheme_base.h: Likewise.
10015         * lib/unictype/pr_grapheme_extend.h: Likewise.
10016         * lib/unictype/pr_grapheme_link.h: Likewise.
10017         * lib/unictype/pr_hex_digit.h: Likewise.
10018         * lib/unictype/pr_hyphen.h: Likewise.
10019         * lib/unictype/pr_id_continue.h: Likewise.
10020         * lib/unictype/pr_id_start.h: Likewise.
10021         * lib/unictype/pr_ideographic.h: Likewise.
10022         * lib/unictype/pr_ids_binary_operator.h: Likewise.
10023         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
10024         * lib/unictype/pr_ignorable_control.h: Likewise.
10025         * lib/unictype/pr_iso_control.h: Likewise.
10026         * lib/unictype/pr_join_control.h: Likewise.
10027         * lib/unictype/pr_left_of_pair.h: Likewise.
10028         * lib/unictype/pr_line_separator.h: Likewise.
10029         * lib/unictype/pr_logical_order_exception.h: Likewise.
10030         * lib/unictype/pr_lowercase.h: Likewise.
10031         * lib/unictype/pr_math.h: Likewise.
10032         * lib/unictype/pr_non_break.h: Likewise.
10033         * lib/unictype/pr_not_a_character.h: Likewise.
10034         * lib/unictype/pr_numeric.h: Likewise.
10035         * lib/unictype/pr_other_alphabetic.h: Likewise.
10036         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
10037         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
10038         * lib/unictype/pr_other_id_continue.h: Likewise.
10039         * lib/unictype/pr_other_id_start.h: Likewise.
10040         * lib/unictype/pr_other_lowercase.h: Likewise.
10041         * lib/unictype/pr_other_math.h: Likewise.
10042         * lib/unictype/pr_other_uppercase.h: Likewise.
10043         * lib/unictype/pr_paired_punctuation.h: Likewise.
10044         * lib/unictype/pr_paragraph_separator.h: Likewise.
10045         * lib/unictype/pr_pattern_syntax.h: Likewise.
10046         * lib/unictype/pr_pattern_white_space.h: Likewise.
10047         * lib/unictype/pr_private_use.h: Likewise.
10048         * lib/unictype/pr_punctuation.h: Likewise.
10049         * lib/unictype/pr_quotation_mark.h: Likewise.
10050         * lib/unictype/pr_radical.h: Likewise.
10051         * lib/unictype/pr_sentence_terminal.h: Likewise.
10052         * lib/unictype/pr_soft_dotted.h: Likewise.
10053         * lib/unictype/pr_space.h: Likewise.
10054         * lib/unictype/pr_terminal_punctuation.h: Likewise.
10055         * lib/unictype/pr_titlecase.h: Likewise.
10056         * lib/unictype/pr_unassigned_code_value.h: Likewise.
10057         * lib/unictype/pr_unified_ideograph.h: Likewise.
10058         * lib/unictype/pr_uppercase.h: Likewise.
10059         * lib/unictype/pr_variation_selector.h: Likewise.
10060         * lib/unictype/pr_white_space.h: Likewise.
10061         * lib/unictype/pr_xid_continue.h: Likewise.
10062         * lib/unictype/pr_xid_start.h: Likewise.
10063         * lib/unictype/pr_zero_width.h: Likewise.
10064         * lib/unictype/scripts.h: Likewise.
10065         * lib/unictype/scripts_byname.gperf: Likewise.
10066         * lib/unictype/sy_c_ident.h: Likewise.
10067         * lib/unictype/sy_c_whitespace.h: Likewise.
10068         * lib/unictype/sy_java_ident.h: Likewise.
10069         * lib/unictype/sy_java_whitespace.h: Likewise.
10070
10071         * lib/unictype/Makefile: New file.
10072         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
10073         glibc.
10074         * lib/unictype/3level.h: New file, copied from glibc.
10075         * lib/unictype/3levelbit.h: New file.
10076
10077 2007-11-11  Bruno Haible  <bruno@clisp.org>
10078
10079         * modules/gperf: New file.
10080         * modules/iconv_open (Depends-on): Add it.
10081         (Makefile.am): Remove the GPERF definition.
10082
10083 2007-11-11  Bruno Haible  <bruno@clisp.org>
10084
10085         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
10086         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
10087
10088 2007-11-11  Bruno Haible  <bruno@clisp.org>
10089
10090         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
10091         (usage): Remove function.
10092
10093 2007-11-11  Bruno Haible  <bruno@clisp.org>
10094
10095         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
10096         gl_FUNC_CEILF_LIBS.
10097         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
10098         gl_FUNC_CEIL_LIBS.
10099         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
10100         gl_FUNC_CEILL_LIBS.
10101         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
10102         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
10103         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
10104
10105 2007-11-11  Bruno Haible  <bruno@clisp.org>
10106
10107         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
10108         roundf were declared but do not exist on functions.
10109         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
10110         roundl were declared but do not exist on functions.
10111         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
10112         HAVE_FLOORL_AND_CEILL, respectively.
10113         Needed for Sun C on Solaris 10.
10114
10115 2007-11-11  Bruno Haible  <bruno@clisp.org>
10116
10117         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
10118         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
10119         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
10120         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
10121         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
10122         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
10123         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
10124         HAVE_DECL_ROUNDF.
10125         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
10126         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
10127         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
10128         of HAVE_DECL_ROUND*.
10129         * modules/math (Makefile.am): Update.
10130
10131 2007-11-10  Bruno Haible  <bruno@clisp.org>
10132
10133         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
10134         ptrdiff_t as m4/intl.m4.
10135
10136 2007-11-10  Jim Meyering  <meyering@redhat.com>
10137
10138         Avoid link failure for the argmatch test.
10139         * tests/test-argmatch.c (usage): Define function to avoid a link
10140         failure: argmatch_die requires a usage function.
10141
10142 2007-11-09  Bruno Haible  <bruno@clisp.org>
10143
10144         * doc/functions/snprintf.texi: Mention BeOS deficiency.
10145         * doc/functions/vsnprintf.texi: Likewise.
10146         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
10147         with a size argument < 2.
10148
10149 2007-11-09  Bruno Haible  <bruno@clisp.org>
10150
10151         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
10152         buffer. Fixes an inefficiency introduced on 2007-11-03.
10153
10154 2007-11-09  Bruno Haible  <bruno@clisp.org>
10155
10156         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
10157         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
10158
10159 2007-11-08  Jim Meyering  <meyering@redhat.com>
10160
10161         Change cache variable name prefix "jm_" to "gl_" everywhere.
10162         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
10163         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
10164         * m4/uptime.m4: s/gl_/jm_/
10165
10166 2007-11-07  Bruno Haible  <bruno@clisp.org>
10167
10168         Update to GNU gettext 0.17.
10169         * m4/intl.m4: Update to GNU gettext 0.17.
10170         * m4/po.m4: Likewise.
10171         * modules/gettext (Files): Remove m4/ulonglong.m4.
10172         (configure.ac): Require gettext infrastructure from version 0.17.
10173
10174 2007-11-06  Bruno Haible  <bruno@clisp.org>
10175
10176         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
10177         symbolic values are not defined in a public header.
10178         * lib/freadable.c (freadable) [QNX]: Likewise.
10179         * lib/freadahead.c (freadahead) [QNX]: Likewise.
10180         * lib/freading.c (freading) [QNX]: Likewise.
10181         * lib/fseterr.c (fseterr) [QNX]: Likewise.
10182         * lib/fwritable.c (fwritable) [QNX]: Likewise.
10183         * lib/fwriting.c (fwriting) [QNX]: Likewise.
10184         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
10185         Reported by Alain Magloire.
10186
10187         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
10188
10189 2007-11-05  Bruno Haible  <bruno@clisp.org>
10190
10191         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
10192         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
10193         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
10194         Reported by Eric Blake.
10195
10196 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10197             Bruno Haible  <bruno@clisp.org>
10198
10199         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
10200         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
10201         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
10202         (malloc): Undefine also before including <stdlib.h>.
10203         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
10204         Needed on OSF/1 4.0.
10205
10206 2007-11-05  Jim Meyering  <meyering@redhat.com>
10207
10208         git-version-gen: sync from coreutils.
10209         * build-aux/git-version-gen: Add comments.
10210         Change the first '-' to '.' in the snapshot version string,
10211         e.g., 6.9-377-08144 -> 6.9.377-08144
10212         Remove first parameter.
10213         Don't declare a version "-dirty" merely because a time
10214         stamp has changed.
10215
10216 2007-11-04  Bruno Haible  <bruno@clisp.org>
10217
10218         * lib/lock.h: Protect all macro definitions containing an 'if'
10219         statement through a "do { ... } while (0)".
10220         * lib/tls.h: Likewise.
10221
10222 2007-11-04  Bruno Haible  <bruno@clisp.org>
10223
10224         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
10225
10226 2007-11-04  Bruno Haible  <bruno@clisp.org>
10227
10228         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
10229         * modules/fprintf-posix (Depends-on): Add nocrash.
10230         * modules/snprintf-posix (Depends-on): Likewise.
10231         * modules/sprintf-posix (Depends-on): Likewise.
10232         * modules/vasnprintf-posix (Depends-on): Likewise.
10233         * modules/vasprintf-posix (Depends-on): Likewise.
10234         * modules/vfprintf-posix (Depends-on): Likewise.
10235         * modules/vsnprintf-posix (Depends-on): Likewise.
10236         * modules/vsprintf-posix (Depends-on): Likewise.
10237         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
10238         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
10239         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
10240         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
10241         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
10242         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
10243         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
10244
10245 2007-11-04  Bruno Haible  <bruno@clisp.org>
10246
10247         * modules/nocrash: New file.
10248         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
10249         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
10250
10251 2007-11-04  Bruno Haible  <bruno@clisp.org>
10252
10253         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
10254         precision handling.
10255         * tests/test-vasprintf-posix.c (test_function): Likewise.
10256         * tests/test-snprintf-posix.h (test_function): Likewise.
10257         * tests/test-sprintf-posix.h (test_function): Likewise.
10258
10259         Fix *printf behaviour for large precisions on mingw and BeOS.
10260         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
10261         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
10262         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
10263         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
10264         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
10265         gl_PRINTF_PRECISION and test its result. Invoke
10266         gl_PREREQ_VASNPRINTF_PRECISION.
10267         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
10268         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
10269         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
10270         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
10271         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
10272         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
10273         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
10274         * doc/functions/fprintf.texi: Update.
10275         * doc/functions/printf.texi: Update.
10276         * doc/functions/snprintf.texi: Update.
10277         * doc/functions/sprintf.texi: Update.
10278         * doc/functions/vfprintf.texi: Update.
10279         * doc/functions/vprintf.texi: Update.
10280         * doc/functions/vsnprintf.texi: Update.
10281         * doc/functions/vsprintf.texi: Update.
10282
10283 2007-11-04  Bruno Haible  <bruno@clisp.org>
10284
10285         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
10286
10287 2007-11-04  Bruno Haible  <bruno@clisp.org>
10288
10289         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
10290         Reported by Sylvain Beucler <beuc@gnu.org>.
10291
10292 2007-11-03  Bruno Haible  <bruno@clisp.org>
10293
10294         * tests/test-fprintf-posix2.sh: New file.
10295         * tests/test-fprintf-posix2.c: New file.
10296         * modules/fprintf-posix-tests (Files): Add them.
10297         (TESTS): Add test-fprintf-posix2.sh.
10298         (configure.ac): Check for getrlimit and setrlimit.
10299         (check_PROGRAMS): Add test-fprintf-posix2.
10300
10301         * tests/test-printf-posix2.sh: New file.
10302         * tests/test-printf-posix2.c: New file.
10303         * modules/printf-posix-tests (Files): Add them.
10304         (TESTS): Add test-printf-posix2.sh.
10305         (configure.ac): Check for getrlimit and setrlimit.
10306         (check_PROGRAMS): Add test-printf-posix2.
10307
10308         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
10309         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
10310         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
10311         (decode_double): New function, copied from decode_long_double.
10312         (scale10_round_decimal_decoded): New function, extracted from
10313         scale10_round_decimal_long_double.
10314         (scale10_round_decimal_long_double): Use it.
10315         (scale10_round_decimal_double): New function.
10316         (floorlog10): New function.
10317         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
10318         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
10319         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
10320         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
10321         gl_PRINTF_ENOMEM and test its result. Invoke
10322         gl_PREREQ_VASNPRINTF_ENOMEM.
10323         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
10324         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
10325         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
10326         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
10327         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
10328         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
10329         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
10330         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
10331         * modules/snprintf-posix (Depends-on): Likewise.
10332         * modules/sprintf-posix (Depends-on): Likewise.
10333         * modules/vasnprintf-posix (Depends-on): Likewise.
10334         * modules/vasprintf-posix (Depends-on): Likewise.
10335         * modules/vfprintf-posix (Depends-on): Likewise.
10336         * modules/vsnprintf-posix (Depends-on): Likewise.
10337         * modules/vsprintf-posix (Depends-on): Likewise.
10338         * doc/functions/fprintf.texi: Update.
10339         * doc/functions/printf.texi: Update.
10340         * doc/functions/snprintf.texi: Update.
10341         * doc/functions/sprintf.texi: Update.
10342         * doc/functions/vfprintf.texi: Update.
10343         * doc/functions/vprintf.texi: Update.
10344         * doc/functions/vsnprintf.texi: Update.
10345         * doc/functions/vsprintf.texi: Update.
10346
10347 2007-11-03  Bruno Haible  <bruno@clisp.org>
10348
10349         * modules/frexp-nolibm-tests: New file.
10350
10351         * modules/frexp-nolibm: New file.
10352         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
10353
10354 2007-11-03  Bruno Haible  <bruno@clisp.org>
10355
10356         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
10357         value is C99 compliant.
10358         Needed for OSF/1 5.1.
10359
10360 2007-11-03  Bruno Haible  <bruno@clisp.org>
10361
10362         Fix out-of-memory handling of vasnprintf.
10363         * lib/printf-parse.c: Include <errno.h>.
10364         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
10365         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
10366         is already set.
10367
10368 2007-11-02  Eric Blake  <ebb9@byu.net>
10369
10370         Fix tests on cygwin.
10371         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
10372
10373 2007-11-01  Bruno Haible  <bruno@clisp.org>
10374
10375         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
10376         warning.
10377         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
10378         needed for POSIX compatibility.
10379
10380 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
10381
10382         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
10383         for compatibility with GNU.
10384
10385 2007-11-01  Bruno Haible  <bruno@clisp.org>
10386
10387         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
10388         (putenv): Renamed from rpl_putenv. Change argument type from
10389         'const char *' to 'char *'.
10390         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
10391         of defining putenv in config.h, just set REPLACE_PUTENV.
10392         * modules/putenv (Depends-on): Add stdlib.
10393         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
10394         (Include): Use <stdlib.h>.
10395         * lib/stdlib.in.h (putenv): New declaration.
10396         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
10397         REPLACE_PUTENV.
10398         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
10399         REPLACE_PUTENV.
10400         Needed for MacOS X 10.5.0.
10401         Reported by Peter O'Gorman <peter@pogma.com>.
10402
10403 2007-11-01  Jim Meyering  <meyering@redhat.com>
10404
10405         Treat an empty date string exactly like "0".
10406         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
10407         if the remaining date string (to be parsed) is empty, use "0".
10408         Reported by Mischa Molhoek and discussed in this thread:
10409         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
10410
10411 2007-10-31  Bruno Haible  <bruno@clisp.org>
10412
10413         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
10414         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
10415         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
10416         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
10417         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
10418         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
10419
10420 2007-10-31  Bruno Haible  <bruno@clisp.org>
10421
10422         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
10423         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
10424         (AC_TYPE_LONG_LONG_INT): Use it.
10425         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
10426         it as well.
10427         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
10428         to m4/longlong.m4.
10429         * modules/stdint (Files): Remove m4/ulonglong.m4.
10430         * modules/strtoull (Files): Use m4/longlong.m4 instead of
10431         m4/ulonglong.m4.
10432         * modules/strtoumax (Files): Likewise.
10433
10434 2007-10-30  Bruno Haible  <bruno@clisp.org>
10435
10436         * modules/xvasprintf-posix: New file.
10437         Suggested by Eric Blake.
10438
10439 2007-10-30  Bruno Haible  <bruno@clisp.org>
10440
10441         * modules/xprintf-posix-tests: New file.
10442         * tests/test-xprintf-posix.sh: New file.
10443         * tests/test-xprintf-posix.c: New file.
10444         * tests/test-xfprintf-posix.c: New file.
10445
10446         * modules/xprintf-posix: New file.
10447
10448 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10449
10450         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
10451         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
10452         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
10453
10454 2007-10-29  Bruno Haible  <bruno@clisp.org>
10455
10456         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
10457         contain the special marker '_cv_'.
10458         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
10459         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
10460         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
10461         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
10462         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
10463         Reported by Ralf Wildenhues.
10464
10465 2007-10-29  Bruno Haible  <bruno@clisp.org>
10466
10467         * gnulib-tool (func_import): When --lgpl is not specified, set
10468         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
10469         GPLv3.
10470         Reported by Simon Josefsson.
10471
10472 2007-10-28  Bruno Haible  <bruno@clisp.org>
10473
10474         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
10475         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
10476         HAVE_DECL_ISFINITE.
10477         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
10478         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
10479         HAVE_DECL_ISFINITE.
10480
10481 2007-10-28  Bruno Haible  <bruno@clisp.org>
10482
10483         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
10484         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
10485
10486 2007-10-28  Bruno Haible  <bruno@clisp.org>
10487
10488         Fix link errors with Sun C 5.0 on Solaris 10.
10489         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
10490         function is declared but not present in the compiler's libm.
10491         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
10492         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
10493         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
10494         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
10495         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
10496         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
10497         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
10498         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
10499         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
10500         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
10501         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
10502         HAVE_DECL_FLOORL.
10503
10504 2007-10-28  Bruno Haible  <bruno@clisp.org>
10505
10506         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
10507         gl_FUNC_FLOORL. Cache the result.
10508         (gl_FUNC_FLOORL): Use it.
10509         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
10510         gl_FUNC_CEILL. Cache the result.
10511         (gl_FUNC_CEILL): Use it.
10512
10513         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
10514         gl_FUNC_FLOOR. Cache the result.
10515         (gl_FUNC_FLOOR): Use it.
10516         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
10517         gl_FUNC_CEIL. Cache the result.
10518         (gl_FUNC_CEIL): Use it.
10519
10520         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
10521         gl_FUNC_FLOORF. Cache the result.
10522         (gl_FUNC_FLOORF): Use it.
10523         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
10524         gl_FUNC_CEILF. Cache the result.
10525         (gl_FUNC_CEILF): Use it.
10526
10527 2007-10-28  Bruno Haible  <bruno@clisp.org>
10528
10529         * gnulib-tool: Allow specifying the LGPL version number through
10530         --lgpl=2 or --lgpl=3.
10531         (func_usage): Document --lgpl with argument.
10532         Handle --lgpl=... arguments.
10533         (func_import): Recognize also gl_LGPL calls with an argument. When
10534         --lgpl=2 is used and the module's license is just LGPL, report an
10535         error. Set sed_transform_lib_file according to the lgpl variable. In
10536         the generated files, use --lgpl or gl_LGPL invocations with argument,
10537         if necessary.
10538         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
10539         an LGPv2+ license.
10540         * doc/gnulib-tool.texi (Modified imports): Update explanation of
10541         gl_LGPL macro.
10542
10543 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10544             Bruno Haible  <bruno@clisp.org>
10545
10546         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
10547         (u16_uctomb_aux): Likewise.
10548         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
10549         !HAVE_INLINE.
10550         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
10551
10552 2007-10-28  Bruno Haible  <bruno@clisp.org>
10553
10554         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
10555         Invoke AM_GETTEXT_OPTION if it exists.
10556         * modules/vasprintf: Likewise.
10557         * modules/verror: Likewise.
10558         * modules/xprintf: Likewise.
10559         * modules/xvasprintf: Likewise.
10560
10561 2007-10-27  Ben Pfaff  <blp@gnu.org>
10562
10563         * lib/math.in.h: Define isfinite macro and prototypes for
10564         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
10565         implementations.
10566         * m4/math_h.m4: New substitutions for isfinite module.
10567         * lib/isfinite.c: New file.
10568         * m4/isfinite.m4: New file.
10569         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
10570         * modules/isfinite: New file.
10571         * modules/isfinite-tests: New file.
10572         * tests/tests-isfinite.c: New file.
10573         * doc/functions/isfinite.texi: Mention isfinite module.
10574         * MODULES.html.sh: Mention new module.
10575
10576 2007-10-27  Ben Pfaff  <blp@gnu.org>
10577
10578         Ralf Wildenhues reported that Tru64 4.0D declares the round
10579         functions but does not have definitions.
10580         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
10581         cannot be found in any library, set the output variable to
10582         "missing" instead of "".
10583         * m4/round.m4: Also use our substitute if we cannot find round in
10584         any library, even if it is declared.
10585         * m4/roundf.m4: Likewise for roundf.
10586         * m4/roundl.m4: Likewise for roundl.
10587         * lib/math.in.h: Undefine roundf, round, roundl before defining
10588         their replacements, to allow for hypothetical systems where these
10589         may be defined as macros but not available in libraries.
10590
10591 2007-10-27  Bruno Haible  <bruno@clisp.org>
10592
10593         * doc/gnulib.texi: Invoke @firstparagraphindent.
10594         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
10595         changes in gnulib.
10596         (Source changes): New section.
10597
10598 2007-10-26  Bruno Haible  <bruno@clisp.org>
10599
10600         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
10601         borrowed from autoconf.
10602
10603 2007-10-26  Bruno Haible  <bruno@clisp.org>
10604
10605         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
10606         strerror returned the empty string. Needed on HP-UX 11.00.
10607
10608 2007-10-24  Micah Cowan  <micah@cowan.name>
10609
10610         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
10611         * build-aux/bootstrap: Remove support for now-unnecessary option,
10612         --cvs-user, and envvars CVS_USER, CVS_RSH.
10613
10614 2007-10-24  Jim Meyering  <meyering@redhat.com>
10615
10616         Avoid diagnostics from sha1sum when there is no cached checksum.
10617         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
10618         if the po.s1 file hasn't been created yet.
10619
10620         * build-aux/bootstrap: Sync from coreutils:
10621         2007-10-24  Jim Meyering  <meyering@redhat.com>
10622         Get gnulib from the git repository, not from an obsolete cvs one.
10623         * build-aux/bootstrap: Suggestion from Micah Cowan.
10624         2007-10-04  Jim Meyering  <jim@meyering.net>
10625         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
10626         (update_po_files): Work also when there are no .po files in po/.
10627
10628 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
10629
10630         * README: Append ".git" to git and cg examples.
10631         Problem reported by Benoit Sigoure.
10632
10633 2007-10-23  Micah Cowan  <micah@cowan.name>
10634
10635         * users.txt: Add wget.
10636
10637 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10638
10639         Fix linking of some unistdio tests on FreeBSD.
10640         * modules/unistdio/u16-vsnprintf-tests
10641         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
10642         * modules/unistdio/u16-vsprintf-tests
10643         (test_u16_vsnprintf1_LDADD): Likewise.
10644         * modules/unistdio/u32-vsnprintf-tests
10645         (test_u32_vsnprintf1_LDADD): Likewise.
10646         * modules/unistdio/u32-vsprintf-tests
10647         (test_u32_vsprintf1_LDADD): Likewise.
10648         * modules/unistdio/u8-vsnprintf-tests
10649         (test_u8_vsnprintf1_LDADD): Likewise.
10650         * modules/unistdio/u8-vsprintf-tests
10651         (test_u8_vsprintf1_LDADD): Likewise.
10652         * modules/unistdio/ulc-vsnprintf-tests
10653         (test_ulc_vsnprintf1_LDADD): Likewise.
10654         * modules/unistdio/ulc-vsprintf-tests
10655         (test_ulc_vsprintf1_LDADD): Likewise.
10656
10657         Fix linking of some uniconv tests on FreeBSD.
10658         * modules/uniconv/u16-conv-from-enc-tests
10659         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
10660         * modules/uniconv/u16-conv-to-enc-tests
10661         (test_u16_conv_to_enc_LDADD): Likewise.
10662         * modules/uniconv/u16-strconv-from-enc-tests
10663         (test_u16_strconv_from_enc_LDADD): Likewise.
10664         * modules/uniconv/u16-strconv-to-enc-tests
10665         (test_u16_strconv_to_enc_LDADD): Likewise.
10666         * modules/uniconv/u32-conv-from-enc-tests
10667         (test_u32_conv_from_enc_LDADD): Likewise.
10668         * modules/uniconv/u32-conv-to-enc-tests
10669         (test_u32_conv_to_enc_LDADD): Likewise.
10670         * modules/uniconv/u32-strconv-from-enc-tests
10671         (test_u32_strconv_from_enc_LDADD): Likewise.
10672         * modules/uniconv/u32-strconv-to-enc-tests
10673         (test_u32_strconv_to_enc_LDADD): Likewise.
10674         * modules/uniconv/u8-conv-from-enc-tests
10675         (test_u8_conv_from_enc_LDADD): Likewise.
10676         * modules/uniconv/u8-conv-to-enc-tests
10677         (test_u8_conv_to_enc_LDADD): Likewise.
10678         * modules/uniconv/u8-strconv-from-enc-tests
10679         (test_u8_strconv_from_enc_LDADD): Likewise.
10680         * modules/uniconv/u8-strconv-to-enc-tests
10681         (test_u8_strconv_to_enc_LDADD): Likewise.
10682
10683 2007-10-22  Bruno Haible  <bruno@clisp.org>
10684
10685         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
10686         size.
10687
10688 2007-10-22  Eric Blake  <ebb9@byu.net>
10689
10690         Tweak x*printf documentation.
10691         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
10692         variable name and comments.
10693         Suggested by Bruno Haible.
10694
10695 2007-10-22  Bruno Haible  <bruno@clisp.org>
10696
10697         * lib/acl.c (copy_acl): Fix file name in comment.
10698
10699 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
10700
10701         Fix Tru64 problem with stdbool.h.
10702         * lib/stdbool.in.h (false, true):
10703         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
10704         Don't declare as an enum in this situation; it runs afoul of Tru64.
10705         Problem reported by Steven M. Schweda in
10706         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
10707
10708 2007-10-22  Eric Blake  <ebb9@byu.net>
10709
10710         Also wrap vf?printf.
10711         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
10712         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
10713         (xvprintf, xvfprintf): New functions.
10714
10715 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10716
10717         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
10718         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
10719
10720         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
10721         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
10722
10723 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
10724
10725         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
10726         by Bruno Haible.
10727
10728 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10729
10730         * lib/getloadavg.c
10731         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
10732         Undef `sys' after including sys/table.h, for Tru64 4.0D.
10733
10734         * tests/test-i-ring.c: Work for C89.
10735
10736 2007-10-22  Bruno Haible  <bruno@clisp.org>
10737
10738         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
10739         -1u, in preprocessor expression, so that we don't test for the bug
10740         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
10741         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
10742
10743 2007-10-22  Eric Blake  <ebb9@byu.net>
10744
10745         * tests/test-yesno.sh: Silence stderr during test.
10746
10747 2007-10-22  Simon Josefsson  <simon@josefsson.org>
10748
10749         * modules/crypto/gc-camellia: New file.
10750
10751         * m4/gc-camellia.m4: New file.
10752
10753         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
10754
10755         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
10756
10757 2007-10-22  Simon Josefsson  <simon@josefsson.org>
10758
10759         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
10760         --help to stdout.  Reported by sms@antinode.org (Steven
10761         M. Schweda).
10762
10763 2007-10-22  Simon Josefsson  <simon@josefsson.org>
10764
10765         * users.txt: Fix link to libksba.
10766
10767 2007-10-21  Ben Pfaff  <blp@gnu.org>
10768
10769         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
10770         round.c roundf implementation that depends on floorf and ceilf to
10771         be tested unconditionally.
10772
10773 2007-10-21  Ben Pfaff  <blp@gnu.org>
10774
10775         * m4/check-libm-func.m4: Removed.
10776         * m4/check-math-lib.m4: New file.
10777         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
10778         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
10779         definition and lack of AC_LIBOBJ([roundf]).
10780         * m4/roundl.m4: Ditto, and similarly for roundl.
10781         * modules/round: Reference new m4 file.
10782         * modules/roundf: Ditto.
10783         * modules/roundl: Ditto.
10784         * tests/test-round2.c (main): Use ROUND instead of round.
10785         Bug report from Bruno Haible.
10786
10787 2007-10-21  Bruno Haible  <bruno@clisp.org>
10788
10789         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
10790         context.
10791
10792 2007-10-21  Bruno Haible  <bruno@clisp.org>
10793
10794         * tests/test-wcwidth.c (main): Allow negative result for some control
10795         characters.
10796
10797         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
10798         Needed on OSF/1 5.1.
10799
10800 2007-10-21  Bruno Haible  <bruno@clisp.org>
10801
10802         * tests/test-floorf1.c: Include isnanf.h.
10803         (main): Use isnanf() instead of isnan().
10804         * tests/test-ceilf1.c: Include isnanf.h.
10805         (main): Use isnanf() instead of isnan().
10806         * tests/test-truncf1.c: Include isnanf.h.
10807         (main): Use isnanf() instead of isnan().
10808         * tests/test-roundf1.c: Include isnanf.h.
10809         (main): Use isnanf() instead of isnan().
10810
10811 2007-10-21  Eric Blake  <ebb9@byu.net>
10812
10813         * users.txt: Update URL for m4.
10814
10815 2007-10-21  Bruno Haible  <bruno@clisp.org>
10816
10817         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
10818
10819 2007-10-21  Bruno Haible  <bruno@clisp.org>
10820
10821         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
10822         Git's management files if the CVS files are not present.
10823
10824 2007-10-20  Bruno Haible  <bruno@clisp.org>
10825
10826         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
10827         gcc-3.4.x.
10828
10829 2007-10-20  Ben Pfaff  <blp@gnu.org>
10830
10831         * lib/math.in.h: Declare round, roundf, roundl if we are providing
10832         implementations.
10833         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
10834         * lib/round.c: New file.
10835         * lib/roundf.c: New file.
10836         * lib/roundl.c: New file.
10837         * m4/round.m4: New file.
10838         * m4/roundf.m4: New file.
10839         * m4/roundl.m4: New file.
10840         * m4/check-libm-func-m4: New file.
10841         * modules/math: Replace round, roundf, roundl related @VARS@ in
10842         math.in.h.
10843         * modules/round: New file.
10844         * modules/round-tests: New file.
10845         * modules/roundf: New file.
10846         * modules/roundf-tests: New file.
10847         * modules/roundl: New file.
10848         * modules/roundl-tests: New file.
10849         * tests/test-round1.c: New file.
10850         * tests/test-round2.c: New file.
10851         * tests/test-roundf1.c: New file.
10852         * tests/test-roundf2.c: New file.
10853         * tests/test-roundl.c: New file.
10854         * doc/functions/round.texi: Mention round module.
10855         * doc/functions/roundf.texi: Mention roundf module.
10856         * doc/functions/roundl.texi: Mention roundl module.
10857         * MODULES.html.sh: Mention new modules.
10858         Thanks to Bruno Haible for suggestions.
10859
10860 2007-10-20  Jim Meyering  <meyering@redhat.com>
10861
10862         * lib/xprintf.c: Include <config.h> unconditionally.
10863
10864         Change xprintf's license to GPL.
10865         * modules/xprintf (License): s/LGPL/GPL/, since this module
10866         depends on modules (exit and exitfail) which are GPL.
10867         Suggestion from Bruno Haible.
10868
10869         xprintf fixes.
10870         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
10871         Use a clearer diagnostic.
10872         Patch from Bruno Haible.
10873
10874 2007-10-20  Bruno Haible  <bruno@clisp.org>
10875
10876         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
10877         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
10878         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10879
10880 2007-10-20  Bruno Haible  <bruno@clisp.org>
10881
10882         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
10883         precision in the comparison result > x - 1 or similar.
10884         * tests/test-ceilf2.c (correct_result_p): Likewise.
10885         * tests/test-truncf2.c (correct_result_p): Likewise.
10886         * tests/test-trunc2.c (correct_result_p): Likewise.
10887         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10888
10889 2007-10-20  Bruno Haible  <bruno@clisp.org>
10890
10891         * modules/ceil: New file.
10892         * m4/ceil.m4: New file.
10893         * doc/functions/ceil.texi: Mention the 'ceil' module.
10894
10895 2007-10-20  Bruno Haible  <bruno@clisp.org>
10896
10897         * modules/floor: New file.
10898         * m4/floor.m4: New file.
10899         * doc/functions/floor.texi: Mention the 'floor' module.
10900
10901 2007-10-20  Bruno Haible  <bruno@clisp.org>
10902
10903         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
10904         of %a.
10905         * modules/floorf-tests (Depends-on): Likewise.
10906         * modules/truncf-tests (Depends-on): Likewise.
10907         * modules/trunc-tests (Depends-on): Likewise.
10908         Reported by Ben Pfaff.
10909
10910 2007-10-19  Jim Meyering  <meyering@redhat.com>
10911
10912         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
10913         Don't bother testing specific errno values.  Just test ferror.
10914
10915         New module: xprintf
10916         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
10917
10918 2007-10-19  Bruno Haible  <bruno@clisp.org>
10919
10920         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
10921         syntax.
10922         * modules/javaexec (Makefile.am): Likewise.
10923         * modules/relocatable-prog (Makefile.am): Likewise.
10924         Suggested by Jim Meyering.
10925
10926 2007-10-18  Bruno Haible  <bruno@clisp.org>
10927
10928         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
10929         Reported by Jim Meyering.
10930
10931 2007-10-18  Eric Blake  <ebb9@byu.net>
10932
10933         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
10934
10935 2007-10-18  Bruno Haible  <bruno@clisp.org>
10936
10937         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
10938         the format string into writable memory. Needed in Fortify conditions.
10939
10940 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
10941             Bruno Haible  <bruno@clisp.org>
10942
10943         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
10944         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
10945         * modules/trim (Depends-on): Add mbchar.
10946         (configure.ac): Add gl_FUNC_MBRTOWC.
10947         (Makefile.am): Augment lib_SOURCES.
10948
10949 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
10950
10951         Modify glob.c to use fstatat and dirfd, to simplify it.
10952         Suggested by Eric Blake.
10953         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
10954         Don't include <stdbool.h>; not used.
10955         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
10956         (link_exists_p): Simplify implementation, since we can now assume
10957         dirfd and fstatat.
10958         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
10959
10960 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10961
10962         * gnulib-tool (func_get_dependencies): Fix sed script to
10963         match only tests.
10964
10965 2007-10-17  Bruno Haible  <bruno@clisp.org>
10966
10967         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
10968         allow locale names without encoding suffix.
10969         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
10970         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
10971
10972 2007-10-16  Bruno Haible  <bruno@clisp.org>
10973
10974         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
10975         * lib/getgroups.c (getgroups): Likewise.
10976         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
10977
10978 2007-10-16  Bruno Haible  <bruno@clisp.org>
10979
10980         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
10981         * modules/malloc-posix (License): Likewise.
10982         * modules/realloc-posix (License): Likewise.
10983         * modules/calloc-posix (License): Likewise.
10984         * modules/intprops (License): Change from GPL to LGPL, with
10985         Paul Eggert's approval.
10986
10987 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
10988
10989         Merge glibc changes into lib/glob.c.
10990
10991         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
10992         2007-10-15 04:59:03 UTC.  Here are the changes:
10993
10994         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
10995
10996         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
10997
10998         * lib/glob.c: Add some branch prediction throughout.
10999
11000         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
11001
11002         [BZ #5103]
11003         * lib/glob.c (glob): Recognize patterns starting \/.
11004
11005         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
11006
11007         [BZ #3996]
11008         * lib/glob.c (attribute_hidden): Define if not defined.
11009         (glob): Unescape dirname, filename or username when needed and not
11010         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
11011         is NULL.  Handle unescaped [ in pattern without closing ].
11012         Don't pass GLOB_CHECK down to recursive glob for directories.
11013         (__glob_pattern_type): New function.
11014         (__glob_pattern_p): Implement using __glob_pattern_type.
11015         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
11016         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
11017         Remove unreachable code.
11018
11019         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
11020
11021         * lib/glob.c (glob_in_dir): Add some comments and asserts to
11022         explain why there are no leaks.
11023
11024         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
11025
11026         [BZ #3253]
11027         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
11028         time, rather allocate increasingly bigger arrays of pointers, if
11029         possible with alloca, if too large with malloc.
11030
11031 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
11032
11033         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
11034         Problem reported by H.Merijn Brand in
11035         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
11036         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
11037         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
11038
11039 2007-10-15  Bruno Haible  <bruno@clisp.org>
11040
11041         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
11042         with explicit rpl_ prefix.
11043         * lib/fopen.c (fopen): Likewise.
11044         * lib/freopen.c (freopen): Likewise.
11045         * lib/iconv.c (iconv): Likewise.
11046         * lib/iconv_close.c (iconv_close): Likewise.
11047
11048 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11049
11050         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
11051
11052 2007-10-15  Bruno Haible  <bruno@clisp.org>
11053
11054         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
11055         <stddef.h> instead of <stdlib.h> since we only need NULL.
11056         Reported by Ben Pfaff <blp@cs.stanford.edu>.
11057
11058 2007-10-15  Bruno Haible  <bruno@clisp.org>
11059
11060         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
11061         Replace paragraph talking about LIBOBJS.
11062         Reported by Colin Watson <cjwatson@debian.org>.
11063
11064 2007-10-15  Bruno Haible  <bruno@clisp.org>
11065
11066         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
11067         <stdlib.h> before using NULL.
11068
11069 2007-10-15  Simon Josefsson  <simon@josefsson.org>
11070
11071         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
11072         Reported by Albert Chin <china@thewrittenword.com>.
11073
11074 2007-10-14  Bruno Haible  <bruno@clisp.org>
11075
11076         * modules/iconv_open-utf-tests: New file.
11077         * tests/test-iconv-utf.c: New file.
11078
11079         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
11080         * modules/iconv_open-utf: New file.
11081         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
11082         (iconv, iconv_close): New declarations.
11083         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
11084         be defined.
11085         (iconv_open): Add special handling of conversion between UTF-8 and
11086         UTF-{16,32}{BE,LE}.
11087         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
11088         * lib/iconv_close.c: New file.
11089         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
11090         gl_FUNC_ICONV_OPEN.
11091         (gl_FUNC_ICONV_OPEN): Use it.
11092         (gl_FUNC_ICONV_OPEN_UTF): New macro.
11093         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
11094         and REPLACE_ICONV_UTF.
11095         * modules/iconv_open (Depends-on): Add c-strcase.
11096         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
11097         ICONV_CONST.
11098         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
11099
11100 2007-10-13  Albert Chin  <china@thewrittenword.com>
11101             Bruno Haible  <bruno@clisp.org>
11102
11103         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
11104         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
11105
11106 2007-10-13  Bruno Haible  <bruno@clisp.org>
11107
11108         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
11109         defined, use the ISO C99 inline semantics.
11110         * lib/argp.h (ARGP_EI): Likewise.
11111
11112 2007-10-13  Bruno Haible  <bruno@clisp.org>
11113
11114         Handle 'inline' change in gcc 4.3.0.
11115         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
11116         argp_fmtstream_write, argp_fmtstream_set_lmargin,
11117         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
11118         argp_fmtstream_point): Disable 'extern' declaration if the function
11119         definition is going to be provided inline.
11120         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
11121         semantics, not the ISO C99 inline semantics.
11122         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
11123         'extern' declaration if the function definition is going to be provided
11124         inline.
11125         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
11126         the GNU C inline semantics, not the ISO C99 inline semantics. With
11127         GCC 4.2, avoid a warning.
11128
11129 2007-10-13  Bruno Haible  <bruno@clisp.org>
11130
11131         * lib/freading.h (freading): Enable the use of __freading for
11132         glibc >= 2.7.
11133         * lib/freading.c (freading): Likewise.
11134
11135 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
11136
11137         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
11138         "warning: C99 inline functions are not supported; using GNU89".
11139
11140 2007-10-12  Bruno Haible  <bruno@clisp.org>
11141
11142         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
11143         of 2.
11144         * tests/test-ceilf2.c: New file.
11145         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
11146
11147         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
11148         * modules/ceilf-tests: Update.
11149
11150 2007-10-12  Bruno Haible  <bruno@clisp.org>
11151
11152         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
11153         of 2.
11154         * tests/test-floorf2.c: New file.
11155         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
11156
11157         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
11158         * modules/floorf-tests: Update.
11159
11160 2007-10-12  Bruno Haible  <bruno@clisp.org>
11161
11162         * tests/test-trunc2.c: New file.
11163         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
11164
11165         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
11166         * modules/trunc-tests: Update.
11167
11168 2007-10-12  Bruno Haible  <bruno@clisp.org>
11169
11170         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
11171         of 2.
11172         * tests/test-truncf2.c: New file.
11173         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
11174
11175         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
11176         * modules/truncf-tests: Update.
11177
11178 2007-10-11  Eric Blake  <ebb9@byu.net>
11179
11180         Don't claim strerror is broken on Interix.
11181         * doc/functions/strerror.texi (strerror): Known broken systems are
11182         now Solaris 8, and not Interix.
11183         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
11184         Interix on cross-compile.
11185         Reported by Martin Koeppe in
11186         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
11187
11188 2007-10-11  Bruno Haible  <bruno@clisp.org>
11189
11190         * modules/i-ring-tests: New file.
11191         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
11192         instead of assert.
11193
11194 2007-10-11  Bruno Haible  <bruno@clisp.org>
11195
11196         * modules/filenamecat-tests: New file.
11197         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
11198         * lib/filenamecat.c: Remove test code.
11199
11200 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
11201
11202         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
11203
11204         * lib/strerror.c: Include <string.h> always, to test interface,
11205         and to remove the need for the dummy.
11206         Include intprops.h to compute width instead of doing it ourselves
11207         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
11208         (strerror): Define it to return NULL if there's no system strerror.
11209         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
11210         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
11211         ancient pre-strerror Unix systems well any more.  Saying "unknown
11212         system error" is enough.
11213         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
11214         simpler strerror.c implementation.
11215         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
11216         Simplify the tests to reflect the simpler strerror implementation.
11217         * modules/strerror (Depends-on): Add intprops.
11218
11219 2007-10-09  Eric Blake  <ebb9@byu.net>
11220
11221         Silence test-fpending.
11222         * modules/fpending-tests (Files): Add wrapper script.
11223         * tests/test-fpending.sh: New file.
11224
11225 2007-10-09  Bruno Haible  <bruno@clisp.org>
11226
11227         * MODULES.html.sh (func_module): Don't create a hyperlink for
11228         function names like 'printf_frexp'.
11229         (Misc): Add crc, memxor.
11230         (Characteristics of floating types): New section.
11231         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
11232         isnanf-nolibm, signbit, trunc, truncf, truncl.
11233         (Enhancements for ISO C 99 functions): New subsection Input/output.
11234         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
11235         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
11236         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
11237         (Compatibility checks for POSIX:2001 functions): Add clock-time.
11238         (Enhancements for POSIX:2001 functions): Add chdir-long.
11239         (File system functions): Add areadlink, chdir-safer, read-file.
11240         Remove cycle-check.
11241         (File system as inode set): New section.
11242         (Date and time): Add gethrxtime.
11243         (Multithreading): Add openmp.
11244         (Internationalization functions): Add localename.
11245         (Unicode string functions): Add unistr/u*-mbsnlen.
11246         (Support for maintaining and releasing projects): Add git-version-gen.
11247         (Lone files): Remove directories.
11248
11249 2007-10-08  Ben Pfaff  <blp@gnu.org>
11250
11251         * lib/xmalloca.h: Fix typo in comment.
11252
11253 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
11254
11255         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
11256         when avoiding problems with integer overflow.  Use a portable test
11257         instead.
11258
11259 2007-10-08  Simon Josefsson  <simon@josefsson.org>
11260
11261         * modules/dummy (License): Change to LGPLv2+.
11262         * modules/float (License): Likewise
11263         * modules/realloc (License): Likewise
11264         * modules/stdlib (License): Likewise
11265
11266 2007-10-07  Bruno Haible  <bruno@clisp.org>
11267
11268         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
11269         * floor.c (TWO_MANT_DIG): Likewise.
11270         * ceil.c (TWO_MANT_DIG): Likewise.
11271         Reported by Ben Pfaff.
11272
11273 2007-10-07  Bruno Haible  <bruno@clisp.org>
11274
11275         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
11276         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
11277         * lib/frexp.c (FUNC): Likewise.
11278         * lib/printf-frexp.h (printf_frexp): Likewise.
11279         * lib/printf-frexpl.h (printf_frexpl): Likewise.
11280         * lib/printf-frexp.c (FUNC): Likewise.
11281         Suggested by Jim Meyering.
11282
11283 2007-10-07  Jim Meyering  <meyering@redhat.com>
11284
11285         Make xnanosleep's integer overflow test more robust.
11286         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
11287         so that gcc-4.3.0 doesn't optimize away this test for overflow.
11288
11289 2007-10-07  Bruno Haible  <bruno@clisp.org>
11290
11291         * NEWS: Mention the license change.
11292
11293         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
11294         abbreviations in the modules files.
11295
11296         Change copyright notice from GPLv2+ to GPLv3+.
11297         * README: Change copyright notice.
11298         * MODULES.html.sh: Likewise.
11299         * build-aux/bootstrap.conf: Likewise.
11300         * build-aux/config.libpath: Likewise.
11301         * build-aux/csharpcomp.sh.in: Likewise.
11302         * build-aux/csharpexec.sh.in: Likewise.
11303         * build-aux/install-reloc: Likewise.
11304         * build-aux/javacomp.sh.in: Likewise.
11305         * build-aux/javaexec.sh.in: Likewise.
11306         * build-aux/ldd.sh.in: Likewise.
11307         * build-aux/reloc-ldflags: Likewise.
11308         * build-aux/relocatable.sh.in: Likewise.
11309         * build-aux/x-to-1.in: Likewise.
11310         * check-module: Likewise.
11311         * config/srclistvars.sh: Likewise.
11312         * gnulib-tool: Likewise.
11313         * lib/acl-internal.h: Likewise.
11314         * lib/acl.c: Likewise.
11315         * lib/acl.h: Likewise.
11316         * lib/acl_entries.c: Likewise.
11317         * lib/areadlink-with-size.c: Likewise.
11318         * lib/areadlink.c: Likewise.
11319         * lib/areadlink.h: Likewise.
11320         * lib/argmatch.c: Likewise.
11321         * lib/argmatch.h: Likewise.
11322         * lib/argp-ba.c: Likewise.
11323         * lib/argp-eexst.c: Likewise.
11324         * lib/argp-fmtstream.c: Likewise.
11325         * lib/argp-fmtstream.h: Likewise.
11326         * lib/argp-fs-xinl.c: Likewise.
11327         * lib/argp-help.c: Likewise.
11328         * lib/argp-namefrob.h: Likewise.
11329         * lib/argp-parse.c: Likewise.
11330         * lib/argp-pin.c: Likewise.
11331         * lib/argp-pv.c: Likewise.
11332         * lib/argp-pvh.c: Likewise.
11333         * lib/argp-xinl.c: Likewise.
11334         * lib/argp.h: Likewise.
11335         * lib/at-func.c: Likewise.
11336         * lib/atanl.c: Likewise.
11337         * lib/backupfile.c: Likewise.
11338         * lib/backupfile.h: Likewise.
11339         * lib/basename.c: Likewise.
11340         * lib/binary-io.h: Likewise.
11341         * lib/byteswap.in.h: Likewise.
11342         * lib/c-stack.c: Likewise.
11343         * lib/c-stack.h: Likewise.
11344         * lib/c-strcasestr.c: Likewise.
11345         * lib/c-strcasestr.h: Likewise.
11346         * lib/c-strstr.c: Likewise.
11347         * lib/c-strstr.h: Likewise.
11348         * lib/c-strtod.c: Likewise.
11349         * lib/calloc.c: Likewise.
11350         * lib/canon-host.c: Likewise.
11351         * lib/canon-host.h: Likewise.
11352         * lib/canonicalize-lgpl.c: Likewise.
11353         * lib/canonicalize.c: Likewise.
11354         * lib/canonicalize.h: Likewise.
11355         * lib/ceil.c: Likewise.
11356         * lib/ceilf.c: Likewise.
11357         * lib/ceill.c: Likewise.
11358         * lib/chdir-long.c: Likewise.
11359         * lib/chdir-long.h: Likewise.
11360         * lib/chdir-safer.c: Likewise.
11361         * lib/chdir-safer.h: Likewise.
11362         * lib/chown.c: Likewise.
11363         * lib/classpath.c: Likewise.
11364         * lib/classpath.h: Likewise.
11365         * lib/clean-temp.c: Likewise.
11366         * lib/clean-temp.h: Likewise.
11367         * lib/cloexec.c: Likewise.
11368         * lib/close-stream.c: Likewise.
11369         * lib/closein.c: Likewise.
11370         * lib/closein.h: Likewise.
11371         * lib/closeout.c: Likewise.
11372         * lib/closeout.h: Likewise.
11373         * lib/concat-filename.c: Likewise.
11374         * lib/copy-file.c: Likewise.
11375         * lib/copy-file.h: Likewise.
11376         * lib/count-one-bits.h: Likewise.
11377         * lib/crc.c: Likewise.
11378         * lib/crc.h: Likewise.
11379         * lib/creat-safer.c: Likewise.
11380         * lib/csharpcomp.c: Likewise.
11381         * lib/csharpcomp.h: Likewise.
11382         * lib/csharpexec.c: Likewise.
11383         * lib/csharpexec.h: Likewise.
11384         * lib/cycle-check.c: Likewise.
11385         * lib/cycle-check.h: Likewise.
11386         * lib/diacrit.c: Likewise.
11387         * lib/diacrit.h: Likewise.
11388         * lib/diffseq.h: Likewise.
11389         * lib/dirchownmod.c: Likewise.
11390         * lib/dirent.in.h: Likewise.
11391         * lib/dirfd.c: Likewise.
11392         * lib/dirfd.h: Likewise.
11393         * lib/dirname.c: Likewise.
11394         * lib/dirname.h: Likewise.
11395         * lib/dummy.c: Likewise.
11396         * lib/dup-safer.c: Likewise.
11397         * lib/dup2.c: Likewise.
11398         * lib/eealloc.h: Likewise.
11399         * lib/error.c: Likewise.
11400         * lib/error.h: Likewise.
11401         * lib/euidaccess.c: Likewise.
11402         * lib/exclude.c: Likewise.
11403         * lib/exclude.h: Likewise.
11404         * lib/execute.c: Likewise.
11405         * lib/execute.h: Likewise.
11406         * lib/exitfail.c: Likewise.
11407         * lib/exitfail.h: Likewise.
11408         * lib/expl.c: Likewise.
11409         * lib/fatal-signal.c: Likewise.
11410         * lib/fatal-signal.h: Likewise.
11411         * lib/fbufmode.c: Likewise.
11412         * lib/fbufmode.h: Likewise.
11413         * lib/fchdir.c: Likewise.
11414         * lib/fchmodat.c: Likewise.
11415         * lib/fchownat.c: Likewise.
11416         * lib/fcntl--.h: Likewise.
11417         * lib/fcntl-safer.h: Likewise.
11418         * lib/fcntl.in.h: Likewise.
11419         * lib/fd-safer.c: Likewise.
11420         * lib/fflush.c: Likewise.
11421         * lib/file-has-acl.c: Likewise.
11422         * lib/file-set.c: Likewise.
11423         * lib/file-type.c: Likewise.
11424         * lib/file-type.h: Likewise.
11425         * lib/fileblocks.c: Likewise.
11426         * lib/filemode.c: Likewise.
11427         * lib/filemode.h: Likewise.
11428         * lib/filename.h: Likewise.
11429         * lib/filenamecat.c: Likewise.
11430         * lib/filenamecat.h: Likewise.
11431         * lib/findprog.c: Likewise.
11432         * lib/findprog.h: Likewise.
11433         * lib/float.in.h: Likewise.
11434         * lib/floor.c: Likewise.
11435         * lib/floorf.c: Likewise.
11436         * lib/floorl.c: Likewise.
11437         * lib/fopen-safer.c: Likewise.
11438         * lib/fopen.c: Likewise.
11439         * lib/fpending.c: Likewise.
11440         * lib/fpending.h: Likewise.
11441         * lib/fprintf.c: Likewise.
11442         * lib/fprintftime.h: Likewise.
11443         * lib/fpucw.h: Likewise.
11444         * lib/fpurge.c: Likewise.
11445         * lib/fpurge.h: Likewise.
11446         * lib/freadable.c: Likewise.
11447         * lib/freadable.h: Likewise.
11448         * lib/freadahead.c: Likewise.
11449         * lib/freadahead.h: Likewise.
11450         * lib/freading.c: Likewise.
11451         * lib/freading.h: Likewise.
11452         * lib/free.c: Likewise.
11453         * lib/freopen.c: Likewise.
11454         * lib/frexp.c: Likewise.
11455         * lib/frexpl.c: Likewise.
11456         * lib/fseek.c: Likewise.
11457         * lib/fseterr.c: Likewise.
11458         * lib/fseterr.h: Likewise.
11459         * lib/fstatat.c: Likewise.
11460         * lib/fstrcmp.c: Likewise.
11461         * lib/fstrcmp.h: Likewise.
11462         * lib/fsusage.c: Likewise.
11463         * lib/fsusage.h: Likewise.
11464         * lib/ftell.c: Likewise.
11465         * lib/ftello.c: Likewise.
11466         * lib/fts-cycle.c: Likewise.
11467         * lib/fts.c: Likewise.
11468         * lib/fts_.h: Likewise.
11469         * lib/full-read.c: Likewise.
11470         * lib/full-read.h: Likewise.
11471         * lib/full-write.c: Likewise.
11472         * lib/full-write.h: Likewise.
11473         * lib/fwritable.c: Likewise.
11474         * lib/fwritable.h: Likewise.
11475         * lib/fwriteerror.c: Likewise.
11476         * lib/fwriteerror.h: Likewise.
11477         * lib/fwriting.c: Likewise.
11478         * lib/fwriting.h: Likewise.
11479         * lib/gcd.c: Likewise.
11480         * lib/gcd.h: Likewise.
11481         * lib/getcwd.c: Likewise.
11482         * lib/getdate.h: Likewise.
11483         * lib/getdate.y: Likewise.
11484         * lib/getdomainname.c: Likewise.
11485         * lib/getdomainname.h: Likewise.
11486         * lib/getgroups.c: Likewise.
11487         * lib/gethostname.c: Likewise.
11488         * lib/gethrxtime.c: Likewise.
11489         * lib/gethrxtime.h: Likewise.
11490         * lib/getloadavg.c: Likewise.
11491         * lib/getndelim2.c: Likewise.
11492         * lib/getndelim2.h: Likewise.
11493         * lib/getnline.c: Likewise.
11494         * lib/getnline.h: Likewise.
11495         * lib/getopt.c: Likewise.
11496         * lib/getopt.in.h: Likewise.
11497         * lib/getopt1.c: Likewise.
11498         * lib/getopt_int.h: Likewise.
11499         * lib/getpagesize.h: Likewise.
11500         * lib/getsubopt.c: Likewise.
11501         * lib/gettime.c: Likewise.
11502         * lib/getugroups.c: Likewise.
11503         * lib/getugroups.h: Likewise.
11504         * lib/getusershell.c: Likewise.
11505         * lib/gl_anyavltree_list1.h: Likewise.
11506         * lib/gl_anyavltree_list2.h: Likewise.
11507         * lib/gl_anyhash_list1.h: Likewise.
11508         * lib/gl_anyhash_list2.h: Likewise.
11509         * lib/gl_anylinked_list1.h: Likewise.
11510         * lib/gl_anylinked_list2.h: Likewise.
11511         * lib/gl_anyrbtree_list1.h: Likewise.
11512         * lib/gl_anyrbtree_list2.h: Likewise.
11513         * lib/gl_anytree_list1.h: Likewise.
11514         * lib/gl_anytree_list2.h: Likewise.
11515         * lib/gl_anytree_oset.h: Likewise.
11516         * lib/gl_anytreehash_list1.h: Likewise.
11517         * lib/gl_anytreehash_list2.h: Likewise.
11518         * lib/gl_array_list.c: Likewise.
11519         * lib/gl_array_list.h: Likewise.
11520         * lib/gl_array_oset.c: Likewise.
11521         * lib/gl_array_oset.h: Likewise.
11522         * lib/gl_avltree_list.c: Likewise.
11523         * lib/gl_avltree_list.h: Likewise.
11524         * lib/gl_avltree_oset.c: Likewise.
11525         * lib/gl_avltree_oset.h: Likewise.
11526         * lib/gl_avltreehash_list.c: Likewise.
11527         * lib/gl_avltreehash_list.h: Likewise.
11528         * lib/gl_carray_list.c: Likewise.
11529         * lib/gl_carray_list.h: Likewise.
11530         * lib/gl_linked_list.c: Likewise.
11531         * lib/gl_linked_list.h: Likewise.
11532         * lib/gl_linkedhash_list.c: Likewise.
11533         * lib/gl_linkedhash_list.h: Likewise.
11534         * lib/gl_list.c: Likewise.
11535         * lib/gl_list.h: Likewise.
11536         * lib/gl_oset.c: Likewise.
11537         * lib/gl_oset.h: Likewise.
11538         * lib/gl_rbtree_list.c: Likewise.
11539         * lib/gl_rbtree_list.h: Likewise.
11540         * lib/gl_rbtree_oset.c: Likewise.
11541         * lib/gl_rbtree_oset.h: Likewise.
11542         * lib/gl_rbtreehash_list.c: Likewise.
11543         * lib/gl_rbtreehash_list.h: Likewise.
11544         * lib/gl_sublist.c: Likewise.
11545         * lib/gl_sublist.h: Likewise.
11546         * lib/group-member.c: Likewise.
11547         * lib/group-member.h: Likewise.
11548         * lib/hard-locale.c: Likewise.
11549         * lib/hard-locale.h: Likewise.
11550         * lib/hash-pjw.c: Likewise.
11551         * lib/hash-pjw.h: Likewise.
11552         * lib/hash-triple.c: Likewise.
11553         * lib/hash.c: Likewise.
11554         * lib/hash.h: Likewise.
11555         * lib/human.c: Likewise.
11556         * lib/human.h: Likewise.
11557         * lib/i-ring.c: Likewise.
11558         * lib/i-ring.h: Likewise.
11559         * lib/idcache.c: Likewise.
11560         * lib/imaxabs.c: Likewise.
11561         * lib/imaxdiv.c: Likewise.
11562         * lib/inet_pton.c: Likewise.
11563         * lib/inet_pton.h: Likewise.
11564         * lib/intprops.h: Likewise.
11565         * lib/inttostr.c: Likewise.
11566         * lib/inttostr.h: Likewise.
11567         * lib/inttypes.in.h: Likewise.
11568         * lib/isapipe.c: Likewise.
11569         * lib/isdir.c: Likewise.
11570         * lib/isnan.c: Likewise.
11571         * lib/isnan.h: Likewise.
11572         * lib/isnanf.c: Likewise.
11573         * lib/isnanf.h: Likewise.
11574         * lib/isnanl-nolibm.h: Likewise.
11575         * lib/isnanl.c: Likewise.
11576         * lib/isnanl.h: Likewise.
11577         * lib/javacomp.c: Likewise.
11578         * lib/javacomp.h: Likewise.
11579         * lib/javaexec.c: Likewise.
11580         * lib/javaexec.h: Likewise.
11581         * lib/javaversion.c: Likewise.
11582         * lib/javaversion.h: Likewise.
11583         * lib/javaversion.java: Likewise.
11584         * lib/lbrkprop.h: Likewise.
11585         * lib/lchmod.h: Likewise.
11586         * lib/lchown.c: Likewise.
11587         * lib/ldexpl.c: Likewise.
11588         * lib/linebreak.c: Likewise.
11589         * lib/linebreak.h: Likewise.
11590         * lib/linebuffer.c: Likewise.
11591         * lib/linebuffer.h: Likewise.
11592         * lib/locale.in.h: Likewise.
11593         * lib/logl.c: Likewise.
11594         * lib/long-options.c: Likewise.
11595         * lib/long-options.h: Likewise.
11596         * lib/lstat.c: Likewise.
11597         * lib/lstat.h: Likewise.
11598         * lib/math.in.h: Likewise.
11599         * lib/mbchar.c: Likewise.
11600         * lib/mbchar.h: Likewise.
11601         * lib/mbfile.h: Likewise.
11602         * lib/mbiter.h: Likewise.
11603         * lib/mbscasecmp.c: Likewise.
11604         * lib/mbscasestr.c: Likewise.
11605         * lib/mbschr.c: Likewise.
11606         * lib/mbscspn.c: Likewise.
11607         * lib/mbslen.c: Likewise.
11608         * lib/mbsncasecmp.c: Likewise.
11609         * lib/mbsnlen.c: Likewise.
11610         * lib/mbspbrk.c: Likewise.
11611         * lib/mbspcasecmp.c: Likewise.
11612         * lib/mbsrchr.c: Likewise.
11613         * lib/mbssep.c: Likewise.
11614         * lib/mbsspn.c: Likewise.
11615         * lib/mbsstr.c: Likewise.
11616         * lib/mbstok_r.c: Likewise.
11617         * lib/mbswidth.c: Likewise.
11618         * lib/mbswidth.h: Likewise.
11619         * lib/mbuiter.h: Likewise.
11620         * lib/memcasecmp.c: Likewise.
11621         * lib/memcasecmp.h: Likewise.
11622         * lib/memchr.c: Likewise.
11623         * lib/memcmp.c: Likewise.
11624         * lib/memcoll.c: Likewise.
11625         * lib/memcoll.h: Likewise.
11626         * lib/memcpy.c: Likewise.
11627         * lib/memrchr.c: Likewise.
11628         * lib/mkancesdirs.c: Likewise.
11629         * lib/mkdir-p.c: Likewise.
11630         * lib/mkdir-p.h: Likewise.
11631         * lib/mkdir.c: Likewise.
11632         * lib/mkdirat.c: Likewise.
11633         * lib/mkdtemp.c: Likewise.
11634         * lib/mkstemp-safer.c: Likewise.
11635         * lib/mkstemp.c: Likewise.
11636         * lib/modechange.c: Likewise.
11637         * lib/modechange.h: Likewise.
11638         * lib/mountlist.c: Likewise.
11639         * lib/mountlist.h: Likewise.
11640         * lib/mpsort.c: Likewise.
11641         * lib/nanosleep.c: Likewise.
11642         * lib/obstack.c: Likewise.
11643         * lib/obstack.h: Likewise.
11644         * lib/open-safer.c: Likewise.
11645         * lib/open.c: Likewise.
11646         * lib/openat-die.c: Likewise.
11647         * lib/openat-priv.h: Likewise.
11648         * lib/openat-proc.c: Likewise.
11649         * lib/openat.c: Likewise.
11650         * lib/openat.h: Likewise.
11651         * lib/pagealign_alloc.c: Likewise.
11652         * lib/pagealign_alloc.h: Likewise.
11653         * lib/physmem.c: Likewise.
11654         * lib/physmem.h: Likewise.
11655         * lib/pipe-safer.c: Likewise.
11656         * lib/pipe.c: Likewise.
11657         * lib/pipe.h: Likewise.
11658         * lib/posixtm.c: Likewise.
11659         * lib/posixtm.h: Likewise.
11660         * lib/posixver.c: Likewise.
11661         * lib/printf-frexp.c: Likewise.
11662         * lib/printf-frexp.h: Likewise.
11663         * lib/printf-frexpl.c: Likewise.
11664         * lib/printf-frexpl.h: Likewise.
11665         * lib/printf.c: Likewise.
11666         * lib/progname.c: Likewise.
11667         * lib/progname.h: Likewise.
11668         * lib/progreloc.c: Likewise.
11669         * lib/putenv.c: Likewise.
11670         * lib/quote.c: Likewise.
11671         * lib/quote.h: Likewise.
11672         * lib/quotearg.c: Likewise.
11673         * lib/quotearg.h: Likewise.
11674         * lib/raise.c: Likewise.
11675         * lib/readline.c: Likewise.
11676         * lib/readline.h: Likewise.
11677         * lib/readlink.c: Likewise.
11678         * lib/readtokens.c: Likewise.
11679         * lib/readtokens.h: Likewise.
11680         * lib/readtokens0.c: Likewise.
11681         * lib/readtokens0.h: Likewise.
11682         * lib/readutmp.c: Likewise.
11683         * lib/readutmp.h: Likewise.
11684         * lib/realloc.c: Likewise.
11685         * lib/relocwrapper.c: Likewise.
11686         * lib/rename-dest-slash.c: Likewise.
11687         * lib/rename.c: Likewise.
11688         * lib/rmdir.c: Likewise.
11689         * lib/rpmatch.c: Likewise.
11690         * lib/safe-read.c: Likewise.
11691         * lib/safe-read.h: Likewise.
11692         * lib/safe-write.c: Likewise.
11693         * lib/safe-write.h: Likewise.
11694         * lib/same-inode.h: Likewise.
11695         * lib/same.c: Likewise.
11696         * lib/same.h: Likewise.
11697         * lib/save-cwd.c: Likewise.
11698         * lib/save-cwd.h: Likewise.
11699         * lib/savedir.c: Likewise.
11700         * lib/savedir.h: Likewise.
11701         * lib/savewd.c: Likewise.
11702         * lib/savewd.h: Likewise.
11703         * lib/search.in.h: Likewise.
11704         * lib/setenv.c: Likewise.
11705         * lib/setenv.h: Likewise.
11706         * lib/settime.c: Likewise.
11707         * lib/sh-quote.c: Likewise.
11708         * lib/sh-quote.h: Likewise.
11709         * lib/sig2str.c: Likewise.
11710         * lib/sig2str.h: Likewise.
11711         * lib/signal.in.h: Likewise.
11712         * lib/signbitd.c: Likewise.
11713         * lib/signbitf.c: Likewise.
11714         * lib/signbitl.c: Likewise.
11715         * lib/sigprocmask.c: Likewise.
11716         * lib/sincosl.c: Likewise.
11717         * lib/sleep.c: Likewise.
11718         * lib/sprintf.c: Likewise.
11719         * lib/sqrtl.c: Likewise.
11720         * lib/stat-time.h: Likewise.
11721         * lib/stdio--.h: Likewise.
11722         * lib/stdio-safer.h: Likewise.
11723         * lib/stdlib--.h: Likewise.
11724         * lib/stdlib-safer.h: Likewise.
11725         * lib/stdlib.in.h: Likewise.
11726         * lib/stpcpy.c: Likewise.
11727         * lib/stpncpy.c: Likewise.
11728         * lib/strchrnul.c: Likewise.
11729         * lib/strcspn.c: Likewise.
11730         * lib/strerror.c: Likewise.
11731         * lib/strftime.c: Likewise.
11732         * lib/strftime.h: Likewise.
11733         * lib/striconveh.c: Likewise.
11734         * lib/striconveh.h: Likewise.
11735         * lib/striconveha.c: Likewise.
11736         * lib/striconveha.h: Likewise.
11737         * lib/stripslash.c: Likewise.
11738         * lib/strnlen1.c: Likewise.
11739         * lib/strnlen1.h: Likewise.
11740         * lib/strtod.c: Likewise.
11741         * lib/strtoimax.c: Likewise.
11742         * lib/strtok_r.c: Likewise.
11743         * lib/strtol.c: Likewise.
11744         * lib/strtoll.c: Likewise.
11745         * lib/strtoul.c: Likewise.
11746         * lib/strtoull.c: Likewise.
11747         * lib/sysexits.in.h: Likewise.
11748         * lib/tempname.c: Likewise.
11749         * lib/tempname.h: Likewise.
11750         * lib/timespec.h: Likewise.
11751         * lib/tls.c: Likewise.
11752         * lib/tls.h: Likewise.
11753         * lib/tmpdir.c: Likewise.
11754         * lib/tmpdir.h: Likewise.
11755         * lib/tmpfile-safer.c: Likewise.
11756         * lib/tmpfile.c: Likewise.
11757         * lib/trigl.c: Likewise.
11758         * lib/trigl.h: Likewise.
11759         * lib/trim.c: Likewise.
11760         * lib/trim.h: Likewise.
11761         * lib/trunc.c: Likewise.
11762         * lib/truncf.c: Likewise.
11763         * lib/truncl.c: Likewise.
11764         * lib/tsearch.c: Likewise.
11765         * lib/unicodeio.c: Likewise.
11766         * lib/unicodeio.h: Likewise.
11767         * lib/unistd--.h: Likewise.
11768         * lib/unistd-safer.h: Likewise.
11769         * lib/unistdio/ulc-fprintf.c: Likewise.
11770         * lib/unistdio/ulc-vfprintf.c: Likewise.
11771         * lib/unlinkdir.c: Likewise.
11772         * lib/unlinkdir.h: Likewise.
11773         * lib/unlocked-io.h: Likewise.
11774         * lib/unsetenv.c: Likewise.
11775         * lib/userspec.c: Likewise.
11776         * lib/utime.c: Likewise.
11777         * lib/utimecmp.c: Likewise.
11778         * lib/utimecmp.h: Likewise.
11779         * lib/utimens.c: Likewise.
11780         * lib/verify.h: Likewise.
11781         * lib/verror.c: Likewise.
11782         * lib/verror.h: Likewise.
11783         * lib/version-etc-fsf.c: Likewise.
11784         * lib/version-etc.c: Likewise.
11785         * lib/version-etc.h: Likewise.
11786         * lib/vfprintf.c: Likewise.
11787         * lib/vprintf.c: Likewise.
11788         * lib/vsprintf.c: Likewise.
11789         * lib/w32spawn.h: Likewise.
11790         * lib/wait-process.c: Likewise.
11791         * lib/wait-process.h: Likewise.
11792         * lib/wcwidth.c: Likewise.
11793         * lib/write-any-file.c: Likewise.
11794         * lib/xalloc-die.c: Likewise.
11795         * lib/xalloc.h: Likewise.
11796         * lib/xasprintf.c: Likewise.
11797         * lib/xgetcwd.c: Likewise.
11798         * lib/xgetcwd.h: Likewise.
11799         * lib/xgetdomainname.c: Likewise.
11800         * lib/xgetdomainname.h: Likewise.
11801         * lib/xgethostname.c: Likewise.
11802         * lib/xmalloc.c: Likewise.
11803         * lib/xmalloca.c: Likewise.
11804         * lib/xmalloca.h: Likewise.
11805         * lib/xmemcoll.c: Likewise.
11806         * lib/xnanosleep.c: Likewise.
11807         * lib/xreadlink.c: Likewise.
11808         * lib/xreadlink.h: Likewise.
11809         * lib/xsetenv.c: Likewise.
11810         * lib/xsetenv.h: Likewise.
11811         * lib/xstriconv.c: Likewise.
11812         * lib/xstriconv.h: Likewise.
11813         * lib/xstrndup.c: Likewise.
11814         * lib/xstrndup.h: Likewise.
11815         * lib/xstrtod.c: Likewise.
11816         * lib/xstrtod.h: Likewise.
11817         * lib/xstrtol-error.c: Likewise.
11818         * lib/xstrtol.c: Likewise.
11819         * lib/xstrtol.h: Likewise.
11820         * lib/xtime.h: Likewise.
11821         * lib/xvasprintf.c: Likewise.
11822         * lib/xvasprintf.h: Likewise.
11823         * lib/yesno.c: Likewise.
11824         * lib/yesno.h: Likewise.
11825         * posix-modules: Likewise.
11826         * tests/test-alloca-opt.c: Likewise.
11827         * tests/test-arcfour.c: Likewise.
11828         * tests/test-arctwo.c: Likewise.
11829         * tests/test-argmatch.c: Likewise.
11830         * tests/test-argp-2.sh: Likewise.
11831         * tests/test-argp.c: Likewise.
11832         * tests/test-arpa_inet.c: Likewise.
11833         * tests/test-array_list.c: Likewise.
11834         * tests/test-array_oset.c: Likewise.
11835         * tests/test-atexit.c: Likewise.
11836         * tests/test-avltree_list.c: Likewise.
11837         * tests/test-avltree_oset.c: Likewise.
11838         * tests/test-avltreehash_list.c: Likewise.
11839         * tests/test-base64.c: Likewise.
11840         * tests/test-binary-io.c: Likewise.
11841         * tests/test-byteswap.c: Likewise.
11842         * tests/test-c-ctype.c: Likewise.
11843         * tests/test-c-strcasecmp.c: Likewise.
11844         * tests/test-c-strcasestr.c: Likewise.
11845         * tests/test-c-strncasecmp.c: Likewise.
11846         * tests/test-c-strstr.c: Likewise.
11847         * tests/test-canonicalize-lgpl.c: Likewise.
11848         * tests/test-canonicalize.c: Likewise.
11849         * tests/test-carray_list.c: Likewise.
11850         * tests/test-ceilf.c: Likewise.
11851         * tests/test-ceill.c: Likewise.
11852         * tests/test-count-one-bits.c: Likewise.
11853         * tests/test-crc.c: Likewise.
11854         * tests/test-dirname.c: Likewise.
11855         * tests/test-fbufmode.c: Likewise.
11856         * tests/test-fcntl.c: Likewise.
11857         * tests/test-fflush.c: Likewise.
11858         * tests/test-floorf.c: Likewise.
11859         * tests/test-floorl.c: Likewise.
11860         * tests/test-fopen.c: Likewise.
11861         * tests/test-fprintf-posix.c: Likewise.
11862         * tests/test-fprintf-posix.h: Likewise.
11863         * tests/test-fpurge.c: Likewise.
11864         * tests/test-freadable.c: Likewise.
11865         * tests/test-freadahead.c: Likewise.
11866         * tests/test-freading.c: Likewise.
11867         * tests/test-freopen.c: Likewise.
11868         * tests/test-frexp.c: Likewise.
11869         * tests/test-frexpl.c: Likewise.
11870         * tests/test-fseek.c: Likewise.
11871         * tests/test-fseeko.c: Likewise.
11872         * tests/test-fseterr.c: Likewise.
11873         * tests/test-fstrcmp.c: Likewise.
11874         * tests/test-ftell.c: Likewise.
11875         * tests/test-ftello.c: Likewise.
11876         * tests/test-fwritable.c: Likewise.
11877         * tests/test-fwriting.c: Likewise.
11878         * tests/test-getaddrinfo.c: Likewise.
11879         * tests/test-getpass.c: Likewise.
11880         * tests/test-gettimeofday.c: Likewise.
11881         * tests/test-hmac-md5.c: Likewise.
11882         * tests/test-hmac-sha1.c: Likewise.
11883         * tests/test-iconv.c: Likewise.
11884         * tests/test-iconvme.c: Likewise.
11885         * tests/test-inttypes.c: Likewise.
11886         * tests/test-isnan.c: Likewise.
11887         * tests/test-isnanf.c: Likewise.
11888         * tests/test-isnanl-nolibm.c: Likewise.
11889         * tests/test-isnanl.c: Likewise.
11890         * tests/test-isnanl.h: Likewise.
11891         * tests/test-ldexpl.c: Likewise.
11892         * tests/test-linked_list.c: Likewise.
11893         * tests/test-linkedhash_list.c: Likewise.
11894         * tests/test-locale.c: Likewise.
11895         * tests/test-localename.c: Likewise.
11896         * tests/test-lock.c: Likewise.
11897         * tests/test-lseek.c: Likewise.
11898         * tests/test-malloca.c: Likewise.
11899         * tests/test-math.c: Likewise.
11900         * tests/test-mbscasecmp.c: Likewise.
11901         * tests/test-mbscasestr1.c: Likewise.
11902         * tests/test-mbscasestr2.c: Likewise.
11903         * tests/test-mbscasestr3.c: Likewise.
11904         * tests/test-mbscasestr4.c: Likewise.
11905         * tests/test-mbschr.c: Likewise.
11906         * tests/test-mbscspn.c: Likewise.
11907         * tests/test-mbsncasecmp.c: Likewise.
11908         * tests/test-mbspbrk.c: Likewise.
11909         * tests/test-mbspcasecmp.c: Likewise.
11910         * tests/test-mbsrchr.c: Likewise.
11911         * tests/test-mbsspn.c: Likewise.
11912         * tests/test-mbsstr1.c: Likewise.
11913         * tests/test-mbsstr2.c: Likewise.
11914         * tests/test-mbsstr3.c: Likewise.
11915         * tests/test-md5.c: Likewise.
11916         * tests/test-memmem.c: Likewise.
11917         * tests/test-netinet_in.c: Likewise.
11918         * tests/test-open.c: Likewise.
11919         * tests/test-printf-frexp.c: Likewise.
11920         * tests/test-printf-frexpl.c: Likewise.
11921         * tests/test-printf-posix.c: Likewise.
11922         * tests/test-printf-posix.h: Likewise.
11923         * tests/test-rbtree_list.c: Likewise.
11924         * tests/test-rbtree_oset.c: Likewise.
11925         * tests/test-rbtreehash_list.c: Likewise.
11926         * tests/test-read-file.c: Likewise.
11927         * tests/test-rijndael.c: Likewise.
11928         * tests/test-search.c: Likewise.
11929         * tests/test-signbit.c: Likewise.
11930         * tests/test-sleep.c: Likewise.
11931         * tests/test-snprintf-posix.c: Likewise.
11932         * tests/test-snprintf-posix.h: Likewise.
11933         * tests/test-snprintf.c: Likewise.
11934         * tests/test-sprintf-posix.c: Likewise.
11935         * tests/test-sprintf-posix.h: Likewise.
11936         * tests/test-stat-time.c: Likewise.
11937         * tests/test-stdbool.c: Likewise.
11938         * tests/test-stdint.c: Likewise.
11939         * tests/test-stdio.c: Likewise.
11940         * tests/test-stdlib.c: Likewise.
11941         * tests/test-stpncpy.c: Likewise.
11942         * tests/test-strcasestr.c: Likewise.
11943         * tests/test-striconv.c: Likewise.
11944         * tests/test-striconveh.c: Likewise.
11945         * tests/test-striconveha.c: Likewise.
11946         * tests/test-string.c: Likewise.
11947         * tests/test-sys_select.c: Likewise.
11948         * tests/test-sys_socket.c: Likewise.
11949         * tests/test-sys_stat.c: Likewise.
11950         * tests/test-sys_time.c: Likewise.
11951         * tests/test-sysexits.c: Likewise.
11952         * tests/test-time.c: Likewise.
11953         * tests/test-tls.c: Likewise.
11954         * tests/test-trunc.c: Likewise.
11955         * tests/test-truncf.c: Likewise.
11956         * tests/test-truncl.c: Likewise.
11957         * tests/test-unistd.c: Likewise.
11958         * tests/test-vasnprintf-posix.c: Likewise.
11959         * tests/test-vasnprintf-posix2.c: Likewise.
11960         * tests/test-vasnprintf.c: Likewise.
11961         * tests/test-vasprintf-posix.c: Likewise.
11962         * tests/test-vasprintf.c: Likewise.
11963         * tests/test-verify.c: Likewise.
11964         * tests/test-vfprintf-posix.c: Likewise.
11965         * tests/test-vprintf-posix.c: Likewise.
11966         * tests/test-vsnprintf-posix.c: Likewise.
11967         * tests/test-vsnprintf.c: Likewise.
11968         * tests/test-vsprintf-posix.c: Likewise.
11969         * tests/test-wchar.c: Likewise.
11970         * tests/test-wctype.c: Likewise.
11971         * tests/test-wcwidth.c: Likewise.
11972         * tests/test-xstrtol.c: Likewise.
11973         * tests/test-xvasprintf.c: Likewise.
11974         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
11975         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
11976         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
11977         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
11978         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
11979         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
11980         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
11981         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
11982         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
11983         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
11984         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
11985         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
11986         * tests/uniname/test-uninames.c: Likewise.
11987         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
11988         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
11989         * tests/unistdio/test-u16-printf1.h: Likewise.
11990         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
11991         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
11992         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
11993         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
11994         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
11995         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
11996         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
11997         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
11998         * tests/unistdio/test-u32-printf1.h: Likewise.
11999         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
12000         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
12001         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
12002         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
12003         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
12004         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
12005         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
12006         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
12007         * tests/unistdio/test-u8-printf1.h: Likewise.
12008         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
12009         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
12010         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
12011         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
12012         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
12013         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
12014         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
12015         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
12016         * tests/unistdio/test-ulc-printf1.h: Likewise.
12017         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
12018         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
12019         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
12020         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
12021         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
12022         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
12023         * tests/uniwidth/test-u16-strwidth.c: Likewise.
12024         * tests/uniwidth/test-u16-width.c: Likewise.
12025         * tests/uniwidth/test-u32-strwidth.c: Likewise.
12026         * tests/uniwidth/test-u32-width.c: Likewise.
12027         * tests/uniwidth/test-u8-strwidth.c: Likewise.
12028         * tests/uniwidth/test-u8-width.c: Likewise.
12029         * tests/uniwidth/test-uc_width.c: Likewise.
12030         * config/srclist-update: Likewise.
12031         (fixlicense): Update to GPLv3+.
12032
12033         Change copyright notice from LGPLv2.1+ to LGPLv3+.
12034         * tests/test-tsearch.c: Change copyright notice.
12035
12036         Change copyright notice from LGPLv2.0+ to LGPLv3+.
12037         * lib/c-strcaseeq.h: Change copyright notice.
12038         * lib/streq.h: Likewise.
12039         * lib/uniconv.h: Likewise.
12040         * lib/uniconv/u-conv-from-enc.h: Likewise.
12041         * lib/uniconv/u-conv-to-enc.h: Likewise.
12042         * lib/uniconv/u-strconv-from-enc.h: Likewise.
12043         * lib/uniconv/u-strconv-to-enc.h: Likewise.
12044         * lib/uniconv/u16-conv-from-enc.c: Likewise.
12045         * lib/uniconv/u16-conv-to-enc.c: Likewise.
12046         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
12047         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
12048         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
12049         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
12050         * lib/uniconv/u32-conv-from-enc.c: Likewise.
12051         * lib/uniconv/u32-conv-to-enc.c: Likewise.
12052         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
12053         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
12054         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
12055         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
12056         * lib/uniconv/u8-conv-from-enc.c: Likewise.
12057         * lib/uniconv/u8-conv-to-enc.c: Likewise.
12058         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
12059         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
12060         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
12061         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
12062         * lib/uniname.h: Likewise.
12063         * lib/uniname/uniname.c: Likewise.
12064         * lib/unistdio.h: Likewise.
12065         * lib/unistdio/u-asnprintf.h: Likewise.
12066         * lib/unistdio/u-asprintf.h: Likewise.
12067         * lib/unistdio/u-printf-args.c: Likewise.
12068         * lib/unistdio/u-printf-args.h: Likewise.
12069         * lib/unistdio/u-printf-parse.h: Likewise.
12070         * lib/unistdio/u-snprintf.h: Likewise.
12071         * lib/unistdio/u-sprintf.h: Likewise.
12072         * lib/unistdio/u-vasprintf.h: Likewise.
12073         * lib/unistdio/u-vsnprintf.h: Likewise.
12074         * lib/unistdio/u-vsprintf.h: Likewise.
12075         * lib/unistdio/u16-asnprintf.c: Likewise.
12076         * lib/unistdio/u16-asprintf.c: Likewise.
12077         * lib/unistdio/u16-printf-parse.c: Likewise.
12078         * lib/unistdio/u16-snprintf.c: Likewise.
12079         * lib/unistdio/u16-sprintf.c: Likewise.
12080         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
12081         * lib/unistdio/u16-u16-asprintf.c: Likewise.
12082         * lib/unistdio/u16-u16-snprintf.c: Likewise.
12083         * lib/unistdio/u16-u16-sprintf.c: Likewise.
12084         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
12085         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
12086         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
12087         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
12088         * lib/unistdio/u16-vasnprintf.c: Likewise.
12089         * lib/unistdio/u16-vasprintf.c: Likewise.
12090         * lib/unistdio/u16-vsnprintf.c: Likewise.
12091         * lib/unistdio/u16-vsprintf.c: Likewise.
12092         * lib/unistdio/u32-asnprintf.c: Likewise.
12093         * lib/unistdio/u32-asprintf.c: Likewise.
12094         * lib/unistdio/u32-printf-parse.c: Likewise.
12095         * lib/unistdio/u32-snprintf.c: Likewise.
12096         * lib/unistdio/u32-sprintf.c: Likewise.
12097         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
12098         * lib/unistdio/u32-u32-asprintf.c: Likewise.
12099         * lib/unistdio/u32-u32-snprintf.c: Likewise.
12100         * lib/unistdio/u32-u32-sprintf.c: Likewise.
12101         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
12102         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
12103         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
12104         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
12105         * lib/unistdio/u32-vasnprintf.c: Likewise.
12106         * lib/unistdio/u32-vasprintf.c: Likewise.
12107         * lib/unistdio/u32-vsnprintf.c: Likewise.
12108         * lib/unistdio/u32-vsprintf.c: Likewise.
12109         * lib/unistdio/u8-asnprintf.c: Likewise.
12110         * lib/unistdio/u8-asprintf.c: Likewise.
12111         * lib/unistdio/u8-printf-parse.c: Likewise.
12112         * lib/unistdio/u8-snprintf.c: Likewise.
12113         * lib/unistdio/u8-sprintf.c: Likewise.
12114         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
12115         * lib/unistdio/u8-u8-asprintf.c: Likewise.
12116         * lib/unistdio/u8-u8-snprintf.c: Likewise.
12117         * lib/unistdio/u8-u8-sprintf.c: Likewise.
12118         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
12119         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
12120         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
12121         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
12122         * lib/unistdio/u8-vasnprintf.c: Likewise.
12123         * lib/unistdio/u8-vasprintf.c: Likewise.
12124         * lib/unistdio/u8-vsnprintf.c: Likewise.
12125         * lib/unistdio/u8-vsprintf.c: Likewise.
12126         * lib/unistdio/ulc-asnprintf.c: Likewise.
12127         * lib/unistdio/ulc-asprintf.c: Likewise.
12128         * lib/unistdio/ulc-printf-parse.c: Likewise.
12129         * lib/unistdio/ulc-snprintf.c: Likewise.
12130         * lib/unistdio/ulc-sprintf.c: Likewise.
12131         * lib/unistdio/ulc-vasnprintf.c: Likewise.
12132         * lib/unistdio/ulc-vasprintf.c: Likewise.
12133         * lib/unistdio/ulc-vsnprintf.c: Likewise.
12134         * lib/unistdio/ulc-vsprintf.c: Likewise.
12135         * lib/unistr.h: Likewise.
12136         * lib/unistr/u-cpy-alloc.h: Likewise.
12137         * lib/unistr/u-cpy.h: Likewise.
12138         * lib/unistr/u-endswith.h: Likewise.
12139         * lib/unistr/u-move.h: Likewise.
12140         * lib/unistr/u-set.h: Likewise.
12141         * lib/unistr/u-startswith.h: Likewise.
12142         * lib/unistr/u-stpcpy.h: Likewise.
12143         * lib/unistr/u-stpncpy.h: Likewise.
12144         * lib/unistr/u-strcat.h: Likewise.
12145         * lib/unistr/u-strcpy.h: Likewise.
12146         * lib/unistr/u-strcspn.h: Likewise.
12147         * lib/unistr/u-strdup.h: Likewise.
12148         * lib/unistr/u-strlen.h: Likewise.
12149         * lib/unistr/u-strncat.h: Likewise.
12150         * lib/unistr/u-strncpy.h: Likewise.
12151         * lib/unistr/u-strnlen.h: Likewise.
12152         * lib/unistr/u-strpbrk.h: Likewise.
12153         * lib/unistr/u-strspn.h: Likewise.
12154         * lib/unistr/u-strstr.h: Likewise.
12155         * lib/unistr/u-strtok.h: Likewise.
12156         * lib/unistr/u16-check.c: Likewise.
12157         * lib/unistr/u16-chr.c: Likewise.
12158         * lib/unistr/u16-cmp.c: Likewise.
12159         * lib/unistr/u16-cpy-alloc.c: Likewise.
12160         * lib/unistr/u16-cpy.c: Likewise.
12161         * lib/unistr/u16-endswith.c: Likewise.
12162         * lib/unistr/u16-mblen.c: Likewise.
12163         * lib/unistr/u16-mbsnlen.c: Likewise.
12164         * lib/unistr/u16-mbtouc-aux.c: Likewise.
12165         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
12166         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
12167         * lib/unistr/u16-mbtouc.c: Likewise.
12168         * lib/unistr/u16-mbtoucr.c: Likewise.
12169         * lib/unistr/u16-move.c: Likewise.
12170         * lib/unistr/u16-next.c: Likewise.
12171         * lib/unistr/u16-prev.c: Likewise.
12172         * lib/unistr/u16-set.c: Likewise.
12173         * lib/unistr/u16-startswith.c: Likewise.
12174         * lib/unistr/u16-stpcpy.c: Likewise.
12175         * lib/unistr/u16-stpncpy.c: Likewise.
12176         * lib/unistr/u16-strcat.c: Likewise.
12177         * lib/unistr/u16-strchr.c: Likewise.
12178         * lib/unistr/u16-strcmp.c: Likewise.
12179         * lib/unistr/u16-strcpy.c: Likewise.
12180         * lib/unistr/u16-strcspn.c: Likewise.
12181         * lib/unistr/u16-strdup.c: Likewise.
12182         * lib/unistr/u16-strlen.c: Likewise.
12183         * lib/unistr/u16-strmblen.c: Likewise.
12184         * lib/unistr/u16-strmbtouc.c: Likewise.
12185         * lib/unistr/u16-strncat.c: Likewise.
12186         * lib/unistr/u16-strncmp.c: Likewise.
12187         * lib/unistr/u16-strncpy.c: Likewise.
12188         * lib/unistr/u16-strnlen.c: Likewise.
12189         * lib/unistr/u16-strpbrk.c: Likewise.
12190         * lib/unistr/u16-strrchr.c: Likewise.
12191         * lib/unistr/u16-strspn.c: Likewise.
12192         * lib/unistr/u16-strstr.c: Likewise.
12193         * lib/unistr/u16-strtok.c: Likewise.
12194         * lib/unistr/u16-to-u32.c: Likewise.
12195         * lib/unistr/u16-to-u8.c: Likewise.
12196         * lib/unistr/u16-uctomb-aux.c: Likewise.
12197         * lib/unistr/u16-uctomb.c: Likewise.
12198         * lib/unistr/u32-check.c: Likewise.
12199         * lib/unistr/u32-chr.c: Likewise.
12200         * lib/unistr/u32-cmp.c: Likewise.
12201         * lib/unistr/u32-cpy-alloc.c: Likewise.
12202         * lib/unistr/u32-cpy.c: Likewise.
12203         * lib/unistr/u32-endswith.c: Likewise.
12204         * lib/unistr/u32-mblen.c: Likewise.
12205         * lib/unistr/u32-mbsnlen.c: Likewise.
12206         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
12207         * lib/unistr/u32-mbtouc.c: Likewise.
12208         * lib/unistr/u32-mbtoucr.c: Likewise.
12209         * lib/unistr/u32-move.c: Likewise.
12210         * lib/unistr/u32-next.c: Likewise.
12211         * lib/unistr/u32-prev.c: Likewise.
12212         * lib/unistr/u32-set.c: Likewise.
12213         * lib/unistr/u32-startswith.c: Likewise.
12214         * lib/unistr/u32-stpcpy.c: Likewise.
12215         * lib/unistr/u32-stpncpy.c: Likewise.
12216         * lib/unistr/u32-strcat.c: Likewise.
12217         * lib/unistr/u32-strchr.c: Likewise.
12218         * lib/unistr/u32-strcmp.c: Likewise.
12219         * lib/unistr/u32-strcpy.c: Likewise.
12220         * lib/unistr/u32-strcspn.c: Likewise.
12221         * lib/unistr/u32-strdup.c: Likewise.
12222         * lib/unistr/u32-strlen.c: Likewise.
12223         * lib/unistr/u32-strmblen.c: Likewise.
12224         * lib/unistr/u32-strmbtouc.c: Likewise.
12225         * lib/unistr/u32-strncat.c: Likewise.
12226         * lib/unistr/u32-strncmp.c: Likewise.
12227         * lib/unistr/u32-strncpy.c: Likewise.
12228         * lib/unistr/u32-strnlen.c: Likewise.
12229         * lib/unistr/u32-strpbrk.c: Likewise.
12230         * lib/unistr/u32-strrchr.c: Likewise.
12231         * lib/unistr/u32-strspn.c: Likewise.
12232         * lib/unistr/u32-strstr.c: Likewise.
12233         * lib/unistr/u32-strtok.c: Likewise.
12234         * lib/unistr/u32-to-u16.c: Likewise.
12235         * lib/unistr/u32-to-u8.c: Likewise.
12236         * lib/unistr/u32-uctomb.c: Likewise.
12237         * lib/unistr/u8-check.c: Likewise.
12238         * lib/unistr/u8-chr.c: Likewise.
12239         * lib/unistr/u8-cmp.c: Likewise.
12240         * lib/unistr/u8-cpy-alloc.c: Likewise.
12241         * lib/unistr/u8-cpy.c: Likewise.
12242         * lib/unistr/u8-endswith.c: Likewise.
12243         * lib/unistr/u8-mblen.c: Likewise.
12244         * lib/unistr/u8-mbsnlen.c: Likewise.
12245         * lib/unistr/u8-mbtouc-aux.c: Likewise.
12246         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
12247         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
12248         * lib/unistr/u8-mbtouc.c: Likewise.
12249         * lib/unistr/u8-mbtoucr.c: Likewise.
12250         * lib/unistr/u8-move.c: Likewise.
12251         * lib/unistr/u8-next.c: Likewise.
12252         * lib/unistr/u8-prev.c: Likewise.
12253         * lib/unistr/u8-set.c: Likewise.
12254         * lib/unistr/u8-startswith.c: Likewise.
12255         * lib/unistr/u8-stpcpy.c: Likewise.
12256         * lib/unistr/u8-stpncpy.c: Likewise.
12257         * lib/unistr/u8-strcat.c: Likewise.
12258         * lib/unistr/u8-strchr.c: Likewise.
12259         * lib/unistr/u8-strcmp.c: Likewise.
12260         * lib/unistr/u8-strcpy.c: Likewise.
12261         * lib/unistr/u8-strcspn.c: Likewise.
12262         * lib/unistr/u8-strdup.c: Likewise.
12263         * lib/unistr/u8-strlen.c: Likewise.
12264         * lib/unistr/u8-strmblen.c: Likewise.
12265         * lib/unistr/u8-strmbtouc.c: Likewise.
12266         * lib/unistr/u8-strncat.c: Likewise.
12267         * lib/unistr/u8-strncmp.c: Likewise.
12268         * lib/unistr/u8-strncpy.c: Likewise.
12269         * lib/unistr/u8-strnlen.c: Likewise.
12270         * lib/unistr/u8-strpbrk.c: Likewise.
12271         * lib/unistr/u8-strrchr.c: Likewise.
12272         * lib/unistr/u8-strspn.c: Likewise.
12273         * lib/unistr/u8-strstr.c: Likewise.
12274         * lib/unistr/u8-strtok.c: Likewise.
12275         * lib/unistr/u8-to-u16.c: Likewise.
12276         * lib/unistr/u8-to-u32.c: Likewise.
12277         * lib/unistr/u8-uctomb-aux.c: Likewise.
12278         * lib/unistr/u8-uctomb.c: Likewise.
12279         * lib/unitypes.h: Likewise.
12280         * lib/uniwidth.h: Likewise.
12281         * lib/uniwidth/cjk.h: Likewise.
12282         * lib/uniwidth/u16-strwidth.c: Likewise.
12283         * lib/uniwidth/u16-width.c: Likewise.
12284         * lib/uniwidth/u32-strwidth.c: Likewise.
12285         * lib/uniwidth/u32-width.c: Likewise.
12286         * lib/uniwidth/u8-strwidth.c: Likewise.
12287         * lib/uniwidth/u8-width.c: Likewise.
12288         * lib/uniwidth/width.c: Likewise.
12289
12290 2007-10-07  Bruno Haible  <bruno@clisp.org>
12291
12292         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
12293         The file is still under LGPL (see modules/inttypes).
12294
12295 2007-10-06  Bruno Haible  <bruno@clisp.org>
12296
12297         * modules/trunc (Dependencies): Add 'extensions'.
12298         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
12299         Reported by Ben Pfaff <blp@gnu.org>.
12300
12301 2007-10-06  Bruno Haible  <bruno@clisp.org>
12302
12303         * modules/freopen-tests: New file.
12304         * tests/test-freopen.c: New file.
12305
12306         * modules/fopen-tests: New file.
12307         * tests/test-fopen.c: New file.
12308
12309         * modules/fopen: New file.
12310         * lib/fopen.c: New file.
12311         * m4/fopen.m4: New file.
12312         * modules/freopen: New file.
12313         * lib/freopen.c: New file.
12314         * m4/freopen.m4: New file.
12315         * lib/stdio.in.h (fopen, freopen): New declarations.
12316         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
12317         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
12318         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
12319         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
12320         * doc/functions/fopen.texi: Mention the 'fopen' module.
12321         * doc/functions/freopen.texi: Mention the 'freopen' module.
12322
12323 2007-10-06  Bruno Haible  <bruno@clisp.org>
12324
12325         * modules/open-tests: New file.
12326         * tests/test-open.c: New file.
12327
12328         * modules/open: New file.
12329         * lib/open.c: New file.
12330         * m4/open.m4: New file.
12331         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
12332         lib/open.c does.
12333         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
12334         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
12335         macros.
12336         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
12337         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
12338         REPLACE_OPEN.
12339         * doc/functions/open.texi: Mention the 'open' module.
12340
12341 2007-10-04  Bruno Haible  <bruno@clisp.org>
12342
12343         * modules/ceill-tests: New file.
12344         * tests/test-ceill.c: New file.
12345
12346         * modules/ceill: New file.
12347         * lib/ceill.c: Replace entire file.
12348         * m4/ceill.m4: New file.
12349         * lib/math.in.h (ceill): Replace declaration.
12350         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
12351         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
12352         * doc/functions/ceill.texi: Mention the 'ceill' module.
12353         * modules/mathl (Files): Remove lib/ceill.c.
12354         (Depends-on): Add ceill.
12355
12356 2007-10-04  Bruno Haible  <bruno@clisp.org>
12357
12358         * modules/ceilf-tests: New file.
12359         * tests/test-ceilf.c: New file.
12360
12361         * modules/ceilf: New file.
12362         * lib/ceil.c: New file.
12363         * lib/ceilf.c: New file.
12364         * m4/ceilf.m4: New file.
12365         * lib/math.in.h (ceilf): New declaration.
12366         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
12367         HAVE_DECL_CEILF.
12368         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
12369         HAVE_DECL_CEILF.
12370         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
12371
12372 2007-10-04  Bruno Haible  <bruno@clisp.org>
12373
12374         * modules/floorl-tests: New file.
12375         * tests/test-floorl.c: New file.
12376
12377         * modules/floorl: New file.
12378         * lib/floorl.c: Replace entire file.
12379         * m4/floorl.m4: New file.
12380         * lib/math.in.h (floorl): Replace declaration.
12381         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
12382         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
12383         * doc/functions/floorl.texi: Mention the 'floorl' module.
12384         * modules/mathl (Files): Remove lib/floorl.c.
12385         (Depends-on): Add floorl.
12386
12387 2007-10-04  Bruno Haible  <bruno@clisp.org>
12388
12389         * modules/floorf-tests: New file.
12390         * tests/test-floorf.c: New file.
12391
12392         * modules/floorf: New file.
12393         * lib/floor.c: New file.
12394         * lib/floorf.c: New file.
12395         * m4/floorf.m4: New file.
12396         * lib/math.in.h (floorf): New declaration.
12397         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
12398         HAVE_DECL_FLOORF.
12399         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
12400         HAVE_DECL_FLOORF.
12401         * doc/functions/floorf.texi: Mention the 'floorf' module.
12402
12403 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
12404             Bruno Haible  <bruno@clisp.org>
12405
12406         Advertise for the Git server instead of the CVS server.
12407         * doc/gnulib-intro.texi (Steady Development): Mention the Git
12408         repository instead of the CVS one.
12409         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
12410         about all VCS systems generically.
12411         * doc/gnulib.texi (Introduction): Capitalize `Git'.
12412
12413 2007-10-04  Bruno Haible  <bruno@clisp.org>
12414
12415         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
12416         means.
12417         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
12418
12419 2007-10-04  Bruno Haible  <bruno@clisp.org>
12420
12421         * modules/truncl-tests: New file.
12422         * tests/test-truncl.c: New file.
12423
12424         * modules/truncl: New file.
12425         * lib/truncl.c: New file.
12426         * m4/truncl.m4: New file.
12427         * lib/math.in.h (truncl): New declaration.
12428         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
12429         HAVE_DECL_TRUNCL.
12430         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
12431         HAVE_DECL_TRUNCL.
12432         * doc/functions/truncl.texi: Mention the 'truncl' module.
12433
12434 2007-10-04  Bruno Haible  <bruno@clisp.org>
12435
12436         * modules/truncf-tests: New file.
12437         * tests/test-truncf.c: New file.
12438
12439         * modules/truncf: New file.
12440         * lib/trunc.c: Make paramerizable through USE_* macros.
12441         * lib/truncf.c: New file.
12442         * m4/truncf.m4: New file.
12443         * lib/math.in.h (truncf): New declaration.
12444         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
12445         HAVE_DECL_TRUNCF.
12446         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
12447         HAVE_DECL_TRUNCF.
12448         * doc/functions/truncf.texi: Mention the 'truncf' module.
12449
12450 2007-10-03  Bruno Haible  <bruno@clisp.org>
12451
12452         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
12453         augmentation also for tests modules.
12454         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
12455         * modules/atexit-tests (Makefile.am): Likewise.
12456         * modules/binary-io-tests (Makefile.am): Likewise.
12457         * modules/c-strcase-tests (Makefile.am): Likewise.
12458         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
12459         * modules/canonicalize-tests (Makefile.am): Likewise.
12460         * modules/closein-tests (Makefile.am): Likewise.
12461         * modules/fprintf-posix-tests (Makefile.am): Likewise.
12462         * modules/freadahead-tests (Makefile.am): Likewise.
12463         * modules/fseek-tests (Makefile.am): Likewise.
12464         * modules/fseeko-tests (Makefile.am): Likewise.
12465         * modules/ftell-tests (Makefile.am): Likewise.
12466         * modules/ftello-tests (Makefile.am): Likewise.
12467         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
12468         * modules/isnanl-tests (Makefile.am): Likewise.
12469         * modules/lseek-tests (Makefile.am): Likewise.
12470         * modules/mbscasecmp-tests (Makefile.am): Likewise.
12471         * modules/mbscasestr-tests (Makefile.am): Likewise.
12472         * modules/mbschr-tests (Makefile.am): Likewise.
12473         * modules/mbscspn-tests (Makefile.am): Likewise.
12474         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
12475         * modules/mbspbrk-tests (Makefile.am): Likewise.
12476         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
12477         * modules/mbsrchr-tests (Makefile.am): Likewise.
12478         * modules/mbsspn-tests (Makefile.am): Likewise.
12479         * modules/mbsstr-tests (Makefile.am): Likewise.
12480         * modules/printf-posix-tests (Makefile.am): Likewise.
12481         * modules/snprintf-posix-tests (Makefile.am): Likewise.
12482         * modules/sprintf-posix-tests (Makefile.am): Likewise.
12483         * modules/tsearch-tests (Makefile.am): Likewise.
12484         * modules/uniname/uniname-tests (Makefile.am): Likewise.
12485         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
12486         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
12487         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
12488         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
12489         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
12490         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
12491         * modules/vprintf-posix-tests (Makefile.am): Likewise.
12492         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
12493         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
12494         * modules/xstrtoimax-tests (Makefile.am): Likewise.
12495         * modules/xstrtol-tests (Makefile.am): Likewise.
12496         * modules/xstrtoumax-tests (Makefile.am): Likewise.
12497         * modules/yesno-tests (Makefile.am): Likewise.
12498
12499 2007-10-03  Bruno Haible  <bruno@clisp.org>
12500
12501         * modules/trunc-tests: New file.
12502         * tests/test-trunc.c: New file.
12503
12504         * modules/trunc: New file.
12505         * lib/trunc.c: New file.
12506         * m4/trunc.m4: New file.
12507         * lib/math.in.h (trunc): New declaration.
12508         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
12509         HAVE_DECL_TRUNC.
12510         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
12511         HAVE_DECL_TRUNC.
12512         * doc/functions/trunc.texi: Mention the 'trunc' module.
12513
12514 2007-10-03  Bruno Haible  <bruno@clisp.org>
12515
12516         * tests/test-fpending.c: New file, mostly copied
12517         from coreutils/lib/t-fpending.c.
12518         * modules/fpending-tests: New file.
12519
12520 2007-10-03  Bruno Haible  <bruno@clisp.org>
12521
12522         Port the stdio extensions to QNX (untested).
12523         * lib/fseterr.c (fseterr): Add support for QNX.
12524         * lib/fbufmode.c (fbufmode): Likewise.
12525         * lib/freadable.c (freadable): Likewise.
12526         * lib/fwritable.c (fwritable): Likewise.
12527         * lib/freading.c (freading): Likewise.
12528         * lib/fwriting.c (fwriting): Likewise.
12529         * lib/freadahead.c (freadahed): Likewise.
12530         * lib/fpurge.c (fpurge): Likewise.
12531         * lib/fseeko.c (rpl_fseeko): Likewise.
12532
12533 2007-10-03  Bruno Haible  <bruno@clisp.org>
12534             Jim Meyering  <jim@meyering.net>
12535             Eric Blake  <ebb9@byu.net>
12536
12537         * doc/relocatable.texi: Use @command instead of @program.
12538
12539 2007-10-02  Jim Meyering  <jim@meyering.net>
12540
12541         Perform one more "_.h" -> ".in.h" substitution.
12542         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
12543         instead of unistd_.h here, too.
12544
12545 2007-10-01  Bruno Haible  <bruno@clisp.org>
12546
12547         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
12548         Needed for the alloca-opt module.
12549
12550 2007-09-30  Bruno Haible  <bruno@clisp.org>
12551
12552         * lib/alloca.in.h: Renamed from lib/alloca_.h.
12553         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
12554         alloca_.h.
12555         * lib/argz.in.h: Renamed from lib/argz_.h.
12556         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
12557         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
12558         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
12559         byteswap_.h.
12560         * lib/dirent.in.h: Renamed from lib/dirent_.h.
12561         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
12562         dirent_.h.
12563         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
12564         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
12565         fcntl_.h.
12566         * lib/float.in.h: Renamed from lib/float_.h.
12567         * modules/float (Files, Makefile.am): Use float.in.h instead of
12568         float_.h.
12569         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
12570         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
12571         fnmatch_.h.
12572         * lib/getopt.in.h: Renamed from lib/getopt_.h.
12573         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
12574         getopt_.h.
12575         * lib/glob.in.h: Renamed from lib/glob_.h.
12576         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
12577         * lib/iconv.in.h: Renamed from lib/iconv_.h.
12578         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
12579         iconv_.h.
12580         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
12581         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
12582         inttypes_.h.
12583         * lib/locale.in.h: Renamed from lib/locale_.h.
12584         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
12585         locale_.h.
12586         * lib/math.in.h: Renamed from lib/math_.h.
12587         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
12588         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
12589         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
12590         of netinet_in_.h. Add dependency.
12591         * lib/poll.in.h: Renamed from lib/poll_.h.
12592         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
12593         * lib/search.in.h: Renamed from lib/search_.h.
12594         * modules/search (Files, Makefile.am): Use search.in.h instead of
12595         search_.h.
12596         * lib/signal.in.h: Renamed from lib/signal_.h.
12597         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
12598         _signal.h.
12599         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
12600         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
12601         stdbool_.h.
12602         * lib/stdint.in.h: Renamed from lib/stdint_.h.
12603         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
12604         stdint_.h.
12605         * lib/stdio.in.h: Renamed from lib/stdio_.h.
12606         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
12607         stdio_.h.
12608         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
12609         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
12610         stdlib_.h.
12611         * lib/string.in.h: Renamed from lib/string_.h.
12612         * modules/string (Files, Makefile.am): Use string.in.h instead of
12613         string_.h.
12614         * doc/gnulib-tool.texi (Initial import): Update.
12615         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
12616         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
12617         of sys_select_.h. Add dependency.
12618         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
12619         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
12620         of sys_socket_.h.
12621         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
12622         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
12623         sys_stat_.h.
12624         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
12625         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
12626         sys_time_.h.
12627         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
12628         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
12629         sysexits_.h.
12630         * lib/time.in.h: Renamed from lib/time_.h.
12631         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
12632         * lib/unistd.in.h: Renamed from lib/unistd_.h.
12633         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
12634         unistd_.h.
12635         * lib/wchar.in.h: Renamed from lib/wchar_.h.
12636         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
12637         wchar_.h.
12638         * lib/wctype.in.h: Renamed from lib/wctype_.h.
12639         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
12640         wctype_.h.
12641         * build-aux/bootstrap (slurp): Update.
12642         * lib/.cppi-disable: Update.
12643
12644 2007-09-30  Bruno Haible  <bruno@clisp.org>
12645
12646         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
12647         Needed on BeOS.
12648
12649 2007-09-30  Bruno Haible  <bruno@clisp.org>
12650
12651         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
12652
12653 2007-09-29  Bruno Haible  <bruno@clisp.org>
12654
12655         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
12656
12657 2007-09-29  Bruno Haible  <bruno@clisp.org>
12658
12659         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
12660         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
12661         * build-aux/install-reloc: Compile also areadlink.c.
12662         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
12663
12664 2007-09-29  Bruno Haible  <bruno@clisp.org>
12665
12666         * gnulib-tool (func_emit_initmacro_done): Indentation.
12667
12668 2007-09-29  Bruno Haible  <bruno@clisp.org>
12669
12670         * README: Add CVS checkout update instructions.
12671         Info from Bob Proulx <bob@proulx.com>.
12672
12673 2007-09-28  Eric Blake  <ebb9@byu.net>
12674
12675         Provide move-if-change.
12676         * build-aux/move-if-change: New file, based on best practice
12677         rather than any canonical upstream location.
12678
12679 2007-09-28  Jim Meyering  <jim@meyering.net>
12680
12681         Fix canonicalize loop-detection corner case.
12682         Do not attempt to stat the symlink values stored via seen_triple.
12683         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
12684         on linux-2.6.18, (but not 2.6.22).
12685         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
12686         triple_compare.  The former compares dev,ino,filename, while the latter
12687         would actually stat dirname(filename) when dev and ino were equal.
12688         * lib/hash-triple.c: Install <string.h>.
12689         (STREQ): Define.
12690         (triple_compare_ino_str): New function.
12691         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
12692
12693 2007-09-28  Eric Blake  <ebb9@byu.net>
12694
12695         Enforce that AC_REPLACE_FUNCS files exist.
12696         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
12697         override check for typos.
12698
12699         Fix test-closein on Solaris 10.
12700         * tests/test-closein.c (main): Don't assume stdin can be inherited
12701         closed on all systems.
12702         * tests/test-closein.sh: Likewise.
12703         Reported by Piotr Tarnowski.
12704
12705 2007-09-28  Jim Meyering  <jim@meyering.net>
12706
12707         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
12708
12709 2007-09-27  Jim Meyering  <jim@meyering.net>
12710
12711         canonicalize: Avoid a false-positive cycle failure.
12712         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
12713         Sort.  Remove cycle-check.
12714         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
12715         not cycle-check.h.
12716         (seen_triple): New function.
12717         (canonicalize_filename_mode): Use it instead of cycle-check.
12718         * tests/test-canonicalize.c: Add a test for this bug.
12719         * tests/test-canonicalize.sh: Set up and run the test.
12720
12721         New module, file-set, from coreutils.
12722         * modules/file-set: Define it.
12723         * lib/file-set.c, lib/file-set.h: Implement.
12724
12725         New module, hash-triple, from coreutils.
12726         * modules/hash-triple: Define it.
12727         * lib/hash-triple.c, lib/hash-triple.h: Implement.
12728
12729 2007-09-25  Eric Blake  <ebb9@byu.net>
12730
12731         Fix strerror on Interix.
12732         * lib/string_.h (strerror): Declare replacement.
12733         * doc/functions/strerror.texi (strerror): Document the Interix
12734         shortcoming.
12735         * modules/string (Makefile.am): Support new hooks.
12736         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
12737         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
12738         gl_FUNC_STRERROR_SEPARATE.
12739         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
12740         * lib/strerror.c (rpl_strerror): Provide replacement.
12741         * modules/strerror (Depends-on): Add string.
12742         (configure.ac): Detect use of module.
12743         * tests/test-strerror.c: New file.
12744         * modules/strerror-tests: New test module.
12745         * modules/argp (Depends-on): Add strerror.
12746         * modules/error (Depends-on): Likewise.
12747         Reported by Martin Koeppe.
12748
12749 2007-09-24  Bruno Haible  <bruno@clisp.org>
12750
12751         * README: Update git instructions.
12752
12753 2007-09-24  Eric Blake  <ebb9@byu.net>
12754
12755         Revert fpending breakage from 2007-09-08.
12756         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
12757         __fpending.c.
12758
12759 2007-09-24  Jim Meyering  <jim@meyering.net>
12760
12761         filenamecat.c: Add a test.
12762         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
12763         showing how the function works when DIR is the empty string.
12764
12765 2007-09-21  Simon Josefsson  <simon@josefsson.org>
12766
12767         * tests/test-canonicalize.sh: Turn on executable bit.
12768
12769 2007-09-19  Eric Blake  <ebb9@byu.net>
12770
12771         * README: Update CVS instructions.
12772
12773 2007-09-18  Bruno Haible  <bruno@clisp.org>
12774
12775         * modules/areadlink: New file.
12776         * lib/areadlink.h (areadlink): New declaration.
12777         * lib/areadlink.c: New file, based on lib/xreadlink.c.
12778
12779 2007-09-17  Jim Meyering  <jim@meyering.net>
12780
12781         * lib/savewd.c (ESTALE) [!defined]: Define.
12782         Reported to be required on Interix by Martin Koeppe.
12783
12784 2007-09-17  Bruno Haible  <bruno@clisp.org>
12785
12786         * gnulib-tool (func_version): Use $version.
12787
12788 2007-09-16  Bruno Haible  <bruno@clisp.org>
12789
12790         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
12791         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
12792         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
12793         Reported by Greg Schafer <gschafer@zip.com.au>.
12794
12795 2007-09-15  Bruno Haible  <bruno@clisp.org>
12796
12797         * gnulib-tool (sed): Try a little harder to make bash understand the
12798         alias.
12799         Reported by Bruce Korb <bruce.korb@gmail.com>.
12800
12801 2007-09-13  Eric Blake  <ebb9@byu.net>
12802
12803         * ChangeLog: Remove conflict markers.
12804
12805 2007-09-13  Simon Josefsson  <simon@josefsson.org>
12806
12807         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
12808         Reported by Bruno Haible <bruno@clisp.org>.
12809
12810 2007-09-12  Bruno Haible  <bruno@clisp.org>
12811
12812         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
12813         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
12814         is not defined.
12815
12816 2007-09-12  Eric Blake  <ebb9@byu.net>
12817
12818         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
12819         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
12820         Autoconf definition.
12821         * modules/euidaccess (Depends-on): Add extensions, for
12822         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
12823         * modules/fnmatch (Depends-on): Likewise.
12824         * modules/getaddrinfo (Depends-on): Likewise.
12825         * modules/getdelim (Depends-on): Likewise.
12826         * modules/getline (Depends-on): Likewise.
12827         * modules/getsubopt (Depends-on): Likewise.
12828         * modules/gettext (Depends-on): Likewise.
12829         * modules/group-member (Depends-on): Likewise.
12830         * modules/mbchar (Depends-on): Likewise.
12831         * modules/memmem (Depends-on): Likewise.
12832         * modules/mempcpy (Depends-on): Likewise.
12833         * modules/memrchr (Depends-on): Likewise.
12834         * modules/pagealign_alloc (Depends-on): Likewise.
12835         * modules/readutmp (Depends-on): Likewise.
12836         * modules/stpcpy (Depends-on): Likewise.
12837         * modules/stpncpy (Depends-on): Likewise.
12838         * modules/strchrnul (Depends-on): Likewise.
12839         * modules/strndup (Depends-on): Likewise.
12840         * modules/strsep (Depends-on): Likewise.
12841         * modules/strverscmp (Depends-on): Likewise.
12842         * modules/vasprintf (Depends-on): Likewise.
12843         * modules/wcwidth (Depends-on): Likewise.
12844         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
12845         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
12846         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
12847         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
12848         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
12849         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
12850         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
12851         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
12852         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
12853         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
12854         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
12855         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
12856         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
12857         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
12858         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
12859         * m4/readutmp.m4 (gl_READUTMP): Likewise.
12860         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
12861         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
12862         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
12863         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
12864         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
12865         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
12866         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
12867         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
12868         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
12869         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
12870         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
12871         so that lock.m4 can be used in gettext without extensions module.
12872
12873 2007-09-11  Bruno Haible  <bruno@clisp.org>
12874
12875         * m4/isc-posix.m4: Remove file.
12876         Suggested by Eric Blake.
12877
12878 2007-09-11  Eric Blake  <ebb9@byu.net>
12879
12880         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
12881
12882 2007-09-10  Bruno Haible  <bruno@clisp.org>
12883
12884         * posix-modules: Fix typo in error message.
12885         Reported by Matt <mkraai@beckman.com>.
12886
12887 2007-09-09  Bruno Haible  <bruno@clisp.org>
12888
12889         * doc/functions/getdelim.texi: Update list of platforms lacking the
12890         function.
12891         * doc/functions/getline.texi: Likewise.
12892
12893 2007-09-09  Jim Meyering  <jim@meyering.net>
12894
12895         * lib/hash.c (hash_initialize): Detect calloc failure.
12896         Reported by Bruno Haible.
12897
12898 2007-09-09  Bruno Haible  <bruno@clisp.org>
12899
12900         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
12901         malloc or realloc fails.
12902
12903 2007-09-09  Bruno Haible  <bruno@clisp.org>
12904
12905         * modules/getcwd (Depends-on): Add malloc-posix.
12906         * modules/glob (Depends-on): Likewise.
12907         * modules/putenv (Depends-on): Likewise.
12908         * modules/strdup (Depends-on): Likewise.
12909         * modules/getdelim (Depends-on): Add realloc-posix.
12910         * modules/read-file (Depends-on): Likewise.
12911
12912 2007-09-09  Bruno Haible  <bruno@clisp.org>
12913
12914         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
12915         (gl_FUNC_MALLOC_POSIX): Require it.
12916         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
12917         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
12918         * modules/realloc (Files): Add m4/malloc.m4.
12919         * modules/calloc (Files): Likewise.
12920
12921 2007-09-09  Bruno Haible  <bruno@clisp.org>
12922
12923         * modules/malloc-posix: New file.
12924         * modules/malloc (Depends-on): Add malloc-posix.
12925         * lib/malloc.c: Include errno.h.
12926         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
12927         and a POSIX-compatible malloc into a single function. Set ENOMEM
12928         when returning NULL.
12929         * m4/malloc.m4: New file.
12930         * doc/functions/malloc.texi: Mention the malloc-posix module.
12931         * lib/stdlib_.h (malloc): New declaration.
12932         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
12933         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
12934         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
12935         and HAVE_MALLOC_POSIX.
12936
12937 2007-09-09  Bruno Haible  <bruno@clisp.org>
12938
12939         * modules/realloc-posix: New file.
12940         * modules/realloc (Depends-on): Add realloc-posix.
12941         * lib/realloc.c: Include errno.h.
12942         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
12943         and a POSIX-compatible realloc into a single function. Set ENOMEM
12944         when returning NULL.
12945         * m4/realloc.m4: New file.
12946         * doc/functions/realloc.texi: Mention the realloc-posix module.
12947         * lib/stdlib_.h (realloc): New declaration.
12948         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
12949         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
12950         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
12951         and HAVE_REALLOC_POSIX.
12952
12953 2007-09-09  Bruno Haible  <bruno@clisp.org>
12954
12955         * modules/calloc-posix: New file.
12956         * modules/calloc (Depends-on): Add calloc-posix.
12957         * lib/calloc.c: Include errno.h.
12958         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
12959         and a POSIX-compatible calloc into a single function. Set ENOMEM
12960         when returning NULL.
12961         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
12962         * doc/functions/calloc.texi: Mention the calloc-posix module.
12963         * lib/stdlib_.h (calloc): New declaration.
12964         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
12965         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
12966         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
12967         and HAVE_CALLOC_POSIX.
12968
12969 2007-09-09  Bruno Haible  <bruno@clisp.org>
12970
12971         Allow for modules to show an arbitrary notice.
12972         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
12973         * gnulib-tool: New option --extract-notice.
12974         (func_usage): Document it.
12975         (sed_extract_prog): Update.
12976         (func_get_notice): New function.
12977         (func_modules_notice): New function.
12978         (func_import, func_create_testdir): Invoke it.
12979         Suggested by Jim Meyering.
12980
12981 2007-09-09  Bruno Haible  <bruno@clisp.org>
12982
12983         * gnulib-tool: New options --verbose, --quiet.
12984         (func_usage): Document them.
12985         (verbose): New variable.
12986         (func_execute_command): New function.
12987         (func_import): Don't show the module list and the file list if
12988         $verbose < 0.
12989         (func_create_testdir): Likewise. Use func_execute_command.
12990         (func_create_megatestdir): Use func_execute_command.
12991
12992 2007-09-08  Bruno Haible  <bruno@clisp.org>
12993
12994         * gnulib-tool (func_import): Prefer rsync over wget when available,
12995         for fetching the PO files.
12996
12997 2007-09-08  Bruno Haible  <bruno@clisp.org>
12998
12999         * posix-modules: New file. Portions copied from gnulib-tool.
13000         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
13001
13002 2007-09-08  Jim Meyering  <jim@meyering.net>
13003
13004         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
13005         * lib/fpending.h: Rename from __fpending.h.
13006         * lib/fpending.c: Rename from __fpending.c.
13007         Include "fpending.h", not "__fpending.h".
13008         * lib/__fpending.h, lib/__fpending.c: Remove files.
13009         * modules/fpending (Files): Reflect new file names.
13010         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
13011
13012 2007-09-08  Bruno Haible  <bruno@clisp.org>
13013
13014         * m4/inttypes-h.m4: Remove stub file.
13015
13016 2007-09-07  Simon Josefsson  <simon@josefsson.org>
13017
13018         * doc/headers/stdint.texi: Discuss #include_next issue.
13019
13020 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
13021
13022         * build-aux/bootstrap: Remove obsolete comment about wget --help.
13023
13024 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
13025
13026         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
13027         in variable name.
13028
13029 2007-09-03  Jim Meyering  <jim@meyering.net>
13030
13031         New module: git-version-gen.
13032         * modules/git-version-gen: New file.
13033
13034         Import changes from coreutils for bootstrap script.
13035
13036         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
13037
13038         bootstrap: uses rsync to download the .po files
13039         * build-aux/bootstrap (po_download_command_format): New global.
13040         (download_po_files): Use rsync.
13041         (update_po_files): Don't remove .po files after download,
13042         so future rsync runs can take advantage of the copies.
13043
13044         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
13045
13046         Solve the unnecessary-.po-file-regeneration problem once and for all.
13047         * build-aux/bootstrap (download_po_files): New function, renamed from
13048         get_translations.  Now, downloads, but doesn't update LINGUAS.
13049         (update_po_files): New function.
13050
13051         bootstrap: Ignore more.
13052         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
13053         uniwidth to e.g., lib/.gitignore.
13054         (slurp): Handle the sys_stat_.h -> sys mapping, too.
13055
13056         * build-aux/bootstrap: New setting: vc_ignore.
13057         (insert_sorted_if_absent): Create $file if absent.
13058         Adapt to new, possibly empty, list: $vc_ignore.
13059
13060         bootstrap: generate more ignorable names
13061         * build-aux/bootstrap (slurp): When generating ignorable names,
13062         also map .sin to .sed, .gperf to .c, and .y to .c.
13063
13064 2007-09-03  Jim Meyering  <jim@meyering.net>
13065
13066         * build-aux/git-version-gen: New file, from coreutils.  For details, see
13067         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
13068
13069 2007-09-02  Bruno Haible  <bruno@clisp.org>
13070
13071         Fix mis-recognition of 'mcs' on QNX 6.
13072         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
13073         output contains the string "Mono".
13074         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
13075         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
13076
13077 2007-09-01  Bruno Haible  <bruno@clisp.org>
13078
13079         Fix collision between uniwidth/* and linebreak modules.
13080         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
13081         u32_width): Remove declarations.
13082         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
13083         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
13084         streq3, streq2, streq1, streq0): Remove functions.
13085         (STREQ): Remove macro.
13086         (is_cjk_encoding): Remove function.
13087         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
13088         (uc_width, u8_width, u16_width, u32_width): Remove functions.
13089         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
13090         * NEWS: Document the change.
13091
13092 2007-09-01  Bruno Haible  <bruno@clisp.org>
13093
13094         * lib/streq.h: Add double-inclusion guard.
13095
13096 2007-09-01  Karl Berry  <karl@gnu.org>
13097
13098         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
13099
13100 2007-08-28  Jim Meyering  <jim@meyering.net>
13101
13102         Rename mreadlink_with_size to areadlink_with_size.
13103         * NEWS: Document the change.
13104         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
13105         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
13106         * lib/mreadlink.h: Rename this to...
13107         * lib/areadlink.h: ...this.
13108         * modules/mreadlink-with-size: Rename this to...
13109         * modules/areadlink-with-size: ...this.
13110         * lib/canonicalize.c: Reflect the renaming.
13111         * modules/canonicalize: Likewise.
13112
13113 2007-08-26  Bruno Haible  <bruno@clisp.org>
13114
13115         * gnulib-tool (func_import): When deciding which files to remove,
13116         consider also dangling symbolic links.
13117         Reported by Eric Blake.
13118
13119 2007-08-26  Bruno Haible  <bruno@clisp.org>
13120
13121         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
13122
13123 2007-08-23  Simon Josefsson  <simon@josefsson.org>
13124
13125         * lib/readline.c: Don't include getline.h, the prototype is now
13126         found in stdio.h.
13127
13128 2007-08-23  Jim Meyering  <jim@meyering.net>
13129
13130         Getdelim touchup.
13131         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
13132         around the funlockfile call, since funlockfile never sets errno.
13133         Don't set errno upon failed realloc.
13134
13135 2007-08-22  Eric Blake  <ebb9@byu.net>
13136
13137         Getline touchups.
13138         * lib/getdelim.c (getdelim): Revert regression that required *n to
13139         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
13140         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
13141         getdelim, rather than whether implementation is missing.
13142         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
13143         * lib/stdio_.h (getline): Also declare if replacement is
13144         required.
13145         * doc/functions/getdelim.texi: New file.
13146         * doc/functions/getline.texi: Likewise.
13147         * doc/gnulib.texi (Function Substitutes): Add new files.
13148         Reported by Bruno Haible.
13149
13150 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
13151
13152         * users.txt: Add Guile.
13153
13154 2007-08-22  Eric Blake  <ebb9@byu.net>
13155
13156         * tests/test-getdelim.c (main): Use remove, not unlink.
13157         * tests/test-getline.c (main): Likewise.
13158
13159         Move getline and getdelim into stdio.h, per POSIX 200x.
13160         * modules/getline (Files): Remove getline.h.
13161         (Depends-on): Add stdio.
13162         (configure.ac): Add module indicator.
13163         * modules/getdelim (Files): Remove getdelim.h.
13164         (Depends-on): Add stdio.
13165         (configure.ac): Add module indicator.
13166         * modules/stdio (Makefile.am): Work with new indicators.
13167         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
13168         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
13169         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
13170         * lib/getdelim.h: Delete.
13171         * lib/getline.h: Delete.
13172         * lib/stdio_.h (getdelim, getline): Declare.
13173         * modules/getdelim-tests: New module.
13174         * modules/getline-tests: Likewise.
13175         * tests/test-getdelim.c: New file.
13176         * tests/test-getline.c: Likewise.
13177         * NEWS: Document the change.
13178         * lib/getline.c: Update choice of header.
13179         * lib/csharpcomp.c: Likewise.
13180         * lib/getpass.c: Likewise.
13181         * lib/javacomp.c: Likewise.
13182         * lib/javaversion.c: Likewise.
13183         * lib/yesno.c: Likewise.
13184         * lib/getdelim.c: Likewise.
13185         (getdelim): Set errno on failure, and avoid memory leak.
13186
13187 2007-08-19  Bruno Haible  <bruno@clisp.org>
13188
13189         * modules/closein (Depends-on): Add freadahead.
13190         * lib/closein.c: Include freadahead.h.
13191         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
13192         is zero.
13193
13194 2007-08-19  Bruno Haible  <bruno@clisp.org>
13195
13196         * modules/freadahead-tests: New file.
13197         * tests/test-freadahead.sh: New file.
13198         * tests/test-freadahead.c: New file.
13199
13200         * modules/freadahead: New file.
13201         * lib/freadahead.h: New file.
13202         * lib/freadahead.c: New file.
13203         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
13204         fbufmode, fpurge, freadable, fwritable.
13205
13206 2007-08-19  Eric Blake  <ebb9@byu.net>
13207
13208         Test yesno in combination with closein.
13209         * lib/yesno.c (yesno): Document use of stdin.
13210         * modules/yesno-tests (Files): New module.
13211         * tests/test-yesno.c (main): New file.
13212         * tests/test-yesno.sh: Likewise.
13213
13214 2007-08-19  Bruno Haible  <bruno@clisp.org>
13215
13216         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
13217         * lib/fseeko.c (rpl_fseeko): Likewise.
13218         * lib/fseterr.c (fseterr): Likewise.
13219
13220 2007-08-19  Bruno Haible  <bruno@clisp.org>
13221
13222         * tests/test-lseek.c (main): Disable a test for BeOS.
13223         * doc/functions/lseek.texi: Document the BeOS bug.
13224
13225 2007-08-19  Bruno Haible  <bruno@clisp.org>
13226             Eric Blake  <ebb9@byu.net>
13227
13228         * lib/lseek.c: Include <sys/stat.h>.
13229         (rpl_lseek): Add workaround code also for Unix platforms.
13230         Needed for BeOS.
13231         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
13232         * doc/functions/lseek.texi: Document BeOS definiency.
13233
13234 2007-08-18  Bruno Haible  <bruno@clisp.org>
13235
13236         * modules/fstrcmp-tests: New file.
13237         * tests/test-fstrcmp.c: New file.
13238
13239 2007-08-18  Bruno Haible  <bruno@clisp.org>
13240
13241         * modules/fstrcmp: New file, from GNU gettext with modifications.
13242         * lib/fstrcmp.h: New file, from GNU gettext.
13243         * lib/fstrcmp.c: New file, from GNU gettext.
13244         * MODULES.html.sh (String handling): Add fstrcmp.
13245
13246 2007-08-18  Bruno Haible  <bruno@clisp.org>
13247
13248         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
13249         'bool'.
13250         (diag, compareseq): Remove const from the ctxt argument.
13251         (USE_HEURISTIC): Undefine at the end.
13252
13253 2007-08-18  Jim Meyering  <jim@meyering.net>
13254
13255         New file: lib/idcache.h
13256         * NEWS: Mention the addition.
13257         * modules/idcache (Files): Add lib/idcache.h
13258         * lib/idcache.c: Include "idcache.h".
13259         Don't include <sys/types.h>.
13260         Add a FIXME comment.
13261         Move file-scoped "static" declarations to the top.
13262         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
13263
13264 2007-08-17  Bruno Haible  <bruno@clisp.org>
13265         and Paul Eggert  <eggert@cs.ucla.edu>
13266
13267         * MODULES.html.sh: Add diffseq.
13268         * modules/diffseq: New file.
13269         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
13270         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
13271
13272 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
13273
13274         Import changes from coreutils for bootstrap script.
13275
13276         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
13277
13278         * build-aux/bootstrap (slurp): Work even in environments where
13279         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
13280         current code does not slurp files whose names start with ".", and
13281         this looks like it might be a troublesome area.
13282
13283         2007-07-11  Jim Meyering  <jim@meyering.net>
13284
13285         If there's a GPL vN copyright comment, require that N == 3.
13286
13287         2007-07-08  Jim Meyering  <jim@meyering.net>
13288
13289         Run the coreutils-specific code only if tests/Makefile.am.in exists.
13290         * build-aux/bootstrap (mam_template): Move definition out of loop.
13291
13292         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
13293
13294         * build-aux/bootstrap (symlink_to_dir): Rename function from
13295         symlink_to_gnulib.  Add a directory parameter.  Update all
13296         callers.
13297         (cp_mark_as_generated): Also check for -- and link to -- files in
13298         gl/.
13299
13300         2007-07-08  Jim Meyering  <jim@meyering.net>
13301
13302         Adapt to deeper hierarchy in gnulib.
13303         * build-aux/bootstrap (symlink_to_dir): If the destination
13304         directory doesn't exist, create it. This is required at least for
13305         "lib/uniwidth/cjk.h".
13306
13307         2007-05-15  Jim Meyering  <jim@meyering.net>
13308
13309         * build-aux/bootstrap: Now that generated Makefile.am files
13310         are no longer under version control, they must be created at
13311         bootstrap time.
13312
13313 2007-08-14  Ben Pfaff  <blp@gnu.org>
13314
13315         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
13316
13317 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
13318
13319         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
13320         given the changes below.
13321         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
13322         even on hosts that have padding bits beyond the supported 64.
13323
13324 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
13325
13326         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
13327         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
13328         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
13329         depends on it.
13330         (xstrtol_error): Remove.
13331         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
13332         but with a different signature.
13333         (ATTRIBUTE_NORETURN, __attribute__): New macros.
13334         * lib/xstrtol-error.c: Include exitfail.h.
13335         (xstrtol_fatal): New function, with a different signature from the
13336         old xstrtol_error, so that the caller need not worry about passing
13337         in an exit status, or about storage management of the option argument.
13338         (xstrtol_error): Now a static function.  Redo signature to
13339         implement xstrtol_fatal.  Output the correct number of hyphens in
13340         front of the option so that the caller need not worry about
13341         storage management.
13342         (N_): New macro.
13343         (_): Remove; not used now.
13344         * modules/xstrtol: Depend on getopt.
13345         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
13346         of old STRTOL_FATAL_ERROR macro.
13347         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
13348         of test program.
13349         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
13350         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
13351
13352 2007-08-08  Eric Blake  <ebb9@byu.net>
13353
13354         * lib/xstrtol-error.c: Add missing include.
13355
13356         Move xstrtol messages into gnulib domain, when --pobase is used.
13357         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
13358         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
13359         * modules/xstrtol (Files): Distribute new file.
13360         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
13361         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
13362         * tests/test-xstrtol.c: ...into new file.
13363         * tests/test-xstrtoul.c: Also test xstrtoul.
13364         * tests/test-xstrtoimax.c: Also test xstrtoimax.
13365         * tests/test-xstrtoumax.c: Also test xstrtoumax.
13366         * tests/test-xstrtol.sh: Drive the tests.
13367         * tests/test-xstrtoimax.sh: Likewise.
13368         * tests/test-xstrtoumax.sh: Likewise.
13369         * modules/xstrtol-tests: New module.
13370         * modules/xstrtoimax-tests: Likewise.
13371         * modules/xstrtoumax-tests: Likewise.
13372
13373 2007-08-08  Jim Meyering  <jim@meyering.net>
13374
13375         New function: mfile_name_concat.
13376         * lib/filenamecat.c (mfile_name_concat): New function, just like
13377         file_name_concat, but return NULL upon failure rather than exiting
13378         with a diagnostic.
13379         * lib/filenamecat.h: Declare it.
13380
13381 2007-08-07  Bruno Haible  <bruno@clisp.org>
13382
13383         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
13384         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
13385         warning from gcc.
13386         Reported by Eric Blake.
13387
13388 2007-08-07  Simon Josefsson  <simon@josefsson.org>
13389
13390         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
13391         * modules/crypto/arcfour (License): Likewise.
13392         * modules/crypto/des-tests (License): Likewise.
13393         * modules/crypto/gc-arctwo-tests (License): Likewise.
13394         * modules/crypto/gc-des-tests (License): Likewise.
13395         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
13396         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
13397         * modules/crypto/gc-md2-tests (License): Likewise.
13398         * modules/crypto/gc-md4-tests (License): Likewise.
13399         * modules/crypto/gc-md5-tests (License): Likewise.
13400         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
13401         * modules/crypto/gc-rijndael-tests (License): Likewise.
13402         * modules/crypto/gc-sha1-tests (License): Likewise.
13403         * modules/crypto/gc-tests (License): Likewise.
13404         * modules/crypto/hmac-md5 (License): Likewise.
13405         * modules/crypto/hmac-sha1 (License): Likewise.
13406         * modules/crypto/md2-tests (License): Likewise.
13407         * modules/crypto/md4-tests (License): Likewise.
13408         * modules/crypto/md5 (License): Likewise.
13409         * modules/crypto/rijndael (License): Likewise.
13410         * modules/crypto/sha1 (License): Likewise.
13411         * modules/memxor (License): Likewise.
13412
13413 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
13414         and Bruno Haible  <bruno@clisp.org>
13415
13416         * NEWS: Describe interface changes to human, xstrtol.
13417         * lib/human.h: Include <xstrtol.h>.
13418         (human_options): Return enum strtol_error, not int.  Remove
13419         bool arg; take int * instead.
13420         * lib/human.c: Don't include "gettext.h".
13421         (_): Remove; no longer used.
13422         Don't include <xstrtol.h>, since human.h does it.
13423         (human_options): Adjust to abovementioned interface changes.
13424         Do not report error to stderr; that's now the caller's
13425         responsibility.
13426         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
13427         interface change.
13428         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
13429         Str, Argument_type_string.  All uses changed.  Put " argument"
13430         in diagnostics to make them clearer.  Change wording of suffix
13431         message for clarity.
13432         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
13433         Argument_type_string.
13434         (STRTOL_FATAL_WARN): Remove; no longer used.
13435         * modules/human (Depends-on): Remove gettext-h.
13436
13437 2007-08-06  Simon Josefsson  <simon@josefsson.org>
13438
13439         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
13440
13441 2007-07-31  Bruno Haible  <bruno@clisp.org>
13442
13443         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
13444         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
13445         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
13446
13447 2007-07-31  Bruno Haible  <bruno@clisp.org>
13448
13449         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
13450         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
13451
13452 2007-07-30  Bruno Haible  <bruno@clisp.org>
13453
13454         * modules/base64 (License): Use the synonymous term "LGPLv2+".
13455         * modules/c-ctype (License): Likewise.
13456         * modules/c-strcase (License): Likewise.
13457         * modules/check-version (License): Likewise.
13458         * modules/iconv (License): Likewise.
13459         * modules/iconv_open (License): Likewise.
13460         * modules/read-file (License): Likewise.
13461         * modules/striconv (License): Likewise.
13462         * modules/strverscmp (License): Likewise.
13463         * modules/vasprintf (License): Likewise.
13464         * modules/crypto/des (License): Likewise.
13465         * modules/crypto/gc (License): Likewise.
13466         * modules/crypto/gc-arcfour (License): Likewise.
13467         * modules/crypto/gc-arctwo (License): Likewise.
13468         * modules/crypto/gc-des (License): Likewise.
13469         * modules/crypto/gc-hmac-md5 (License): Likewise.
13470         * modules/crypto/gc-hmac-sha1 (License): Likewise.
13471         * modules/crypto/gc-md2 (License): Likewise.
13472         * modules/crypto/gc-md4 (License): Likewise.
13473         * modules/crypto/gc-md5 (License): Likewise.
13474         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
13475         * modules/crypto/gc-random (License): Likewise.
13476         * modules/crypto/gc-rijndael (License): Likewise.
13477         * modules/crypto/gc-sha1 (License): Likewise.
13478         * modules/crypto/md2 (License): Likewise.
13479         * modules/crypto/md4 (License): Likewise.
13480
13481 2007-07-30  Jim Meyering  <jim@meyering.net>
13482
13483         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
13484         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
13485         it has valid stat data.  This bug would cause du not to count the
13486         sizes of inaccessible directories.
13487         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
13488         in <http://bugzilla.redhat.com/250077>.
13489
13490 2007-07-25  Peter O'Gorman  <peter@pogma.com>
13491             Bruno Haible  <bruno@clisp.org>
13492
13493         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
13494         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
13495         #include_next, gives a diagnostic about it, but reports no error in
13496         the exit code.
13497         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
13498
13499 2007-07-24  Ben Pfaff  <blp@gnu.org>
13500
13501         Improve name: "count-one-bits" is better than "popcount".
13502         * MODULES.html.sh: Update name.
13503         * lib/popcount.h: Renamed lib/count-one-bits.h.
13504         (popcount): Renamed count_one_bits.
13505         (popcountl): Renamed count_one_bits_l.
13506         (popcountll): Renamed count_one_bits_ll.
13507         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
13508         * modules/popcount: Renamed module/count-one-bits.
13509         * modules/popcount-tests: Renamed module/count-one-bits-tests.
13510         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
13511
13512 2007-07-23  Ben Pfaff  <blp@gnu.org>
13513
13514         * lib/popcount.h (popcount32): Reduce size of constants, to allow
13515         better code generation, and add U to large constants to avoid
13516         warnings, in non-GCC case.
13517         Suggested by Bruno Haible.
13518
13519 2007-07-23  Ben Pfaff  <blp@gnu.org>
13520
13521         * lib/popcount.h: Use verify_true instead of if...abort.
13522         * modules/popcount: Depend on verify module.
13523         Suggested by Jim Meyering.
13524
13525 2007-07-23  Bruno Haible  <bruno@clisp.org>
13526
13527         * gnulib-tool (func_import): Create a .cvsignore file also when the
13528         directory is not yet in CVS but the toplevel directory is. When
13529         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
13530         Reported by Karl Berry.
13531
13532 2007-07-22  Ben Pfaff  <blp@gnu.org>
13533
13534         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
13535         case.
13536         Suggested by Eric Blake.
13537
13538 2007-07-22  Ben Pfaff  <blp@gnu.org>
13539
13540         New module: popcount.
13541         * MODULES.html.sh: Add popcount.
13542         * modules/popcount: New file.
13543         * modules/popcount-tests: New file.
13544         * tests/test-popcount.c: New file.
13545         * lib/popcount.h: New file.
13546         * m4/popcount.m4: New file.
13547
13548 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
13549
13550         * build-aux/announce-gen: Update to GPLv3.
13551
13552         * build-aux/config.guess: Update from config.
13553
13554 2007-07-21  Bruno Haible  <bruno@clisp.org>
13555
13556         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
13557         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
13558
13559 2007-07-20  Jim Meyering  <jim@meyering.net>
13560
13561         * check-module: Diagnose a self-dependency.
13562
13563 2007-07-19  Bruno Haible  <bruno@clisp.org>
13564
13565         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
13566         empty.
13567         Reported by Eric Blake.
13568
13569 2007-07-18  Bruno Haible  <bruno@clisp.org>
13570
13571         * gnulib-tool: New options --po-base, --po-domain.
13572         (func_usage): Document them.
13573         (pobase, po_domain): New variables.
13574         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
13575         DEFAULT_TEXT_DOMAIN.
13576         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
13577         (func_import): Consider pobase and po_domain. Create a po/ directory.
13578         (func_create_testdir): Set pobase and po_domain to empty.
13579         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
13580         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
13581
13582 2007-07-18  Bruno Haible  <bruno@clisp.org>
13583
13584         * gnulib-tool (func_get_automake_snippet): Synthesize also an
13585         EXTRA_DIST augmentation for files in build-aux/.
13586
13587 2007-07-16  Bruno Haible  <bruno@clisp.org>
13588
13589         * modules/lseek (License): Use the synonymous term "LGPLv2+".
13590         * modules/getdelim (License): Likewise.
13591
13592 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
13593
13594         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
13595         * modules/d-type (License): Likewise.
13596         * modules/extensions (License): Likewise.
13597         * modules/fnmatch (License): Likewise.
13598         * modules/fseeko (License): Likewise.
13599         * modules/getaddrinfo (License): Likewise.
13600         * modules/getline (License): Likewise.
13601         * modules/getlogin_r (License): Likewise.
13602         * modules/getpass (License): Likewise.
13603         * modules/gettimeofday (License): Likewise.
13604         * modules/glob (License): Likewise.
13605         * modules/inet_ntop (License): Likewise.
13606         * modules/malloc (License): Likewise.
13607         * modules/malloca (License): Likewise.
13608         * modules/memmem (License): Likewise.
13609         * modules/mempcpy (License): Likewise.
13610         * modules/memset (License): Likewise.
13611         * modules/minmax (License): Likewise.
13612         * modules/mktime (License): Likewise.
13613         * modules/netinet_in (License): Likewise.
13614         * modules/pathmax (License): Likewise.
13615         * modules/poll (License): Likewise.
13616         * modules/regex (License): Likewise.
13617         * modules/snprintf (License): Likewise.
13618         * modules/stdbool (License): Likewise.
13619         * modules/stdint (License): Likewise.
13620         * modules/stdio (License): Likewise.
13621         * modules/strcase (License): Likewise.
13622         * modules/strcasestr (License): Likewise.
13623         * modules/strdup (License): Likewise.
13624         * modules/string (License): Likewise.
13625         * modules/strndup (License): Likewise.
13626         * modules/strnlen (License): Likewise.
13627         * modules/strpbrk (License): Likewise.
13628         * modules/strptime (License): Likewise.
13629         * modules/strsep (License): Likewise.
13630         * modules/sys_select (License): Likewise.
13631         * modules/sys_socket (License): Likewise.
13632         * modules/sys_stat (License): Likewise.
13633         * modules/sys_time (License): Likewise.
13634         * modules/time (License): Likewise.
13635         * modules/time_r (License): Likewise.
13636         * modules/timegm (License): Likewise.
13637         * modules/unistd (License): Likewise.
13638         * modules/vsnprintf (License): Likewise.
13639         * modules/wctype (License): Likewise.
13640
13641 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13642
13643         * modules/argz (License): LGPLv2+.
13644
13645 2007-07-15  Karl Berry  <karl@gnu.org>
13646
13647         * doc/gnulib.texi: revise node structure per new fdl.texi.
13648
13649 2007-07-14  Bruno Haible  <bruno@clisp.org>
13650
13651         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
13652         the output file.
13653         * lib/uniname/uninames.h: Regenerated.
13654
13655 2007-07-14  Karl Berry  <karl@gnu.org>
13656
13657         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
13658         omitting sectioning and index commands.
13659
13660 2007-07-13  Bruno Haible  <bruno@clisp.org>
13661
13662         New gnulib-tool option --more-symlinks.
13663         * gnulib-tool (func_usage): Document --more-symlinks.
13664         (do_copyrights): New variable.
13665         Recognize option --more-symlinks.
13666         (func_import): Don't add a copyright notice transform to
13667         sed_transform_lib_file if do_copyrights is empty.
13668
13669 2007-07-13  Bruno Haible  <bruno@clisp.org>
13670
13671         * lib/vasnprintf.c (decimal_point_char): Define also if
13672         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
13673         && !NEED_PRINTF_DIRECTIVE_A.
13674         Reported by Clemens Koller <clemens.koller@anagramm.de> via
13675         Gary V. Vaughan <gary@gnu.org>.
13676
13677 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
13678
13679         * lib/inttypes_.h: Undo previous change, since it was fixed
13680         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
13681
13682 2007-07-13  Bruno Haible  <bruno@clisp.org>
13683
13684         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
13685         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
13686
13687 2007-07-13  Jim Meyering  <jim@meyering.net>
13688
13689         df: Don't fail for Tru64's "file-on-file mount".
13690         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
13691         so we fall through and use statfs instead.  Details here:
13692         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
13693         Reported by Albert Chin.
13694
13695 2007-07-13  Bruno Haible  <bruno@clisp.org>
13696
13697         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
13698         * modules/configmake (License): Likewise.
13699         * modules/gettext (License): Likewise.
13700         * modules/gettext-h (License): Likewise.
13701         * modules/include_next (License): Likewise.
13702         * modules/link-warning (License): Likewise.
13703         * modules/localcharset (License): Likewise.
13704         * modules/localename (License): Likewise.
13705         * modules/lock (License): Likewise.
13706         * modules/relocatable-lib-lgpl (License): Likewise.
13707         * modules/size_max (License): Likewise.
13708         * modules/vasnprintf (License): Likewise.
13709         * modules/wchar (License): Likewise.
13710         * modules/xsize (License): Likewise.
13711
13712 2007-07-13  Bruno Haible  <bruno@clisp.org>
13713
13714         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
13715         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
13716
13717 2007-07-12  Bruno Haible  <bruno@clisp.org>
13718
13719         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
13720         in the modules files.
13721
13722 2007-07-11  Karl Berry  <karl@gnu.org>
13723
13724         * MODULES.html.sh (func_module): use
13725          sed -e '\|^'"${includefile}"'$|d'
13726          instead of /.../d, to avoid errors on $includefile's containing /.
13727
13728 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
13729
13730         * gnulib-tool (func_import): Avoid duplication of --avoid
13731         statements
13732         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
13733         names to `_' in variable names.
13734
13735 2007-07-10  Eric Blake  <ebb9@byu.net>
13736
13737         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
13738         * NEWS: Document this change.
13739
13740 2007-07-08  Bruno Haible  <bruno@clisp.org>
13741
13742         Update to Unicode 5.0.
13743         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
13744         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
13745         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
13746         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
13747         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
13748         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
13749         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
13750         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
13751         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
13752         U+10A3F, U+1D242..U+1D244.
13753         (nonspacing_table_ind): Update.
13754         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
13755         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
13756
13757 2007-07-08  Bruno Haible  <bruno@clisp.org>
13758
13759         Update to Unicode 5.0.
13760         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
13761         code transform. Extend the name index field of unicode_name_to_code and
13762         unicode_code_to_name from 16 to 24 bits.
13763         * lib/uniname/uniname.c (unicode_character_name,
13764         unicode_name_character): Add the range 0x12xxx to the code transform.
13765         * lib/uniname/uninames.h: Regenerated.
13766         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
13767
13768 2007-07-07  Bruno Haible  <bruno@clisp.org>
13769
13770         * modules/wcwidth-tests: New file.
13771         * tests/test-wcwidth.c: New file.
13772
13773         Work around MacOS X wcwidth() bug.
13774         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
13775         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
13776         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
13777         original wcwidth in non-UTF-8 locales.
13778         * modules/wcwidth (Depends-on): Add localcharset, streq,
13779         uniwidth/width.
13780         * doc/functions/wcwidth.texi: Update.
13781
13782 2007-07-07  Bruno Haible  <bruno@clisp.org>
13783
13784         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
13785         (wcwidth): New declaration.
13786         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
13787         macros.
13788         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
13789         here. Prepare for creating <wchar.h> unconditionally.
13790         * modules/wchar (Depends-on): Add link-warning.
13791         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
13792         REPLACE_WCWIDTH, and GL_LINK_WARNING.
13793         * lib/wcwidth.h: Remove file.
13794         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
13795         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
13796         * modules/wcwidth (Files): Remove lib/wcwidth.h.
13797         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
13798         (Include): Replace wcwidth.h with <wchar.h>.
13799         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
13800         * lib/mbchar.h: Don't include wcwidth.h.
13801         * lib/mbswidth.c: Likewise.
13802         * NEWS: Mention the change.
13803
13804 2007-07-07  Bruno Haible  <bruno@clisp.org>
13805
13806         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
13807         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
13808         definition with an external declaration.
13809         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
13810         defined as a function. Remove AC_C_INLINE requirement.
13811         * modules/wcwidth (Files): Add lib/wcwidth.c.
13812         (Makefile.am): Remove redundant statement.
13813
13814 2007-07-07  Bruno Haible  <bruno@clisp.org>
13815
13816         * MODULES.html.sh (Unicode string functions): Add the new modules.
13817
13818         * tests/uniwidth/test-u32-strwidth.c: New file.
13819         * modules/uniwidth/u32-strwidth-tests: New file.
13820
13821         * lib/uniwidth/u32-strwidth.c: New file.
13822         * modules/uniwidth/u32-strwidth: New file.
13823
13824         * tests/uniwidth/test-u16-strwidth.c: New file.
13825         * modules/uniwidth/u16-strwidth-tests: New file.
13826
13827         * lib/uniwidth/u16-strwidth.c: New file.
13828         * modules/uniwidth/u16-strwidth: New file.
13829
13830         * tests/uniwidth/test-u8-strwidth.c: New file.
13831         * modules/uniwidth/u8-strwidth-tests: New file.
13832
13833         * lib/uniwidth/u8-strwidth.c: New file.
13834         * modules/uniwidth/u8-strwidth: New file.
13835
13836         * tests/uniwidth/test-u32-width.c: New file.
13837         * modules/uniwidth/u32-width-tests: New file.
13838
13839         * lib/uniwidth/u32-width.c: New file.
13840         * modules/uniwidth/u32-width: New file.
13841
13842         * tests/uniwidth/test-u16-width.c: New file.
13843         * modules/uniwidth/u16-width-tests: New file.
13844
13845         * lib/uniwidth/u16-width.c: New file.
13846         * modules/uniwidth/u16-width: New file.
13847
13848         * tests/uniwidth/test-u8-width.c: New file.
13849         * modules/uniwidth/u8-width-tests: New file.
13850
13851         * lib/uniwidth/u8-width.c: New file.
13852         * modules/uniwidth/u8-width: New file.
13853
13854         * tests/uniwidth/test-uc_width.c: New file.
13855         * modules/uniwidth/width-tests: New file.
13856
13857         * lib/uniwidth/width.c: New file, from GNU libiconv.
13858         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
13859         * modules/uniwidth/width: New file.
13860
13861         * lib/uniwidth.h: New file, from GNU libiconv.
13862         * modules/uniwidth/base: New file.
13863
13864 2007-07-07  Bruno Haible  <bruno@clisp.org>
13865
13866         * lib/uniname.h: New file, from GNU gettext.
13867         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
13868         * lib/uniname/uninames.h: New file, from GNU gettext.
13869         * lib/uniname/uniname.c: New file, from GNU gettext.
13870         * tests/uniname/test-uninames.sh: New file.
13871         * tests/uniname/test-uninames.c: New file, from GNU gettext.
13872         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
13873         * modules/uniname/base: New file.
13874         * modules/uniname/uniname: New file.
13875         * modules/uniname/uniname-tests: New file.
13876         * MODULES.html.sh (Unicode string functions): Add the new modules.
13877
13878 2007-07-06  Bruno Haible  <bruno@clisp.org>
13879
13880         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
13881
13882 2007-07-06  Bruno Haible  <bruno@clisp.org>
13883
13884         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
13885         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
13886         includes <cygwin/sys_time.h> which includes <sys/select.h> which
13887         include <sys/time.h>.
13888         Reported by Eric Blake.
13889
13890 2007-07-06  Eric Blake  <ebb9@byu.net>
13891
13892         Fix testing canonicalize on cygwin.
13893         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
13894         Revert patch from 2007-06-19.
13895         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
13896         canonicalize module is also in use.
13897         * tests/test-canonicalize.c: New file.
13898         * tests/test-canonicalize.sh: Likewise.
13899         * modules/canonicalize-tests: Likewise.
13900
13901 2007-07-06  Jim Meyering  <jim@meyering.net>
13902
13903         * lib/getugroups.c (getugroups): Detect getgrent failure.
13904         Adjust comment to reflect reality: this function may return -1.
13905
13906 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
13907
13908         * build-aux/bootstrap (TP_URL,get_translations): Update to use
13909         the new TP address.
13910         (usage): Fix typo
13911         (gnulib_mk): New variable.
13912
13913 2007-07-05  Jim Meyering  <jim@meyering.net>
13914
13915         Don't let endgrent clobber errno, no matter how improbable.
13916         * lib/getugroups.c (getugroups): Save and restore errno around
13917         endgrent call.
13918
13919         Close the group DB even when failing with 2^31 or more members.
13920         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
13921
13922 2007-07-04  Jim Meyering  <jim@meyering.net>
13923
13924         * lib/getugroups.h: New file.
13925         * lib/getugroups.c: Include "getugroups.h".
13926         Remove uses of "register" keyword.
13927         Move local variable, "cp", down into scope where used.
13928         Give "username" parameter the "const" attribute.
13929         * modules/getugroups (Files): Add lib/getugroups.h
13930
13931 2007-07-04  Karl Berry  <karl@gnu.org>
13932
13933         * MODULES.html.sh (func_all_modules): Complete rename of
13934         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
13935
13936 2007-07-02  Bruno Haible  <bruno@clisp.org>
13937
13938         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
13939         mode, when inttypes.h comes from gnulib.
13940         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
13941
13942 2007-07-02  Simon Josefsson  <simon@josefsson.org>
13943
13944         * NEWS: Mention lgpl module name change.
13945
13946         * modules/lgpl-2.1: Renamed from lgpl.
13947
13948         * NEWS: Mention gpl module name change.
13949
13950         * modules/gpl-3.0: New file, based on gpl-2.0.
13951
13952         * modules/gpl-2.0: Renamed from gpl.
13953
13954         * modules/gpl: Fix filename, doc/gpl.texi is now found at
13955         doc/gpl-2.0.texi.
13956
13957 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
13958
13959         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
13960         #define __STDC_LIMIT_MACROS temporarily while including
13961         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
13962         Problem reported by Joel E. Denny in
13963         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
13964
13965 2007-07-01  Bruno Haible  <bruno@clisp.org>
13966
13967         * lib/unistdio.h: New file.
13968         * lib/unistdio/u-asnprintf.h: New file.
13969         * lib/unistdio/u-asprintf.h: New file.
13970         * lib/unistdio/u-printf-args.c: New file.
13971         * lib/unistdio/u-printf-args.h: New file.
13972         * lib/unistdio/u-printf-parse.h: New file.
13973         * lib/unistdio/u-snprintf.h: New file.
13974         * lib/unistdio/u-sprintf.h: New file.
13975         * lib/unistdio/u-vasprintf.h: New file.
13976         * lib/unistdio/u-vsnprintf.h: New file.
13977         * lib/unistdio/u-vsprintf.h: New file.
13978         * lib/unistdio/ulc-asnprintf.c: New file.
13979         * lib/unistdio/ulc-asprintf.c: New file.
13980         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
13981         * lib/unistdio/ulc-printf-parse.c: New file.
13982         * lib/unistdio/ulc-snprintf.c: New file.
13983         * lib/unistdio/ulc-sprintf.c: New file.
13984         * lib/unistdio/ulc-vasnprintf.c: New file.
13985         * lib/unistdio/ulc-vasprintf.c: New file.
13986         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
13987         * lib/unistdio/ulc-vsnprintf.c: New file.
13988         * lib/unistdio/ulc-vsprintf.c: New file.
13989         * lib/unistdio/u8-asnprintf.c: New file.
13990         * lib/unistdio/u8-asprintf.c: New file.
13991         * lib/unistdio/u8-printf-parse.c: New file.
13992         * lib/unistdio/u8-snprintf.c: New file.
13993         * lib/unistdio/u8-sprintf.c: New file.
13994         * lib/unistdio/u8-vasnprintf.c: New file.
13995         * lib/unistdio/u8-vasprintf.c: New file.
13996         * lib/unistdio/u8-vsnprintf.c: New file.
13997         * lib/unistdio/u8-vsprintf.c: New file.
13998         * lib/unistdio/u8-u8-asnprintf.c: New file.
13999         * lib/unistdio/u8-u8-asprintf.c: New file.
14000         * lib/unistdio/u8-u8-snprintf.c: New file.
14001         * lib/unistdio/u8-u8-sprintf.c: New file.
14002         * lib/unistdio/u8-u8-vasnprintf.c: New file.
14003         * lib/unistdio/u8-u8-vasprintf.c: New file.
14004         * lib/unistdio/u8-u8-vsnprintf.c: New file.
14005         * lib/unistdio/u8-u8-vsprintf.c: New file.
14006         * lib/unistdio/u16-asnprintf.c: New file.
14007         * lib/unistdio/u16-asprintf.c: New file.
14008         * lib/unistdio/u16-printf-parse.c: New file.
14009         * lib/unistdio/u16-snprintf.c: New file.
14010         * lib/unistdio/u16-sprintf.c: New file.
14011         * lib/unistdio/u16-vasnprintf.c: New file.
14012         * lib/unistdio/u16-vasprintf.c: New file.
14013         * lib/unistdio/u16-vsnprintf.c: New file.
14014         * lib/unistdio/u16-vsprintf.c: New file.
14015         * lib/unistdio/u16-u16-asnprintf.c: New file.
14016         * lib/unistdio/u16-u16-asprintf.c: New file.
14017         * lib/unistdio/u16-u16-snprintf.c: New file.
14018         * lib/unistdio/u16-u16-sprintf.c: New file.
14019         * lib/unistdio/u16-u16-vasnprintf.c: New file.
14020         * lib/unistdio/u16-u16-vasprintf.c: New file.
14021         * lib/unistdio/u16-u16-vsnprintf.c: New file.
14022         * lib/unistdio/u16-u16-vsprintf.c: New file.
14023         * lib/unistdio/u32-asnprintf.c: New file.
14024         * lib/unistdio/u32-asprintf.c: New file.
14025         * lib/unistdio/u32-printf-parse.c: New file.
14026         * lib/unistdio/u32-snprintf.c: New file.
14027         * lib/unistdio/u32-sprintf.c: New file.
14028         * lib/unistdio/u32-vasnprintf.c: New file.
14029         * lib/unistdio/u32-vasprintf.c: New file.
14030         * lib/unistdio/u32-vsnprintf.c: New file.
14031         * lib/unistdio/u32-vsprintf.c: New file.
14032         * lib/unistdio/u32-u32-asnprintf.c: New file.
14033         * lib/unistdio/u32-u32-asprintf.c: New file.
14034         * lib/unistdio/u32-u32-snprintf.c: New file.
14035         * lib/unistdio/u32-u32-sprintf.c: New file.
14036         * lib/unistdio/u32-u32-vasnprintf.c: New file.
14037         * lib/unistdio/u32-u32-vasprintf.c: New file.
14038         * lib/unistdio/u32-u32-vsnprintf.c: New file.
14039         * lib/unistdio/u32-u32-vsprintf.c: New file.
14040         * tests/unistdio/test-ulc-asnprintf1.c: New file.
14041         * tests/unistdio/test-ulc-asnprintf1.h: New file.
14042         * tests/unistdio/test-ulc-printf1.h: New file.
14043         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
14044         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
14045         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
14046         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
14047         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
14048         * tests/unistdio/test-ulc-vasprintf1.c: New file.
14049         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
14050         * tests/unistdio/test-ulc-vsprintf1.c: New file.
14051         * tests/unistdio/test-u8-asnprintf1.c: New file.
14052         * tests/unistdio/test-u8-asnprintf1.h: New file.
14053         * tests/unistdio/test-u8-printf1.h: New file.
14054         * tests/unistdio/test-u8-vasnprintf1.c: New file.
14055         * tests/unistdio/test-u8-vasnprintf2.c: New file.
14056         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
14057         * tests/unistdio/test-u8-vasnprintf3.c: New file.
14058         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
14059         * tests/unistdio/test-u8-vasprintf1.c: New file.
14060         * tests/unistdio/test-u8-vsnprintf1.c: New file.
14061         * tests/unistdio/test-u8-vsprintf1.c: New file.
14062         * tests/unistdio/test-u16-asnprintf1.c: New file.
14063         * tests/unistdio/test-u16-asnprintf1.h: New file.
14064         * tests/unistdio/test-u16-printf1.h: New file.
14065         * tests/unistdio/test-u16-vasnprintf1.c: New file.
14066         * tests/unistdio/test-u16-vasnprintf2.c: New file.
14067         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
14068         * tests/unistdio/test-u16-vasnprintf3.c: New file.
14069         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
14070         * tests/unistdio/test-u16-vasprintf1.c: New file.
14071         * tests/unistdio/test-u16-vsnprintf1.c: New file.
14072         * tests/unistdio/test-u16-vsprintf1.c: New file.
14073         * tests/unistdio/test-u32-asnprintf1.c: New file.
14074         * tests/unistdio/test-u32-asnprintf1.h: New file.
14075         * tests/unistdio/test-u32-printf1.h: New file.
14076         * tests/unistdio/test-u32-vasnprintf1.c: New file.
14077         * tests/unistdio/test-u32-vasnprintf2.c: New file.
14078         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
14079         * tests/unistdio/test-u32-vasnprintf3.c: New file.
14080         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
14081         * tests/unistdio/test-u32-vasprintf1.c: New file.
14082         * tests/unistdio/test-u32-vsnprintf1.c: New file.
14083         * tests/unistdio/test-u32-vsprintf1.c: New file.
14084         * modules/unistdio/base: New file.
14085         * modules/unistdio/u-printf-args: New file.
14086         * modules/unistdio/ulc-asnprintf: New file.
14087         * modules/unistdio/ulc-asprintf: New file.
14088         * modules/unistdio/ulc-fprintf: New file.
14089         * modules/unistdio/ulc-printf-parse: New file.
14090         * modules/unistdio/ulc-snprintf: New file.
14091         * modules/unistdio/ulc-sprintf: New file.
14092         * modules/unistdio/ulc-vasnprintf: New file.
14093         * modules/unistdio/ulc-vasprintf: New file.
14094         * modules/unistdio/ulc-vfprintf: New file.
14095         * modules/unistdio/ulc-vsnprintf: New file.
14096         * modules/unistdio/ulc-vsprintf: New file.
14097         * modules/unistdio/u8-asnprintf: New file.
14098         * modules/unistdio/u8-asprintf: New file.
14099         * modules/unistdio/u8-printf-parse: New file.
14100         * modules/unistdio/u8-snprintf: New file.
14101         * modules/unistdio/u8-sprintf: New file.
14102         * modules/unistdio/u8-vasnprintf: New file.
14103         * modules/unistdio/u8-vasprintf: New file.
14104         * modules/unistdio/u8-vsnprintf: New file.
14105         * modules/unistdio/u8-vsprintf: New file.
14106         * modules/unistdio/u8-u8-asnprintf: New file.
14107         * modules/unistdio/u8-u8-asprintf: New file.
14108         * modules/unistdio/u8-u8-snprintf: New file.
14109         * modules/unistdio/u8-u8-sprintf: New file.
14110         * modules/unistdio/u8-u8-vasnprintf: New file.
14111         * modules/unistdio/u8-u8-vasprintf: New file.
14112         * modules/unistdio/u8-u8-vsnprintf: New file.
14113         * modules/unistdio/u8-u8-vsprintf: New file.
14114         * modules/unistdio/u16-asnprintf: New file.
14115         * modules/unistdio/u16-asprintf: New file.
14116         * modules/unistdio/u16-printf-parse: New file.
14117         * modules/unistdio/u16-snprintf: New file.
14118         * modules/unistdio/u16-sprintf: New file.
14119         * modules/unistdio/u16-vasnprintf: New file.
14120         * modules/unistdio/u16-vasprintf: New file.
14121         * modules/unistdio/u16-vsnprintf: New file.
14122         * modules/unistdio/u16-vsprintf: New file.
14123         * modules/unistdio/u16-u16-asnprintf: New file.
14124         * modules/unistdio/u16-u16-asprintf: New file.
14125         * modules/unistdio/u16-u16-snprintf: New file.
14126         * modules/unistdio/u16-u16-sprintf: New file.
14127         * modules/unistdio/u16-u16-vasnprintf: New file.
14128         * modules/unistdio/u16-u16-vasprintf: New file.
14129         * modules/unistdio/u16-u16-vsnprintf: New file.
14130         * modules/unistdio/u16-u16-vsprintf: New file.
14131         * modules/unistdio/u32-asnprintf: New file.
14132         * modules/unistdio/u32-asprintf: New file.
14133         * modules/unistdio/u32-printf-parse: New file.
14134         * modules/unistdio/u32-snprintf: New file.
14135         * modules/unistdio/u32-sprintf: New file.
14136         * modules/unistdio/u32-vasnprintf: New file.
14137         * modules/unistdio/u32-vasprintf: New file.
14138         * modules/unistdio/u32-vsnprintf: New file.
14139         * modules/unistdio/u32-vsprintf: New file.
14140         * modules/unistdio/u32-u32-asnprintf: New file.
14141         * modules/unistdio/u32-u32-asprintf: New file.
14142         * modules/unistdio/u32-u32-snprintf: New file.
14143         * modules/unistdio/u32-u32-sprintf: New file.
14144         * modules/unistdio/u32-u32-vasnprintf: New file.
14145         * modules/unistdio/u32-u32-vasprintf: New file.
14146         * modules/unistdio/u32-u32-vsnprintf: New file.
14147         * modules/unistdio/u32-u32-vsprintf: New file.
14148         * modules/unistdio/ulc-asnprintf-tests: New file.
14149         * modules/unistdio/ulc-vasnprintf-tests: New file.
14150         * modules/unistdio/ulc-vasprintf-tests: New file.
14151         * modules/unistdio/ulc-vsnprintf-tests: New file.
14152         * modules/unistdio/ulc-vsprintf-tests: New file.
14153         * modules/unistdio/u8-asnprintf-tests: New file.
14154         * modules/unistdio/u8-vasnprintf-tests: New file.
14155         * modules/unistdio/u8-vasprintf-tests: New file.
14156         * modules/unistdio/u8-vsnprintf-tests: New file.
14157         * modules/unistdio/u8-vsprintf-tests: New file.
14158         * modules/unistdio/u16-asnprintf-tests: New file.
14159         * modules/unistdio/u16-vasnprintf-tests: New file.
14160         * modules/unistdio/u16-vasprintf-tests: New file.
14161         * modules/unistdio/u16-vsnprintf-tests: New file.
14162         * modules/unistdio/u16-vsprintf-tests: New file.
14163         * modules/unistdio/u32-asnprintf-tests: New file.
14164         * modules/unistdio/u32-vasnprintf-tests: New file.
14165         * modules/unistdio/u32-vasprintf-tests: New file.
14166         * modules/unistdio/u32-vsnprintf-tests: New file.
14167         * modules/unistdio/u32-vsprintf-tests: New file.
14168         * MODULES.html.sh (Unicode string functions): Add the new modules.
14169
14170 2007-07-01  Bruno Haible  <bruno@clisp.org>
14171
14172         * lib/sprintf.c (sprintf): Limit the available length estimation,
14173         to avoid address wraparound.
14174         * lib/vsprintf.c (vsprintf): Likewise.
14175         * modules/sprintf-posix (Dependencies): Add stdint.
14176         * modules/vsprintf-posix (Dependencies): Likewise.
14177
14178 2007-07-01  Bruno Haible  <bruno@clisp.org>
14179
14180         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
14181         Windows PATH as well. Conservative double-quoting. Comments.
14182
14183 2007-07-01  Bruno Haible  <bruno@clisp.org>
14184             Eric Blake  <ebb9@byu.net>
14185             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14186
14187         * gnulib-tool (self_abspathname): Fix algorithm to cope with
14188         empty components in $PATH, denoting '.'.
14189
14190 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14191
14192         * gnulib-tool: Fix indentation.
14193         (func_create_megatestdir): Likewise.
14194         Report by Bruno Haible.
14195
14196 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14197
14198         Sync from Automake.
14199         * build-aux/gnupload: Fix shell portability issues with for loops.
14200         Report by Karl Berry.
14201
14202 2007-06-29  Simon Josefsson  <simon@josefsson.org>
14203
14204         * build-aux/maint.mk (POURL): Use translationproject.org.
14205
14206 2007-06-27  Simon Josefsson  <simon@josefsson.org>
14207             Bruno Haible  <bruno@clisp.org>
14208
14209         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
14210         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
14211         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
14212         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
14213         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
14214
14215 2007-06-27  Bruno Haible  <bruno@clisp.org>
14216
14217         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
14218         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
14219
14220 2007-06-26  Karl Berry  <karl@gnu.org>
14221
14222         * MODULES.html.sh: remove xreadlink-with-size.
14223
14224 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
14225
14226         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
14227         method that I hope also handles the double-include problem noted
14228         by Bruno Haible in
14229         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
14230
14231 2007-06-23  Bruno Haible  <bruno@clisp.org>
14232
14233         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
14234         Don't let the 'mostlyclean' target fail if the last subdirectory could
14235         not be removed.
14236         Reported by Karl Berry.
14237
14238 2007-06-23  Bruno Haible  <bruno@clisp.org>
14239
14240         * gnulib-tool (echo): Add a speedier workaround for ksh.
14241         * tests/test-echo.sh: Likewise.
14242
14243 2007-06-23  Bruno Haible  <bruno@clisp.org>
14244
14245         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
14246         * tests/test-echo.sh: Likewise.
14247
14248 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14249
14250         * gnulib-tool (IFS): Initialize early, so we don't set it to
14251         empty later.
14252         (self_abspathname): Rewrite algorithm to set it, reindent.
14253         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
14254         (func_create_megatestdir): Merge some sed scripts.
14255
14256 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
14257
14258         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
14259         exposed by Sun Studio 11 cc on Solaris 8.
14260
14261 2007-06-22  Bruno Haible  <bruno@clisp.org>
14262
14263         * gnulib-tool (echo): Ensure the echo primitive does not interpret
14264         backslashes.
14265         * tests/test-echo.sh: New file.
14266
14267 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14268
14269         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
14270         simplify `sed_replace_build_aux' scripts, they are portable but
14271         echoing them with `echo' is not.
14272         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
14273
14274 2007-06-21  Karl Berry  <karl@gnu.org>
14275
14276         * config/srclist.txt: guess we can't handle the licenses via
14277         srclist at the moment.
14278
14279 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
14280
14281         * MODULES.html.sh: Add include_next.
14282         * modules/include_next: New file.
14283
14284 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
14285
14286         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
14287         INCLUDE_NEXT.
14288         (gl_CHECK_NEXT_HEADERS): New macro.
14289         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
14290         the obsolescent gl_ABSOLUTE_HEADER.
14291         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
14292         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
14293         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
14294         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
14295         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
14296         * m4/math_h.m4 (gl_MATH_H): Likewise.
14297         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
14298         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
14299         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
14300         * m4/stdint.m4 (gl_STDINT_H): Likewise.
14301         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
14302         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
14303         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
14304         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
14305         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
14306         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
14307         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
14308         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
14309         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
14310         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
14311         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
14312         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
14313         * m4/inttypes.m4 (gl_INTTYPES_H): Define
14314         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
14315         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
14316         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
14317         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
14318         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
14319         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
14320         * lib/float_.h: Likewise.
14321         * lib/inttypes_.h: Likewise.
14322         * lib/math_.h: Likewise.
14323         * lib/search_.h: Likewise.
14324         * lib/signal_.h: Likewise.
14325         * lib/stdint_.h: Likewise.
14326         * lib/stdio_.h: Likewise.
14327         * lib/stdlib_.h: Likewise.
14328         * lib/string_.h: Likewise.
14329         * lib/sys_stat_.h: Likewise.
14330         * lib/sys_time_.h: Likewise.
14331         * lib/time_.h: Likewise.
14332         * lib/unistd_.h: Likewise.
14333         * lib/wchar_.h: Likewise.
14334         * lib/wctype_.h: Likewise.
14335         * lib/dirent_.h: Likewise.
14336         * lib/iconv_.h: Likewise.
14337         * lib/locale_.h: Likewise.
14338         * lib/netinet_in_.h: Likewise.
14339         * lib/sys_select_.h: Likewise.
14340         * lib/sys_socket_.h: Likewise.
14341         * lib/sysexits_.h: Likewise.
14342         * modules/fcntl (Depends-on): Depend on include_next, not
14343         absolute_header.
14344         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
14345         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
14346         * modules/fchdir: Likewise.
14347         * modules/float: Likewise.
14348         * modules/iconv_open: Likewise.
14349         * modules/inttypes: Likewise.
14350         * modules/locale: Likewise.
14351         * modules/math: Likewise.
14352         * modules/netinet_in: Likewise.
14353         * modules/search: Likewise.
14354         * modules/signal: Likewise.
14355         * modules/stdint: Likewise.
14356         * modules/stdio: Likewise.
14357         * modules/stdlib: Likewise.
14358         * modules/string: Likewise.
14359         * modules/sys_select: Likewise.
14360         * modules/sys_socket: Likewise.
14361         * modules/sys_stat: Likewise.
14362         * modules/sys_time: Likewise.
14363         * modules/sysexits: Likewise.
14364         * modules/time: Likewise.
14365         * modules/unistd: Likewise.
14366         * modules/wchar: Likewise.
14367         * modules/wctype: Likewise.
14368         * modules/sys_stat: Change maintainer to "all".
14369         * modules/unistd: Likewise.
14370
14371 2007-06-20  Karl Berry  <karl@gnu.org>
14372
14373         * config/srclist.txt: track www changes in license files.
14374
14375 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
14376
14377         * build-aux/bootstrap: Remove stray dot.
14378         Make sure build_aux settings are honored when linking
14379         gnulib_extra_files.
14380
14381 2007-06-19  Eric Blake  <ebb9@byu.net>
14382
14383         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
14384         Allow compilation on cygwin.
14385
14386 2007-06-19  Jim Meyering  <jim@meyering.net>
14387
14388         xreadlink-with-size: Remove module.  No longer used.
14389         Ex-callers now use xreadlink or mreadlink-with-size.
14390         * modules/xreadlink-with-size: Remove module.
14391         * lib/xreadlink-with-size.c: Remove file.
14392         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
14393         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
14394         just before the function definition *is* accurate.
14395
14396         Eliminate one way canonicalize_filename_mode could exit.
14397         * lib/canonicalize.c (canonicalize_filename_mode):
14398         Use mreadlink_with_size, not xreadlink_with_size.
14399
14400 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
14401
14402         Detect porting problems to FreeBSD/arm, which has time_t wider than
14403         long int.  Original problem reported for GNU diff by Xin Li in
14404         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
14405         * modules/getdate (Depends-on): Add intprops, verify.
14406         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
14407         is an integer type no wider than long int.
14408
14409 2007-06-18  Jim Meyering  <jim@meyering.net>
14410
14411         New module: mreadlink-with-size.
14412         * MODULES.html.sh: Add mreadlink-with-size.
14413         * modules/mreadlink-with-size: New module
14414         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
14415         not xreadlink-with-size.
14416         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
14417
14418 2007-06-16  Bruno Haible  <bruno@clisp.org>
14419
14420         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
14421         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
14422         Reported by Gary V. Vaughan <gary@gnu.org>.
14423
14424 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
14425
14426         Revamp lchown so that it lives in unistd.h where it belongs.
14427         * lib/lchown.h: Remove.
14428         * lib/dirchownmod.c: Don't include lib/lchown.h.
14429         * lib/fchownat.c: Likewise.
14430         * lib/openat.c: Likewise.
14431         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
14432         does not follow symlinks.
14433         (EOPNOTSUPP): Define if not defined.
14434         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
14435         is defined to 0.
14436         (lchown): New decl.
14437         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
14438         Do not check for lchown decl.
14439         Set REPLACE_LCHOWN.
14440         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
14441         REPLACE_LCHOWN.
14442         * modules/chown: Make it clear it follows symlinks.
14443         * modules/lchown: Make it clear it doesn't follow symlinks.
14444         (Files): Remove lib/lchown.h
14445         (Depends-on): Add unistd.
14446         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
14447         (Include): Include <unistd.h>, not "lchown.h".
14448         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
14449         REPLACE_LCHOWN.
14450
14451 2007-06-15  Jim Meyering  <jim@meyering.net>
14452
14453         Change license (GPL to LGPL) of fsusage and dependents.
14454         * modules/fsusage (License): Change to LGPL.
14455         * modules/full-read (License): Likewise.
14456         * modules/full-write (License): Likewise.
14457         * modules/safe-read (License): Likewise.
14458         * modules/safe-write (License): Likewise.
14459
14460 2007-06-14  Ben Pfaff  <blp@gnu.org>
14461
14462         Missing part of allocsa -> malloca transition.
14463         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
14464         gl_MALLOCA.
14465
14466 2007-06-12  Bruno Haible  <bruno@clisp.org>
14467
14468         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
14469         to ia64, x86_64, i386.
14470         Reported by Eric Blake.
14471
14472 2007-06-12  Bruno Haible  <bruno@clisp.org>
14473
14474         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
14475         cross-compiling to x86_64.
14476
14477 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
14478
14479         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
14480         glitch reported by Ralf Wildenhues in
14481         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
14482
14483         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
14484         Vin Shelton.
14485
14486 2007-06-11  Bruno Haible  <bruno@clisp.org>
14487
14488         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
14489         replacement string.
14490         Reported by Eric Blake.
14491
14492 2007-06-10  Bruno Haible  <bruno@clisp.org>
14493
14494         Prepare vasnprintf code for use with Unicode strings.
14495         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
14496         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
14497         TYPE_U32_STRING.
14498         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
14499         a_u32_string variants.
14500         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
14501         * lib/printf-args.c: Don't include config.h and the specification
14502         header if PRINTF_FETCHARGS is already defined.
14503         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
14504         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
14505         TYPE_U16_STRING, TYPE_U32_STRING.
14506         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
14507         u16_directive, u16_directives, u32_directive, u32_directives): New
14508         types.
14509         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
14510         New declarations.
14511         * lib/printf-parse.c: Don't include config.h and the specification
14512         header if PRINTF_PARSE is already defined. Eliminate the set of
14513         parameters for WIDE_CHAR_VERSION; the user of this file must provide
14514         them now. Include c-ctype.h.
14515         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
14516         directive and CHAR_T_ONLY_ASCII.
14517         * lib/vasnprintf.c: Don't include config.h and the specification header
14518         if VASNPRINTF is already defined.
14519         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
14520         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
14521         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
14522         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
14523         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
14524         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
14525         code accordingly.
14526         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
14527         pad_ourselves also in this case, with the 'c' and 's' directives, and
14528         with a different notion of "width".
14529         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
14530
14531 2007-06-10  Bruno Haible  <bruno@clisp.org>
14532
14533         * modules/unistr/u32-mbsnlen: New file.
14534         * lib/unistr/u32-mbsnlen.c: New file.
14535
14536         * modules/unistr/u16-mbsnlen: New file.
14537         * lib/unistr/u16-mbsnlen.c: New file.
14538
14539         * modules/unistr/u8-mbsnlen: New file.
14540         * lib/unistr/u8-mbsnlen.c: New file.
14541
14542         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
14543         declarations.
14544
14545 2007-06-10  Bruno Haible  <bruno@clisp.org>
14546
14547         * lib/string_.h (mbsnlen): New declaration.
14548         * lib/mbsnlen.c: New file.
14549         * m4/mbsnlen.m4: New file.
14550         * modules/mbsnlen: New file.
14551         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
14552         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
14553         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
14554
14555 2007-06-10  Bruno Haible  <bruno@clisp.org>
14556
14557         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
14558
14559 2007-06-10  Bruno Haible  <bruno@clisp.org>
14560
14561         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
14562         * lib/mbuiter.h: Likewise.
14563
14564 2007-06-10  Bruno Haible  <bruno@clisp.org>
14565
14566         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
14567         declaration.
14568
14569 2007-06-10  Karl Berry  <karl@gnu.org>
14570
14571         * config/srclist.txt: remove gettext entries, Bruno prefers
14572         to update individually.
14573
14574 2007-06-10  Bruno Haible  <bruno@clisp.org>
14575
14576         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
14577         'maxlen'. Ensure only length + width bytes are allocated, not
14578         length + 1 + width.
14579
14580 2007-06-09  Bruno Haible  <bruno@clisp.org>
14581
14582         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
14583         (CHAR_T): Remove macro.
14584         (VASNPRINTF): Update.
14585
14586 2007-06-09  Bruno Haible  <bruno@clisp.org>
14587
14588         * MODULES.html.sh (Unicode string functions): Add the new modules.
14589
14590         * modules/uniconv/u32-conv-to-enc: New file.
14591         * lib/uniconv/u32-conv-to-enc.c: New file.
14592         * modules/uniconv/u32-conv-to-enc-tests: New file.
14593         * tests/uniconv/test-u32-conv-to-enc.c: New file.
14594
14595         * modules/uniconv/u16-conv-to-enc: New file.
14596         * lib/uniconv/u16-conv-to-enc.c: New file.
14597         * lib/uniconv/u-conv-to-enc.h: New file.
14598         * modules/uniconv/u16-conv-to-enc-tests: New file.
14599         * tests/uniconv/test-u16-conv-to-enc.c: New file.
14600
14601         * modules/uniconv/u8-conv-to-enc: New file.
14602         * lib/uniconv/u8-conv-to-enc.c: New file.
14603         * modules/uniconv/u8-conv-to-enc-tests: New file.
14604         * tests/uniconv/test-u8-conv-to-enc.c: New file.
14605
14606         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
14607         u32_conv_to_encoding): New declarations.
14608
14609 2007-06-09  Bruno Haible  <bruno@clisp.org>
14610
14611         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
14612
14613 2007-06-09  Bruno Haible  <bruno@clisp.org>
14614
14615         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
14616         * modules/malloca: Renamed from modules/allocsa, updated.
14617         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
14618         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
14619         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
14620         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
14621         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
14622         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
14623         * modules/xmalloca: Renamed from modules/xallocsa, updated.
14624         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
14625         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
14626         * modules/c-strcasestr (Depends-on): Update.
14627         * lib/c-strcasestr.c: Update.
14628         * modules/c-strstr (Depends-on): Update.
14629         * lib/c-strstr.c: Update.
14630         * modules/canonicalize-lgpl (Depends-on): Update.
14631         * lib/canonicalize-lgpl.c: Update.
14632         * modules/clean-temp (Depends-on): Update.
14633         * lib/clean-temp.c: Update.
14634         * modules/csharpcomp (Depends-on): Update.
14635         * lib/csharpcomp.c: Update.
14636         * modules/csharpexec (Depends-on): Update.
14637         * lib/csharpexec.c: Update.
14638         * modules/javacomp (Depends-on): Update.
14639         * lib/javacomp.c: Update.
14640         * modules/javaexec (Depends-on): Update.
14641         * lib/javaexec.c: Update.
14642         * modules/mbscasestr (Depends-on): Update.
14643         * lib/mbscasestr.c: Update.
14644         * modules/mbsstr (Depends-on): Update.
14645         * lib/mbsstr.c: Update.
14646         * modules/setenv (Depends-on): Update.
14647         * lib/setenv.c: Update.
14648         * modules/strcasestr (Depends-on): Update.
14649         * lib/strcasestr.c: Update.
14650         * modules/striconveha (Depends-on): Update.
14651         * lib/striconveha.c: Update.
14652         * modules/relocatable-prog-wrapper (Files): Update.
14653         * lib/relocwrapper.c: Update.
14654         * build-aux/install-reloc: Update.
14655         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
14656
14657 2007-06-08  Bruno Haible  <bruno@clisp.org>
14658
14659         Port to uClibc.
14660         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
14661         * lib/fpurge.c (fpurge): Likewise.
14662         * lib/freading.c (freading): Likewise.
14663         * lib/fseeko.c (rpl_fseeko): Likewise.
14664         * lib/fseterr.c (fseterr): Likewise.
14665         * lib/fwriting.c (fwriting): Likewise.
14666         * tests/test-fflush.c (main): Avoid a failure on uClibc.
14667
14668 2007-06-08  Bruno Haible  <bruno@clisp.org>
14669
14670         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
14671         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
14672         * modules/gettext (Files): Add m4/intlmacosx.m4.
14673
14674 2007-06-07  Bruno Haible  <bruno@clisp.org>
14675
14676         * modules/localename-tests: New file.
14677         * tests/test-localename.c: New file.
14678
14679         New module 'localename'.
14680         * lib/localename.h: New file.
14681         * lib/localename.c: New file, from GNU gettext.
14682         * m4/localename.m4: New file.
14683         * modules/localename: New file.
14684
14685 2007-06-07  Bruno Haible  <bruno@clisp.org>
14686
14687         Work around the lack of <wchar.h> on some builds of uClibc.
14688         * doc/headers/wchar.texi: Update.
14689         * lib/wchar_.h: Include <wchar.h> only if it exists.
14690         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
14691         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
14692         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
14693         doesn't exist.
14694         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
14695         * modules/mbfile (Depends-on): Add wchar.
14696         * modules/mbiter (Depends-on): Likewise.
14697         * modules/mbuiter (Depends-on): Likewise.
14698         Reported by Simon Josefsson.
14699
14700 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
14701
14702         Work around problem reported by Steven M. Schweda in
14703         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
14704         Tru64 5.1B with the Compaq compiler environment installed declares
14705         an 'isblank' function but does not define it in the C library.
14706         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
14707         * lib/regex_internal.h (isblank): Likewise.
14708         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
14709         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
14710
14711 2007-06-05  Bruno Haible  <bruno@clisp.org>
14712
14713         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
14714         ia64.
14715         * modules/printf-safe: New file.
14716         * modules/fprintf-posix (Depends-on): Add printf-safe.
14717         * modules/printf-posix (Depends-on): Likewise.
14718         * modules/snprintf-posix (Depends-on): Likewise.
14719         * modules/sprintf-posix (Depends-on): Likewise.
14720         * modules/vasnprintf-posix (Depends-on): Likewise.
14721         * modules/vasprintf-posix (Depends-on): Likewise.
14722         * modules/vfprintf-posix (Depends-on): Likewise.
14723         * modules/vprintf-posix (Depends-on): Likewise.
14724         * modules/vsnprintf-posix (Depends-on): Likewise.
14725         * modules/vsprintf-posix (Depends-on): Likewise.
14726         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
14727         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
14728         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
14729         "no" on i386, x86_64, ia64.
14730         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
14731         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
14732         on i386, x86_64, ia64.
14733         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
14734         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
14735         on i386, x86_64, ia64.
14736         * tests/test-vasnprintf-posix.c: Include float.h.
14737         (LDBL80_WORDS): New macro.
14738         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
14739         on i386, x86_64, ia64.
14740         * tests/test-vasprintf-posix.c: Include float.h.
14741         (LDBL80_WORDS): New macro.
14742         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
14743         on i386, x86_64, ia64.
14744         * tests/test-snprintf-posix.c: Include float.h.
14745         * tests/test-sprintf-posix.c: Likewise.
14746         * tests/test-vsnprintf-posix.c: Likewise.
14747         * tests/test-vsprintf-posix.c: Likewise.
14748
14749 2007-06-05  Bruno Haible  <bruno@clisp.org>
14750
14751         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
14752         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
14753         non-IEEE numbers on i386, x86_64, ia64.
14754         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
14755         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
14756         * tests/test-isnanl.h: Include float.h.
14757         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
14758
14759 2007-06-05  Bruno Haible  <bruno@clisp.org>
14760
14761         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
14762         also the %a / %A. Handle the %a / %A code before this extra handling.
14763
14764 2007-06-05  Bruno Haible  <bruno@clisp.org>
14765
14766         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
14767         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
14768
14769 2007-06-05  Bruno Haible  <bruno@clisp.org>
14770
14771         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
14772         typo in variable name.
14773
14774 2007-06-05  Eric Blake  <ebb9@byu.net>
14775
14776         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
14777         Reported by Simon Josefsson.
14778
14779 2007-06-04  Bruno Haible  <bruno@clisp.org>
14780
14781         Avoid test failures on some PowerPC platforms.
14782         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
14783         Define differently for PowerPC.
14784         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
14785         Reported by Gary V. Vaughan <gary@gnu.org>.
14786
14787 2007-06-02  Bruno Haible  <bruno@clisp.org>
14788
14789         Fix test-stdint failure on FreeBSD/ia64.
14790         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
14791         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
14792         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
14793         * doc/headers/stdint.texi: Update.
14794
14795 2007-06-01  Bruno Haible  <bruno@clisp.org>
14796
14797         * tests/test-binary-io.c (main): Pass a third argument to open().
14798         Reported by Gary V. Vaughan <gary@gnu.org>.
14799
14800 2007-06-01  Bruno Haible  <bruno@clisp.org>
14801
14802         * doc/functions/frexpl.texi: Update for mingw.
14803
14804 2007-06-01  Bruno Haible  <bruno@clisp.org>
14805
14806         * tests/test-lseek.c (main): Disable test of errno for invalid third
14807         argument.
14808         * doc/functions/lseek.texi: Update.
14809         Reported by Gary V. Vaughan <gary@gnu.org>.
14810
14811 2007-05-28  Bruno Haible  <bruno@clisp.org>
14812
14813         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
14814
14815 2007-05-31  Eric Blake  <ebb9@byu.net>
14816
14817         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
14818         cross compiling.
14819
14820 2007-05-30  Eric Blake  <ebb9@byu.net>
14821         and Bruno Haible  <bruno@clisp.org>
14822
14823         Work around mingw test failures exposed by m4-1.4.9b.
14824         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
14825         * tests/test-unistd.c: Disable uid_t and git_t tests for the
14826         moment.
14827
14828 2007-05-30  Bruno Haible  <bruno@clisp.org>
14829
14830         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
14831         assuming that they are closed. Needed on HP-UX 11.
14832
14833 2007-05-29  Bruno Haible  <bruno@clisp.org>
14834
14835         Fix a problem with #include_next.
14836         * lib/dirent_.h: Split the double-inclusion guard.
14837         * lib/fcntl_.h: Likewise.
14838         * lib/float_.h: Likewise.
14839         * lib/iconv_.h: Likewise.
14840         * lib/inttypes_.h: Likewise.
14841         * lib/locale_.h: Likewise.
14842         * lib/math_.h: Likewise.
14843         * lib/netinet_in_.h: Likewise.
14844         * lib/search_.h: Likewise.
14845         * lib/signal_.h: Likewise.
14846         * lib/stdint_.h: Likewise.
14847         * lib/stdio_.h: Likewise.
14848         * lib/stdlib_.h: Likewise.
14849         * lib/string_.h: Likewise.
14850         * lib/sys_select_.h: Likewise.
14851         * lib/sys_socket_.h: Likewise.
14852         * lib/sys_stat_.h: Likewise.
14853         * lib/sys_time_.h: Likewise.
14854         * lib/sysexits_.h: Likewise.
14855         * lib/time_.h: Likewise.
14856         * lib/unistd_.h: Likewise.
14857         * lib/wchar_.h: Likewise.
14858         * lib/wctype_.h: Likewise.
14859
14860 2007-05-29  Bruno Haible  <bruno@clisp.org>
14861
14862         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
14863         for the moment.
14864
14865 2007-05-29  Bruno Haible  <bruno@clisp.org>
14866
14867         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
14868         invocation.
14869         Reported by Eric Blake.
14870
14871 2007-05-29  Bruno Haible  <bruno@clisp.org>
14872
14873         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
14874         compiling case.
14875
14876 2007-05-29  Eric Blake  <ebb9@byu.net>
14877             Bruno Haible  <bruno@clisp.org>
14878
14879         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
14880         cross compiles.
14881
14882 2007-05-28  Eric Blake  <ebb9@byu.net>
14883
14884         * modules/closein-tests (test_closein_LDADD): Support test on
14885         cygwin with libtool.
14886
14887 2007-05-28  Bruno Haible  <bruno@clisp.org>
14888
14889         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
14890         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
14891         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
14892         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
14893         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
14894         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
14895         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
14896         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
14897         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
14898
14899 2007-05-28  Eric Blake  <ebb9@byu.net>
14900
14901         Unconditionally include <config.h> in unit tests.
14902         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
14903         * tests/test-allocsa.c, tests/test-arcfour.c,
14904         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
14905         tests/test-array_list.c, tests/test-array_oset.c,
14906         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
14907         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
14908         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
14909         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
14910         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
14911         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
14912         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
14913         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
14914         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
14915         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
14916         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
14917         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
14918         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
14919         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
14920         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
14921         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
14922         test-md5.c, test-memmem.c, test-printf-posix.c,
14923         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
14924         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
14925         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
14926         test-strcasestr.c, test-striconv.c, test-striconveh.c,
14927         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
14928         test-vasnprintf-posix2.c, test-vasnprintf.c,
14929         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
14930         test-vfprintf-posix.c, test-vprintf-posix.c,
14931         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
14932         test-xvasprintf.c: Likewise.
14933
14934 2007-05-28  Bruno Haible  <bruno@clisp.org>
14935
14936         * gnulib-tool (func_import): Remember the --with-tests command-line
14937         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
14938         Reported by Eric Blake.
14939
14940 2007-05-28  Bruno Haible  <bruno@clisp.org>
14941
14942         * modules/ftell-tests: New file.
14943         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
14944         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
14945
14946         * lib/ftell.c: New file.
14947         * modules/ftell: New file.
14948         * m4/ftell.m4: New file.
14949         * doc/functions/ftell.texi: Update.
14950         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
14951         REPLACE_FTELL.
14952         * lib/stdio_.h (rpl_ftell): New declaration.
14953         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
14954         REPLACE_FTELL.
14955
14956 2007-05-28  Eric Blake  <ebb9@byu.net>
14957
14958         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
14959
14960 2007-05-28  Bruno Haible  <bruno@clisp.org>
14961
14962         * modules/fseek-tests: New file.
14963         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
14964         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
14965
14966         * lib/fseek.c: New file.
14967         * modules/fseek: New file.
14968         * m4/fseek.m4: New file.
14969         * doc/functions/fseek.texi: Update.
14970         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
14971         REPLACE_FSEEK.
14972         * lib/stdio_.h (rpl_fseek): New declaration.
14973         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
14974         REPLACE_FSEEK.
14975
14976 2007-05-28  Bruno Haible  <bruno@clisp.org>
14977
14978         * lib/stdio_.h (fflush): More comments.
14979
14980 2007-05-28  Bruno Haible  <bruno@clisp.org>
14981
14982         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
14983         runtime test.
14984
14985 2007-05-28  Eric Blake  <ebb9@byu.net>
14986
14987         Improve lseek module.
14988         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
14989         * lib/unistd_.h (lseek): Scale back link warning message.
14990         * tests/test-lseek.c: Beef up test.
14991         * tests/test-lseek.sh: Exercise more facets of lseek.
14992         Reported by Bruno Haible.
14993
14994 2007-05-28  Bruno Haible  <bruno@clisp.org>
14995
14996         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
14997         to define.
14998
14999 2007-05-27  Bruno Haible  <bruno@clisp.org>
15000
15001         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
15002
15003 2007-05-27  Bruno Haible  <bruno@clisp.org>
15004
15005         * modules/openmp: New file.
15006         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
15007         Noah Misch.
15008
15009 2007-05-26  Bruno Haible  <bruno@clisp.org>
15010
15011         * modules/chdir-long (Depends-on): Add fchdir.
15012         * modules/chdir-safer (Depends-on): Likewise.
15013         * modules/fts (Depends-on): Likewise.
15014         * modules/fts-lgpl (Depends-on): Likewise.
15015         * modules/openat (Depends-on): Likewise.
15016         * modules/savewd (Depends-on): Likewise.
15017
15018 2007-05-24  Eric Blake  <ebb9@byu.net>
15019
15020         Fix lseek on mingw.
15021         * modules/lseek: New module.
15022         * m4/lseek.m4: New file.
15023         * lib/lseek.c: New file.
15024         * modules/lseek-tests: New file.
15025         * tests/test-lseek.c: New file.
15026         * tests/test-lseek.sh: New file.
15027         * MODULES.html.sh: Document lseek module.
15028         * modules/fflush (Depends-on): Add lseek, fseeko.
15029         * modules/fseeko (Depends-on): Likewise.
15030         * modules/ftello (Depends-on): Likewise.
15031         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
15032         broken.
15033         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
15034         broken.
15035         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
15036         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
15037         * lib/ftello.c (rpl_ftello): Likewise.
15038         * tests/test-fseeko.c (main): Test this.
15039         * tests/test-fseeko.sh: Likewise.
15040         * tests/test-ftello.c (main): Likewise.
15041         * tests/test-ftello.sh: Likewise.
15042         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
15043         implies replacing fseek.
15044         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
15045         HAVE_FTELLO.
15046         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
15047         * modules/unistd (Makefile.am): Likewise.
15048         * lib/unistd_.h (lseek): Declare a replacement.
15049         * doc/functions/lseek.texi (lseek): Document this fix.
15050         * doc/functions/fseek.texi (fseek): Likewise.
15051         * doc/functions/ftell.texi (ftell): Likewise.
15052
15053 2007-05-24  Bruno Haible  <bruno@clisp.org>
15054
15055         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
15056         in the printed representation of a NaN.
15057         * tests/test-vasprintf-posix.c (test_function): Likewise.
15058         * tests/test-snprintf-posix.h (test_function): Likewise.
15059         * tests/test-sprintf-posix.h (test_function): Likewise.
15060         Reported by Eric Blake.
15061
15062 2007-05-23  Eric Blake  <ebb9@byu.net>
15063
15064         Fix fseeko/ftello on cygwin 1.5.24.
15065         * doc/functions/fseeko.texi (fseeko): Document the fix.
15066         * doc/functions/ftello.texi (ftello): Document the fix.
15067         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
15068         * doc/functions/stdout.text (stdout): New file.
15069         * doc/functions/stderr.text (stderr): New file.
15070         * doc/gnulib.texi (Function Substitutes): Use new files.
15071         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
15072         prior to 1.7.0.
15073         * tests/test-ftello.c (main): Likewise for ftello.
15074         * tests/test-fseeko.sh: New file.
15075         * tests/test-ftello.sh: New file.
15076         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
15077         with seekable stdin.
15078         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
15079         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
15080         (gl_REPLACE_FSEEKO): New macro.
15081         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
15082         * modules/fseeko (Files): Distribute fseeko.c.
15083         * modules/ftello (Files): Distribute ftello.c.
15084         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
15085         mode.
15086         * lib/ftello.c (rpl_ftello): New file.
15087         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
15088         fseeko, ftello.
15089         (gl_STDIN_LARGE_OFFSET): New macro.
15090         * modules/stdio (Makefile.am): Perform the replacement.
15091         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
15092
15093 2007-05-23  Bruno Haible  <bruno@clisp.org>
15094
15095         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
15096         GNULIB_POSIXCHECK is defined.
15097
15098 2007-05-21  Bruno Haible  <bruno@clisp.org>
15099
15100         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
15101         Check also the output for NaN arguments. When cross-compiling, guess
15102         no on IRIX.
15103         * lib/vasnprintf.c: Update comments.
15104         * tests/test-vasnprintf-posix.c (strisnan): New function.
15105         (test_function): Use it.
15106         * tests/test-vasprintf-posix.c (strisnan): New function.
15107         (test_function): Use it.
15108         * tests/test-snprintf-posix.h (strisnan): New function.
15109         (test_function): Use it.
15110         * tests/test-sprintf-posix.h (strisnan): New function.
15111         (test_function): Use it.
15112         Reported by Eric Blake.
15113
15114 2007-05-20  Bruno Haible  <bruno@clisp.org>
15115
15116         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
15117         numbers that fails on BeOS.
15118         * doc/functions/frexpl.texi: Update.
15119
15120 2007-05-20  Jim Meyering  <jim@meyering.net>
15121
15122         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
15123         forced upon us by glibc-2.6.
15124
15125 2007-05-20  Bruno Haible  <bruno@clisp.org>
15126
15127         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
15128         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
15129         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
15130         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
15131         NEED_PRINTF_INFINITE.
15132         (is_infinitel): New function.
15133         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
15134         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
15135         gl_PREREQ_VASNPRINTF_INFINITE.
15136         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
15137         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
15138         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
15139         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
15140         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
15141         gl_PREREQ_VASNPRINTF_INFINITE.
15142         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
15143         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
15144         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
15145         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
15146         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
15147         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
15148         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
15149         * doc/functions/fprintf.texi: Update.
15150         * doc/functions/printf.texi: Update.
15151         * doc/functions/snprintf.texi: Update.
15152         * doc/functions/sprintf.texi: Update.
15153         * doc/functions/vfprintf.texi: Update.
15154         * doc/functions/vprintf.texi: Update.
15155         * doc/functions/vsnprintf.texi: Update.
15156         * doc/functions/vsprintf.texi: Update.
15157
15158 2007-05-20  Bruno Haible  <bruno@clisp.org>
15159
15160         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
15161         was not found in libc.
15162         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
15163
15164 2007-05-20  Bruno Haible  <bruno@clisp.org>
15165
15166         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
15167         printed as "-nan" instead of "nan".
15168         * tests/test-vasprintf-posix.c (test_function): Likewise.
15169         * tests/test-snprintf-posix.h (test_function): Likewise.
15170         * tests/test-sprintf-posix.h (test_function): Likewise.
15171         Needed for HP-UX 11.
15172
15173 2007-05-20  Jim Meyering  <jim@meyering.net>
15174
15175         Fix buggy test for the fchownat-deref bug.
15176         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
15177         symlink required for the run-test.  Without it, this test would
15178         always declare that fchownat doesn't work, and client code would
15179         unnecessarily use the replacement function with fixed libc.
15180         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
15181         Reported by Greg Schafer.
15182
15183 2007-05-19  Bruno Haible  <bruno@clisp.org>
15184
15185         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
15186         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
15187         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
15188         Needed for IRIX 6.5 and Solaris 2.5.1.
15189
15190 2007-05-19  Bruno Haible  <bruno@clisp.org>
15191
15192         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
15193         (test_function): Skip tests involving -0.0 on platforms where
15194         -0.0 = 0.0.
15195         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
15196         (test_function): Skip tests involving -0.0 on platforms where
15197         -0.0 = 0.0.
15198         * tests/test-snprintf-posix.h (have_minus_zero): New function.
15199         (test_function): Skip tests involving -0.0 on platforms where
15200         -0.0 = 0.0.
15201         * tests/test-sprintf-posix.h (have_minus_zero): New function.
15202         (test_function): Skip tests involving -0.0 on platforms where
15203         -0.0 = 0.0.
15204         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
15205         tests.
15206         * tests/test-printf-posix.h (test_function): Likewise.
15207         * tests/test-printf-posix.output: Remove all -0.0 related results.
15208         Needed for IRIX 6.5.
15209
15210 2007-05-19  Bruno Haible  <bruno@clisp.org>
15211
15212         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
15213         printed as "nan0x7fffffff" instead of "nan".
15214         * tests/test-vasprintf-posix.c (test_function): Likewise.
15215         * tests/test-snprintf-posix.h (test_function): Likewise.
15216         * tests/test-sprintf-posix.h (test_function): Likewise.
15217         * tests/test-fprintf-posix.h (NaN): Remove macro.
15218         (test_function): Remove all NaN related tests.
15219         * tests/test-printf-posix.h (NaN): Remove macro.
15220         (test_function): Remove all NaN related tests.
15221         * tests/test-printf-posix.output: Remove all NaN related results.
15222         Needed for IRIX 6.5.
15223
15224 2007-05-19  Bruno Haible  <bruno@clisp.org>
15225
15226         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
15227         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
15228
15229 2007-05-19  Bruno Haible  <bruno@clisp.org>
15230
15231         * lib/float_.h: New file.
15232         * m4/float_h.m4: New file.
15233         * modules/float: New file.
15234         * modules/isnanl (Dependencies): Add float.
15235         * modules/isnanl-nolibm (Dependencies): Likewise.
15236         * modules/mathl (Dependencies): Likewise.
15237         * modules/printf-frexpl (Dependencies): Likewise.
15238         * modules/signbit (Dependencies): Likewise.
15239         * modules/vasnprintf (Dependencies): Likewise.
15240         * doc/headers/float.texi: Update.
15241
15242 2007-05-19  Jim Meyering  <jim@meyering.net>
15243
15244         * lib/utimens.c (gl_futimens): Rename from futimens,
15245         now that glibc-2.6 declares futimens.
15246         * lib/utimens.h: Likewise.
15247
15248 2007-05-19  Bruno Haible  <bruno@clisp.org>
15249
15250         Avoid test failures on mingw.
15251         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
15252         * tests/test-printf-posix.sh: Likewise.
15253         * tests/test-vfprintf-posix.sh: Likewise.
15254         * tests/test-vprintf-posix.sh: Likewise.
15255
15256 2007-05-19  Bruno Haible  <bruno@clisp.org>
15257
15258         Fix *printf result for NaN, Inf, -0.0 on mingw.
15259         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
15260         * lib/vasnprintf.c: Include math.h and isnan.h.
15261         (is_infinite_or_zero): New function.
15262         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
15263         values in the %f, %F, %e, %E, %g, %G directives.
15264         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
15265         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
15266         gl_PRINTF_INFINITE and test its result. Invoke
15267         gl_PREREQ_VASNPRINTF_INFINITE.
15268         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
15269         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
15270         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
15271         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
15272         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
15273         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
15274         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
15275         * doc/functions/fprintf.texi: Update.
15276         * doc/functions/printf.texi: Update.
15277         * doc/functions/snprintf.texi: Update.
15278         * doc/functions/sprintf.texi: Update.
15279         * doc/functions/vfprintf.texi: Update.
15280         * doc/functions/vprintf.texi: Update.
15281         * doc/functions/vsnprintf.texi: Update.
15282         * doc/functions/vsprintf.texi: Update.
15283
15284 2007-05-19  Bruno Haible  <bruno@clisp.org>
15285
15286         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
15287         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
15288         Instead of multiplying with 10^k, set extra_zeroes to k.
15289         (scale10_round_long_double): Remove function.
15290
15291 2007-05-18  Bruno Haible  <bruno@clisp.org>
15292
15293         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
15294         introduced on 2007-05-06.
15295
15296 2007-05-18  Bruno Haible  <bruno@clisp.org>
15297
15298         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
15299         %g directives.
15300         * tests/test-vasprintf-posix.c (test_function): Likewise.
15301         * tests/test-snprintf-posix.h (test_function): Likewise.
15302         * tests/test-sprintf-posix.h (test_function): Likewise.
15303
15304 2007-05-18  Bruno Haible  <bruno@clisp.org>
15305
15306         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
15307         (strmatch): New function.
15308         (test_function): Test the %f directive on numbers of various exponents.
15309         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
15310         (strmatch): New function.
15311         (test_function): Test the %f directive on numbers of various exponents.
15312         * tests/test-snprintf-posix.h (strmatch): New function.
15313         (test_function): Test the %f directive on numbers of various exponents.
15314         * tests/test-sprintf-posix.h (strmatch): New function.
15315         (test_function): Test the %f directive on numbers of various exponents.
15316         * tests/test-snprintf-posix.c (SIZEOF): New macro.
15317         * tests/test-sprintf-posix.c (SIZEOF): New macro.
15318         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
15319         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
15320
15321 2007-05-18  Bruno Haible  <bruno@clisp.org>
15322
15323         Add support for 'long double' number output.
15324         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
15325         * lib/vasnprintf.c: Include math.h and float+.h.
15326         (mp_limb_t): New type.
15327         (GMP_LIMB_BITS): New macro.
15328         (mp_twolimb_t): New type.
15329         (GMP_TWOLIMB_BITS): New macro.
15330         (mpn_t): New type.
15331         (multiply, divide, convert_to_decimal, decode_long_double,
15332         scale10_round_long_double, scale10_round_decimal_long_double,
15333         floorlog10l): New functions.
15334         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
15335         for the %f, %F, %e, %E, %g, %G directives.
15336         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
15337         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
15338         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
15339         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
15340         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
15341         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
15342         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
15343         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
15344         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
15345         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
15346         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
15347         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
15348         * modules/snprintf-posix (Depends-on): Likewise.
15349         * modules/sprintf-posix (Depends-on): Likewise.
15350         * modules/vasnprintf-posix (Depends-on): Likewise.
15351         * modules/vasprintf-posix (Depends-on): Likewise.
15352         * modules/vfprintf-posix (Depends-on): Likewise.
15353         * modules/vsnprintf-posix (Depends-on): Likewise.
15354         * modules/vsprintf-posix (Depends-on): Likewise.
15355         * modules/vasnprintf (Files): Add lib/float+.h.
15356         * doc/functions/fprintf.texi: Update.
15357         * doc/functions/printf.texi: Update.
15358         * doc/functions/snprintf.texi: Update.
15359         * doc/functions/sprintf.texi: Update.
15360         * doc/functions/vfprintf.texi: Update.
15361         * doc/functions/vprintf.texi: Update.
15362         * doc/functions/vsnprintf.texi: Update.
15363         * doc/functions/vsprintf.texi: Update.
15364
15365 2007-05-18  Bruno Haible  <bruno@clisp.org>
15366
15367         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
15368
15369 2007-05-18  Bruno Haible  <bruno@clisp.org>
15370
15371         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
15372         for printing 64-bit integers. Needed for mingw.
15373
15374 2007-05-18  Bruno Haible  <bruno@clisp.org>
15375
15376         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
15377         gl_FUNC_FREXPL_WORKS.
15378         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
15379
15380 2007-05-18  Bruno Haible  <bruno@clisp.org>
15381
15382         * modules/frexpl-nolibm-tests: New file.
15383
15384         * modules/frexpl-nolibm: New file.
15385         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
15386
15387 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
15388
15389         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
15390         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
15391         GCC 4.2, which otherwise issues a lot of warnings.
15392         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
15393         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
15394         Likewise.
15395         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
15396         * modules/iconv_open (iconv.h): Likewise.
15397         * modules/locale (locale.h): Likewise.
15398         * modules/netinet_in (netinet/in.h): Likewise.
15399         * modules/sys_select (sys_select.h): Likewise.
15400         * modules/sys_socket (sys/socket.h): Likewise.
15401         * modules/sys_stat (sys/stat.h): Likewise.
15402         * modules/sysexits (sysexits.h): Likewise.
15403         * modules/unistd (unistd.h): Likewise.
15404
15405 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15406
15407         * modules/closein-tests (Makefile.am): Distribute
15408         `test-closein.sh'.
15409
15410 2007-05-17  Bruno Haible  <bruno@clisp.org>
15411
15412         * tests/test-printf-posix.output: Renamed from
15413         tests/test-fprintf-posix.out.
15414         * modules/fprintf-posix-tests: Update.
15415         * modules/printf-posix-tests: Update.
15416         * modules/vfprintf-posix-tests: Update.
15417         * modules/vprintf-posix-tests: Update.
15418         * tests/test-fprintf-posix.sh: Update.
15419         * tests/test-printf-posix.sh: Update.
15420         * tests/test-vfprintf-posix.sh: Update.
15421         * tests/test-vprintf-posix.sh: Update.
15422         Reported by Ralf Wildenhues.
15423
15424 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
15425
15426         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
15427         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
15428         GCC 4.2, which otherwise issues a lot of warnings.
15429         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
15430         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
15431         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
15432         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
15433         it should no longer be needed.
15434         * lib/string_.h: Likewise.
15435         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
15436         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
15437         * modules/inttypes (inttypes.h): Likewise.
15438         * modules/math (math.h): Likewise.
15439         * modules/search (search.h): Likewise.
15440         * modules/signal (signal.h): Likewise.
15441         * modules/stdint (stdint.h): Likewise.
15442         * modules/stdio (stdio.h): Likewise.
15443         * modules/stdlib (stdlib.h): Likewise.
15444         * modules/string (string.h): Likewise.
15445         * modules/sys_time (sys/time.h): Likewise.
15446         * modules/time (time.h): Likewise.
15447         * modules/wchar (wchar.h): Likewise.
15448         * modules/wctype (wtype.h): Likewise.
15449
15450 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
15451
15452         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
15453
15454 2007-05-13  Bruno Haible  <bruno@clisp.org>
15455
15456         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
15457         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
15458         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
15459         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
15460         (gl_PREREQ_STRTOK_R): Don't require it here.
15461
15462 2007-05-13  Bruno Haible  <bruno@clisp.org>
15463
15464         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
15465         when used in C++ mode.
15466
15467 2007-05-12  Bruno Haible  <bruno@clisp.org>
15468
15469         * lib/linebuffer.h: Tweak doc.
15470         * lib/linebuffer.c: Likewise.
15471
15472 2007-05-12  James Youngman  <jay@gnu.org>
15473
15474         * lib/linebuffer.c (readlinebuffer_delim): New function,
15475         like readlinebuffer, but use a caller-specified delimiter.
15476         (readlinebuffer): Just call readlinebuffer_delim with '\n'
15477         as the delimiter.
15478         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
15479
15480 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
15481
15482         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
15483         * modules/openat (Files): Remove openat-die.c.
15484         (Depends-on): Add openat-die.
15485         * modules/openat-die: New module.
15486
15487 2007-05-06  Bruno Haible  <bruno@clisp.org>
15488
15489         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
15490         Update with info about Cygwin.
15491         * doc/functions/fprintf.texi: Update.
15492         * doc/functions/printf.texi: Update.
15493         * doc/functions/snprintf.texi: Update.
15494         * doc/functions/sprintf.texi: Update.
15495         * doc/functions/vfprintf.texi: Update.
15496         * doc/functions/vprintf.texi: Update.
15497         * doc/functions/vsnprintf.texi: Update.
15498         * doc/functions/vsprintf.texi: Update.
15499         Reported by Eric Blake.
15500
15501 2007-05-06  Bruno Haible  <bruno@clisp.org>
15502
15503         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
15504         padding ourselves for the floating-point directives.
15505         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
15506         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
15507         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
15508         gl_PRINTF_FLAG_ZERO and test its result. Invoke
15509         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
15510         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
15511         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
15512         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
15513         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
15514         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
15515         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
15516         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
15517         * tests/test-snprintf-posix.h (test_function): Also check the width
15518         and some flags in the %f directive.
15519         * tests/test-sprintf-posix.h (test_function): Likewise.
15520         * tests/test-vasnprintf-posix.c (test_function): Likewise.
15521         * tests/test-vasprintf-posix.c (test_function): Likewise.
15522         * doc/functions/fprintf.texi: Update.
15523         * doc/functions/printf.texi: Update.
15524         * doc/functions/snprintf.texi: Update.
15525         * doc/functions/sprintf.texi: Update.
15526         * doc/functions/vfprintf.texi: Update.
15527         * doc/functions/vprintf.texi: Update.
15528         * doc/functions/vsnprintf.texi: Update.
15529         * doc/functions/vsprintf.texi: Update.
15530
15531 2007-05-06  Bruno Haible  <bruno@clisp.org>
15532
15533         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
15534         pass the ' flag character to sprintf or snprintf.
15535         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
15536         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
15537         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
15538         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
15539         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
15540         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
15541         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
15542         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
15543         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
15544         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
15545         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
15546         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
15547         * tests/test-snprintf-posix.h (test_function): Also check the grouping
15548         flag.
15549         * tests/test-sprintf-posix.h (test_function): Likewise.
15550         * tests/test-vasnprintf-posix.c (test_function): Likewise.
15551         * tests/test-vasprintf-posix.c (test_function): Likewise.
15552         * doc/functions/fprintf.texi: Update.
15553         * doc/functions/printf.texi: Update.
15554         * doc/functions/snprintf.texi: Update.
15555         * doc/functions/sprintf.texi: Update.
15556         * doc/functions/vfprintf.texi: Update.
15557         * doc/functions/vprintf.texi: Update.
15558         * doc/functions/vsnprintf.texi: Update.
15559         * doc/functions/vsprintf.texi: Update.
15560
15561 2007-05-01  Bruno Haible  <bruno@clisp.org>
15562
15563         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
15564
15565 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
15566
15567         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
15568         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
15569
15570 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
15571
15572         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
15573         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
15574         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
15575
15576 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
15577
15578         * lib/argp-help.c (struct hol_entry): New member `ord'.
15579         (HOL_ENTRY_PTRCMP): Use ord for comparison
15580         (hol_sort): Initialize ord.
15581
15582 2007-05-01  Bruno Haible  <bruno@clisp.org>
15583
15584         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
15585         Reported by Eric Blake.
15586         * doc/gnulib.texi (Function Substitutes): Update.
15587
15588 2007-05-01  Bruno Haible  <bruno@clisp.org>
15589
15590         * doc/functions.texi: Remove file, now redundant through
15591         doc/functions/*.texi.
15592
15593 2007-05-01  Bruno Haible  <bruno@clisp.org>
15594
15595         * modules/argp (Depends-on): Add sleep.
15596
15597 2007-05-01  Bruno Haible  <bruno@clisp.org>
15598
15599         * modules/sleep-tests: New file.
15600         * tests/test-sleep.c: New file.
15601
15602         * modules/sleep: New file.
15603         * lib/sleep.c: New file.
15604         * m4/sleep.m4: New file.
15605         * lib/unistd_.h (sleep): New declaration.
15606         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
15607         HAVE_SLEEP.
15608         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
15609         * doc/functions/sleep.texi: Document the sleep module.
15610
15611 2007-05-01  Bruno Haible  <bruno@clisp.org>
15612
15613         * lib/sigprocmask.h: Remove file.
15614         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
15615         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
15616         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
15617         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
15618         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
15619         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
15620         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
15621         HAVE_SIGSET_T as a shell variable.
15622         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
15623         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
15624         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
15625         (Depends-on): Add signal. Remove verify.
15626         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
15627         (Include): Mention <signal.h> instead of sigprocmask.h.
15628         * NEWS: Mention the change.
15629         * lib/fatal-signal.c: Don't include sigprocmask.h.
15630
15631 2007-05-01  Bruno Haible  <bruno@clisp.org>
15632
15633         * modules/signal: New file.
15634         * lib/signal_.h: New file.
15635         * m4/signal_h.m4: New file.
15636
15637 2007-05-01  Bruno Haible  <bruno@clisp.org>
15638
15639         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
15640         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
15641         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
15642         HAVE_WCTYPE_CTMP_BUG into wctype.h.
15643
15644 2007-05-01  Bruno Haible  <bruno@clisp.org>
15645
15646         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
15647         configure time.
15648         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
15649         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
15650         * modules/sys_stat (Makefile.am): Substitute their values into
15651         sys/stat.h.
15652
15653 2007-05-01  Bruno Haible  <bruno@clisp.org>
15654
15655         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
15656         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
15657         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
15658
15659 2007-05-01  Bruno Haible  <bruno@clisp.org>
15660
15661         * doc/header/assert.texi: Undo last change: don't mention the gnulib
15662         'assert' module here.
15663
15664 2007-05-01  Bruno Haible  <bruno@clisp.org>
15665
15666         * doc/functions/*.texi: New files.
15667         * doc/functions/google-ranking.txt: New file.
15668         * doc/gnulib.texi (Function Substitutes): New chapter.
15669         (ctime, inet_ntoa): Remove sections.
15670         * doc/ctime.texi: Remove file.
15671         * doc/inet_ntoa.texi: Remove file.
15672         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
15673         dependencies.
15674         (%.info): New rule, specifying a --reference-limit.
15675
15676 2007-05-01  Bruno Haible  <bruno@clisp.org>
15677
15678         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
15679
15680 2007-05-01  Bruno Haible  <bruno@clisp.org>
15681
15682         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
15683         the portability of 'mkdir' to mingw systems.
15684
15685 2007-05-01  Bruno Haible  <bruno@clisp.org>
15686
15687         * doc/headers/google-ranking.txt: New file.
15688
15689 2007-04-30  Eric Blake  <ebb9@byu.net>
15690
15691         Prefer fseeko to fseek.
15692         * modules/getpass (Depends-on): Add fseeko.
15693         * lib/getpass.c (getpass): Use fseeko, not fseek.
15694
15695 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
15696
15697         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
15698         assumes the sorting is stable, while most qsort implementations
15699         are not.  Use argument addresses to ensure they never compare as
15700         equal.
15701
15702         * tests/test-argp-2.sh (usage-indent test): Fix output
15703         (func_compare): Restore diff options
15704         * tests/test-argp.c: Restore #include "progname.h"
15705
15706 2007-04-29  Bruno Haible  <bruno@clisp.org>
15707
15708         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
15709         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
15710         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
15711         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
15712         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
15713         (configure.ac): Define CHECK_SNPRINTF_POSIX.
15714         (TESTS, check_PROGRAMS): Add test-snprintf.
15715         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
15716         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
15717         (TESTS, check_PROGRAMS): Add test-vsnprintf.
15718         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
15719         assertions that fail on HP-UX, OSF/1, or IRIX.
15720         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
15721
15722 2007-04-29  Bruno Haible  <bruno@clisp.org>
15723
15724         * MODULES.html.sh (posix_functions): Remove 'contents'.
15725
15726 2007-04-29  Karl Berry  <karl@gnu.org>
15727
15728         * config/srclist.txt (gendocs_template_min): new entry.
15729
15730 2007-04-29  Bruno Haible  <bruno@clisp.org>
15731
15732         Work around fpurge bug on BSD systems.
15733         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
15734         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
15735         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
15736         fpurge to rpl_fpurge if the system already has this function.
15737         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
15738         the case where the system already has this function. Correct invariants
15739         on BSD systems.
15740         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
15741         BSD systems.
15742
15743 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
15744
15745         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
15746         proposed by Sven Verdoolaege.
15747
15748         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
15749         options.
15750         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
15751         (usage and help tests): Update
15752
15753 2007-04-29  Bruno Haible  <bruno@clisp.org>
15754
15755         * tests/test-fflush.c (main): Use a file of size 17, not 10.
15756         Print more information in case of failure. Disable a test on BeOS.
15757
15758 2007-04-29  Bruno Haible  <bruno@clisp.org>
15759
15760         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
15761         This helps debugging on systems on which no gdb is available.
15762
15763 2007-04-29  Bruno Haible  <bruno@clisp.org>
15764
15765         * lib/freading.h: Improve comments.
15766         * lib/fwriting.h: Likewise.
15767         * tests/test-freading.c (main): Don't check freading immediately after
15768         repositioning. Needed for glibc.
15769
15770 2007-04-29  Bruno Haible  <bruno@clisp.org>
15771
15772         * lib/freading.c (freading): Trivial simplification.
15773
15774 2007-04-28  Bruno Haible  <bruno@clisp.org>
15775
15776         * tests/test-fwriting.c (main): Also test the interaction between
15777         fflush and fwriting.
15778         * modules/fwriting-tests (Depends-on): Add fflush.
15779
15780         * tests/test-freading.c (main): Also test the interaction between
15781         fflush and freading.
15782         * modules/freading-tests (Depends-on): Add fflush.
15783
15784 2007-04-28  Bruno Haible  <bruno@clisp.org>
15785
15786         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
15787         fseeko and ftello.
15788         Suggested by Eric Blake.
15789
15790 2007-04-28  Jim Meyering  <jim@meyering.net>
15791
15792         Avoid false-negative in gl_STDINT_H's C99 conformance test.
15793         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
15794         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
15795
15796 2007-04-27  Eric Blake  <ebb9@byu.net>
15797
15798         * doc/headers/assert.texi (assert.h): Document assert module use.
15799
15800 2007-04-27  Bruno Haible  <bruno@clisp.org>
15801
15802         * doc/headers/*.texi: New files.
15803         * doc/gnulib.texi (Header File Substitutes): New chapter.
15804         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
15805         dependencies.
15806         (standards.info ,standards.html, standards.dvi): Update dependencies.
15807         (mostlyclean, clean): New targets.
15808
15809 2007-04-27  Bruno Haible  <bruno@clisp.org>
15810
15811         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
15812         * modules/sysexits (Files, Makefile.am): Update.
15813
15814         * lib/sys_socket_.h: Renamed from lib/socket_.h.
15815         * modules/sys_socket (Files, Makefile.am): Update.
15816
15817         * lib/sys_stat_.h: Renamed from lib/stat_.h.
15818         * modules/sys_stat (Files, Makefile.am): Update.
15819
15820 2007-04-27  Eric Blake  <ebb9@byu.net>
15821
15822         * lib/freading.h: Improve comments.
15823         * lib/fwriting.h: Likewise.
15824         * lib/fflush.c: Likewise.
15825
15826         Fix closein for mingw.
15827         * modules/closein-tests: Add tests for closein.
15828         * tests/test-closein.c: New file.
15829         * tests/test-closein.sh: Likewise.
15830         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
15831         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
15832
15833 2007-04-27  Bruno Haible  <bruno@clisp.org>
15834
15835         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
15836         version is < 6.
15837         * lib/math_.h [__DECC]: Likewise.
15838         * lib/stdio_.h [__DECC]: Likewise.
15839         * lib/stdlib_.h [__DECC]: Likewise.
15840         * lib/string_.h [__DECC]: Likewise.
15841         * lib/time_.h [__DECC]: Likewise.
15842         * lib/wchar_.h [__DECC]: Likewise.
15843         * lib/wctype_.h [__DECC]: Likewise.
15844
15845 2007-04-27  Bruno Haible  <bruno@clisp.org>
15846
15847         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
15848
15849 2007-04-27  Bruno Haible  <bruno@clisp.org>
15850
15851         * lib/fflush.c: Add comments.
15852         * modules/fpurge-tests (Depends-on): Add fflush.
15853         * modules/freadable-tests (Depends-on): Likewise.
15854         * modules/fwritable-tests (Depends-on): Likewise.
15855
15856 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
15857
15858         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
15859         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
15860         Report by Bruno Haible <bruno@clisp.org>.
15861
15862 2007-04-26  Eric Blake  <ebb9@byu.net>
15863
15864         Fix fflush on mingw.
15865         * modules/fflush (Depends-on): Add freading.
15866         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
15867         but unread data.
15868
15869 2007-04-26  Eric Blake  <ebb9@byu.net>
15870         and Bruno Haible  <bruno@clisp.org>
15871
15872         Implement freading and fwriting.
15873         * lib/freading.c: New file.
15874         * lib/freading.h: Likewise.
15875         * m4/freading.m4: Likewise.
15876         * modules/freading: Likewise.
15877         * modules/freading-tests: Likewise.
15878         * tests/test-freading.c: Likewise.
15879         * lib/fwriting.c: New file.
15880         * lib/fwriting.h: Likewise.
15881         * m4/fwriting.m4: Likewise.
15882         * modules/fwriting: Likewise.
15883         * modules/fwriting-tests: Likewise.
15884         * tests/test-fwriting.c: Likewise.
15885         * MODULES.html.sh (File stream based Input/Output): Mention them.
15886
15887 2007-04-26  Bruno Haible  <bruno@clisp.org>
15888
15889         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
15890         'long' when we assume it.
15891         Suggested by Eric Blake.
15892
15893 2007-04-26  Bruno Haible  <bruno@clisp.org>
15894
15895         Ensure fseeko, ftello are declared on glibc systems.
15896         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
15897         * modules/fseeko (configure.ac-early): Likewise.
15898         * modules/ftello (configure.ac-early): Likewise.
15899         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
15900         AC_FUNC_FSEEKO for this.
15901         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
15902         (gl_CHECK_FSEEKO): Remove macro.
15903
15904 2007-04-26  Bruno Haible  <bruno@clisp.org>
15905
15906         * tests/test-fflush.c (main): Also check the ftell result after
15907         fflush and fseek/fseeko.
15908         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
15909         file descriptor position cache in the stream.
15910         * lib/fseeko.c (rpl_fseeko): Likewise.
15911
15912 2007-04-26  Bruno Haible  <bruno@clisp.org>
15913
15914         * modules/fflush-tests (Depends-on): Add fseeko.
15915
15916 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
15917             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15918
15919         * lib/argz_.h: ensure error_t definition is obtained in same
15920         mechanism system argz.h would have.
15921         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
15922         argz facilities are known bad.  Err on the side of caution if
15923         cross-compiling.
15924
15925 2007-04-25  Eric Blake  <ebb9@byu.net>
15926
15927         * lib/fpurge.c (includes): Use stdlib.h for free.
15928         * tests/test-fflush.c (main): Also test fflush-fseeko.
15929
15930 2007-04-25  Bruno Haible  <bruno@clisp.org>
15931
15932         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
15933         * lib/fseeko.c: New file.
15934         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
15935         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
15936         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
15937         gl_FUNC_FSEEKO.
15938         (gl_FUNC_FSEEKO): Invoke it.
15939         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
15940         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
15941         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
15942
15943 2007-04-25  Bruno Haible  <bruno@clisp.org>
15944
15945         * modules/fflush (Depends-on): Add ftello.
15946
15947 2007-04-25  Bruno Haible  <bruno@clisp.org>
15948
15949         * modules/ftello-tests: New file.
15950         * tests/test-ftello.c: New file.
15951
15952         * modules/ftello: New file.
15953         * m4/ftello.m4: New file.
15954         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
15955         HAVE_FTELLO.
15956         * lib/stdio_.h (ftello): New declaration.
15957         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
15958         HAVE_FTELLO.
15959
15960 2007-04-25  Bruno Haible  <bruno@clisp.org>
15961
15962         * modules/fseeko-tests: New file.
15963         * tests/test-fseeko.c: New file.
15964
15965         * modules/fseeko: New file.
15966         * m4/fseeko.m4: New file.
15967         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
15968         HAVE_FSEEKO.
15969         * lib/stdio_.h (fseeko): New declaration.
15970         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
15971         HAVE_FSEEKO.
15972
15973 2007-04-25  Bruno Haible  <bruno@clisp.org>
15974
15975         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
15976
15977 2007-04-25  Bruno Haible  <bruno@clisp.org>
15978
15979         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
15980         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
15981         * tests/test-unistd.c: Likewise.
15982         * tests/test-fcntl.c: Likewise.
15983
15984 2007-04-23  Eric Blake  <ebb9@byu.net>
15985
15986         * lib/fflush.c: Fix missing include.
15987         Reported by Bruno Haible.
15988
15989 2007-04-23  Bruno Haible  <bruno@clisp.org>
15990
15991         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
15992         Reported by Eric Blake.
15993
15994 2007-04-23  Bruno Haible  <bruno@clisp.org>
15995
15996         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
15997
15998 2007-04-23  Bruno Haible  <bruno@clisp.org>
15999
16000         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
16001
16002 2007-04-23  Bruno Haible  <bruno@clisp.org>
16003
16004         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
16005         Needed on HP-UX 11.
16006
16007 2007-04-16  Eric Blake  <ebb9@byu.net>
16008
16009         Make fflush rely on fpurge.
16010         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
16011         open coding all variants.
16012         * modules/fflush (Depends-on): Add fpurge and unistd.
16013         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
16014         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
16015
16016         Fix --with-tests compilation on cygwin.
16017         * modules/argmatch-tests (Makefile.am): List gnulib library first
16018         in LDADD.
16019         * modules/argp-tests (Makefile.am): Likewise.
16020         * modules/array-list-tests (Makefile.am): Likewise.
16021         * modules/array-oset-tests (Makefile.am): Likewise.
16022         * modules/avltree-list-tests (Makefile.am): Likewise.
16023         * modules/avltree-oset-tests (Makefile.am): Likewise.
16024         * modules/avltreehash-list-tests (Makefile.am): Likewise.
16025         * modules/carray-list-tests (Makefile.am): Likewise.
16026         * modules/dirname-tests (Makefile.am): Likewise.
16027         * modules/frexp-tests (Makefile.am): Likewise.
16028         * modules/isnanl-tests (Makefile.am): Likewise.
16029         * modules/linked-list-tests (Makefile.am): Likewise.
16030         * modules/linkedhash-list-tests (Makefile.am): Likewise.
16031         * modules/lock-tests (Makefile.am): Likewise.
16032         * modules/rbtree-list-tests (Makefile.am): Likewise.
16033         * modules/rbtree-oset-tests (Makefile.am): Likewise.
16034         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
16035         * modules/tls-tests (Makefile.am): Likewise.
16036         * modules/tsearch-tests (Makefile.am): Likewise.
16037         * modules/xvasprintf-tests (Makefile.am): Likewise.
16038
16039         Fix fpurge for cygwin.
16040         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
16041         value.
16042         * modules/fpurge-tests (Depends-on): Clean up trash.
16043
16044 2007-04-16  Simon Josefsson  <simon@josefsson.org>
16045
16046         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
16047
16048         * m4/autobuild.m4: Re-indent.
16049
16050 2007-04-13  Bruno Haible  <bruno@clisp.org>
16051
16052         * modules/fpurge-tests: New file.
16053         * tests/test-fpurge.c: New file.
16054
16055         * modules/fpurge: New file.
16056         * lib/fpurge.h: New file.
16057         * lib/fpurge.c: New file.
16058         * m4/fpurge.m4: New file.
16059
16060 2007-04-13  Bruno Haible  <bruno@clisp.org>
16061
16062         * modules/fbufmode-tests: New file.
16063         * tests/test-fbufmode.c: New file.
16064
16065         * modules/fbufmode: New file.
16066         * lib/fbufmode.h: New file.
16067         * lib/fbufmode.c: New file.
16068         * m4/fbufmode.m4: New file.
16069
16070 2007-04-13  Bruno Haible  <bruno@clisp.org>
16071
16072         * modules/fwritable-tests: New file.
16073         * tests/test-fwritable.c: New file.
16074
16075         * modules/fwritable: New file.
16076         * lib/fwritable.h: New file.
16077         * lib/fwritable.c: New file.
16078         * m4/fwritable.m4: New file.
16079
16080 2007-04-13  Bruno Haible  <bruno@clisp.org>
16081
16082         * modules/freadable-tests: New file.
16083         * tests/test-freadable.c: New file.
16084
16085         * modules/freadable: New file.
16086         * lib/freadable.h: New file.
16087         * lib/freadable.c: New file.
16088         * m4/freadable.m4: New file.
16089
16090 2007-04-13  Bruno Haible  <bruno@clisp.org>
16091
16092         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
16093         MOSTLYCLEANFILES.
16094
16095 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
16096
16097         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
16098         gzip bootstrap.conf to avoid dragging in i18n machinery.
16099         (gnulib_tool_option): Use it.
16100
16101 2007-04-13  Bruno Haible  <bruno@clisp.org>
16102
16103         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
16104         %F directives.
16105         * tests/test-vasprintf-posix.c (test_function): Likewise.
16106         * tests/test-snprintf-posix.h (test_function): Likewise.
16107         * tests/test-sprintf-posix.h (test_function): Likewise.
16108         * tests/test-fprintf-posix.h (test_function): Likewise.
16109         * tests/test-printf-posix.h (test_function): Likewise.
16110         * tests/test-fprintf-posix.out: Likewise.
16111
16112 2007-04-13  Bruno Haible  <bruno@clisp.org>
16113
16114         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
16115         * modules/tls-tests (configure.ac): Likewise.
16116         Reported by Arto C. Nirkko <anirkko@insel.ch>.
16117
16118 2007-04-13  Bruno Haible  <bruno@clisp.org>
16119
16120         * lib/tls.c (glthread_tls_get): Fix return type.
16121         Patch by Arto C. Nirkko <anirkko@insel.ch>.
16122
16123 2007-04-12  Eric Blake  <ebb9@byu.net>
16124
16125         * modules/gettime (Depends-on): Remove gettime.
16126         Reported by Dmitry V. Levin.
16127
16128 2007-04-12  Bruno Haible  <bruno@clisp.org>
16129
16130         * modules/fflush (Include): Mention <stdio.h>.
16131         * modules/strtoimax (Include): Mention <inttypes.h>.
16132         * modules/strtoumax (Include): Likewise.
16133
16134 2007-04-12  Eric Blake  <ebb9@byu.net>
16135
16136         * .cvsignore: New file.
16137         * .gitignore: Likewise.
16138
16139 2007-04-12  Bruno Haible  <bruno@clisp.org>
16140
16141         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
16142         not before, since $(LDADD) often contains libgnu.a.
16143         * modules/striconv-tests (test_striconv_LDADD): Likewise.
16144         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
16145         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
16146         Needed on Cygwin.
16147
16148 2007-04-12  Eric Blake  <ebb9@byu.net>
16149
16150         Work around glibc's failure to flush stdin on fclose.
16151         * lib/closein.c (close_stdin): Flush stdin before closing.
16152
16153         Work around glibc's failure to reset seekable stdin on exit.
16154         * modules/closein: New module.
16155         * lib/closein.c: New file.
16156         * lib/closein.h: Likewise.
16157         * m4/closein.m4: Likewise.
16158         * MODULES.html.sh (File stream based Input/Output): Document it.
16159
16160 2007-04-12  Simon Josefsson  <simon@josefsson.org>
16161
16162         * gnulib-tool: Rename generated 'autobuild' script to
16163         'do-autobuild' in --create-megatestdir output.
16164
16165         * doc/gnulib.texi (Build robot for gnulib): Fix.
16166
16167 2007-04-12  Simon Josefsson  <simon@josefsson.org>
16168
16169         * modules/sysexits (Depends-on): Add absolute-header.
16170
16171 2007-04-12  Eric Blake  <ebb9@byu.net>
16172
16173         No need to preserve errno on success.
16174         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
16175         Reported by Bruno Haible.
16176
16177 2007-04-12  Simon Josefsson  <simon@josefsson.org>
16178
16179         * MODULES.html.sh (Support for maintaining and releasing
16180         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
16181
16182 2007-04-12  Simon Josefsson  <simon@josefsson.org>
16183
16184         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
16185
16186 2007-04-12  Simon Josefsson  <simon@josefsson.org>
16187
16188         * modules/autobuild: New module.
16189
16190         * m4/autobuild.m4: New file.
16191
16192 2007-04-11  Bruno Haible  <bruno@clisp.org>
16193
16194         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
16195         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
16196         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
16197         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
16198         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
16199         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
16200         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
16201         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
16202         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
16203         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
16204         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
16205         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
16206         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
16207         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
16208         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
16209         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
16210         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
16211         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
16212         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
16213         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
16214         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
16215         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
16216         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
16217         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
16218         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
16219         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
16220         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
16221         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
16222         Reported by Eric Blake.
16223
16224 2007-04-11  Bruno Haible  <bruno@clisp.org>
16225
16226         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
16227
16228 2007-04-10  Bruno Haible  <bruno@clisp.org>
16229
16230         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
16231         for NaN and Infinity. Needed on FreeBSD 6.1.
16232         * tests/test-vasnprintf-posix.c (test_function): Undo last change
16233         regarding results for "%010a" of Infinity and NaN.
16234         * tests/test-vasprintf-posix.c (test_function): Likewise.
16235         * tests/test-snprintf-posix.h (test_function): Likewise.
16236         * tests/test-sprintf-posix.h (test_function): Likewise.
16237         * tests/test-fprintf-posix.h (test_function): Likewise.
16238         * tests/test-printf-posix.h (test_function): Likewise.
16239         * tests/test-fprintf-posix.out: Likewise.
16240
16241 2007-04-10  Bruno Haible  <bruno@clisp.org>
16242
16243         * modules/locale-tests: New file.
16244         * tests/test-locale.c: New file.
16245
16246         * modules/locale: New file.
16247         * lib/locale_.h: New file.
16248         * m4/locale_h.m4: New file.
16249
16250 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
16251             Bruno Haible  <bruno@clisp.org>
16252
16253         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
16254         be determined, test for availability of the copysignf, copysign,
16255         copysignl functions.
16256         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
16257         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
16258         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
16259
16260 2007-04-09  Eric Blake  <ebb9@byu.net>
16261
16262         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
16263         * modules/stdio (Makefile.am): Support fflush.
16264         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
16265         * modules/fflush: New file.
16266         * lib/fflush.c: Likewise.
16267         * m4/fflush.m4: Likewise.
16268         * modules/fflush-tests: New test.
16269         * tests/test-fflush.c: Likewise.
16270         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
16271
16272 2007-04-06  Bruno Haible  <bruno@clisp.org>
16273
16274         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
16275         (VASNPRINTF): Use signbit for faster determination whether to print a
16276         minus sign.
16277         * modules/vasnprintf (Files): Remove lib/float+.h.
16278         * modules/fprintf-posix (Depends-on): Add signbit.
16279         * modules/snprintf-posix (Depends-on): Likewise.
16280         * modules/sprintf-posix (Depends-on): Likewise.
16281         * modules/vasnprintf-posix (Depends-on): Likewise.
16282         * modules/vasprintf-posix (Depends-on): Likewise.
16283         * modules/vfprintf-posix (Depends-on): Likewise.
16284         * modules/vsnprintf-posix (Depends-on): Likewise.
16285         * modules/vsprintf-posix (Depends-on): Likewise.
16286
16287 2007-04-06  Bruno Haible  <bruno@clisp.org>
16288
16289         * tests/test-frexp.c (main): Test also the sign bit of zero results.
16290         * tests/test-frexpl.c (main): Likewise.
16291         * tests/test-ldexpl.c (main): Likewise.
16292         * modules/frexp-tests (Depends-on): Add signbit.
16293         * modules/frexpl-tests (Depdends-on): Likewise.
16294         * modules/ldexpl-tests (Depdends-on): Likewise.
16295
16296 2007-04-06  Bruno Haible  <bruno@clisp.org>
16297
16298         * modules/signbit-tests: New file.
16299         * tests/test-signbit.c: New file.
16300
16301         * modules/signbit: New file.
16302         * lib/signbitf.c: New file.
16303         * lib/signbitd.c: New file.
16304         * lib/signbitl.c: New file.
16305         * m4/signbit.m4: New file.
16306         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
16307         (signbit): New macro.
16308         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
16309         REPLACE_SIGNBIT.
16310         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
16311         REPLACE_FREXPL into math.h.
16312
16313 2007-04-06  Bruno Haible  <bruno@clisp.org>
16314
16315         * modules/isnanf-nolibm-tests: New file.
16316         * tests/test-isnanf.c: New file.
16317
16318         * modules/isnanf-nolibm: New file.
16319         * lib/isnanf.h: New file.
16320         * lib/isnanf.c: New file.
16321         * lib/isnan.c: Consider the USE_FLOAT macro.
16322         * m4/isnanf.m4: New file.
16323
16324 2007-04-06  Bruno Haible  <bruno@clisp.org>
16325
16326         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
16327         (Link): New section.
16328
16329         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
16330
16331 2007-04-06  Bruno Haible  <bruno@clisp.org>
16332
16333         Assume the 'long double' type.
16334         * m4/longdouble.m4: Remove file.
16335         * config/srclist.txt: Don't mention longdouble.m4.
16336         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
16337         * lib/float+.h: Likewise.
16338         * lib/frexp.c: Likewise.
16339         * lib/printf-args.h: Likewise.
16340         * lib/printf-args.c: Likewise.
16341         * lib/printf-frexp.c: Likewise.
16342         * lib/printf-parse.c: Likewise.
16343         * lib/vasnprintf.c: Likewise.
16344         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
16345         * m4/intl.m4: Likewise.
16346         * m4/isnanl.m4: Likewise.
16347         * m4/printf.m4: Likewise.
16348         * m4/printf-frexpl.m4: Likewise.
16349         * m4/vasnprintf.m4: Likewise.
16350         * modules/allocsa (Files): Remove m4/longdouble.m4.
16351         * modules/gettext (Files): Likewise.
16352         * modules/relocatable-prog-wrapper (Files): Likewise.
16353         * modules/vasnprintf (Files): Likewise.
16354         * modules/isnanl (Files): Likewise.
16355         (Include): Simplify.
16356         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
16357         (Include): Simplify.
16358         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
16359         (Include): Simplify.
16360         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
16361         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
16362         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
16363         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
16364         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
16365         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
16366         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
16367         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
16368         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
16369         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
16370         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
16371         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
16372         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
16373         * tests/test-isnanl.c: Likewise.
16374         * tests/test-snprintf-posix.h: Likewise.
16375         * tests/test-sprintf-posix.h: Likewise.
16376         * tests/test-vasnprintf-posix.c: Likewise.
16377         * tests/test-vasnprintf-posix2.c: Likewise.
16378         * tests/test-vasprintf-posix.c: Likewise.
16379
16380 2007-04-06  Bruno Haible  <bruno@clisp.org>
16381
16382         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
16383         * lib/math_.h [__DECC]: Include the overridden include file through
16384         #include_next, outside the double-inclusion guard.
16385         * lib/stdio_.h [__DECC]: Likewise.
16386         * lib/stdlib_.h [__DECC]: Likewise.
16387         * lib/string_.h [__DECC]: Likewise.
16388         * lib/time_.h [__DECC]: Likewise.
16389         * lib/wchar_.h [__DECC]: Likewise.
16390         * lib/wctype_.h [__DECC]: Likewise.
16391         * lib/inttypes_.h [__DECC]: Likewise.
16392         Reported by Albert Chin <china@thewrittenword.com> in
16393         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
16394
16395 2007-04-04  Eric Blake  <ebb9@byu.net>
16396
16397         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
16398         1.5.x.
16399
16400 2007-04-04  Bruno Haible  <bruno@clisp.org>
16401
16402         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
16403         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
16404
16405 2007-04-04  Bruno Haible  <bruno@clisp.org>
16406
16407         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
16408         results for "%010a" of Infinity and NaN.
16409         * tests/test-vasprintf-posix.c (test_function): Likewise.
16410         * tests/test-snprintf-posix.h (test_function): Likewise.
16411         * tests/test-sprintf-posix.h (test_function): Likewise.
16412         * tests/test-fprintf-posix.h (test_function): Remove these tests.
16413         * tests/test-printf-posix.h (test_function): Likewise.
16414         * tests/test-fprintf-posix.out: Update.
16415         Needed for FreeBSD 6.1.
16416
16417 2007-04-04  Bruno Haible  <bruno@clisp.org>
16418
16419         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
16420         directly used by the gnulib modules nor by gnulib-tool.
16421
16422 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
16423
16424         * DEPENDENCIES: Give overall description of version dependency
16425         desirability.  Use more-typical names for apps.
16426         Add shell, coreutils, diffutils, grep, tar, gzip.
16427
16428 2007-04-04  Simon Josefsson  <simon@josefsson.org>
16429
16430         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
16431
16432 2007-04-04  Karl Berry  <karl@gnu.org>
16433
16434         * MODULES.html.sh (func_module): missing '.
16435
16436 2007-04-03  Bruno Haible  <bruno@clisp.org>
16437
16438         * modules/argmatch-tests (Makefile.am): New variable
16439         test_argmatch_LDADD.
16440         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
16441         * modules/array-list-tests (Makefile.am): New variable
16442         test_array_list_LDADD.
16443         * modules/array-oset-tests (Makefile.am): New variable
16444         test_array_oset_LDADD.
16445         * modules/avltree-list-tests (Makefile.am): New variable
16446         test_avltree_list_LDADD.
16447         * modules/avltree-oset-tests (Makefile.am): New variable
16448         test_avltree_oset_LDADD.
16449         * modules/avltreehash-list-tests (Makefile.am): New variable
16450         test_avltreehash_list_LDADD.
16451         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
16452         test_canonicalize_lgpl_LDADD.
16453         * modules/carray-list-tests (Makefile.am): New variable
16454         test_carray_list_LDADD.
16455         * modules/dirname-tests (Makefile.am): New variable
16456         test_dirname_LDADD.
16457         * modules/linked-list-tests (Makefile.am): New variable
16458         test_linked_list_LDADD.
16459         * modules/linkedhash-list-tests (Makefile.am): New variable
16460         test_linkedhash_list_LDADD.
16461         * modules/rbtree-list-tests (Makefile.am): New variable
16462         test_rbtree_list_LDADD.
16463         * modules/rbtree-oset-tests (Makefile.am): New variable
16464         test_rbtree_oset_LDADD.
16465         * modules/rbtreehash-list-tests (Makefile.am): New variable
16466         test_rbtreehash_list_LDADD.
16467         * modules/xvasprintf-tests (Makefile.am): New variable
16468         test_xvasprintf_LDADD.
16469         Reported by Eric Blake.
16470
16471 2007-04-03  Eric Blake  <ebb9@byu.net>
16472
16473         * DEPENDENCIES: Weaken m4 requirements.
16474
16475 2007-04-03  Bruno Haible  <bruno@clisp.org>
16476
16477         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
16478         * modules/isnanl-tests (configure.ac): Likewise.
16479
16480 2007-04-03  Ben Pfaff  <blp@gnu.org>
16481
16482         * modules/iconv_open: Add $(srcdir)/ to source directory
16483         references in Makefile fragments that call gperf, to fix VPATH
16484         builds.
16485
16486 2007-04-03  Bruno Haible  <bruno@clisp.org>
16487
16488         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
16489         * lib/ldexpl.c: Undo last change.
16490
16491 2007-04-03  Bruno Haible  <bruno@clisp.org>
16492
16493         * modules/printf-frexpl (Depends-on): Undo last change.
16494         (Files): Add m4/ldexpl.m4.
16495
16496 2007-04-03  Bruno Haible  <bruno@clisp.org>
16497
16498         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
16499         * modules/isnanl (Link): New section.
16500
16501         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
16502         * modules/frexp (Link): New section.
16503
16504         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
16505         * modules/frexpl (Link): New section.
16506
16507         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
16508         * modules/ldexpl (Link): New section.
16509
16510 2007-04-03  Bruno Haible  <bruno@clisp.org>
16511
16512         * modules/TEMPLATE-EXTENDED: New file.
16513         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
16514
16515 2007-04-03  Bruno Haible  <bruno@clisp.org>
16516
16517         * DEPENDENCIES: New file.
16518         Suggested by Simon Josefsson.
16519
16520 2007-04-03  Bruno Haible  <bruno@clisp.org>
16521
16522         * doc/gnulib.texi: Escape @.
16523
16524 2007-04-03  James Youngman  <jay@gnu.org>
16525         and Paul Eggert  <eggert@cs.ucla.edu>
16526
16527         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
16528         birthtime on all systems that have birthtime, not just those which
16529         use st_birthtimensec rather than st_birthtim.  Putting zero in
16530         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
16531         that the birth time is not available for files on an NFS mount.
16532
16533 2007-04-03  Simon Josefsson  <simon@josefsson.org>
16534
16535         * modules/memxor: Move back from crypto/, suggested by Bruno.
16536         * modules/crypto/hmac-sha1: Fix memxor dependency.
16537
16538         * modules/crypto/gc: Moved from ../.
16539
16540 2007-04-02  Eric Blake  <ebb9@byu.net>
16541
16542         * lib/ldexpl.c (includes): Avoid libm.
16543
16544         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
16545
16546 2007-04-02  Bruno Haible  <bruno@clisp.org>
16547
16548         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
16549         on IRIX.
16550
16551 2007-04-02  Bruno Haible  <bruno@clisp.org>
16552
16553         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
16554         x86 or x86_64 platforms running MacOS X.
16555         Reported by Ryan Schmidt <@ryandesign.com>.
16556
16557 2007-04-02  Bruno Haible  <bruno@clisp.org>
16558
16559         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
16560         i386.
16561
16562 2007-04-01  Simon Josefsson  <simon@josefsson.org>
16563
16564         * modules/crypto/arcfour: Moved from ../.
16565         * modules/crypto/arcfour-tests: Moved from ../.
16566         * modules/crypto/arctwo: Moved from ../.
16567         * modules/crypto/arctwo-tests: Moved from ../.
16568         * modules/crypto/des: Moved from ../.
16569         * modules/crypto/des-tests: Moved from ../.
16570         * modules/crypto/gc-arcfour: Moved from ../.
16571         * modules/crypto/gc-arcfour-tests: Moved from ../.
16572         * modules/crypto/gc-arctwo: Moved from ../.
16573         * modules/crypto/gc-arctwo-tests: Moved from ../.
16574         * modules/crypto/gc-des: Moved from ../.
16575         * modules/crypto/gc-des-tests: Moved from ../.
16576         * modules/crypto/gc-hmac-md5: Moved from ../.
16577         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
16578         * modules/crypto/gc-hmac-sha1: Moved from ../.
16579         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
16580         * modules/crypto/gc-md2: Moved from ../.
16581         * modules/crypto/gc-md2-tests: Moved from ../.
16582         * modules/crypto/gc-md4: Moved from ../.
16583         * modules/crypto/gc-md4-tests: Moved from ../.
16584         * modules/crypto/gc-md5: Moved from ../.
16585         * modules/crypto/gc-md5-tests: Moved from ../.
16586         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
16587         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
16588         * modules/crypto/gc-random: Moved from ../.
16589         * modules/crypto/gc-rijndael: Moved from ../.
16590         * modules/crypto/gc-rijndael-tests: Moved from ../.
16591         * modules/crypto/gc-sha1: Moved from ../.
16592         * modules/crypto/gc-sha1-tests: Moved from ../.
16593         * modules/crypto/gc-tests: Moved from ../.
16594         * modules/crypto/hmac-md5: Moved from ../.
16595         * modules/crypto/hmac-md5-tests: Moved from ../.
16596         * modules/crypto/hmac-sha1: Moved from ../.
16597         * modules/crypto/hmac-sha1-tests: Moved from ../.
16598         * modules/crypto/md2: Moved from ../.
16599         * modules/crypto/md2-tests: Moved from ../.
16600         * modules/crypto/md4: Moved from ../.
16601         * modules/crypto/md4-tests: Moved from ../.
16602         * modules/crypto/md5: Moved from ../.
16603         * modules/crypto/md5-tests: Moved from ../.
16604         * modules/crypto/memxor: Moved from ../.
16605         * modules/crypto/rijndael: Moved from ../.
16606         * modules/crypto/rijndael-tests: Moved from ../.
16607         * modules/crypto/sha1: Moved from ../.
16608
16609 2007-03-30  James Youngman  <jay@gnu.org>
16610
16611         * tests/test-stat-time.c (prepare_test): use chmod() rather than
16612         rename() to change the ctime of a file (because ctime is unaffected
16613         by rename on jfs2 on AIX 5.1).
16614         (main): Start by doing cleanup, in case a previous run failed leaving
16615         test files behind.
16616
16617 2007-03-31  Bruno Haible  <bruno@clisp.org>
16618
16619         Support old proprietary implementations of iconv.
16620         * modules/iconv_open: New file.
16621         * lib/iconv_.h: New file.
16622         * m4/iconv_h.m4: New file.
16623         * lib/iconv_open.c: New file.
16624         * lib/iconv_open-aix.gperf: New file.
16625         * lib/iconv_open-hpux.gperf: New file.
16626         * lib/iconv_open-irix.gperf: New file.
16627         * lib/iconv_open-osf.gperf: New file.
16628         * m4/iconv_open.m4: New file.
16629         * modules/linebreak (Depends-on): Add iconv_open.
16630         * modules/striconv (Depends-on): Likewise.
16631         * modules/striconveh (Depends-on): Likewise.
16632         * modules/unicodeio (Depends-on): Likewise.
16633         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
16634         (iconv_t)(-1).
16635         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
16636         conversion if cd is (iconv_t)(-1).
16637         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
16638         is not possible.
16639
16640 2007-03-31  Bruno Haible  <bruno@clisp.org>
16641
16642         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
16643         work on Solaris either. Protect also second use of "autodetect_jp".
16644
16645 2007-03-31  Bruno Haible  <bruno@clisp.org>
16646
16647         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
16648         the function is not present.
16649
16650 2007-03-31  Bruno Haible  <bruno@clisp.org>
16651
16652         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
16653         the function is not present.
16654
16655 2007-03-31  Bruno Haible  <bruno@clisp.org>
16656
16657         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
16658         a bug in HP-UX iconv_open().
16659
16660 2007-03-31  Bruno Haible  <bruno@clisp.org>
16661
16662         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
16663         (Mathematics <math.h>): New section, add fpieee.
16664         (Input/output <stdio.h>): Add fseterr.
16665         (Mathematics <math.h>): New section, add printf-frexp.
16666         (Container data structures): Add sublist.
16667         (Core language properties): Add fpucw, inline.
16668         (Functions for greatest-width integer types <inttypes.h>): Add
16669         imaxabs, imaxdiv, inttypes.
16670         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
16671         isnanl-nolibm, ldexp.
16672         (Mathematics <math.h>): New section, add printf-frexpl.
16673         (Support for systems lacking POSIX:2001): Add fprintf-posix,
16674         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
16675         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
16676         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
16677         (Unicode string functions): Add unistr/u*-mbtoucr.
16678         (Java): Add javacomp-script, javaexec-script.
16679         (C#): Add csharpcomp-script, csharpexec-script.
16680         (Support for building libraries and executables): Add havelib,
16681         relocatable-*.
16682         (Support for maintaining and releasing projects): Renamed from
16683         'Support for maintaining and release projects'. Add announce-gen.
16684
16685 2007-03-31  Bruno Haible  <bruno@clisp.org>
16686
16687         * README: Talk primarily about git.
16688         (git and CVS): Renamed from CVS.
16689         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
16690         gnulib is available through git.
16691         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
16692
16693 2007-03-30  Bruno Haible  <bruno@clisp.org>
16694
16695         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
16696         * lib/poll_.h: Likewise.
16697         * lib/stat_.h: Likewise.
16698         * lib/sys_time_.h: Likewise.
16699         * lib/sysexit_.h: Likewise.
16700         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
16701         * lib/stdbool_.h: Likewise.
16702         * lib/byteswap_.h: Add double-inclusion guard.
16703
16704 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
16705
16706         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
16707
16708 2007-03-30  Karl Berry  <karl@gnu.org>
16709
16710         * config/srclist-update: double space after USA in the license
16711         substitution, since that's how it's usually (?) written.
16712
16713 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
16714
16715         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
16716         reported by Bruno Haible.
16717
16718 2007-03-29  Bruno Haible  <bruno@clisp.org>
16719
16720         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
16721         a bug in AIX iconv().
16722
16723 2007-03-29  Bruno Haible  <bruno@clisp.org>
16724
16725         * modules/ldexpl-tests: New file.
16726         * tests/test-ldexpl.c: New file.
16727
16728 2007-03-29  Bruno Haible  <bruno@clisp.org>
16729
16730         * lib/ldexpl.c: Include fpucw.h.
16731         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
16732         multiplication.
16733         * modules/ldexpl (Depends-on): Add fpucw.
16734
16735 2007-03-29  Bruno Haible  <bruno@clisp.org>
16736
16737         * modules/ldexpl: New file.
16738         * m4/ldexpl.m4: New file.
16739         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
16740         set.
16741         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
16742         REPLACE_LDEXPL.
16743         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
16744         REPLACE_LDEXPL.
16745         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
16746         gl_FUNC_LDEXPL_WORKS.
16747         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
16748         * modules/mathl (Files): Remove lib/ldexpl.c.
16749         (Depends-on): Add ldexpl.
16750
16751 2007-03-29  Bruno Haible  <bruno@clisp.org>
16752
16753         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
16754
16755 2007-03-29  Bruno Haible  <bruno@clisp.org>
16756
16757         * tests/test-striconveh.c (main): Don't assume that a direct conversion
16758         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
16759         and possibly also HP-UX.
16760         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
16761         work on AIX, IRIX, HP-UX, OSF/1.
16762         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
16763         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
16764         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
16765         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
16766         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
16767         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
16768
16769 2007-03-29  Bruno Haible  <bruno@clisp.org>
16770
16771         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
16772
16773 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
16774
16775         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
16776         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
16777
16778 2007-03-29  Eric Blake  <ebb9@byu.net>
16779
16780         * lib/acl-internal.h: Remove redundant include.
16781         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
16782         Cygwin when a file is locked.
16783
16784 2007-03-29  Bruno Haible  <bruno@clisp.org>
16785
16786         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
16787         file.
16788         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
16789
16790 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
16791
16792         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
16793         try to remove a parent directory if the child couldn't be removed
16794         (except for the first rmdir, which could fail because the child
16795         doesn't exist).  Problem reported by Jeff Blaine in
16796         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
16797
16798 2007-03-28  Bruno Haible  <bruno@clisp.org>
16799
16800         * lib/striconveh.c (utf8conv_carefully): New function.
16801         (mem_cd_iconveh_internal): Invoke it.
16802
16803 2007-03-28  Bruno Haible  <bruno@clisp.org>
16804
16805         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
16806         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
16807         input.
16808         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
16809         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
16810         unistr/u8-uctomb.
16811
16812 2007-03-28  Bruno Haible  <bruno@clisp.org>
16813
16814         * modules/unistr/u8-mbtoucr: New file.
16815         * lib/unistr/u8-mbtoucr.c: New file.
16816         * modules/unistr/u16-mbtoucr: New file.
16817         * lib/unistr/u16-mbtoucr.c: New file.
16818         * modules/unistr/u16-mbtoucr: New file.
16819         * lib/unistr/u16-mbtoucr.c: New file.
16820         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
16821
16822 2007-03-27  Simon Josefsson  <simon@josefsson.org>
16823             Bruno Haible  <bruno@clisp.org>
16824
16825         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
16826         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
16827         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
16828
16829         * m4/stdio_h.m4: Add stubs for vasprintf too.
16830
16831         * modules/stdio: Support vasprintf in sed command.
16832
16833         * modules/vasprintf: Depend on stdio for prototypes.  Remove
16834         vasprintf.h.  Add stdio module indicator.
16835
16836         * lib/stdio_.h: Declare asprintf and vasprintf, based on
16837         vasprintf.h.
16838
16839         * lib/vasprintf.h: File removed.
16840
16841         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
16842         * lib/vasprintf.c: Ditto.
16843         * lib/xvasprintf.c: Ditto.
16844         * tests/test-vasprintf-posix.c: Ditto.
16845         * tests/test-vasprintf.c: Ditto.
16846
16847 2007-03-27  Bruno Haible  <bruno@clisp.org>
16848
16849         Make vasnprintf multithread-safe.
16850         * lib/vasnprintf.c (decimal_point_char): New function.
16851         (VASNPRINTF): Use it.
16852         Suggested by Simon Josefsson.
16853
16854 2007-03-27  Eric Blake  <ebb9@byu.net>
16855
16856         Support sub-second birthtime on cygwin.
16857         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
16858         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
16859         (get_stat_birthtime): Also work with st_birthtim.
16860
16861 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
16862
16863         * lib/stat-time.h (USE_BIRTHTIME): Remove.
16864         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
16865         (get_stat_birthtime_ns): Do not try to use "spare" fields.
16866         (get_stat_birthtime_ns): Simplify compile-time tests.
16867         (get_stat_birthtime): Change the API to look like
16868         get_stat_mtime etc., except return a negative tv_nsec on error.
16869         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
16870         Don't check for "spare" fields.
16871         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
16872         or for struct stat.st_birthtime, as these tests aren't used.
16873         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
16874
16875 2007-03-27  Bruno Haible  <bruno@clisp.org>
16876
16877         * lib/stat-time.h: Include <sys/stat.h>.
16878
16879 2007-03-27  James Youngman  <jay@gnu.org>
16880
16881         * lib/stat-time.h (get_stat_birthtime): New function for
16882           retrieving st_birthtime as provided by UFS2 (hence *BSD).
16883         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
16884           and its variants.
16885         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
16886         * modules/stat-time-test: New file.
16887         * tests/test-stat-time.c: New test, devised by Bruno Haible.
16888
16889 2007-03-26  Bruno Haible  <bruno@clisp.org>
16890
16891         Better support of signalling NaNs.
16892         * lib/atanl.c: Include isnanl.h.
16893         (atanl): Perform test for NaN at the beginning of the function and
16894         through a call to isnanl.
16895         * lib/cosl.c: Include isnanl.h.
16896         (cosl): Perform test for NaN at the beginning of the function and
16897         through a call to isnanl.
16898         * lib/ldexpl.c: Include isnanl.h.
16899         (ldexpl): Perform test for NaN through a call to isnanl.
16900         * lib/logl.c: Include isnanl.h.
16901         (logl): Perform test for NaN at the beginning of the function and
16902         through a call to isnanl.
16903         * lib/sinl.c: Include isnanl.h.
16904         (sinl): Perform test for NaN at the beginning of the function and
16905         through a call to isnanl.
16906         * lib/sqrtl.c: Include isnanl.h.
16907         (sqrtl): Perform test for NaN at the beginning of the function and
16908         through a call to isnanl.
16909         * lib/tanl.c: Include isnanl.h.
16910         (tanl): Perform test for NaN at the beginning of the function and
16911         through a call to isnanl.
16912         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
16913         * modules/mathl (Depends-on): Add isnanl.
16914
16915 2007-03-26  Eric Blake  <ebb9@byu.net>
16916
16917         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
16918         regression in logic sense of previous patch.
16919
16920 2007-03-26  Bruno Haible  <bruno@clisp.org>
16921
16922         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
16923         unportable shell command "if ! ...".
16924         Reported by Ralf Wildenhues.
16925
16926 2007-03-25  Bruno Haible  <bruno@clisp.org>
16927
16928         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
16929         <sysexits.h> file, and only add EX_CONFIG.
16930         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
16931         absolute file name and whether it is sufficient. Substitute also
16932         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
16933         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
16934         ABSOLUTE_SYSEXITS_H into sysexits.h.
16935
16936 2007-03-25  Bruno Haible  <bruno@clisp.org>
16937
16938         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
16939         hints is NULL.
16940
16941 2007-03-25  Bruno Haible  <bruno@clisp.org>
16942
16943         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
16944         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
16945
16946 2007-03-25  Bruno Haible  <bruno@clisp.org>
16947
16948         * lib/vasnprintf.c: Include langinfo.h.
16949         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
16950         multithread-safe.
16951         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
16952         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
16953         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
16954         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
16955         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
16956         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
16957         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
16958         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
16959         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
16960         Reported by Simon Josefsson.
16961
16962 2007-03-25  Bruno Haible  <bruno@clisp.org>
16963
16964         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
16965         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
16966         * modules/vasnprintf (Depends-on): Add stdint.
16967
16968 2007-03-25  Bruno Haible  <bruno@clisp.org>
16969
16970         * modules/fpieee: New file.
16971         * m4/fpieee.m4: New file.
16972         * modules/isnan-nolibm (Depends-on): Add fpieee.
16973         * modules/isnanl-nolibm (Depends-on): Add fpieee.
16974         * modules/isnanl (Depends-on): Add fpieee.
16975
16976 2007-03-25  Bruno Haible  <bruno@clisp.org>
16977
16978         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
16979
16980 2007-03-25  Bruno Haible  <bruno@clisp.org>
16981
16982         Avoid test failures on IRIX 6.5.
16983         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
16984         (main): Use it.
16985         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
16986         macros.
16987         (main): Use them.
16988
16989 2007-03-25  Bruno Haible  <bruno@clisp.org>
16990
16991         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
16992         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
16993         exists but doesn't work.
16994         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
16995         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
16996         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
16997         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
16998
16999 2007-03-25  Bruno Haible  <bruno@clisp.org>
17000
17001         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
17002         returns inf. Needed on IRIX 6.5.
17003
17004 2007-03-25  Bruno Haible  <bruno@clisp.org>
17005
17006         * tests/test-frexpl.c: Include isnanl-nolibm.h.
17007         (main): Use isnanl instead of x != x idiom.
17008         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
17009
17010         * tests/test-frexp.c: Include isnan.h.
17011         (main): Use isnan instead of x != x idiom.
17012         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
17013
17014 2007-03-25  Bruno Haible  <bruno@clisp.org>
17015
17016         * tests/test-frexp.c (NaN): New function/macro.
17017         (main): Use it instead of 0.0 / 0.0.
17018         * tests/test-isnan.c (NaN): New function/macro.
17019         (main): Use it instead of 0.0 / 0.0.
17020         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
17021         (test_function): Use it instead of 0.0 / 0.0.
17022         * tests/test-vasprintf-posix.c (NaN): New function/macro.
17023         (test_function): Use it instead of 0.0 / 0.0.
17024         * tests/test-snprintf-posix.h (NaN): New function/macro.
17025         (test_function): Use it instead of 0.0 / 0.0.
17026         * tests/test-sprintf-posix.h (NaN): New function/macro.
17027         (test_function): Use it instead of 0.0 / 0.0.
17028         * tests/test-fprintf-posix.h (NaN): New function/macro.
17029         (test_function): Use it instead of 0.0 / 0.0.
17030         * tests/test-printf-posix.h (NaN): New function/macro.
17031         (test_function): Use it instead of 0.0 / 0.0.
17032
17033         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
17034
17035 2007-03-25  Bruno Haible  <bruno@clisp.org>
17036
17037         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
17038
17039 2007-03-25  Bruno Haible  <bruno@clisp.org>
17040
17041         * lib/regexec.c (merge_state_with_log): Make static.
17042
17043 2007-03-25  Bruno Haible  <bruno@clisp.org>
17044
17045         * lib/trigl.c (kernel_rem_pio2): Make static.
17046
17047 2007-03-25  Bruno Haible  <bruno@clisp.org>
17048
17049         * lib/sincosl.c (sincosl_table): Make static.
17050
17051 2007-03-25  Bruno Haible  <bruno@clisp.org>
17052
17053         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
17054         if the compiler does not support C99.
17055
17056 2007-03-25  Bruno Haible  <bruno@clisp.org>
17057
17058         * modules/time (Makefile.am): Ensure all rule action lines start with a
17059         tab.
17060
17061 2007-03-24  Bruno Haible  <bruno@clisp.org>
17062
17063         * modules/tsearch-tests: New file.
17064         * tests/test-tsearch.sh: New file.
17065         * tests/test-tsearch.c: New file, mostly copied from glibc.
17066
17067         * modules/search-tests: New file.
17068         * tests/test-search.c: New file.
17069
17070         * modules/search: New file.
17071         * lib/search_.h: New file, incorporating lib/tsearch.h.
17072         * m4/search_h.m4: New file.
17073         * lib/tsearch.h: Remove file.
17074         * lib/tsearch.c: Include search.h instead of tsearch.h.
17075         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
17076         HAVE_TSEARCH.
17077         * modules/tsearch (Files): Remove lib/tsearch.h.
17078         (Depends-on): Add search.
17079         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
17080         (Include): Change tsearch.h into search.h.
17081
17082 2007-03-24  Bruno Haible  <bruno@clisp.org>
17083
17084         * modules/fpucw: New file.
17085         * lib/fpucw.h: New file.
17086         * lib/frexp.c: Include fpucw.h.
17087         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
17088         (FUNC): Use them.
17089         * lib/printf-frexp.c: Include fpucw.h.
17090         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
17091         (FUNC): Use them.
17092         * lib/vasnprintf.c: Include fpucw.h.
17093         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
17094         'long double' calculations.
17095         * tests/test-frexpl.c: Include fpucw.h.
17096         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
17097         * tests/test-printf-frexpl.c: Include fpucw.h.
17098         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
17099         * modules/frexpl (Depends-on): Add fpucw.
17100         * modules/printf-frexpl (Depends-on): Likewise.
17101         * modules/fprintf-posix (Depends-on): Likewise.
17102         * modules/snprintf-posix (Depends-on): Likewise.
17103         * modules/sprintf-posix (Depends-on): Likewise.
17104         * modules/vasnprintf-posix (Depends-on): Likewise.
17105         * modules/vasprintf-posix (Depends-on): Likewise.
17106         * modules/vfprintf-posix (Depends-on): Likewise.
17107         * modules/vsnprintf-posix (Depends-on): Likewise.
17108         * modules/vsprintf-posix (Depends-on): Likewise.
17109         * modules/frexpl-tests (Depends-on): Likewise.
17110         * modules/printf-frexpl-tests (Depends-on): Likewise.
17111
17112 2007-03-24  Bruno Haible  <bruno@clisp.org>
17113
17114         * lib/float+.h: New file.
17115         * lib/isnan.c: Include float+.h.
17116         (SIZE): New macro.
17117         (FUNC): Compare only SIZE bytes of the value.
17118         * lib/vasnprintf.c: Include float+.h.
17119         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
17120         SIZEOF_LDBL or SIZEOF_DBL bytes.
17121         * modules/isnan-nolibm (Files): Add lib/float+.h.
17122         * modules/isnanl-nolibm (Files): Add lib/float+.h.
17123         * modules/isnanl (Files): Add lib/float+.h.
17124         * modules/vasnprintf (Files): Add lib/float+.h.
17125
17126 2007-03-24  Bruno Haible  <bruno@clisp.org>
17127
17128         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
17129         include isnanl-nolibm.h.
17130
17131 2007-03-24  Bruno Haible  <bruno@clisp.org>
17132
17133         * tests/test-read-file.c (main): Don't produce spurious output for
17134         expected situations. Make the test fail if it encountered unexpected
17135         results.
17136
17137 2007-03-24  Bruno Haible  <bruno@clisp.org>
17138
17139         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
17140         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
17141
17142 2007-03-24  Bruno Haible  <bruno@clisp.org>
17143
17144         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
17145
17146 2007-03-24  Bruno Haible  <bruno@clisp.org>
17147
17148         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
17149         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
17150
17151         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
17152         * modules/utf8-ucs4: Turn into a symbolic link to module
17153         unistr/u8-mbtouc.
17154
17155         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
17156         utf8-ucs4-unsafe.
17157         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
17158         unistr/u8-mbtouc-unsafe.
17159
17160         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
17161         * modules/utf16-ucs4: Turn into a symbolic link to module
17162         unistr/u16-mbtouc.
17163
17164         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
17165         utf16-ucs4-unsafe.
17166         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
17167         unistr/u16-mbtouc-unsafe.
17168
17169         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
17170         * modules/ucs4-utf8: Turn into a symbolic link to module
17171         unistr/u8-ubtomb.
17172
17173         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
17174         * modules/ucs4-utf16: Turn into a symbolic link to module
17175         unistr/u16-ubtomb.
17176
17177 2007-03-24  Bruno Haible  <bruno@clisp.org>
17178
17179         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
17180         Enable the function only if HAVE_INLINE.
17181         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
17182         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
17183         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
17184         Enable the function only if HAVE_INLINE.
17185         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
17186         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
17187         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
17188         Enable the function only if HAVE_INLINE.
17189         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
17190         Enable the function only if HAVE_INLINE.
17191         * modules/utf8-ucs4: Update.
17192         * modules/utf8-ucs4-unsafe: Update.
17193         * modules/utf16-ucs4: Update.
17194         * modules/utf16-ucs4-unsafe: Update.
17195         * modules/ucs4-utf8: Update.
17196         * modules/ucs4-utf16: Update.
17197
17198 2007-03-24  Bruno Haible  <bruno@clisp.org>
17199
17200         * lib/utf8-ucs4.h: Remove file.
17201         * lib/utf8-ucs4-unsafe.h: Remove file.
17202         * lib/utf16-ucs4.h: Remove file.
17203         * lib/utf16-ucs4-unsafe.h: Remove file.
17204         * lib/ucs4-utf8.h: Remove file.
17205         * lib/ucs4-utf16.h: Remove file.
17206         * lib/unistr.h: Include their previous contents.
17207         * m4/utf-ucs4.m4: Remove file.
17208         * m4/ucs4-utf.m4: Remove file.
17209         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
17210         (Depends-on): Add unistr/base.
17211         (configure.ac): Remove gl_UTF_UCS4.
17212         (Makefile.am): Update.
17213         (Include): Change to unistr.h.
17214         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
17215         (Depends-on): Add unistr/base.
17216         (configure.ac): Remove gl_UTF_UCS4.
17217         (Makefile.am): Update.
17218         (Include): Change to unistr.h.
17219         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
17220         (Depends-on): Add unistr/base.
17221         (configure.ac): Remove gl_UTF_UCS4.
17222         (Makefile.am): Update.
17223         (Include): Change to unistr.h.
17224         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
17225         (Depends-on): Add unistr/base.
17226         (configure.ac): Remove gl_UTF_UCS4.
17227         (Makefile.am): Update.
17228         (Include): Change to unistr.h.
17229         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
17230         (Depends-on): Add unistr/base.
17231         (configure.ac): Remove gl_UCS4_UTF.
17232         (Makefile.am): Update.
17233         (Include): Change to unistr.h.
17234         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
17235         (Depends-on): Add unistr/base.
17236         (configure.ac): Remove gl_UCS4_UTF.
17237         (Makefile.am): Update.
17238         (Include): Change to unistr.h.
17239         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
17240         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
17241         utf8-ucs4-unsafe.h.
17242         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
17243         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
17244         utf16-ucs4-unsafe.h.
17245         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
17246         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
17247         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
17248         * lib/unistr/u8-strchr.c: Likewise.
17249         * lib/unistr/u8-strrchr.c: Likewise.
17250         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
17251         * lib/unistr/u16-strchr.c: Likewise.
17252         * lib/unistr/u16-strrchr.c: Likewise.
17253         * lib/striconveh.c: Update.
17254         * lib/linebreak.c: Update.
17255
17256 2007-03-24  Bruno Haible  <bruno@clisp.org>
17257
17258         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
17259         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
17260
17261 2007-03-22  Bruno Haible  <bruno@clisp.org>
17262
17263         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
17264
17265 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
17266
17267         * MODULES.html.sh (File system functions): New module write-any-file.
17268         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
17269         * m4/write-any-file.m4: New files.
17270
17271 2007-03-23  Eric Blake  <ebb9@byu.net>
17272
17273         * gnulib-tool: Rearrange space-tab sequences, since some editors
17274         like to eat them.
17275
17276 2007-03-23  Eric Blake  <ebb9@byu.net>
17277
17278         * lib/version-etc.c (version_etc_va): Update license wording to
17279         be more concise.  Recommended by Richard Stallman.
17280
17281 2007-03-22  Bruno Haible  <bruno@clisp.org>
17282
17283         * lib/poll.c (MSG_PEEK): New fallback definition.
17284
17285 2007-03-22  Bruno Haible  <bruno@clisp.org>
17286
17287         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
17288         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
17289         (main): Update.
17290         Fixes a compilation error on BeOS.
17291
17292 2007-03-22  Bruno Haible  <bruno@clisp.org>
17293
17294         * modules/frexpl-tests: New file.
17295         * tests/test-frexpl.c: New file.
17296
17297         * modules/frexpl: New file.
17298         * m4/frexpl.m4: New file.
17299         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
17300         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
17301         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
17302         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
17303         (Depends-on): Add frexpl. Remove isnanl-nolibm.
17304         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
17305
17306 2007-03-22  Bruno Haible  <bruno@clisp.org>
17307
17308         * lib/frexpl.c: Share code with lib/frexp.c.
17309         * modules/mathl (Files): Add lib/frexp.c.
17310         (Depends-on): Add isnanl-nolibm.
17311
17312 2007-03-22  Bruno Haible  <bruno@clisp.org>
17313
17314         * modules/printf-frexp (Files): Add m4/frexp.m4.
17315         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
17316         only if the found frexp function actually works.
17317
17318 2007-03-22  Bruno Haible  <bruno@clisp.org>
17319
17320         * lib/frexp.c: Remove older implementation that uses divisions.
17321
17322 2007-03-21  Bruno Haible  <bruno@clisp.org>
17323
17324         * modules/frexp-tests: New file.
17325         * tests/test-frexp.c: New file.
17326
17327         * modules/frexp: New file.
17328         * lib/frexp.c: New file.
17329         * m4/frexp.m4: New file.
17330         * lib/math_.h (frexp): New declaration.
17331         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
17332         REPLACE_FREXP.
17333         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
17334
17335 2007-03-21  Bruno Haible  <bruno@clisp.org>
17336
17337         * modules/isnanl-tests: New file.
17338         * tests/test-isnanl.c: New file.
17339
17340         * modules/isnanl: New file.
17341         * lib/isnanl.h: New file.
17342         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
17343         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
17344         gl_FUNC_ISNANL_WORKS.
17345         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
17346         New macros.
17347
17348 2007-03-21  Bruno Haible  <bruno@clisp.org>
17349
17350         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
17351         lib/isnanl.h.
17352         (Include): Update.
17353         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
17354         * lib/vasnprintf.c: Update.
17355         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
17356         tests/test-isnanl.h, remove tests/test-isnanl.c.
17357         (Makefile.am): Update.
17358         * tests/test-isnanl-nolibm.c: New file.
17359         * tests/test-isnanl.h: New file.
17360         * tests/test-isnanl.c: Remove file.
17361
17362 2007-03-21  Jim Meyering  <jim@meyering.net>
17363
17364         When trying to open ".", treat ESTALE like EACCES.
17365         * lib/savewd.c (savewd_save): Resort to forking not just upon
17366         failure with EACCES, but also when errno is ESTALE.
17367
17368 2007-03-20  Bruno Haible  <bruno@clisp.org>
17369
17370         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
17371         Needed on AIX 5.1. Reported by Matthew Woehlke.
17372
17373 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
17374
17375         Suggestions by Bruno Haible:
17376         * lib/acl-internal.h: Include "gettext.h" rather than rolling
17377         our own.
17378         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
17379         * modules/acl (Depends-on): Add gettext.
17380
17381 2007-03-19  Bruno Haible  <bruno@clisp.org>
17382
17383         * modules/iconvme: Remove file.
17384         * lib/iconvme.h: Remove file.
17385         * lib/iconvme.c: Remove file.
17386         * m4/iconvme.m4: Remove file.
17387
17388 2007-03-19  Bruno Haible  <bruno@clisp.org>
17389
17390         * doc/relocatable-maint.texi: Break long shell script line.
17391         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
17392
17393 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
17394
17395         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
17396         handle file_has_acl.
17397         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
17398         * lib/acl.c: Move header inclusions and related macro defns into
17399         lib/acl-internal.h.
17400         (S_ISLNK): Remove defn, since that's now done for us.
17401         (file_has_acl): Move to lib/file-has-acl.c.
17402         Call acl_trivial if available.  This is the crucial part of the fix.
17403         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
17404         shared within the library.  Rewrite a bit, partly to make it compatible
17405         with the GNU coding style.
17406         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
17407         Remove unnecessary double-quotes.
17408         Don't test for acl_to_text; the build will catch that.
17409         Replace acl_entries if it doesn't exist and it is needed.
17410         Check for -lsec and acl_trivial (as used on Solaris 10).
17411         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
17412         lib/file-has-acl.c.
17413         (Depends-on): Add sys_stat, for S_ISLNK.
17414
17415 2007-03-19  Ben Pfaff  <blp@gnu.org>
17416
17417         * doc/gnulib.texi: Fix typos.
17418         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
17419
17420 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
17421
17422         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
17423         If size is zero here, buf must be zero.
17424
17425 2007-03-19  Simon Josefsson  <simon@josefsson.org>
17426
17427         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
17428         <bruno@clisp.org>.
17429
17430 2007-03-18  Bruno Haible  <bruno@clisp.org>
17431
17432         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
17433         Suggested by Eric Blake.
17434
17435 2007-03-18  Ben Pfaff  <blp@gnu.org>
17436
17437         * doc/relocatable.texi: Recommend using as prefix a directory
17438         that does not exist and will never be created.  Based on
17439         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
17440         and others.
17441
17442 2007-03-17  Bruno Haible  <bruno@clisp.org>
17443
17444         * lib/fchownat.c: Include lchown.h.
17445
17446 2007-03-17  Bruno Haible  <bruno@clisp.org>
17447
17448         Fix endless loop when the given allocated size was > INT_MAX.
17449         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
17450         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
17451         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
17452         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
17453         * lib/sprintf.c (sprintf): Likewise.
17454
17455 2007-03-17  Bruno Haible  <bruno@clisp.org>
17456
17457         * tests/test-argp-2.sh (func_compare): Output a context diff.
17458
17459 2007-03-17  Bruno Haible  <bruno@clisp.org>
17460
17461         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
17462         locale's decimal-point character.
17463
17464 2007-03-17  Bruno Haible  <bruno@clisp.org>
17465
17466         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
17467         before comparing it. Needed because on some platforms (e.g. x86) a
17468         'long double' occupies less bytes than sizeof (long double).
17469
17470 2007-03-17  Bruno Haible  <bruno@clisp.org>
17471
17472         * tests/test-crc.c (main): Make printf statements 64-bit clean.
17473         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
17474         * tests/test-getaddrinfo.c (simple): Likewise.
17475         * tests/test-read-file.c (main): Likewise.
17476
17477 2007-03-17  Bruno Haible  <bruno@clisp.org>
17478
17479         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
17480
17481 2007-03-17  Bruno Haible  <bruno@clisp.org>
17482
17483         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
17484         unused variable.
17485
17486 2007-03-17  Bruno Haible  <bruno@clisp.org>
17487
17488         * tests/test-c-strcasecmp.c: Include c-strcase.h.
17489         * tests/test-c-strncasecmp.c: Likewise.
17490
17491 2007-03-17  Bruno Haible  <bruno@clisp.org>
17492
17493         * modules/stdlib (Depends-on): Add unistd.
17494         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
17495         Needed for MacOS X 10.3.
17496
17497 2007-03-17  Bruno Haible  <bruno@clisp.org>
17498
17499         * lib/unistr/u-strdup.h: Include <stdlib.h>.
17500
17501 2007-03-17  Bruno Haible  <bruno@clisp.org>
17502
17503         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
17504
17505 2007-03-17  Bruno Haible  <bruno@clisp.org>
17506
17507         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
17508         to reflect files copied from gnulib (with or without modifications).
17509         Suggested by Jim Meyering.
17510
17511 2007-03-17  Eric Blake  <ebb9@byu.net>
17512
17513         * NEWS: Document stdlib change from 2007-02-18.
17514
17515 2007-03-17  Jim Meyering  <jim@meyering.net>
17516
17517         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
17518         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
17519         someone uses a name containing shell meta-characters.
17520         Reported by Alfred M. Szmidt.
17521
17522         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
17523
17524 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
17525
17526         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
17527         and copy gettext configuration files only if configure.ac contains
17528         a use of AM_GNU_GETTEXT_VERSION.
17529
17530 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
17531
17532         * build-aux/bootstrap (gnulib_name): New variable.
17533         (gnulib_tool_options): Use it.
17534
17535 2007-03-13  Simon Josefsson  <simon@josefsson.org>
17536
17537         * tests/test-des.c: Use new namespace.
17538
17539 2007-03-15  Bruno Haible  <bruno@clisp.org>
17540
17541         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
17542         Reported by James Youngman <jay@gnu.org>.
17543
17544 2007-03-15  Bruno Haible  <bruno@clisp.org>
17545
17546         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
17547         declared prototype. Needed with cc on OSF/1 5.1.
17548
17549 2007-03-15  Bruno Haible  <bruno@clisp.org>
17550
17551         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
17552         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
17553         (struct gl_list_implementation): Add dispose_fn argument to the
17554         'create_empty', 'create' methods.
17555         (struct gl_list_impl_base): Add field 'dispose_fn'.
17556         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
17557         argument.
17558         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
17559         dispose_fn argument.
17560         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
17561         dispose_fn on the dropped values.
17562         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
17563         dispose_fn argument.
17564         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
17565         dropped values.
17566         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
17567         (gl_tree_remove_node): Call dispose_fn on the dropped value.
17568         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
17569         (gl_tree_remove_node): Call dispose_fn on the dropped value.
17570         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
17571         argument.
17572         (gl_tree_list_free): Call dispose_fn on the dropped values.
17573         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
17574         the dropped values.
17575         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
17576         Add dispose_fn argument.
17577         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
17578         Call dispose_fn on the dropped values.
17579         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
17580         Add dispose_fn argument.
17581         (gl_sublist_create): Initialize the 'dispose_fn' field.
17582         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
17583         * tests/test-array_list.c (main): Update.
17584         * tests/test-carray_list.c (main): Update.
17585         * tests/test-avltree_list.c (main): Update.
17586         * tests/test-rbtree_list.c (main): Update.
17587         * tests/test-avltreehash_list.c (main): Update.
17588         * tests/test-rbtreehash_list.c (main): Update.
17589         * tests/test-linked_list.c (main): Update.
17590         * tests/test-linkedhash_list.c (main): Update.
17591         * tests/test-array_oset.c (main): Update.
17592
17593 2007-03-15  Bruno Haible  <bruno@clisp.org>
17594
17595         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
17596         (gl_oset_create_empty): Add dispose_fn argument.
17597         (struct gl_oset_implementation): Add dispose_fn argument to
17598         'create_empty' method.
17599         (struct gl_oset_impl_base): Add dispose_fn field.
17600         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
17601         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
17602         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
17603         values.
17604         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
17605         (gl_tree_oset_free): Call dispose_fn on the dropped values.
17606         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
17607         dropped value.
17608         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
17609         dropped value.
17610         * tests/test-array_oset.c (main): Update.
17611         * tests/test-avltree_oset.c (main): Update.
17612         * tests/test-rbtree_oset.c (main): Update.
17613         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
17614
17615 2007-03-13  Bruno Haible  <bruno@clisp.org>
17616
17617         * tests/test-stdbool.c (i): Update after last patch.
17618
17619 2007-03-12  Bruno Haible  <bruno@clisp.org>
17620
17621         * lib/quotearg.c: Include <wctype.h> early, before the definition of
17622         the iswprint macro. Needed on Solaris 2.5.1.
17623
17624 2007-03-12  Bruno Haible  <bruno@clisp.org>
17625
17626         * tests/test-printf-frexp.c (main): Declare x as volatile.
17627
17628 2007-03-12  Simon Josefsson  <simon@josefsson.org>
17629
17630         * doc/gnulib.texi (Build robot for gnulib): New section.
17631
17632 2007-03-12  Jim Meyering  <jim@meyering.net>
17633
17634         * build-aux/bootstrap: New file.
17635         * build-aux/bootstrap.conf: New file, from coreutils.
17636
17637 2007-03-11  Bruno Haible  <bruno@clisp.org>
17638
17639         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
17640
17641 2007-03-12  Simon Josefsson  <simon@josefsson.org>
17642
17643         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
17644         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
17645         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
17646
17647 2007-03-11  Bruno Haible  <bruno@clisp.org>
17648
17649         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
17650         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
17651
17652 2007-03-11  Bruno Haible  <bruno@clisp.org>
17653
17654         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
17655         formula. Needed for SunPRO C 5.0.
17656
17657 2007-03-11  Bruno Haible  <bruno@clisp.org>
17658
17659         * modules/long-options (Depends-on): Add getopt.
17660
17661 2007-03-11  Bruno Haible  <bruno@clisp.org>
17662
17663         * modules/modechange (Depends-on): Add stdbool.
17664
17665 2007-03-11  Bruno Haible  <bruno@clisp.org>
17666
17667         * modules/i-ring (Depends-on): Add stdbool.
17668
17669 2007-03-11  Bruno Haible  <bruno@clisp.org>
17670
17671         * modules/gc-des (Depends-on): Add stdbool.
17672
17673 2007-03-11  Bruno Haible  <bruno@clisp.org>
17674
17675         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
17676
17677 2007-03-11  Bruno Haible  <bruno@clisp.org>
17678
17679         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
17680
17681 2007-03-11  Bruno Haible  <bruno@clisp.org>
17682
17683         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
17684
17685 2007-03-11  Bruno Haible  <bruno@clisp.org>
17686
17687         * lib/vasnprintf.c (sprintf): Undefine.
17688
17689 2007-03-11  Bruno Haible  <bruno@clisp.org>
17690
17691         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
17692         initializers in SunPRO C and Compaq C compilers.
17693
17694 2007-03-11  Bruno Haible  <bruno@clisp.org>
17695
17696         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
17697         decrementing code ANSI C compliant.
17698
17699 2007-03-11  Bruno Haible  <bruno@clisp.org>
17700
17701         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
17702         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
17703
17704 2007-03-11  Bruno Haible  <bruno@clisp.org>
17705
17706         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
17707         <stdbool.h> substitute doesn't pass.
17708
17709 2007-03-11  Bruno Haible  <bruno@clisp.org>
17710
17711         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
17712
17713 2007-03-11  Bruno Haible  <bruno@clisp.org>
17714
17715         * gnulib-tool (func_create_megatestdir): Create also an autobuild
17716         script, for submission to autobuild.josefsson.org.
17717
17718 2007-03-10  Bruno Haible  <bruno@clisp.org>
17719
17720         * modules/canonicalize-lgpl-tests: New file.
17721         * tests/test-canonicalize-lgpl.sh: New file.
17722         * tests/test-canonicalize-lgpl.c: New file.
17723
17724         * modules/c-strcase-tests: New file.
17725         * tests/test-c-strcase.sh: New file.
17726         * tests/test-c-strcasecmp.c: New file.
17727         * tests/test-c-strncasecmp.c: New file.
17728
17729         * modules/atexit-tests: New file.
17730         * tests/test-atexit.sh: New file.
17731         * tests/test-atexit.c: New file.
17732
17733 2007-03-10  Bruno Haible  <bruno@clisp.org>
17734
17735         * tests/test-binary-io.sh: Use temporary filenames that are not so
17736         likely to clash with those of other tests (in a parallel make).
17737         * tests/test-binary-io.c: Likewise.
17738
17739 2007-03-10  Bruno Haible  <bruno@clisp.org>
17740
17741         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
17742         fallback; use #error instead.
17743         Suggested by Simon Josefsson.
17744
17745 2007-03-10  Bruno Haible  <bruno@clisp.org>
17746
17747         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
17748         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
17749         first and the last.
17750
17751 2007-03-10  Bruno Haible  <bruno@clisp.org>
17752
17753         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
17754
17755 2007-03-10  Bruno Haible  <bruno@clisp.org>
17756
17757         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
17758         "make distcheck".
17759         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
17760         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
17761         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
17762
17763 2007-03-10  Bruno Haible  <bruno@clisp.org>
17764
17765         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
17766         variable.
17767         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
17768         variable.
17769
17770 2007-03-09  Eric Blake  <ebb9@byu.net>
17771         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
17772
17773         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
17774         types are not being provided by gnulib.
17775         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
17776         types are supported.
17777
17778 2007-03-10  Bruno Haible  <bruno@clisp.org>
17779
17780         * lib/stdio_.h (__attribute__): New macro.
17781         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
17782         vsprintf): Specify __attribute__ __format__ for GCC.
17783         Suggested by Eric Blake.
17784
17785 2007-03-09  Bruno Haible  <bruno@clisp.org>
17786
17787         * modules/printf-posix-tests: New file.
17788         * tests/test-printf-posix.sh: New file.
17789         * tests/test-printf-posix.c: New file.
17790
17791         * modules/printf-posix: New file.
17792         * lib/printf.c: New file.
17793         * m4/printf-posix-rpl.m4: New file.
17794         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
17795         REPLACE_PRINTF.
17796         * lib/stdio_.h (printf): New declaration.
17797         (format, __format__, ____printf____, ____scanf____, ____strftime____,
17798         ____strfmon____): New macros.
17799         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
17800         REPLACE_PRINTF.
17801
17802 2007-03-09  Bruno Haible  <bruno@clisp.org>
17803
17804         * tests/test-vasnprintf-posix2.sh: New file.
17805         * tests/test-vasnprintf-posix2.c: New file.
17806         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
17807         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
17808         (Makefile.am): Activate test-vasnprintf-posix2.sh.
17809
17810         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
17811         a locale dependent decimal point, rather than always '.'.
17812
17813 2007-03-09  Eric Blake  <ebb9@byu.net>
17814
17815         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
17816         spite of platforms like Tandem/NSK that define it to -1.
17817
17818 2007-03-08  Bruno Haible  <bruno@clisp.org>
17819
17820         * modules/vprintf-posix-tests: New file.
17821         * tests/test-vprintf-posix.sh: New file.
17822         * tests/test-vprintf-posix.c: New file.
17823         * tests/test-printf-posix.h: New file.
17824
17825         * modules/vprintf-posix: New file.
17826         * lib/vprintf.c: New file.
17827         * m4/vprintf-posix.m4: New file.
17828         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
17829         REPLACE_VPRINTF.
17830         * lib/stdio_.h (vprintf): New declaration.
17831         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
17832         REPLACE_VPRINTF.
17833
17834 2007-03-08  Bruno Haible  <bruno@clisp.org>
17835
17836         * modules/fprintf-posix-tests: New file.
17837         * tests/test-fprintf-posix.sh: New file.
17838         * tests/test-fprintf-posix.c: New file.
17839
17840         * modules/fprintf-posix: New file.
17841         * lib/fprintf.c: New file.
17842         * m4/fprintf-posix.m4: New file.
17843         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
17844         REPLACE_FPRINTF.
17845         * lib/stdio_.h (fprintf): New declaration.
17846         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
17847         REPLACE_FPRINTF.
17848
17849 2007-03-08  Bruno Haible  <bruno@clisp.org>
17850
17851         * modules/vfprintf-posix-tests: New file.
17852         * tests/test-vfprintf-posix.sh: New file.
17853         * tests/test-vfprintf-posix.c: New file.
17854         * tests/test-fprintf-posix.h: New file.
17855         * tests/test-fprintf-posix.out: New file.
17856
17857         * modules/vfprintf-posix: New file.
17858         * lib/vfprintf.c: New file.
17859         * m4/vfprintf-posix.m4: New file.
17860         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
17861         REPLACE_VFPRINTF.
17862         * lib/stdio_.h (vfprintf): New declaration.
17863         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
17864         REPLACE_VFPRINTF.
17865
17866 2007-03-08  Bruno Haible  <bruno@clisp.org>
17867
17868         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
17869
17870 2007-03-08  Bruno Haible  <bruno@clisp.org>
17871
17872         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
17873         instead of 'expr' invocations.
17874         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
17875         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
17876         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
17877         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
17878         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
17879         Suggested by Paul Eggert.
17880
17881 2007-03-08  Bruno Haible  <bruno@clisp.org>
17882
17883         * modules/fseterr-tests: New file.
17884         * tests/test-fseterr.c: New file.
17885
17886         * modules/fseterr: New file.
17887         * lib/fseterr.h: New file.
17888         * lib/fseterr.c: New file.
17889
17890 2007-03-08  Bruno Haible  <bruno@clisp.org>
17891
17892         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
17893         * lib/getopt_.h: Likewise.
17894         * lib/mbswidth.h: Likewise.
17895         * lib/setenv.h: Likewise.
17896         * lib/vasnprintf.h: Likewise.
17897         * lib/vasprintf.h: Likewise.
17898         * lib/verror.h: Likewise.
17899         * lib/xsetenv.h: Likewise.
17900         * lib/xvasprintf.h: Likewise.
17901
17902 2007-03-08  Jim Meyering  <jim@meyering.net>
17903
17904         * users.txt: Add parted.
17905
17906         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
17907
17908 2007-03-07  Bruno Haible  <bruno@clisp.org>
17909
17910         * m4/printf.m4: Make the shell script snippets copy&pastable.
17911
17912 2007-03-02  Bruno Haible  <bruno@clisp.org>
17913
17914         * lib/netinet_in_.h: New file.
17915         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
17916         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
17917         * modules/netinet_in (Files): Add lib/netinet_in_.h.
17918         (Depends-on): Add absolute-header.
17919         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
17920         into netinet/in.h.
17921
17922 2007-03-03  Bruno Haible  <bruno@clisp.org>
17923
17924         * lib/sys_select_.h: New file.
17925         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
17926         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
17927         * modules/sys_select (Files): Add lib/sys_select_.h.
17928         (Depends-on): Add absolute-header.
17929         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
17930         into sys/select.h.
17931
17932 2007-03-02  Bruno Haible  <bruno@clisp.org>
17933
17934         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
17935         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
17936         values.
17937         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
17938         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
17939         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
17940         * modules/sys_socket (Depends-on): Add absolute-header.
17941         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
17942         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
17943         (Include): Remove requirement of inclusion of <sys/types.h>.
17944
17945 2007-03-02  Bruno Haible  <bruno@clisp.org>
17946
17947         * lib/byteswap_.h (bswap_32): Fix formula.
17948
17949 2007-03-06  Bruno Haible  <bruno@clisp.org>
17950
17951         * modules/sprintf-posix-tests: New file.
17952         * tests/test-sprintf-posix.c: New file.
17953
17954         * modules/sprintf-posix: New file.
17955         * lib/sprintf.c: New file.
17956         * m4/sprintf-posix.m4: New file.
17957         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
17958         REPLACE_SPRINTF.
17959         * lib/stdio_.h (sprintf): New declaration.
17960         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
17961         REPLACE_SPRINTF.
17962
17963 2007-03-06  Bruno Haible  <bruno@clisp.org>
17964
17965         * modules/vsprintf-posix-tests: New file.
17966         * tests/test-vsprintf-posix.c: New file.
17967         * tests/test-sprintf-posix.h: New file.
17968
17969         * modules/vsprintf-posix: New file.
17970         * lib/vsprintf.c: New file.
17971         * m4/vsprintf-posix.m4: New file.
17972         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
17973         REPLACE_VSPRINTF.
17974         * lib/stdio_.h (vsprintf): New declaration.
17975         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
17976         REPLACE_VSPRINTF.
17977
17978 2007-03-06  Bruno Haible  <bruno@clisp.org>
17979
17980         * modules/vsnprintf (Depend-on): Remove minmax.
17981
17982 2007-03-06  Bruno Haible  <bruno@clisp.org>
17983
17984         * modules/snprintf-posix-tests: New file.
17985         * tests/test-snprintf-posix.c: New file.
17986
17987         * modules/snprintf-posix: New file.
17988         * m4/snprintf-posix.m4: New file.
17989         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
17990         gl_FUNC_SNPRINTF.
17991         (gl_FUNC_SNPRINTF): Invoke it.
17992         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
17993         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
17994         is set.
17995         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
17996
17997 2007-03-06  Bruno Haible  <bruno@clisp.org>
17998
17999         * modules/vsnprintf-posix-tests: New file.
18000         * tests/test-vsnprintf-posix.c: New file.
18001         * tests/test-snprintf-posix.h: New file.
18002
18003         * modules/vsnprintf-posix: New file.
18004         * m4/vsnprintf-posix.m4: New file.
18005         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
18006         gl_FUNC_VSNPRINTF.
18007         (gl_FUNC_VSNPRINTF): Invoke it.
18008         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
18009         * lib/stdio_.h (vsnprintf): Define as a replacement if
18010         REPLACE_VSNPRINTF is set.
18011         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
18012
18013 2007-03-06  Bruno Haible  <bruno@clisp.org>
18014
18015         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
18016         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
18017
18018 2007-03-06  Bruno Haible  <bruno@clisp.org>
18019
18020         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
18021         (asinl): Declare also if HAVE_DECL_ASINL is set.
18022         (atanl): Declare also if HAVE_DECL_ATANL is set.
18023         (ceill): Declare also if HAVE_DECL_CEILL is set.
18024         (cosl): Declare also if HAVE_DECL_COSL is set.
18025         (expl): Declare also if HAVE_DECL_EXPL is set.
18026         (floorl): Declare also if HAVE_DECL_FLOORL is set.
18027         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
18028         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
18029         (logl): Declare also if HAVE_DECL_LOGL is set.
18030         (sinl): Declare also if HAVE_DECL_SINL is set.
18031         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
18032         (tanl): Declare also if HAVE_DECL_TANL is set.
18033         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
18034         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
18035         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
18036         declaration of frexpl, ldexpl.
18037         * modules/printf-frexpl (Depends-on): Add math.
18038         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
18039
18040 2007-03-05  Bruno Haible  <bruno@clisp.org>
18041
18042         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
18043         frexpl and ldexpl are declared.
18044         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
18045
18046 2007-03-05  Bruno Haible  <bruno@clisp.org>
18047
18048         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
18049         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
18050
18051 2007-03-05  Bruno Haible  <bruno@clisp.org>
18052
18053         * lib/stdio_.h: Include <stddef.h>.
18054
18055 2007-03-05  Bruno Haible  <bruno@clisp.org>
18056
18057         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
18058
18059 2007-03-05  Bruno Haible  <bruno@clisp.org>
18060
18061         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
18062         NetBSD 4, from Ralf Wildenhues.
18063
18064 2007-03-04  Bruno Haible  <bruno@clisp.org>
18065
18066         * lib/vasprintf.h: Update #if logic for the case when the functions
18067         exist but are overridden.
18068
18069 2007-03-04  Bruno Haible  <bruno@clisp.org>
18070
18071         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
18072         implementations: glibc-2.4 and MacOS X 10.3.
18073         * tests/test-vasnprintf-posix.c (test_function): Test also the case
18074         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
18075         * tests/test-vasprintf-posix.c (test_function): Likewise.
18076
18077 2007-03-04  Bruno Haible  <bruno@clisp.org>
18078
18079         * modules/vasprintf-posix-tests: New file.
18080         * tests/test-vasprintf-posix.c: New file.
18081
18082         * modules/vasprintf-posix: New file.
18083         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
18084         defined.
18085         * m4/vasprintf-posix.m4: New file.
18086         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
18087         gl_FUNC_VASPRINTF.
18088         (gl_FUNC_VASPRINTF): Invoke it.
18089         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
18090         here.
18091         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
18092
18093 2007-03-04  Bruno Haible  <bruno@clisp.org>
18094
18095         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
18096         REPLACE_GETTIMEOFDAY.
18097         * modules/sys_time (Makefile.am): Likewise.
18098         * m4/sys_time_h.m4: Likewise.
18099         * m4/gettimeofday.m4: Likewise.
18100
18101 2007-03-04  Bruno Haible  <bruno@clisp.org>
18102
18103         * modules/vasnprintf-posix-tests: New file.
18104         * tests/test-vasnprintf-posix.c: New file.
18105
18106         * modules/vasnprintf-posix: New file.
18107         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
18108         printf-frexpl.h.
18109         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
18110         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
18111         REPLACE_VASNPRINTF is defined.
18112         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
18113         gl_FUNC_VASNPRINTF.
18114         (gl_FUNC_VASNPRINTF): Invoke it.
18115         * m4/vasnprintf-posix.m4: New file.
18116         * m4/printf.m4: New file.
18117
18118 2007-03-04  Bruno Haible  <bruno@clisp.org>
18119
18120         Compile progreloc.c only if --enable-relocatable is specified.
18121         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
18122         if --enable-relocatable was specified.
18123         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
18124         lib_SOURCES.
18125
18126 2007-03-04  Jim Meyering  <jim@meyering.net>
18127
18128         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
18129         Use it consistently, rather than enumerating errno constants.
18130
18131 2007-03-04  Bruno Haible  <bruno@clisp.org>
18132
18133         * modules/xvasprintf-tests: New file.
18134         * tests/test-xvasprintf.c: New file.
18135
18136         * modules/vasprintf-tests: New file.
18137         * tests/test-vasprintf.c: New file.
18138
18139         * modules/vasnprintf-tests: New file.
18140         * tests/test-vasnprintf.c: New file.
18141
18142         * modules/vsnprintf-tests: New file.
18143         * tests/test-vsnprintf.c: New file.
18144
18145         * modules/snprintf-tests: New file.
18146         * tests/test-snprintf.c: New file.
18147
18148 2007-03-04  Bruno Haible  <bruno@clisp.org>
18149
18150         Compile relocatable.c only if --enable-relocatable is specified.
18151         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
18152         gl_RELOCATABLE_LIBRARY.
18153         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
18154         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
18155         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
18156         gl_RELOCATABLE_LIBRARY.
18157         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
18158         (Makefile.am): Remove lib_SOURCES.
18159         * modules/relocatable-lib-lgpl (configure.ac): Invoke
18160         gl_RELOCATABLE_LIBRARY.
18161         (Makefile.am): Remove lib_SOURCES.
18162         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
18163         always.
18164         * modules/relocatable-prog-wrapper (configure.ac): Invoke
18165         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
18166
18167 2007-03-04  Bruno Haible  <bruno@clisp.org>
18168
18169         * modules/argmatch-tests: New file.
18170         * tests/test-argmatch.c: New file.
18171
18172         * tests/test-allocsa.c (main): Halve the number of loop runs.
18173
18174         * modules/alloca-opt-tests: New file.
18175         * tests/test-alloca-opt.c: New file.
18176
18177 2007-03-04  Jim Meyering  <jim@meyering.net>
18178
18179         Work around difference between Linux ACLs and Solaris 10 ZFS.
18180         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
18181         for EINVAL.
18182
18183 2007-03-03  Bruno Haible  <bruno@clisp.org>
18184
18185         * modules/relocatable-prog (Depends-on): Add back progreloc's
18186         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
18187
18188 2007-03-03  Bruno Haible  <bruno@clisp.org>
18189
18190         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
18191         * modules/relocatable-lib: New file.
18192
18193 2007-03-03  Bruno Haible  <bruno@clisp.org>
18194
18195         * modules/relocatable-prog: Renamed from modules/relocatable.
18196         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
18197
18198 2007-03-03  Bruno Haible  <bruno@clisp.org>
18199
18200         * modules/relocatable-script (Files): Add doc/relocatable.texi,
18201         m4/relocatable-lib.m4.
18202         (Depends-on): Remove 'relocatable'.
18203         (configure.ac): Add gl_RELOCATABLE_NOP.
18204
18205 2007-03-03  Bruno Haible  <bruno@clisp.org>
18206
18207         * modules/relocatable-prog-wrapper: New file.
18208         * modules/relocatable (Depends-on): Add it. Remove all other
18209         dependencies except progname.
18210         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
18211
18212         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
18213         (gl_FUNC_STRERROR): Nop.
18214         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
18215
18216         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
18217         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
18218
18219         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
18220         (gl_FUNC_READLINK): Update.
18221
18222         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
18223
18224 2007-03-03  Bruno Haible  <bruno@clisp.org>
18225
18226         * lib/xreadlink.c: Include <unistd.h> unconditionally.
18227         * modules/xreadlink (Depends-on): Add unistd.
18228         * modules/xreadlink-with-size (Depends-on): Likewise.
18229
18230 2007-03-03  Bruno Haible  <bruno@clisp.org>
18231
18232         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
18233         extracted from gt_FUNC_SETENV.
18234         (gt_FUNC_SETENV): Remove macro.
18235         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
18236         remove gt_FUNC_SETENV.
18237
18238 2007-03-03  Bruno Haible  <bruno@clisp.org>
18239
18240         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
18241         ENABLE_RELOCATABLE here.
18242         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
18243
18244 2007-03-03  Bruno Haible  <bruno@clisp.org>
18245
18246         * modules/rbtreehash-list-tests (Depends-on): Add progname.
18247         * tests/test-rbtreehash_list.c: Include progname.h.
18248         (main): Call set_program_name.
18249
18250         * modules/rbtree-oset-tests (Depends-on): Add progname.
18251         * tests/test-rbtree_oset.c: Include progname.h.
18252         (main): Call set_program_name.
18253
18254         * modules/rbtree-list-tests (Depends-on): Add progname.
18255         * tests/test-rbtree_list.c: Include progname.h.
18256         (main): Call set_program_name.
18257
18258         * modules/linked-list-tests (Depends-on): Add progname.
18259         * tests/test-linked_list.c: Include progname.h.
18260         (main): Call set_program_name.
18261
18262 2007-03-03  Bruno Haible  <bruno@clisp.org>
18263
18264         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
18265         All uses of __restrict changed to _Restrict_.
18266         * lib/glob_.h (__restrict): Remove macro.
18267
18268 2007-03-02  Bruno Haible  <bruno@clisp.org>
18269
18270         * modules/gettext (configure.ac): Require gettext infrastructure
18271         from version 0.16.1.
18272
18273 2007-03-02  Bruno Haible  <bruno@clisp.org>
18274
18275         * modules/linkedhash-list-tests (Depends-on): Add progname.
18276         * tests/test-linkedhash_list.c: Include progname.h.
18277         (main): Call set_program_name.
18278
18279         * modules/carray-list-tests (Depends-on): Add progname.
18280         * tests/test-carray_list.c: Include progname.h.
18281         (main): Call set_program_name.
18282
18283         * modules/avltreehash-list-tests (Depends-on): Add progname.
18284         * tests/test-avltreehash_list.c: Include progname.h.
18285         (main): Call set_program_name.
18286
18287         * modules/avltree-oset-tests (Depends-on): Add progname.
18288         * tests/test-avltree_oset.c: Include progname.h.
18289         (main): Call set_program_name.
18290
18291         * modules/avltree-list-tests (Depends-on): Add progname.
18292         * tests/test-avltree_list.c: Include progname.h.
18293         (main): Call set_program_name.
18294
18295         * modules/array-oset-tests (Depends-on): Add progname.
18296         * tests/test-array_oset.c: Include progname.h.
18297         (main): Call set_program_name.
18298
18299         * modules/array-list-tests (Depends-on): Add progname.
18300         * tests/test-array_list.c: Include progname.h.
18301         (main): Call set_program_name.
18302
18303         * modules/argp-tests (Depends-on): Add progname.
18304         * tests/test-argp.c: Include argp.h first. Include progname.h.
18305         (main): Call set_program_name.
18306
18307 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
18308
18309         * doc/gnulib-tool.texi (Initial import): Reword description of
18310         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
18311         limited effect even if defined after the first system include.
18312
18313 2007-03-01  Bruno Haible  <bruno@clisp.org>
18314
18315         * build-aux/config.libpath: Update to libtool-1.5.22.
18316         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
18317
18318 2007-03-01  Bruno Haible  <bruno@clisp.org>
18319
18320         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
18321         foo_CFLAGS.
18322         Reported by Ralf Wildenhues.
18323
18324 2007-03-01  Bruno Haible  <bruno@clisp.org>
18325
18326         * build-aux/install-reloc: Remove object files left over by some
18327         compilers.
18328         Reported by Ralf Wildenhues.
18329
18330 2007-03-01  Bruno Haible  <bruno@clisp.org>
18331
18332         * build-aux/install-reloc: Break long lines.
18333
18334 2007-03-01  Bruno Haible  <bruno@clisp.org>
18335
18336         * doc/relocatable.texi: Document that it may not work on OpenBSD.
18337         Reported by Ralf Wildenhues.
18338
18339 2007-03-01  Bruno Haible  <bruno@clisp.org>
18340
18341         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
18342         include ordering constraints.
18343
18344 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
18345
18346         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
18347         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
18348         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
18349         as another example.
18350         * lib/time_.h: Fix misspelling.
18351         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
18352         Require gl_HEADER_TIME_H_DEFAULTS.
18353         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
18354         * m4/time_r.m4 (gl_TIME_R): Likewise.
18355         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
18356
18357 2007-03-01  Bruno Haible  <bruno@clisp.org>
18358
18359         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
18360         * m4/utimens.m4 (gl_UTIMENS): Likewise.
18361
18362 2007-03-01  Jim Meyering  <jim@meyering.net>
18363
18364         * modules/xreadlink (Maintainer): Add my name.
18365         * modules/xreadlink-with-size (Depends-on): Alphabetize.
18366
18367 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
18368             Bruno Haible  <bruno@clisp.org>
18369
18370         * build-aux/install-reloc: Compile also c-ctype.c.
18371         * build-aux/relocatable.sh.in: New file.
18372         * doc/relocatable.texi: New file.
18373         * doc/relocatable-maint.texi: New file.
18374         * doc/gnulib.texi: Include relocatable-maint.texi.
18375         * lib/progreloc.c: Include unistd.h unconditionally.
18376         * lib/relocwrapper.c: Include unistd.h unconditionally.
18377         Include c-ctype.h.
18378         (add_dotbin): Use c_tolower.
18379         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
18380         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
18381         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
18382         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
18383         to m4/relocatable-lib.m4.
18384         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
18385         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
18386         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
18387         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
18388         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
18389         * modules/relocatable: New file.
18390         * modules/relocatable-lib: New file.
18391         * modules/relocatable-script: New file.
18392
18393 2007-02-28  Bruno Haible  <bruno@clisp.org>
18394
18395         Import --enable-relocatable infrastructure.
18396         * build-aux/config.libpath: New file, from GNU gettext.
18397         * build-aux/install-reloc: New file, from GNU gettext.
18398         * build-aux/reloc-ldflags: New file, from GNU gettext.
18399         * lib/relocatable.h: New file, from GNU gettext.
18400         * lib/relocatable.c: New file, from GNU gettext.
18401         * lib/relocwrapper.c: New file, from GNU gettext.
18402         * m4/relocatable.m4: New file, from GNU gettext.
18403
18404 2007-02-28  Bruno Haible  <bruno@clisp.org>
18405
18406         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
18407
18408         * modules/xreadlink: New file, from GNU gettext with modifications.
18409         * lib/xreadlink.c: New file, from GNU gettext.
18410         * lib/xreadlink.h: Add comments.
18411         (xreadlink): New declaration.
18412
18413         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
18414         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
18415         lib/xreadlink-with-size.c.
18416         (configure.ac): Remove gl_XREADLINK invocation.
18417         (Makefile.am): Augment lib_SOURCES.
18418         * m4/xreadlink.m4: Remove file.
18419         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
18420         (xreadlink_with_size): Renamed from xreadink.
18421         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
18422         * modules/canonicalize (Depends-on): Replace xreadlink with
18423         xreadlink-with-size.
18424         * lib/canonicalize.c (canonicalize_filename_mode): Update.
18425
18426 2007-02-25  Jim Meyering  <jim@meyering.net>
18427
18428         * build-aux/announce-gen: When complaining about excess arguments,
18429         list them.
18430
18431 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
18432
18433         * README: Document signed integer overflow situation more
18434         accurately.
18435
18436 2007-02-25  Bruno Haible  <bruno@clisp.org>
18437
18438         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
18439         'a' or 'A' conversion.
18440
18441 2007-02-25  Bruno Haible  <bruno@clisp.org>
18442
18443         * modules/filename: Renamed from modules/pathname.
18444         (Files): Replace lib/pathname.h with lib/filename.h. Replace
18445         lib/concatpath.c with lib/concat-filename.c.
18446         (Makefile.am): Update.
18447         (Include): Replace pathname.h with filename.h.
18448         * lib/filename.h: Renamed from lib/pathname.h.
18449         (concatenated_filename): Renamed from concatenated_pathname.
18450         * lib/concat-filename.c: Renamed from lib/concatpath.c.
18451         (concatenated_filename): Renamed from concatenated_pathname.
18452         * lib/findprog.c: Include filename.h instead of pathname.h.
18453         (find_in_path): Update.
18454         * lib/javacomp.c: Include filename.h instead of pathname.h.
18455         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
18456         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
18457         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
18458         is_oldgcj_14_13_usable, is_javac_usable): Update.
18459         * lib/javaexec.c: Include filename.h instead of pathname.h.
18460         (execute_java_class): Update.
18461         * modules/findprog: Update.
18462         * modules/javacomp: Update.
18463         * modules/javaexec: Update.
18464         * MODULES.html.sh (File system functions): Add 'filename', remove
18465         'pathname'.
18466
18467 2007-02-25  Bruno Haible  <bruno@clisp.org>
18468
18469         * modules/printf-frexpl-tests: New file.
18470         * tests/test-printf-frexpl.c: New file.
18471
18472         * modules/printf-frexpl: New file.
18473         * lib/printf-frexpl.h: New file.
18474         * lib/printf-frexpl.c: New file.
18475         * m4/printf-frexpl.m4: New file.
18476
18477 2007-02-25  Bruno Haible  <bruno@clisp.org>
18478
18479         * modules/printf-frexp-tests: New file.
18480         * tests/test-printf-frexp.c: New file.
18481
18482         * modules/printf-frexp: New file.
18483         * lib/printf-frexp.h: New file.
18484         * lib/printf-frexp.c: New file.
18485         * m4/printf-frexp.m4: New file.
18486
18487 2007-02-25  Bruno Haible  <bruno@clisp.org>
18488
18489         Assume automake >= 1.10 for the tests.
18490         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
18491         * modules/arctwo-tests: Likewise.
18492         * modules/argp-tests: Likewise.
18493         * modules/avltree-list-tests: Likewise.
18494         * modules/avltree-oset-tests: Likewise.
18495         * modules/avltreehash-list-tests: Likewise.
18496         * modules/carray-list-tests: Likewise.
18497         * modules/crc-tests: Likewise.
18498         * modules/des-tests: Likewise.
18499         * modules/gc-arcfour-tests: Likewise.
18500         * modules/gc-arctwo-tests: Likewise.
18501         * modules/gc-des-tests: Likewise.
18502         * modules/gc-hmac-md5-tests: Likewise.
18503         * modules/gc-hmac-sha1-tests: Likewise.
18504         * modules/gc-md2-tests: Likewise.
18505         * modules/gc-md4-tests: Likewise.
18506         * modules/gc-md5-tests: Likewise.
18507         * modules/gc-pbkdf2-sha1-tests: Likewise.
18508         * modules/gc-rijndael-tests: Likewise.
18509         * modules/gc-sha1-tests: Likewise.
18510         * modules/gc-tests: Likewise.
18511         * modules/getaddrinfo-tests: Likewise.
18512         * modules/hmac-md5-tests: Likewise.
18513         * modules/hmac-sha1-tests: Likewise.
18514         * modules/linked-list-tests: Likewise.
18515         * modules/linkedhash-list-tests: Likewise.
18516         * modules/lock-tests: Likewise.
18517         * modules/md2-tests: Likewise.
18518         * modules/md4-tests: Likewise.
18519         * modules/md5-tests: Likewise.
18520         * modules/rbtree-list-tests: Likewise.
18521         * modules/rbtree-oset-tests: Likewise.
18522         * modules/rbtreehash-list-tests: Likewise.
18523         * modules/read-file-tests: Likewise.
18524         * modules/rijndael-tests: Likewise.
18525         * modules/stdint-tests: Likewise.
18526         * modules/tls-tests: Likewise.
18527
18528 2007-02-24  Bruno Haible  <bruno@clisp.org>
18529
18530         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
18531         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
18532         function; instead check whether isnan with a double argument links.
18533         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
18534         function; instead check whether isnan with a 'long double' argument
18535         links.
18536         Reported by Eric Blake <ebb9@byu.net>.
18537
18538 2007-02-24  Bruno Haible  <bruno@clisp.org>
18539
18540         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
18541         defined.
18542         * lib/isnanl.c: Remove all code. Just include isnan.c.
18543         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
18544
18545 2007-02-25  Jim Meyering  <jim@meyering.net>
18546
18547         Avoid conflicting types for 'unsetenv' on FreeBSD.
18548         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
18549         conflicting with FreeBSD's (5.0 and 6.1) function declaration
18550         in stdlib.h.
18551
18552 2007-02-24  Bruno Haible  <bruno@clisp.org>
18553
18554         * modules/isnanl-nolibm-tests: New file.
18555         * tests/test-isnanl.c: New file.
18556
18557         * modules/isnanl-nolibm: New file.
18558         * lib/isnanl.h: New file.
18559         * lib/isnanl.c: New file.
18560         * m4/isnanl.m4: New file.
18561
18562 2007-02-24  Bruno Haible  <bruno@clisp.org>
18563
18564         * modules/isnan-nolibm-tests: New file.
18565         * tests/test-isnan.c: New file.
18566
18567         * modules/isnan-nolibm: New file.
18568         * lib/isnan.h: New file.
18569         * lib/isnan.c: New file.
18570         * m4/isnan.m4: New file.
18571
18572 2007-02-24  Bruno Haible  <bruno@clisp.org>
18573
18574         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
18575         assume that an exponent fits in 20 bits.
18576
18577 2007-02-24  Jim Meyering  <jim@meyering.net>
18578
18579         * m4/regex.m4: Update the description of the configure-time option,
18580         --without-included-regex, to state accurately what the defaults are,
18581         and perhaps to give people an idea why using this option is risky.
18582
18583 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
18584
18585         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
18586         loops on small arguments.  This attempts to avoid the problem
18587         Bruno Haible reported for AIX 4.3.2 in
18588         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
18589
18590 2007-02-23  Bruno Haible  <bruno@clisp.org>
18591
18592         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
18593         Needed for help2man.
18594
18595 2007-02-23  Karl Berry  <karl@gnu.org>
18596
18597         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
18598         exists, foo.h should be cvs-ignored, not committed.
18599
18600 2007-02-23  Eric Blake  <ebb9@byu.net>
18601
18602         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
18603         * lib/stat-time.h (includes): Likewise.
18604         * lib/utimecmp.c (includes): Likewise.
18605         * lib/utimens.h (includes): Likewise.
18606         * lib/getdate.y (includes): Also include "timespec.h" for use
18607         internal to the module.
18608         * modules/utimens (Depends-on): Revert yesterday's patch.
18609         * modules/nanosleep (Depends-on): Add missing dependency.
18610
18611 2007-02-22  Bruno Haible  <bruno@clisp.org>
18612
18613         * lib/glob.c: Don't include getlogin_r.h.
18614
18615 2007-02-22  Jim Meyering  <jim@meyering.net>
18616
18617         * modules/utimens (Depends-on): Add timespec, required for
18618         utimens.h's inclusion of timespec.h.
18619
18620 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
18621
18622         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
18623         long unreadable paths in GNU/Linux.  Problem reported by Andreas
18624         Schwab in
18625         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
18626         I'll try to think of a better way to fix the Solaris problem.
18627
18628         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
18629         like glibc; on Solaris 10, it fails with errno == EINVAL.
18630         POSIX says the behavior is unspecified if the first argument is NULL,
18631         so play it safe and never pass NULL to the system getcwd.
18632
18633 2007-02-21  Jim Meyering  <jim@meyering.net>
18634
18635         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
18636         of gettimeofday.  It would conflict with the one now always
18637         provided via sys_time_.h.  Reported by Matthew Woehlke, as
18638         an IRIX 6.5 build failure.
18639
18640 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
18641
18642         Minor fixups to port to Solaris 10 with Sun C 5.8.
18643         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
18644         * modules/getcwd (Depends-on): Add dirfd.
18645         * lib/putenv.c (putenv): #undef it.
18646         (rpl_putenv): New decl.
18647         (malloc, free): Include <stdlib.h> rather than prototyping separately.
18648
18649 2007-02-20  Bruno Haible  <bruno@clisp.org>
18650
18651         * modules/stdio-tests: New file.
18652         * tests/test-stdio.c: New file.
18653
18654         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
18655         (Depends-on): Add stdio.
18656         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
18657         (Include): Use <stdio.h> instead of vsnprintf.h.
18658         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
18659         HAVE_DECL_VSNPRINTF.
18660         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
18661
18662         * modules/snprintf (Files): Remove lib/snprintf.h.
18663         (Depends-on): Add stdio.
18664         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
18665         (Include): Use <stdio.h> instead of snprintf.h.
18666         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
18667         HAVE_DECL_SNPRINTF.
18668         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
18669         * lib/getaddrinfo.c: Likewise.
18670
18671         * modules/stdio: New file.
18672         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
18673         * lib/snprintf.h: Remove file.
18674         * lib/vsnprintf.h: Remove file.
18675         * lib/.cppi-disable: Remove snprintf.h.
18676         * m4/stdio_h.m4: New file.
18677         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
18678
18679 2007-02-20  Jim Meyering  <jim@meyering.net>
18680
18681         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
18682         used by e.g., mingw.  From Bruno Haible.
18683
18684 2007-02-19  Bruno Haible  <bruno@clisp.org>
18685
18686         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
18687         warnings.
18688         Reported by Ben Pfaff <blp@cs.stanford.edu>.
18689
18690 2007-02-19  Bruno Haible  <bruno@clisp.org>
18691
18692         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
18693         from mingw users.
18694
18695 2007-02-19  Bruno Haible  <bruno@clisp.org>
18696
18697         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
18698         warnings.
18699         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
18700
18701 2007-02-19  Jim Meyering  <jim@meyering.net>
18702
18703         Don't use FD after a successful "fdopendir (fd)".
18704         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
18705         Reset it by calling dirfd on the just-obtained DIR*.
18706
18707         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
18708         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
18709
18710 2007-02-18  Bruno Haible  <bruno@clisp.org>
18711
18712         * lib/readlink.c: Include <unistd.h>.
18713         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
18714         HAVE_READLINK.
18715         * modules/readlink (Depends-on): Add unistd.
18716         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
18717         (Include): Add <unistd.h>.
18718
18719         * lib/getlogin_r.h: Remove file.
18720         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
18721         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
18722         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
18723         HAVE_DECL_GETLOGIN_R.
18724         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
18725         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
18726         (Include): Use <unistd.h> instead of getlogin_r.h.
18727
18728         * lib/getcwd.h: Remove file.
18729         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
18730         * lib/xgetcwd.c: Likewise.
18731         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
18732         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
18733         * modules/getcwd (Files): Remove lib/getcwd.h.
18734         (Depends-on): Add unistd.
18735         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
18736         (Include): Use <unistd.h> instad of getcwd.h.
18737
18738         * lib/ftruncate.c: Include <unistd.h> first.
18739         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
18740         Set HAVE_FTRUNCATE.
18741         * modules/ftruncate (Depends-on): Add unistd.
18742         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
18743
18744         * lib/fchdir.c: Include <unistd.h> first.
18745         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
18746         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
18747         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
18748         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
18749         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
18750
18751         * lib/dup2.c: Include <unistd.h> first.
18752         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
18753         HAVE_DUP2.
18754         * modules/dup2 (Depends-on): Add unistd.
18755         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
18756
18757         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
18758         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
18759         REPLACE_CHOWN. Don't define chown as a macro here.
18760         * modules/chown (Depends-on): Add unistd.
18761         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
18762
18763         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
18764         Add definition for GL_LINK_WARNING.
18765         (chown, dup2): New declarations.
18766         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
18767         link warning.
18768         (ftruncate): New declaration.
18769         (getcwd): New declaration, taken from old getcwd.h.
18770         (getlogin_r): New declaration, taken from old getlogin_r.h.
18771         (readlink): New declaration.
18772         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
18773         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
18774         (gl_PREREQ_UNISTD): Remove macro.
18775         (gl_UNISTD_MODULE_INDICATOR): New macro.
18776         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
18777         many new variables. Don't set UNISTD_H.
18778         * modules/unistd (Description): Change.
18779         (Depends-on): Add link-warning.
18780         (configure.ac): Update.
18781         (Makefile.am): Create unistd.h always. Substitute many new variables
18782         into it.
18783
18784 2007-02-18  Bruno Haible  <bruno@clisp.org>
18785
18786         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
18787         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
18788         HAVE_GETSUBOPT.
18789         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
18790         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
18791         * lib/getsubopt.h: Remove file.
18792         * modules/getsubopt (Files): Remove lib/getsubopt.h.
18793         (Depends-on): Add stdlib.
18794         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
18795         (Includes): Use <stdlib.h> instead of getsubopt.h.
18796         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
18797         Set HAVE_GETSUBOPT.
18798         * lib/getsubopt.c: Don't include getsubopt.h.
18799
18800 2007-02-18  Bruno Haible  <bruno@clisp.org>
18801
18802         * modules/fchdir (Depends-on): Add dup2.
18803
18804 2007-02-18  Bruno Haible  <bruno@clisp.org>
18805
18806         * lib/stdlib_.h: Handle glibc's special invocation convention
18807         specially.
18808
18809 2007-02-18  Bruno Haible  <bruno@clisp.org>
18810
18811         * modules/stdlib-tests: New file.
18812         * tests/test-stdlib.c: New file.
18813
18814         * modules/mkstemp (Files): Remove lib/mkstemp.h.
18815         (Depends-on): Add stdlib.
18816         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
18817         (Includes): Use <stdlib.h> instead of mkstemp.h.
18818         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
18819         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
18820         * lib/mkstemp.c: Don't include mkstemp.h.
18821         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
18822         * lib/stdlib--.h: Don't include mkstemp.h.
18823
18824         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
18825         (Depends-on): Add stdlib.
18826         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
18827         (Includes): Use <stdlib.h> instead of mkdtemp.h.
18828         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
18829         HAVE_MKDTEMP.
18830         * lib/mkdtemp.c: Don't include mkdtemp.h.
18831         * lib/clean-temp.c: Don't include mkdtemp.h.
18832
18833         * modules/exit (Files): Remove lib/exit.h.
18834         (Depends-on): Add stdlib.
18835         (Makefile.am): Remove lib_SOURCES.
18836         (Include): Use <stdlib.h> instead of exit.h.
18837         * lib/argmatch.c: Don't include exit.h.
18838         * lib/execute.c: Likewise.
18839         * lib/pagealign_alloc.c: Likewise.
18840         * lib/pipe.c: Likewise.
18841         * lib/wait-process.c: Likewise.
18842         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
18843         * lib/exitfail.c: Likewise.
18844         * lib/savewd.c: Likewise.
18845         * lib/xsetenv.c: Likewise.
18846
18847         * modules/stdlib: New file.
18848         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
18849         and extra comments about mkstemp().
18850         * lib/exit.h: Remove file.
18851         * lib/mkdtemp.h: Remove file.
18852         * lib/mkstemp.h: Remove file.
18853         * m4/stdlib_h.m4: New file.
18854         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
18855
18856 2007-02-18  Bruno Haible  <bruno@clisp.org>
18857
18858         * modules/math-tests: New file.
18859         * tests/test-math.c: New file.
18860
18861         * modules/math: New file.
18862         * modules/mathl (Files): Remove lib/mathl.h.
18863         (Depends-on): Add math.
18864         (Makefile.am): Don't mention mathl.h.
18865         (Include): Use <math.h> instead of mathl.h.
18866         * lib/math_.h: New file.
18867         * lib/mathl.h: Remove file.
18868         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
18869         mathl.h.
18870         * lib/asinl.c: Likewise.
18871         * lib/atanl.c: Likewise.
18872         * lib/ceill.c: Likewise.
18873         * lib/cosl.c: Likewise.
18874         * lib/expl.c: Likewise.
18875         * lib/floorl.c: Likewise.
18876         * lib/frexpl.c: Likewise.
18877         * lib/ldexpl.c: Likewise.
18878         * lib/logl.c: Likewise.
18879         * lib/sincosl.c: Likewise.
18880         * lib/sinl.c: Likewise.
18881         * lib/sqrtl.c: Likewise.
18882         * lib/tanl.c: Likewise.
18883         * lib/trigl.c: Likewise.
18884         * m4/math_h.m4: New file.
18885         * MODULES.html.sh (Mathematics): Add math.
18886
18887 2007-02-17  Bruno Haible  <bruno@clisp.org>
18888
18889         * modules/wctype-tests: New file.
18890         * tests/test-wctype.c: New file.
18891
18892         * modules/wchar-tests: New file.
18893         * tests/test-wchar.c: New file.
18894
18895         * modules/unistd-tests: New file.
18896         * tests/test-unistd.c: New file.
18897
18898         * modules/time-tests: New file.
18899         * tests/test-time.c: New file.
18900
18901         * modules/sysexits-tests: New file.
18902         * tests/test-sysexits.c: New file.
18903
18904         * modules/sys_time-tests: New file.
18905         * tests/test-sys_time.c: New file.
18906
18907         * modules/sys_stat-tests: New file.
18908         * tests/test-sys_stat.c: New file.
18909
18910         * modules/sys_socket-tests: New file.
18911         * tests/test-sys_socket.c: New file.
18912
18913         * modules/sys_select-tests: New file.
18914         * tests/test-sys_select.c: New file.
18915
18916         * modules/string-tests: New file.
18917         * tests/test-string.c: New file.
18918
18919         * modules/stdbool-tests: New file.
18920         * tests/test-stdbool.c: New file.
18921
18922         * modules/netinet_in-tests: New file.
18923         * tests/test-netinet_in.c: New file.
18924
18925         * modules/inttypes-tests: New file.
18926         * tests/test-inttypes.c: New file.
18927
18928         * modules/fcntl-tests: New file.
18929         * tests/test-fcntl.c: New file.
18930
18931         * modules/byteswap-tests: New file.
18932         * tests/test-byteswap.c: New file.
18933
18934         * modules/arpa_inet-tests: New file.
18935         * tests/test-arpa_inet.c: New file.
18936
18937 2007-02-17  Bruno Haible  <bruno@clisp.org>
18938
18939         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
18940         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
18941         if the corresponding module is not enabled. Emit link warnings if
18942         the function is used nevertheless.
18943         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
18944         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
18945         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
18946         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
18947         * modules/inttypes (Depends-on): Add link-warning.
18948         (Makefile.am): Copy the contents of build-aux/link-warning.h into
18949         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
18950         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
18951         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
18952         * modules/imaxdiv (configure.ac): Likewise.
18953         * modules/strtoimax (configure.ac): Likewise.
18954         * modules/strtoumax (configure.ac): Likewise.
18955
18956 2007-02-17  Bruno Haible  <bruno@clisp.org>
18957
18958         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
18959         gl_STRING_MODULE_INDICATOR_DEFAULTS.
18960         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
18961         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
18962
18963 2007-02-17  Bruno Haible  <bruno@clisp.org>
18964
18965         * modules/link-warning: New file.
18966         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
18967         * lib/string_.h (GL_LINK_WARNING): Remove definition.
18968         * modules/string (Depends-on): Add link-warning.
18969         (Makefile.am): Copy the contents of build-aux/link-warning.h into
18970         string.h.
18971         * MODULES.html.sh (Support for building libraries and executables): Add
18972         link-warning.
18973
18974 2007-02-17  Bruno Haible  <bruno@clisp.org>
18975
18976         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
18977         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
18978         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
18979         long lines.
18980
18981 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
18982             Bruno Haible  <bruno@clisp.org>
18983
18984         * modules/tmpfile: New file.
18985         * lib/tmpfile.c: New file.
18986         * m4/tmpfile.m4: New file.
18987         * MODULES.html.sh (func_all_modules): New section "Input/output".
18988
18989 2007-02-15  Bruno Haible  <bruno@clisp.org>
18990
18991         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
18992         (supports_delete_on_close): New function.
18993         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
18994
18995 2007-02-14  Bruno Haible  <bruno@clisp.org>
18996
18997         * modules/mbspcasecmp-tests: New file.
18998         * tests/test-mbspcasecmp.sh: New file.
18999         * tests/test-mbspcasecmp.c: New file.
19000
19001         New module mbspcasecmp.
19002         * modules/mbspcasecmp: New file.
19003         * lib/mbspcasecmp.c: New file.
19004         * lib/string_.h (strncasecmp): Change warning message.
19005         (mbspcasecmp): New declaration.
19006         * m4/mbspcasecmp.m4: New file.
19007         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
19008         GNULIB_MBSPCASECMP.
19009         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
19010         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
19011
19012 2007-02-14  Bruno Haible  <bruno@clisp.org>
19013
19014         * modules/mbsncasecmp-tests: New file.
19015         * tests/test-mbsncasecmp.sh: New file.
19016         * tests/test-mbsncasecmp.c: New file.
19017
19018         New module mbsncasecmp.
19019         * modules/mbsncasecmp: New file.
19020         * lib/mbsncasecmp.c: New file.
19021         * lib/string_.h (mbsncasecmp): New declaration.
19022         * m4/mbsncasecmp.m4: New file.
19023         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
19024         GNULIB_MBSNCASECMP.
19025         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
19026         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
19027
19028 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
19029
19030         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
19031         Verify that it doesn't overlap with our flags.
19032         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
19033         do not have the desired effect in multibyte locales; instead, use
19034         mbscasecmp.
19035         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
19036         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
19037         we don't require GNU fnmatch ourselves (if our users require it, they
19038         should do so explicitly).
19039
19040         Fix regex code so it doesn't rely on strcasecmp.
19041         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
19042         Otherwise, include gnulib's langinfo.h.
19043         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
19044         undesirable behavior in non-C locales.  Instead, rely on localecharset.
19045         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
19046         * modules/regex (FILES): Remove m4/codeset.m4.
19047         (Depends-on): Add localcharset.  Remove strcase.
19048
19049 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19050
19051         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
19052         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
19053
19054 2007-02-13  Bruno Haible  <bruno@clisp.org>
19055
19056         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
19057         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19058
19059 2007-02-12  Bruno Haible  <bruno@clisp.org>
19060
19061         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
19062         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
19063         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
19064         time warning rather than a link error.
19065
19066 2007-02-12  Bruno Haible  <bruno@clisp.org>
19067
19068         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
19069         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
19070         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19071
19072 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
19073
19074         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
19075         args, not 2.
19076
19077 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
19078
19079         New module 'time', so that apps can include <time.h> as per
19080         POSIX and GNU instead of separate include files like time_r.h
19081         and timegm.h.  This implementation tries out a simpler approach
19082         for replacing decls in standard include files (as compared to
19083         the string module), somewhat as an experiment.
19084
19085         * config/srclist.txt: Comment out mktime.c for now.
19086         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
19087         since it doesn't apply any more.  Use generic wording instead.
19088         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
19089         'time'.
19090         * lib/time_.h, m4/time_h.m4, modules/time: New files.
19091         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
19092         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
19093         Don't include <sys/types.h>; no longer needed since we assume C89.
19094         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
19095         * lib/strftime.c: Likewise.
19096         * lib/time_r.c: Likewise.
19097         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
19098         * lib/nanosleep.c: Include <time.h> first, to check interface.
19099         * lib/strptime.c: Likewise.
19100         * lib/time_r.c: Likewise.
19101         * lib/timegm.c: Likewise.
19102         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
19103         needed.
19104         * lib/timegm.c: Don't include timegm.h; no longer needed.
19105         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
19106         time.h now handles any problems in that area.
19107         (struct timespec, nanosleep): Remove; time.h now arranges for these.
19108         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
19109         that time.h defines struct timespec.
19110         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
19111         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
19112         handles that.
19113         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
19114         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
19115         needed.  Set REPLACE_LOCALTIME.
19116         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
19117         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
19118         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
19119         nanosleep; time_h.m4 now does that.  Don't require
19120         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
19121         module handles this now.
19122         * modules/getdate (Depends-on): Remove timespec.  Add time.
19123         * modules/nanosleep (Depends-on): Likewise.
19124         * modules/stat-time (Depends-on): Likewise.
19125         * modules/nanosleep (Include): Include time.h, not timespec.h.
19126         * modules/strptime (Files): Remove lib/strptime.h.
19127         (Depends-on): Add extensions, time.
19128         (Include): Include time.h, not strptime.h.
19129         * modules/time_r (Files): Remove lib/time_r.h.
19130         (Depends-on): Add time.
19131         (Include): Include time.h, not time_r.h.
19132         * modules/timegm: Likewise.
19133         * modules/timespec (Description): Now does timespec-related decls
19134         of our own, instead of struct timespec itself.
19135         (Depends-on): Add time; remove extensions.
19136         (Maintainer): Add self.
19137         * modules/utimecmp (Depends-on): Add time; remove timespec.
19138         * modules/utimens (Depends-on): Likewise.
19139         * modules/xnanosleep (Depends-on): Likewise.
19140
19141 2007-02-11  Bruno Haible  <bruno@clisp.org>
19142
19143         * lib/c-strstr.c: Include allocsa.h.
19144         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
19145         * lib/c-strcasestr.c: Include allocsa.h.
19146         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
19147         * lib/strcasestr.c: Include allocsa.h.
19148         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
19149         * lib/mbsstr.c: Include allocsa.h.
19150         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
19151         allocsa/freesa instead of malloc/free.
19152         * lib/mbscasestr.c: Include allocsa.h.
19153         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
19154         allocsa/freesa instead of malloc/free.
19155         * modules/c-strstr (Depends-on): Add allocsa.
19156         * modules/c-strcasestr (Depends-on): Likewise.
19157         * modules/strcasestr (Depends-on): Likewise.
19158         * modules/mbsstr (Depends-on): Likewise.
19159         * modules/mbscasestr (Depends-on): Likewise.
19160
19161 2007-02-11  Bruno Haible  <bruno@clisp.org>
19162
19163         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
19164
19165         * modules/mbsspn-tests: New file.
19166         * tests/test-mbsspn.sh: New file.
19167         * tests/test-mbsspn.c: New file.
19168
19169 2007-02-11  Bruno Haible  <bruno@clisp.org>
19170
19171         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
19172
19173         * modules/mbspbrk-tests: New file.
19174         * tests/test-mbspbrk.sh: New file.
19175         * tests/test-mbspbrk.c: New file.
19176
19177 2007-02-11  Bruno Haible  <bruno@clisp.org>
19178
19179         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
19180         unneeded cast.
19181
19182         * modules/mbscspn-tests: New file.
19183         * tests/test-mbscspn.sh: New file.
19184         * tests/test-mbscspn.c: New file.
19185
19186 2007-02-11  Bruno Haible  <bruno@clisp.org>
19187
19188         * modules/mbscasecmp-tests: New file.
19189         * tests/test-mbscasecmp.sh: New file.
19190         * tests/test-mbscasecmp.c: New file.
19191
19192 2007-02-11  Bruno Haible  <bruno@clisp.org>
19193
19194         Ensure O(n) worst-case complexity of mbscasestr.
19195         * lib/mbscasestr.c: Include stdbool.h.
19196         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
19197         functions.
19198         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
19199         the bookkeeping indicates that it's worth it.
19200         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
19201
19202         * modules/mbscasestr-tests: New file.
19203         * tests/test-mbscasestr1.c: New file.
19204         * tests/test-mbscasestr2.sh: New file.
19205         * tests/test-mbscasestr2.c: New file.
19206         * tests/test-mbscasestr3.sh: New file.
19207         * tests/test-mbscasestr3.c: New file.
19208         * tests/test-mbscasestr4.sh: New file.
19209         * tests/test-mbscasestr4.c: New file.
19210         * m4/locale-tr.m4: New file.
19211
19212 2007-02-11  Bruno Haible  <bruno@clisp.org>
19213
19214         Ensure O(n) worst-case complexity of mbsstr.
19215         * lib/mbsstr.c: Include stdbool.h.
19216         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
19217         functions.
19218         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
19219         bookkeeping indicates that it's worth it.
19220         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
19221
19222         * modules/mbsstr-tests: New file.
19223         * tests/test-mbsstr1.c: New file.
19224         * tests/test-mbsstr2.sh: New file.
19225         * tests/test-mbsstr2.c: New file.
19226         * tests/test-mbsstr3.sh: New file.
19227         * tests/test-mbsstr3.c: New file.
19228         * m4/locale-fr.m4: New file.
19229
19230 2007-02-11  Bruno Haible  <bruno@clisp.org>
19231
19232         * lib/mbsrchr.c (mbsrchr): Fix bug.
19233
19234         * modules/mbsrchr-tests: New file.
19235         * tests/test-mbsrchr.sh: New file.
19236         * tests/test-mbsrchr.c: New file.
19237
19238 2007-02-11  Bruno Haible  <bruno@clisp.org>
19239
19240         * lib/mbschr.c (mbschr): Fix bug.
19241
19242         * modules/mbschr-tests: New file.
19243         * tests/test-mbschr.sh: New file.
19244         * tests/test-mbschr.c: New file.
19245         * m4/locale-zh.m4: New file.
19246
19247 2007-02-11  Bruno Haible  <bruno@clisp.org>
19248
19249         Support for copying multibyte string iterators.
19250         * lib/mbiter.h: Include <string.h>.
19251         (mbiter_multi_copy): New function.
19252         (mbi_copy): New macro.
19253         * lib/mbuiter.h: Include <string.h>.
19254         (mbuiter_multi_copy): New function.
19255         (mbui_copy): New macro.
19256
19257 2007-02-11  Bruno Haible  <bruno@clisp.org>
19258
19259         New module mbslen.
19260         * modules/mbslen: New file.
19261         * lib/mbslen.c: New file.
19262         * lib/string_.h (mbslen): New declaration.
19263         * m4/mbslen.m4: New file.
19264         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
19265         GNULIB_MBSLEN.
19266         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
19267         * MODULES.html.sh (Internationalization functions): Add mbslen.
19268
19269 2007-02-11  Bruno Haible  <bruno@clisp.org>
19270
19271         Ensure O(n) worst-case complexity of strcasestr substitute.
19272         * lib/strcasestr.c: Include stdbool.h.
19273         (knuth_morris_pratt): New function.
19274         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
19275         bookkeeping indicates that it's worth it.
19276         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
19277
19278         * modules/strcasestr-tests: New file.
19279         * tests/test-strcasestr.c: New file.
19280
19281 2007-02-11  Bruno Haible  <bruno@clisp.org>
19282
19283         Ensure O(n) worst-case complexity of c_strcasestr.
19284         * lib/c-strcasestr.c: Include stdbool.h, string.h.
19285         (knuth_morris_pratt): New function.
19286         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
19287         the bookkeeping indicates that it's worth it.
19288         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
19289
19290         * modules/c-strcasestr-tests: New file.
19291         * tests/test-c-strcasestr.c: New file.
19292
19293 2007-02-11  Bruno Haible  <bruno@clisp.org>
19294
19295         Ensure O(n) worst-case complexity of c_strstr.
19296         * lib/c-strstr.c: Include stdbool.h, string.h.
19297         (knuth_morris_pratt): New function.
19298         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
19299         bookkeeping indicates that it's worth it.
19300         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
19301
19302         * lib/c-strstr.c: Complete rewrite for maintainability.
19303
19304         * modules/c-strstr-tests: New file.
19305         * tests/test-c-strstr.c: New file.
19306
19307 2007-02-11  Bruno Haible  <bruno@clisp.org>
19308
19309         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
19310         5.2.1 and earlier, whereby \055 was treated just like the range
19311         delimiter '-'.
19312         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
19313
19314 2007-02-08  Bruno Haible  <bruno@clisp.org>
19315
19316         * modules/regex (Depends-on): Add stdbool.
19317         Reported by Dalibor Topic <robilad@kaffe.org>.
19318
19319 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
19320
19321         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
19322         Prefer returning from main to exiting from it.
19323         Remove unnecessary parens after sizeof.
19324
19325 2007-02-05  Bruno Haible  <bruno@clisp.org>
19326
19327         New module mbssep.
19328         * modules/mbssep: New file.
19329         * lib/mbssep.c: New file.
19330         * lib/string_.h (strsep): Add a conditional link warning.
19331         (mbssep): New declaration.
19332         * m4/mbssep.m4: New file.
19333         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
19334         GNULIB_MBSSEP.
19335         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
19336         * MODULES.html.sh (Internationalization functions): Add mbssep.
19337
19338 2007-02-05  Bruno Haible  <bruno@clisp.org>
19339
19340         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
19341         Optimize search in case of 1 delimiter.
19342
19343 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
19344
19345         * lib/acl.h: Include sys/types.h before sys/acl.h.
19346
19347 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
19348
19349         Merge upstream fix for glibc bugzilla #3957:
19350
19351         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
19352
19353         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
19354         bit for RE_HAT_LISTS_NOT_NEWLINE.
19355         (build_charclass_op): Remove bogus comment.
19356
19357 2007-02-05  Simon Josefsson  <simon@josefsson.org>
19358
19359         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
19360
19361 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
19362
19363         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
19364         * lib/memmem.c [!defined _LIBC]: Include config.h.
19365
19366 2007-02-04  Bruno Haible  <bruno@clisp.org>
19367
19368         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
19369         warning message.
19370
19371 2007-02-04  Bruno Haible  <bruno@clisp.org>
19372
19373         New module mbstok_r.
19374         * modules/mbstok_r: New file.
19375         * lib/mbstok_r.c: New file.
19376         * lib/string_.h (strtok_r): Change argument names to match the
19377         comments. Add a conditional link warning.
19378         (mbstok_r): New declaration.
19379         * m4/mbstok_r.m4: New file.
19380         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
19381         GNULIB_MBSTOK_R.
19382         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
19383         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
19384
19385 2007-02-04  Bruno Haible  <bruno@clisp.org>
19386
19387         New module mbsspn.
19388         * modules/mbsspn: New file.
19389         * lib/mbsspn.c: New file.
19390         * lib/string_.h (strspn): Add a conditional link warning.
19391         (mbsspn): New declaration.
19392         * m4/mbsspn.m4: New file.
19393         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
19394         GNULIB_MBSSPN.
19395         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
19396         * MODULES.html.sh (Internationalization functions): Add mbsspn.
19397
19398 2007-02-04  Bruno Haible  <bruno@clisp.org>
19399
19400         New module mbspbrk.
19401         * modules/mbspbrk: New file.
19402         * lib/mbspbrk.c: New file.
19403         * lib/string_.h (strpbrk): Add a conditional link warning.
19404         (mbspbrk): New declaration.
19405         * m4/mbspbrk.m4: New file.
19406         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
19407         GNULIB_MBSPBRK.
19408         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
19409         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
19410
19411 2007-02-04  Bruno Haible  <bruno@clisp.org>
19412
19413         New module mbscspn.
19414         * modules/mbscspn: New file.
19415         * lib/mbscspn.c: New file.
19416         * lib/string_.h (strcspn): Add a conditional link warning.
19417         (mbscspn): New declaration.
19418         * m4/mbscspn.m4: New file.
19419         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
19420         GNULIB_MBSCSPN.
19421         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
19422         * MODULES.html.sh (Internationalization functions): Add mbscspn.
19423
19424 2007-02-04  Bruno Haible  <bruno@clisp.org>
19425
19426         New module mbscasestr, reduced goal of strcasestr.
19427         * modules/mbscasestr: New file.
19428         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
19429         (mbscasestr): Renamed from strcasestr.
19430         * lib/strcasestr.c: Don't include mbuiter.h.
19431         (strcasestr): Remove support for multibyte locales.
19432         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
19433         Change the conditional link warning.
19434         (mbscasestr): New declaration.
19435         * m4/mbscasestr.m4: New file.
19436         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
19437         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
19438         REPLACE_STRCASESTR.
19439         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
19440         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
19441         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
19442         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
19443         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
19444         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
19445         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
19446         (Depends-on): Remove mbuiter.
19447         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
19448
19449 2007-02-04  Bruno Haible  <bruno@clisp.org>
19450
19451         Simplify handling of strncasecmp.
19452         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
19453         the conditional link warning.
19454         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
19455         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
19456         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
19457         * modules/strcase (configure.ac): Don't invoke
19458         gl_STRING_MODULE_INDICATOR.
19459         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
19460
19461 2007-02-04  Bruno Haible  <bruno@clisp.org>
19462
19463         New module mbscasecmp, reduced goal of strcasecmp.
19464         * modules/mbscasecmp: New file.
19465         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
19466         (mbscasecmp): Renamed from strcasecmp.
19467         * lib/strcasecmp.c: Don't include mbuiter.h.
19468         (strcasecmp): Remove support for multibyte locales.
19469         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
19470         Change the conditional link warning.
19471         (mbscasecmp): New declaration.
19472         * m4/mbscasecmp.m4: New file.
19473         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
19474         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
19475         REPLACE_STRCASECMP.
19476         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
19477         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
19478         GNULIB_MBSCASECMP.
19479         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
19480         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
19481         * modules/strcase (Files): Remove m4/mbrtowc.m4.
19482         (Depends-on): Remove mbuiter.
19483         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
19484
19485 2007-02-04  Bruno Haible  <bruno@clisp.org>
19486
19487         New module mbsstr. Remove module strstr.
19488         * modules/mbsstr: New file.
19489         * modules/strstr: Remove file.
19490         * lib/mbsstr.c: Renamed from lib/strstr.c.
19491         (mbsstr): Renamed from strstr.
19492         * lib/string_.h (strstr): Remove declaration. Change the conditional
19493         link warning.
19494         (mbsstr): New declaration.
19495         * m4/mbsstr.m4: New file.
19496         * m4/strstr.m4: Remove file.
19497         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
19498         REPLACE_STRSTR.
19499         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
19500         Don't initialize GNULIB_STRSTR.
19501         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
19502         substitute GNULIB_STRSTR and REPLACE_STRSTR.
19503         * MODULES.html.sh (Internationalization functions): Add mbsstr.
19504         (Support for systems lacking ANSI C 89): Remove strstr.
19505
19506 2007-02-04  Bruno Haible  <bruno@clisp.org>
19507
19508         New module mbsrchr.
19509         * modules/mbsrchr: New file.
19510         * lib/mbsrchr.c: New file.
19511         * lib/string_.h (strrchr): Add a conditional link warning.
19512         (mbsrchr): New declaration.
19513         * m4/mbsrchr.m4: New file.
19514         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
19515         GNULIB_MBSRCHR.
19516         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
19517         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
19518
19519 2007-02-04  Bruno Haible  <bruno@clisp.org>
19520
19521         New module mbschr.
19522         * modules/mbschr: New file.
19523         * lib/mbschr.c: New file.
19524         * lib/string_.h (strchr): Add a conditional link warning.
19525         (mbschr): New declaration.
19526         * m4/mbschr.m4: New file.
19527         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
19528         GNULIB_MBSCHR.
19529         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
19530         * MODULES.html.sh (Internationalization functions): Add mbschr.
19531
19532 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
19533
19534         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
19535
19536         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
19537
19538 2007-02-04  Bruno Haible  <bruno@clisp.org>
19539
19540         New module description section 'configure.ac-early'.
19541         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
19542         (func_get_autoconf_early_snippet): New function.
19543         (func_import, func_create_testdir): Use it. Remove special cases for
19544         modules 'extensions' and 'lock'.
19545         * modules/extensions (configure.ac-early): Require
19546         gl_USE_SYSTEM_EXTENSIONS.
19547         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
19548
19549 2007-02-04  Bruno Haible  <bruno@clisp.org>
19550
19551         Make use of gcj-4.3's -fsource and -ftarget option.
19552         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
19553         and if so try the options -fsource and -ftarget.
19554         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
19555         source_version, ftarget_option, target_version arguments.
19556         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
19557         (is_envjavac_oldgcj_14_14_usable): Renamed from
19558         is_envjavac_gcj_14_14_usable.
19559         (is_envjavac_oldgcj_14_13_usable): Renamed from
19560         is_envjavac_gcj_14_13_usable.
19561         (is_gcj_present): Update.
19562         (is_gcj_43, is_gcj43_usable): New functions.
19563         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
19564         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
19565         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
19566         try the options -fsource and -ftarget.
19567
19568 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
19569
19570         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
19571         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
19572         larger value.
19573
19574 2007-02-03  Jim Meyering  <jim@meyering.net>
19575
19576         Give tools a better chance to allocate space for very large buffers.
19577         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
19578
19579         Make pwd and readlink work also when run with an unreadable parent dir
19580         on systems with openat support.
19581         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
19582         provided getcwd function, even when we have openat support.
19583         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
19584
19585 2007-02-02  Bruno Haible  <bruno@clisp.org>
19586
19587         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
19588         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
19589         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
19590         portability problems if one of these functions is only used on specific
19591         platforms.
19592         Reported by Paul Eggert.
19593
19594 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
19595
19596         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
19597         is causing more trouble than it's curing.
19598         * lib/regex_internal.h (__mempcpy): Remove.
19599         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
19600         (and make the code a tad smaller to boot).
19601         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
19602
19603 2007-02-02  Jim Meyering  <jim@meyering.net>
19604
19605         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
19606         section, not in the Makefile.am: one.
19607
19608 2007-02-02  Eric Blake  <ebb9@byu.net>
19609
19610         * lib/strchrnul.c: Always include config.h first.
19611
19612         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
19613         gnulib strstr is not necessary here.
19614
19615 2007-02-02  Simon Josefsson  <simon@josefsson.org>
19616
19617         * m4/socklen.m4: Fix typo.
19618
19619 2007-02-02  Eric Blake  <ebb9@byu.net>
19620
19621         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
19622         * modules/netinet_in (Makefile.am): Likewise.
19623
19624 2007-02-01  Bruno Haible  <bruno@clisp.org>
19625
19626         * lib/string_.h (GL_LINK_WARNING): New macro.
19627         (strcasecmp, strstr, strcasestr): If provided by the system,
19628         conditionally define as a macro that leads to a warning instead of to
19629         an error.
19630         (strncasecmp): Conditionally define as a macro that leads to a warning.
19631
19632 2007-02-01  Karl Berry  <karl@gnu.org>
19633
19634         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
19635
19636 2007-02-01  Bruno Haible  <bruno@clisp.org>
19637
19638         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
19639         renamings.
19640
19641 2007-02-01  Eric Blake  <ebb9@byu.net>
19642
19643         * modules/regex (Depends-on): Revert dependence on mempcpy.
19644         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
19645         module's definition of mempcpy.
19646         Reported by Paul Eggert.
19647
19648 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
19649
19650         * lib/string_.h: If the gnulib module XYZ is not present, undefine
19651         the symbol XYZ before redefining it.  This fixes a problem with
19652         programs that don't use XYZ, when compiled on systems that define
19653         XYZ to something else.
19654
19655 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
19656
19657         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
19658         occurs when "mkdir -m foo" creates a setgid directory that is (1)
19659         writeable to group or other and (2) is intended to have a special
19660         mode bit that is set or cleared.  In such a case, the directory
19661         should be neither group- nor other-writeable until the special
19662         mode bits are right.
19663
19664 2007-01-31  Eric Blake  <ebb9@byu.net>
19665
19666         * modules/mountlist (Depends-on): Add strstr.
19667
19668         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
19669         bug.
19670         * modules/string (Makefile.am): Remove redundant replacement.
19671         * modules/regex (Depends-on): Add mempcpy.
19672
19673 2007-01-31  Bruno Haible  <bruno@clisp.org>
19674
19675         New module description field 'Link'.
19676         * gnulib-tool (func_usage): Document --extract-link-directive.
19677         (sed_extract_prog): Recognize 'Link' directive.
19678         (func_get_link_directive): New function.
19679         (func_import): Show summary of link directives.
19680         Handle --extract-link-directive option.
19681         * modules/acl (Link): New section.
19682         * modules/clock-time (Link): New section.
19683         * modules/euidaccess (Link): New section.
19684         * modules/gettext (Link): New section.
19685         * modules/iconv (Link): New section.
19686         * modules/lock (Link): New section.
19687         * modules/nanosleep (Link): New section.
19688         * modules/readline (Link): New section.
19689
19690 2007-01-27  Bruno Haible  <bruno@clisp.org>
19691
19692         Enforce the use of gnulib modules for unportable <string.h> functions.
19693         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
19694         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
19695         (gl_HEADER_STRING_H_BODY): Require it.
19696         * lib/string_.h: If the gnulib module XYZ is not present, redefine
19697         the symbol XYZ to one that gives a link error.
19698         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
19699         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
19700         * modules/mempcpy (configure.ac): Likewise.
19701         * modules/memrchr (configure.ac): Likewise.
19702         * modules/stpcpy (configure.ac): Likewise.
19703         * modules/stpncpy (configure.ac): Likewise.
19704         * modules/strcase (configure.ac): Likewise.
19705         * modules/strcasestr (configure.ac): Likewise.
19706         * modules/strchrnul (configure.ac): Likewise.
19707         * modules/strdup (configure.ac): Likewise.
19708         * modules/strndup (configure.ac): Likewise.
19709         * modules/strnlen (configure.ac): Likewise.
19710         * modules/strpbrk (configure.ac): Likewise.
19711         * modules/strsep (configure.ac): Likewise.
19712         * modules/strstr (configure.ac): Likewise.
19713         * modules/strtok_r (configure.ac): Likewise.
19714
19715 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
19716
19717         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
19718
19719 2007-01-30  Jim Meyering  <jim@meyering.net>
19720
19721         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
19722
19723 2007-01-29  Bruno Haible  <bruno@clisp.org>
19724
19725         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
19726         * lib/execute.c: Likewise.
19727         * lib/pipe.c: Likewise.
19728         * lib/printf-args.h: Likewise.
19729         * lib/printf-args.c: Likewise.
19730         * lib/printf-parse.c: Likewise.
19731         * lib/vasnprintf.c: Likewise.
19732
19733 2007-01-29  Eric Blake  <ebb9@byu.net>
19734
19735         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
19736         declaration.
19737
19738 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
19739
19740         * lib/strptime.h (strptime): Use 'restrict' for args where
19741         POSIX requires this.
19742         * lib/strptime.c (strptime): Likewise.
19743         Change license notice from LGPL to GPL, since gnulib-tool will
19744         change this as needed.
19745         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
19746         defined.
19747         Include "strptime.h" first, to check interface.
19748         Do not #undef _LIBC and _NL_CURRENT.
19749         Do not include <stdlib.h>; no longer needed.
19750         Include "time_r.h" and declare ptime_locale_status
19751         only if _LIBC is not defined.
19752         (__P): Remove unused macro.
19753         (match_string): Bring back glibc version, but use it only if _LIBC
19754         is defined.
19755         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
19756         Remove unnecessary assertion and abort() call.
19757         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
19758         * m4/strptime.m4: Fix serial number comment.
19759         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
19760         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
19761         (Depends-on): Add time_r.
19762
19763 2007-01-29  Bruno Haible  <bruno@clisp.org>
19764
19765         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
19766         strptime.
19767         * modules/strptime (Depends-on): Add stdbool.
19768         * lib/strptime.h: Include <time.h> always. Add comments.
19769
19770 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
19771
19772         * modules/strptime: New file.
19773         * lib/strptime.h: New file.
19774         * lib/strptime.c: New file.
19775         * m4/strptime.m4: New file.
19776
19777 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
19778
19779         * MODULES.html.sh: New module mpsort.
19780         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
19781
19782         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
19783         a circularity problem with HP-UX ia64 reported by Bob Proulx in
19784         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
19785         All uses changed.
19786         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
19787         All uses changed.
19788         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
19789         to _Restrict_.
19790         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
19791         the parameter matches the prototype.
19792
19793 2007-01-28  Jim Meyering  <jim@meyering.net>
19794
19795         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
19796         sys/time.h here, reverting that part of the previous patch:
19797         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
19798
19799 2007-01-28  Bruno Haible  <bruno@clisp.org>
19800
19801         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
19802         value of $(SYS_TIME_H).
19803         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
19804         remove it conditionally, too. [added by Jim Meyering]
19805         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
19806         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
19807         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
19808         GETTIMEOFDAY_REPLACEMENT to 1.
19809
19810 2007-01-28  Bruno Haible  <bruno@clisp.org>
19811
19812         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
19813         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
19814         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
19815         Set UNISTD_H instead of UNISTD_H2.
19816         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
19817
19818 2007-01-28  Bruno Haible  <bruno@clisp.org>
19819
19820         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
19821         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
19822
19823 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19824
19825         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
19826         (func_create_testdir): Ensure C locale for `grep' and `tr'
19827         character ranges.
19828         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
19829         ACLOCAL_AMFLAGS parsing state machine.
19830
19831 2007-01-27  Bruno Haible  <bruno@clisp.org>
19832
19833         * modules/unistr/base: Update.
19834
19835 2007-01-27  Bruno Haible  <bruno@clisp.org>
19836
19837         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
19838         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
19839         * modules/unistr/u32-mbtouc-unsafe: Renamed from
19840         modules/unistr/u32-mbtouc.
19841         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
19842         * lib/unistr.h: Update.
19843         * lib/linebreak.c: Update.
19844         * modules/unistr/u32-mbtouc: Renamed from
19845         modules/unistr/u32-mbtouc-safe.
19846         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
19847         * lib/unistr.h: Update.
19848         * lib/unistr/u32-to-u8.c: Update.
19849         * lib/unistr/u32-to-u16.c: Update.
19850
19851 2007-01-27  Bruno Haible  <bruno@clisp.org>
19852
19853         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
19854         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
19855         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
19856         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
19857         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
19858         * modules/unistr/u16-mbtouc-unsafe: Renamed from
19859         modules/unistr/u16-mbtouc.
19860         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
19861         * lib/unistr.h: Update.
19862         * lib/linebreak.c: Update.
19863         * modules/linebreak: Update.
19864         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
19865         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
19866         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
19867         * modules/unistr/u16-mbtouc: Renamed from
19868         modules/unistr/u16-mbtouc-safe.
19869         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
19870         * lib/unistr.h: Update.
19871         * lib/unistr/u16-to-u8.c: Update.
19872         * modules/unistr/u16-to-u8: Update.
19873         * lib/unistr/u16-to-u32.c: Update.
19874         * modules/unistr/u16-to-u32: Update.
19875
19876 2007-01-27  Bruno Haible  <bruno@clisp.org>
19877
19878         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
19879         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
19880         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
19881         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
19882         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
19883         * modules/unistr/u8-mbtouc-unsafe: Renamed from
19884         modules/unistr/u8-mbtouc.
19885         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
19886         * lib/unistr.h: Update.
19887         * lib/striconveh.c: Update.
19888         * modules/striconveh: Update.
19889         * lib/linebreak.c: Update.
19890         * modules/linebreak: Update.
19891         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
19892         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
19893         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
19894         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
19895         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
19896         * lib/unistr.h: Update.
19897         * lib/striconveh.c: Update.
19898         * modules/striconveh: Update.
19899         * lib/unistr/u8-to-u16.c: Update.
19900         * modules/unistr/u8-to-u16: Update.
19901         * lib/unistr/u8-to-u32.c: Update.
19902         * modules/unistr/u8-to-u32: Update.
19903
19904 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19905
19906         Sync from Libtool.
19907         * lib/argz.c: Do not include strings.h nor memory.h, include
19908         string.h unconditionally.  Patch by Simon Josefsson.
19909
19910 2007-01-27  Bruno Haible  <bruno@clisp.org>
19911
19912         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
19913         from gl_HEADER_STRING_H_BODY.
19914         (gl_HEADER_STRING_H_BODY): Require it.
19915         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
19916         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
19917         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
19918         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
19919         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
19920         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
19921         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
19922         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
19923         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
19924         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
19925         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
19926         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
19927         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
19928         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
19929         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
19930
19931 2007-01-27  Bruno Haible  <bruno@clisp.org>
19932
19933         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
19934         check_PROGRAMS into noinst_PROGRAMS.
19935         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
19936         check_PROGRAMS in this case.
19937         (func_import): Set for_test to false.
19938         (func_create_testdir): Set for_test to true.
19939
19940 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
19941             Bruno Haible  <bruno@clisp.org>
19942
19943         * modules/strcasestr (Files): Remove lib/strcasestr.h.
19944         (Depends-on): Add string.
19945         (Includes): Use <string.h> instead of strcasestr.h.
19946         * modules/string (Makefile.am): Also substitute the value of
19947         REPLACE_STRCASESTR.
19948         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
19949         assume strcasestr is declared in <string.h> not <strings.h>. Also
19950         set REPLACE_STRCASESTR.
19951         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
19952         REPLACE_STRCASESTR.
19953         * lib/strcasestr.h: Remove file.
19954         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
19955         * lib/string_.h (strcasestr): New declaration.
19956
19957 2007-01-27  Bruno Haible  <bruno@clisp.org>
19958
19959         * lib/string_.h: Use 'extern'.
19960
19961 2007-01-27  Jim Meyering  <jim@meyering.net>
19962
19963         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
19964         of set-but-not-used local, "q".
19965
19966         * lib/mempcpy.c: Include <config.h> before <string.h>.
19967         This fixes a compilation error on HP-UX, due to the system's
19968         "restrict"-using mempcpy prototype.
19969
19970 2007-01-26  Bruno Haible  <bruno@clisp.org>
19971
19972         Small optimization.
19973         * lib/javacomp.c: Include c-strstr.h.
19974          (is_envjavac_gcj): Use c_strstr instead of strstr.
19975         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
19976
19977 2007-01-26  Bruno Haible  <bruno@clisp.org>
19978
19979         * MODULES.html.sh (Unicode string functions): Add the new modules.
19980
19981         * modules/uniconv/u32-strconv-to-locale: New file.
19982         * lib/uniconv/u32-strconv-to-locale.c: New file.
19983
19984         * modules/uniconv/u16-strconv-to-locale: New file.
19985         * lib/uniconv/u16-strconv-to-locale.c: New file.
19986
19987         * modules/uniconv/u8-strconv-to-locale: New file.
19988         * lib/uniconv/u8-strconv-to-locale.c: New file.
19989
19990         * modules/uniconv/u32-strconv-from-locale: New file.
19991         * lib/uniconv/u32-strconv-from-locale.c: New file.
19992
19993         * modules/uniconv/u16-strconv-from-locale: New file.
19994         * lib/uniconv/u16-strconv-from-locale.c: New file.
19995
19996         * modules/uniconv/u8-strconv-from-locale: New file.
19997         * lib/uniconv/u8-strconv-from-locale.c: New file.
19998
19999         * modules/uniconv/u32-strconv-to-enc: New file.
20000         * lib/uniconv/u32-strconv-to-enc.c: New file.
20001         * modules/uniconv/u32-strconv-to-enc-tests: New file.
20002         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
20003
20004         * modules/uniconv/u16-strconv-to-enc: New file.
20005         * lib/uniconv/u16-strconv-to-enc.c: New file.
20006         * lib/uniconv/u-strconv-to-enc.h: New file.
20007         * modules/uniconv/u16-strconv-to-enc-tests: New file.
20008         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
20009
20010         * modules/uniconv/u8-strconv-to-enc: New file.
20011         * lib/uniconv/u8-strconv-to-enc.c: New file.
20012         * modules/uniconv/u8-strconv-to-enc-tests: New file.
20013         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
20014
20015         * modules/uniconv/u32-strconv-from-enc: New file.
20016         * lib/uniconv/u32-strconv-from-enc.c: New file.
20017         * modules/uniconv/u32-strconv-from-enc-tests: New file.
20018         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
20019
20020         * modules/uniconv/u16-strconv-from-enc: New file.
20021         * lib/uniconv/u16-strconv-from-enc.c: New file.
20022         * modules/uniconv/u16-strconv-from-enc-tests: New file.
20023         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
20024
20025         * modules/uniconv/u8-strconv-from-enc: New file.
20026         * lib/uniconv/u8-strconv-from-enc.c: New file.
20027         * lib/uniconv/u-strconv-from-enc.h: New file.
20028         * modules/uniconv/u8-strconv-from-enc-tests: New file.
20029         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
20030
20031         * modules/uniconv/u32-conv-from-enc: New file.
20032         * lib/uniconv/u32-conv-from-enc.c: New file.
20033         * modules/uniconv/u32-conv-from-enc-tests: New file.
20034         * tests/uniconv/test-u32-conv-from-enc.c: New file.
20035
20036         * modules/uniconv/u16-conv-from-enc: New file.
20037         * lib/uniconv/u16-conv-from-enc.c: New file.
20038         * lib/uniconv/u-conv-from-enc.h: New file.
20039         * modules/uniconv/u16-conv-from-enc-tests: New file.
20040         * tests/uniconv/test-u16-conv-from-enc.c: New file.
20041
20042         * modules/uniconv/u8-conv-from-enc: New file.
20043         * lib/uniconv/u8-conv-from-enc.c: New file.
20044         * modules/uniconv/u8-conv-from-enc-tests: New file.
20045         * tests/uniconv/test-u8-conv-from-enc.c: New file.
20046
20047         * modules/uniconv/base: New file.
20048         * lib/uniconv.h: New file.
20049
20050 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
20051
20052         * doc/gnulib-tool.texi (Initial import): Update to match current
20053         behavior with strdup module.
20054         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
20055         * lib/memmem.h: Remove; all uses removed.  This is now done
20056         by <string.h>.
20057         * lib/mempcpy.h: Likewise.
20058         * lib/memrchr.h: Likewise.
20059         * lib/stpcpy.h: Likewise.
20060         * lib/stpncpy.h: Likewise.
20061         * lib/strcase.h: Likewise.
20062         * lib/strchrnul.h: Likewise.
20063         * lib/strdup.h: Likewise.
20064         * lib/strndup.h: Likewise.
20065         * lib/strnlen.h: Likewise.
20066         * lib/strpbrk.h: Likewise.
20067         * lib/strsep.h: Likewise.
20068         * lib/strstr.h: Likewise.
20069         * lib/strtok_r.h: Likewise.
20070         * lib/string_.h: New file.
20071         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
20072         Rely on <string.h> instead.
20073         * lib/canon-host.c: Likewise.
20074         * lib/chdir-long.c: Likewise.
20075         * lib/concatpath.c: Likewise.
20076         * lib/exclude.c: Likewise.
20077         * lib/fchdir.c: Likewise.
20078         * lib/getaddrinfo.c: Likewise.
20079         * lib/getcwd.c: Likewise.
20080         * lib/getsubopt.c: Likewise.
20081         * lib/glob.c: Likewise.
20082         * lib/hard-locale.c: Likewise.
20083         * lib/iconvme.c: Likewise.
20084         * lib/javacomp.c: Likewise.
20085         * lib/mempcpy.c: Likewise.
20086         * lib/memrchr.c: Likewise.
20087         * lib/regex_internal.h: Likewise.
20088         * lib/stpncpy.c: Likewise.
20089         * lib/strcasecmp.c: Likewise.
20090         * lib/strchrnul.c: Likewise.
20091         * lib/strdup.c: Likewise.
20092         * lib/striconv.c: Likewise.
20093         * lib/striconveh.c: Likewise.
20094         * lib/striconveha.c: Likewise.
20095         * lib/strncasecmp.c: Likewise.
20096         * lib/strndup.c: Likewise.
20097         * lib/strnlen.c: Likewise.
20098         * lib/strsep.c: Likewise.
20099         * lib/strstr.c: Likewise.
20100         * lib/strtok_r.c: Likewise.
20101         * lib/userspec.c: Likewise.
20102         * lib/w32spawn.h: Likewise.
20103         * lib/xstrndup.c: Likewise.
20104         * lib/mountlist.c (strstr): Remove decl.
20105         * m4/string_h.m4: New file.
20106         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
20107         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
20108         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
20109         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
20110         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
20111         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
20112         Set REPLACE_STRCASECMP if necessary.
20113         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
20114         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
20115         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
20116         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
20117         HAVE_DECL_STRDUP if necessary.
20118         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
20119         since gl_FUNC_STRNDUP does that now.
20120         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
20121         Check for decl here...
20122         (gl_PREREQ_STRNLEN): ... not here.
20123         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
20124         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
20125         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
20126         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
20127         necessary.
20128         * modules/string: New file.
20129         * modules/memmem (Files): Remove special-purpose include file.
20130         (Depends-on): Add string.
20131         (Include): Include <string.h>, not the removed file.
20132         * modules/mempcpy: Likewise.
20133         * modules/memrchr: Likewise.
20134         * modules/stpcpy: Likewise.
20135         * modules/stpncpy: Likewise.
20136         * modules/strcase: Likewise.
20137         * modules/strchrnul: Likewise.
20138         * modules/strdup: Likewise.
20139         * modules/strndup: Likewise.
20140         * modules/strnlen: Likewise.
20141         * modules/strpbrk: Likewise.
20142         * modules/strsep: Likewise.
20143         * modules/strstr: Likewise.
20144         * modules/strtok_r: Likewise.
20145         * tests/test-dirname.c: Don't include "strdup.h", since
20146         <string.h> now suffices.
20147         * tests/test-memmem.c: Don't include "memmem.h", since
20148         <string.h> now suffices.
20149
20150 2007-01-25  Bruno Haible  <bruno@clisp.org>
20151
20152         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
20153         *resultp is 0.
20154
20155         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
20156         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
20157         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
20158         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
20159
20160         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
20161         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
20162         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
20163         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
20164         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
20165         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
20166
20167 2007-01-24  Bruno Haible  <bruno@clisp.org>
20168
20169         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
20170         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
20171         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
20172         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
20173         gl_FUNC_FTS_CORE.
20174         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
20175         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
20176         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
20177         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
20178         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
20179         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
20180         gl_FUNC_FCHOWNAT.
20181         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
20182         gl_FUNC_STRFTIME.
20183         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
20184         Reported by Ralf Wildenhues.
20185
20186 2007-01-24  Bruno Haible  <bruno@clisp.org>
20187
20188         Drop AC_REQUIRE calls that are redundant with the module dependencies.
20189         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
20190         gl_GETADDRINFO.
20191         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
20192         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
20193         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
20194
20195 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
20196
20197         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
20198         Don't use 'exit'; just return from 'main'.
20199         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
20200
20201         * lib/fnmatch_.h: Readjust white space and comments to match
20202         glibc, to avoid spurious diffs.
20203
20204 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
20205
20206         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
20207         2004-12-01 change by Jakub Jelinek, since this code won't compile
20208         if !LIBC.  Problem reported by Bob Proulx.
20209
20210 2007-01-23  Bruno Haible  <bruno@clisp.org>
20211
20212         * lib/striconveh.c: Include c-strcaseeq.h.
20213         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
20214         * modules/striconveh (Depends-on): Add c-strcaseeq.
20215
20216 2007-01-23  Bruno Haible  <bruno@clisp.org>
20217
20218         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
20219
20220         * modules/c-strcaseeq: New file.
20221         * lib/c-strcaseeq.h: New file.
20222
20223         * modules/streq: New file.
20224         * lib/streq.h: New file.
20225
20226 2007-01-23  Bruno Haible  <bruno@clisp.org>
20227
20228         * modules/striconveha-tests: New file.
20229         * tests/test-striconveha.c: New file.
20230
20231         * lib/striconveha.h: Include <stdbool.h>.
20232         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
20233         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
20234         (mem_iconveha_notranslit): Renamed from mem_iconveha.
20235         (mem_iconveha): New function.
20236         (str_iconveha_notranslit): Renamed from str_iconveha.
20237         (str_iconveha): New function.
20238         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
20239         c-strcase.
20240
20241 2007-01-23  Bruno Haible  <bruno@clisp.org>
20242
20243         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
20244         encodings without forgiving before trying any encoding with handler.
20245         (str_iconveha): Try all encodings without forgiving before trying any
20246         encoding with handler.
20247
20248 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
20249
20250         Import the following changes from libc.
20251
20252         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
20253
20254         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
20255
20256         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
20257
20258         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
20259         normal_bracket label.
20260
20261         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
20262
20263         [BZ #361]
20264         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
20265         to normal_bracket after fetching the next character.
20266
20267 2007-01-22  Bruno Haible  <bruno@clisp.org>
20268
20269         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
20270         argument.
20271         * lib/striconveh.c (iconv_carefully_1): New function.
20272         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
20273         argument.
20274         (str_cd_iconveh): Update.
20275         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
20276         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
20277         * tests/test-striconveh.c (MAGIC): New macro.
20278         (new_offsets): New function.
20279         (main): Test call with and without offsets.
20280
20281 2007-01-22  Bruno Haible  <bruno@clisp.org>
20282
20283         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
20284         * modules/sys_select (Makefile.am): Likewise.
20285         * modules/sys_socket (Makefile.am): Likewise.
20286         * modules/sys_time (Makefile.am): Likewise.
20287
20288 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
20289
20290         * modules/gettimeofday (License): Change from GPL to LGPL, since
20291         gettimeofday is a library function.
20292
20293 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20294
20295         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
20296
20297 2007-01-21  Bruno Haible  <bruno@clisp.org>
20298
20299         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
20300
20301 2007-01-21  Bruno Haible  <bruno@clisp.org>
20302
20303         * modules/striconveha: New file.
20304         * lib/striconveha.h: New file.
20305         * lib/striconveha.c: New file.
20306         * MODULES.html.sh (Internationalization functions): Add striconveha.
20307         * lib/striconv.c (str_iconv): Optimize the case of an empty input
20308         string.
20309         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
20310
20311 2007-01-21  Bruno Haible  <bruno@clisp.org>
20312
20313         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
20314         * lib/striconveh.c (str_iconveh): Likewise.
20315
20316 2007-01-21  Bruno Haible  <bruno@clisp.org>
20317
20318         * lib/striconveh.h (mem_iconveh): New declaration.
20319         * lib/striconveh.c (mem_iconveh): New function.
20320         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
20321
20322 2007-01-21  Bruno Haible  <bruno@clisp.org>
20323
20324         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
20325
20326         * lib/striconveh.h (mem_cd_iconveh): Change specification.
20327         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
20328         original result buffer.
20329         (str_cd_iconveh): Update.
20330         * tests/test-striconveh.c (main): Update.
20331
20332         * lib/striconv.h (mem_cd_iconv): Change specification.
20333         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
20334         result buffer.
20335         (str_cd_iconv): Update.
20336         * tests/test-striconv.c (main): Update.
20337
20338 2007-01-21  Bruno Haible  <bruno@clisp.org>
20339
20340         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
20341
20342 2007-01-20  Jim Meyering  <jim@meyering.net>
20343
20344         * lib/userspec.c (parse_with_separator): If a user or group string
20345         starts with "+", skip the corresponding name-to-ID look-up, since
20346         such a look-up must fail: user and group names may not include "+".
20347
20348 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
20349
20350         * lib/poll.c: Include sys/time.h and time.h unconditionally,
20351         since we now assume the sys_time module.
20352         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
20353         check for sys/time.h; no longer needed.
20354         * modules/poll (Depends-on): Depend on sys_time.
20355
20356 2007-01-18  Bruno Haible  <bruno@clisp.org>
20357
20358         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
20359         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
20360
20361         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
20362         gettimeofday.
20363
20364         * tests/test-gettimeofday.c: Include <time.h>.
20365         (dummy): Remove variable.
20366
20367         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
20368         gl_HEADER_SYS_TIME_H.
20369         (gl_HEADER_SYS_TIME_H): New macro.
20370
20371         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
20372         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
20373         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
20374         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
20375         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
20376         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
20377         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
20378         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
20379         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
20380         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
20381         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
20382
20383         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
20384         last change; it caused a compilation error when cross-compiling to
20385         Cygwin.
20386
20387 2007-01-18  Jim Meyering  <jim@meyering.net>
20388
20389         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
20390         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
20391         than the race-prone "test -d sys || mkdir sys".
20392         (configure.ac): Use AC_PROG_MKDIR_P.
20393         * modules/sys_select: Likewise.
20394         * modules/sys_socket: Likewise.
20395         * modules/sys_time: Likewise.
20396
20397 2007-01-18  Eric Blake  <ebb9@byu.net>
20398
20399         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
20400         replace gettimeofday.
20401         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
20402         name, to avoid infinite recursion.
20403
20404 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
20405
20406         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
20407         module sys_time.
20408         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
20409         assume timespec.h defines struct timeval.
20410         * lib/settime.c: Likewise.
20411         * lib/utimens.c: Likewise.
20412         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
20413         since we now assume the gettimeofday module.
20414         * lib/tempname.c (__gen_tempname): Likewise.
20415         * lib/gettimeofday.h: Remove.
20416         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
20417         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
20418         Include <time.h>, for 'time()'.
20419         (localtime_buffer_addr): Also use this workaround if
20420         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
20421         to simplify the uses.  All uses changed.
20422         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
20423         that #undef is inside {}, and 'const' follows type name consistently.
20424         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
20425         (gettimeofday): Do not use the maximum possible value for
20426         tv->tv_usec, since that might break usages other than ls.c.
20427         Instead, we'll leave ls.c alone.  This undoes today's patch
20428         by Bruno.  Add a compile-time warning for 1s-clock resolution;
20429         we've never observed the problem but might as well keep the
20430         canary.
20431         * lib/nanosleep.c: Include timespec.h first, for interface check.
20432         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
20433         now assume the sys_time module.
20434         * lib/tempname.c: Likewise.
20435         * lib/timespec.h: Likewise.
20436         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
20437         needed.
20438         * lib/strftime.c: Likewise.
20439         * lib/timespec.h: Likewise.
20440         * lib/posixtm.c: Include posixtm.h first, for interface check.
20441         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
20442         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
20443         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
20444         * lib/sys_time_.h: New file.
20445         * lib/timespec.h (struct timespec): Use long int, not long.
20446         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
20447         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
20448         Remove obsolescent call to AC_HEADER_TIME.
20449         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
20450         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
20451         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
20452         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
20453         Likewise.
20454         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
20455         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
20456         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
20457         into the sys_time module.  Check for gettimeofday just once.
20458         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
20459         for gettimeofday signature to just check the signature.  Merely
20460         compile it, since linking doesn't test signature.  Improve test for
20461         whether gettimeofday.o is actually needed.
20462         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
20463         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
20464         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
20465         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
20466         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
20467         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
20468         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
20469         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
20470         than worrying about sys/time.h.
20471         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
20472         Don't bother worrying about TIME_WITH_SYS_TIME.
20473         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
20474         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
20475         * m4/sys_time_h.m4: New file.
20476         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
20477         Don't include sys/time.h.  Return from main rather than exiting.
20478         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
20479         all uses changed.
20480         * modules/gethrxtime (Depends-on): Add sys_time.
20481         * modules/gettime (Depends-on): Likewise.
20482         * modules/gettimeofday (Depends-on): Likewise.
20483         * modules/nanosleep (Depends-on): Likewise.
20484         * modules/settime (Depends-on): Likewise.
20485         * modules/tempname (Depends-on): Likewise.
20486         * modules/utimens (Depends-on): Likewise.
20487         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
20488         (Include:) Change back to <sys/time.h>.
20489         (Maintainer:) Add self.
20490         * modules/sys_time: New file.
20491         * modules/tempname (Depends-on): Add gettimeofday.
20492         * tests/test-gettimeofday.c: Include <sys/time.h>
20493         rather than gettimeofday.h.
20494
20495 2007-01-17  Bruno Haible  <bruno@clisp.org>
20496
20497         * gnulib-tool (func_get_license): Revert last patch. Instead, let
20498         the license default to GPL.
20499         (func_create_testdir): Don't complain if a module is LGPL and its
20500         tests module depends on GPLed modules.
20501
20502 2007-01-17  Bruno Haible  <bruno@clisp.org>
20503
20504         * lib/gettimeofday.c (gettimeofday): Add code for the case
20505         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
20506         maximum possible value for tv->tv_usec, rather than the minimum one.
20507
20508 2005-10-08  Martin Lambers  <marlam@marlam.de>
20509 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
20510 2007-01-16  Bruno Haible  <bruno@clisp.org>
20511
20512         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
20513         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
20514         gl_FUNC_GETTIMEOFDAY.
20515         (Include): Add gettimeofday.h.
20516         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
20517         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
20518         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
20519         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
20520         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
20521         * lib/gettimeofday.h: New file.
20522         * lib/gettimeofday.c: Include <sys/timeb.h>.
20523         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
20524         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
20525         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
20526         fall back on time().
20527
20528         * tests/test-gettimeofday.c: New file.
20529         * modules/gettimeofday-tests: New file.
20530
20531 2007-01-16  Eric Blake  <ebb9@byu.net>
20532
20533         * modules/fnmatch (Depends-on): Depend on wchar.
20534         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
20535         * m4/fnmatch.m4: Likewise.
20536         * modules/mbchar (Makefile.am): Assume <wchar.h>.
20537         * m4/mbchar.m4: Likewise.
20538         * modules/mbswidth (Depends-on): Depend on wchar.
20539         * lib/mbswidth.c: Assume <wchar.h>.
20540         * m4/mbswidth.m4: Likewise.
20541         * modules/quotearg (Depends-on): Depend on wchar.
20542         * lib/quotearg.c: Assume <wchar.h>.
20543         * m4/quotearg.m4: Likewise.
20544         * modules/regex (Depends-on): Depend on wchar.
20545         * lib/regex_internal.h: Assume <wchar.h>.
20546         * m4/regex.m4: Likewise.
20547         * modules/stdint (Depends-on): Depend on wchar.
20548         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
20549         * m4/stdint.m4: Likewise.
20550         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
20551         * modules/strftime (Depends-on): Depend on wchar.
20552         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
20553         * modules/strtol (Depends-on): Depend on wchar.
20554         * lib/strtol.c: Assume <wchar.h>.
20555         * modules/wcwidth (Depends-on): Depend on wchar.
20556         * lib/wcwidth.h: Assume <wchar.h>.
20557         * m4/wcwidth.m4: Likewise.
20558
20559 2007-01-16  Bruno Haible  <bruno@clisp.org>
20560
20561         * modules/csharpexec-script: New, created from...
20562         * modules/csharpexec: ... this.
20563
20564 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
20565
20566         * modules/javaexec-script: New, created from...
20567         * modules/javaexec: ... this.
20568
20569 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20570
20571         * modules/poll (Dependencies): Add sys_select.
20572
20573 2007-01-15  Jim Meyering  <jim@meyering.net>
20574
20575         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
20576         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
20577         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
20578         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
20579
20580 2007-01-15  Bruno Haible  <bruno@clisp.org>
20581
20582         * modules/striconveh: New file.
20583         * lib/striconveh.h: New file.
20584         * lib/striconveh.c: New file.
20585         * MODULES.html.sh (Internationalization functions): Add striconveh.
20586
20587         * modules/striconveh-tests: New file.
20588         * tests/test-striconveh.c: New file.
20589
20590 2007-01-15  Bruno Haible  <bruno@clisp.org>
20591
20592         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
20593         not from GNU libiconv or GNU libc.
20594
20595 2007-01-15  Bruno Haible  <bruno@clisp.org>
20596
20597         * doc/gnulib-intro.texi (Copyright): Explain the different license
20598         terms for module descriptions, autoconf macros, tests, documentation.
20599
20600 2007-01-14  Bruno Haible  <bruno@clisp.org>
20601
20602         * modules/striconv-tests: New file.
20603         * tests/test-striconv.c: New file.
20604
20605 2007-01-14  Bruno Haible  <bruno@clisp.org>
20606
20607         * modules/iconv-tests: New file.
20608         * tests/test-iconv.c: New file.
20609
20610 2007-01-14  Bruno Haible  <bruno@clisp.org>
20611
20612         * gnulib-tool (func_get_license): For test modules, use the license of
20613         the main module.
20614
20615 2007-01-14  Bruno Haible  <bruno@clisp.org>
20616
20617         * modules/iconv (Include): Clarify that <iconv.h> can only be included
20618         if iconv is found to exist.
20619
20620 2007-01-14  Bruno Haible  <bruno@clisp.org>
20621
20622         * modules/c-ctype-tests: New file.
20623         * tests/test-c-ctype.c: New file.
20624
20625 2007-01-14  Bruno Haible  <bruno@clisp.org>
20626
20627         * modules/binary-io-tests: New file.
20628         * tests/test-binary-io.sh: New file.
20629         * tests/test-binary-io.c: New file.
20630
20631 2007-01-14  Bruno Haible  <bruno@clisp.org>
20632
20633         * modules/array-oset-tests: New file.
20634         * tests/test-array_oset.c: New file.
20635
20636 2007-01-14  Bruno Haible  <bruno@clisp.org>
20637
20638         * modules/array-list-tests: New file.
20639         * tests/test-array_list.c: New file.
20640
20641 2007-01-14  Bruno Haible  <bruno@clisp.org>
20642
20643         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
20644         and make.
20645         Reported by Simon Josefsson in
20646         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
20647
20648 2007-01-14  Bruno Haible  <bruno@clisp.org>
20649
20650         * modules/allocsa-tests: New file.
20651         * tests/test-allocsa.c: New file.
20652
20653 2007-01-14  Bruno Haible  <bruno@clisp.org>
20654
20655         * modules/fchdir (Depends-on): Add absolute-header.
20656         * modules/unistd (Depends-on): Likewise.
20657
20658 2006-12-30  Bruno Haible  <bruno@clisp.org>
20659
20660         * modules/fchdir: New file.
20661         * modules/unistd (Files): Add lib/unistd_.h.
20662         (Makefile.am): Generate unistd.h from unistd_.h.
20663         * lib/fchdir.c: New file.
20664         * lib/dirent_.h: New file.
20665         * lib/unistd_.h: New file.
20666         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
20667         * m4/fchdir.m4: New file.
20668         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
20669         (gl_HEADER_UNISTD): Invoke it.
20670         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
20671         function.
20672         * lib/backupfile.c (opendir, closedir): Undefine.
20673         * lib/chown.c (open, close): Undefine.
20674         * lib/clean-temp.c (open, close): Undefine.
20675         * lib/copy-file.c (open, close): Undefine.
20676         * lib/execute.c (open, close): Undefine.
20677         * lib/fsusage.c (open, close): Undefine.
20678         * lib/gc-gnulib.c (open, close): Undefine.
20679         * lib/getcwd.c (opendir, closedir): Undefine.
20680         * lib/glob.c (opendir, closedir): Undefine.
20681         * lib/javacomp.c (open, close): Undefine.
20682         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
20683         * lib/openat-proc.c (open, close): Undefine.
20684         * lib/pagealign_alloc.c (open, close): Undefine.
20685         * lib/pipe.c (open, close): Undefine.
20686         * lib/progreloc.c (open, close): Undefine.
20687         * lib/savedir.c (opendir, closedir): Undefine.
20688         * lib/utime.c (open, close): Undefine.
20689         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
20690
20691 2007-01-10  Bruno Haible  <bruno@clisp.org>
20692
20693         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
20694
20695 2007-01-12  Eric Blake  <ebb9@byu.net>
20696
20697         Provide a robust <wchar.h>.  Further simplifications are now
20698         possible in other modules, but not included here.
20699         * modules/wchar: New module.
20700         * m4/wchar.m4: New file.
20701         * lib/wchar_.h: Likewise.
20702         * modules/mbchar (Depends-on): Depend on wchar, as the first use
20703         of the new module.
20704         * MODULES.html.sh (Extended multibyte and wide character utilities):
20705         New section.
20706
20707 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
20708
20709         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
20710         to a reasonable default for memory allocation.
20711         (xreadlink): Don't allocate a huge buffer, to work around a buggy
20712         file system that reports garbage st_size values for symlinks.
20713         Problem reported by Liyang Hu.
20714
20715 2007-01-11  Simon Josefsson  <simon@josefsson.org>
20716
20717         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
20718         Emacs .#* auto-save files).
20719
20720 2007-01-11  Bruno Haible  <bruno@clisp.org>
20721
20722         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
20723         directory.
20724
20725 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
20726
20727         Use @...@ consistently in lib/wctype_.h.
20728         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
20729         on it being set to 1 or 0.
20730         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
20731         go back to AC_SUBSTing it.
20732         * modules/wctype (Makefile.am): Undo previous change.
20733
20734 2007-01-10  Eric Blake  <ebb9@byu.net>
20735
20736         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
20737         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
20738         * modules/wctype (Makefile.am): Likewise.
20739         Reported by Chris McGuire.
20740
20741 2007-01-10  Jim Meyering  <jim@meyering.net>
20742
20743         fts.c: a small readability/maintainability improvement
20744         * lib/fts.c (fts_read): Make this code slightly more readable and
20745         maintainable by hoisting the "sp->fts_cur = p" assignments to
20746         immediately follow the statements that set P.  Derived from
20747         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
20748
20749 2007-01-10  Eric Blake  <ebb9@byu.net>
20750
20751         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
20752         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
20753         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
20754         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
20755         Reported by Chris McGuire.
20756
20757 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20758
20759         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
20760         in sed script.
20761
20762 2007-01-09  Bruno Haible  <bruno@clisp.org>
20763
20764         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
20765         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
20766         variables.
20767         (func_module): Use them.
20768
20769 2007-01-09  Bruno Haible  <bruno@clisp.org>
20770
20771         * modules/unistr/base: New file.
20772         * lib/unistr.h: New file.
20773
20774         * modules/unistr/u8-to-u16: New file.
20775         * lib/unistr/u8-to-u16.c: New file.
20776
20777         * modules/unistr/u8-to-u32: New file.
20778         * lib/unistr/u8-to-u32.c: New file.
20779
20780         * modules/unistr/u16-to-u8: New file.
20781         * lib/unistr/u16-to-u8.c: New file.
20782
20783         * modules/unistr/u16-to-u32: New file.
20784         * lib/unistr/u16-to-u32.c: New file.
20785
20786         * modules/unistr/u32-to-u8: New file.
20787         * lib/unistr/u32-to-u8.c: New file.
20788
20789         * modules/unistr/u32-to-u16: New file.
20790         * lib/unistr/u32-to-u16.c: New file.
20791
20792         * modules/unistr/u8-check: New file.
20793         * modules/unistr/u16-check: New file.
20794         * modules/unistr/u32-check: New file.
20795         * lib/unistr/u8-check.c: New file.
20796         * lib/unistr/u16-check.c: New file.
20797         * lib/unistr/u32-check.c: New file.
20798
20799         * modules/unistr/u8-chr: New file.
20800         * modules/unistr/u16-chr: New file.
20801         * modules/unistr/u32-chr: New file.
20802         * lib/unistr/u8-chr.c: New file.
20803         * lib/unistr/u16-chr.c: New file.
20804         * lib/unistr/u32-chr.c: New file.
20805
20806         * modules/unistr/u8-cmp: New file.
20807         * modules/unistr/u16-cmp: New file.
20808         * modules/unistr/u32-cmp: New file.
20809         * lib/unistr/u8-cmp.c: New file.
20810         * lib/unistr/u16-cmp.c: New file.
20811         * lib/unistr/u32-cmp.c: New file.
20812
20813         * modules/unistr/u8-cpy: New file.
20814         * modules/unistr/u16-cpy: New file.
20815         * modules/unistr/u32-cpy: New file.
20816         * lib/unistr/u8-cpy.c: New file.
20817         * lib/unistr/u16-cpy.c: New file.
20818         * lib/unistr/u32-cpy.c: New file.
20819         * lib/unistr/u-cpy.h: New file.
20820
20821         * modules/unistr/u8-cpy-alloc: New file.
20822         * modules/unistr/u16-cpy-alloc: New file.
20823         * modules/unistr/u32-cpy-alloc: New file.
20824         * lib/unistr/u8-cpy-alloc.c: New file.
20825         * lib/unistr/u16-cpy-alloc.c: New file.
20826         * lib/unistr/u32-cpy-alloc.c: New file.
20827         * lib/unistr/u-cpy-alloc.h: New file.
20828
20829         * modules/unistr/u8-endswith: New file.
20830         * modules/unistr/u16-endswith: New file.
20831         * modules/unistr/u32-endswith: New file.
20832         * lib/unistr/u8-endswith.c: New file.
20833         * lib/unistr/u16-endswith.c: New file.
20834         * lib/unistr/u32-endswith.c: New file.
20835         * lib/unistr/u-endswith.h: New file.
20836
20837         * modules/unistr/u8-mblen: New file.
20838         * modules/unistr/u16-mblen: New file.
20839         * modules/unistr/u32-mblen: New file.
20840         * lib/unistr/u8-mblen.c: New file.
20841         * lib/unistr/u16-mblen.c: New file.
20842         * lib/unistr/u32-mblen.c: New file.
20843
20844         * modules/unistr/u8-mbtouc: New file.
20845         * modules/unistr/u16-mbtouc: New file.
20846         * modules/unistr/u32-mbtouc: New file.
20847         * lib/unistr/u8-mbtouc.c: New file.
20848         * lib/unistr/u16-mbtouc.c: New file.
20849         * lib/unistr/u32-mbtouc.c: New file.
20850
20851         * modules/unistr/u8-mbtouc-safe: New file.
20852         * modules/unistr/u16-mbtouc-safe: New file.
20853         * modules/unistr/u32-mbtouc-safe: New file.
20854         * lib/unistr/u8-mbtouc-safe.c: New file.
20855         * lib/unistr/u16-mbtouc-safe.c: New file.
20856         * lib/unistr/u32-mbtouc-safe.c: New file.
20857
20858         * modules/unistr/u8-move: New file.
20859         * modules/unistr/u16-move: New file.
20860         * modules/unistr/u32-move: New file.
20861         * lib/unistr/u8-move.c: New file.
20862         * lib/unistr/u16-move.c: New file.
20863         * lib/unistr/u32-move.c: New file.
20864         * lib/unistr/u-move.h: New file.
20865
20866         * modules/unistr/u8-next: New file.
20867         * modules/unistr/u16-next: New file.
20868         * modules/unistr/u32-next: New file.
20869         * lib/unistr/u8-next.c: New file.
20870         * lib/unistr/u16-next.c: New file.
20871         * lib/unistr/u32-next.c: New file.
20872
20873         * modules/unistr/u8-prev: New file.
20874         * modules/unistr/u16-prev: New file.
20875         * modules/unistr/u32-prev: New file.
20876         * lib/unistr/u8-prev.c: New file.
20877         * lib/unistr/u16-prev.c: New file.
20878         * lib/unistr/u32-prev.c: New file.
20879
20880         * modules/unistr/u8-set: New file.
20881         * modules/unistr/u16-set: New file.
20882         * modules/unistr/u32-set: New file.
20883         * lib/unistr/u8-set.c: New file.
20884         * lib/unistr/u16-set.c: New file.
20885         * lib/unistr/u32-set.c: New file.
20886         * lib/unistr/u-set.h: New file.
20887
20888         * modules/unistr/u8-startswith: New file.
20889         * modules/unistr/u16-startswith: New file.
20890         * modules/unistr/u32-startswith: New file.
20891         * lib/unistr/u8-startswith.c: New file.
20892         * lib/unistr/u16-startswith.c: New file.
20893         * lib/unistr/u32-startswith.c: New file.
20894         * lib/unistr/u-startswith.h: New file.
20895
20896         * modules/unistr/u8-stpcpy: New file.
20897         * modules/unistr/u16-stpcpy: New file.
20898         * modules/unistr/u32-stpcpy: New file.
20899         * lib/unistr/u8-stpcpy.c: New file.
20900         * lib/unistr/u16-stpcpy.c: New file.
20901         * lib/unistr/u32-stpcpy.c: New file.
20902         * lib/unistr/u-stpcpy.h: New file.
20903
20904         * modules/unistr/u8-stpncpy: New file.
20905         * modules/unistr/u16-stpncpy: New file.
20906         * modules/unistr/u32-stpncpy: New file.
20907         * lib/unistr/u8-stpncpy.c: New file.
20908         * lib/unistr/u16-stpncpy.c: New file.
20909         * lib/unistr/u32-stpncpy.c: New file.
20910         * lib/unistr/u-stpncpy.h: New file.
20911
20912         * modules/unistr/u8-strcat: New file.
20913         * modules/unistr/u16-strcat: New file.
20914         * modules/unistr/u32-strcat: New file.
20915         * lib/unistr/u8-strcat.c: New file.
20916         * lib/unistr/u16-strcat.c: New file.
20917         * lib/unistr/u32-strcat.c: New file.
20918         * lib/unistr/u-strcat.h: New file.
20919
20920         * modules/unistr/u8-strchr: New file.
20921         * modules/unistr/u16-strchr: New file.
20922         * modules/unistr/u32-strchr: New file.
20923         * lib/unistr/u8-strchr.c: New file.
20924         * lib/unistr/u16-strchr.c: New file.
20925         * lib/unistr/u32-strchr.c: New file.
20926
20927         * modules/unistr/u8-strcmp: New file.
20928         * modules/unistr/u16-strcmp: New file.
20929         * modules/unistr/u32-strcmp: New file.
20930         * lib/unistr/u8-strcmp.c: New file.
20931         * lib/unistr/u16-strcmp.c: New file.
20932         * lib/unistr/u32-strcmp.c: New file.
20933
20934         * modules/unistr/u8-strcpy: New file.
20935         * modules/unistr/u16-strcpy: New file.
20936         * modules/unistr/u32-strcpy: New file.
20937         * lib/unistr/u8-strcpy.c: New file.
20938         * lib/unistr/u16-strcpy.c: New file.
20939         * lib/unistr/u32-strcpy.c: New file.
20940         * lib/unistr/u-strcpy.h: New file.
20941
20942         * modules/unistr/u8-strcspn: New file.
20943         * modules/unistr/u16-strcspn: New file.
20944         * modules/unistr/u32-strcspn: New file.
20945         * lib/unistr/u8-strcspn.c: New file.
20946         * lib/unistr/u16-strcspn.c: New file.
20947         * lib/unistr/u32-strcspn.c: New file.
20948         * lib/unistr/u-strcspn.h: New file.
20949
20950         * modules/unistr/u8-strdup: New file.
20951         * modules/unistr/u16-strdup: New file.
20952         * modules/unistr/u32-strdup: New file.
20953         * lib/unistr/u8-strdup.c: New file.
20954         * lib/unistr/u16-strdup.c: New file.
20955         * lib/unistr/u32-strdup.c: New file.
20956         * lib/unistr/u-strdup.h: New file.
20957
20958         * modules/unistr/u8-strlen: New file.
20959         * modules/unistr/u16-strlen: New file.
20960         * modules/unistr/u32-strlen: New file.
20961         * lib/unistr/u8-strlen.c: New file.
20962         * lib/unistr/u16-strlen.c: New file.
20963         * lib/unistr/u32-strlen.c: New file.
20964         * lib/unistr/u-strlen.h: New file.
20965
20966         * modules/unistr/u8-strmblen: New file.
20967         * modules/unistr/u16-strmblen: New file.
20968         * modules/unistr/u32-strmblen: New file.
20969         * lib/unistr/u8-strmblen.c: New file.
20970         * lib/unistr/u16-strmblen.c: New file.
20971         * lib/unistr/u32-strmblen.c: New file.
20972
20973         * modules/unistr/u8-strmbtouc: New file.
20974         * modules/unistr/u16-strmbtouc: New file.
20975         * modules/unistr/u32-strmbtouc: New file.
20976         * lib/unistr/u8-strmbtouc.c: New file.
20977         * lib/unistr/u16-strmbtouc.c: New file.
20978         * lib/unistr/u32-strmbtouc.c: New file.
20979
20980         * modules/unistr/u8-strncat: New file.
20981         * modules/unistr/u16-strncat: New file.
20982         * modules/unistr/u32-strncat: New file.
20983         * lib/unistr/u8-strncat.c: New file.
20984         * lib/unistr/u16-strncat.c: New file.
20985         * lib/unistr/u32-strncat.c: New file.
20986         * lib/unistr/u-strncat.h: New file.
20987
20988         * modules/unistr/u8-strncmp: New file.
20989         * modules/unistr/u16-strncmp: New file.
20990         * modules/unistr/u32-strncmp: New file.
20991         * lib/unistr/u8-strncmp.c: New file.
20992         * lib/unistr/u16-strncmp.c: New file.
20993         * lib/unistr/u32-strncmp.c: New file.
20994
20995         * modules/unistr/u8-strncpy: New file.
20996         * modules/unistr/u16-strncpy: New file.
20997         * modules/unistr/u32-strncpy: New file.
20998         * lib/unistr/u8-strncpy.c: New file.
20999         * lib/unistr/u16-strncpy.c: New file.
21000         * lib/unistr/u32-strncpy.c: New file.
21001         * lib/unistr/u-strncpy.h: New file.
21002
21003         * modules/unistr/u8-strnlen: New file.
21004         * modules/unistr/u16-strnlen: New file.
21005         * modules/unistr/u32-strnlen: New file.
21006         * lib/unistr/u8-strnlen.c: New file.
21007         * lib/unistr/u16-strnlen.c: New file.
21008         * lib/unistr/u32-strnlen.c: New file.
21009         * lib/unistr/u-strnlen.h: New file.
21010
21011         * modules/unistr/u8-strpbrk: New file.
21012         * modules/unistr/u16-strpbrk: New file.
21013         * modules/unistr/u32-strpbrk: New file.
21014         * lib/unistr/u8-strpbrk.c: New file.
21015         * lib/unistr/u16-strpbrk.c: New file.
21016         * lib/unistr/u32-strpbrk.c: New file.
21017         * lib/unistr/u-strpbrk.h: New file.
21018
21019         * modules/unistr/u8-strrchr: New file.
21020         * modules/unistr/u16-strrchr: New file.
21021         * modules/unistr/u32-strrchr: New file.
21022         * lib/unistr/u8-strrchr.c: New file.
21023         * lib/unistr/u16-strrchr.c: New file.
21024         * lib/unistr/u32-strrchr.c: New file.
21025
21026         * modules/unistr/u8-strspn: New file.
21027         * modules/unistr/u16-strspn: New file.
21028         * modules/unistr/u32-strspn: New file.
21029         * lib/unistr/u8-strspn.c: New file.
21030         * lib/unistr/u16-strspn.c: New file.
21031         * lib/unistr/u32-strspn.c: New file.
21032         * lib/unistr/u-strspn.h: New file.
21033
21034         * modules/unistr/u8-strstr: New file.
21035         * modules/unistr/u16-strstr: New file.
21036         * modules/unistr/u32-strstr: New file.
21037         * lib/unistr/u8-strstr.c: New file.
21038         * lib/unistr/u16-strstr.c: New file.
21039         * lib/unistr/u32-strstr.c: New file.
21040         * lib/unistr/u-strstr.h: New file.
21041
21042         * modules/unistr/u8-strtok: New file.
21043         * modules/unistr/u16-strtok: New file.
21044         * modules/unistr/u32-strtok: New file.
21045         * lib/unistr/u8-strtok.c: New file.
21046         * lib/unistr/u16-strtok.c: New file.
21047         * lib/unistr/u32-strtok.c: New file.
21048         * lib/unistr/u-strtok.h: New file.
21049
21050         * modules/unistr/u8-uctomb: New file.
21051         * modules/unistr/u16-uctomb: New file.
21052         * modules/unistr/u32-uctomb: New file.
21053         * lib/unistr/u8-uctomb.c: New file.
21054         * lib/unistr/u16-uctomb.c: New file.
21055         * lib/unistr/u32-uctomb.c: New file.
21056
21057         * MODULES.html.sh (Unicode string functions): Add the new modules.
21058
21059 2007-01-08  Bruno Haible  <bruno@clisp.org>
21060
21061         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
21062         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
21063         subdirectories.
21064
21065 2007-01-08  Karl Berry  <karl@gnu.org>
21066
21067         * doc/error.texi: mention that main() fns must set program_name
21068         when progname is used.
21069
21070 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
21071
21072         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
21073         WCTYPE_H is empty, for the benefit of builds from non-distclean
21074         directories.  Problem reported by Eric Blake in
21075         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
21076
21077 2007-01-08  Bruno Haible  <bruno@clisp.org>
21078
21079         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
21080         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
21081         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
21082         PROVIDE_CANONICALIZE_FILENAME_MODE.
21083         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
21084
21085 2007-01-08  Bruno Haible  <bruno@clisp.org>
21086
21087         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
21088         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
21089         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
21090         * lib/fts.c: Likewise.
21091         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
21092
21093 2006-12-25  Bruno Haible  <bruno@clisp.org>
21094
21095         * modules/utf8-ucs4-safe: New file.
21096         * lib/utf8-ucs4-safe.h: New file.
21097         * lib/unistr/utf8-ucs4-safe.c: New file.
21098
21099         * modules/utf16-ucs4-safe: New file.
21100         * lib/utf16-ucs4-safe.h: New file.
21101         * lib/unistr/utf16-ucs4-safe.c: New file.
21102
21103         * MODULES.html.sh (Unicode string functions): Add the new modules.
21104
21105 2007-01-08  Bruno Haible  <bruno@clisp.org>
21106
21107         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
21108         (Depends-on): Add unitypes.
21109         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
21110         (u8_mbtouc_aux): Move out to separate file.
21111         (u8_mbtouc): Use ucs4_t, uint8_t types.
21112         * lib/unistr/utf8-ucs4.c: New file.
21113
21114         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
21115         (Depends-on): Add unitypes.
21116         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
21117         (u16_mbtouc_aux): Move out to separate file.
21118         (u16_mbtouc): Use ucs4_t, uint16_t types.
21119         * lib/unistr/utf16-ucs4.c: New file.
21120
21121         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
21122         (Depends-on): Add unitypes.
21123         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
21124         (u8_uctomb_aux): Move out to separate file.
21125         (u8_uctomb): Use ucs4_t, uint8_t types.
21126         * lib/unistr/ucs4-utf8.c: New file.
21127
21128         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
21129         (Depends-on): Add unitypes.
21130         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
21131         (u16_uctomb_aux): Move out to separate file.
21132         (u16_uctomb): Use ucs4_t, uint16_t types.
21133         * lib/unistr/ucs4-utf16.c: New file.
21134
21135 2006-12-25  Bruno Haible  <bruno@clisp.org>
21136
21137         * modules/unitypes: New file.
21138         * lib/unitypes.h: New file.
21139         * MODULES.html.sh (func_all_modules): New section "Unicode string
21140         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
21141         this section. Add unitypes.
21142
21143 2007-01-08  Bruno Haible  <bruno@clisp.org>
21144
21145         Avoid variable names that conflict with those from libtool.
21146         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
21147         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
21148         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
21149         library_names_spec to acl_library_names_spec, hardcode_* to
21150         acl_hardcode_*.
21151         Reported by Ralf Wildenhues.
21152
21153 2007-01-08  Bruno Haible  <bruno@clisp.org>
21154
21155         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
21156         definition.
21157         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
21158         definition.
21159         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
21160         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
21161         definition.
21162         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
21163         definition.
21164         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
21165         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
21166         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
21167         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
21168         definition.
21169         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
21170         definition.
21171         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
21172         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
21173         GC_USE_<algorithm>.
21174         * lib/gc-libgcrypt.c: Likewise.
21175         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
21176         * modules/gc-arctwo (configure.ac): Likewise.
21177         * modules/gc-des (configure.ac): Likewise.
21178         * modules/gc-hmac-md5 (configure.ac): Likewise.
21179         * modules/gc-hmac-sha1 (configure.ac): Likewise.
21180         * modules/gc-md2 (configure.ac): Likewise.
21181         * modules/gc-md4 (configure.ac): Likewise.
21182         * modules/gc-md5 (configure.ac): Likewise.
21183         * modules/gc-random (configure.ac): Likewise.
21184         * modules/gc-rijndael (configure.ac): Likewise.
21185         * modules/gc-sha1 (configure.ac): Likewise.
21186
21187 2007-01-08  Bruno Haible  <bruno@clisp.org>
21188
21189         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
21190         macro definition.
21191         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
21192         definition.
21193         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
21194         definition.
21195         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
21196         * modules/fcntl-safer (configure.ac): Likewise.
21197         * modules/fopen-safer (configure.ac): Likewise.
21198         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
21199         GNULIB_FWRITEERROR macro definition.
21200
21201 2007-01-08  Bruno Haible  <bruno@clisp.org>
21202
21203         * m4/gnulib-common.m4: New file.
21204         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
21205         (func_get_filelist): Add m4/gnulib-common.m4.
21206
21207 2007-01-08  Bruno Haible  <bruno@clisp.org>
21208
21209         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
21210         command.
21211
21212 2007-01-08  Jim Meyering  <jim@meyering.net>
21213
21214         Use a more robust test for a "can't happen" condition.
21215         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
21216         narrowed the st_size value.  Presuming the "can't happen" condition
21217         is true, that narrowing could conceivably convert an invalid st_size
21218         value into a valid one.  Instead, use a change based on Matthew
21219         Woehlke's original patch.
21220
21221         Slight readability improvement: use an assert-like macro
21222         in place of literal "abort ()" uses.
21223         * lib/fts.c (fts_assert): Define.
21224         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
21225         Use this macro instead of a bare 'abort'.
21226
21227 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
21228
21229         Don't worry about using IRIX 5.3's wctype.h broken definitions;
21230         simply work around them.
21231         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
21232         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
21233         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
21234         declaring.
21235         Don't bother to define as macros, since the standard doesn't require it.
21236         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
21237         longer worry about IRIX 5.3.
21238         (HAVE_WCTYPE_CTMP_BUG): Remove.
21239
21240 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
21241
21242         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
21243         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
21244         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
21245         Problems reported by Georg Schwarz for IRIX 5.3.
21246
21247         * gnulib-tool (autoconf_minversion): Take the maximum version number
21248         found, not the minimum.  Problem reported by James Youngman.
21249
21250 2007-01-03  Karl Berry  <karl@gnu.org>
21251
21252         * doc/error.texi: new file, explaining interaction with progname.
21253         * doc/gnulib.texi: include it.  Update copyright.
21254
21255 2007-01-03  Simon Josefsson  <simon@josefsson.org>
21256
21257         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
21258         AC_CANONICAL_HOST, to improve autobuild outputs.
21259
21260 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
21261             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
21262
21263         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
21264         sockets, server sockets, and other file descriptors.  Count errors
21265         to compute the return value.  Reorder the code a bit to be easier
21266         to follow.  Don't set event bits that were not requested (except
21267         POLLERR and POLLHUP).
21268
21269 2007-01-01  Bruno Haible  <bruno@clisp.org>
21270
21271         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
21272
21273 2007-01-03  Jim Meyering  <jim@meyering.net>
21274
21275         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
21276
21277 2007-01-02  Bruno Haible  <bruno@clisp.org>
21278
21279         * modules/settime (Include): Require timespec.h.
21280         * modules/nanosleep (Include): Likewise.
21281
21282 2007-01-01  Bruno Haible  <bruno@clisp.org>
21283
21284         * gnulib-tool (func_emit_copyright_notice): Bump year.
21285         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
21286
21287 2007-01-01  Bruno Haible  <bruno@clisp.org>
21288
21289         Improve support for OpenBSD.
21290         * build-aux/config.rpath (libname_spec): Export.
21291         (library_names_spec): New variable. Export.
21292         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
21293         library_names_spec from the config.rpath output. Locate shared library
21294         through the name pattern in library_names_spec.
21295
21296 2007-01-01  Eric Blake  <ebb9@byu.net>
21297
21298         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
21299
21300 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
21301
21302         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
21303         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
21304         assume the C locale, and avoid an "eval" that could cause trouble.
21305         Problem with SORT reported by Bob Proulx.
21306
21307         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
21308         Define.  Trivial patch from Henning Nielsen Lund, originally
21309         sent to bug-grep@gnu.org today.
21310
21311 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
21312
21313         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
21314         struct stat.  Problem reported by Henning Nielsen Lund.
21315         * lib/acl.c: Include acl.h first, to check interface.  Don't
21316         bother to include sys/types.h and sys/stat.h again.
21317
21318 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
21319
21320         Import the following change from libc; problem reported by
21321         Sven Verdoolaege.
21322
21323         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
21324
21325         [BZ #1373]
21326         * lib/argp.h: Remove __NTH for __argp_usage inline function.
21327
21328 2006-12-28  Jim Meyering  <jim@meyering.net>
21329
21330         * build-aux/announce-gen: Do not assume that the package
21331         builds any of tar.gz, tar.bz2, and .xdelta files.
21332         Suggestion from Simon Josefsson.
21333
21334 2006-12-28  Simon Josefsson  <simon@josefsson.org>
21335
21336         * modules/announce-gen: New file.
21337
21338 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
21339
21340         * lib/mbchar.h: Just include <wctype.h>; the wctype module
21341         handles its gotchas now.
21342         * lib/mbswidth.c: Likewise.
21343         * lib/wcwidth.h: Likewise.
21344         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
21345         and iswcntrl; the wctype module does this stuff now.
21346         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
21347         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
21348         * modules/mbchar (Depends-on): Add wctype.
21349         * modules/mbswidth (Depends-on): Likewise.
21350         * modules/wcwidth (Depends-on): Likewise.
21351
21352 2006-12-27  Eric Blake  <ebb9@byu.net>
21353
21354         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
21355         module uses more than what <wctype.h> is required to provide.
21356
21357 2006-12-26  Eric Blake  <ebb9@byu.net>
21358
21359         * gnulib-tool (sed_extract_prog): Avoid space-tab.
21360
21361 2006-12-26  Eric Blake  <ebb9@byu.net>
21362
21363         * modules/absolute-header: New module.
21364         * modules/fcntl (Depends-on): Depend on it.
21365         * modules/inttypes (Depends-on): Likewise.
21366         * modules/stdint (Depends-on): Likewise.
21367         * modules/sys_stat (Depends-on): Likewise.
21368         * modules/wctype (Depends-on): Likewise.
21369         * MODULES.html.sh (Support for building libraries and
21370         executables): Document it.
21371
21372 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
21373
21374         * gnulib-tool (SED): Remove, undoing previous change.
21375         The problem was that it broke coreutils on Solaris, because
21376         "sed --posix" leaked into a makefile.
21377         (sed): New alias, if 'alias' and GNU sed.
21378
21379 2006-12-24  Jim Meyering  <jim@meyering.net>
21380
21381         Work around an fchownat bug in glibc-2.4:
21382         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
21383         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
21384         in spite of the -P option.
21385         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
21386         New macros.
21387         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
21388         * modules/openat (Files): Add lib/fchownat.c.
21389         * lib/openat.c (fchownat): Don't define here.  Move to...
21390         * lib/fchownat.c: ...this new file.
21391
21392 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
21393
21394         Fix bug reported by Bruno Haible in
21395         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
21396         where quotearg.c didn't compile on Mac OS X 10.2 because it
21397         lacks <wchar.h> and wint_t.
21398         * lib/wctype_.h (__wctype_wint_t): New type.
21399         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
21400         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
21401         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
21402         Arg is now of type __wctype_wint_t, not wint_t.
21403         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
21404         substitute HAVE_WINT_T.
21405         * modules/wctype (Files): Add m4/wint_t.m4.
21406         (wctype.h): Substitute HAVE_WINT_T.
21407
21408 2006-12-23  Bruno Haible  <bruno@clisp.org>
21409
21410         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
21411
21412 2006-12-23  Bruno Haible  <bruno@clisp.org>
21413
21414         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
21415         S_ISLNK.
21416         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
21417         mingw.
21418
21419 2006-12-22  Bruno Haible  <bruno@clisp.org>
21420
21421         * lib/copy-file.c: Include acl.h.
21422         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
21423         Close the file descriptors only after being done with copy_acl.
21424         * modules/copy-file (Depends-on): Add acl.
21425
21426 2006-12-22  Bruno Haible  <bruno@clisp.org>
21427
21428         * gnulib-tool (SED): New variable.
21429         Use $SED instead of sed everywhere.
21430
21431 2006-12-22  Bruno Haible  <bruno@clisp.org>
21432
21433         * modules/no-c++: New file.
21434         * m4/no-c++.m4: New file.
21435         * MODULES.html.sh (Support for building libraries and executables):
21436         Add no-c++.
21437
21438 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
21439
21440         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
21441         Include <limits.h>, and use its INT_MAX to rewrite the
21442         j loop so that it does not overflow 'int'.  Problem reported by
21443         Ralf Wildenhues in
21444         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
21445         Play it safe by shifting left by 1 rather than multiplying by 2,
21446         as GCC is less likely to optimize this away when the value
21447         is signed (when it assumes overflow leads to undefined behavior).
21448         Also, don't assume time_t uses two's complement.
21449
21450 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
21451
21452         * MODULES.html.sh: New module wctype.
21453         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
21454         * lib/fnmatch.c: Don't bother to include <wchar.h> before
21455         <wctype.h>, since the new wctype module should fix this.
21456         * lib/quotearg.c: Include <wctype.h> unconditionally, since
21457         the wctype module should arrange for it.
21458         * lib/regex_internal.h: Likewise.
21459         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
21460         since the wctype module should handle this now.
21461         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
21462         * modules/fnmatch (Depends-on): Add wctype.
21463         * modules/quotearg (Depends-on): Likewise.
21464         * modules/regex (Depends-on): Likewise.
21465
21466 2006-12-19  Bruno Haible  <bruno@clisp.org>
21467
21468         * lib/strdup.h [C++]: Wrap definitions in extern "C".
21469         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
21470
21471 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21472
21473         * modules/savewd (Depends-on): Fix dependency on fcntl.
21474
21475 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
21476
21477         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
21478         conforms to C99, rather than relying on the user's environment
21479         setting of STDINT_H.
21480
21481 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
21482         and Eric Blake  <ebb9@byu.net>
21483
21484         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
21485         This is more consistent with the other defines here.
21486         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
21487         Port to z/OS.  Problem reported by Paul Gilmartin.
21488         Change local vars to use gl_ prefix rather than ac_.
21489         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
21490         with other defines.
21491         * modules/double-slash-root: New module.
21492         * modules/dirname (Files): Remove m4/double-slash-root.m4.
21493         (Depends-on): Add double-slash-root.
21494         * MODULES.html.sh (File system functions): Mention new module.
21495
21496 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
21497
21498         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
21499         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
21500         This is for the benefit of gzip, which doesn't do i18n.
21501
21502 2006-12-12  Jim Meyering  <jim@meyering.net>
21503
21504         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
21505         Reported by Andreas Schwab <schwab@suse.de>.
21506
21507 2006-12-12  Bruno Haible  <bruno@clisp.org>
21508
21509         Merge these changes.
21510         2006-09-05  Bruno Haible  <bruno@clisp.org>
21511         * lib/iconvme.c (iconv_string): No need to save and restore errno when
21512         iconv_alloc succeeded.
21513         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
21514         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
21515         test for " && dest " at the end - dest is always != NULL there. Call
21516         iconv with 4xNULL arguments initially, to reset the state. Call iconv
21517         with 2xNULL arguments, also to flush the state storage. Handle the
21518         IRIX iconv behaviour. Realloc the final result, to throw away unused
21519         memory.
21520
21521 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
21522
21523         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
21524         and fchmodat unconditionally, since glibc 2.4 has them.
21525         Problem reported by Arkadiusz Miskiewicz.
21526
21527 2006-12-10  Bruno Haible  <bruno@clisp.org>
21528
21529         * gnulib-tool (func_import): Show the include files only for those
21530         modules that are copied and specified.
21531         Reported by Karl Berry.
21532
21533 2006-12-08  Jim Meyering  <jim@meyering.net>
21534
21535         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
21536         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
21537
21538         * build-aux/announce-gen: Add two new options, both optional:
21539         --bootstrap-tools=TOOL_LIST
21540               a comma-separated list of tools, e.g.,
21541               autoconf,automake,bison,gnulib
21542         --gnulib-snapshot-date=DATE
21543               if gnulib is in the bootstrap tool list,
21544               then report this as the snapshot date.
21545               If not specified, use the current date/time.
21546               If you specify a date here, be sure it's UTC.
21547
21548 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21549
21550         * tests/test-argp-2.sh: Fix test to match actual output.
21551         (func_compare): Fix sed script to be portable.
21552
21553 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
21554
21555         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
21556         workaround for this case.  It is not autoconfigured now; offhand
21557         it's hard to see how to autoconfigure it.
21558
21559 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
21560
21561         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
21562         a directory that is about to be chowned.  Such a directory's
21563         initial file permissions should permit the owner only and this
21564         should not be changed until after the chown, since the group and
21565         other bits would be incorrect if they granted permission before
21566         the chown.
21567
21568         Fix porting problem for iswctype reported by Georg Schwarz in:
21569         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
21570         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
21571         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
21572         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
21573         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
21574
21575 2006-12-03  Jim Meyering  <jim@meyering.net>
21576
21577         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
21578         p->fts_statp may not yet be defined.
21579         (fts_read): Instead, set it in the caller, once p->fts_statp is
21580         sure to be defined, and corresponds to a top-level directory.
21581         This bug made du -x fail.  Here's the coreutils test case:
21582         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
21583         Reported by Mike Frysinger.
21584
21585 2006-12-01  Jim Meyering  <jim@meyering.net>
21586
21587         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
21588         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
21589         Reported by Simon Josefsson.
21590
21591 2006-11-30  Jim Meyering  <jim@meyering.net>
21592
21593         * m4/warning.m4: Use the all-permissive copyright notice
21594         recommended by RMS (rather than LGPL).
21595         * m4/vararrays.m4: Likewise.
21596         * m4/flexmember.m4: Likewise.
21597
21598 2006-11-29  Bruno Haible  <bruno@clisp.org>
21599
21600         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
21601         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
21602         using +=.
21603         Reported by Simon Josefsson <simon@josefsson.org>.
21604
21605 2006-11-28  James Youngman <jay@gnu.org>
21606
21607         * README: Advise users that they might find the bug-gnulib@gnu.org
21608         and autotools-announce@gnu.org mailing lists useful.
21609
21610 2006-11-28  Bruno Haible  <bruno@clisp.org>
21611
21612         * m4/ptrdiff_max.m4: Remove file.
21613
21614 2006-11-21  Bruno Haible  <bruno@clisp.org>
21615
21616         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
21617         _AC_COMPUTE_INT.
21618         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
21619         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
21620         _AC_COMPUTE_INT.
21621         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
21622         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
21623         _AC_COMPUTE_INT.
21624         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
21625
21626 2006-11-28  Jim Meyering  <jim@meyering.net>
21627
21628         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
21629         warning from "gcc -Wshadow" about shadowing the builtin.
21630
21631 2006-11-27  Bruno Haible  <bruno@clisp.org>
21632
21633         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
21634         _AC_COMPUTE_INT.
21635         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
21636
21637 2006-11-27  Bruno Haible  <bruno@clisp.org>
21638             Paul Eggert  <eggert@cs.ucla.edu>
21639
21640         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
21641
21642 2006-11-26  Bruno Haible  <bruno@clisp.org>
21643
21644         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
21645         noinst_LTLIBRARIES.
21646
21647 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
21648             Bruno Haible  <bruno@clisp.org>
21649
21650         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
21651         if compiling with "gcc -ansi".
21652
21653 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
21654
21655         Fix some incompatibilities with gcc -ansi -pedantic.
21656         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
21657         if compiling pedantically with GCC, unless it's C99 or later.
21658         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
21659         it mishandles gcc -ansi -pedantic as well.
21660         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
21661         if gcc -pedantic.
21662         * lib/regexec.c (check_node_accept_bytes): Don't use auto
21663         initializers for struct if -pedantic, unless it's C99 or later.
21664
21665 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
21666
21667         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
21668         Don't close an fd more than once. Identical atimes indicate
21669         success, not failure.
21670
21671 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
21672
21673         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
21674
21675 2006-11-23  Jim Meyering  <jim@meyering.net>
21676
21677         * build-aux/announce-gen: New file.  From coreutils.
21678
21679 2006-11-22  Jim Meyering  <jim@meyering.net>
21680
21681         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
21682         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
21683         (fts_read): Use a temporary to narrow the overused st_size member
21684         before using it in a switch statement.  Reported by Matthew Woehlke.
21685
21686         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
21687         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
21688
21689 2006-11-20  Bruno Haible  <bruno@clisp.org>
21690
21691         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
21692         changequote instead of pairs of brackets.
21693         Reported by Andreas Schwab <schwab@suse.de>.
21694
21695 2006-11-21  Jim Meyering  <jim@meyering.net>
21696
21697         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
21698         so as to remain compatible with older compilers.
21699         Patch from Michael Deutschmann.
21700
21701 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
21702
21703         * MODULES.html.sh (File system functions): Add openat.
21704
21705         * lib/openat.h (rpl_fstatat): New macro, if
21706         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
21707         (fstatat): Define to rpl_fstatat under the same conditions,
21708         unless COMPILING_FSTATAT.
21709         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
21710         seems to have the bug.
21711         * lib/fstatat.c: New file.
21712         * modules/openat (Files): Add it.
21713
21714 2006-11-20  Bruno Haible  <bruno@clisp.org>
21715
21716         * Makefile: New file.
21717
21718 2006-11-20  Jim Meyering  <jim@meyering.net>
21719
21720         The beginnings of syntax-related checks for gnulib.
21721         * lib/Makefile: New file.
21722         * lib/t-idcache: New script.  Ensure that the two halves of
21723         idcache.c stay in sync.
21724
21725         * lib/idcache.c: Adjust comments in user- and group- portions to
21726         be more accurate, and to be consistent with one another.
21727
21728 2006-11-20  Jim Meyering  <jim@meyering.net>
21729
21730         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
21731         continue using the flexible array member (thus, this module performs
21732         half as many malloc calls), with the addition that...
21733         (getgroup, getuser): Consistently record a non-match via an empty
21734         "name" string, and map an empty string match to a NULL return value.
21735         * modules/idcache (Depends-on): Re-add flexmember.
21736
21737         * lib/idcache.c (getuser): Remove all uses of the register keyword.
21738         (getuidbyname, getgroup, getgidbyname): Likewise.
21739
21740         Use cleaner syntax: NULL rather than 0.
21741         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
21742
21743 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
21744
21745         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
21746         It mishandled the case where the group was missing.
21747         Problem reported by Greg Schafer.
21748         * modules/idcache: Likewise.
21749
21750 2006-11-18  Jim Meyering  <jim@meyering.net>
21751
21752         * check-module (%exempt_header): Add exception for some
21753         conditionally-included headers.
21754
21755         * modules/i-ring (Depends-on): Add verify.
21756         (License): Change to LGPL.
21757
21758 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
21759
21760         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
21761         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
21762         and inttostr.h.  Use snprintf rather than uinttostr, so that
21763         LGPLed code doesn't depend on GPLed.
21764
21765 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
21766
21767         * modules/inline (License): Change from GPL to LGPL.
21768
21769 2006-11-17  Jim Meyering  <jim@meyering.net>
21770
21771         * modules/d-type (License): Switch to LGPL.
21772
21773 2006-11-15  Bruno Haible  <bruno@clisp.org>
21774
21775         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
21776
21777 2006-11-15  Eric Blake  <ebb9@byu.net>
21778
21779         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
21780         the module dependency.
21781
21782 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21783             Bruno Haible  <bruno@clisp.org>
21784
21785         * gnulib-tool (func_create_testdir): Add license consistency check.
21786
21787 2006-11-15  Eric Blake  <ebb9@byu.net>
21788
21789         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
21790         random "(cached)" in configure output.
21791
21792 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21793
21794         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
21795         test for conforming inttypes.h is both announced and cached.
21796
21797         * MODULES.html.sh (seen_modules, seen_files): New variables.
21798         (func_module): Rewrite to use a few less gnulib-tool and sed
21799         invocations.  Avoid a couple of quadratic algorithms for ...
21800         (missed_modules, missed_files): ... these, with ...
21801         (func_append, func_tmpdir): ... these new functions, from
21802         gnulib-tool.  Analogously, install traps for cleanup.
21803
21804         * tests/test-gc.c (main): Remove unused variables.
21805         * tests/test-read-file.c: Include stdlib.h, for 'free'.
21806
21807 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
21808
21809         * modules/inttostr (License): Change to LGPL.
21810
21811 2006-11-14  Eric Blake  <ebb9@byu.net>
21812
21813         * modules/tempname (License): Change to LGPL.
21814
21815 2006-11-14  Eric Blake  <ebb9@byu.net>
21816
21817         * doc/functions.texi (Function Portability): *printf functions on
21818         Cygwin now understand all POSIX size specifiers.
21819
21820 2006-11-14  Bruno Haible  <bruno@clisp.org>
21821
21822         * modules/c-ctype (License): Change to LGPL.
21823
21824 2006-11-12  Bruno Haible  <bruno@clisp.org>
21825
21826         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
21827         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
21828         for GNOME libraries, for which the include files are installed in
21829         subdirectories of $prefix/include.
21830
21831 2006-11-12  Bruno Haible  <bruno@clisp.org>
21832
21833         * m4/lib-link.m4: Require at least autoconf-2.54.
21834         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
21835         name to underscores for the --with option.
21836
21837 2006-11-13  Bruno Haible  <bruno@clisp.org>
21838
21839         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
21840         the tests directory.
21841         Reported by Ralf Wildenhues.
21842
21843 2006-11-13  Bruno Haible  <bruno@clisp.org>
21844
21845         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
21846         (func_emit_initmacro_end): Undo the override here.
21847         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
21848         Works around the famous automake error in coreutils.
21849
21850 2006-11-13  Eric Blake  <ebb9@byu.net>
21851
21852         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
21853         element, not its node.
21854
21855 2006-11-12  Bruno Haible  <bruno@clisp.org>
21856
21857         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
21858         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
21859
21860 2006-11-12  Bruno Haible  <bruno@clisp.org>
21861
21862         * gnulib-tool: New option --local-symlink.
21863         (func_usage): Document it.
21864         (lsymbolic): New variable.
21865         (func_import, func_create_testdir): If --symlink was not specified,
21866         test whether --local-symlink was specified and the file comes from
21867         the local_gnulib_dir.
21868
21869 2006-11-12  Bruno Haible  <bruno@clisp.org>
21870
21871         * gnulib-tool (func_ln): New function.
21872         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
21873
21874 2006-11-12  Bruno Haible  <bruno@clisp.org>
21875
21876         Finish support for source files in subdirectories.
21877         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
21878         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
21879         AUTOMAKE_OPTIONS.
21880         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
21881
21882 2006-11-12  Bruno Haible  <bruno@clisp.org>
21883
21884         * gnulib-tool (func_get_automake_snippet): Synthesize also an
21885         EXTRA_lib_SOURCES augmentation.
21886         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
21887
21888 2006-11-12  Jim Meyering  <jim@meyering.net>
21889
21890         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
21891         file descriptors.  This also averts a failure on systems with
21892         native openat support when a traversed directory lacks "x" access.
21893         * lib/fts_.h: Include "i-ring.h"
21894         (struct FTS) [fts_fd_ring]: New member.
21895         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
21896         (FCHDIR): Add parentheses.
21897         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
21898         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
21899         When descending, rather than simply closing the previous
21900         fts_cwd_fd value, push that file descriptor onto the ring.
21901         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
21902         (fts_open): Initialize the new fd_ring member.
21903         (fts_close): Clear the ring.
21904         (fts_safe_changedir): When possible, use our new fd_ring to skip
21905         the diropen and fstat and dev/ino comparison that would normally
21906         accompany a virtual `chdir ("..")'.
21907
21908         * modules/fts (Depends-on): Add i-ring.
21909         * modules/i-ring: New module.
21910         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
21911         * m4/i-ring.m4: New file.
21912
21913 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21914
21915         * gnulib-tool (func_create_testdir): Fix replacement of
21916         `build-aux' in configure.ac.  Run autotools in gltests
21917         subdirectory.
21918         (func_create_testdir, func_create_megatestdir, test): There is
21919         no need for '--force' in most autotool invocations in a new
21920         tree.  Actually fail the whole test if any of the tools, or the
21921         configure or make stages fail.
21922
21923         Sync from Automake.
21924         * build-aux/gnupload: Revert last change.  Add pointer to upload
21925         instructions of the GNU Maintenance Instructions.
21926         Suggestion by Karl Berry.
21927
21928 2006-11-10  Jim Meyering  <jim@meyering.net>
21929
21930         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
21931
21932 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
21933
21934         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
21935         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
21936         (bind_textdomain_codeset) [! ENABLE_NLS]:
21937         Evaluate all the arguments.  That way, callers get compatible behavior
21938         if the arguments have side effects.  Also, it avoids some GCC
21939         diagnostics in some cases; Joel E. Denny reported problems when Bison
21940         was configured with --enable-gcc-warnigs.
21941
21942 2006-11-10  Jim Meyering  <jim@meyering.net>
21943
21944         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
21945         relevant options in CFLAGS (like -O, -fno-inline) are taken into
21946         account.
21947
21948 2006-11-10  Jim Meyering  <jim@meyering.net>
21949
21950         * modules/inline: New file/module.
21951         * modules/xalloc (Files): Remove m4/inline.m4.
21952         (Depends-on): Add inline, instead.
21953         * modules/oset: Likewise.
21954         * modules/list: Likewise.
21955
21956 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
21957
21958         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
21959         Problem reported by Matthew Woehlke.
21960
21961 2006-11-09  Bruno Haible  <bruno@clisp.org>
21962
21963         * lib/tempname.c (gen_tempname): Remove variant that invokes
21964         __gen_tempname.
21965         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
21966         __gen_tempname.
21967
21968 2006-11-08  Bruno Haible  <bruno@clisp.org>
21969
21970         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
21971         to 'yes' instead of 'cross-compiling'.
21972
21973 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
21974
21975         * lib/quotearg.h (quotearg_free): New decl.
21976         * lib/quotearg.c (quotearg_free): New function.
21977         (slot0, nslots, slotvec0, slotvec):
21978         Now file-scope so that quotearg_free can get at them.
21979
21980 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21981
21982         Sync from Automake.
21983         * build-aux/gnupload: Add missing 'gnu' to example URL.
21984         Report by Karl Berry.
21985
21986 2006-11-08  Bruno Haible  <bruno@clisp.org>
21987
21988         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
21989         Suggested by Paul Eggert.
21990
21991 2006-11-08  Jim Meyering  <jim@meyering.net>
21992
21993         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
21994         It's already included if !_LIBC.
21995         (fts_safe_changedir): Add a comment.
21996
21997 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
21998
21999         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
22000         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
22001         Matthew Woehlke.
22002
22003         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
22004         definitions up, to avoid colliding with change below.
22005         (static_inline) [HAVE_INLINE]: New macro.
22006         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
22007         Provide extern decls when !HAVE_INLINE.  Do not define unless
22008         static_inline is defined, either by us or by xmalloc.c.  Use
22009         static_inline rather than static inline.
22010         (XCALLOC): Optimize sizeof(T) = 1 case.
22011         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
22012
22013 2006-11-07  Bruno Haible  <bruno@clisp.org>
22014
22015         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
22016         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
22017         AC_C_INLINE.
22018         * modules/xalloc (Files): Add m4/inline.m4.
22019
22020 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22021
22022         * README: Fix typo.
22023         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
22024         (Miscellanous Notes): ...from this.
22025
22026 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
22027
22028         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
22029         Mention that offsetof should be used instead of sizeof.
22030         From Bruno Haible.
22031
22032 2006-11-07  Bruno Haible  <bruno@clisp.org>
22033
22034         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
22035
22036 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
22037
22038         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
22039         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
22040         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
22041         (gl_tree_add_before, gl_tree_add_after):
22042         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
22043         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
22044         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
22045         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
22046         (gl_linked_add_after, gl_linked_add_at): Likewise.
22047         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
22048         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
22049         (gl_tree_add_before, gl_tree_add_after): Likewise.
22050         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
22051         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
22052         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
22053
22054 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22055
22056         * lib/gl_oset.h: Use C comment style, not C++ comment style.
22057
22058 2006-11-06  Bruno Haible  <bruno@clisp.org>
22059
22060         * m4/inline.m4: New file.
22061         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
22062         * modules/list (Files): Add m4/inline.m4.
22063         * modules/oset (Files): Likewise.
22064
22065 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
22066
22067         * lib/idcache.c: Include <stddef.h>, for offsetof.
22068         (struct userid.name): Change from char * to a flexible array member.
22069         All uses changed.
22070         * modules/idcache (Depends-on): Add flexmember.
22071
22072         * MODULES.html.sh (Core language properties): New module flexmember.
22073         * modules/flexmember, m4/flexmember.m4: New files.
22074
22075         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
22076         inline functions that are identical with the old xnmalloc_inline,
22077         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
22078         that we can avoid some unnecessary integer multiplications and
22079         divisions in the common case where the element size is known at
22080         compile time.
22081         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
22082         needed.
22083         (xnboundedmalloc): Remove.
22084         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
22085         arguments, for consistency with rest of this header.
22086         (xcharalloc): Rewrite using XNMALLOC.
22087         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
22088         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
22089         versions have been moved to lib/xalloc.h and renamed to be the
22090         non-*_inline versions.
22091         (xmalloc, xrealloc): Implement without reference to the xnmalloc
22092         and xnrealloc functions, since those functions are now inline and
22093         now call us.
22094         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
22095         renaming described above.
22096         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
22097         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
22098         captures the dependency in AC_C_INLINE.
22099
22100         New module canonicalize-lgpl, proposed by Charles Wilson in
22101         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
22102         with a few small changes afterwards.
22103         * MODULES.html.sh (File system functions): New module
22104         canonicalize-lgpl.
22105         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
22106         and canonicalize_file_name.
22107         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
22108         * modules/canonicalize-lgpl: New files.
22109
22110 2006-11-05  Bruno Haible  <bruno@clisp.org>
22111
22112         * gnulib-tool (func_import, func_create_testdir): Create directories
22113         also for files in subdirectories of lib/.
22114
22115 2006-11-05  Bruno Haible  <bruno@clisp.org>
22116
22117         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
22118         ANSI C compliant.
22119
22120 2006-11-03  Bruno Haible  <bruno@clisp.org>
22121
22122         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
22123         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
22124         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
22125         (xnboundedmalloc): New inline function.
22126         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
22127         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
22128         xmalloc.
22129         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
22130         xmalloc.
22131         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
22132         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
22133         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
22134         xmalloc.
22135         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
22136         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
22137         xmalloc.
22138         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
22139         gl_tree_add_after): Use XMALLOC instead of xmalloc.
22140         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
22141         xmalloc.
22142         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
22143         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
22144         gl_tree_add_after): Use XMALLOC instead of xmalloc.
22145         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
22146         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
22147         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
22148         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
22149
22150 2006-11-03  Bruno Haible  <bruno@clisp.org>
22151
22152         * lib/c-ctype.h [C++]: Define functions without name mangling.
22153         * lib/fwriteerror.h [C++]: Likewise.
22154         * lib/gcd.h [C++]: Likewise.
22155         * lib/linebreak.h [C++]: Likewise.
22156
22157 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
22158
22159         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
22160         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
22161         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
22162         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
22163         Check for functions and headers just once.
22164         Check for declaration of canonicalize_file_name.
22165         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
22166
22167 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
22168
22169         * gnulib-tool (func_import): Fix typo in actioncmd.
22170
22171 2006-11-02  Bruno Haible  <bruno@clisp.org>
22172
22173         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
22174         newline sequence in the Makefile.am snippet as a space, like "make"
22175         does.
22176         Reported by Roger Persson <perrog@gmail.com>.
22177
22178 2006-11-01  Bruno Haible  <bruno@clisp.org>
22179
22180         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
22181         already declared in <string.h>.
22182         * lib/strcase.h (strncasecmp): Don't declare it if yes.
22183
22184 2006-11-01  Bruno Haible  <bruno@clisp.org>
22185
22186         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
22187         * lib/strcase.h: Include <string.h>.
22188         (strcasecmp): Define to rpl_strcasecmp here.
22189
22190 2006-11-01  Bruno Haible  <bruno@clisp.org>
22191
22192         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
22193
22194 2006-11-01  Eric Blake  <ebb9@byu.net>
22195
22196         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
22197
22198         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
22199
22200 2006-10-29  Bruno Haible  <bruno@clisp.org>
22201
22202         Make it compile in C++ mode.
22203         * lib/full-write.c (full_rw): Add a cast.
22204
22205 2006-11-01  Bruno Haible  <bruno@clisp.org>
22206
22207         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
22208         be POSIX compliant.
22209         Reported by Roger Persson <perrog@gmail.com>.
22210
22211 2006-11-01  Eric Blake  <ebb9@byu.net>
22212
22213         * lib/getopt_.h: Fix comments.
22214
22215 2006-10-31  Eric Blake  <ebb9@byu.net>
22216
22217         * modules/tmpdir (Depends-on): Add sys_stat.
22218         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
22219         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
22220         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
22221         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
22222         tempname.
22223
22224 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
22225
22226         Avoid some C++ diagnostics reported by Bruno Haible.
22227         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
22228         xmalloc.
22229         (quotearg_alloc): Use xcharalloc rather than xmalloc.
22230         (struct slotvec): Move to top level.
22231         (quotearg_n_options): Rewrite to avoid xmalloc.
22232         * lib/xalloc.h (xcharalloc): New function.
22233         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
22234         [defined __cplusplus]: Add function template that provides result
22235         type propagation.  This part of the change is from Bruno Haible.
22236
22237 2006-10-29  Bruno Haible  <bruno@clisp.org>
22238
22239         Make it compile in C++ mode.
22240         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
22241         * lib/strnlen1.c (strnlen1): Cast memchr result.
22242         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
22243         * lib/clean-temp.c (string_equals, string_hash): Add casts.
22244         (create_temp_dir): Rename local variable 'template'.
22245         (compile_csharp_using_sscli): Add cast.
22246         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
22247         * lib/findprog.c (find_in_path): Likewise.
22248         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
22249         * lib/wait-process.c (register_slave_subprocess): Likewise.
22250
22251 2006-10-22  Bruno Haible  <bruno@clisp.org>
22252
22253         * modules/tsearch: New file.
22254         * lib/tsearch.h: New file.
22255         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
22256         * m4/tsearch.m4: New file.
22257         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
22258
22259 2006-10-29  Eric Blake  <ebb9@byu.net>
22260
22261         * lib/arcfour.c: Assume config.h.
22262         * lib/arctwo.c: Likewise.
22263         * lib/base64.c: Likewise.
22264         * lib/check-version.c: Likewise.
22265         * lib/crc.c: Likewise.
22266         * lib/des.c: Likewise.
22267         * lib/gc-gnulib.c: Likewise.
22268         * lib/gc-libgcrypt.c: Likewise.
22269         * lib/gc-pbkdf2-sha1.c: Likewise.
22270         * lib/getaddrinfo.c: Likewise.
22271         * lib/getdelim.c: Likewise.
22272         * lib/getline.c: Likewise.
22273         * lib/hmac-md5.c: Likewise.
22274         * lib/hmac-sha1.c: Likewise.
22275         * lib/iconvme.c: Likewise.
22276         * lib/md2.c: Likewise.
22277         * lib/md4.c: Likewise.
22278         * lib/memxor.c: Likewise.
22279         * lib/read-file.c: Likewise.
22280         * lib/readline.c: Likewise.
22281         * lib/rijndael-alg-fst.c: Likewise.
22282         * lib/rijndael-api-fst.c: Likewise.
22283         * lib/xgetdomainname.c: Likewise.
22284
22285 2006-10-28  Eric Blake  <ebb9@byu.net>
22286
22287         * lib/xstrndup.c: Assume config.h.
22288
22289 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
22290
22291         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
22292         stat-macros.h is now for our own macros, whereas stat_h is for
22293         macros in the <sys/stat.h> name space.
22294         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
22295         (STAT_MACROS_H): Remove.
22296         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
22297         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
22298         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
22299         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
22300         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
22301         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
22302         Move these macros to ...
22303         * lib/stat_.h: here.  Don't include stat-macros.h.
22304         * lib/canonicalize.c: Don't include stat-macros.h.
22305         * lib/chown.c: Likewise.
22306         * lib/euidaccess.c: Likewise.
22307         * lib/file-type.c: Likewise.
22308         * lib/filemode.c: Likewise.
22309         * lib/glob.c: Likewise.
22310         * lib/isapipe.c: Likewise.
22311         * lib/lchown.c: Likewise.
22312         * lib/lstat.c: Likewise.
22313         * lib/mkdir-p.c: Likewise.
22314         * lib/rmdir.c: Likewise.
22315         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
22316         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
22317         unless mkdir isn't declared, to speed up 'configure'.
22318         Always create sys/stat.h, since it's unlikely any real sys/stat.h
22319         would define all the S_* symbols.
22320         * modules/canonicalize (Depends-on):
22321         Depend on sys_stat, not stat-macros.
22322         * modules/chown: Likewise.
22323         * modules/euidaccess: Likewise.
22324         * modules/filemode: Likewise.
22325         * modules/file-type: Likewise.
22326         * modules/glob: Likewise.
22327         * modules/isapipe: Likewise.
22328         * modules/lchown: Likewise.
22329         * modules/lstat: Likewise.
22330         * modules/mkancesdirs: Likewise.
22331         * modules/rmdir: Likewise.
22332         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
22333         * modules/modechange: Likewise.
22334         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
22335         (configure.ac): Remove gl_STAT_MACROS.
22336         * modules/sys_stat (Depends-on): Remove stat-macros.
22337
22338 2006-10-27  Bruno Haible  <bruno@clisp.org>
22339
22340         * m4/signed.m4: Remove file.
22341         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
22342         invocation.
22343         * modules/vasnprintf (Files): Remove m4/signed.m4.
22344
22345 2006-10-27  Bruno Haible  <bruno@clisp.org>
22346
22347         Update to GNU gettext 0.16.
22348         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
22349         m4/inttypes-h.m4, m4/signed.m4.
22350         * m4/gettext.m4: Update to GNU gettext 0.16.
22351         * m4/intl.m4: New file, from GNU gettext.
22352         * m4/intldir.m4: New file, from GNU gettext.
22353         * config/srclist.txt: Update
22354
22355 2006-10-27  Eric Blake  <ebb9@byu.net>
22356
22357         * MODULES.html.sh: Document tempname.
22358         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
22359         dependencies.
22360         (Files): Move lib/tempname.c...
22361         * modules/tempname: ...to this new module.
22362         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
22363         (gl_PREREQ_TEMPNAME): Move...
22364         * m4/tempname.m4: ...to this new file.
22365         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
22366         * modules/sys_stat (Depends-on): Add stat-macros.
22367         * lib/stat_.h (includes): Pick up stat macros.
22368         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
22369         if stat macros are broken.
22370         * lib/tempname.c (includes): No need to include "stat-macros.h".
22371         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
22372         (direxists, __path_search) [!_LIBC]: Don't compile these in
22373         gnulib; the tmpdir module covers that.
22374         * lib/tempname.h: New file.
22375
22376 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
22377
22378         * COPYING: Explain how gnulib-tool converts licence headers.
22379         Almost all wording by Eric Blake.
22380
22381 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
22382
22383         * lib/mbchar.h (is_basic_table): Make read-only.
22384         * lib/mbchar.c (is_basic_table): Likewise.
22385         Reported by John Darrington.
22386
22387 2006-10-25  Bruno Haible  <bruno@clisp.org>
22388
22389         * lib/progname.h (set_program_name): Undefine before defining.
22390
22391 2006-10-25  Bruno Haible  <bruno@clisp.org>
22392
22393         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
22394         false for non-gcc C++ compilers.
22395         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
22396
22397 2006-10-24  Bruno Haible  <bruno@clisp.org>
22398
22399         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
22400         iconv implementations like Irix iconv.
22401
22402 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
22403
22404         * modules/vararrays: New file.
22405         * m4/vararrays.m4: New file, taken from diffutils.
22406         * MODULES.html.sh: New module vararrays.
22407
22408 2006-10-24  Karl Berry  <karl@gnu.org>
22409
22410         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
22411         Don't call GNU Unix.
22412
22413 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22414
22415         * users.txt: Add Libtool.
22416
22417         Sync from Libtool:
22418
22419         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
22420
22421         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
22422         to gnulib's policy of including config.h unconditionally.
22423
22424 2006-10-24  Bruno Haible  <bruno@clisp.org>
22425
22426         * modules/wcwidth (Files): Add m4/wint_t.m4.
22427         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
22428         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
22429
22430 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
22431
22432         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
22433         to pacify GCC with some -W flags enabled.  Problem reported by
22434         Bruno Haible.
22435
22436 2006-10-24  Jim Meyering  <jim@meyering.net>
22437
22438         * MODULES.html.sh: Remove uinttostr.  It's not a module.
22439         Reported by Karl Berry.
22440
22441 2006-10-23  Bruno Haible  <bruno@clisp.org>
22442
22443         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
22444
22445 2006-10-24  Bruno Haible  <bruno@clisp.org>
22446
22447         * lib/gl_list.h: Use C comment style, not C++ comment style.
22448
22449 2006-10-23  Eric Blake  <ebb9@byu.net>
22450
22451         * lib/getaddrinfo.c (includes): Add missing include.
22452
22453 2006-10-23  Bruno Haible  <bruno@clisp.org>
22454             Paul Eggert  <eggert@cs.ucla.edu>
22455
22456         Ability to rename obstack_free.
22457         * lib/obstack.h (__obstack_free): New macro. Declare instead of
22458         obstack_free.
22459         (obstack_free): Invoke the __obstack_free macro.
22460         * lib/obstack.c (obstack_free): Use __obstack_free macro.
22461
22462 2006-10-23  Bruno Haible  <bruno@clisp.org>
22463             Paul Eggert  <eggert@cs.ucla.edu>
22464
22465         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
22466         __argc, __argv from the declaration. (They are defined as macros on
22467         mingw.)
22468
22469 2006-10-22  Bruno Haible  <bruno@clisp.org>
22470
22471         * doc/gnulib-intro.texi: New file.
22472         * doc/gnulib.texi: Include it.
22473
22474 2006-10-21  Bruno Haible  <bruno@clisp.org>
22475
22476         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
22477         "Introduction", "Miscellanous Notes", "Particular Modules".
22478
22479 2006-10-21  Bruno Haible  <bruno@clisp.org>
22480
22481         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
22482         Change mostlyclean-local rule to avoid sh syntax error from bash
22483         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
22484
22485 2006-10-23  Jim Meyering  <jim@meyering.net>
22486
22487         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
22488         in place of snprintf.
22489
22490         * modules/inttostr (Files): Add lib/uinttostr.c.
22491         * lib/uinttostr.c (inttostr): New file/function.
22492         * lib/inttostr.h (uinttostr): Declare.
22493         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
22494         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
22495         Add uinttostr.
22496         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
22497
22498 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
22499
22500         * lib/canonicalize.c (ELOOP): Define if not already defined.
22501         Problem reported by Bruno Haible in
22502         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
22503
22504 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
22505
22506         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
22507         Problem reported by Perry Smith and Ville Laurikari.
22508
22509         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
22510         uses.
22511
22512 2006-10-19  Bruno Haible  <bruno@clisp.org>
22513
22514         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
22515         for mingw.
22516
22517 2006-10-19  Bruno Haible  <bruno@clisp.org>
22518
22519         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
22520         Needed for mingw.
22521
22522 2006-10-19  Bruno Haible  <bruno@clisp.org>
22523
22524         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
22525
22526 2006-10-19  Bruno Haible  <bruno@clisp.org>
22527
22528         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
22529         it.
22530
22531 2006-10-19  Bruno Haible  <bruno@clisp.org>
22532
22533         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
22534         invocation.
22535
22536 2006-10-19  Bruno Haible  <bruno@clisp.org>
22537
22538         * gnulib-tool (func_create_testdir): Don't include ftruncate and
22539         mountlist by default.
22540
22541 2006-10-16  Bruno Haible  <bruno@clisp.org>
22542
22543         * lib/c-strstr.c: Include c-strstr.h.
22544
22545 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
22546
22547         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
22548         in a slash.
22549
22550 2006-10-18  Bruno Haible  <bruno@clisp.org>
22551
22552         * lib/lock.h [C++]: Wrap definitions in extern "C".
22553
22554 2006-10-18  Bruno Haible  <bruno@clisp.org>
22555
22556         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
22557         gl_LIBOBJS list.
22558
22559 2006-10-18  Bruno Haible  <bruno@clisp.org>
22560
22561         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
22562
22563 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
22564
22565         * lib/xstrtol.h: Include gettext.h.
22566         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
22567         Problem reported by Eric Blake.
22568         * modules/xstrtol (Depends-on): Add gettext-h.
22569
22570 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
22571
22572         * lib/strftime.c (advance): New macro.
22573         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
22574         incomplete type, so you can't add 0 to it.  Problem and patch
22575         reported by Eelco Dolstra for dietlibc.
22576
22577 2006-10-18  Jim Meyering  <jim@meyering.net>
22578
22579         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
22580         type for a local, and rename it: s/up/user_proc/.
22581
22582 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
22583
22584         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
22585         READ_UTMP_USER_PROCESS.
22586         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
22587
22588 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
22589
22590         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
22591         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
22592
22593 2006-10-17  Eric Blake  <ebb9@byu.net>
22594
22595         * lib/sigprocmask.c (sigprocmask): Fix typo.
22596
22597         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
22598
22599         * modules/clean-temp (Makefile.am): Don't add to make output...
22600         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
22601         config.h.
22602
22603 2006-10-17  Bruno Haible  <bruno@clisp.org>
22604
22605         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
22606         differently if DEFAULT_TEXT_DOMAIN is set.
22607
22608 2006-10-16  Bruno Haible  <bruno@clisp.org>
22609
22610         * lib/clean-temp.c: Include fwriteerror.h.
22611
22612 2006-10-16  Bruno Haible  <bruno@clisp.org>
22613
22614         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
22615
22616 2006-10-16  Bruno Haible  <bruno@clisp.org>
22617
22618         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
22619         * lib/sigprocmask.h: Include <sys/types.h>.
22620         (sigset_t): Use the system's definition if present.
22621
22622 2006-10-17  Eric Blake  <ebb9@byu.net>
22623
22624         * lib/xvasprintf.c (includes): Assume config.h.
22625         * lib/xasprintf.c (includes): Likewise.
22626
22627 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
22628
22629         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
22630         at least as wide as intmax_t.
22631
22632 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
22633
22634         (Imported from Automake.)
22635         * build-aux/gnupload: Update to version 1.1 of directive file.
22636
22637 2006-10-16  Eric Blake  <ebb9@byu.net>
22638
22639         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
22640         match Automake 1.10a.
22641
22642 2006-10-14  Bruno Haible  <bruno@clisp.org>
22643
22644         * modules/sigprocmask: New file.
22645         * lib/sigprocmask.h: New file.
22646         * lib/sigprocmask.c: New file.
22647         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
22648         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
22649         request sigprocmask.o.
22650         (gl_PREREQ_SIGPROCMASK): New macro.
22651         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
22652         (Depends-on): Add sigprocmask.
22653         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
22654         gt_SIGNALBLOCKING. Test for 'raise' only once.
22655         * lib/fatal-signal.c: Include sigprocmask.h.
22656         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
22657         unblock_fatal_signals): Define always.
22658         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
22659         sigprocmask.
22660
22661 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
22662
22663         Sync from Automake.
22664         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
22665         which incorrectly sets the mode of an existing destination
22666         directory.  In some cases the unpatched install-sh could do the
22667         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
22668         system.  We hope this is rare in practice, but it's clearly worth
22669         fixing.  Problem reported by Alex Unleashed in
22670         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
22671         Also, don't bother to check for -m bugs unless we're using -m;
22672         suggested by Stepan Kasal.
22673
22674 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22675
22676         Sync from Automake.
22677         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
22678         `-c' flag, so they appear at the same position as in %FASTDEP%
22679         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
22680         which ignores unknown options only after the first non-option.
22681         Bug report against M4 by Nelson H. F. Beebe.
22682
22683 2006-10-13  Jim Meyering  <jim@meyering.net>
22684
22685         Fix a bug in yesterday's change.
22686         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
22687         p->fts_statp->st_dev would be used uninitialized.
22688         Ensures that we always call fts_stat on the very first entry.
22689         Miklos Szeredi reported that find -xdev stopped working.
22690
22691 2006-10-12  Bruno Haible  <bruno@clisp.org>
22692
22693         * gnulib-tool (func_get_automake_snippet): Append an automatically
22694         computed EXTRA_DIST augmentation.
22695         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
22696         * modules/alloca-opt (Makefile.am): Likewise.
22697         * modules/allocsa (Makefile.am): Likewise.
22698         * modules/arcfour (Makefile.am): Likewise.
22699         * modules/arctwo (Makefile.am): Likewise.
22700         * modules/argmatch (Makefile.am): Likewise.
22701         * modules/argz (Makefile.am): Likewise.
22702         * modules/atexit (Makefile.am): Likewise.
22703         * modules/backupfile (Makefile.am): Likewise.
22704         * modules/byteswap (Makefile.am): Likewise.
22705         * modules/c-strtod (Makefile.am): Likewise.
22706         * modules/c-strtold (Makefile.am): Likewise.
22707         * modules/calloc (Makefile.am): Likewise.
22708         * modules/canon-host (Makefile.am): Likewise.
22709         * modules/canonicalize (Makefile.am): Likewise.
22710         * modules/chdir-long (Makefile.am): Likewise.
22711         * modules/chdir-safer (Makefile.am): Likewise.
22712         * modules/check-version (Makefile.am): Likewise.
22713         * modules/chown (Makefile.am): Likewise.
22714         * modules/cloexec (Makefile.am): Likewise.
22715         * modules/close-stream (Makefile.am): Likewise.
22716         * modules/closeout (Makefile.am): Likewise.
22717         * modules/crc (Makefile.am): Likewise.
22718         * modules/csharpexec (Makefile.am): Likewise.
22719         * modules/cycle-check (Makefile.am): Likewise.
22720         * modules/des (Makefile.am): Likewise.
22721         * modules/dev-ino (Makefile.am): Likewise.
22722         * modules/dirfd (Makefile.am): Likewise.
22723         * modules/dirname (Makefile.am): Likewise.
22724         * modules/dup2 (Makefile.am): Likewise.
22725         * modules/eealloc (Makefile.am): Likewise.
22726         * modules/error (Makefile.am): Likewise.
22727         * modules/euidaccess (Makefile.am): Likewise.
22728         * modules/exclude (Makefile.am): Likewise.
22729         * modules/exitfail (Makefile.am): Likewise.
22730         * modules/fcntl-safer (Makefile.am): Likewise.
22731         * modules/fcntl (Makefile.am): Likewise.
22732         * modules/file-type (Makefile.am): Likewise.
22733         * modules/fileblocks (Makefile.am): Likewise.
22734         * modules/filemode (Makefile.am): Likewise.
22735         * modules/filenamecat (Makefile.am): Likewise.
22736         * modules/fnmatch (Makefile.am): Likewise.
22737         * modules/fopen-safer (Makefile.am): Likewise.
22738         * modules/fpending (Makefile.am): Likewise.
22739         * modules/fprintftime (Makefile.am): Likewise.
22740         * modules/free (Makefile.am): Likewise.
22741         * modules/fsusage (Makefile.am): Likewise.
22742         * modules/ftruncate (Makefile.am): Likewise.
22743         * modules/fts (Makefile.am): Likewise.
22744         * modules/gc-arcfour (Makefile.am): Likewise.
22745         * modules/gc-des (Makefile.am): Likewise.
22746         * modules/gc-hmac-md5 (Makefile.am): Likewise.
22747         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
22748         * modules/gc-md4 (Makefile.am): Likewise.
22749         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
22750         * modules/gc-sha1 (Makefile.am): Likewise.
22751         * modules/gc (Makefile.am): Likewise.
22752         * modules/getaddrinfo (Makefile.am): Likewise.
22753         * modules/getcwd (Makefile.am): Likewise.
22754         * modules/getdelim (Makefile.am): Likewise.
22755         * modules/getdomainname (Makefile.am): Likewise.
22756         * modules/getgroups (Makefile.am): Likewise.
22757         * modules/gethostname (Makefile.am): Likewise.
22758         * modules/gethrxtime (Makefile.am): Likewise.
22759         * modules/getline (Makefile.am): Likewise.
22760         * modules/getloadavg (Makefile.am): Likewise.
22761         * modules/getlogin_r (Makefile.am): Likewise.
22762         * modules/getndelim2 (Makefile.am): Likewise.
22763         * modules/getopt (Makefile.am): Likewise.
22764         * modules/getpagesize (Makefile.am): Likewise.
22765         * modules/getpass-gnu (Makefile.am): Likewise.
22766         * modules/getpass (Makefile.am): Likewise.
22767         * modules/getsubopt (Makefile.am): Likewise.
22768         * modules/gettime (Makefile.am): Likewise.
22769         * modules/gettimeofday (Makefile.am): Likewise.
22770         * modules/getugroups (Makefile.am): Likewise.
22771         * modules/getusershell (Makefile.am): Likewise.
22772         * modules/glob (Makefile.am): Likewise.
22773         * modules/group-member (Makefile.am): Likewise.
22774         * modules/hard-locale (Makefile.am): Likewise.
22775         * modules/hash (Makefile.am): Likewise.
22776         * modules/hmac-md5 (Makefile.am): Likewise.
22777         * modules/hmac-sha1 (Makefile.am): Likewise.
22778         * modules/human (Makefile.am): Likewise.
22779         * modules/idcache (Makefile.am): Likewise.
22780         * modules/imaxabs (Makefile.am): Likewise.
22781         * modules/imaxdiv (Makefile.am): Likewise.
22782         * modules/inet_ntop (Makefile.am): Likewise.
22783         * modules/inet_pton (Makefile.am): Likewise.
22784         * modules/intprops (Makefile.am): Likewise.
22785         * modules/inttostr (Makefile.am): Likewise.
22786         * modules/inttypes (Makefile.am): Likewise.
22787         * modules/isapipe (Makefile.am): Likewise.
22788         * modules/javaversion (Makefile.am): Likewise.
22789         * modules/lchmod (Makefile.am): Likewise.
22790         * modules/lchown (Makefile.am): Likewise.
22791         * modules/localcharset (Makefile.am): Likewise.
22792         * modules/long-options (Makefile.am): Likewise.
22793         * modules/lstat (Makefile.am): Likewise.
22794         * modules/malloc (Makefile.am): Likewise.
22795         * modules/mathl (Makefile.am): Likewise.
22796         * modules/mbchar (Makefile.am): Likewise.
22797         * modules/md2 (Makefile.am): Likewise.
22798         * modules/md4 (Makefile.am): Likewise.
22799         * modules/md5 (Makefile.am): Likewise.
22800         * modules/memcasecmp (Makefile.am): Likewise.
22801         * modules/memchr (Makefile.am): Likewise.
22802         * modules/memcmp (Makefile.am): Likewise.
22803         * modules/memcoll (Makefile.am): Likewise.
22804         * modules/memcpy (Makefile.am): Likewise.
22805         * modules/memmem (Makefile.am): Likewise.
22806         * modules/memmove (Makefile.am): Likewise.
22807         * modules/mempcpy (Makefile.am): Likewise.
22808         * modules/memrchr (Makefile.am): Likewise.
22809         * modules/memset (Makefile.am): Likewise.
22810         * modules/memxor (Makefile.am): Likewise.
22811         * modules/mkancesdirs (Makefile.am): Likewise.
22812         * modules/mkdir-p (Makefile.am): Likewise.
22813         * modules/mkdir (Makefile.am): Likewise.
22814         * modules/mkdtemp (Makefile.am): Likewise.
22815         * modules/mkstemp (Makefile.am): Likewise.
22816         * modules/mktime (Makefile.am): Likewise.
22817         * modules/modechange (Makefile.am): Likewise.
22818         * modules/mountlist (Makefile.am): Likewise.
22819         * modules/nanosleep (Makefile.am): Likewise.
22820         * modules/obstack (Makefile.am): Likewise.
22821         * modules/openat (Makefile.am): Likewise.
22822         * modules/pagealign_alloc (Makefile.am): Likewise.
22823         * modules/pathmax (Makefile.am): Likewise.
22824         * modules/physmem (Makefile.am): Likewise.
22825         * modules/poll (Makefile.am): Likewise.
22826         * modules/posixtm (Makefile.am): Likewise.
22827         * modules/posixver (Makefile.am): Likewise.
22828         * modules/putenv (Makefile.am): Likewise.
22829         * modules/quote (Makefile.am): Likewise.
22830         * modules/quotearg (Makefile.am): Likewise.
22831         * modules/raise (Makefile.am): Likewise.
22832         * modules/read-file (Makefile.am): Likewise.
22833         * modules/readline (Makefile.am): Likewise.
22834         * modules/readlink (Makefile.am): Likewise.
22835         * modules/readtokens (Makefile.am): Likewise.
22836         * modules/readutmp (Makefile.am): Likewise.
22837         * modules/realloc (Makefile.am): Likewise.
22838         * modules/regex (Makefile.am): Likewise.
22839         * modules/rename-dest-slash (Makefile.am): Likewise.
22840         * modules/rename (Makefile.am): Likewise.
22841         * modules/rijndael (Makefile.am): Likewise.
22842         * modules/rmdir (Makefile.am): Likewise.
22843         * modules/rpmatch (Makefile.am): Likewise.
22844         * modules/safe-read (Makefile.am): Likewise.
22845         * modules/safe-write (Makefile.am): Likewise.
22846         * modules/same-inode (Makefile.am): Likewise.
22847         * modules/same (Makefile.am): Likewise.
22848         * modules/save-cwd (Makefile.am): Likewise.
22849         * modules/savedir (Makefile.am): Likewise.
22850         * modules/setenv (Makefile.am): Likewise.
22851         * modules/settime (Makefile.am): Likewise.
22852         * modules/sha1 (Makefile.am): Likewise.
22853         * modules/sig2str (Makefile.am): Likewise.
22854         * modules/snprintf (Makefile.am): Likewise.
22855         * modules/stat-macros (Makefile.am): Likewise.
22856         * modules/stat-time (Makefile.am): Likewise.
22857         * modules/stdbool (Makefile.am): Likewise.
22858         * modules/stdint (Makefile.am): Likewise.
22859         * modules/stdlib-safer (Makefile.am): Likewise.
22860         * modules/stpcpy (Makefile.am): Likewise.
22861         * modules/stpncpy (Makefile.am): Likewise.
22862         * modules/strcase (Makefile.am): Likewise.
22863         * modules/strcasestr (Makefile.am): Likewise.
22864         * modules/strchrnul (Makefile.am): Likewise.
22865         * modules/strcspn (Makefile.am): Likewise.
22866         * modules/strdup (Makefile.am): Likewise.
22867         * modules/strerror (Makefile.am): Likewise.
22868         * modules/strftime (Makefile.am): Likewise.
22869         * modules/strndup (Makefile.am): Likewise.
22870         * modules/strnlen (Makefile.am): Likewise.
22871         * modules/strpbrk (Makefile.am): Likewise.
22872         * modules/strsep (Makefile.am): Likewise.
22873         * modules/strstr (Makefile.am): Likewise.
22874         * modules/strtod (Makefile.am): Likewise.
22875         * modules/strtoimax (Makefile.am): Likewise.
22876         * modules/strtok_r (Makefile.am): Likewise.
22877         * modules/strtol (Makefile.am): Likewise.
22878         * modules/strtoll (Makefile.am): Likewise.
22879         * modules/strtoul (Makefile.am): Likewise.
22880         * modules/strtoull (Makefile.am): Likewise.
22881         * modules/strtoumax (Makefile.am): Likewise.
22882         * modules/strverscmp (Makefile.am): Likewise.
22883         * modules/sys_socket (Makefile.am): Likewise.
22884         * modules/sys_stat (Makefile.am): Likewise.
22885         * modules/sysexits (Makefile.am): Likewise.
22886         * modules/time_r (Makefile.am): Likewise.
22887         * modules/timegm (Makefile.am): Likewise.
22888         * modules/timespec (Makefile.am): Likewise.
22889         * modules/tmpfile-safer (Makefile.am): Likewise.
22890         * modules/trim (Makefile.am): Likewise.
22891         * modules/unistd-safer (Makefile.am): Likewise.
22892         * modules/unlinkdir (Makefile.am): Likewise.
22893         * modules/unlocked-io (Makefile.am): Likewise.
22894         * modules/userspec (Makefile.am): Likewise.
22895         * modules/utime (Makefile.am): Likewise.
22896         * modules/utimecmp (Makefile.am): Likewise.
22897         * modules/utimens (Makefile.am): Likewise.
22898         * modules/vasnprintf (Makefile.am): Likewise.
22899         * modules/vasprintf (Makefile.am): Likewise.
22900         * modules/vsnprintf (Makefile.am): Likewise.
22901         * modules/xalloc (Makefile.am): Likewise.
22902         * modules/xgetcwd (Makefile.am): Likewise.
22903         * modules/xnanosleep (Makefile.am): Likewise.
22904         * modules/xreadlink (Makefile.am): Likewise.
22905         * modules/xstrtod (Makefile.am): Likewise.
22906         * modules/xstrtol (Makefile.am): Likewise.
22907         * modules/xstrtold (Makefile.am): Likewise.
22908         * modules/yesno (Makefile.am): Likewise.
22909         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
22910
22911 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
22912
22913         * modules/error (Makefile.am): Distribute files through
22914         EXTRA_DIST, not lib_SOURCES.
22915
22916 2006-10-12  Eric Blake  <ebb9@byu.net>
22917
22918         * modules/error (Makefile.am): Distribute files in /lib.
22919         * modules/obstack (Makefile.am): Likewise.
22920
22921 2006-10-12  Bruno Haible  <bruno@clisp.org>
22922
22923         * modules/acl (Makefile.am): Distribute all files in lib/ through
22924         EXTRA_DIST.
22925         * modules/arcfour (Makefile.am): Likewise.
22926         * modules/arctwo (Makefile.am): Likewise.
22927         * modules/argmatch (Makefile.am): Likewise.
22928         * modules/argz (Makefile.am): Likewise.
22929         * modules/atexit (Makefile.am): Likewise.
22930         * modules/backupfile (Makefile.am): Likewise.
22931         * modules/c-strtod (Makefile.am): Likewise.
22932         * modules/c-strtold (Makefile.am): Likewise.
22933         * modules/calloc (Makefile.am): Likewise.
22934         * modules/canon-host (Makefile.am): Likewise.
22935         * modules/canonicalize (Makefile.am): Likewise.
22936         * modules/chdir-long (Makefile.am): Likewise.
22937         * modules/chdir-safer (Makefile.am): Likewise.
22938         * modules/check-version (Makefile.am): Likewise.
22939         * modules/chown (Makefile.am): Likewise.
22940         * modules/cloexec (Makefile.am): Likewise.
22941         * modules/close-stream (Makefile.am): Likewise.
22942         * modules/closeout (Makefile.am): Likewise.
22943         * modules/crc (Makefile.am): Likewise.
22944         * modules/cycle-check (Makefile.am): Likewise.
22945         * modules/des (Makefile.am): Likewise.
22946         * modules/dirfd (Makefile.am): Likewise.
22947         * modules/dirname (Makefile.am): Likewise.
22948         * modules/dup2 (Makefile.am): Likewise.
22949         * modules/euidaccess (Makefile.am): Likewise.
22950         * modules/exclude (Makefile.am): Likewise.
22951         * modules/exitfail (Makefile.am): Likewise.
22952         * modules/fcntl-safer (Makefile.am): Likewise.
22953         * modules/file-type (Makefile.am): Likewise.
22954         * modules/fileblocks (Makefile.am): Likewise.
22955         * modules/filemode (Makefile.am): Likewise.
22956         * modules/filenamecat (Makefile.am): Likewise.
22957         * modules/fnmatch (Makefile.am): Likewise.
22958         * modules/fopen-safer (Makefile.am): Likewise.
22959         * modules/fpending (Makefile.am): Likewise.
22960         * modules/fprintftime (Makefile.am): Likewise.
22961         * modules/free (Makefile.am): Likewise.
22962         * modules/fsusage (Makefile.am): Likewise.
22963         * modules/ftruncate (Makefile.am): Likewise.
22964         * modules/fts (Makefile.am): Likewise.
22965         * modules/gc (Makefile.am): Likewise.
22966         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
22967         * modules/getaddrinfo (Makefile.am): Likewise.
22968         * modules/getcwd (Makefile.am): Likewise.
22969         * modules/getdelim (Makefile.am): Likewise.
22970         * modules/getdomainname (Makefile.am): Likewise.
22971         * modules/getgroups (Makefile.am): Likewise.
22972         * modules/gethostname (Makefile.am): Likewise.
22973         * modules/gethrxtime (Makefile.am): Likewise.
22974         * modules/getline (Makefile.am): Likewise.
22975         * modules/getloadavg (Makefile.am): Likewise.
22976         * modules/getlogin_r (Makefile.am): Likewise.
22977         * modules/getopt (Makefile.am): Likewise.
22978         * modules/getpass (Makefile.am): Likewise.
22979         * modules/getpass-gnu (Makefile.am): Likewise.
22980         * modules/getsubopt (Makefile.am): Likewise.
22981         * modules/gettime (Makefile.am): Likewise.
22982         * modules/gettimeofday (Makefile.am): Likewise.
22983         * modules/getugroups (Makefile.am): Likewise.
22984         * modules/getusershell (Makefile.am): Likewise.
22985         * modules/glob (Makefile.am): Likewise.
22986         * modules/group-member (Makefile.am): Likewise.
22987         * modules/hard-locale (Makefile.am): Likewise.
22988         * modules/hash (Makefile.am): Likewise.
22989         * modules/hmac-md5 (Makefile.am): Likewise.
22990         * modules/hmac-sha1 (Makefile.am): Likewise.
22991         * modules/human (Makefile.am): Likewise.
22992         * modules/idcache (Makefile.am): Likewise.
22993         * modules/imaxabs (Makefile.am): Likewise.
22994         * modules/imaxdiv (Makefile.am): Likewise.
22995         * modules/inet_ntop (Makefile.am): Likewise.
22996         * modules/inet_pton (Makefile.am): Likewise.
22997         * modules/inttostr (Makefile.am): Likewise.
22998         * modules/isapipe (Makefile.am): Likewise.
22999         * modules/lchown (Makefile.am): Likewise.
23000         * modules/long-options (Makefile.am): Likewise.
23001         * modules/lstat (Makefile.am): Likewise.
23002         * modules/malloc (Makefile.am): Likewise.
23003         * modules/mathl (Makefile.am): Likewise.
23004         * modules/mbchar (Makefile.am): Likewise.
23005         * modules/md2 (Makefile.am): Likewise.
23006         * modules/md4 (Makefile.am): Likewise.
23007         * modules/md5 (Makefile.am): Likewise.
23008         * modules/memcasecmp (Makefile.am): Likewise.
23009         * modules/memchr (Makefile.am): Likewise.
23010         * modules/memcmp (Makefile.am): Likewise.
23011         * modules/memcoll (Makefile.am): Likewise.
23012         * modules/memcpy (Makefile.am): Likewise.
23013         * modules/memmem (Makefile.am): Likewise.
23014         * modules/memmove (Makefile.am): Likewise.
23015         * modules/mempcpy (Makefile.am): Likewise.
23016         * modules/memrchr (Makefile.am): Likewise.
23017         * modules/memset (Makefile.am): Likewise.
23018         * modules/memxor (Makefile.am): Likewise.
23019         * modules/mkancesdirs (Makefile.am): Likewise.
23020         * modules/mkdir (Makefile.am): Likewise.
23021         * modules/mkdir-p (Makefile.am): Likewise.
23022         * modules/mkdtemp (Makefile.am): Likewise.
23023         * modules/mkstemp (Makefile.am): Likewise.
23024         * modules/mktime (Makefile.am): Likewise.
23025         * modules/modechange (Makefile.am): Likewise.
23026         * modules/mountlist (Makefile.am): Likewise.
23027         * modules/nanosleep (Makefile.am): Likewise.
23028         * modules/openat (Makefile.am): Likewise.
23029         * modules/pagealign_alloc (Makefile.am): Likewise.
23030         * modules/physmem (Makefile.am): Likewise.
23031         * modules/poll (Makefile.am): Likewise.
23032         * modules/posixtm (Makefile.am): Likewise.
23033         * modules/posixver (Makefile.am): Likewise.
23034         * modules/putenv (Makefile.am): Likewise.
23035         * modules/quote (Makefile.am): Likewise.
23036         * modules/quotearg (Makefile.am): Likewise.
23037         * modules/raise (Makefile.am): Likewise.
23038         * modules/read-file (Makefile.am): Likewise.
23039         * modules/readline (Makefile.am): Likewise.
23040         * modules/readlink (Makefile.am): Likewise.
23041         * modules/readtokens (Makefile.am): Likewise.
23042         * modules/readutmp (Makefile.am): Likewise.
23043         * modules/realloc (Makefile.am): Likewise.
23044         * modules/regex (Makefile.am): Likewise.
23045         * modules/rename (Makefile.am): Likewise.
23046         * modules/rename-dest-slash (Makefile.am): Likewise.
23047         * modules/rijndael (Makefile.am): Likewise.
23048         * modules/rmdir (Makefile.am): Likewise.
23049         * modules/rpmatch (Makefile.am): Likewise.
23050         * modules/safe-read (Makefile.am): Likewise.
23051         * modules/safe-write (Makefile.am): Likewise.
23052         * modules/same (Makefile.am): Likewise.
23053         * modules/save-cwd (Makefile.am): Likewise.
23054         * modules/savedir (Makefile.am): Likewise.
23055         * modules/setenv (Makefile.am): Likewise.
23056         * modules/settime (Makefile.am): Likewise.
23057         * modules/sha1 (Makefile.am): Likewise.
23058         * modules/sig2str (Makefile.am): Likewise.
23059         * modules/snprintf (Makefile.am): Likewise.
23060         * modules/stdlib-safer (Makefile.am): Likewise.
23061         * modules/stpcpy (Makefile.am): Likewise.
23062         * modules/stpncpy (Makefile.am): Likewise.
23063         * modules/strcase (Makefile.am): Likewise.
23064         * modules/strcasestr (Makefile.am): Likewise.
23065         * modules/strchrnul (Makefile.am): Likewise.
23066         * modules/strcspn (Makefile.am): Likewise.
23067         * modules/strdup (Makefile.am): Likewise.
23068         * modules/strerror (Makefile.am): Likewise.
23069         * modules/strftime (Makefile.am): Likewise.
23070         * modules/strndup (Makefile.am): Likewise.
23071         * modules/strnlen (Makefile.am): Likewise.
23072         * modules/strpbrk (Makefile.am): Likewise.
23073         * modules/strsep (Makefile.am): Likewise.
23074         * modules/strstr (Makefile.am): Likewise.
23075         * modules/strtod (Makefile.am): Likewise.
23076         * modules/strtoimax (Makefile.am): Likewise.
23077         * modules/strtok_r (Makefile.am): Likewise.
23078         * modules/strtol (Makefile.am): Likewise.
23079         * modules/strtoll (Makefile.am): Likewise.
23080         * modules/strtoul (Makefile.am): Likewise.
23081         * modules/strtoull (Makefile.am): Likewise.
23082         * modules/strtoumax (Makefile.am): Likewise.
23083         * modules/strverscmp (Makefile.am): Likewise.
23084         * modules/time_r (Makefile.am): Likewise.
23085         * modules/timegm (Makefile.am): Likewise.
23086         * modules/tmpfile-safer (Makefile.am): Likewise.
23087         * modules/unistd-safer (Makefile.am): Likewise.
23088         * modules/unlinkdir (Makefile.am): Likewise.
23089         * modules/userspec (Makefile.am): Likewise.
23090         * modules/utime (Makefile.am): Likewise.
23091         * modules/utimecmp (Makefile.am): Likewise.
23092         * modules/utimens (Makefile.am): Likewise.
23093         * modules/vasnprintf (Makefile.am): Likewise.
23094         * modules/vasprintf (Makefile.am): Likewise.
23095         * modules/vsnprintf (Makefile.am): Likewise.
23096         * modules/xalloc (Makefile.am): Likewise.
23097         * modules/xgetcwd (Makefile.am): Likewise.
23098         * modules/xnanosleep (Makefile.am): Likewise.
23099         * modules/xreadlink (Makefile.am): Likewise.
23100         * modules/xstrtod (Makefile.am): Likewise.
23101         * modules/xstrtol (Makefile.am): Likewise.
23102         * modules/xstrtold (Makefile.am): Likewise.
23103         * modules/yesno (Makefile.am): Likewise.
23104
23105 2006-10-12  Jim Meyering  <jim@meyering.net>
23106
23107         * m4/getloadavg.m4: Revert the change below.
23108
23109         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
23110         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
23111         fail with a symlink, which is what coreutils' ./bootstrap now
23112         creates by default.
23113
23114 2006-10-12  Bruno Haible  <bruno@clisp.org>
23115
23116         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
23117         mingw.
23118         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
23119         MSVC and mingw explicitly.
23120
23121 2006-10-11  Simon Josefsson  <jas@extundo.com>
23122             Bruno Haible  <bruno@clisp.org>
23123
23124         Add support for multiple gnulib-tool invocations in the scope of a
23125         single configure.ac file.
23126         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
23127         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
23128         with the same contents as the _LIBADD variable.
23129         (func_emit_initmacro_start, func_emit_initmacro_end,
23130         func_emit_initmacro_done): New functions.
23131         (func_import, func_create_testdir): Invoke them. Allow the identifiers
23132         gl_LIBOBJS and gl_LTLIBOBJS.
23133
23134 2006-10-11  Bruno Haible  <bruno@clisp.org>
23135
23136         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
23137         (func_create_testdir): Don't create po/Makefile.am, don't invoke
23138         autoreconf. Instead, invoke autopoint explicitly but move back the
23139         *.m4 files from gnulib.
23140
23141 2006-10-11  Bruno Haible  <bruno@clisp.org>
23142
23143         * gnulib-tool (func_usage): Make module names after --create-testdir
23144         optional.
23145         (func_create_testdir): If no module was specified, use nearly all
23146         modules.
23147
23148 2006-10-12  Jim Meyering  <jim@meyering.net>
23149
23150         Big performance improvement for fts-based tools that use FTS_NOSTAT.
23151         Avoid spurious inode-mismatch problems on non-POSIX file systems.
23152         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
23153         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
23154         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
23155         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
23156         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
23157         (fts_set_stat_required): New function.
23158         (fts_open): Defer the calls to fts_stat, if possible or requested.
23159         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
23160         into fts_stat itself.
23161         (fts_read): Perform any required (deferred) fts_stat call.
23162         (fts_build): Likewise, for the directory we're about to open and read.
23163         In the readdir loop, carefully decide whether each entry will require
23164         an eventual call to fts_stat, using dirent.d_type info if available.
23165         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
23166         a command line argument into this function.  Update all callers.
23167         Map a return value of FTS_DOT to FTS_D for a command line argument.
23168         * modules/fts (Depends-on): Add d-type.  Alphabetize.
23169         Thanks to Miklos Szeredi for his tenacity and for the initial
23170         bug report about "find" failing on a FUSE-based file system.
23171
23172         * lib/fts.c (fts_open): Use consistent indentation.
23173
23174 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
23175
23176         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
23177         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
23178         reported by Jim Meyering.  All uses of cache variables renamed
23179         to match Autoconf's.
23180         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
23181         the other one.
23182
23183         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
23184         Fix misspelling in diagnostic.
23185
23186 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
23187
23188         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
23189         defined.  Problem reported by Matthew Woehlke.
23190
23191         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
23192         Add support for Tandem NonStop R series.
23193         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
23194         Use new macro.
23195
23196         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
23197         (has_trailing_slash): Omit size arg; all callers changed.
23198         Omit 'inline', since it doesn't help performance and we'd
23199         need to configure it.
23200         Don't count //, ///, etc. as having a trailing slash.
23201         As a side effect, this removes a C99ism reported by Matthew Woehlke.
23202         (rpl_rename_dest_slash): On failure, use rename's errno rather
23203         than (in some cases) an incorrect or junk errno.
23204         Simplify code by removing need to compute length; this does
23205         cause it to make two passes instead of one over the file name,
23206         but it's worth it.
23207
23208         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
23209         change, since Autoconf's version may no longer be appropriate now
23210         that we are using CVS Autoconf's version.  Add support for Tandem.
23211
23212 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
23213             Bruno Haible  <bruno@clisp.org>
23214
23215         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
23216         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
23217         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
23218         gl_AC_TYPE_LONG_LONG.
23219
23220         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
23221         instead of HAVE_LONG_LONG.
23222         * lib/printf-args.c (printf_fetchargs): Likewise.
23223         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
23224         * lib/vasnprintf.c (VASNPRINTF): Likewise.
23225         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
23226         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
23227         gl_AC_TYPE_LONG_LONG.
23228
23229 2006-10-11  Bruno Haible  <bruno@clisp.org>
23230
23231         * m4/longlong.m4: Add comments.
23232         * m4/ulonglong.m4: Likewise.
23233
23234 2006-10-10  Bruno Haible  <bruno@clisp.org>
23235
23236         Make it possible to #define stpcpy, strdup to aliases.
23237         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
23238         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
23239
23240 2006-10-10  Bruno Haible  <bruno@clisp.org>
23241
23242         Make it possible to #define gcd to an alias.
23243         * lib/gcd.c: Include config.h.
23244
23245 2006-10-10  Bruno Haible  <bruno@clisp.org>
23246
23247         Make it possible to #define c_isascii to an alias.
23248         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
23249         defined. Undefine the macros before defining them, to avoid gcc
23250         warnings.
23251         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
23252         define NO_C_CTYPE_MACROS early.
23253
23254 2006-10-10  Bruno Haible  <bruno@clisp.org>
23255
23256         Make it possible to #define set_program_name to an alias.
23257         * lib/progname.c: Don't undefine set_program_name; instead, undefine
23258         ENABLE_RELOCATABLE early.
23259
23260 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
23261
23262         Port to Tandem NSK OSS, which has 64-bit signed int but at most
23263         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
23264         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
23265         More generally, don't assume that 64-bit signed int is available
23266         if unsigned int is, and vice versa.
23267         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
23268         unsigned symbols, not on their signed counterparts.
23269         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
23270         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
23271         (UINT64_C, UINTMAX_C):
23272         Likewise.
23273         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
23274         unsigned counterparts.
23275         (Have_long_long, Unsigned): New macros.
23276         (Int): Renamed from INT.
23277         (strtoimax): Use the new macros.
23278         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
23279         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
23280         * modules/inttypes (inttypes.h): Substitute
23281         HAVE_UNSIGNED_LONG_LONG_INT.
23282         * modules/stdint (stdint.h): Likewise.
23283         (Files): Add m4/ulonglong.m4.
23284
23285 2006-10-10  Bruno Haible  <bruno@clisp.org>
23286
23287         Fix a gcc -Wshadow warning.
23288         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
23289         to 'bucket'.
23290         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
23291         gl_linked_indexof_from_to): Likewise.
23292         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
23293         Likewise.
23294         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
23295         Likewise.
23296         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
23297         Reported by Eric Blake.
23298
23299 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
23300
23301         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
23302         for NetBSD.  Problem reported by Bruno Haible.
23303
23304 2006-10-09  Jim Meyering  <jim@meyering.net>
23305
23306         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
23307         Patch from Bruno Haible.
23308
23309 2006-10-09  Jim Meyering  <jim@meyering.net>
23310
23311         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
23312         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
23313         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
23314
23315 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
23316
23317         Don't include <config.h> twice; this doesn't work in some cases,
23318         e.g., when config.h has "#define intmax_t long long int" and
23319         we include <config.h>, <inttypes.h>, <config.h> in that order.
23320         Problem reported by Matthew Woehlke in:
23321         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
23322         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
23323         * lib/fts-cycle.c: Don't include config.h.
23324         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
23325         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
23326         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
23327         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
23328         inttypes.h.
23329         * lib/xstrtoumax.c: Likewise.
23330         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
23331         __strtol and the like, so that this module is more like its siblings.
23332         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
23333         Remove; no longer needed now that we assume gnulib inttypes.h.
23334
23335 2006-10-08  Bruno Haible  <bruno@clisp.org>
23336
23337         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
23338         option.
23339
23340 2006-10-07  Jim Meyering  <jim@meyering.net>
23341
23342         * modules/inttypes (inttypes.h): Revert what seems to have been
23343         an inadvertent part of today's change: use "|", not "/" in the
23344         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
23345
23346 2006-10-07  Bruno Haible  <bruno@clisp.org>
23347
23348         * modules/sublist: New file.
23349
23350 2006-10-07  Bruno Haible  <bruno@clisp.org>
23351
23352         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
23353         * modules/argz (argz.h): Likewise.
23354         * modules/arpa_inet (arpa/inet.h): Likewise.
23355         * modules/byteswap (byteswap.h): Likewise.
23356         * modules/configmake (configmake.h): Likewise.
23357         * modules/fcntl (fcntl.h): Likewise.
23358         * modules/fnmatch (fnmatch.h): Likewise.
23359         * modules/getopt (getopt.h): Likewise.
23360         * modules/glob (glob.h): Likewise.
23361         * modules/inttypes (inttypes.h): Likewise.
23362         * modules/netinet_in (netinet/in.h): Likewise.
23363         * modules/poll (poll.h): Likewise.
23364         * modules/stdbool (stdbool.h): Likewise.
23365         * modules/stdint (stdint.h): Likewise.
23366         * modules/sys_select (sys/select.h): Likewise.
23367         * modules/sys_socket (sys/socket.h): Likewise.
23368         * modules/sys_stat (sys/stat.h): Likewise.
23369         * modules/sysexits (sysexits.h): Likewise.
23370         * modules/unistd (unistd.h): Likewise.
23371         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
23372         Add a "DO NOT EDIT" comment to the generated file.
23373         (func_import): Likewise for gnulib-comp.m4.
23374
23375 2006-10-07  Bruno Haible  <bruno@clisp.org>
23376
23377         * lib/gl_sublist.h: New file.
23378         * lib/gl_sublist.c: New file.
23379
23380 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
23381
23382         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
23383         name (relative to the original working directory) and the file
23384         name component (relative to the temporary working directory).  All
23385         callers changed.
23386         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
23387         * lib/mkdir-p.c (make_dir_parents): Likewise.
23388         * lib/mkdir-p.h (make_dir_parents): Likewise.
23389
23390 2006-10-06  Eric Blake  <ebb9@byu.net>
23391
23392         Define several macros for use by the clean-temp module.
23393         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
23394         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
23395         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
23396
23397         * lib/clean-temp.h (close_stream_temp): New declaration.
23398         * lib/clean-temp.c (includes): Pull in headers according to what
23399         other modules are in use.
23400         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
23401
23402 2006-10-06  Bruno Haible  <bruno@clisp.org>
23403
23404         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
23405         instead of fopen, fwriteerror.
23406
23407 2006-10-06  Bruno Haible  <bruno@clisp.org>
23408
23409         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
23410         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
23411         int.
23412         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
23413         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
23414         Return an error indicator.
23415         Suggested by Eric Blake.
23416
23417 2006-10-06  Bruno Haible  <bruno@clisp.org>
23418
23419         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
23420         Reported by Eric Blake.
23421
23422 2006-10-06  Bruno Haible  <bruno@clisp.org>
23423
23424         * modules/closeout (Description): Mention stderr too.
23425
23426 2006-10-06  Bruno Haible  <bruno@clisp.org>
23427         and Paul Eggert  <eggert@cs.ucla.edu>
23428
23429         * lib/closeout.c (close_stdout): Also close stderr.
23430         * lib/closeout.h: Update comment.
23431
23432 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
23433
23434         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
23435         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
23436         * lib/dirchownmod.c: Include lchown.h.
23437         * lib/lchown.c: Don't include files that lchown.h now includes.
23438         Don't declare chown, since lchown.h now does that.
23439         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
23440         (lchown): Define to rpl_chown if lchown is declared but
23441         does not exist.  Declare using a prototype if lchown is not
23442         declared.  Add a copyright notice.
23443         * lib/mkstemp.h: Include <unistd.h>.
23444         * lib/openat.c: Include lchown.h.
23445
23446         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
23447         we now test for that separately.
23448         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
23449         rather than O_NOFOLLOW, when testing whether it's possible to
23450         avoid a race condition reliably.
23451         * lib/savewd.c (savewd_chdir): Likewise.
23452
23453         Remove macros that are no longer needed now that stdint.h is
23454         reliable.
23455         * lib/fsusage.c (UINTMAX_MAX): Remove.
23456         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
23457         * lib/utimecmp.c (SIZE_MAX): Remove.
23458
23459         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
23460
23461         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
23462         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
23463         O_NOATIME works.
23464
23465 2006-10-05  Bruno Haible  <bruno@clisp.org>
23466
23467         * lib/gl_list.h (gl_sortedlist_search_from_to,
23468         gl_sortedlist_indexof_from_to): New declarations.
23469         (gl_list_implementation): New fields sortedlist_search_from_to,
23470         sortedlist_indexof_from_to.
23471         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
23472         inline functions.
23473         * lib/gl_list.c (gl_sortedlist_search_from_to,
23474         gl_sortedlist_indexof_from_to): New functions.
23475         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
23476         function.
23477         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
23478         (gl_array_sortedlist_search_from_to): New function.
23479         (gl_array_list_implementation): Update.
23480         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
23481         function.
23482         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
23483         (gl_carray_sortedlist_search_from_to): New function.
23484         (gl_carray_list_implementation): Update.
23485         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
23486         gl_linked_sortedlist_indexof_from_to): New functions.
23487         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
23488         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
23489         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
23490         gl_tree_sortedlist_indexof_from_to): New functions.
23491         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
23492         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
23493         Update.
23494         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
23495         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
23496         Update.
23497
23498 2006-10-05  Bruno Haible  <bruno@clisp.org>
23499
23500         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
23501         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
23502         (struct gl_list_implementation): Add fields search_from_to,
23503         indexof_from_to. Remove fields search, indexof.
23504         (gl_list_search): Use the search_from_to method.
23505         (gl_list_search_from, gl_list_search_from_to): New functions.
23506         (gl_list_indexof): Use the indexof_from_to method.
23507         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
23508         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
23509         (gl_list_search_from, gl_list_search_from_to): New functions.
23510         (gl_list_indexof): Use the indexof_from_to method.
23511         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
23512         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
23513         gl_array_indexof. Add start_index, end_index arguments.
23514         (gl_array_search_from_to): Renamed from gl_array_search. Add
23515         start_index, end_index arguments.
23516         (gl_array_remove, gl_array_list_implementation): Update.
23517         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
23518         gl_carray_indexof. Add start_index, end_index arguments.
23519         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
23520         start_index, end_index arguments.
23521         (gl_carray_remove, gl_carray_list_implementation): Update.
23522         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
23523         gl_linked_search. Add start_index, end_index arguments.
23524         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
23525         start_index, end_index arguments.
23526         (gl_linked_remove): Update.
23527         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
23528         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
23529         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
23530         field to 'size_t'.
23531         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
23532         gl_tree_search. Add start_index, end_index arguments.
23533         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
23534         start_index, end_index arguments.
23535         (gl_tree_remove): Update.
23536         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
23537         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
23538         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
23539         function.
23540         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
23541         gl_tree_search. Add start_index, end_index arguments.
23542         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
23543         start_index, end_index arguments.
23544         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
23545         Update.
23546         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
23547
23548 2006-10-05  Bruno Haible  <bruno@clisp.org>
23549
23550         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
23551
23552         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
23553         fwriteerror_temp): New declarations.
23554         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
23555         (descriptors): New variable.
23556         (cleanup): First, close the descriptors.
23557         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
23558         fclose_temp, fwriteerror_temp): New functions.
23559
23560 2006-10-04  Jim Meyering  <jim@meyering.net>
23561
23562         * lib/fts.c (fts_open): Tiny comment change.
23563
23564 2006-10-04  Bruno Haible  <bruno@clisp.org>
23565
23566         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
23567         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
23568         gl_LOCK_BODY.
23569         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
23570         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
23571         gl_LOCK_EARLY_BODY.
23572         (gl_LOCK): Require gl_LOCK_BODY.
23573
23574 2006-10-04  Bruno Haible  <bruno@clisp.org>
23575
23576         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
23577         (gl_oset_search_atleast): New declaration.
23578         (struct gl_oset_implementation): Add field 'search_atleast'.
23579         (gl_oset_search_atleast): New inline function.
23580         * lib/gl_oset.c (gl_oset_search_atleast): New function.
23581         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
23582         (gl_array_oset_implementation): Update.
23583         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
23584         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
23585         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
23586
23587 2006-10-04  Bruno Haible  <bruno@clisp.org>
23588
23589         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
23590
23591 2006-10-03  Bruno Haible  <bruno@clisp.org>
23592
23593         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
23594         from gl_avltreehash_list_implementation.
23595
23596 2006-10-03  Bruno Haible  <bruno@clisp.org>
23597
23598         * lib/gl_oset.c (gl_oset_add): Fix return type.
23599
23600 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
23601
23602         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
23603
23604 2006-10-02  Eric Blake  <ebb9@byu.net>
23605
23606         * modules/strnlen (Depends-on): Add extensions.
23607
23608 2006-10-02  Eric Blake  <ebb9@byu.net>
23609
23610         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
23611         definition in 2.60+.
23612
23613 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
23614
23615         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
23616         checks.
23617
23618 2006-10-02  Bruno Haible  <bruno@clisp.org>
23619
23620         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
23621         to the AUTOMAKE_OPTIONS.
23622         Reported by Jim Meyering.
23623
23624 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
23625
23626         Work around bug in Solaris 10 /proc file system:
23627         /proc/self/fd/NNN/.. isn't the parent directory of
23628         the directory whose file descriptor is NNN.  This needs to
23629         be worked around at run time, not compile time, since a
23630         program might be built on Solaris 8, where things work, and
23631         run on Solaris 10.
23632         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
23633         to use the following interface instead:
23634         (OPENAT_BUFFER_SIZE): New macro.
23635         (openat_proc_name): New function.
23636         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
23637         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
23638         Likewise.
23639         * lib/openat-proc.c: New file.
23640         * modules/openat (Files): Add lib/openat-proc.c.
23641         (Depends-on): Add same-inode, stdbool.
23642         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
23643
23644 2006-09-29  Bruno Haible  <bruno@clisp.org>
23645
23646         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
23647         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
23648         argument. Set stdout_closed before testing for ferror, not after.
23649         (fwriteerror, fwriteerror_no_ebadf): New functions.
23650
23651 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23652
23653         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
23654
23655 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
23656
23657         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
23658         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
23659
23660 2006-09-28  Jim Meyering  <jim@meyering.net>
23661
23662         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
23663         Include <unistd.h>.
23664
23665 2006-09-28  Bruno Haible  <bruno@clisp.org>
23666
23667         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
23668         * modules/linkedhash-list (Depends-on): Likewise.
23669         * modules/rbtreehash-list (Depends-on): Likewise.
23670
23671 2006-09-28  Bruno Haible  <bruno@clisp.org>
23672
23673         * lib/strndup.h: Simplify the redefinition of strndup.
23674         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
23675         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
23676
23677 2006-09-28  Bruno Haible  <bruno@clisp.org>
23678
23679         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
23680         * lib/gl_linkedhash_list.c: Likewise.
23681         * lib/gl_rbtreehash_list.c: Likewise.
23682
23683 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
23684
23685         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
23686         getaddrinfo.
23687
23688         * lib/__fpending.h: Don't include <stdio_ext.h> unless
23689         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
23690         it causes <stdio_ext.h> to cause a compile-time error.
23691         Problem reported by Nelson H. F. Beebe.
23692         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
23693         of HAVE_DECL___PENDING.
23694
23695         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
23696         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
23697         declaration.
23698
23699 2006-09-27  Jim Meyering  <jim@meyering.net>
23700
23701         This file could end up with a definition for a function
23702         named __strndup, rather than rpl_strndup on a system with
23703         incomplete weak_alias support.
23704         * lib/strndup.c (strndup): Rename from __strndup.
23705         Remove #defines that used to map __strndup to strndup.
23706         Don't use K&R prototypes.
23707         Remove LIBC-related code, since this file is not sync'd with glibc.
23708         * lib/strndup.h: Revamp, accordingly.
23709         * m4/strndup.m4: Modernize.
23710
23711 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
23712
23713         * modules/savewd (Depends-on): Add 'raise'.
23714         * lib/savewd.c: Include <signal.h>, for 'raise'.
23715
23716 2006-09-26  Jim Meyering  <jim@meyering.net>
23717
23718         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
23719         when we detect Darwin 8.7.0's acl_get_file bug.
23720         Rearrange to perform the new (below) run-test while $LIBS
23721         contains any acl-related library.  Set USE_ACL at the end.
23722         (gl_ACL_GET_FILE): New function.
23723
23724 2006-09-26  Eric Blake  <ebb9@byu.net>
23725
23726         * lib/verror.c: Include <config.h> unconditionally.
23727
23728 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
23729
23730         * modules/clock-time (Maintainer): Add self.
23731         * modules/getlogin_r (Depends-on): Add extensions.
23732
23733 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23734
23735         * modules/clock-time: New module.
23736         * modules/nanosleep (Depends-on): Add clock-time.
23737         * modules/gethrxtime (Depends-on): Likewise.
23738         * modules/gettime (Depends-on): Likewise.
23739         * modules/settime (Depends-on): Likewise.
23740
23741         * modules/fts-lgpl: Depend on openat.
23742         * modules/mkancesdirs: Depend on savewd.
23743         * modules/mkdir-p: Likewise.
23744
23745 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23746
23747         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
23748
23749         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
23750         `gl_have_arbitrary_file_name_length_limit' to
23751         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
23752         actually works between configure runs.
23753
23754 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23755             Bruno Haible  <bruno@clisp.org>
23756
23757         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
23758
23759 2006-09-25  Jim Meyering  <jim@meyering.net>
23760
23761         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
23762         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
23763
23764 2006-09-25  Eric Blake  <ebb9@byu.net>
23765
23766         * gnulib-tool (func_import, func_create_testdir): Fix typos in
23767         exec's in 2006-09-18 patch when shuffling fds.
23768
23769 2006-09-25  Bruno Haible  <bruno@clisp.org>
23770
23771         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
23772         Reported by Jim Meyering.
23773
23774 2006-09-24  Jim Meyering  <jim@meyering.net>
23775
23776         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
23777         compare a pointer against a literal "0".  That caused failures with
23778         at least HP-UX's hpcc.
23779
23780 2006-09-22  Simon Josefsson  <jas@extundo.com>
23781
23782         * modules/gc-sha1:
23783         * modules/gc-md4:
23784         * modules/gc-hmac-sha1:
23785         * modules/gc-hmac-md5:
23786         * modules/gc-des:
23787         * modules/gc-arcfour: Distribute more files.
23788
23789 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23790
23791         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
23792         (gl_linked_iterator_from_to): Initialize struct completely.
23793         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
23794         (gl_tree_iterator_from_to): Likewise
23795         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
23796         * lib/gl_array_list.c [lint] (gl_array_iterator)
23797         (gl_array_iterator_from_to): Likewise.
23798         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
23799         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
23800         (gl_carray_iterator_from_to): Likewise.
23801
23802         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
23803         * lib/md4.c (md4_process_block): Remove unused variable.
23804         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
23805         parentheses for clarity.
23806
23807 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23808
23809         * modules/bison-i18n (Depends-on): Add gettext.
23810
23811 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23812
23813         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
23814         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
23815         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
23816         also add missing comma that caused broken test.
23817         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
23818         stdlib.h, for `abort'.
23819         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
23820         variables.
23821         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
23822         include unistd.h if present, for `rmdir'.
23823         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
23824         variables.
23825         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
23826         in the process include standard headers for prototypes.
23827         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
23828         gets declared on GNU/Linux.
23829         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
23830         unistd.h, for `rmdir'.
23831         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
23832
23833         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
23834         always true.
23835         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
23836
23837         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
23838
23839 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23840
23841         * gnulib-tool (func_version): Create output all at once.  This
23842         may help avoid triggering unnecessary SIGPIPEs, and at any
23843         rate it doesn't hurt.
23844
23845 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23846             Bruno Haible  <bruno@clisp.org>
23847
23848         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
23849         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
23850         * m4/signed.m4 (bh_C_SIGNED): Likewise.
23851
23852         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
23853         (gl_FUNC_VASPRINTF): Invoke it.
23854
23855 2006-09-22  Bruno Haible  <bruno@clisp.org>
23856
23857         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
23858         getloadavg.c as first argument.
23859
23860 2006-09-22  Bruno Haible  <bruno@clisp.org>
23861
23862         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
23863         at the beginning of the gl_INIT macro.
23864         * modules/getloadavg (configure.ac): Pass $gl_source_base to
23865         gl_GETLOADAVG.
23866
23867 2006-09-22  Bruno Haible  <bruno@clisp.org>
23868
23869         * gnulib-tool (func_create_megatestdir): Don't include the config-h
23870         module.
23871         Suggested by Ralf Wildenhues.
23872
23873 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
23874
23875         Import this patch from libc:
23876
23877         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
23878
23879         * lib/regex_internal.c (re_string_reconstruct): Handle
23880         offset < pstr->valid_raw_len && pstr->offsets_needed case.
23881         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
23882         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
23883         re_string_context_at.
23884
23885         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
23886         now requires it.
23887         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
23888         gl_REGEX now does it for us.
23889         (gl_REGEX): Add test taken from
23890         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
23891
23892         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
23893         Check that large offsets work.  Modernize Autoconf usages.
23894         Prefer "yes" to mean a good thing rather than a bad.
23895         Don't put "#define mkstemp" in config.h, as this might interfere
23896         with standard system headers that "#define mkstemp mkstemp64".
23897
23898         * modules/mkstemp (Depends-on): Add extensions, so that
23899         mkstemp is visible on some platforms.
23900         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
23901         (Include): Change to "mkstemp.h" from <stdlib.h>.
23902         (Files): Add mkstemp.h.
23903
23904         * lib/mkstemp.h: New file, since some standard headers
23905         #define mkstemp.
23906         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
23907         Include "mkstemp.h".
23908         Make the _LIBC code resemble glibc original more,
23909         e.g., use K&R style.
23910         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
23911         (mkstemp): Remove, since mkstemp.h does this for us.
23912         * lib/stdlib--.h: Include mkstemp.h.
23913
23914         Import this patch from libc:
23915
23916         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
23917
23918         * lib/tempname.c (__gen_tempname): Change attempts_min
23919         into a macro.  Use preprocessor to decide how to initialize
23920         attempts [Coverity CID 67].
23921
23922 2006-09-20  Bruno Haible  <bruno@clisp.org>
23923
23924         * lib/mkdtemp.c: Import from libc.
23925         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
23926                 * sysdeps/posix/tempname.c (__gen_tempname): Change
23927                 attempts_min into a macro.  Use preprocessor to decide how to
23928                 initialize attempts [Coverity CID 67].
23929         2001-11-27  Paul Eggert  <eggert@twinsun.com>
23930                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
23931                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
23932
23933 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23934
23935         * gnulib-tool (func_exit): New function, to allow to pass the
23936         exit status portably through the trap.  Use everywhere.
23937         (--help, --version): Signal a write error.
23938         (trap): catch SIGPIPE, for write errors.
23939         Exit at the end of the trap, with the correct exit status.
23940
23941 2006-09-19  Karl Berry  <karl@gnu.org>
23942
23943         * doc/gnulib.texi: note about the license texinfo files.
23944
23945 2006-09-19  Eric Blake  <ebb9@byu.net>
23946
23947         * gnulib-tool: Avoid space-tab.
23948
23949 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
23950
23951         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
23952         that prevented coreutils 6.1 from building.  Problem reported
23953         by Petter Reinholdtsen.
23954
23955 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
23956
23957         * gnulib-tool (avoidlist): Fix typo that broke options like
23958         --avoid=lock that are used by coreutils bootstrap.
23959
23960 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
23961
23962         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
23963         more systematically.
23964
23965 2006-09-18  Jim Meyering  <jim@meyering.net>
23966
23967         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
23968
23969 2006-09-18  Bruno Haible  <bruno@clisp.org>
23970
23971         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
23972
23973 2006-09-18  Bruno Haible  <bruno@clisp.org>
23974
23975         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
23976         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
23977         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
23978         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
23979         * m4/gettext.m4: Require autoconf >= 2.52.
23980         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
23981         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
23982         of gl_cv_header_inttypes_h.
23983
23984 2006-09-18  Bruno Haible  <bruno@clisp.org>
23985
23986         * lib/javaversion.c: Include configmake.h.
23987
23988 2006-09-18  Bruno Haible  <bruno@clisp.org>
23989
23990         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
23991         avoid that the while loops be executed in a subshell.
23992
23993 2006-09-18  Bruno Haible  <bruno@clisp.org>
23994
23995         * MODULES.html.sh (func_module): Break long lines.
23996         Suggested by Bruce Korb <bkorb@gnu.org>.
23997
23998 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23999
24000         Speed up by a factor of 1.12.
24001         * gnulib-tool (nl): New variable.
24002         (func_import): Rewrite include directive extraction to only read each
24003         directive once.
24004
24005 2006-09-17  Bruno Haible  <bruno@clisp.org>
24006
24007         * modules/javaversion (Makefile.am): Remove DEFS setting.
24008         (Depends-on): Add configmake, for PKGDATADIR definition.
24009
24010 2006-09-17  Bruno Haible  <bruno@clisp.org>
24011
24012         * gnulib-tool (func_create_testdir): Rewrite all files at once.
24013
24014 2006-09-17  Bruno Haible  <bruno@clisp.org>
24015
24016         * gnulib-tool (func_append): New function, stolen from libtool.m4.
24017         (func_modules_transitive_closure, func_modules_add_dummy,
24018         func_modules_to_filelist, func_import, func_create_testdir,
24019         func_create_megatestdir, ...): Use it wherever possible.
24020         Suggested by Ralf Wildenhues.
24021
24022 2006-09-16  Karl Berry  <karl@gnu.org>
24023
24024         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
24025         to avoid sectioning errors.
24026         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
24027         [ifinfo]: blank line after @center-ed titles.
24028         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
24029         Spell FSF address consistently with others.
24030         (These changes approved by rms.)
24031
24032 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24033
24034         Speed up by a factor of 1.61.
24035         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
24036         already checked module names again.
24037
24038 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24039
24040         Speed up by a factor of 1.13.
24041         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
24042         for new_files, and the input to func_add_or_update.
24043
24044 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24045
24046         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
24047         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
24048
24049 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
24050
24051         * modules/mkancesdirs (Depends-on): Add fcntl.
24052         * modules/savewd: New file.
24053         * MODULES.html.sh (File system functions): Add savewd.
24054
24055         * modules/configmake (Makefile.am): Add support for the
24056         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
24057
24058 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
24059
24060         * m4/savewd.m4: New file.
24061
24062 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
24063
24064         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
24065         (dirchownmod): New arg FD.  All callers changed.
24066         Use FD rather than opening the directory ourself, as opening is
24067         now the caller's responsibility.
24068         * lib/dirchownmod.h: Likewise.
24069         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
24070         hosts that require <sys/types.h> before <sys/stat.h>.  Include
24071         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
24072         (test_dir): Remove.
24073         (mkancesdirs): Return length of prefix of FILE that has already
24074         been made, or -2 if there is a child doing the work.  Redo
24075         algorithm so that it is O(N) rather than O(N**2).  Optimize away
24076         ".", and treat ".." specially since it might stray back into
24077         already-created areas.  Use a subprocess if necessary.  New arg
24078         WD; all users changed.  MAKE_DIR function should now return 1
24079         if it creates a directory that is not readable.  Return -2 if
24080         a child process is spun off.
24081         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
24082         Adjust signature to match code.
24083         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
24084         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
24085         all users changed.
24086         * lib/savewd.c, lib/savewd.h: New files.
24087
24088 2006-09-15  Jim Meyering  <jim@meyering.net>
24089
24090         * modules/rename-dest-slash: New module.
24091         * MODULES.html.sh (posix_compat): Add it here.
24092
24093         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
24094
24095 2006-09-15  Jim Meyering  <jim@meyering.net>
24096
24097         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
24098         file.
24099
24100         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
24101
24102 2006-09-15  Jim Meyering  <jim@meyering.net>
24103
24104         * lib/rename-dest-slash.c (has_trailing_slash): Use
24105         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
24106         (rpl_rename_dest_slash): Perform the cheaper trailing slash
24107         test before testing whether SRC is a directory.
24108         Suggestions from Bruno Haible.
24109
24110         Avoid a warning about an unused variable.
24111         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
24112         into the #ifdef block where it's used.
24113
24114         * lib/rename-dest-slash.c: New file.
24115
24116 2006-09-14  Bruno Haible  <bruno@clisp.org>
24117
24118         * lib/allocsa.c: Include <config.h> unconditionally.
24119         * lib/asnprintf.c: Likewise.
24120         * lib/asprintf.c: Likewise.
24121         * lib/c-strcasecmp.c: Likewise.
24122         * lib/c-strcasestr.c: Likewise.
24123         * lib/c-strncasecmp.c: Likewise.
24124         * lib/c-strstr.c: Likewise.
24125         * lib/classpath.c: Likewise.
24126         * lib/clean-temp.c: Likewise.
24127         * lib/concatpath.c: Likewise.
24128         * lib/copy-file.c: Likewise.
24129         * lib/csharpcomp.c: Likewise.
24130         * lib/csharpexec.c: Likewise.
24131         * lib/execute.c: Likewise.
24132         * lib/fatal-signal.c: Likewise.
24133         * lib/findprog.c: Likewise.
24134         * lib/fwriteerror.c: Likewise.
24135         * lib/gl_array_list.c: Likewise.
24136         * lib/gl_array_oset.c: Likewise.
24137         * lib/gl_avltree_list.c: Likewise.
24138         * lib/gl_avltree_oset.c: Likewise.
24139         * lib/gl_avltreehash_list.c: Likewise.
24140         * lib/gl_carray_list.c: Likewise.
24141         * lib/gl_linked_list.c: Likewise.
24142         * lib/gl_linkedhash_list.c: Likewise.
24143         * lib/gl_list.c: Likewise.
24144         * lib/gl_oset.c: Likewise.
24145         * lib/gl_rbtree_list.c: Likewise.
24146         * lib/gl_rbtree_oset.c: Likewise.
24147         * lib/gl_rbtreehash_list.c: Likewise.
24148         * lib/imaxabs.c: Likewise.
24149         * lib/imaxdiv.c: Likewise.
24150         * lib/javacomp.c: Likewise.
24151         * lib/javaexec.c: Likewise.
24152         * lib/javaversion.c: Likewise.
24153         * lib/linebreak.c: Likewise.
24154         * lib/localcharset.c: Likewise.
24155         * lib/lock.c: Likewise.
24156         * lib/mbchar.c: Likewise.
24157         * lib/mbswidth.c: Likewise.
24158         * lib/mkdtemp.c: Likewise.
24159         * lib/pipe.c: Likewise.
24160         * lib/printf-args.c: Likewise.
24161         * lib/printf-parse.c: Likewise.
24162         * lib/progname.c: Likewise.
24163         * lib/progreloc.c: Likewise.
24164         * lib/readlink.c: Likewise.
24165         * lib/sh-quote.c: Likewise.
24166         * lib/stpcpy.c: Likewise.
24167         * lib/stpncpy.c: Likewise.
24168         * lib/strcasecmp.c: Likewise.
24169         * lib/strcasestr.c: Likewise.
24170         * lib/strcspn.c: Likewise.
24171         * lib/striconv.c: Likewise.
24172         * lib/strncasecmp.c: Likewise.
24173         * lib/strnlen1.c: Likewise.
24174         * lib/strstr.c: Likewise.
24175         * lib/strtok_r.c: Likewise.
24176         * lib/tls.c: Likewise.
24177         * lib/tmpdir.c: Likewise.
24178         * lib/unicodeio.c: Likewise.
24179         * lib/unsetenv.c: Likewise.
24180         * lib/vasnprintf.c: Likewise.
24181         * lib/vasprintf.c: Likewise.
24182         * lib/wait-process.c: Likewise.
24183         * lib/xallocsa.c: Likewise.
24184         * lib/xsetenv.c: Likewise.
24185         * lib/xstriconv.c: Likewise.
24186
24187 2006-09-13  Simon Josefsson  <jas@extundo.com>
24188
24189         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
24190         that internally, suggested by Ralf Wildenhues
24191         <Ralf.Wildenhues@gmx.de>.
24192
24193 2006-09-13  Simon Josefsson  <jas@extundo.com>
24194
24195         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
24196         @LIBOBJS@.
24197         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24198
24199 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
24200
24201         * lib/_fpending.c: Include <config.h> unconditionally, since we no
24202         longer worry about uses that don't define HAVE_CONFIG_H.
24203         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
24204         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
24205         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
24206         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
24207         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
24208         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
24209         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
24210         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
24211         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
24212         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
24213         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
24214         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
24215         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
24216         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
24217         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
24218         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
24219         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
24220         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
24221         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
24222         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
24223         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
24224         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
24225         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
24226         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
24227         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
24228         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
24229         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
24230         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
24231         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
24232         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
24233         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
24234         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
24235         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
24236         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
24237         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
24238         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
24239         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
24240         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
24241         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
24242         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
24243         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
24244         Likewise.
24245
24246 2006-09-13  Eric Blake  <ebb9@byu.net>
24247
24248         * lib/getopt.c: Fix typo in last commit.
24249
24250 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
24251
24252         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
24253         dgettext.
24254
24255 2006-09-12  Jim Meyering  <jim@meyering.net>
24256
24257         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
24258         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
24259         Reported by Nelson H. F. Beebe.
24260
24261 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
24262
24263         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
24264         program_invocation_name and program_invocation_short_name are
24265         initialized.
24266         * lib/argp-namefrob.h: Move declarations of program_invocation_name
24267         and program_invocation_short_name to argp.h, so they are visible
24268         to user programs.
24269         * lib/argp.h: Likewise
24270
24271 2006-09-10  Bruno Haible  <bruno@clisp.org>
24272
24273         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
24274         m4/inttypes_h.m4, m4/uintmax_t.m4.
24275
24276 2006-09-10  Bruno Haible  <bruno@clisp.org>
24277
24278         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
24279         gl_AC_TYPE_UINTMAX_T.
24280
24281 2006-09-10  Bruno Haible  <bruno@clisp.org>
24282
24283         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
24284
24285 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
24286
24287         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
24288         convention.  Text proposed by Bruno Haible.
24289         (struct argp_option): Document the use of N_() wrappers.
24290
24291         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
24292         '\v', and translate the two parts separately, instead of feeding
24293         the whole string to gettext.  This allows to exclude
24294         '\v' from the strings visible to the translator by writing doc
24295         strings as N_("..") "\v" N_("..").
24296
24297 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
24298
24299         * config/srclist.txt: Undo latest change; the bug was fixed.
24300
24301 2006-09-09  Bruno Haible  <bruno@clisp.org>
24302
24303         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
24304         assignments if building a library without libtool.
24305         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
24306         in func_emit_lib_Makefile_am.
24307         (func_import): When building a static library libfoo.a, arrange to
24308         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
24309         (func_create_testdir): Likewise.
24310         * modules/gc (configure.ac, Makefile.am): If building statically,
24311         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
24312         * modules/iconvme (configure.ac, Makefile.am): Likewise.
24313         * modules/striconv (configure.ac, Makefile.am): Likewise.
24314         Based on a suggestion by Ralf Wildenhues.
24315
24316 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
24317
24318         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
24319         Check for unistd.h too, since Autoconf doesn't assume POSIX.
24320         Also:
24321
24322         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
24323         Add year_2050_test to catch glibc bug 2821
24324         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
24325
24326         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
24327         Prefer #ifdef to #if.
24328
24329         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
24330         Return from 'main' instead of calling 'exit'.
24331
24332 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
24333
24334         * lib/mktime.c (guess_time_tm): Fix bug where mktime
24335         returned the maximum time_t value rather than (time_t) -1.
24336         Problem originally reported by William Bardwell
24337         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
24338
24339         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
24340         Moved to here ...
24341         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
24342         ... from here.
24343
24344 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
24345
24346         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
24347         2821 is fixed.
24348
24349 2006-09-08  Jim Meyering  <jim@meyering.net>
24350
24351         Don't make generated files read-only.  That would bother too many
24352         people.  However, do retain the ability to work when targets are
24353         read-only: remove the destination and temporary files before writing
24354         them (when generated via sed or echo), or by using the -f option for
24355         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
24356         * modules/alloca-opt, modules/argz, modules/arpa_inet:
24357         * modules/byteswap, modules/configmake, modules/fcntl:
24358         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
24359         * modules/localcharset, modules/netinet_in, modules/poll:
24360         * modules/stdbool, modules/stdint, modules/sys_select:
24361         * modules/sys_socket, modules/sys_stat, modules/sysexits:
24362
24363 2006-09-08  Jim Meyering  <jim@meyering.net>
24364
24365         Avoid new build failure on FreeBSD 6.0.
24366         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
24367         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
24368         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
24369
24370 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24371
24372         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
24373
24374 2006-09-07  Jim Meyering  <jim@meyering.net>
24375
24376         Fix global typo in last change: use chmod u-w, not chmod u-x.
24377         Spotted by Paul Eggert and Bruce Korb.
24378         * modules/alloca-opt, modules/argz, modules/arpa_inet:
24379         * modules/byteswap, modules/configmake, modules/fcntl:
24380         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
24381         * modules/localcharset, modules/netinet_in, modules/poll:
24382         * modules/stdbool, modules/stdint, modules/sys_select:
24383         * modules/sys_socket, modules/sys_stat, modules/sysexits:
24384
24385 2006-09-06  Jim Meyering  <jim@meyering.net>
24386
24387         Make generated files be read-only.
24388         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
24389         Ensure that each generated file is now read-only.
24390         * modules/argz: Likewise.
24391         * modules/arpa_inet: Likewise.
24392         * modules/byteswap: Likewise.
24393         * modules/configmake: Likewise.
24394         * modules/fcntl: Likewise.
24395         * modules/fnmatch: Likewise.
24396         * modules/getopt: Likewise.
24397         * modules/glob: Likewise.
24398         * modules/inttypes: Likewise.
24399         * modules/netinet_in: Likewise.
24400         * modules/poll: Likewise.
24401         * modules/stdbool: Likewise.
24402         * modules/stdint: Likewise.
24403         * modules/sys_select: Likewise.
24404         * modules/sys_socket: Likewise.
24405         * modules/sys_stat: Likewise.
24406         * modules/sysexits: Likewise.
24407         * modules/localcharset: Same as above, but continue using temporary
24408         file named "t-$@" (why different?) rather than the "$@-t" used
24409         everywhere else.
24410
24411         * modules/sysexits (Makefile.am): Replace literal occurrences
24412         of "sysexit.h" more readable, and more consistent, "$@".
24413
24414 2006-09-06  Bruno Haible  <bruno@clisp.org>
24415
24416         * modules/striconv: New file.
24417         * modules/xstriconv: New file.
24418         * MODULES.html.sh (Internationalization functions): Add striconv,
24419         xstriconv.
24420
24421 2006-09-06  Bruno Haible  <bruno@clisp.org>
24422
24423         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
24424         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
24425         not using libtool correctly.
24426
24427 2006-09-06  Bruno Haible  <bruno@clisp.org>
24428
24429         * lib/striconv.h: New file.
24430         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
24431         iconvstring.c.
24432         * lib/xstriconv.h: New file.
24433         * lib/xstriconv.c: New file.
24434
24435 2006-09-06  Bruno Haible  <bruno@clisp.org>
24436
24437         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
24438         lib_..._LDFLAGS.
24439
24440 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24441
24442         * lib/argz_.h: Sync from Libtool.
24443
24444         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
24445                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24446
24447         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
24448
24449 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
24450
24451         * modules/trim: New file.
24452
24453 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
24454
24455         * lib/trim.h: New file.
24456         * lib/trim.c: New file.
24457
24458 2006-09-05  Bruno Haible  <bruno@clisp.org>
24459
24460         * MODULES.html.sh (String handling): Add trim.
24461
24462 2006-09-04  Karl Berry  <karl@gnu.org>
24463
24464         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
24465         until next release.
24466
24467 2006-09-03  Bruno Haible  <bruno@clisp.org>
24468
24469         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
24470         correctly.
24471
24472 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
24473
24474         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
24475         not gl_GETLOADAVG.  Omit unneeded semicolons.
24476         Problems reported by Ralf Wildenhues in
24477         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
24478         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
24479         at the end, which is the usual gnulib style.
24480
24481         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
24482         of doing all the work ourselves.
24483         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
24484         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
24485
24486 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
24487
24488         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
24489         Problem reported by Ralf Wildenhues in
24490         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
24491
24492         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
24493         HAVE_STRUCT_STATFS_F_FSTYPENAME.
24494
24495 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
24496
24497         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
24498         yesterday's patch by changing test -n to test -z.
24499
24500 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
24501
24502         * modules/getloadavg (Files): Add m4/getloadavg.m4.
24503         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
24504         the former is now obsolescent.
24505
24506         * modules/chdir-long (Depends-on): Add fcntl.
24507
24508 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
24509
24510         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
24511         obsolescent, and programs should use gnulib instead.
24512         * m4/getloadavg.m4: New file, with contents taken from Autoconf
24513         but with prefixes changed.
24514
24515 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
24516
24517         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
24518         or stdbool.h, because they might not exist while configuring.
24519
24520         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
24521         Don't include unistd.h or limits.h; not needed, since chdir-long.h
24522         does that for us.
24523         (O_DIRECTORY): Remove.
24524
24525 2006-08-31  Eric Blake  <ebb9@byu.net>
24526
24527         * gnulib-tool: Don't let emacs change spaces to TAB.
24528
24529 2006-08-31  Bruno Haible  <bruno@clisp.org>
24530
24531         * gnulib-tool: When calling func_import more than once, do it in a
24532         subshell.
24533         Reported by Eric Blake <ebb9@byu.net>.
24534
24535 2006-08-31  Bruno Haible  <bruno@clisp.org>
24536
24537         * gnulib-tool (nl): Remove variable.
24538         (sed_transform_lib_file): Use more robust test for config-h module.
24539         (func_import): Fix typo in 2006-08-25 patch.
24540
24541 2006-08-31  Bruno Haible  <bruno@clisp.org>
24542
24543         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
24544         specified, augment Makefile.am variables instead of assigning them.
24545
24546 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
24547
24548         Work around a bug in both the Linux and SunOS 64-bit kernels:
24549         nanosleep mishandles sleeps for longer than 2**31 seconds.
24550         Problem reported by Frank v Waveren in
24551         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
24552         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
24553         Check for nanosleep bug.
24554         (LIB_NANOSLEEP): Append clock_gettime library if needed.
24555
24556 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
24557
24558         Work around a bug in both the Linux and SunOS 64-bit kernels:
24559         nanosleep mishandles sleeps for longer than 2**31 seconds.
24560         Problem reported by Frank v Waveren in
24561         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
24562         * lib/nanosleep.c (BILLION): New constant.
24563         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
24564         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
24565         implementation.
24566
24567 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
24568
24569         * modules/nanosleep (Depends-on): Add gettime.
24570
24571 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
24572         and Simon Josefsson  <jas@extundo.com>
24573         and Oskar Liljeblad  <oskar@osk.mine.nu>
24574
24575         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
24576         * gnulib-tool (func_import): New license type 'unmodifiable license
24577         text'.
24578         * modules/fdl: Use it.  Longer description.
24579         * module/gpl, module/lgpl: New files.
24580
24581 2006-08-30  Jim Meyering  <jim@meyering.net>
24582
24583         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
24584         shadowing the parameter.
24585
24586 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24587
24588         Sync from Libtool:
24589
24590         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24591
24592         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
24593         sharing with gnulib.  Report by Eric Blake.
24594
24595 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
24596
24597         * modules/isapipe: New file.
24598         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
24599
24600 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
24601
24602         * modules/configmake (Makefile.am): Add a comment, and omit
24603         the CONFIGMAKE_ prefix from generated macro names.  Suggested
24604         by Bruno Haible.
24605
24606 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
24607
24608         * m4/isapipe.m4: New file.
24609
24610 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
24611
24612         * lib/isapipe.c, lib/isapipe.h: New files.
24613
24614 2006-08-29  Jim Meyering  <jim@meyering.net>
24615
24616         * modules/configmake (Makefile.am): Make configmake.h depend on
24617         Makefile.  Otherwise, a stale configmake.h could hang around.
24618
24619 2006-08-29  Eric Blake  <ebb9@byu.net>
24620
24621         * lib/error.c (error_at_line, print_errno_message): Match libc, after
24622         resolution of upstream bug 3044.
24623
24624 2006-08-29  Bruno Haible  <bruno@clisp.org>
24625
24626         * modules/localcharset (Depends-on): Add configmake.
24627         (Makefile.am): Remove setting of LIBDIR through DEFS.
24628
24629 2006-08-29  Bruno Haible  <bruno@clisp.org>
24630
24631         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
24632         defined.
24633
24634 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
24635
24636         * modules/fcntl: New file.
24637         * modules/chdir-safer (Depends-on): Add fcntl.
24638         * modules/fts: Likewise.
24639         * modules/mkdir-p: Likewise.
24640
24641         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
24642         This undoes the most recent change, since we're now addressing the
24643         problem in a different way.
24644
24645         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
24646         into output, since the output might be called Makefile.am even
24647         if $makefile_name is something different.
24648         (func_import): Use $makefile_am rather than
24649         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
24650         empty.
24651
24652         * modules/inttypes (Files): Add m4/inttypes-h.m4.
24653
24654 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
24655
24656         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
24657         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
24658         recent change to stdint.m4, since we're now addressing the problem in a
24659         different way.
24660
24661 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
24662
24663         * m4/fcntl_h.m4: New file.
24664
24665 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
24666
24667         * lib/fcntl_.h: New file.
24668         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
24669         the fcntl module.
24670         * lib/dirchownmod.c: Likewise.
24671         * lib/fts.c: Likewise.
24672
24673         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
24674         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
24675         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
24676         just before including <inttypes.h>, to avoid circular inclusion.
24677
24678 2006-08-28  Jim Meyering  <jim@meyering.net>
24679
24680         * doc/visibility.texi: Actually read and correct the grammar of the
24681         sentence affected by yesterday's change.
24682
24683 2006-08-28  Eric Blake  <ebb9@byu.net>
24684
24685         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
24686         needs wrapper.
24687
24688 2006-08-28  Eric Blake  <ebb9@byu.net>
24689
24690         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
24691
24692 2006-08-28  Eric Blake  <ebb9@byu.net>
24693
24694         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
24695
24696 2006-08-28  Bruno Haible  <bruno@clisp.org>
24697
24698         * modules/c-strstr: New file, from GNU gettext.
24699         * MODULES.html.sh (String handling): Add c-strstr.
24700
24701 2006-08-28  Bruno Haible  <bruno@clisp.org>
24702
24703         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
24704         macros.
24705         Reported by Eric Blake.
24706
24707 2006-08-28  Bruno Haible  <bruno@clisp.org>
24708
24709         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
24710         (VASNPRINTF): Return a string of length > INT_MAX without failing.
24711         * lib/vasprintf.c: Include errno.h, limits.h.
24712         (EOVERFLOW): New fallback definition.
24713         (vasprintf): Test here whether the string length is > INT_MAX.
24714         * lib/vsnprintf.c: Include errno.h, limits.h.
24715         (EOVERFLOW): New fallback definition.
24716         (vsnprintf): Fix bug when generated string was too long for the buffer.
24717         Test here whether the string length is > INT_MAX.
24718
24719 2006-08-28  Bruno Haible  <bruno@clisp.org>
24720
24721         * lib/inttypes_.h (SCNX*): Remove definitions.
24722         Reported by Eric Blake.
24723
24724 2006-08-28  Bruno Haible  <bruno@clisp.org>
24725
24726         * lib/c-strstr.h: New file, from GNU gettext.
24727         * lib/c-strstr.c: New file, from GNU gettext.
24728
24729 2006-08-28  Bruno Haible  <bruno@clisp.org>
24730
24731         * gnulib-tool: Reorder some statements.
24732
24733 2006-08-28  Bruno Haible  <bruno@clisp.org>
24734
24735         * gnulib-tool: New option --makefile-name.
24736         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
24737         $makefile_name.
24738         (func_import): Write $makefile_name to the cache file, and read it from
24739         there unless explicitly specified. Use $makefile_name as file name
24740         instead of Makefile.am. Adjust the recommendations accordingly.
24741
24742 2006-08-28  Bruno Haible  <bruno@clisp.org>
24743
24744         * gnulib-tool (func_verify_module): Check against misapplying patch.
24745
24746 2006-08-28  Bruno Haible  <bruno@clisp.org>
24747
24748         * gnulib-tool (func_relativize, func_relconcat): New functions.
24749         Give an error if --local-dir is given with --update.
24750         Remove trailing slashes from $local_gnulib_dir.
24751         (func_import): Store the relativized $local_gnulib_dir in
24752         gnulib-cache.m4, and read it from there if not specified explicitly.
24753
24754 2006-08-28  Bruno Haible  <bruno@clisp.org>
24755
24756         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
24757         is the current directory. Respect also $local_gnulib_dir.
24758
24759 2006-08-28  Bruno Haible  <bruno@clisp.org>
24760             Simon Josefsson  <jas@extundo.com>
24761
24762         BeOS portability.
24763         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
24764
24765 2006-08-27  Jim Meyering  <jim@meyering.net>
24766
24767         * doc/visibility.texi: Remove duplicate word: "pointer".
24768
24769 2006-08-26  Bruno Haible  <bruno@clisp.org>
24770
24771         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
24772         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
24773         (Makefile.am): Create inttypes.h from inttypes_.h.
24774         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
24775
24776         * modules/imaxabs: New file.
24777
24778         * modules/imaxdiv: New file.
24779
24780 2006-08-26  Bruno Haible  <bruno@clisp.org>
24781
24782         * m4/inttypes.m4: New file.
24783         * m4/_inttypes_h.m4: Remove file.
24784         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
24785         PRI_MACROS_BROKEN.
24786         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
24787
24788         * m4/imaxabs.m4: New file.
24789
24790         * m4/imaxdiv.m4: New file.
24791
24792 2006-08-26  Bruno Haible  <bruno@clisp.org>
24793
24794         * lib/inttypes_.h: New file.
24795         * lib/inttypes.h: Remove file.
24796         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
24797
24798         * lib/imaxabs.c: New file.
24799
24800         * lib/imaxdiv.c: New file.
24801
24802 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
24803
24804         New config-h module, so that "make" output needn't be cluttered
24805         by -DHAVE_CONFIG_H.
24806         * MODULES.html.sh (Support for building libraries and executables):
24807         Add config-h.
24808         * modules/config-h: New file.
24809         * gnulib-tool (nl, sed_transform_lib_file): New vars.
24810         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
24811         the config-h module is used.
24812
24813         New configmake module, so that "make" output needn't be cluttered
24814         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
24815         * MODULES.html.sh (Support for building libraries and executables):
24816         Add configmake.
24817         * modules/configmake: New file.
24818
24819 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
24820
24821         * m4/config-h.m4: New file.
24822
24823 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
24824
24825         * config/srclist.txt: Add elisp-comp.
24826
24827 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
24828
24829         * MODULES.html.sh (Support for building libraries and executables):
24830         Add elisp-comp.
24831         * build-aux/elisp-comp: New file.
24832         * modules/elisp-comp: New file.
24833
24834 2006-08-24  Bruno Haible  <bruno@clisp.org>
24835
24836         * gnulib-tool (func_create_testdir): Use non-default values of
24837         sourcebase and m4base.
24838
24839 2006-08-24  Bruno Haible  <bruno@clisp.org>
24840
24841         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
24842         HTML structure.
24843
24844 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
24845
24846         * modules/openat (Depends-on): Add lchown.
24847
24848 2006-08-23  Bruno Haible  <bruno@clisp.org>
24849
24850         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
24851         of gl_LOCK_EARLY instead of gl_LOCK.
24852
24853 2006-08-23  Bruno Haible  <bruno@clisp.org>
24854
24855         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
24856         on OSF/1 to no.
24857         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
24858
24859 2006-08-23  Bruno Haible  <bruno@clisp.org>
24860
24861         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
24862         as unusable.
24863
24864         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
24865         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
24866         (gl_LOCK): New macro.
24867
24868 2006-08-22  Simon Josefsson  <jas@extundo.com>
24869
24870         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
24871         to md5 module.
24872
24873 2006-08-22  Simon Josefsson  <jas@extundo.com>
24874
24875         * MODULES.html.sh: Add "Support for maintaining and release
24876         projects".
24877
24878         * build-aux/gnupload: New file, from coreutils.
24879
24880 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
24881
24882         Avoid the need for AC_LIBSOURCES in m4 macros.
24883         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
24884         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
24885         * modules/check-version (EXTRA_DIST): Add check-version.h.
24886         * modules/crc (EXTRA_DIST): Add crc.h.
24887         * modules/des (EXTRA_DIST): Add des.h.
24888         * modules/gc (EXTRA_DIST): Add gc.h.
24889         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
24890         * modules/getline (EXTRA_DIST): Add getline.h.
24891         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
24892         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
24893         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
24894         * modules/md2 (EXTRA_DIST): Add md2.h.
24895         * modules/md4 (EXTRA_DIST): Add md4.h.
24896         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
24897         * modules/read-file (EXTRA_DIST): Add read-file.h.
24898         * modules/readline (EXTRA_DIST): Add readline.h.
24899         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
24900         rijndael-api-fst.h.
24901
24902 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
24903
24904         * m4/rijndael.m4 (gl_ARCFOUR):
24905         * m4/arctwo.m4 (gl_ARCTWO):
24906         * m4/check-version.m4 (gl_CHECK_VERSION):
24907         * m4/crc.m4 (gl_CRC):
24908         * m4/des.m4 (gl_DES):
24909         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
24910         * m4/gc.m4 (gl_GC):
24911         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
24912         * m4/getline.m4 (gl_FUNC_GETLINE):
24913         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
24914         * m4/hmac-md5.m4 (gl_HMAC_MD5):
24915         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
24916         * m4/md2.m4 (gl_MD2):
24917         * m4/md4.m4 (gl_MD4):
24918         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
24919         * m4/read-file.m4 (gl_FUNC_READ_FILE):
24920         * m4/readline.m4 (gl_FUNC_READLINE):
24921         * m4/rijndael.m4 (gl_RIJNDAEL):
24922         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
24923         to get the necessary .h files and whatnot.
24924
24925 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
24926
24927         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
24928         gnulib rather than the other way around.
24929         * config/srclistvars.sh (COREUTILS): Remove.
24930
24931 2006-08-22  Jim Meyering  <jim@meyering.net>
24932
24933         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
24934
24935         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
24936
24937 2006-08-22  Eric Blake  <ebb9@byu.net>
24938
24939         * modules/regexprops-generic: New file.
24940         * MODULES.html.sh (Support for building documentation): List it.
24941
24942 2006-08-22  Eric Blake  <ebb9@byu.net>
24943
24944         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
24945         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
24946         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
24947         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
24948
24949 2006-08-22  Bruno Haible  <bruno@clisp.org>
24950
24951         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
24952         and lib_LTLIBRARIES like the other lib_* variables.
24953
24954 2006-08-22  Bruno Haible  <bruno@clisp.org>
24955
24956         * build-aux/x-to-1.in: New file, from GNU gettext.
24957
24958 2006-08-22  Bruno Haible  <bruno@clisp.org>
24959
24960         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
24961         <utmpx.h> exists.
24962
24963 2006-08-22  Bruno Haible  <bruno@clisp.org>
24964
24965         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
24966         <utmpx.h> exists.
24967
24968 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
24969
24970         BeOS portability.
24971         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
24972         exist.
24973         Problem reported by Bruno Haible.
24974
24975 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
24976
24977         Avoid the need for AC_LIBSOURCES in m4 macros.
24978         * modules/acl (EXTRA_DIST): Add acl.h.
24979         * modules/argmatch (Files): Add m4/argmatch.m4.
24980         (configure.ac): Add gl_ARGMATCH.
24981         (EXTRA_DIST): Renamed from lib_SOURCES, for
24982         consistency with the other modules.  Remove argmatch.c.
24983         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
24984         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
24985         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
24986         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
24987         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
24988         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
24989         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
24990         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
24991         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
24992         * modules/closeout (EXTRA_DIST): Add closeout.h.
24993         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
24994         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
24995         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
24996         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
24997         dirname.h; remove basename.c and stripslash.c.
24998         * modules/exclude (EXTRA_DIST): Add exclude.h.
24999         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
25000         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
25001         * modules/file-type (EXTRA_DIST): Add file-type.h.
25002         * modules/filemode (EXTRA_DIST): Add filemode.h.
25003         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
25004         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
25005         * modules/fpending (EXTRA_DIST): Add __fpending.h.
25006         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
25007         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
25008         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
25009         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
25010         * modules/getdate (EXTRA_DIST): Add getdate.c.
25011         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
25012         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
25013         * modules/getpass (EXTRA_DIST): Add getpass.h.
25014         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
25015         * modules/group-member (EXTRA_DIST): Add group-member.h.
25016         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
25017         * modules/hash (EXTRA_DIST): Add hash.h.
25018         * modules/human (EXTRA_DIST): Add human.h.
25019         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
25020         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
25021         * modules/lchown (EXTRA_DIST): Add lchown.h.
25022         * modules/long-options (EXTRA_DIST): Add long-options.h.
25023         * modules/lstat (EXTRA_DIST): Add lstat.h.
25024         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
25025         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
25026         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
25027         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
25028         * modules/memxor (EXTRA_DIST): Add memxor.h.
25029         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
25030         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
25031         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
25032         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
25033         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
25034         * modules/physmem (EXTRA_DIST): Add physmem.h.
25035         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
25036         * modules/posixver (EXTRA_DIST): Add posixver.h.
25037         * modules/quote (EXTRA_DIST): Add quote.h.
25038         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
25039         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
25040         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
25041         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
25042         regex_internal.h regexec.c.
25043         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
25044         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
25045         * modules/same (EXTRA_DIST): Add same.h.
25046         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
25047         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
25048         * modules/savedir (EXTRA_DIST): Add savedir.h.
25049         * modules/sha1 (EXTRA_DIST): Add sha1.h.
25050         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
25051         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
25052         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
25053         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
25054         * modules/strdup (EXTRA_DIST): Add strdup.h.
25055         * modules/strftime (EXTRA_DIST): Add strftime.h.
25056         * modules/strndup (EXTRA_DIST): Add strndup.h.
25057         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
25058         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
25059         * modules/time_r (EXTRA_DIST): Add time_r.h.
25060         * modules/timespec (EXTRA_DIST): Add timespec.h.
25061         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
25062         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
25063         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
25064         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
25065         * modules/userspec (EXTRA_DIST): Add userspec.h.
25066         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
25067         * modules/utimens (EXTRA_DIST): Add utimens.h.
25068         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
25069         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
25070         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
25071         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
25072         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
25073         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
25074         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
25075         * modules/yesno (EXTRA_DIST): Add yesno.h.
25076
25077 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
25078
25079         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
25080
25081         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
25082         * m4/dev-ino.m4, same-inode.m4: Remove.
25083
25084         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
25085         * m4/acl.m4 (AC_FUNC_ACL):
25086         * m4/backupfile.m4 (gl_BACKUPFILE):
25087         * m4/c-strtod.m4 (gl_C99_STRTOLD):
25088         * m4/canon-host.m4 (gl_CANON_HOST):
25089         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
25090         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
25091         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
25092         * m4/cloexec.m4 (gl_CLOEXEC):
25093         * m4/close-stream.m4 (gl_CLOSE_STREAM):
25094         * m4/closeout.m4 (gl_CLOSEOUT):
25095         * m4/dirfd.m4 (gl_FUNC_DIRFD):
25096         * m4/dirname.m4 (gl_DIRNAME):
25097         * m4/exclude.m4 (gl_EXCLUDE):
25098         * m4/exitfail.m4 (gl_EXITFAIL):
25099         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
25100         * m4/file-type.m4 (gl_FILE_TYPE):
25101         * m4/filemode.m4 (gl_FILEMODE):
25102         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
25103         * m4/fpending.m4 (gl_FUNC_FPENDING):
25104         * m4/fprintftime.m4 (gl_FPRINTFTIME):
25105         * m4/fts.m4 (gl_FUNC_FTS):
25106         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
25107         * m4/getdate.m4 (gl_GETDATE):
25108         * m4/gethrxtime.m4 (gl_GETHRXTIME):
25109         * m4/getpagesize.m4 (gl_GETPAGESIZE):
25110         * m4/getpass.m4 (gl_FUNC_GETPASS):
25111         * m4/gettime.m4 (gl_GETTIME):
25112         * m4/getugroups.m4 (gl_GETUGROUPS):
25113         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
25114         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
25115         * m4/hard-locale.m4 (gl_HARD_LOCALE):
25116         * m4/hash.m4 (gl_HASH):
25117         * m4/idcache.m4 (gl_IDCACHE):
25118         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
25119         * m4/lchown.m4 (gl_FUNC_LCHOWN):
25120         * m4/long-options.m4 (gl_LONG_OPTIONS):
25121         * m4/lstat.m4 (gl_FUNC_LSTAT):
25122         * m4/md5.m4 (gl_MD5):
25123         * m4/memcasecmp.m4 (gl_MEMCASECMP):
25124         * m4/memcoll.m4 (gl_MEMCOLL):
25125         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
25126         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
25127         * m4/memxor.m4 (gl_MEMXOR):
25128         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
25129         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
25130         * m4/modechange.m4 (gl_MODECHANGE):
25131         * m4/mountlist.m4 (gl_MOUNTLIST):
25132         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
25133         * m4/openat.m4 (gl_FUNC_OPENAT):
25134         * m4/pathmax.m4 (gl_PATHMAX):
25135         * m4/physmem.m4 (gl_PHYSMEM):
25136         * m4/posixtm.m4 (gl_POSIXTM):
25137         * m4/posixver.m4 (gl_POSIXVER):
25138         * m4/quote.m4 (gl_QUOTE):
25139         * m4/quotearg.m4 (gl_QUOTEARG):
25140         * m4/readtokens.m4 (gl_READTOKENS):
25141         * m4/readutmp.m4 (gl_READUTMP):
25142         * m4/regex.m4 (gl_REGEX):
25143         * m4/safe-read.m4 (gl_SAFE_READ):
25144         * m4/safe-write.m4 (gl_SAFE_WRITE):
25145         * m4/same.m4 (gl_SAME):
25146         * m4/save-cwd.m4 (gl_SAVE_CWD):
25147         * m4/savedir.m4 (gl_SAVEDIR):
25148         * m4/settime.m4 (gl_SETTIME):
25149         * m4/sha1.m4 (gl_SHA1):
25150         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
25151         * m4/stat-macros.m4 (gl_STAT_MACROS):
25152         * m4/stat-time.m4 (gl_STAT_TIME):
25153         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
25154         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
25155         * m4/strdup.m4 (gl_FUNC_STRDUP):
25156         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
25157         * m4/strndup.m4 (gl_FUNC_STRNDUP):
25158         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
25159         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
25160         * m4/time_r.m4 (gl_TIME_R):
25161         * m4/timespec.m4 (gl_TIMESPEC):
25162         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
25163         * m4/unlinkdir.m4 (gl_UNLINKDIR):
25164         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
25165         * m4/userspec.m4 (gl_USERSPEC):
25166         * m4/utimecmp.m4 (gl_UTIMECMP):
25167         * m4/utimens.m4 (gl_UTIMENS):
25168         * m4/xalloc.m4 (gl_XALLOC):
25169         * m4/xgetcwd.m4 (gl_XGETCWD):
25170         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
25171         * m4/xreadlink.m4 (gl_XREADLINK):
25172         * m4/xstrtod.m4 (gl_XSTRTOD):
25173         * m4/yesno.m4 (gl_YESNO):
25174         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
25175         to get the necessary .h files and whatnot.
25176
25177 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
25178             Bruno Haible  <bruno@clisp.org>
25179
25180         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
25181         /bin/sh understanding of '!' conditional negation.
25182
25183 2006-08-21  Jim Meyering  <jim@meyering.net>
25184
25185         * modules/openat (Depends-on): Really alphabetize.
25186
25187         * modules/acl (Depends-on): Add error and quote.
25188
25189         * check-module (find_included_lib_files): Add at-func.c to the
25190         ok-to-include-more-than-once white list.
25191
25192         * modules/openat (Depends-on): Add lstat.  Alphabetize.
25193
25194 2006-08-21  Bruno Haible  <bruno@clisp.org>
25195
25196         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
25197         Emit a pkgdata_DATA variable only if some snippets add contents to it.
25198         Reported by Martin Lambers <marlam@marlam.de>.
25199
25200 2006-08-21  Bruno Haible  <bruno@clisp.org>
25201
25202         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
25203         specify an installation location, don't emit a noinst_LIBRARIES or
25204         noinst_LTLIBRARIES assignment.
25205
25206 2006-08-21  Bruno Haible  <bruno@clisp.org>
25207
25208         BeOS portability.
25209         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
25210         BeOS has mbrtowc() but no <wctype.h>.
25211
25212 2006-08-21  Bruno Haible  <bruno@clisp.org>
25213
25214         BeOS portability.
25215         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
25216         exist.
25217
25218 2006-08-21  Bruno Haible  <bruno@clisp.org>
25219
25220         BeOS portability.
25221         * lib/mbchar.h: Include <wctype.h> only if it exists.
25222
25223 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
25224
25225         Remove files that are no longer needed by their respective modules.
25226         * m4/obstack.m4: Remove.
25227         * m4/strerror_r.m4: Remove.
25228         * m4/uint32_t.m4: Remove.
25229         * m4/uintptr_t.m4: Remove.
25230         * m4/ullong_max.m4: Remove.
25231         * m4/xstrtoimax.m4: Remove.
25232         * m4/xstrtoumax.m4: Remove.
25233
25234         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
25235         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
25236         dependencies now capture this.
25237
25238         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
25239         Do not use AC_LIBSOURCES, since gnulib modules now do this.
25240         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
25241         * m4/human.m4 (gl_HUMAN): Likewise.
25242         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
25243         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
25244
25245         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
25246
25247         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
25248         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
25249         stdint.
25250         * m4/human.m4 (gl_HUMAN): Likewise.
25251         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
25252         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
25253         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
25254         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
25255         * m4/xstrtol (gl_XSTRTOL): Likewise.
25256
25257         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
25258         AC_TYPE_LONG_LONG_INT.
25259         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
25260         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
25261         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
25262         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
25263
25264         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
25265         on stdbool.
25266
25267         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
25268         (gl_PREREQ_XSTRTOUL): Remove.
25269
25270         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
25271
25272         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
25273         mode.
25274
25275 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
25276
25277         Add and change modules to make it easier for coreutils to use
25278         gnulib-tool.
25279         * modules/backupfile (Files): Remove m4/d-ino.m4.
25280         (Depends-on): Add d-ino.
25281         * modules/cycle-check (Depends-on): Add stdint.
25282         (lib_SOURCES): Add cycle-check.h.
25283         * modules/d-ino: New module.
25284         * modules/d-type: New module.
25285         * modules/error (Files): Remove m4/strerror_r.m4.
25286         * modules/filemode (Files): Add m4/st_dm_mode.m4.
25287         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
25288         m4/inttypes_h.m4, m4/uintmax_t.m4.
25289         (Depends-on): Add stdint.
25290         (lib_SOURCES): Add fsusage.h.
25291         * modules/getcwd (Files): Remove d-ino.m4.
25292         (Depends-on): Add d-ino.
25293         * modules/getndelim2 (Depends-on): Add stdint.
25294         * modules/glob (Files): Remove m4/d-type.m4.
25295         (Depends-on): Add d-type.
25296         * modules/host-os: New module.
25297         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
25298         m4/inttypes_h.m4, m4/uintmax_t.m4.
25299         * Depends-on: Add stdint.
25300         (lib_SOURCES): Add human.h.
25301         * modules/inttostr (Files): Remove m4/intmax_t.m4,
25302         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
25303         m4/uintmax_t.m4, m4/ulonglong.m4.
25304         (Depends-on): Add stdint.
25305         (EXTRA_DIST): Add inttostr.h.
25306         * modules/lchmod: New module.
25307         * modules/link-follow: New module.
25308         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
25309         (Depends-on): Add lchmod.
25310         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
25311         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
25312         (Depends-on): Add stdint.
25313         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
25314         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
25315         (Depends-on): Add stdint.
25316         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
25317         * modules/perl: New module.
25318         * modules/regex (Depends-on): Add stdint.
25319         * modules/rmdir-errno: New module.
25320         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
25321         m4/intmax_t.m4.
25322         (Depends-on): Add stdint.
25323         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
25324         m4/uintmax_t.m4.
25325         (Depends-on): Add stdint.
25326         * modules/unlink-busy: New module.
25327         * modules/utimecmp (Depends-on): Add stdint.
25328         * modules/uptime: New module.
25329         * modules/winsz-ioctl: New module.
25330         * modules/winsz-termios: New module.
25331         * modules/xnanosleep (Depends-on): Add nanosleep.
25332         * modules/ullong_max: Remove.
25333         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
25334         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
25335         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
25336         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
25337         (Depends-on): Add inttypes.
25338         (lib_SOURCES): Add xstrtol.h.
25339         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
25340         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
25341         * MODULES.html.sh: Move 'assert' into the assert section.
25342         Move 'dummy' into the linking section.
25343         Remove ullong_max.
25344         Add section for compatibility checks for POSIX:2001 functions,
25345         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
25346         winsz-ioctl, and winsz-termios into it.
25347         Add lchmod.
25348         Add top-level Misc section and put host-os, perl, and uptime
25349         into it.
25350
25351 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
25352
25353         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
25354         now assume the stdint module.  Do not include inttypes.h.
25355         * lib/fsusage.h: Likewise.
25356         * lib/getndelim2.c: Likewise.
25357         * lib/human.h: Likewise.
25358         * lib/inttostr.h: Likewise.
25359         * lib/obstack.c: Likewise.
25360         * lib/regex_internal.h: Likewise.
25361         * lib/tempname.c: Likewise.
25362         * lib/utimecmp.c: Likewise.
25363         * lib/xstrtol.h: Likewise.
25364
25365         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
25366
25367         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
25368         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
25369         * lib/xtime.h: Likewise.
25370
25371 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
25372
25373         * modules/openat (Files): Add lib/fchmodat.c.
25374         Fixes problem reported by Jay Youngman.
25375
25376 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
25377
25378         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
25379         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
25380
25381 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
25382             Bruno Haible  <bruno@clisp.org>
25383
25384         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
25385         and is a script that invokes bison. Tighten the code. Add comments.
25386
25387 2006-08-18  Jim Meyering  <jim@meyering.net>
25388
25389         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
25390         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
25391         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
25392         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
25393
25394 2006-08-18  Bruno Haible  <bruno@clisp.org>
25395
25396         * modules/bison-i18n: New file.
25397         * MODULES.html.sh (Internationalization functions): Add it.
25398
25399 2006-08-18  Bruno Haible  <bruno@clisp.org>
25400
25401         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
25402         sys/statvfs.h. When getmntinfo was found, check its declaration and
25403         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
25404
25405 2006-08-18  Bruno Haible  <bruno@clisp.org>
25406
25407         * m4/bison-i18n.m4: New file, from bison.
25408
25409 2006-08-18  Bruno Haible  <bruno@clisp.org>
25410
25411         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
25412         (ME_DUMMY): Treat "kernfs" as a dummy.
25413         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
25414
25415 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
25416
25417         Update from coreutils.
25418
25419         2006-08-15  Jim Meyering  <jim@meyering.net>
25420
25421         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
25422
25423         2006-01-17  Jim Meyering  <jim@meyering.net>
25424
25425         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
25426
25427         2006-01-11  Jim Meyering  <jim@meyering.net>
25428
25429         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
25430         Check for the lchmod function.
25431
25432 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
25433
25434         Update from coreutils.
25435
25436         * lib/__fpending.h: Add copyright notice.
25437         * lib/fprintftime.h: Likewise.
25438         * lib/savedir.c: Use (C) in copyright notice.
25439         * lib/savedir.h: Likewise.
25440
25441         2006-08-15  Jim Meyering  <jim@meyering.net>
25442
25443         * lib/at-func.c: New file, with the logic of all emulated at-functions.
25444         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
25445         in support of the EXPECTED_ERRNO macro.
25446         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
25447         definitions.  Instead, define the appropriate symbols and include
25448         "at-func.c".
25449         * lib/mkdirat.c (mkdirat): Likewise.
25450         * lib/fchmodat.c (fchmodat): Likewise.
25451         (ENOSYS): Remove definition.
25452         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
25453         it.  Don't include "unistd--.h" -- it wasn't ever used.
25454
25455         2006-01-17  Jim Meyering  <jim@meyering.net>
25456
25457         Rewrite fts.c not to change the current working directory,
25458         by using openat, fstatat, fdopendir, etc..
25459
25460         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
25461         (HAVE_OPENAT_SUPPORT): Define.
25462         [_LIBC] (fchdir): Don't undef or define; no longer used.
25463         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
25464         Now, this `function' always succeeds, and consumes its file descriptor
25465         parameter -- so callers must not close such FDs.  Update callers.
25466         (diropen_fd, opendirat, cwd_advance_fd): New functions.
25467         (diropen): Add parameter, SP.  Adjust all callers.
25468         Implement using diropen_fd, rather than open.
25469         (fts_open): Initialize new member, fts_cwd_fd.
25470         Remove fts_rft-setting code.
25471         (fts_close): Close fts_cwd_fd, if necessary.
25472         (__opendir2): Define in terms of opendir or opendirat,
25473         depending on whether the FST_NOCHDIR flag is set.
25474         (fts_build): Since fts_safe_changedir consumes its FD, and since
25475         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
25476         and close the dup'd file descriptor upon failure.
25477         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
25478         (fts_safe_changedir): Tweak semantics to reflect that this function
25479         now calls cwd_advance_fd and hence consumes its FD argument.
25480         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
25481         [struct FTS] (fts_rft): Remove now-unused member.
25482         [struct FTS] (fts_cycle.state): Improve comment.
25483
25484         * lib/openat.c (openat_needs_fchdir): New function.
25485         * lib/openat.h (openat_needs_fchdir): Declare it.
25486
25487 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
25488
25489         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
25490         Problem and fix reported by Pádraig Brady in
25491         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
25492
25493 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
25494
25495         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
25496
25497 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
25498
25499         * lib/memcoll.c (memcoll): Optimize for the common case where the
25500         arguments are bytewise equal.
25501
25502 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
25503
25504         * doc/regexprops-generic.texi: Add a copyright notice.
25505
25506 2006-08-15  Bruno Haible  <bruno@clisp.org>
25507
25508         * modules/tmpdir (License): Change to LGPL.
25509
25510 2006-08-15  Bruno Haible  <bruno@clisp.org>
25511
25512         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
25513         module.
25514
25515 2006-08-14  Simon Josefsson  <jas@extundo.com>
25516
25517         * config/srclist.txt: Add gnupload.
25518
25519 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
25520
25521         Change copyright notice from LGPL 2 to GPL 2, since that's the
25522         standard form used in the gnulib repository.
25523         * tests/test-lock.c: Likewise.
25524         * tests/test-stdint.c: Likewise.
25525         * tests/test-tls.c: Likewise.
25526
25527         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
25528         prelude-manager.  User shorter URLs for GNU projects, without '?'.
25529         Add copyright notice.
25530
25531         * check-module: Add copyright notice.  Output a copyright
25532         notice if "--version" is specified.
25533         * modules/COPYING: New file.
25534         * tests/test-getaddrinfo.c: Add copyright notice.
25535         * tests/test-verify.c: Likewise.
25536
25537 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
25538
25539         Change copyright notice from LGPL 2 to GPL 2, since that's the
25540         standard form used in the gnulib repository.
25541         * lib/lock.c: LGPL -> GPL.
25542         * lib/lock.h: Likewise.
25543         * lib/strnlen1.c: Likewise.
25544         * lib/strnlen1.h: Likewise.
25545         * lib/tls.c: Likewise.
25546         * lib/tls.h: Likewise.
25547         * lib/tmpdir.c: Likewise.
25548
25549         * lib/TODO: Remove; this belongs only in coreutils.
25550
25551 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
25552
25553         Add copyright notices to long-enough files that lack them, since
25554         otherwise the files aren't clearly free.  Use the same notice that
25555         getdate.texi already uses.
25556         * doc/alloca-opt.texi: Add copyright notice.
25557         * doc/alloca.texi: Likewise.
25558         * doc/ctime.texi: Likewise.
25559         * doc/functions.texi: Likewise.
25560         * doc/gcd.texi: Likewise.
25561         * doc/gnulib-tool.texi: Likewise.
25562         * doc/inet_ntoa.texi: Likewise.
25563         * doc/visibility.texi: Likewise.
25564
25565         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
25566         * doc/quote.texi: Add copyright notice.
25567
25568         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
25569         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
25570         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
25571         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
25572         is now obsolete, and give a pointer to the Sun list.
25573         Add copyright notice.
25574
25575 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
25576
25577         * config/srclistvars.sh: Add copyright notice.
25578
25579 2006-08-14  Eric Blake  <ebb9@byu.net>
25580
25581         Import the following change from libc:
25582
25583         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
25584
25585         Upstream bug 2997.
25586         * lib/misc/error.c: Add space between program name and message if file
25587         name is missing.
25588
25589 2006-08-12  Karl Berry  <karl@gnu.org>
25590
25591         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
25592         remove, these originate in gnulib now.
25593
25594 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25595
25596         * doc/Makefile (standards.info standards.html standards.dvi):
25597         Also depend on make-stds.texi.
25598
25599 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
25600
25601         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
25602         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
25603
25604         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
25605         in wchar_t.  Problem reported by Eric Blake.
25606
25607         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
25608         LEN is smaller than SIZE.  Suggested by Bruno Haible.
25609         Also, help the compiler to keep LEN in a register.
25610
25611 2006-08-11  Eric Blake  <ebb9@byu.net>
25612
25613         * users.txt: Sort.  Add tar.
25614
25615 2006-08-11  Bruno Haible  <bruno@clisp.org>
25616
25617         * users.txt: New file.
25618
25619 2006-08-11  Bruno Haible  <bruno@clisp.org>
25620
25621         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
25622         before <wchar.h>. Needed for OSF/1 and BSD/OS.
25623
25624 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
25625
25626         * modules/snprintf (Depends-on): Remove minmax.
25627         (Maintainer): Add self and Bruno.
25628
25629 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
25630
25631         * lib/.cppi-disable: Add snprintf.h, socket_.h.
25632         * lib/snprintf.c: Include <errno.h> and <limits.h>.
25633         (EOVERFLOW): Define if the system does not.
25634         Do not include "minmax.h"; it wasn't used.
25635         (snprintf): Don't assume size_t promotes to an unsigned type.
25636         Fix bug when generated string was too long for the buffer: the
25637         buffer's contents are supposed to be the initial prefix of the
25638         output.  Don't assume vasnprintf returns EOVERFLOW if the size
25639         exceeds INT_MAX; do the check ourselves.
25640
25641         Import the following changes from libc:
25642
25643         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
25644
25645         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
25646         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
25647         set wc to the byte which couldn't be converted.
25648         (re_string_reconstruct): Don't clear valid_raw_len before calling
25649         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
25650         tip_context using re_string_context_at.
25651
25652         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
25653
25654         * lib/posix/regex.h: g++ still cannot handled [restrict].
25655
25656         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
25657
25658         * lib/posix/regex.h: Remove special handling for VMS.
25659
25660 2006-08-10  Jim Meyering  <jim@meyering.net>
25661
25662         * modules/same-inode: New module.
25663         * modules/dev-ino: New module.
25664         * modules/cycle-check: Depend on these modules, rather than simply
25665         including their .h files.
25666         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
25667         required via m4/cycle-check.m4.
25668         * modules/same: Depend on new same-inode module, rather than
25669         including same-inode.h.
25670         * modules/chdir-safer: New file.
25671
25672         * modules/chown (Depends-on): Add stat-macros.
25673
25674 2006-08-10  Jim Meyering  <jim@meyering.net>
25675
25676         * m4/cycle-check.m4: New file.
25677         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
25678         * m4/dev-ino.m4, m4/same-inode.m4: New files.
25679
25680 2006-08-10  Eric Blake  <ebb9@byu.net>
25681
25682         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
25683         in from original proposal.
25684
25685 2006-08-10  Eric Blake  <ebb9@byu.net>
25686         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25687
25688         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
25689         namespace.
25690
25691 2006-08-10  Bruno Haible  <bruno@clisp.org>
25692
25693         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
25694         as well.
25695
25696 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
25697
25698         Sync from coreutils.
25699
25700         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
25701
25702         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
25703         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
25704
25705 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
25706
25707         * modules/restrict: Remove; no longer needed now that we assume
25708         Autoconf 2.59 or later.
25709         * MODULES.html.sh: Remove 'restrict'.
25710         * modules/argp (Depends-on): Remove 'restrict'.
25711         * modules/base64 (Depends-on): Likewise.
25712         * modules/gc (Depends-on): Likewise.
25713         * modules/getaddrinfo (Depends-on): Likewise.
25714         * modules/glob (Depends-on): Likewise.
25715         * modules/inet_ntop (Depends-on): Likewise.
25716         * modules/inet_pton (Depends-on): Likewise.
25717         * modules/memxor (Depends-on): Likewise.
25718         * modules/regex (Depends-on): Likewise.
25719         * modules/strtok_r (Depends-on): Likewise.
25720         * modules/time_r (Depends-on): Likewise.
25721
25722 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
25723
25724         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
25725         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
25726         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
25727         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
25728         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
25729         * m4/memxor.m4 (gl_MEMXOR): Likewise.
25730         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
25731         gl_C_RESTRICT replaced by AC_C_RESTRICT.
25732
25733         Merge from coreutils.
25734         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
25735         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
25736         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
25737         * m4/time_r.m4 (gl_TIME_R): Likewise.
25738
25739 2006-08-09  Karl Berry  <karl@gnu.org>
25740
25741         * config/srclist.txt: no more gettext-tools, per Bruno.
25742
25743 2006-08-08  Eric Blake  <ebb9@byu.net>
25744
25745         * modules/verror: New module.
25746         * MODULES.html.sh: Document it.
25747
25748 2006-08-08  Eric Blake  <ebb9@byu.net>
25749
25750         * lib/verror.h, lib/verror.c: New files.
25751
25752 2006-08-08  Eric Blake  <ebb9@byu.net>
25753
25754         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
25755         verror_at_line output complies with GNU Coding Standards even when
25756         file is NULL.
25757
25758 2006-08-07  Bruno Haible  <bruno@clisp.org>
25759
25760         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
25761         versions of AIX.
25762         Reported by Ralf Wildenhues.
25763
25764 2006-08-07  Bruno Haible  <bruno@clisp.org>
25765
25766         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
25767         in an AC_DEFUN. Needed so that the autoconf snippets can use
25768         AC_REQUIRE.
25769
25770 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25771
25772         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
25773         Initialize pkgdata_DATA.
25774         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
25775         overriding it.
25776
25777 2006-08-06  Eric Blake  <ebb9@byu.net>
25778
25779         * lib/error.h: Fold in some upstream changes from glibc.
25780         * lib/error.c: Likewise.
25781
25782 2006-08-04  Bruno Haible  <bruno@clisp.org>
25783
25784         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
25785         Make the mostlyclean-local rule depend on mostlyclean-generic.
25786         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
25787
25788 2006-07-31  Bruno Haible  <bruno@clisp.org>
25789
25790         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
25791         <stdlib.h>, <string.h>.
25792
25793 2006-07-30  Bruno Haible  <bruno@clisp.org>
25794
25795         * modules/readlink (License): Change to LGPL.
25796
25797 2006-07-30  Bruno Haible  <bruno@clisp.org>
25798
25799         * modules/javaversion (Makefile.am): Distribute javaversion.java and
25800         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
25801         set PKGDATADIR to point to it.
25802
25803 2006-07-30  Bruno Haible  <bruno@clisp.org>
25804
25805         * modules/csharpexec (configure.ac): Comment out macro invocation.
25806         * modules/javaexec (configure.ac): Likewise.
25807         * modules/javacomp-script (configure.ac): Likewise.
25808
25809         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
25810
25811 2006-07-30  Bruno Haible  <bruno@clisp.org>
25812
25813         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
25814         linked-list.
25815
25816 2006-07-30  Bruno Haible  <bruno@clisp.org>
25817
25818         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
25819
25820 2006-07-30  Bruno Haible  <bruno@clisp.org>
25821
25822         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
25823         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
25824         get removed.
25825
25826 2006-07-29  Bruno Haible  <bruno@clisp.org>
25827
25828         Make it possible for gnulib-tool to work with locally modified or
25829         augmented gnulib repositories.
25830         * gnulib-tool (func_usage): Document --local-dir option.
25831         (local_gnulib_dir): New variable.
25832         Handle --local-dir option.
25833         (func_lookup_file): New function.
25834         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
25835         (func_get_description, func_get_filelist, func_get_description,
25836         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
25837         func_get_automake_snippet, func_get_include_directive,
25838         func_get_license, func_get_maintainer): Use func_lookup_file.
25839         (func_import, func_create_testdir): Use func_lookup_file.
25840
25841 2006-07-29  Bruno Haible  <bruno@clisp.org>
25842
25843         * modules/setenv (Depends-on): Add unistd.
25844
25845 2006-07-29  Bruno Haible  <bruno@clisp.org>
25846
25847         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
25848
25849 2006-07-29  Bruno Haible  <bruno@clisp.org>
25850
25851         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
25852
25853 2006-07-29  Bruno Haible  <bruno@clisp.org>
25854
25855         * gnulib-tool (import, update): If there is no Makefile.am, look at
25856         aclocal.m4, instead of bailing out.
25857
25858 2006-07-29  Bruno Haible  <bruno@clisp.org>
25859
25860         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
25861         Categorize the options by when they are useful.
25862
25863 2006-07-29  Bruno Haible  <bruno@clisp.org>
25864
25865         * gnulib-tool (func_usage): Document option --no-libtool.
25866         Handle option --no-libtool.
25867         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
25868         for changed semantics of $libtool variable.
25869         (func_import): Likewise. If libtool is not used, show this through
25870         an option --no-libtool.
25871         (func_create_testdir): Update.
25872
25873 2006-07-29  Bruno Haible  <bruno@clisp.org>
25874
25875         * gnulib-tool (func_import): Extend error message about missing
25876         --doc-base.
25877
25878 2006-07-29  Bruno Haible  <bruno@clisp.org>
25879
25880         * gnulib-tool (func_import): Don't create the $docbase directory if
25881         there is no file to store there.
25882
25883 2006-07-29  Bruno Haible  <bruno@clisp.org>
25884
25885         * gnulib-tool (autoconf_minversion): If a --dir option is given and
25886         relevant, look for configure.ac there, not in the current directory.
25887         Also use a simple search for AC_PREREQ, not "autoconf --trace".
25888
25889 2006-07-29  Bruno Haible  <bruno@clisp.org>
25890
25891         * gnulib-tool (SORT): New variable.
25892         (func_usage): Undocument --assume-autoconf option.
25893         Remove --assume-autoconf option handling.
25894         (autoconf_minversion): Determine from the contents of configure.ac.
25895         (func_import): Remove autoconf_minversion handling.
25896         Suggested by Eric Blake.
25897
25898 2006-07-29  Bruno Haible  <bruno@clisp.org>
25899
25900         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
25901
25902 2006-07-29  Bruno Haible  <bruno@clisp.org>
25903
25904         * config/srclist.txt (*setenv.[ch]): Remove rules.
25905
25906 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25907
25908         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
25909
25910 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25911
25912         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
25913         arpa/inet.h.
25914
25915 2006-07-28  Simon Josefsson  <jas@extundo.com>
25916
25917         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
25918         * modules/inet_pton (Depends-on): Likewise.
25919
25920 2006-07-28  Simon Josefsson  <jas@extundo.com>
25921
25922         * m4/netinet_in_h.m4: New file.
25923
25924 2006-07-28  Simon Josefsson  <jas@extundo.com>
25925
25926         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
25927         #include's.
25928
25929 2006-07-28  Simon Josefsson  <jas@extundo.com>
25930
25931         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
25932         #include's.
25933
25934 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
25935
25936         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
25937         setgid on directories only if they set these bits.
25938         * lib/modechange.h: Remove obsolete comment about masks.
25939
25940 2006-07-28  Eric Blake  <ebb9@byu.net>
25941
25942         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
25943         macro expansion.
25944
25945 2006-07-28  Bruno Haible  <bruno@clisp.org>
25946
25947         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
25948
25949 2006-07-28  Bruno Haible  <bruno@clisp.org>
25950
25951         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
25952
25953 2006-07-28  Bruno Haible  <bruno@clisp.org>
25954
25955         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
25956         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
25957         Define fallbacks.
25958         Avoids link error on FreeBSD 4.x.
25959         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
25960
25961         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
25962         encoding.
25963         * lib/mbswidth.c (iswcntrl): Likewise.
25964
25965 2006-07-27  Bruno Haible  <bruno@clisp.org>
25966
25967         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
25968         test.
25969
25970 2006-07-27  Bruno Haible  <bruno@clisp.org>
25971
25972         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
25973         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
25974         defined.
25975
25976 2006-07-26  Eric Blake  <ebb9@byu.net>
25977
25978         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
25979
25980 2006-07-26  Eric Blake  <ebb9@byu.net>
25981
25982         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
25983         like mingw that lack mkstemp.
25984         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
25985         avoid compilation warning on mingw.
25986
25987 2006-07-26  Bruno Haible  <bruno@clisp.org>
25988
25989         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
25990         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
25991         INT_FAST*_MIN, INTPTR_MIN.
25992
25993 2006-07-25  Bruno Haible  <bruno@clisp.org>
25994
25995         * modules/version-etc (Depends-on): Add stdarg.
25996
25997 2006-07-25  Bruno Haible  <bruno@clisp.org>
25998
25999         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
26000         complex commands.
26001
26002 2006-07-25  Bruno Haible  <bruno@clisp.org>
26003
26004         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
26005         defined in <stdarg.h> or config.h.
26006
26007 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
26008
26009         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
26010         (gl_STDIO_SAFER): Remove.
26011
26012 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
26013
26014         * MODULES.html.sh (File stream based Input/Output):
26015         Add fopen-safer, tmpfile-safer; remove stdio-safer.
26016         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
26017         * modules/fopen-safer, modules/tmpfile-safer: New files.
26018         * modules/stdio-safer: Remove.
26019
26020 2006-07-24  Bruno Haible  <bruno@clisp.org>
26021
26022         * modules/tmpdir: New file.
26023         * MODULES.html.sh (File system functions): Add it.
26024
26025 2006-07-24  Bruno Haible  <bruno@clisp.org>
26026
26027         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
26028         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
26029
26030 2006-07-24  Bruno Haible  <bruno@clisp.org>
26031
26032         * modules/clean-temp: New file.
26033
26034 2006-07-24  Bruno Haible  <bruno@clisp.org>
26035
26036         * m4/tmpdir.m4: New file, from GNU gettext.
26037
26038 2006-07-24  Bruno Haible  <bruno@clisp.org>
26039
26040         * lib/tmpdir.h: New file, from GNU gettext.
26041         * lib/tmpdir.c: New file, from GNU gettext.
26042
26043 2006-07-24  Bruno Haible  <bruno@clisp.org>
26044
26045         * lib/clean-temp.h: New file, from GNU gettext.
26046         * lib/clean-temp.c: New file, from GNU gettext.
26047
26048 2006-07-23  Eric Blake  <ebb9@byu.net>
26049
26050         * modules/stdio-safer (Files): Add tmpfile-safer.c.
26051         (Depends-on): Add binary-io.
26052
26053 2006-07-23  Eric Blake  <ebb9@byu.net>
26054
26055         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
26056
26057 2006-07-23  Eric Blake  <ebb9@byu.net>
26058
26059         * lib/tmpfile-safer.c: New file.
26060         * lib/stdio-safer.h (fopen_safer): Add prototype.
26061         * lib/stdio--.h (tmpfile): Make safer.
26062
26063 2006-07-23  Bruno Haible  <bruno@clisp.org>
26064
26065         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
26066         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
26067         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
26068         gl_linked_remove_at): Use it.
26069
26070 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26071         and Simon Josefsson <jas@extundo.com>
26072
26073         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
26074
26075         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
26076
26077 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
26078
26079         * modules/close-stream: New file.
26080         * modules/closeout (Description): Make it clear that it exits
26081         with a diagnostic on error.
26082         (Depends-on): Add close-stream.  Remove fpending, stdbool.
26083         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
26084
26085 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
26086
26087         * m4/close-stream.m4: New file.
26088
26089 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
26090
26091         * lib/close-stream.c, lib/close-stream.h: New files.
26092
26093 2006-07-22  Bruno Haible  <bruno@clisp.org>
26094
26095         Merge from GNU gettext 0.15.
26096
26097         2006-05-01  Bruno Haible  <bruno@clisp.org>
26098
26099                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
26100
26101         2006-07-22  Bruno Haible  <bruno@clisp.org>
26102
26103                 * modules/javaversion: New file.
26104                 * MODULES.html.sh (Java): Add javaversion.
26105
26106         2006-03-12  Bruno Haible  <bruno@clisp.org>
26107
26108                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
26109
26110         2005-12-04  Bruno Haible  <bruno@clisp.org>
26111
26112                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
26113                 (untested).
26114
26115         2006-06-21  Bruno Haible  <bruno@clisp.org>
26116
26117                 Avoid warnings from recent versions of mcs.
26118                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
26119                 -o, -L, -r any more. Use options documented since mcs-1.0
26120                 instead. Similarly for -g.
26121
26122         2005-12-04  Bruno Haible  <bruno@clisp.org>
26123
26124                 * build-aux/csharpcomp.sh.in: Suffix for resources is
26125                 .resources, not .resource.
26126
26127         2005-07-09  Bruno Haible  <bruno@clisp.org>
26128
26129                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
26130                 add a .dll suffix.
26131                 Reported by Mark Junker <mjscod@gmx.de>.
26132
26133         2006-07-22  Bruno Haible  <bruno@clisp.org>
26134
26135                 * modules/gettext: Upgrade to gettext-0.15.
26136                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
26137                 m4/visibility.m4.
26138                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
26139
26140 2006-07-22  Bruno Haible  <bruno@clisp.org>
26141
26142         Merge from GNU gettext 0.15.
26143
26144         2006-03-25  Bruno Haible  <bruno@clisp.org>
26145
26146                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
26147
26148         2006-07-21  Bruno Haible  <bruno@clisp.org>
26149
26150                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
26151                 "1.1".
26152
26153         2006-05-09  Bruno Haible  <bruno@clisp.org>
26154
26155                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
26156                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
26157                 for the conftestver execution.
26158
26159         2006-05-01  Bruno Haible  <bruno@clisp.org>
26160
26161                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
26162                 optional target-version argument. Verify that the compiler
26163                 groks source of the specified source-version, or add -source
26164                 option as necessary. Verify that the compiler produces
26165                 bytecode in the specified target-version, or add -target and
26166                 -source options as necessary. Make the result of the test
26167                 available as variable CONF_JAVAC. Also log error output in
26168                 config.log.
26169
26170         2006-03-11  Bruno Haible  <bruno@clisp.org>
26171
26172                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
26173
26174         2006-05-09  Bruno Haible  <bruno@clisp.org>
26175
26176                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
26177                 CLASSPATH_SEPARATOR to a semicolon.
26178
26179         2006-03-12  Bruno Haible  <bruno@clisp.org>
26180
26181                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
26182                 available as variable CONF_JAVA, for subsequent autoconf
26183                 tests. Also log error output in config.log.
26184
26185         2006-07-19  Bruno Haible  <bruno@clisp.org>
26186
26187                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
26188                 that getline works on glibc2 systems. Needed to avoid trouble
26189                 in relocatable.c.
26190                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
26191
26192         2005-12-04  Bruno Haible  <bruno@clisp.org>
26193
26194                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
26195                 launcher (untested).
26196
26197         2005-12-04  Bruno Haible  <bruno@clisp.org>
26198
26199                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
26200
26201         2006-07-22  Bruno Haible  <bruno@clisp.org>
26202
26203                 * gettext.m4: Update from GNU gettext-0.15.
26204                 * nls.m4: Likewise.
26205                 * po.m4: Likewise.
26206                 * inttypes-pri.m4: Likewise.
26207                 * inttypes-h.m4: Renamed from inttypes.m4.
26208                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
26209
26210 2006-07-22  Bruno Haible  <bruno@clisp.org>
26211
26212         Merge from GNU gettext 0.15.
26213
26214         2005-07-05  Bruno Haible  <bruno@clisp.org>
26215
26216                 * printf-args.c (printf_fetchargs): Work around broken
26217                 definition of wint_t on mingw.
26218
26219         2005-02-12  Bruno Haible  <bruno@clisp.org>
26220
26221                 * xallocsa.h: Add extern "C" for C++.
26222
26223         2006-05-17  Bruno Haible  <bruno@clisp.org>
26224
26225                 Cygwin portability.
26226                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
26227
26228         2006-04-30  Bruno Haible  <bruno@clisp.org>
26229
26230                 * progreloc.c: Include <mach-o/dyld.h> if available.
26231                 (find_executable): Use _NSGetExecutablePath when possible.
26232
26233         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
26234
26235                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
26236                 function.
26237
26238         2005-12-29  Bruno Haible  <bruno@clisp.org>
26239
26240                 * progreloc.c (set_program_name_and_installdir): Fix
26241                 compilation error.
26242
26243         2005-12-04  Bruno Haible  <bruno@clisp.org>
26244
26245                 Cygwin portability.
26246                 * progreloc.c: Include <windows.h> also on Cygwin.
26247                 (find_executable): Add support for Cygwin.
26248                 (set_program_name_and_installdir): Handle also platforms with
26249                 nonempty EXEEXT.
26250
26251         2006-07-11  Bruno Haible  <bruno@clisp.org>
26252
26253                 * javacomp.c: Fix a comment.
26254                 Reported by Jim Meyering.
26255
26256         2006-04-30  Bruno Haible  <bruno@clisp.org>
26257
26258                 * javacomp.h (compile_java_class): Add source_version,
26259                 target_version arguments.
26260                 * javacomp.c: Rewritten to choose only a compiler that
26261                 respects the specified source_version and target_version.
26262
26263         2006-06-27  Bruno Haible  <bruno@clisp.org>
26264
26265                 Assume correct S_ISDIR macro.
26266                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
26267
26268         2006-07-22  Bruno Haible  <bruno@clisp.org>
26269
26270                 * javaversion.h: New file, from GNU gettext.
26271                 * javaversion.c: New file, from GNU gettext.
26272                 * javaversion.java: New file, from GNU gettext.
26273                 * javaversion.class: New file, from GNU gettext.
26274
26275         2006-05-17  Bruno Haible  <bruno@clisp.org>
26276
26277                 Cygwin portability.
26278                 * javaexec.c (execute_java_class): Test for jview program
26279                 also on Cygwin.
26280
26281         2006-04-09  Bruno Haible  <bruno@clisp.org>
26282
26283                 * fatal-signal.c: Don't include string.h.
26284                 (at_fatal_signal): Use a copying loop instead of memcpy.
26285
26286         2005-12-04  Bruno Haible  <bruno@clisp.org>
26287
26288                 * csharpexec.c: Add support for 'clix' launcher (untested).
26289                 (execute_csharp_using_sscli): New function.
26290                 (execute_csharp_program): Call it.
26291
26292         2006-06-21  Bruno Haible  <bruno@clisp.org>
26293
26294                 Avoid warnings from recent versions of mcs.
26295                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
26296                 -o, -L, -r any more. Use options documented since mcs-1.0
26297                 instead. Similarly for -g.
26298
26299         2005-07-09  Bruno Haible  <bruno@clisp.org>
26300
26301                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
26302                 add a .dll suffix.
26303                 Reported by Mark Junker <mjscod@gmx.de>.
26304
26305         2006-06-17  Bruno Haible  <bruno@clisp.org>
26306
26307                 * config.charset: Update for NetBSD 3.0.
26308
26309         2006-05-17  Bruno Haible  <bruno@clisp.org>
26310
26311                 Cygwin portability.
26312                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
26313
26314         2006-05-16  Bruno Haible  <bruno@clisp.org>
26315
26316                 * localcharset.c [CYGWIN]: Include <windows.h>.
26317                 (get_charset_aliases): For Cygwin, return the same CPxxx
26318                 aliases list as under WIN32.
26319                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
26320                 the environment variables. Fall back to GetACP().
26321
26322         2006-04-05  Bruno Haible  <bruno@clisp.org>
26323
26324                 * config.charset: Update Juan Manuel Guerrero's address.
26325
26326         2005-02-12  Bruno Haible  <bruno@clisp.org>
26327
26328                 * allocsa.h: Add extern "C" for C++.
26329
26330         2005-02-10  Bruno Haible  <bruno@clisp.org>
26331
26332                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
26333                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
26334
26335         2006-07-22  Bruno Haible  <bruno@clisp.org>
26336
26337                 * gettext.h: Update to GNU gettext-0.15.
26338
26339 2006-07-22  Bruno Haible  <bruno@clisp.org>
26340
26341         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
26342         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
26343         lib-prefix.m4, longdouble.m4, ssize_t.m4.
26344
26345 2006-07-21  Eric Blake  <ebb9@byu.net>
26346
26347         * modules/stdlib-safer: New file.
26348         * MODULES.html.sh (File stream based Input/Output): Add
26349         stdlib-safer.
26350
26351 2006-07-21  Eric Blake  <ebb9@byu.net>
26352
26353         * lib/stdlib-safer.h: New file from coreutils, required by
26354         stdlib--.h.
26355
26356 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
26357
26358         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
26359
26360 2006-07-20  Bruno Haible  <bruno@clisp.org>
26361
26362         * gnulib-tool: Recognize new option --assume-autoconf.
26363         (autoconf_minversion): New variable.
26364         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
26365
26366 2006-07-20  Bruno Haible  <bruno@clisp.org>
26367
26368         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
26369
26370 2006-07-19  Derek R. Price  <derek@ximbiot.com>
26371
26372         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
26373         Reindent and repaginate.
26374
26375 2006-07-19  Derek Price  <derek@ximbiot.com>
26376
26377         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
26378         Correct grammar.
26379
26380 2006-07-17  Bruno Haible  <bruno@clisp.org>
26381
26382         * modules/list: New file.
26383         * modules/array-list: New file.
26384         * modules/carray-list, modules/carray-list-tests: New files.
26385         * modules/linked-list, modules/linked-list-tests: New files.
26386         * modules/avltree-list, modules/avltree-list-tests: New files.
26387         * modules/rbtree-list, modules/rbtree-list-tests: New files.
26388         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
26389         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
26390         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
26391         * modules/oset: New file.
26392         * modules/array-oset: New file.
26393         * modules/avltree-oset, modules/avltree-oset-tests: New files.
26394         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
26395         * tests/test-carray_list.c: New file.
26396         * tests/test-linked_list.c: New file.
26397         * tests/test-avltree_list.c: New file.
26398         * tests/test-rbtree_list.c: New file.
26399         * tests/test-linkedhash_list.c: New file.
26400         * tests/test-avltreehash_list.c: New file.
26401         * tests/test-rbtreehash_list.c: New file.
26402         * tests/test-avltree_oset.c: New file.
26403         * tests/test-rbtree_oset.c: New file.
26404         * MODULES.html.sh (Container data structures): New section.
26405
26406 2006-07-17  Bruno Haible  <bruno@clisp.org>
26407
26408         * m4/gl_list.m4: New file.
26409
26410 2006-07-17  Bruno Haible  <bruno@clisp.org>
26411
26412         * lib/gl_list.h: New file.
26413         * lib/gl_list.c: New file.
26414         * lib/gl_array_list.h: New file.
26415         * lib/gl_array_list.c: New file.
26416         * lib/gl_carray_list.h: New file.
26417         * lib/gl_carray_list.c: New file.
26418         * lib/gl_linked_list.h: New file.
26419         * lib/gl_linked_list.c: New file.
26420         * lib/gl_anylinked_list1.h: New file.
26421         * lib/gl_anylinked_list2.h: New file.
26422         * lib/gl_avltree_list.h: New file.
26423         * lib/gl_avltree_list.c: New file.
26424         * lib/gl_anyavltree_list1.h: New file.
26425         * lib/gl_anyavltree_list2.h: New file.
26426         * lib/gl_rbtree_list.h: New file.
26427         * lib/gl_rbtree_list.c: New file.
26428         * lib/gl_anyrbtree_list1.h: New file.
26429         * lib/gl_anyrbtree_list2.h: New file.
26430         * lib/gl_anytree_list1.h: New file.
26431         * lib/gl_anytree_list2.h: New file.
26432         * lib/gl_linkedhash_list.h: New file.
26433         * lib/gl_linkedhash_list.c: New file.
26434         * lib/gl_anyhash_list1.h: New file.
26435         * lib/gl_anyhash_list2.h: New file.
26436         * lib/gl_avltreehash_list.h: New file.
26437         * lib/gl_avltreehash_list.c: New file.
26438         * lib/gl_rbtreehash_list.h: New file.
26439         * lib/gl_rbtreehash_list.c: New file.
26440         * lib/gl_anytreehash_list1.h: New file.
26441         * lib/gl_anytreehash_list2.h: New file.
26442
26443         * lib/gl_oset.h: New file.
26444         * lib/gl_oset.c: New file.
26445         * lib/gl_array_oset.h: New file.
26446         * lib/gl_array_oset.c: New file.
26447         * lib/gl_avltree_oset.h: New file.
26448         * lib/gl_avltree_oset.c: New file.
26449         * lib/gl_rbtree_oset.h: New file.
26450         * lib/gl_rbtree_oset.c: New file.
26451         * lib/gl_anytree_oset.h: New file.
26452
26453 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
26454
26455         * m4/mkancesdirs.m4: New file.
26456         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
26457         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
26458         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
26459         it.
26460
26461 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
26462
26463         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
26464         * lib/mkancesdirs.h: New files.
26465         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
26466         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
26467         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
26468         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
26469         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
26470         callers changed.  Revamp internals significantly, by not
26471         attempting to create directories that are temporarily more
26472         permissive than the final results.  Do not attempt to use
26473         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
26474         This removes some race conditions, fixes some bugs, and simplifies
26475         things.  Use new dirchownmod function to do owner and mode changes.
26476         * lib/mkdir-p.h: Likewise.
26477         * lib/modechange.c (octal_to_mode): New function.
26478         (struct mode_change): New member mentioned.
26479         (make_node_op_equals): New arg mentioned.  All callers changed.
26480         (mode_compile): Keep track of which mode bits the user has explicitly
26481         mentioned.
26482         (mode_adjust): New arg DIR, so that we implement the X op correctly.
26483         New arg PMODE_BITS, to keep track of which mode bits the user
26484         mentioned; it treats S_ISUID and S_ISGID speciall.
26485         All callers changed.
26486         * lib/modechange.h: Likewise.
26487
26488 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
26489
26490         * MODULES.html.sh: Add mkancestors.
26491         * modules/mkancesdirs: New module.
26492         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
26493         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
26494         The chdir-safer and afs files are now orphans; I'll remove them
26495         unless someone speaks up.
26496         Add lib/dirchownmod.c, lib/dirchownmod.h.
26497         (Depends-on): Remove alloca, chown, save-cwd, dirname.
26498         Add lchown, mkancesdirs.
26499         (Maintainer): Add self.
26500
26501 2006-07-15  Karl Berry  <karl@gnu.org>
26502
26503         * gnulib-tool: help message wording/arrangement.
26504
26505 2006-07-14  Simon Josefsson  <jas@extundo.com>
26506
26507         * doc/gnulib.texi (Libtool and Windows): New section.
26508
26509 2006-07-12  Simon Josefsson  <jas@extundo.com>
26510
26511         * modules/gendocs (License): Fix license, approved by Karl.
26512
26513 2006-07-12  Eric Blake  <ebb9@byu.net>
26514
26515         * MODULES.html.sh: Add gendocs.
26516
26517 2006-07-11  Eric Blake  <ebb9@byu.net>
26518
26519         * modules/fdl: New module, to install doc/fdl.texi.
26520         * MODULES.html.sh: Add new section for documentation modules.
26521         * gnulib-tool: Avoid space-tab.
26522         (--doc-base): New option, to manage files from doc.
26523
26524 2006-07-11  Eric Blake  <ebb9@byu.net>
26525
26526         * m4/absolute-header.m4: Fix comments to match recent change.
26527
26528 2006-07-11  Eric Blake  <ebb9@byu.net>
26529
26530         * gnulib-tool: List --doc-base before --tests-base.
26531
26532 2006-07-11  Derek R. Price  <derek@ximbiot.com>
26533
26534         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
26535
26536 2006-07-11  Bruno Haible  <bruno@clisp.org>
26537
26538         * README: Mention where to put documentation.
26539
26540 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26541
26542         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
26543
26544 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
26545
26546         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
26547         to stdint.m4.
26548
26549 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
26550
26551         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
26552         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
26553         "no/such/file/stdint.h" when there is no such file, so that
26554         the resulting C code can be parsed by dodgy compilers.
26555         Problems reported by Bob Proulx.
26556
26557 2006-07-10  Derek R. Price  <derek@ximbiot.com>
26558
26559         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
26560         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
26561         macros into the GNU _D_EXACT_NAMLEN.
26562         * lib/savedir.c:  Likewise.
26563         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
26564
26565 2006-07-10  Derek R. Price  <derek@ximbiot.com>
26566         and Paul Eggert  <eggert@cs.ucla.edu>
26567
26568         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
26569         * m4/savedir.m4:
26570         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
26571         macros into the GNU _D_EXACT_NAMLEN.
26572
26573 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
26574
26575         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
26576         around the absolute name, to work around a problem with the HP-UX
26577         11.23 native C compiler, reported by Bob Proulx.
26578
26579 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
26580
26581         * doc/maintain.texi, make-stds.texi: Sync from
26582         <http://savannah.gnu.org/projects/gnustandards>.
26583
26584 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
26585
26586         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
26587
26588 2006-07-09  Jim Meyering  <jim@meyering.net>
26589
26590         * m4/glob.m4: Remove a doubled word in a comment.
26591
26592 2006-07-09  Jim Meyering  <jim@meyering.net>
26593
26594         * lib/argp-pv.c: Remove a doubled word in a comment.
26595         * lib/check-version.c (check_version): Likewise.
26596         * lib/javacomp.c (compile_java_class): Likewise.
26597
26598 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
26599
26600         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
26601         for the benefit of people using Autoconf 2.60.  If you want to
26602         support older Autoconf versions you can copy m4/onceonly_2_57.m4
26603         (or m4/onceonly.m4, if pre-2.57) manually.
26604
26605 2006-07-08  Jim Meyering  <jim@meyering.net>
26606
26607         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
26608         comment.
26609         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
26610         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
26611         comment.
26612
26613 2006-07-08  Jim Meyering  <jim@meyering.net>
26614
26615         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
26616
26617 2006-07-07  Simon Josefsson  <jas@extundo.com>
26618
26619         * tests/test-crc.c: Change expected crc value, the test vector
26620         were probably computed using the old broken crc.c?
26621
26622 2006-07-06  Simon Josefsson  <jas@extundo.com>
26623
26624         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
26625         now the canonical place for the M4 file).
26626
26627         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
26628         from the sys_socket dependency now.
26629
26630         * modules/inet_pton (Files): Ditto.
26631
26632         * modules/inet_ntop (Files): Ditto.
26633
26634 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
26635
26636         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
26637         not gl_PREREQ_GETUSERSHELL.
26638
26639 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26640
26641         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
26642         with only one argument, for Autoconf 2.60.
26643         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
26644         expand to nothing, so add a shell command to avoid syntax error.
26645         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
26646
26647 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26648
26649         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
26650
26651 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
26652
26653         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
26654         no longer needed.  Check for isblank decl.
26655         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
26656         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
26657         of existence.
26658
26659 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
26660
26661         * lib/getloadavg.c: Use __VMS, not VMS.
26662         * lib/getopt.c: Likewise.
26663         * lib/getpagesize.h: Likewise.
26664         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
26665         and probably does not work.
26666
26667 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
26668
26669         * lib/.cppi-disable: Add wcwidth.
26670         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
26671         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
26672         (ISGRAPH): Remove.  All uses changed to isgraph.
26673         (FOLD) [!defined _LIBC]: Remove special case.
26674         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
26675         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
26676         HAVE_ISBLANK.
26677         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
26678         case.
26679
26680 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
26681
26682         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
26683         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
26684         brackets.  Other minor changes to suppress some compiler
26685         warnings.
26686
26687 2006-07-06  Derek R. Price  <derek@ximbiot.com>
26688         and Paul Eggert  <eggert@cs.ucla.edu>
26689
26690         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
26691         of invoking obsolescent AC_HEADER_DIRENT macro.
26692         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
26693         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
26694         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
26695         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
26696         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
26697         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
26698         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
26699         * m4/readdir.m4: Remove; no longer needed.
26700
26701 2006-07-06  Derek R. Price  <derek@ximbiot.com>
26702         and Paul Eggert  <eggert@cs.ucla.edu>
26703
26704         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
26705         Don't worry about this obsolete case any more.
26706         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
26707         directories.
26708         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
26709         worry about this obsolete case any more.
26710         * lib/fts.c: Likewise.
26711         * lib/getcwd.c: Likewise.
26712         * lib/glob.h: Likewise.
26713         * lib/savedir.c: Likewise.
26714
26715 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
26716
26717         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
26718         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
26719         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
26720         needed.
26721         All uses removed.
26722         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
26723         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
26724         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
26725         needed.
26726         * m4/getdate.m4 (gl_GETDATE): Likewise.
26727         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
26728         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
26729         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
26730         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
26731         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
26732         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
26733         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
26734         needed.
26735
26736 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
26737
26738         * lib/memcasecmp.c: Include <limits.h>.
26739         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
26740         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
26741         Don't assume isdigit succeeds only on '0' through '9'.
26742
26743 2006-07-05  Eric Blake  <ebb9@byu.net>
26744
26745         * modules/getaddrinfo (Depends-on): Add snprintf.
26746
26747 2006-07-05  Eric Blake  <ebb9@byu.net>
26748
26749         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
26750         to avoid 'header present but could not be compiled' on cygwin.
26751
26752 2006-07-05  Eric Blake  <ebb9@byu.net>
26753
26754         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
26755         missing from netdb.h.
26756         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
26757
26758 2006-07-05  Derek R. Price  <derek@ximbiot.com>
26759
26760         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
26761         no longer needed.
26762         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
26763         * m4/getdate.m4 (gl_GETDATE): Likewise.
26764         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
26765         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
26766         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
26767         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
26768         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
26769
26770 2006-07-05  Derek R. Price  <derek@ximbiot.com>
26771
26772         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
26773         All uses of is_space replaced by isspace.
26774         * lib/exit.h: Don't talk about STDC_HEADERS.
26775         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
26776         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
26777         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
26778         replaced by isprint etc.
26779         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
26780         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
26781         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
26782         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
26783         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
26784         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
26785
26786 2006-07-05  Bruno Haible  <bruno@clisp.org>
26787
26788         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
26789         the function exists, before testing against AIX.
26790         Reported by Martin Lambers <marlam@marlam.de>.
26791
26792 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
26793
26794         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
26795         From Mark D. Baushke.
26796
26797 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
26798
26799         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
26800         to the absolute name, not just one, to bypass Sun C 5.8's
26801         "warning: #include of /usr/include/... may be non-portable".
26802
26803 2006-07-04  Eric Blake  <ebb9@byu.net>
26804
26805         * modules/dirname-tests: New test module.
26806         * tests/test-dirname.c: New file, replacing dirname.c
26807         TEST_DIRNAME section that was recently deleted.
26808
26809 2006-07-04  Bruno Haible  <bruno@clisp.org>
26810
26811         Assume ANSI C header files and <ctype.h> functions.
26812         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
26813         (mbsnwidth): Use isprint, iscntrl instead.
26814
26815 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
26816
26817         Merge from coreutils.
26818         * MODULES.html.sh: Add xstrtold.
26819         * modules/xstrtold: New file.
26820         * modules/cycle-check (Files): Add lib/same-inode.h.
26821         * modules/dirname (Files): Add m4/double-slash-root.m4.
26822         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
26823         * modules/mkdir-p (Files): Add lib/same-inode.h.
26824         * modules/same (Files): Add lib/same-inode.h.
26825
26826 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
26827
26828         * m4/absolute-header.m4: Renamed from full-header-path.m4.
26829         This is to keep the terminology clean; POSIX talks about
26830         "absolute pathnames", not "full pathnames", but the GNU
26831         Coding Standards say to use "path" for something else;
26832         so use "absolute" to keep both sides happy.
26833         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
26834         Set gl_absolute_header, not gl_full_header_path.
26835         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
26836         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
26837         All uses changed.
26838
26839         Merge from coreutils.
26840
26841         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
26842
26843         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
26844         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
26845         want to require the building of c-strtod.o.
26846         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
26847         needs -lm directly.
26848         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
26849
26850         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
26851
26852         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
26853         --as-needed option if available.  Problem reported by Albert Chin in
26854         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
26855         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
26856         cc merely issues a bunch of annoying warnings for --as-needed
26857         (this problem was reported by Bob Proulx).  Also, try linking with
26858         -lm to detect a bug in binutils 2.16 (this problem was reported
26859         by Ralf Wildenhues).
26860
26861         2006-06-18  Jim Meyering  <jim@meyering.net>
26862
26863         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
26864         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
26865         macro.
26866         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
26867         also check for glibc-2.4's abort-inducing bug.
26868
26869         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
26870         Low-probability clean-up should be to use rmdir to get rid of
26871         the just-created directory, not unlink.
26872
26873         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
26874         configure fail, and request a bug report to inform us about it.
26875         Add a comment that, barring reports to the contrary, in 2007 we'll
26876         assume ftruncate is universally available.
26877
26878         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
26879
26880         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
26881
26882         2006-03-12  Jim Meyering  <jim@meyering.net>
26883
26884         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
26885         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
26886         * m4/same.m4 (gl_SAME): Likewise.
26887         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
26888
26889         2006-03-11  Eric Blake  <ebb9@byu.net>
26890
26891         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
26892         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
26893         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
26894         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
26895
26896 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
26897
26898         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
26899         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
26900         reported by Mark D. Baushke, one in
26901         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
26902
26903         Merge from coreutils.
26904
26905         * lib/.cppi-disable: Add stdint_.h.
26906         * lib/.cvsignore: Add stdint.h.
26907
26908         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
26909
26910         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
26911         both double and long double versions.
26912         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
26913         * lib/xstrtold.c: New file.
26914         * lib/xstrtod.h (xstrtold): New decl.
26915
26916         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
26917
26918         * lib/filemode.c (setst): Remove.
26919         (strmode): Rewrite to avoid setst.  This makes the code shorter,
26920         (arguably) clearer, and the generated code is a bit smaller on my
26921         Debian GNU/Linux stable x86 host.
26922
26923         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
26924
26925         * lib/filemode.c: Include "filemode.h" first, to test the interface.
26926         Assume that filemode.h includes sys/types.h and sys/stat.h.
26927         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
26928         (ftypelet): Reorder to put common cases first, for efficiency.
26929         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
26930         to do 'M'.
26931         (strmode): Renamed from mode_string, and now stores 12 bytes instead
26932         of 10, for compatibility with FreeBSD.  All callers changed.
26933         (filemodestring): Now stores 12 bytes instead of 10, and sets file
26934         types that can't be deduced solely from st_mode.  First arg is now a
26935         const pointer.
26936         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
26937         (strmode): Renamed from mode_string.
26938         (filemodestring): New decl.
26939         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
26940         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
26941         needed.
26942         (S_ISPORT, S_ISWHT): New macros, if not already defined.
26943
26944         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
26945
26946         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
26947         fsusage.h now does that.  Include fsusage.h first, to test interface.
26948         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
26949         at most one method (the old code could have generated decls that
26950         didn't conform to C89, not that this was ever exercised).
26951         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
26952
26953         2006-03-19  Jim Meyering  <jim@meyering.net>
26954
26955         Work even in a chroot where d_ino values for entries in "/"
26956         don't match the stat.st_ino values for the same names.
26957         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
26958         number, iterate through all entries again, using lstat instead.
26959         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
26960         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
26961
26962         * lib/getcwd.c (__getcwd): Clarify a comment.
26963         Use memcpy in place of a call to strcpy.
26964
26965         2006-03-12  Jim Meyering  <jim@meyering.net>
26966
26967         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
26968         matches that of the current directory (which we're about to chdir ".."
26969         out of), then save the dev-ino of the parent, instead.
26970
26971         * lib/same-inode.h (SAME_INODE): New file/macro.
26972         * lib/chdir-safer.c (SAME_INODE): Remove definition.
26973         Include "same-inode.h", instead.
26974         * lib/same.c: Likewise.
26975         * lib/cycle-check.h: Include "same-inode.h".
26976         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
26977         * lib/cycle-check.c (SAME_INODE): Remove definition.
26978         * lib/root-dev-ino.h: Include "same-inode.h".
26979
26980         2006-03-11  Eric Blake  <ebb9@byu.net>
26981
26982         * lib/same.c (same_name): s/base_name/last_component/
26983         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
26984         * lib/filenamecat.c (file_name_concat): Likewise.
26985
26986         2006-03-11  Eric Blake  <ebb9@byu.net>,
26987                     Paul Eggert  <eggert@cs.ucla.edu>
26988
26989         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
26990         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
26991         drive prefix.
26992         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
26993         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
26994         (last_component): New method.
26995         * lib/dirname.c (dir_len): Determine when drive letters need a
26996         subsequent slash.  Preserve // when it is special.
26997         (dir_name): Don't append dot when drive letter is absolute.
26998         [TEST_DIRNAME]: Move into a full-blown gnulib test.
26999         * lib/basename.c (base_name): New semantics - malloc the result.
27000         Preserve // when it is special.  Preserve relative files that look
27001         like drive letters.
27002         (base_len): Preserve // when it is special.
27003         (last_component): New method, similar to old base_name semantics.
27004         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
27005         base_name.  Strip redundant slashes from ///.
27006
27007 2006-07-03  Jim Meyering  <jim@meyering.net>
27008
27009         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
27010         macro is used before the first cycle_check call.
27011
27012 2006-07-03  Eric Blake  <ebb9@byu.net>
27013
27014         * modules/dirname (Depends-on): Add xstrndup.
27015
27016 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
27017
27018         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
27019         test cases, so that config.log is a bit easier to follow.
27020
27021 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
27022
27023         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
27024         both are 64 bits, since this seems to be the tradition, and this
27025         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
27026         we ever run into a host that prefers long long to long in this
27027         case, we'll need another configure-time test.  Problem reported by
27028         Jim Meyering.
27029
27030 2006-07-02  Eric Blake  <ebb9@byu.net>
27031
27032         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
27033
27034 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
27035
27036         * modules/inttypes (Depends-on): No longer depends on stdint.
27037         * modules/stdint (Description): Say more about assumptions.
27038         Say that the fast types might differ.  Say macros are used.
27039         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
27040         (Makefile.am): Revise list of substituted symbols to match
27041         new stdint.m4.
27042         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
27043         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
27044         * tests/test-stdint.c (verify_same_types)
27045         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
27046         the code conforms to C99/C89.
27047         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
27048         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
27049
27050 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
27051
27052         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
27053         but fix a bug, by requiring at least 64 bits.
27054         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
27055         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
27056         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
27057         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
27058
27059         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
27060         changes.  Make 2.59 a prerequisite.  Check and substitute for
27061         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
27062         inttypes.h.  Do not use special include files; just use the
27063         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
27064         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
27065         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
27066         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
27067         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
27068         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
27069         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
27070         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
27071         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
27072         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
27073         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
27074         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
27075         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
27076         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
27077         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
27078         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
27079         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
27080         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
27081         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
27082         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
27083         WINT_MAX.  Check for C99 conformance more strictly, by detecting
27084         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
27085         not check for things that C99 does not require, e.g., int8_t.  If
27086         a test isn't needed unless <stdint.h> isn't working, and is
27087         unlikely to be needed for any other reason, then don't do it
27088         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
27089         size_t, since we assume C89 freestanding at least.  Do not check
27090         for sig_atomic_t, wchar_t, or wint_t, since the code now does
27091         the right thing even if the types are not defined.  Instead use:
27092         (gl_STDINT_TYPE_PROPERTIES): New macro.
27093         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
27094         testing whether <sys/types.h> clashes, as Autoconf does this for
27095         us now.  All uses removed.
27096         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
27097         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
27098         (gl_CHECK_TYPE_SAME):
27099         Remove; no longer needed.
27100         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
27101         exists, since we'll return 0 anyway in that case.
27102         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
27103
27104 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
27105
27106         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
27107         possible collision with system files.
27108         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
27109         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
27110         WCHAR_MIN and WCHAR_MAX in this case.
27111         (<stddef.h>): Do not include; no longer needed.
27112         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
27113         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
27114         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
27115         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
27116         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
27117         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
27118         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
27119         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
27120         !defined(__c99))]: Include in this case too, since it's harmless
27121         now.
27122         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
27123         dangerous to do so.
27124         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
27125         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
27126         (_STDINT_MIN, _STDINT_MAX): New macros.
27127         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
27128         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
27129         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
27130         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
27131         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
27132         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
27133         macros, not typedefs; this simplifies things quite a bit.
27134         Use long int for all types narrower than int64_t.
27135         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
27136         Define in terms of long long int or int64_t or long int,
27137         not int64_t or int32_t.  This saves some compile-time testing.
27138         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
27139         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
27140         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
27141         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
27142         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
27143         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
27144         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
27145         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
27146         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
27147         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
27148         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
27149         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
27150         undef any previous version and define our own version, for
27151         simplicity and consistency with the new macros for types.
27152         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
27153         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
27154         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
27155         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
27156         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
27157         @WINT_T_SUFFIX@ to keep things simple here.
27158         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
27159         Simplify by assuming typical 8/16/32/64 host, since we're
27160         already doing that elsewhere anyway.
27161         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
27162         and assume long long int is 64 bits if available.  This
27163         speeds up 'configure'.
27164
27165 2006-07-01  Eric Blake  <ebb9@byu.net>
27166
27167         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
27168         Reported by Andreas Buening.
27169
27170 2006-07-01  Eric Blake  <ebb9@byu.net>
27171
27172         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
27173
27174 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
27175
27176         * lib/getaddrinfo.c: fixed typo
27177
27178 2006-06-29  Jim Meyering  <jim@meyering.net>
27179
27180         * modules/strftime (Maintainer): Add my name, since with the
27181         FPRINTFTIME changes strftime.c has forked from glibc.
27182
27183 2006-06-29  Eric Blake  <ebb9@byu.net>
27184
27185         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
27186
27187 2006-06-29  Eric Blake  <ebb9@byu.net>
27188
27189         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
27190
27191 2006-06-29  Eric Blake  <ebb9@byu.net>
27192
27193         * lib/stat_.h: New file.
27194
27195 2006-06-29  Eric Blake  <ebb9@byu.net>
27196
27197         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
27198         unused static function.
27199
27200 2006-06-29  Eric Blake  <ebb9@byu.net>
27201
27202         * doc/functions.texi (Function Portability): Document missing lstat
27203         on mingw.
27204
27205 2006-06-29  Eric Blake  <ebb9@byu.net>
27206
27207         * MODULES.html.sh: Add sys_stat.
27208         * modules/sys_stat: New module.
27209         * modules/mkstemp (Depends-on): Add sys_stat.
27210
27211 2006-06-29  Derek R. Price  <derek@ximbiot.com>
27212
27213         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
27214
27215 2006-06-29  Derek R. Price  <derek@ximbiot.com>
27216
27217         * m4/c-bs-a.m4: Removed.
27218
27219 2006-06-29  Derek R. Price  <derek@ximbiot.com>
27220
27221         * lib/strftime.c: Assume strftime() exists.
27222
27223 2006-06-29  Derek Price  <derek@ximbiot.com>
27224
27225         * modules/c-bs-a: Removed - \a is C89.
27226         * MODULES.html.sh: Remove c-bs-a.
27227
27228 2006-06-29  Bruno Haible  <bruno@clisp.org>
27229
27230         * modules/wcwidth (License): Change to LGPL.
27231
27232 2006-06-28  Simon Josefsson  <jas@extundo.com>
27233
27234         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
27235         on _WIN32.
27236
27237         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
27238         getnameinfo.
27239
27240 2006-06-28  Simon Josefsson  <jas@extundo.com>
27241
27242         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
27243
27244 2006-06-28  Simon Josefsson  <jas@extundo.com>
27245
27246         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
27247         functions there.  It will succeed on Windows XP, but on Windows
27248         2000 and (presumably) earlier, it will fail, and use the internal
27249         re-implementation.
27250         (use_win32_p): New function.
27251         (getaddrinfo): Use strtoul on servname, to support numeric ports.
27252         Support AI_NUMERICSERV to disable getservbyname.
27253         (getnameinfo): New function, only supports
27254         NI_NUMERICHOST|NI_NUMERICSERV for now.
27255
27256         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
27257         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
27258         getnameinfo.
27259
27260 2006-06-28  Eric Blake  <ebb9@byu.net>
27261
27262         * modules/wcwidth: New file.
27263         * modules/mbchar (Depends-on): Add wcwidth.
27264         * modules/mbswidth (Depends-on): Add wcwidth.
27265         * MODULES.html.sh: Add wcwidth.
27266
27267 2006-06-28  Eric Blake  <ebb9@byu.net>
27268
27269         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
27270         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
27271
27272 2006-06-28  Eric Blake  <ebb9@byu.net>
27273
27274         * lib/xvasprintf.h: Fix comments.
27275
27276 2006-06-28  Eric Blake  <ebb9@byu.net>
27277
27278         * lib/mbchar.h (wcwidth): Include wcwidth.h.
27279         * lib/mbswidth.c (wcwidth): Move from here...
27280         * lib/wcwidth.h: ...to this new file.
27281
27282 2006-06-28  Derek R. Price  <derek@ximbiot.com>
27283
27284         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
27285
27286         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
27287         it's obsolete.
27288         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
27289
27290 2006-06-28  Derek R. Price  <derek@ximbiot.com>
27291
27292         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
27293         Autoconf 2.60 says this stuff was obsolete.
27294
27295 2006-06-28  Bruno Haible  <bruno@clisp.org>
27296
27297         * modules/wcwidth (Files): Add m4/wchar_t.m4.
27298
27299 2006-06-28  Bruno Haible  <bruno@clisp.org>
27300
27301         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
27302         gt_TYPE_WCHAR_T.
27303
27304 2006-06-28  Bruno Haible  <bruno@clisp.org>
27305
27306         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
27307         declaration for wcwidth.
27308         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
27309
27310 2006-06-28  Bruno Haible  <bruno@clisp.org>
27311
27312         * lib/mkdtemp.c [MINGW]: Include <io.h>.
27313         (mkdir): Define using _mkdir.
27314
27315 2006-06-28  Bruno Haible  <bruno@clisp.org>
27316
27317         * lib/getaddrinfo.h: Fix POSIX URL.
27318         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
27319         _WIN32.
27320         (use_win32_p): Make static.
27321         (getaddrinfo): Reject service name if it is empty or does not consist
27322         solely of decimal digits, or if its value is > 65535.
27323         (getnameinfo): Remove useless casts.
27324
27325 2006-06-27  Simon Josefsson  <jas@extundo.com>
27326
27327         * modules/sys_select: New file, suggested by Bruno Haible, Paul
27328         Eggert and Martin Lambers.
27329
27330 2006-06-27  Simon Josefsson  <jas@extundo.com>
27331
27332         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
27333         Eggert and Martin Lambers.
27334
27335 2006-06-27  Bruno Haible  <bruno@clisp.org>
27336
27337         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
27338         result to 0, not to empty.
27339         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
27340
27341 2006-06-27  Bruno Haible  <bruno@clisp.org>
27342
27343         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
27344
27345 2006-06-26  Simon Josefsson  <jas@extundo.com>
27346
27347         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
27348         present.
27349
27350 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
27351
27352         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
27353         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
27354         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
27355
27356 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
27357
27358         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
27359
27360 2006-06-26  Bruno Haible  <bruno@clisp.org>
27361
27362         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
27363
27364 2006-06-26  Bruno Haible  <bruno@clisp.org>
27365
27366         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
27367
27368 2006-06-26  Bruno Haible  <bruno@clisp.org>
27369
27370         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
27371         SGI C compiler in pre-C99 mode.
27372         Suggested by Mark D. Baushke and Larry Jones.
27373
27374 2006-06-26  Bruno Haible  <bruno@clisp.org>
27375
27376         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
27377         WCHAR_MAX.
27378         Reported by Mark D. Baushke and Larry Jones.
27379
27380 2006-06-26  Bruno Haible  <bruno@clisp.org>
27381
27382         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
27383         in pre-C99 mode.
27384         Suggested by Mark D. Baushke and Larry Jones.
27385
27386 2006-06-23  Simon Josefsson  <jas@extundo.com>
27387             Bruno Haible  <bruno@clisp.org>
27388
27389         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
27390         Emit mostlyclean-local rule.
27391         (func_emit_tests_Makefile_am): Likewise.
27392         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
27393
27394 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
27395
27396         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
27397
27398 2006-06-23  Bruno Haible  <bruno@clisp.org>
27399
27400         * tests/test-stdint.c: Update to match ISO C 99 Technical
27401         Corrigendum 1.
27402
27403 2006-06-23  Bruno Haible  <bruno@clisp.org>
27404
27405         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
27406
27407 2006-06-23  Bruno Haible  <bruno@clisp.org>
27408
27409         * lib/stdint_.h: Treat IRIX like OpenBSD.
27410
27411 2006-06-23  Bruno Haible  <bruno@clisp.org>
27412
27413         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
27414         ISO C 99 Technical Corrigendum 1.
27415
27416 2006-06-22  Simon Josefsson  <jas@extundo.com>
27417
27418         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
27419         MinGW.
27420
27421 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
27422
27423         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
27424         needed.  Some compiler complained about some of them.  Problem reported
27425         by Larry Jones in
27426         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
27427
27428 2006-06-21  Simon Josefsson  <jas@extundo.com>
27429
27430         * tests/test-getaddrinfo.c: New file.
27431
27432         * modules/getaddrinfo-tests: New file.
27433
27434         * MODULES.html.sh: Add inet_pton.
27435
27436         * modules/inet_pton: New file.
27437
27438 2006-06-21  Simon Josefsson  <jas@extundo.com>
27439
27440         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
27441         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
27442         of using the (limited) gnulib implementation on Windows XP.
27443
27444         * m4/inet_pton.m4: New file.
27445
27446 2006-06-21  Simon Josefsson  <jas@extundo.com>
27447
27448         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
27449         variable.
27450
27451         * lib/socket_.h: Don't define WINVER.
27452
27453         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
27454         slightly modified to work in gnulib.
27455
27456 2006-06-21  Simon Josefsson  <jas@extundo.com>
27457
27458         * doc/gnulib.texi (Windows sockets): Add.
27459
27460 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
27461
27462         * lib/read-file.c (fread_file): Start with buffer allocation of
27463         0 bytes rather than 1 byte; this simplifies the code.
27464         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
27465         code to free buffer and save/restore errno.
27466         (internal_read_file): Remove unused local.
27467
27468 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
27469
27470         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
27471         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
27472         Problem reported by Denis Excoffier in
27473         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
27474
27475 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27476
27477         * modules/sys_socket, modules/socklen: Include sys/types since
27478         FreeBSD 4.x's sys/socket.h needs it.
27479
27480 2006-06-19  Simon Josefsson  <jas@extundo.com>
27481
27482         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
27483
27484 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
27485
27486         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
27487
27488 2006-06-19  Bruno Haible  <bruno@clisp.org>
27489
27490         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
27491         and FULL_PATH_INTTYPES_H in angle brackets.
27492         Reported by Mark D. Baushke <mdb@gnu.org>.
27493
27494 2006-06-17  Eric Blake  <ebb9@byu.net>
27495
27496         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
27497         errno.
27498
27499 2006-06-17  Bruno Haible  <bruno@clisp.org>
27500
27501         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
27502         <sys/inttypes.h>.
27503
27504 2006-06-17  Bruno Haible  <bruno@clisp.org>
27505
27506         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
27507         whether errno is declared. Assume <errno.h> declares errno.
27508
27509 2006-06-17  Bruno Haible  <bruno@clisp.org>
27510
27511         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
27512
27513 2006-06-17  Bruno Haible  <bruno@clisp.org>
27514
27515         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
27516         problem on Solaris 2.5.1.
27517
27518 2006-06-16  Eric Blake  <ebb9@byu.net>
27519
27520         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
27521         * lib/unicodeio.c [!defined errno]: Likewise.
27522         * lib/strtol.c [!defined errno]: Likewise.
27523         * lib/strtod.c [!defined errno]: Likewise.
27524
27525 2006-06-15  Eric Blake  <ebb9@byu.net>
27526
27527         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
27528
27529 2006-06-15  Eric Blake  <ebb9@byu.net>
27530
27531         * config/srclist.txt (ssize_t.m4): Lose sync.
27532
27533 2006-06-15  Bruno Haible  <bruno@clisp.org>
27534
27535         * modules/stdint (Files): Include m4/full-header-path.m4,
27536         m4/size_max.m4, m4/wchar_t.m4.
27537         (Makefile.am): Many more substitutions.
27538         * modules/stdint-tests: New file.
27539         * tests/test-stdint.c: New file.
27540
27541 2006-06-15  Bruno Haible  <bruno@clisp.org>
27542
27543         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
27544         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
27545         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
27546         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
27547         gl_CHECK_TYPE_SAME): New macros.
27548
27549 2006-06-15  Bruno Haible  <bruno@clisp.org>
27550
27551         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
27552
27553 2006-06-15  Bruno Haible  <bruno@clisp.org>
27554
27555         * lib/stdint_.h: Rewritten to be fully auto-configured.
27556         Fixes bug on HP-UX/IA64.
27557
27558 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
27559
27560         * lib/getdate.y (__attribute__): Don't define if already defined.
27561         Problem reported by Larry Jones.
27562         * lib/utimens.c (__attribute__): Likewise.
27563
27564 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
27565
27566         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
27567         reported by Andreas Schwab.
27568
27569 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27570             Bruno Haible  <bruno@clisp.org>
27571
27572         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
27573         check for the declaration of strnlen and a run test that exposes the
27574         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
27575         rpl_strndup.
27576
27577 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27578             Bruno Haible  <bruno@clisp.org>
27579
27580         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
27581
27582 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27583
27584         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
27585         compile test, for Tru64 4.0D.
27586
27587 2006-05-28  Karl Berry  <karl@gnu.org>
27588
27589         * config/srclist.txt (printf-args.c): lose sync.
27590
27591 2006-05-26  Martin Lambers  <marlam@marlam.de>
27592
27593         * lib/getpass.c: Updates the test for the native W32 API, and adds
27594         missing includes, thus fixing compilation warnings.
27595
27596 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
27597
27598         * lib/exclude.c (exclude_fnmatch): New function.
27599         (excluded_file_name): Call exclude_fnmatch.
27600         * lib/exclude.h (excluded_file_name): New prototype
27601
27602 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
27603
27604         * lib/tempname.c (small_open, large_open): New macros.
27605         (__open, __open64) [!_LIBC]: Remove.
27606         (__gen_tempname): Use small_open and large_open instead of __open
27607         and __open64.  This fixes a portability bug on HP-UX 11.11i
27608         reported by Simon Wing-Tang in
27609         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
27610
27611 2006-05-24  Bruno Haible  <bruno@clisp.org>
27612
27613         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
27614         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
27615         Reported by Thorsten Maerz <torte@netztorte.de> via
27616         Aaron Stone <aaron@serendipity.cx>.
27617
27618 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
27619
27620         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
27621         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
27622         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
27623         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
27624         not really conditional on the cache.
27625         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
27626
27627 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
27628
27629         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
27630         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
27631         (my_usleep): Don't mishandle maximum value.
27632
27633 2006-05-19  Jim Meyering  <jim@meyering.net>
27634
27635         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
27636
27637 2006-05-17  Bruno Haible  <bruno@clisp.org>
27638
27639         Cygwin portability.
27640         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
27641
27642 2006-05-17  Bruno Haible  <bruno@clisp.org>
27643
27644         * lib/stdint_.h: Fix recognition of Cygwin.
27645
27646 2006-05-15  Bruno Haible  <bruno@clisp.org>
27647
27648         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
27649         on libtool patch by Ralf Wildenhues.
27650
27651 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
27652
27653         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
27654         test for C99 conformance; (bool) 0.5 is an integer constant
27655         expression, but (bool) -0.5 is not.  Problem reported by Fedor
27656         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
27657
27658 2006-05-11  Simon Josefsson  <jas@extundo.com>
27659
27660         * m4/xvasprintf.m4: Fix obvious typo.
27661
27662 2006-05-11  Jim Meyering  <jim@meyering.net>
27663
27664         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
27665         James Lemley.
27666
27667 2006-05-10  Simon Josefsson  <jas@extundo.com>
27668
27669         * lib/md4.c: Typo fix, update copyright years.
27670         (K1, K2): Don't use L because it turn computations into 64-bit on
27671         64-bit platforms.
27672
27673 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
27674
27675         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
27676         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
27677         unwanted sign propagation, e.g., on hosts with 64-bit int.
27678         There still are some problems with reeelly weird theoretical hosts
27679         (e.g., 33-bit int) but it's not worth worrying about now.
27680         * lib/sha1.c (rol): Likewise.
27681         (K1, K2, K3, K4): Remove unnecessary L suffix.
27682
27683 2006-05-10  Bruno Haible  <bruno@clisp.org>
27684
27685         * lib/des.c: Cast to avoid warnings.
27686
27687 2006-05-09  Bruno Haible  <bruno@clisp.org>
27688
27689         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
27690         (Depends-on): Depend also on xsize, stdarg.
27691         (configure.ac): Add gl_XVASPRINTF.
27692
27693 2006-05-09  Bruno Haible  <bruno@clisp.org>
27694
27695         * m4/xvasprintf.m4: New file.
27696
27697 2006-05-09  Bruno Haible  <bruno@clisp.org>
27698
27699         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
27700         (EOVERFLOW): Define fallback value.
27701         (xstrcat): New function.
27702         (xvasprintf): Recognize the special case of a string concatenation.
27703
27704 2006-05-08  Eric Blake  <ebb9@byu.net>
27705
27706         * gnulib-tool (func_version): Base copyright year on CVS date.
27707         (func_emit_copyright_notice): New function.
27708         (func_emit_lib_Makefile_am): Use it.
27709         (func_emit_tests_Makefile_am): Likewise.
27710         (func_import): Likewise.
27711
27712 2006-05-08  Bruno Haible  <bruno@clisp.org>
27713
27714         * modules/stdarg: New file.
27715         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
27716
27717 2006-05-08  Bruno Haible  <bruno@clisp.org>
27718
27719         * m4/stdarg.m4: New file, from GNU gettext.
27720
27721 2006-05-08  Bruno Haible  <bruno@clisp.org>
27722
27723         * config/srclist.txt (build-aux/config.rpath): different from latest
27724         release.
27725
27726 2006-05-08  Bruno Haible  <bruno@clisp.org>
27727
27728         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
27729
27730 2006-05-05  Jim Meyering  <jim@meyering.net>
27731
27732         * m4/warning.m4: New file, derived from bison's file by the same name.
27733
27734 2006-05-03  Bruno Haible  <bruno@clisp.org>
27735
27736         * lib/stdint_.h: Shorter URL.
27737         * lib/inttypes.h: Likewise.
27738
27739 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
27740
27741         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
27742
27743 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
27744
27745         * lib/verify.h: Document the internals better.  Most of this change
27746         was written by Bruno Haible.
27747
27748 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
27749
27750         * doc/verify.texi: New file, partly based on a proposal by
27751         Bruno Haible.
27752
27753 2006-05-02  Bruno Haible  <bruno@clisp.org>
27754
27755         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
27756         test from here...
27757         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
27758
27759 2006-04-29  Bruno Haible  <bruno@clisp.org>
27760
27761         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
27762         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
27763
27764 2006-04-29  Bruno Haible  <bruno@clisp.org>
27765
27766         * gnulib-tool: Make --update option actually work.
27767
27768 2006-04-29  Bruno Haible  <bruno@clisp.org>
27769
27770         * doc/gcd.texi: New file.
27771         * doc/gnulib.texi: Include it.
27772
27773 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
27774
27775         * lib/getdate.y (get_date): When adding relative date, start with the
27776         initial time, not with the result of the first mktime call.
27777
27778 2006-04-25  Bruno Haible  <bruno@clisp.org>
27779
27780         * gnulib-tool (func_import): Output the include directives in three
27781         blocks, sorted separately.
27782         Reported by Ben Pfaff <blp@cs.stanford.edu>.
27783
27784 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
27785
27786         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
27787         to define main with arguments, for C++.  Reported by Eric Blake.
27788         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
27789         Prefer 'int main ()' to 'int main (void)', for C++.
27790         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
27791         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
27792         for 'main', for C99 and C++.
27793
27794 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
27795
27796         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
27797         Don't assume that exit status -1 is valid.
27798         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
27799         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
27800         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
27801         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
27802         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
27803         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
27804         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
27805         functions can be used without declaring them, or that you can
27806         exit with status -1.
27807         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
27808
27809 2006-04-24  Karl Berry  <karl@gnu.org>
27810
27811         * config/srclist.txt (longdouble.m4): sync lost.
27812
27813 2006-04-24  Eric Blake  <ebb9@byu.net>
27814
27815         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
27816
27817 2006-04-24  Bruno Haible  <bruno@clisp.org>
27818
27819         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
27820         poll() implementation in AIX.
27821         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27822
27823 2006-04-24  Bruno Haible  <bruno@clisp.org>
27824
27825         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
27826         assigned exactly once.
27827
27828 2006-04-23  Claudio Fontana  <claudio@gnu.org>
27829             Bruno Haible  <bruno@clisp.org>
27830
27831         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
27832         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
27833         for AM_CPPFLAGS.
27834
27835 2006-04-23  Bruno Haible  <bruno@clisp.org>
27836
27837         * modules/copy-file: Depend on unistd.
27838         * modules/execute: Likewise.
27839         * modules/fatal-signal: Likewise.
27840         * modules/findprog: Likewise.
27841         * modules/mkdtemp : Likewise.
27842         * modules/pipe: Likewise.
27843         * modules/wait-process: Likewise.
27844
27845 2006-04-23  Bruno Haible  <bruno@clisp.org>
27846
27847         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
27848         condition was already detected.
27849         Reported by Ben Pfaff <blp@cs.stanford.edu>.
27850
27851 2006-04-23  Bruno Haible  <bruno@clisp.org>
27852
27853         * lib/copy-file.c: Include <unistd.h> unconditionally.
27854         * lib/execute.c: Likewise.
27855         * lib/fatal-signal.c: Likewise.
27856         * lib/findprog.c: Likewise.
27857         * lib/mkdtemp.c: Likewise.
27858         * lib/pipe.h: Likewise.
27859         * lib/pipe.c: Likewise.
27860         * lib/wait-process.h: Likewise.
27861
27862 2006-04-23  Bruno Haible  <bruno@clisp.org>
27863
27864         * gnulib-tool (func_usage): Fix --import description. Document
27865         --update.
27866         (func_import): Create temporary file in a temporary directory, if
27867         --dry-run is specified. Silence errors from 'grep' when there are no
27868         m4 files in $m4dir.
27869         (func_create_testdir): Silence errors from 'grep' when there are no
27870         m4 files in $m4dir.
27871         Reported by Karl Berry <karl@freefriends.org>.
27872
27873 2006-04-20  Bruno Haible  <bruno@clisp.org>
27874
27875         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
27876         one argument, so that the code will be portable to Autoconf 2.60.
27877         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
27878         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
27879         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
27880
27881 2006-04-19  Derek Price  <derek@ximbiot.com>
27882             Eric Blake  <ebb9@byu.net>
27883
27884         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
27885         rather than "/full/path.h".  Update comment to match.  Shorten &
27886         generalize m4_translit call via AS_TR_CPP.
27887
27888 2006-04-19  Derek Price  <derek@ximbiot.com>
27889             Eric Blake  <ebb9@byu.net>
27890
27891         * lib/inttypes.h: Correct grammar in comment.
27892
27893 2006-04-18  Derek Price  <derek@ximbiot.com>
27894             Paul Eggert  <eggert@cs.ucla.edu>
27895
27896         * modules/inttypes: New file.
27897         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
27898
27899 2006-04-18  Derek Price  <derek@ximbiot.com>
27900             Paul Eggert  <eggert@cs.ucla.edu>
27901
27902         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
27903         New files.
27904
27905 2006-04-18  Derek Price  <derek@ximbiot.com>
27906             Paul Eggert  <eggert@cs.ucla.edu>
27907
27908         * lib/inttypes.h: New file.
27909         * lib/strtoimax.c: Assume <inttypes.h>.
27910
27911 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
27912
27913         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
27914         isn't mounted.  Problem reported by Kir Kolyshkin.
27915
27916 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
27917
27918         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
27919         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
27920         Derek R. Price.
27921         * lib/regex.h (RE_DUP_MAX): Update comment to match current
27922         implementation.
27923
27924 2006-04-12  Eric Blake  <ebb9@byu.net>
27925
27926         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
27927         is now done automatically by the corresponding Autoconf macro.
27928
27929 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
27930
27931         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
27932         time_r.h.
27933
27934 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
27935
27936         Merge regex changes from libc, removing some of our
27937         POSIX-conformance changes that were rejected and redoing them in a
27938         less-intrusive way.
27939
27940         * lib/regcomp.c (re_compile_internal, init_dfa):
27941         Length arg is now size_t, not Idx.  All uses changed.
27942         (peek_token): Forward decl now says internal_function.
27943         (__re_error_msgid, __re_error_msgid_idx):
27944         Now static rather than extern with attribute_hidden.
27945         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
27946         For some reason libc prefers K&R style defns for external functions.
27947         (regerror) [!defined _LIBC]: Likewise.
27948         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
27949         (seek_collating_symbol_entry, lookup_collation_sequence_value):
27950         (build_range_exp, build_collating_symbol):
27951         Use K&R-style defn.
27952         (re_compile_fastmap): Use '\0' to memset, not 0.
27953         (utf8_sb_map): Make the calculations more obvious.
27954         (init_dfa, parse_bracket_exp, build_charclass_op):
27955         Call calloc and cast result, as glibc does.
27956         (init_word_char, fetch_token, peek_token, peek_token_bracket):
27957         (build_range_exp, build_collating_symbol):
27958         Now internal functions.
27959
27960         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
27961
27962         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
27963         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
27964         Don't depend on VMS; depend on __VMS instead, for POSIX
27965         namespace cleanness.
27966         (regoff_t): Define to ssize_t, not long int.
27967
27968         Remove the REG_ macros named below.  Instead, make the old names
27969         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
27970         __USE_GNU_REGEX.
27971         (REG_BACKSLASH_ESCAPE_IN_LISTS):
27972         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
27973         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
27974         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
27975         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
27976         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
27977         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
27978         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
27979         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
27980         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
27981         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
27982         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
27983         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
27984         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
27985         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
27986         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
27987         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
27988         (REG_NREGS):
27989         Remove.  All uses replaced by the old RE_* names.
27990         (RE_BACKSLASH_ESCAPE_IN_LISTS):
27991         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
27992         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
27993         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
27994         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
27995         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
27996         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
27997         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
27998         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
27999         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
28000         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
28001         Don't bother having these macros be independent of each others'
28002         values, since they no longer exist in the POSIX name space.
28003
28004         Rename the following member names back to their old names,
28005         unless !__USE_GNU_REGEX.  All uses changed back.
28006         (buffer): Renamed from re_buffer.
28007         (allocated): Renamed from re_allocated.
28008         (used): Renamed from re_used.
28009         (syntax): Renamed from re_syntax.
28010         (fastmap): Renamed from re_fastmap.
28011         (translate): Renamed from re_translate.
28012         (can_be_null): Renamed from re_can_be_null.
28013         (regs_allocated): Renamed from re_regs_allocated.
28014         (fastmap_accurate): Renamed from re_fastmap_accurate.
28015         (no_sub): Renamed from re_no_sub.
28016         (not_bol): Renamed from re_not_bol.
28017         (not_eol): Renamed from re_not_eol.
28018         (newline_anchor): Renamed from re_newline_anchor.
28019         (num_regs): Renamed from rm_num_regs.
28020         (start): Renamed from rm_start.
28021         (end): Renamed from rm_end.
28022
28023         (free_state): Move up a bit.
28024
28025         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
28026         #define to be empty.
28027         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
28028         when that is what is intended.
28029         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
28030         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
28031         (MAX): New macro.
28032         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
28033         All uses changed back to re_malloc, etc.  It's now the caller's
28034         responsibility to check for overflow; all callers changed.
28035         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
28036         (re_x2nrealloc): Remove.
28037         (free_state): Remove decl.
28038
28039         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
28040         (re_set_registers, re_exec):
28041         Use K&R-style defn.
28042
28043         2006-01-31  Roland McGrath  <roland@redhat.com>
28044
28045         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
28046         Reported by Mike Frysinger <vapier@gentoo.org>.
28047
28048         2006-01-15  Andreas Jaeger  <aj@suse.de>
28049
28050         [BZ #1950]
28051         * lib/regex_internal.c (re_string_reconstruct): Adjust for
28052         build_wcs_upper_buffer change.
28053         (build_wcs_upper_buffer): Change return type.
28054
28055         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
28056
28057         * lib/regex_internal.h: Include <stdint.h> if available.
28058
28059         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
28060
28061         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
28062
28063         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
28064
28065         * lib/regcomp.c: Adjust for changed secondary hash function.
28066
28067         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
28068
28069         * lib/regex.h: Pretty printing.
28070         Clean up namespace a bit.
28071
28072         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
28073
28074         * lib/regexec.c (update_cur_sifted_state, check_arrival,
28075         check_arrival_add_next_nodes): Avoid using uninitialized variable.
28076
28077         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
28078                     Ulrich Drepper  <drepper@redhat.com>
28079
28080         [BZ #1302]
28081         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
28082         changed.
28083         (bitset_word_t): Renamed from bitset_word.  All uses changed.
28084
28085         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
28086
28087         [BZ #281]
28088         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
28089         * lib/regcomp.c: Remove unnecessary uses of
28090         unsigned RE_TRANSLATE_TYPE.
28091         * lib/regex_internal.h: Likewise.
28092         * lib/regex_internal.c: Likewise.
28093         * lib/regexec.c: Likewise.
28094         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
28095
28096         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
28097
28098         * lib/regexec.c (find_recover_state): Remove unnecessary
28099         initialization.
28100         (transit_state_bkref): Make DFA a const pointer.
28101         (get_subexp): Likewise.
28102         (check_arrival): Likewise.
28103         (update_cur_sifted_state): Likewise.
28104         (re_search_internal): Likewise.
28105         (prune_impossible_nodes): Likewise.
28106         (acquire_init_state_context): Likewise.
28107         (proceed_next_node): Likewise.
28108         (set_regs): Likewise.
28109         (free_fail_stack_return): Likewise.
28110         (check_arrival_expand_ecl): Mark DFA parameter as const.
28111         (check_arrival_expand_ecl_sub): Likewise.
28112         (check_subexp_limits): Likewise.
28113         (sub_epsilon_src_nodes):  Likewise.
28114         (add_epsilon_src_nodes):  Likewise.
28115         (merge_state_array): Likewise.
28116         (update_regs): Likewise.
28117         (build_trtable): Likewise.
28118         (sift_states_backward): Mark MCTX parameter as const.
28119         (build_sifted_states): Likewise.
28120         (update_cur_sifted_state): Likewise.
28121         (sift_states_mkref): Likewise.
28122         (check_arrival_expand_ecl): Mark eclosure as const.
28123         (check_dst_limits_calc_pos_1): Likewise.
28124         * lib/regex_internal.h (re_match_context_t): Make dfa a const
28125         pointer.
28126
28127         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
28128
28129         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
28130         (transit_state_sb): Likewise.
28131         (transit_state_mb): Likewise.
28132         (sift_states_iter_mb): Likewise.
28133         (check_arrival_add_next_nodes): Likewise.
28134         (check_node_accept_bytes): Change first parameter to pointer-to-const.
28135         [_LIBC] (re_search_2_stub): Use mempcpy.
28136
28137         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
28138         mbrtowc for very simple UTF-8 case.
28139
28140         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
28141         a pointer-to-const.
28142         (re_acquire_state_context): Likewise.
28143         * lib/regex_internal.h: Adjust prototypes.
28144
28145         * lib/regex.c: Prevent using C++ compilers.
28146
28147         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
28148         (re_acquire_state_context): Likewise.
28149
28150 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
28151
28152         * modules/regex (Depends-on): Add ssize_t.
28153
28154 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
28155
28156         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
28157         translation table.
28158
28159 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
28160
28161         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
28162
28163 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
28164             Bruno Haible  <bruno@clisp.org>
28165
28166         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
28167         <sys/types.h> and <inttypes.h>.
28168
28169 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28170
28171         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
28172         `__error_t_defined', so argp.h will not typedef the former.
28173
28174 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
28175
28176         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
28177         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
28178         glibc names.  Even if glibc is changed to conform to POSIX, the
28179         traditional names will be available anyway, since regex depends on
28180         the extensions module.  Also, fix a longstanding typo in the
28181         implementation of Spencer ERE test #75 from grep 2.3.  Problems
28182         reported by Emanuele Giaquinta.  Also, change sense of cached
28183         variable, so that the message makes sense.
28184
28185 2006-03-24  Simon Josefsson  <jas@extundo.com>
28186
28187         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
28188         including some doc fixes.
28189         (base64_encode_alloc): Fix +1 bug on allocation failures.
28190
28191 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28192
28193         * lib/base64.c (base64_encode): Do not read past end of array with
28194         unsanitized input on systems with CHAR_BIT > 8.
28195
28196 2006-03-24  Eric Blake  <ebb9@byu.net>
28197
28198         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
28199
28200 2006-03-22  Karl Berry  <karl@gnu.org>
28201
28202         * config/srclist.txt (*setenv.[ch]): get from coreutils.
28203         * config/srclistvars.sh (COREUTILS): new var.
28204
28205 2006-03-17  Jim Meyering  <jim@meyering.net>
28206
28207         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
28208         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
28209
28210 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
28211
28212         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
28213         no longer needs it.  Instead, check that regoff_t is as least
28214         as wide as ptrdiff_t.
28215
28216         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
28217         so that our regex.h stays compatible with the installed regex.
28218         This is helpful for installers who configure --without-included-regex.
28219         Problem reported by Emanuele Giaquinta.
28220
28221 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
28222
28223         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
28224         Typedef to long int, not to off_, as POSIX will likely change
28225         in that direction.
28226
28227 2006-03-15  Eric Blake  <ebb9@byu.net>
28228
28229         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
28230
28231 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
28232
28233         * lib/argp-help.c (validate_uparams): Fix typo
28234         * lib/argp-parse.c (argp_default_options): Consistently begin help
28235         messages with a lowercase letter.
28236
28237 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
28238
28239         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
28240         overrun buffers and shouldn't be used (much as gets shouldn't be
28241         used).
28242         * lib/time_r.c (asctime_r, ctime_r): Likewise.
28243
28244 2006-03-08  Simon Josefsson  <jas@extundo.com>
28245
28246         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
28247         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28248
28249 2006-03-08  Simon Josefsson  <jas@extundo.com>
28250
28251         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
28252         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28253
28254 2006-03-08  Simon Josefsson  <jas@extundo.com>
28255
28256         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
28257         signal that configure disabled the device.
28258
28259 2006-03-08  Simon Josefsson  <jas@extundo.com>
28260
28261         * build-aux/maint.mk: Fix refresh-po, to handle no translated
28262         languages.
28263
28264 2006-03-07  Simon Josefsson  <jas@extundo.com>
28265
28266         * modules/getopt (Depends-on): Add unistd.
28267
28268         * modules/unistd: New file.
28269
28270 2006-03-07  Simon Josefsson  <jas@extundo.com>
28271
28272         * modules/gc-random: New file.
28273
28274 2006-03-07  Simon Josefsson  <jas@extundo.com>
28275
28276         * m4/unistd_h.m4: New file.
28277
28278 2006-03-07  Simon Josefsson  <jas@extundo.com>
28279
28280         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
28281         test to be side-effect free by storing the result in the cache
28282         variable gl_cv_lib_readline, and moving the assignment of
28283         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
28284         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28285
28286 2006-03-07  Simon Josefsson  <jas@extundo.com>
28287
28288         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
28289         error on missing devices (the functions will return an error).
28290
28291         * m4/gc.m4: Move random stuff to gc-random.m4
28292
28293 2006-03-07  Simon Josefsson  <jas@extundo.com>
28294
28295         * lib/unistd_.h: New file.
28296
28297 2006-03-07  Simon Josefsson  <jas@extundo.com>
28298
28299         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
28300
28301 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
28302
28303         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
28304         Problem reported by Juan Manuel Guerrero.
28305
28306 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
28307
28308         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
28309         the unistd module.
28310         * lib/getlogin_r.c: Likewise.
28311         * lib/getlogin_r.h: Likewise.
28312         * lib/glob.c: Likewise.
28313         * lib/pagealign_alloc.c: Likewise.
28314         * lib/unistd_.h: Remove; no longer needed.
28315
28316 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
28317
28318         * MODULES.html.sh (Support for systems lacking POSIX:2001):
28319         Add unistd.
28320         * modules/c-stack (Depends-on): Add unistd.
28321         * modules/getlogin_r: Likewise.
28322         * modules/glob: Likewise.
28323         * modules/pagealign_alloc: Likewise.
28324         * modules/unistd (Files): Remove lib/unistd_.h.
28325         (EXTRA_DIST): Remove.
28326         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
28327         need unistd_.h.
28328         (MOSTLYCLEANFILES): Remove unistd.h-t.
28329
28330 2006-03-03  Simon Josefsson  <jas@extundo.com>
28331
28332         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
28333
28334 2006-03-03  Simon Josefsson  <jas@extundo.com>
28335
28336         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
28337         libidn and bison.
28338
28339 2006-03-03  Simon Josefsson  <jas@extundo.com>
28340
28341         * build-aux/maint.mk: Add indent target.
28342
28343 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
28344
28345         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
28346         our replacement poll.h in any case, to avoid a differing
28347         declaration from a system header.  Seen on AIX.
28348
28349 2006-03-01  Simon Josefsson  <jas@extundo.com>
28350
28351         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
28352         <kasal@ucw.cz>.
28353
28354 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
28355
28356         * modules/gettime (Depends-on): Add extensions module.
28357         * modules/nanosleep (Depends-on): Likewise.
28358         * modules/settime (Depends-on): Likewise.
28359
28360 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
28361
28362         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
28363         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
28364         pedantically.
28365         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
28366         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
28367
28368         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
28369         not "==".  Reported by Ralf Wildenhues.
28370
28371 2006-03-01  Karl Berry  <karl@gnu.org>
28372
28373         * doc/Copyright/request-*: new files, synced from gnuorg.
28374
28375 2006-03-01  Karl Berry  <karl@gnu.org>
28376
28377         * config/srclist.txt (Copyright/*): new entries.
28378
28379 2006-02-28  Simon Josefsson  <jas@extundo.com>
28380
28381         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
28382
28383 2006-02-27  Simon Josefsson  <jas@extundo.com>
28384
28385         * lib/base64.h: Indent #define's.  From Jim Meyering
28386         <jim@meyering.net>.
28387
28388 2006-02-27  Jim Meyering  <jim@meyering.net>
28389
28390         Revert the change of 2006-02-24, so these files can continue
28391         to be sync'd from gettext.
28392         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
28393         of `config.h'.
28394
28395 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
28396
28397         * modules/intprops: New file.
28398         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
28399         Add intprops.
28400         * modules/getloadavg (Files): Remove lib/intprops.h.
28401         (Depends-on): Add intprops.
28402         * modules/human: Likewise.
28403         * modules/inttostr: Likewise.
28404         * modules/openat: Likewise.
28405         * modules/sig2str: Likewise.
28406         * modules/userspec: Likewise.
28407         * modules/utimecmp: Likewise.
28408         * modules/xnanosleep: Likewise.
28409         * modules/xstrtol: Likewise.
28410
28411 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
28412
28413         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
28414         * modules/lock-tests (TESTS): Use $(EXEEXT).
28415         * modules/tls-tests: Likewise.
28416         * modules/argp-tests: Likewise.
28417         (check_PROGRAMS): New var, replacing...
28418         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
28419
28420 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28421
28422         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
28423         `config.h'.
28424
28425 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
28426
28427         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
28428
28429 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28430
28431         Sync from coreutils.
28432         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
28433         gl_CHDIR_SAFER.
28434
28435 2006-02-22  Jim Meyering  <jim@meyering.net>
28436
28437         Sync from coreutils.
28438         * m4/chdir-safer.m4: New file.
28439
28440 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
28441
28442         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
28443         AT_FDCWD exceeds INT_MAX.
28444         * lib/openat.h (AT_FDCWD): Likewise.
28445
28446 2006-02-17  Eric Blake  <address@hidden>
28447
28448         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
28449
28450 2006-02-16  Simon Josefsson  <jas@extundo.com>
28451
28452         * modules/getaddrinfo (Depends-on): Add sys_socket.
28453
28454 2006-02-15  Simon Josefsson  <jas@extundo.com>
28455
28456         * build-aux/maint.mk: Add dsyntax-check rule.
28457
28458 2006-02-15  Eric Blake  <ebb9@byu.net>
28459
28460         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
28461         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
28462         'present but cannot compile' warnings on cygwin.
28463         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
28464         use ws2tcpip.h if sys/socket.h works.
28465         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
28466         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
28467
28468 2006-02-14  Simon Josefsson  <jas@extundo.com>
28469
28470         * modules/maintainer-makefile (Files): Rename.
28471
28472         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
28473         and (the local) Makefile.cfg to maint-cfg.mk.
28474
28475         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
28476         to the latter.
28477
28478         * modules/maintainer-makefile: New module.
28479
28480         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
28481         severaly stripped to make it possible to build it up from scratch
28482         with reliable tests.
28483
28484         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
28485         fixes to permit overriding the default actions when configure and
28486         makefile are not available.
28487
28488 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
28489
28490         Sync from coreutils.
28491         * modules/lstat (Depends-on): Don't depend on xalloc.
28492         (License): Change from GPL to LGPL, since this is now simply a
28493         replacement for a libc function.
28494
28495 2006-02-14  Jim Meyering  <jim@meyering.net>
28496
28497         Sync from coreutils.
28498
28499         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
28500         failure on deficient systems, and simplify gnulib lgpl dependencies.
28501         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
28502         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
28503
28504         * lib/xalloc-die.c: Remove unused definition of N_.
28505
28506 2006-02-14  Jim Meyering  <jim@meyering.net>
28507
28508         Sync from coreutils.
28509         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
28510         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
28511         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
28512         double-quote uses of that variable, to accommodate the rare case in
28513         which getmntent is available in none of the libraries checked.  This
28514         happens at least on FreeBSD 5.0.
28515
28516 2006-02-13  Simon Josefsson  <jas@extundo.com>
28517
28518         * gnulib-tool (Usage): Fix --import, from
28519         karl@freefriends.org (Karl Berry).
28520
28521 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
28522
28523         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
28524
28525 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
28526
28527         * lib/argp-namefrob.h: Restore changes accidentally lost during the
28528         "autoupdate" on 2005-12-12.
28529
28530 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
28531
28532         * modules/closeout (Depends-on): Remove atexit.
28533
28534 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
28535
28536         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
28537         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
28538
28539 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
28540
28541         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
28542         __EXTENSIONS__ if this causes compilation to fail.  Problem
28543         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
28544         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
28545
28546 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
28547
28548         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
28549         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
28550         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
28551         All uses changed.
28552
28553 2006-01-26  Simon Josefsson  <jas@extundo.com>
28554
28555         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
28556         prototype is visible on mingw32.
28557
28558         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
28559         for mingw32.
28560
28561         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
28562         mingw32).
28563
28564 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
28565
28566         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
28567         attempt to open for write; this always fails, at least on POSIX
28568         hosts.  This reinstates the 2006-01-09 change, which was
28569         inadvertently removed.
28570
28571 2006-01-26  Bruno Haible  <bruno@clisp.org>
28572
28573         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
28574         Reported by Paul Eggert.
28575
28576 2006-01-26  Bruno Haible  <bruno@clisp.org>
28577             Paul Eggert  <eggert@cs.ucla.edu>
28578
28579         * lib/stdbool_.h (_Bool)
28580         [(! (defined __cplusplus || defined __BEOS__)
28581           && !defined __GNUC__
28582           && !(defined __HP_cc || defined __xlc__
28583                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
28584                || defined __sgi))]:
28585         #define to signed char in these cases too; this simplifies
28586         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
28587         etc., separately) and makes it more conservative.
28588
28589 2006-01-25  Simon Josefsson  <jas@extundo.com>
28590
28591         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
28592         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
28593         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
28594
28595 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
28596
28597         * lib/argp-namefrob.h: Bugfix. Remove stray #
28598
28599 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
28600
28601         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
28602         so that we test the test.
28603         Check for yet another HP-UX cc bug involving *bool |= bool.
28604
28605 2006-01-25  Karl Berry  <karl@gnu.org>
28606
28607         * config/srclist.txt (vasnprintf.c): sync lost.
28608
28609 2006-01-25  Jim Meyering  <jim@meyering.net>
28610
28611         Sync from the stable (b5) branch of coreutils:
28612
28613         * lib/fts.c (fts_children): Don't let close() clobber errno from
28614         failed fchdir().
28615
28616         * lib/fts.c (fts_stat): When following a symlink-to-directory,
28617         don't necessarily interpret stat-fails+lstat-succeeds as indicating
28618         a dangling symlink.  That can also happen at least for ELOOP.
28619         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
28620         FYI, this bug predates the inclusion of fts.c in coreutils.
28621
28622         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
28623         in their own block, so pre-c99 compilers don't object.
28624
28625         Avoid the double-free (first in fts_read, second in fts_close) that
28626         would occur when an `active' directory is made inaccessible (e.g.,
28627         via chmod a-x) during a traversal.
28628         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
28629         before returning.  Reproduce this failure by
28630         mkdir -p a/b; cd a; chmod a-x . b
28631         Reported by Stavros Passas.
28632
28633 2006-01-25  Jim Meyering  <jim@meyering.net>
28634
28635         * lib/fileblocks.c: Remove more useless parentheses.
28636         * lib/readutmp.h: Likewise.
28637
28638 2006-01-25  Bruno Haible  <bruno@clisp.org>
28639
28640         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
28641         warnings.
28642         Reported by Paul Eggert.
28643
28644 2006-01-25  Bruno Haible  <bruno@clisp.org>
28645
28646         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
28647         rid of a trap command. For Solaris sh.
28648         Reported by Mark D. Baushke <mdb@gnu.org>.
28649
28650 2006-01-24  Simon Josefsson  <jas@extundo.com>
28651
28652         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
28653         Bruno.
28654
28655 2006-01-24  Karl Berry  <karl@gnu.org>
28656
28657         * config/srclist.txt (argp-namefrob.h): sync lost.
28658
28659 2006-01-24  Jim Meyering  <jim@meyering.net>
28660
28661         * modules/openat (Files): Add lib/intprops.h.
28662         From Mark D. Baushke.
28663
28664 2006-01-24  Jim Meyering  <jim@meyering.net>
28665
28666         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
28667         Reported by Mark D. Baushke.
28668
28669 2006-01-24  Jim Meyering  <jim@meyering.net>
28670
28671         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
28672
28673 2006-01-24  Bruno Haible  <bruno@clisp.org>
28674
28675         * modules/strnlen (Maintainer): Change from glibc to all.
28676
28677 2006-01-24  Bruno Haible  <bruno@clisp.org>
28678
28679         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
28680         Patch by Paul Eggert.
28681
28682 2006-01-24  Bruno Haible  <bruno@clisp.org>
28683
28684         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
28685         already has it.
28686         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
28687         2005-11-26.
28688
28689         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
28690         'signed char' to avoid problems with the built-in _Bool type.
28691         Reported by Paul Eggert on 2005-11-26.
28692
28693 2006-01-24  Bruno Haible  <bruno@clisp.org>
28694
28695         * gnulib-tool (func_import): Avoid constructing complicated sed
28696         expressions inside backquote.
28697         Report and solution by Mark D. Baushke <mdb@gnu.org>.
28698
28699 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
28700
28701         These changes imported from libc.
28702         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
28703         test and two separate function calls.
28704         * lib/strndup.c (__strndup): Add libc_hidden_def.
28705
28706 2006-01-23  Simon Josefsson  <jas@extundo.com>
28707
28708         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
28709         Remove the test_*_SOURCES variable: automake infers it by default.
28710         * modules/tls-tests: Likewise.
28711
28712 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
28713
28714         Work around porting bugs reported by Dieter in
28715         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
28716         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
28717         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
28718         Include "getopt.h" first, to check interface.
28719         (getenv): Declare only if defined HAVE_DECL_GETENV &&
28720         !HAVE_DECL_GETENV.
28721         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
28722         (__strndup): Revert to K&R-style function dfns, the glibc style.
28723         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
28724         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
28725         Include strnlen.h first, to get prototype properly.
28726         (strnlen): Renamed from __strnlen.
28727         Remove weak alias.
28728
28729 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
28730
28731         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
28732
28733 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
28734
28735         * config/srclist.txt: Adjust to reflect glibc reorganization.
28736         This affects only comments.
28737
28738 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
28739
28740          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
28741          Reported by Bruce Korb <bkorb@gnu.org>.
28742
28743 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
28744
28745         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
28746         to pacify gcc -Wswitch-default.
28747
28748 2006-01-22  Bruno Haible  <bruno@clisp.org>
28749
28750         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
28751         temporary buffer for sprintf, take into account the precision also
28752         for 'd', 'i', 'u', 'o', 'x', 'X'.
28753
28754 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
28755
28756         * modules/argp-tests: New module
28757         * tests/test-argp.c: New file
28758         * tests/test-argp-2.sh: New file
28759
28760 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
28761
28762         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
28763         (__argp_base_name): Removed
28764         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
28765         typo.
28766         (__argp_base_name): Provide macro definition or extern declaration
28767         depending on the configuration
28768
28769 2006-01-20  Simon Josefsson  <jas@extundo.com>
28770
28771         * modules/inet_ntop (Depends-on): Depend on sys_socket.
28772
28773 2006-01-20  Simon Josefsson  <jas@extundo.com>
28774
28775         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
28776
28777 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
28778
28779         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
28780         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
28781         Suggested by Bruno Haible.
28782
28783 2006-01-20  Karl Berry  <karl@gnu.org>
28784
28785         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
28786         until changes propagate, I guess.
28787
28788 2006-01-19  Simon Josefsson  <jas@extundo.com>
28789
28790         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
28791
28792 2006-01-19  Simon Josefsson  <jas@extundo.com>
28793
28794         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
28795
28796 2006-01-19  Simon Josefsson  <jas@extundo.com>
28797
28798         * gnulib-tool: Set check_PROGRAMS.
28799
28800         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
28801         modules/des-tests, modules/gc-arcfour-tests,
28802         modules/gc-arctwo-tests, modules/gc-des-tests,
28803         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
28804         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
28805         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
28806         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
28807         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
28808         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
28809         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
28810         test_*_SOURCES.
28811
28812 2006-01-18  Simon Josefsson  <jas@extundo.com>
28813
28814         * modules/socklen (Depends-on): Depend on sys_socket.
28815
28816 2006-01-18  Simon Josefsson  <jas@extundo.com>
28817
28818         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
28819         modules/des-tests, modules/gc-arcfour-tests,
28820         modules/gc-arctwo-tests, modules/gc-des-tests,
28821         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
28822         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
28823         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
28824         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
28825         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
28826         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
28827         $(EXEEXT) to automake TESTS variable, for mingw32.
28828
28829 2006-01-17  Simon Josefsson  <jas@extundo.com>
28830
28831         * modules/socklen (Include): Need sys/socket.h.
28832
28833 2006-01-17  Bruno Haible  <bruno@clisp.org>
28834
28835         * modules/ssize_t (Include): Add <sys/types.h>.
28836
28837 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
28838
28839         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
28840         it's not portable and it doesn't work with cross-compiles.
28841         Problem reported by Bruno Haible.  Fix missing-$ typo in
28842         'test "gl_cv_ignore_unused_libraries" ...' that prevented
28843         -zignore from being used with Sun's C compiler.
28844
28845 2006-01-12  Simon Josefsson  <jas@extundo.com>
28846
28847         * lib/base64.c: Fix warning, reported by Bruno Haible
28848         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
28849
28850 2006-01-12  Bruno Haible  <bruno@clisp.org>
28851
28852         * modules/ldd: New file.
28853         * build-aux/ldd.sh.in: New file.
28854         * MODULES.html.sh (Support for building libraries and executables): Add
28855         ldd.
28856
28857 2006-01-12  Bruno Haible  <bruno@clisp.org>
28858
28859         * m4/ldd.m4: New file.
28860
28861 2006-01-12  Bruno Haible  <bruno@clisp.org>
28862
28863         * gnulib-tool (func_import, func_create_testdir): Don't go into an
28864         endless loop while replacing $auxdir with build-aux.
28865
28866 2006-01-11  Simon Josefsson  <jas@extundo.com>
28867
28868         * lib/stdint_.h (SIZE_MAX): Add missing (.
28869
28870 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
28871
28872         Sync from coreutils.
28873         * lib/md5.c: Fix commentary typos.
28874         (alignof, UNALIGNED_P): No need for a GCC-specific version.
28875         * lib/md5.h (__attribute__): Remove; unused.
28876         * lib/sha1.c: Fix commentary to match md5 better.
28877         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
28878         so that we don't need to worry about alignment.  All uses changed.
28879         This merges the 2005-10-28 md5 change into sha1.
28880
28881 2006-01-11  Jim Meyering  <jim@meyering.net>
28882
28883         Sync from coreutils.
28884         * lib/md5.c (OP): Fix spacing.
28885
28886 2006-01-11  Bruno Haible  <bruno@clisp.org>
28887
28888         Ensure automatic ordering between gl_LOCK and gl_ARGP.
28889         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
28890         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
28891
28892 2006-01-11  Bruno Haible  <bruno@clisp.org>
28893
28894         Ensure automatic ordering between gl_LOCK and gl_ARGP.
28895         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
28896         the "early" section as well.
28897
28898 2006-01-11  Bruno Haible  <bruno@clisp.org>
28899
28900         Avoid "ar: no archive members specified" error on MacOS X.
28901         * gnulib-tool (func_modules_add_dummy): New function.
28902         (func_import, func_create_testdir): Invoke it.
28903
28904 2006-01-11  Bruno Haible  <bruno@clisp.org>
28905
28906         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
28907         with $auxdir in AC_CONFIG_FILES statements.
28908
28909 2006-01-11  Bruno Haible  <bruno@clisp.org>
28910
28911         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
28912         Initialize also noinst_HEADERS to empty.
28913
28914 2006-01-11  Bruno Haible  <bruno@clisp.org>
28915
28916         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
28917         variables.
28918         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
28919         autoreconf.
28920
28921 2006-01-11  Bruno Haible  <bruno@clisp.org>
28922
28923         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
28924         overridable by the user.
28925         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28926
28927 2006-01-10  Simon Josefsson  <jas@extundo.com>
28928
28929         * modules/sys_socket: New file.
28930
28931 2006-01-10  Simon Josefsson  <jas@extundo.com>
28932
28933         * m4/sys_socket_h.m4: New file.
28934
28935 2006-01-10  Simon Josefsson  <jas@extundo.com>
28936
28937         * lib/socket_.h: New file.
28938
28939 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
28940
28941         * modules/readutmp (Maintainer): Add myself.
28942
28943 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
28944
28945         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
28946         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
28947         People who are still concerned with buggy memcmp implementations
28948         can invoke gl_FUNC_MEMCMP themselves.
28949
28950 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
28951
28952         * lib/regex_internal.h (BITSET_WORD_BITS):
28953         Work around a bug in 64-bit PGC (before version 6.1-2), where the
28954         preprocessor mishandles large unsigned values as if they were signed.
28955         Problem reported by Claudio Fontana in
28956         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
28957
28958 2006-01-10  Jim Meyering  <jim@meyering.net>
28959
28960         Avoid the double-free (first in fts_read, second in fts_close) that
28961         would occur when an `active' directory is made inaccessible (e.g.,
28962         via chmod a-x) during a traversal.
28963         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
28964         before returning.  Reproduce this failure by
28965         mkdir -p a/b; cd a; chmod a-x . b
28966         Reported by Stavros Passas.
28967
28968         Sync from coreutils.
28969         * lib/sha1.c: Tweak grammar in a comment.
28970
28971 2006-01-10  Jim Meyering  <jim@meyering.net>
28972
28973         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
28974         Patch by Joerg Sonnenberger.
28975
28976 2006-01-10  Bruno Haible  <bruno@clisp.org>
28977
28978         * modules/readutmp: Depend on module free.
28979         * modules/strtok_r: Depend on module restrict.
28980
28981 2006-01-10  Bruno Haible  <bruno@clisp.org>
28982
28983         * modules/gettext (configure.ac): Add an invocation of
28984         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
28985
28986 2006-01-10  Bruno Haible  <bruno@clisp.org>
28987
28988         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
28989         Reported by Werner Lemberg <wl@gnu.org>.
28990
28991 2006-01-10  Bruno Haible  <bruno@clisp.org>
28992
28993         * lib/localcharset.c: Update from GNU gettext.
28994
28995 2006-01-10  Bruno Haible  <bruno@clisp.org>
28996
28997         * lib/argp.h (__const): Remove macro. Use const instead.
28998         * lib/argp-fmtstream.h (__const): Likewise.
28999         * lib/glob_.h (__const): Remove macro.
29000         * lib/glob-libc.h: Use const instead of __const.
29001
29002 2006-01-10  Bruno Haible  <bruno@clisp.org>
29003
29004         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
29005         variable.
29006         Needed to avoid an automake error regarding the 'gettext' module.
29007
29008 2006-01-09  Simon Josefsson  <jas@extundo.com>
29009
29010         * modules/inet_ntop (Depends-on): Add restrict.
29011
29012 2006-01-09  Simon Josefsson  <jas@extundo.com>
29013
29014         * modules/gc-rijndael-tests (License): Put under LGPL.
29015
29016         * modules/gc-des-tests (License): Likewise.
29017
29018         * modules/gc-arcfour-tests (License): Likewise.
29019
29020         * modules/gc-arctwo-tests (License): Likewise.
29021
29022         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
29023
29024         * modules/gc-hmac-sha1-tests (Files): Likewise.
29025
29026         * modules/gc-hmac-md5-tests (License): Likewise.
29027
29028         * modules/gc-sha1-tests (License): Likewise.
29029
29030         * modules/gc-md5-tests (License): Likewise.
29031
29032         * modules/gc-md4-tests (License): Likewise.
29033
29034         * modules/gc-md2-tests (License): Likewise.
29035
29036         * modules/gc-tests (License): Likewise.
29037
29038         * modules/des-tests (License): Likewise.
29039
29040         * modules/md4-tests (License): Likewise.
29041
29042         * modules/md2-tests (License): Likewise.
29043
29044 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
29045
29046         Sync from coreutils:
29047
29048         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
29049         * modules/lib-ignore: New file.
29050         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
29051         chdir-safer.m4, lchmod.m4.
29052         * modules/openat: Add mkdirat.c, openat-priv.h.
29053
29054 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
29055
29056         Sync from coreutils.
29057         * m4/lib-ignore.m4: New file.
29058         * m4/lchmod.m4: New file.
29059
29060 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
29061
29062         Sync from coreutils.
29063         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
29064         for write access: POSIX says that must fail.
29065         * lib/fts.c (diropen): Likewise.
29066         * lib/save-cwd.c (save_cwd): Likewise.
29067         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
29068         well, for minor improvements on hosts that lack O_DIRECTORY.
29069         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
29070         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
29071         Fall back on chown if open failed with EACCES.
29072
29073         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
29074         Report an error at compile-time if only a 1-second nominal clock
29075         resolution is found.
29076
29077         * lib/lchmod.h: New file.
29078         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
29079         (make_dir_parents): Use lchown rather than chown, and
29080         lchmod rather than chmod.
29081
29082         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
29083         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
29084         "proc" reported by n0dalus.
29085
29086         * lib/mountlist.c: Include <limits.h>.
29087         (dev_from_mount_options)
29088         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
29089         New function.  It no longer assumes "dev=" has the System V meaning
29090         on Linux (since it doesn't).  It also parses "dev=" more carefully.
29091         (read_file_system_list)
29092         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
29093         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
29094         dev= in that case.
29095
29096         * lib/posixtm.h (PDS_PRE_2000): New macro.
29097         * lib/posixtm.c (year): Arg is now syntax_bits rather than
29098         allow_century.  All usages changed.  Reject dates outside the range
29099         1969-1999 if PDS_PRE_2000 is used.
29100
29101 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
29102
29103         Sync from coreutils.
29104         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
29105         (Time of day items): Mention the possibility of leap seconds.
29106         Problem reported by Dr. David Alan Gilbert.
29107
29108 2006-01-09  Jim Meyering  <jim@meyering.net>
29109
29110         Sync from coreutils.
29111
29112         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
29113
29114         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
29115
29116         * lib/modechange.c (mode_compile): Reject an invalid mode string
29117         that starts with an octal digit.  From Andreas Gruenbacher.
29118
29119         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
29120         and dup to open_safer and dup_safer, respectively.
29121         (openat_permissive): Fix typo in comment.
29122
29123         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
29124         "gettext.h"; either no longer needed or are guaranteed by openat.h.
29125         (_): Remove; no longer needed.
29126         (openat): Renamed from rpl_openat; no need for rpl_openat
29127         since openat.h renames openat for us.
29128         Replace most of the body with a call to openat_permissive,
29129         to avoid duplicate code.
29130         Port to (probably hypothetical) environments were mode_t is
29131         wider than int.
29132         (openat_permissive): Require mode arg, so that we can check
29133         types better.  Put it just after flags.  Change cwd failure
29134         indicator from pointer-to-bool to pointer-to-errno-value.
29135         All callers changed.
29136         Invoke openat_save_fail and/or openat_restore_fail if
29137         cwd_errno is null, so that openat can call us.
29138         (openat_permissive, fdopendir, fstatat, unlinkat):
29139         Simplify errno handling to avoid some duplicate code,
29140         as it's OK to set errno on success.
29141         * lib/openat.h: Revamp code so that function macros depend on
29142         __OPENAT_PREFIX only, not also on AT_FDCWD.
29143         (openat_ro): Remove.  Caller changed to use openat_permissive.
29144         (openat_permissive): Now a macro, if not a function.
29145         (openat_restore_fail, openat_save_fail): Now always functions,
29146         since mkdirat needs them even if __OPENAT_PREFIX is defined.
29147
29148         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
29149         and openat.c.
29150         * lib/mkdirat.c: Include openat-priv.h.
29151         Remove definitions of macros defined therein.
29152         * lib/openat.c: Likewise.
29153
29154         * lib/mkdirat.c (mkdirat): New file and function.
29155         * lib/openat.h (mkdirat): Declare.
29156
29157         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
29158
29159         * lib/openat.h (openat_permissive): Declare.
29160         (openat_ro): Define.
29161
29162         * lib/openat.c (EXPECTED_ERRNO): New macro.
29163         (openat_permissive): New function -- used in remove.c rewrite.
29164         (all functions): Set errno just before returning, only if there
29165         was an actual failure.
29166         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
29167
29168         Emulate openat-family functions using Linux's procfs, if possible.
29169         Idea and some code based on Ulrich Drepper's glibc changes.
29170
29171         * lib/openat.c: (BUILD_PROC_NAME): New macro.
29172         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
29173         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
29174         before falling back on save_cwd and restore_cwd.
29175         (fdopendir, fstatat, unlinkat): Likewise.
29176
29177         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
29178         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
29179
29180         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
29181         as second argument to va_arg.  Otherwise, some versions of gcc
29182         warn that `if this code is reached, the program will abort'.
29183
29184 2006-01-09  Jim Meyering  <jim@meyering.net>
29185
29186         Sync from coreutils.
29187         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
29188         Require openat-priv.h.
29189
29190 2006-01-09  Bruno Haible  <bruno@clisp.org>
29191
29192         * modules/strnlen (Include): Use strnlen.h.
29193
29194 2006-01-09  Bruno Haible  <bruno@clisp.org>
29195
29196         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
29197
29198 2006-01-09  Bruno Haible  <bruno@clisp.org>
29199
29200         * lib/sysexit_.h (EX_OK): New macro.
29201         Suggested by Martin Lambers <marlam@marlam.de>.
29202
29203 2006-01-09  Bruno Haible  <bruno@clisp.org>
29204
29205         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
29206         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
29207
29208 2006-01-09  Bruno Haible  <bruno@clisp.org>
29209
29210         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
29211         numbers.
29212
29213 2006-01-09  Bruno Haible  <bruno@clisp.org>
29214
29215         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
29216         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
29217         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
29218         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
29219
29220 2006-01-09  Bruno Haible  <bruno@clisp.org>
29221
29222         * build-aux/javacomp.sh.in: New file, moved from lib/.
29223         * modules/javacomp-script (Files): Update.
29224         (configure.ac): Add AC_CONFIG_FILES invocation.
29225         (EXTRA_DIST): Remove variable.
29226
29227         * build-aux/javaexec.sh.in: New file, moved from lib/.
29228         * modules/javaexec (Files): Update.
29229         (configure.ac): Add AC_CONFIG_FILES invocation.
29230         (EXTRA_DIST): Remove javaexec.sh.in.
29231
29232         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
29233         * modules/csharpcomp-script (Files): Update.
29234         (configure.ac): Add AC_CONFIG_FILES invocation.
29235         (EXTRA_DIST): Remove variable.
29236
29237         * build-aux/csharpexec.sh.in: New file, moved from lib/.
29238         * modules/csharpexec (Files): Update.
29239         (configure.ac): Add AC_CONFIG_FILES invocation.
29240         (EXTRA_DIST): Remove csharpexec.sh.in.
29241
29242 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
29243
29244         Sync from coreutils.
29245
29246         Add POSIX ACL support
29247         * lib/acl.h (copy_acl, set_acl): Add declarations.
29248         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
29249         systems other than Linux.
29250         (chmod_or_fchmod): New function: use fchmod when possible,
29251         and chmod otherwise.
29252         (file_has_acl): Add a POSIX ACL implementation, with a
29253         Linux-specific subcase.
29254         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
29255         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
29256         acls are unsupported.
29257         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
29258         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
29259         are unsupported.
29260
29261 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
29262
29263         Sync from coreutils.
29264         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
29265
29266 2006-01-07  Bruno Haible  <bruno@clisp.org>
29267
29268         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
29269         gl_EARLY.
29270
29271 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
29272
29273         * lib/strftime.c (tzname): Don't declare if it is already #defined.
29274         Problem reported for Mingw by Mark Junker.
29275
29276 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
29277
29278         * README: Gnulib normally doesn't generate a tarball.
29279
29280 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
29281
29282         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
29283         long int, not int, for nanosecond counts, so that people who are
29284         used to POSIX struct timespec won't be surprised.  Reported by Jim
29285         Meyering.
29286
29287 2005-12-28  Bruno Haible  <bruno@clisp.org>
29288
29289         * build-aux/config.rpath: Update from GNU gettext.
29290
29291 2005-12-16  Jim Meyering  <jim@meyering.net>
29292
29293         * modules/fprintftime: New module.
29294         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
29295
29296 2005-12-16  Jim Meyering  <jim@meyering.net>
29297
29298         * m4/fprintftime.m4: New file.
29299
29300 2005-12-16  Jim Meyering  <jim@meyering.net>
29301
29302         * lib/fprintftime.c, lib/fprintftime.h: New files.
29303
29304 2005-12-15  Simon Josefsson  <jas@extundo.com>
29305
29306         * modules/socklen (configure.ac): Fix M4 macro name, to align with
29307         new m4/socklen.m4.
29308
29309 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
29310
29311         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
29312         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
29313
29314 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
29315
29316         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
29317         * lib/argp-help.c (fill_in_uparams): Check if the constructed
29318         struct uparams is valid. Fall back to the default values if it is
29319         not.
29320
29321 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
29322
29323         * modules/argp (Files): Add argp-pin.c
29324         (Depends-on): dirname
29325         (lib_SOURCES): Add argp-pin.c
29326
29327 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
29328
29329         * m4/argp.m4:  Check if program_invocation_name and
29330         program_invocation_short_name are declared and define appropriate
29331         macros if they are not.
29332
29333 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
29334
29335         * lib/argp-help.c (__argp_base_name): New function
29336         (__argp_short_program_name): Rewrite using __argp_base_name
29337         * lib/argp-namefrob.h: Define program_invocation_name and
29338         program_invocation_short_name if requested
29339         (__argp_base_name): Add prototype
29340         * lib/argp-parse.c (argp_def): Use gettext wrappers
29341         (argp_default_parser): Use __argp_base_name
29342         * lib/argp-pin.c: New file. Defines program_invocation_name and
29343         program_invocation_short_name on systems that lack them.
29344
29345 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
29346
29347         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
29348         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
29349         porting problem reported by Georg Schwarz in
29350         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
29351
29352 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
29353
29354         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
29355         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
29356         porting problem reported by Georg Schwarz in
29357         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
29358
29359 2005-12-05  Bruno Haible  <bruno@clisp.org>
29360
29361         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
29362         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
29363         Reported by Mark Junker <mjscod@gmx.de>.
29364
29365 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
29366
29367         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
29368         Use implementation from Albert Chin, with some
29369         comments/corrections by Stepan Kasal and myself.
29370
29371 2005-12-02  Bruno Haible  <bruno@clisp.org>
29372
29373         * gnulib-tool (func_import): Accept GPLed build tool modules when
29374         --lgpl is given.
29375         * modules/csharpcomp-script: New file.
29376         * modules/csharpcomp: Depend on it.
29377         * modules/javacomp-script: New file.
29378         * modules/javacomp: Depend on it.
29379         Suggested by Simon Josefsson.
29380
29381 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
29382
29383         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
29384         statement, to work around an HP-UX 10.20 compiler bug reported by
29385         Peter O'Gorman.
29386
29387 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
29388
29389         * modules/savedir (Depends-on): Add openat.
29390
29391 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
29392
29393         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
29394         (uintmax_t) [defined uintmax_t]: Do not declare.
29395         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
29396         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
29397         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
29398         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
29399         sake of portability to weird hosts that C allows (though we don't
29400         know of any practical examples).
29401
29402         * lib/savedir.h (fdsavedir): New decl.
29403         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
29404         contains most of the former guts of savedir.
29405         (savedir): Use savedirstream.
29406         Include "openat.h".
29407
29408 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
29409
29410         * modules/obstack (Files): Add m4/ulonglong.m4.
29411         Problem reported by Davide Angelocola.
29412
29413 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
29414
29415         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
29416         coreutils no longer futzes with rounding modes.
29417
29418 2005-11-14  Jim Meyering  <jim@meyering.net>
29419
29420         * lib/mkstemp-safer.c: Include <config.h>, required for possible
29421         replacement of mkstemp.
29422
29423 2005-11-10  Simon Josefsson  <jas@extundo.com>
29424
29425         * lib/readline.c: Remove EOL.
29426
29427 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
29428
29429         * modules/gethrxtime (Depends-on): Add gettime.
29430
29431 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
29432
29433         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
29434         or gettimeofday; no longer needed.
29435
29436 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
29437
29438         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
29439         time business.
29440         (gethrxtime) [! (HAVE_NANOUPTIME
29441         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
29442         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
29443         our own approximation.
29444
29445 2005-11-08  Eric Blake  <ebb9@byu.net>
29446
29447         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
29448
29449 2005-11-08  Eric Blake  <ebb9@byu.net>
29450
29451         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
29452
29453 2005-11-04  Bruno Haible  <bruno@clisp.org>
29454
29455         * gnulib-tool: Implement --update mode.
29456
29457 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
29458
29459         Fix porting problem reported by Theodoros V. Kalamatianos.
29460         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
29461         Don't assume that futimes failing means we must fail.
29462
29463 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
29464
29465         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
29466         variables to suggest the intended function of the PATH_MAX check.
29467
29468 2005-10-30  Kean Johnston  <jkj@sco.com>
29469
29470         Trivial changes to support SCO systems.
29471         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
29472         as PATH_MAX.
29473         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
29474         where __ptr is null when no I/O is pending.
29475
29476 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
29477
29478         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
29479         leave errno alone.  Problem reported by Dmitry V. Levin.
29480
29481 2005-10-28  Simon Josefsson  <jas@extundo.com>
29482
29483         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
29484         Test more.
29485
29486         * tests/test-gc-md2.c, tests/test-md2.c: New files.
29487
29488         * modules/md2, modules/md2-tests: New files.
29489
29490 2005-10-28  Simon Josefsson  <jas@extundo.com>
29491
29492         * m4/inet_ntop.m4: More tests.
29493
29494         * m4/gc-md2.m4, md2.m4: New file.
29495
29496 2005-10-28  Simon Josefsson  <jas@extundo.com>
29497
29498         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
29499         "restrict" keywords, as per POSIX.  Protect the function
29500         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
29501         Don't use K&R prototypes.  Check the sprintf return values.
29502         Re-define EAFNOSUPPORT if not present.  Indent.
29503
29504         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
29505         suggested by Bruno Haible <bruno@clisp.org>.
29506
29507         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
29508
29509         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
29510
29511         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
29512         libgcrypt).
29513
29514         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
29515
29516         * lib/md2.h, lib/md2.c: New files.
29517
29518 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
29519
29520         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
29521         errno alone.  Problem reported by Frederic Jolliton.
29522
29523 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
29524
29525         * modules/verify (License): Change from GPL to LGPL.  This is a
29526         tiny module and there are apparently near-equivalents that are
29527         under the BSD license.
29528
29529 2005-10-24  Simon Josefsson  <jas@extundo.com>
29530
29531         * modules/sha1: Relicense to LGPL.
29532
29533 2005-10-24  Simon Josefsson  <jas@extundo.com>
29534
29535         * lib/md4.h: Shrink buffer size, now that we changed the type.
29536
29537 2005-10-23  Simon Josefsson  <jas@extundo.com>
29538
29539         * gnulib-tool (func_import): Fix --tests-base.
29540
29541 2005-10-22  Simon Josefsson  <jas@extundo.com>
29542
29543         * modules/arcfour (Depends-on): Need stdint.
29544
29545 2005-10-22  Simon Josefsson  <jas@extundo.com>
29546
29547         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
29548         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
29549
29550 2005-10-22  Simon Josefsson  <jas@extundo.com>
29551
29552         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
29553         suggested by Bruno Haible <bruno@clisp.org>.
29554
29555 2005-10-22  Simon Josefsson  <jas@extundo.com>
29556
29557         * lib/crc.h: Include stddef.h, for size_t.
29558
29559 2005-10-22  Simon Josefsson  <jas@extundo.com>
29560
29561         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
29562         arcfour_context struct (simplify test vector testing in GNU
29563         Shishi).
29564
29565 2005-10-21  Simon Josefsson  <jas@extundo.com>
29566
29567         * modules/des, modules/des-tests: New files.
29568
29569         * modules/gc-des, modules/gc-des-tests: New files.
29570
29571         * tests/test-des.c, tests/test-gc-des.c: New file.
29572
29573 2005-10-21  Simon Josefsson  <jas@extundo.com>
29574
29575         * modules/arctwo, modules/arctwo-tests: New files.
29576
29577         * tests/test-arctwo.c: New file.
29578
29579         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
29580
29581         * tests/test-gc-arctwo.c: New file.
29582
29583 2005-10-21  Simon Josefsson  <jas@extundo.com>
29584
29585         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
29586         Bruno Haible <bruno@clisp.org>.
29587
29588         * m4/gc-des.m4: New file.
29589
29590 2005-10-21  Simon Josefsson  <jas@extundo.com>
29591
29592         * m4/arctwo.m4: New file.
29593
29594         * m4/gc-arctwo.m4: New file.
29595
29596 2005-10-21  Simon Josefsson  <jas@extundo.com>
29597
29598         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
29599         block.
29600
29601 2005-10-21  Simon Josefsson  <jas@extundo.com>
29602
29603         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
29604         <bruno@clisp.org>.
29605
29606         * lib/hmac-sha1.c (hmac_sha1): Likewise.
29607
29608         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
29609         Bruno Haible <bruno@clisp.org>.
29610
29611         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
29612         <bruno@clisp.org>.
29613
29614 2005-10-21  Simon Josefsson  <jas@extundo.com>
29615
29616         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
29617
29618 2005-10-21  Simon Josefsson  <jas@extundo.com>
29619
29620         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
29621
29622 2005-10-21  Simon Josefsson  <jas@extundo.com>
29623
29624         * lib/des.h, lib/des.c: New files.
29625
29626         * lib/gc-gnulib.c: Support DES.c
29627
29628 2005-10-21  Simon Josefsson  <jas@extundo.com>
29629
29630         * lib/arctwo.h, lib/arctwo.c: New files.
29631
29632         * lib/gc-gnulib.c: Support ARCTWO.
29633
29634 2005-10-21  Simon Josefsson  <jas@extundo.com>
29635
29636         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
29637         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29638
29639 2005-10-21  Simon Josefsson  <jas@extundo.com>
29640
29641         * gnulib-tool (func_import, func_create_testdir): Define automake
29642         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
29643         Makefile.am snippet),
29644         suggested by Bruno Haible <bruno@clisp.org>.
29645
29646         * modules/gc (Makefile.am): Use it.
29647
29648 2005-10-21  Bruno Haible  <bruno@clisp.org>
29649
29650         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
29651         patch.
29652
29653 2005-10-19  Simon Josefsson  <jas@extundo.com>
29654
29655         * tests/test-gc-rijndael.c: New file.
29656
29657         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
29658
29659 2005-10-19  Simon Josefsson  <jas@extundo.com>
29660
29661         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
29662         interface too.
29663
29664 2005-10-19  Simon Josefsson  <jas@extundo.com>
29665
29666         * tests/test-gc-arcfour.c: New file.
29667
29668         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
29669
29670 2005-10-19  Simon Josefsson  <jas@extundo.com>
29671
29672         * modules/gc-md4, modules/gc-md4-tests: New file.
29673
29674         * tests/test-gc-md4.c: New file.
29675
29676 2005-10-19  Simon Josefsson  <jas@extundo.com>
29677
29678         * m4/gc-md4.m4: New file.
29679
29680 2005-10-19  Simon Josefsson  <jas@extundo.com>
29681
29682         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
29683         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
29684         <kasal@ucw.cz>.
29685
29686 2005-10-19  Simon Josefsson  <jas@extundo.com>
29687
29688         * m4/gc-arcfour.m4: New file.
29689
29690         * m4/gc-rijndael.m4: New file.
29691
29692 2005-10-19  Simon Josefsson  <jas@extundo.com>
29693
29694         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
29695
29696 2005-10-19  Simon Josefsson  <jas@extundo.com>
29697
29698         * lib/gc-gnulib.c: Support ARCFOUR.
29699
29700 2005-10-19  Simon Josefsson  <jas@extundo.com>
29701
29702         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
29703         support.
29704
29705         * lib/gc.h: Add ECB enum type.
29706
29707         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
29708
29709 2005-10-18  Simon Josefsson  <jas@extundo.com>
29710
29711         * tests/test-md5.c: New file.
29712
29713         * modules/md5-tests: New file.
29714
29715 2005-10-18  Simon Josefsson  <jas@extundo.com>
29716
29717         * tests/test-md4.c: New file.
29718
29719         * modules/md4, modules/md4-tests: New files.
29720
29721 2005-10-18  Simon Josefsson  <jas@extundo.com>
29722
29723         * m4/md4.m4: New file.
29724
29725 2005-10-18  Simon Josefsson  <jas@extundo.com>
29726
29727         * lib/md4.h, lib/md4.c: New files, based on md5.?.
29728
29729 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
29730
29731         * gnulib-tool (func_create_testdir): Omit the second check whether
29732         BUILT_SOURCES in nonempty.
29733
29734 2005-10-17  Simon Josefsson  <jas@extundo.com>
29735
29736         * tests/test-rijndael.c: New file.
29737
29738 2005-10-17  Simon Josefsson  <jas@extundo.com>
29739
29740         * modules/sha1: Depend on stdint instead of md5.
29741
29742         * modules/md5: Depend on stdint, remove uint32_t.
29743
29744 2005-10-17  Simon Josefsson  <jas@extundo.com>
29745
29746         * modules/gc-sha1-tests: New file.
29747
29748         * tests/test-gc-sha1.c: New file.
29749
29750 2005-10-17  Simon Josefsson  <jas@extundo.com>
29751
29752         * m4/md5.m4: Remove call to uint32_t.m4.
29753
29754 2005-10-17  Simon Josefsson  <jas@extundo.com>
29755
29756         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
29757
29758         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
29759         md5.h.
29760
29761         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
29762
29763         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
29764
29765 2005-10-17  Simon Josefsson  <jas@extundo.com>
29766
29767         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
29768
29769 2005-10-17  Simon Josefsson  <jas@extundo.com>
29770
29771         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
29772
29773 2005-10-17  Simon Josefsson  <jas@extundo.com>
29774
29775         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
29776
29777         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
29778
29779 2005-10-17  Bruno Haible  <bruno@clisp.org>
29780
29781         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
29782         that it can also be used in a test.
29783
29784 2005-10-16  Bruno Haible  <bruno@clisp.org>
29785
29786         * gnulib-tool (func_emit_tests_Makefile_am): Also define
29787         TESTS_ENVIRONMENT, so that individual tests can augment it.
29788
29789         * gnulib-tool (func_create_testdir): Use an intermediate target for
29790         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
29791         macros, like $(ALLOCA_H), which cannot be passed through the command
29792         line.
29793
29794 2005-10-15  Simon Josefsson  <jas@extundo.com>
29795
29796         * modules/rijndael-tests: New file.
29797
29798         * modules/rijndael: New file.
29799
29800 2005-10-15  Simon Josefsson  <jas@extundo.com>
29801
29802         * m4/rijndael.m4: New file.
29803
29804 2005-10-15  Simon Josefsson  <jas@extundo.com>
29805
29806         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
29807
29808         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
29809
29810 2005-10-14  Simon Josefsson  <jas@extundo.com>
29811
29812         * tests/test-arcfour.c: New file.
29813
29814         * modules/arcfour, modules/arcfour-tests: New files.
29815
29816 2005-10-14  Simon Josefsson  <jas@extundo.com>
29817
29818         * m4/arcfour.m4: New file.
29819
29820 2005-10-14  Simon Josefsson  <jas@extundo.com>
29821
29822         * lib/arcfour.h, lib/arcfour.c: New files.
29823
29824 2005-10-14  Roland McGrath  <roland@redhat.com>
29825
29826         Import from libc.  [BZ #1331]
29827         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
29828         macro argument.
29829         Reported by Matej Vela <vela@debian.org>.
29830
29831 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
29832
29833         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
29834         include <wchar.h>; no longer needed.
29835
29836 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
29837
29838         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
29839
29840 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
29841         and  Ulrich Drepper  <drepper@redhat.com>
29842
29843         Import from libc.
29844         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
29845         instead of inline stream orientation test and two separate
29846         function calls.  Pay no attention to USE_IN_LIBIO.
29847
29848 2005-10-13  Simon Josefsson  <jas@extundo.com>
29849
29850         * modules/gc-hmac-md5-tests: New file.
29851
29852         * tests/test-gc-hmac-sha1.c: New file.
29853
29854         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
29855
29856         * modules/gc-hmac-md5-tests: New file.
29857
29858         * tests/test-gc-md5.c: New file.
29859
29860         * modules/gc-md5-tests: New file.
29861
29862 2005-10-13  Simon Josefsson  <jas@extundo.com>
29863
29864         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
29865         Move memory allocation outside of loop.
29866
29867 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
29868
29869         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
29870         intermediate directory is in a read-only file system.  Problem
29871         reported by Eric Blake.
29872
29873 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
29874
29875         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
29876
29877 2005-10-12  Simon Josefsson  <jas@extundo.com>
29878
29879         * tests/test-hmac-sha1.c: New file.
29880
29881         * modules/hmac-sha1-tests: New file.
29882
29883         * modules/hmac-sha1: New file.
29884
29885 2005-10-12  Simon Josefsson  <jas@extundo.com>
29886
29887         * modules/gc-sha1: New file.
29888
29889 2005-10-12  Simon Josefsson  <jas@extundo.com>
29890
29891         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
29892
29893         * tests/test-gc-pbkdf2-sha1.c: New file.
29894
29895 2005-10-12  Simon Josefsson  <jas@extundo.com>
29896
29897         * modules/gc-md5, modules/gc-hmac-md5: New files.
29898
29899         * modules/gc (Files): Remove md5, memxor and hmac files.
29900
29901 2005-10-12  Simon Josefsson  <jas@extundo.com>
29902
29903         * m4/gc-pbkdf2-sha1.m4: New file.
29904
29905         * m4/gc-hmac-sha1.m4: New file.
29906
29907         * m4/gc-sha1: New file.
29908
29909         * m4/hmac-sha1.m4: New file.
29910
29911 2005-10-12  Simon Josefsson  <jas@extundo.com>
29912
29913         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
29914
29915         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
29916
29917 2005-10-12  Simon Josefsson  <jas@extundo.com>
29918
29919         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
29920         suggested by Bruno Haible <bruno@clisp.org>.
29921
29922 2005-10-12  Simon Josefsson  <jas@extundo.com>
29923
29924         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
29925
29926 2005-10-12  Simon Josefsson  <jas@extundo.com>
29927
29928         * lib/gc-pbkdf2-sha1.c: New file.
29929
29930         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
29931
29932 2005-10-12  Simon Josefsson  <jas@extundo.com>
29933
29934         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
29935
29936         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
29937
29938 2005-10-12  Simon Josefsson  <jas@extundo.com>
29939
29940         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
29941         GC_USE_HMAC_MD5, respectively.
29942
29943         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
29944         (gc_md5): Fix typo.
29945
29946         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
29947
29948         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
29949
29950         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
29951
29952 2005-10-12  Bruno Haible  <bruno@clisp.org>
29953
29954         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
29955         Reported by Stepan Kasal <kasal@ucw.cz>.
29956
29957 2005-10-11  Simon Josefsson  <jas@extundo.com>
29958
29959         * tests/test-crc.c: New file.
29960
29961         * modules/crc, modules/crc-tests: New files.
29962
29963 2005-10-11  Simon Josefsson  <jas@extundo.com>
29964
29965         * m4/crc.m4: New file.
29966
29967 2005-10-11  Simon Josefsson  <jas@extundo.com>
29968
29969         * lib/gc.h: Add gc_hash and gc_hash_buffer.
29970
29971         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
29972
29973         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
29974
29975 2005-10-11  Simon Josefsson  <jas@extundo.com>
29976
29977         * lib/crc.h, lib/crc.c: New files.
29978
29979         * lib/gc.h (gc_hash_buffer): Add doc.
29980
29981 2005-10-11  Bruno Haible  <bruno@clisp.org>
29982
29983         * modules/c-strcasestr: New file.
29984         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
29985
29986 2005-10-11  Bruno Haible  <bruno@clisp.org>
29987
29988         * modules/c-strcase: New file.
29989         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
29990
29991 2005-10-11  Bruno Haible  <bruno@clisp.org>
29992
29993         * lib/strcasecmp.c: Include limits.h.
29994         (strcasecmp): Avoid integer overflow on exotic platforms.
29995         * lib/strncasecmp.c: Include limits.h.
29996         (strncasecmp): Avoid integer overflow on exotic platforms.
29997         Reported by Paul Eggert.
29998
29999 2005-10-11  Bruno Haible  <bruno@clisp.org>
30000
30001         * lib/c-strcasestr.h: New file, from GNU gettext.
30002         * lib/c-strcasestr.c: New file, from GNU gettext.
30003
30004 2005-10-11  Bruno Haible  <bruno@clisp.org>
30005
30006         * lib/c-strcase.h: New file, from GNU gettext.
30007         * lib/c-strcasecmp.c: New file, from GNU gettext.
30008         * lib/c-strncasecmp.c: New file, from GNU gettext.
30009
30010 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
30011
30012         * modules/mempcpy (License): GPL -> LGPL.
30013         * modules/strchrnul (License): Likewise.
30014         * modules/sysexits (License): Likewise.
30015
30016 2005-10-08  Simon Josefsson  <jas@extundo.com>
30017
30018         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
30019
30020 2005-10-07  Simon Josefsson  <jas@extundo.com>
30021
30022         * m4/memxor.m4: Remove gl_C_RESTRICT call.
30023
30024 2005-10-06  Simon Josefsson  <jas@extundo.com>
30025
30026         * tests/test-hmac-md5.c: New file.
30027
30028         * modules/hmac-md5-tests: New file.
30029
30030         * modules/hmac-md5: New file.
30031
30032 2005-10-06  Simon Josefsson  <jas@extundo.com>
30033
30034         * m4/hmac-md5.m4: New file.
30035
30036         * m4/memxor.m4: Require gl_C_RESTRICT.
30037
30038 2005-10-06  Simon Josefsson  <jas@extundo.com>
30039
30040         * lib/memxor.c (memxor): Avoid casts and warnings.
30041
30042 2005-10-06  Simon Josefsson  <jas@extundo.com>
30043
30044         * lib/hmac-md5.c: New file.
30045
30046         * lib/hmac.h: New file.
30047
30048 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
30049
30050         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
30051         promotes to int, not unsigned int, to catch the AIX 5.3
30052         compiler bug.
30053
30054 2005-10-05  Simon Josefsson  <jas@extundo.com>
30055
30056         * modules/memxor: New file.
30057
30058         * modules/iconv (Files): Move config.rpath to havelib, it is used
30059         there.
30060
30061         * modules/havelib (Files): Add config.rpath.
30062
30063 2005-10-05  Simon Josefsson  <jas@extundo.com>
30064
30065         * m4/memxor.m4: New file.
30066
30067 2005-10-05  Simon Josefsson  <jas@extundo.com>
30068
30069         * lib/memxor.c (memxor): Fix compiler error.
30070
30071         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
30072         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
30073
30074         * lib/memxor.h, lib/memxor.c: New files.
30075
30076         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
30077         we assume all systems have it, suggested by Jim Meyering
30078         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
30079         any systems lack sys/socket.h; mingw32 is known to lack it, but we
30080         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
30081         same reasons.
30082
30083 2005-10-05  Simon Josefsson  <jas@extundo.com>
30084
30085         * config/srclist.txt: Add glibc bug 1423 for md5.h.
30086
30087 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
30088
30089         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
30090         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
30091         needed, since the source code now assumes these .h files.
30092
30093 2005-10-05  Derek Price  <derek@ximbiot.com>
30094
30095         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
30096
30097 2005-10-05  Bruno Haible  <bruno@clisp.org>
30098
30099         * modules/stdint (License): Change to LGPL.
30100
30101 2005-10-04  Simon Josefsson  <jas@extundo.com>
30102
30103         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
30104         D. Baushke" <mdb@gnu.org>.
30105
30106 2005-10-04  Bruno Haible  <bruno@clisp.org>
30107
30108         * lib/verify.h (verify_true): Provide alternative definition for C++.
30109
30110 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
30111
30112         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
30113         (SSIZE_MAX): New macro, if not already defined.
30114         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
30115         than 2 GiB.
30116
30117 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
30118
30119         Sync from coreutils.
30120         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
30121         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
30122         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
30123         ULLONG_MAX doesn't work with 2.7.2.1.
30124
30125 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
30126
30127         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
30128         From Ben Pfaff.
30129
30130         * modules/exclude (Depends-on): Depend on verify.
30131         * modules/strtoimax (Depends-on): Likewise.
30132         * modules/utimecmp (Depends-on): Likewise.
30133
30134 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
30135
30136         * lib/exclude.c: Include verify.h.
30137         (verify): Remove.  All callers changed to use verify.h's version.
30138         * lib/strtoimax.c: Likewise.
30139         * lib/utimecmp.c: Likewis.e
30140
30141         Sync from coreutils.
30142         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
30143         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
30144         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
30145         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
30146         bother returning ENOSYS if settimeofday or stime fails; just let
30147         them return whatever errno they want to return.
30148         * lib/utimens.c: Include unistd.h, for dup2.
30149         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
30150         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
30151
30152 2005-10-02  Jim Meyering  <jim@meyering.net>
30153
30154         Sync from coreutils.
30155         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
30156         from glibc-2.2.5 that fails for read-only files.
30157
30158 2005-10-02  Jim Meyering  <jim@meyering.net>
30159
30160         Sync from coreutils.
30161         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
30162         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
30163         `#if HAVE_CONFIG_H'.
30164         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
30165         Remove AT_FDCWD test.
30166         Do not consume the fd unless successful.
30167         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
30168         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
30169         block, so that we don't even try to compile it if settimeofday is
30170         available.  This works around a compilation failure on OSF1 V5.1,
30171         due to stime requiring a `long int*' while tv_sec is `int'.
30172
30173 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
30174
30175         Sync from coreutils.
30176         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
30177         against `yes', rather than just testing for nonempty.
30178
30179 2005-10-01  Simon Josefsson  <jas@extundo.com>
30180
30181         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
30182         and Darwin.
30183
30184         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
30185         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
30186         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
30187         freeaddrinfo and gai_strerror are declared by the POSIX headers.
30188         Check if struct addrinfo is declared.
30189
30190 2005-10-01  Simon Josefsson  <jas@extundo.com>
30191
30192         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
30193         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
30194         AI_* and EAI_* definitions.  Protect function declarations.
30195
30196 2005-10-01  Jim Meyering  <jim@meyering.net>
30197
30198         Sync from coreutils.
30199
30200         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
30201         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
30202         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
30203         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
30204         in the inet and nsl libraries.  Required on Solaris 5.7.
30205
30206 2005-10-01  Jim Meyering  <jim@meyering.net>
30207
30208         Sync from coreutils.
30209         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
30210         in the inet and nsl libraries.  Required on Solaris 5.7.
30211
30212 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
30213
30214         * lib/getdelim.c (getdelim): Remove unused variables.
30215
30216 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
30217
30218         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
30219         so that the code works even with ancient cpp.  Portability problem
30220         with GCC 2.7.2.1 reported by Thomas M.Ott.
30221
30222 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
30223
30224         * modules/regex (Depends-on): Add strcase.
30225
30226         * modules/gethostname (Licence): Change from GPL to LGPL, since
30227         gethostname.c is a trivial implementation of a standard library
30228         function.
30229         * modules/poll (License): Change from GPL to LGPL, since it's
30230         derived from LGPL code.
30231
30232 2005-09-27  Jim Meyering  <jim@meyering.net>
30233
30234         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
30235         HAVE_CONFIG_H.
30236
30237         * lib/intprops.h (signed_type_or_expr__): Define.
30238         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
30239         for unsigned types.
30240
30241 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
30242
30243         * lib/verify.h (verify_expr): Remove, replacing with:
30244         (verify_true): New macro that returns true instead of void.
30245         (verify_type__): Remove.
30246         (verify): Use verify_true rather than verify_type__.
30247
30248 2005-09-26  Bruno Haible  <bruno@clisp.org>
30249
30250         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
30251         is necessary.
30252         (lib_SOURCES): Remove mbchar.c.
30253         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
30254         (Files): Add m4/mbrtowc.m4.
30255         * modules/mbiter: Likewise.
30256         * modules/mbuiter: Likewise.
30257
30258 2005-09-26  Bruno Haible  <bruno@clisp.org>
30259
30260         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
30261         compile mbchar.c if they are not both present.
30262         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
30263         * m4/mbiter.m4 (gl_MBITER): Likewise.
30264         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
30265         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
30266         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
30267
30268 2005-09-25  Jim Meyering  <jim@meyering.net>
30269
30270         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
30271         also uses socklen_t.
30272
30273 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
30274
30275         * lib/utimens.c (ENOSYS): Define if not already defined.
30276         (futimens): Support having a null PATH if the file descriptor
30277         is nonnegative.
30278
30279         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
30280         Remove.
30281         (__attribute): Define to empty unless GCC 3.1 or later.
30282         This works around a core dump on OpenBSD 3.4, which has GCC
30283         2.95.3, which dumps core when given __attribute__(()).  It also
30284         simplifies other tests, since we really don't want to bother with
30285         worrying about which ancient version of GCC supported what.
30286         Original problem reported by Yoann Vandoorselaere, with part of
30287         the fix suggested by Derek Price.
30288
30289 2005-09-24  Jim Meyering  <jim@meyering.net>
30290
30291         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
30292         so we can once again use a positive bitfield width of 1 -- now we
30293         don't have to explain why we were using a bitfield width of 2.
30294
30295 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
30296
30297         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
30298         and similarly for the other external symbols.  Problem reported
30299         by James Gallager.
30300
30301         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
30302         bug reported by Jim Meyering.
30303
30304         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
30305         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
30306         not needed, since socklen is a prerequisite module.
30307
30308 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
30309
30310         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
30311         Problem reported by Eric Blake.
30312         (getaddrinfo): Initialize se so that it's not garbage.
30313         Redo internal storage allocation so that it doesn't make unportable
30314         assumptions about alignment.
30315         Fix a memory leak.
30316
30317         * lib/utimens.c (futimens): Use futimesat if available.
30318         Prefer it to futimes since it doesn't have the futimes bug.
30319
30320         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
30321         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
30322         Instead, declare a function that returns a pointer to an array,
30323         and use verify_type__ to declare the size of the array.
30324         Problem and germ of a solution reported by Bruno Haible.
30325         (verify_type__): Use 2, not 1, for bitfield size, to avoid
30326         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
30327
30328 2005-09-23  Jim Meyering  <jim@meyering.net>
30329
30330         Sync from coreutils.
30331         Correct build failure (socklen_t not defined) on at least
30332         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
30333         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
30334
30335 2005-09-23  Jim Meyering  <jim@meyering.net>
30336
30337         * modules/getaddrinfo (Depends-on): Add socklen.
30338
30339 2005-09-23  Bruno Haible  <bruno@clisp.org>
30340
30341         * tests/test-verify.c: New file.
30342
30343 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
30344
30345         Sync from coreutils.
30346
30347         * modules/argmatch (Depends-on): Add verify.
30348         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
30349         unistd-safer.
30350         * modules/save-cwd (Depends-on): Likewise.
30351
30352         * modules/openat (Files): Add lib/openat-die.c.
30353         (Depends-on): Remove error, exitfail.
30354         Add dirname.
30355
30356         * modules/verify: New file.
30357         * MODULES.html.sh (Diagnostics <assert.h>): New section,
30358         with "verify" module.
30359
30360 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
30361
30362         Sync from coreutils.
30363
30364         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
30365         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
30366         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
30367         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
30368         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
30369         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
30370         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
30371         Don't bother checking for string.h, stdlib.h, unistd.h.
30372         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
30373         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
30374         module's job.
30375         * m4/jm-macros.m4 (gl_MACROS): Likewise.
30376         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
30377
30378         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
30379         (gl_GETDATE): Use it.
30380
30381         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
30382
30383 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
30384
30385         Sync from coreutils.
30386
30387         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
30388         stat-time.h.
30389         * lib/argmatch.h: Include verify.h
30390         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
30391         (ARGMATCH_ASSERT): Remove; unused.
30392         * lib/canonicalize.c: Assume STDC_HEADERS.
30393         * lib/exclude.c: Include "strcase.h".
30394         * lib/regex_internal.h [!defined _LIBC]: Likewise.
30395         * lib/getusershell.c: Include stdio--.h rather than stdio.h
30396         and stdio-safer.h.
30397         (getusershell): Call fopen, not fopen_safer.
30398         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
30399         Do not include unistd-safer.h.
30400         (save_cwd): Don't call fd_safer; no longer needed
30401         now that we include fcntl--.h.
30402
30403         * lib/getdate.y (relative_time): New type.
30404         (RELATIVE_TIME_0): New constant.
30405         (parser_control): Use relative_time instead of doing it ourselves.
30406         (%union): Add new relative_time rel member.
30407         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
30408         Now typeless.
30409         (relunit, relunit_snumber): Now of type rel.
30410         (zone, rel, relunit, get_date): Adjust to above changes.
30411
30412         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
30413         Do not include unistd-safer.h.
30414         (getloadavg): Don't call fd_safer; no longer needed
30415         now that we include fcntl--.h.
30416
30417         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
30418         (make_dir_parents): Treat ENOSYS like EEXIST.
30419
30420         Improve quality of diagnostics on restore_cwd failure.
30421         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
30422         (make_dir_parents): Last arg is now int * (for errno), not bool *.
30423         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
30424         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
30425         each time through the loop.  Do not diagnose restore_cwd failure;
30426         that is the caller's job (and perhaps the caller does not care).
30427
30428         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
30429         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
30430         If the file already exists but is not a directory, don't bother
30431         to try to make its parents.
30432         Close potential file descriptor leak if we can't chdir("/") (!).
30433         Don't always return true if chdir($PWD) fails; return true only
30434         if the requested action was done successfully (except for the
30435         chdir($PWD)).
30436         Don't log final directory unless we actually made it.
30437         Refactor to avoid duplicate code to fix up permissions.
30438         Don't attempt to fix up parent permissions if chdir($PWD) fails.
30439
30440         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
30441         to make it a bit faster and (I hope) clearer.
30442         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
30443         Fix bug in formats like %2N.
30444
30445         * lib/verify.h: New file.
30446
30447 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
30448
30449         Sync from coreutils.
30450         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
30451
30452 2005-09-22  Jim Meyering  <jim@meyering.net>
30453
30454         Sync from coreutils.
30455
30456         * m4/lstat.m4 (gl_FUNC_LSTAT):
30457         Use AC_LIBSOURCES to require lstat.c and lstat.h.
30458         Remove obsolete comment.
30459         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
30460         * m4/xstrtod.m4: Likewise.
30461
30462         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
30463
30464 2005-09-22  Jim Meyering  <jim@meyering.net>
30465
30466         Sync from coreutils.
30467
30468         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
30469
30470         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
30471         the .tm_year member, since otherwise gcc-4.0 would now warn about
30472         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
30473
30474         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
30475         order to avoid an unsuppressible warning from gcc on 64-bit systems.
30476
30477         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
30478         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
30479         when run in a time zone for which daylight savings time is in effect
30480         for the starting date.
30481
30482         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
30483         stop us from restricting permissions of just-created absolute-named
30484         directories.
30485         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
30486         to restore initial working directory.
30487         * lib/mkdir-p.c (make_dir_parents): New parameter:
30488         different_working_dir, to tell caller if/when we change the working
30489         directory and are unable to return to the initial one.
30490         * lib/mkdir-p.h (make_dir_parents): Update prototype.
30491         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
30492         `return false'.  This fixes a bug introduced on 2004-07-30.
30493
30494         * lib/openat.c (fdopendir): Be sure to close the supplied
30495         file descriptor before returning.  This makes our replacement
30496         implementation a little closer to Solaris's, where fdopendir
30497         ties the file descriptor to the returned DIR* pointer.
30498         * lib/openat.c (unlinkat): New function.
30499         * lib/openat.h (unlinkat): Add prototype.
30500         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
30501         (openat_restore_fail): Rename from openat_restore_die.
30502         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
30503
30504         Provide an alternative to exiting immediately upon save_cwd or
30505         restore_cwd failure.  Now, an application can arrange e.g.,
30506         to perform a longjump in that case.
30507         * lib/openat.c: Include dirname.h.
30508         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
30509         (rpl_openat, fdopendir, fstatat): Call openat_save_die
30510         and openat_restore_die rather than calling error directly.
30511         Don't include "error.h" or "exitfail.h"; they're no longer needed.
30512
30513         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
30514         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
30515         define.
30516
30517         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
30518         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
30519                             int utc, int nanoseconds);
30520         Background:
30521         date should not have to allocate a megabyte of virtual memory to
30522         handle a format argument like +%1048575T.  When implemented with
30523         strftime, it must allocate such a buffer, use strftime to fill it
30524         in, print it, then free it.
30525         With fprintftime, it simply prints everything and exits.
30526         With no need for memory allocation, that's one fewer way to fail.
30527         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
30528         optional field width, not before, so we accept %9:z, not %:9z.
30529         (my_strftime): Be sure to use L_('x') for literals.
30530
30531         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
30532         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
30533         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
30534         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
30535         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
30536         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
30537         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
30538         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
30539         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
30540         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
30541         * lib/xgethostname.c, lib/xreadlink.c:
30542         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
30543
30544         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
30545         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
30546         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
30547         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
30548         and don't include <sys/file.h>).
30549
30550 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
30551
30552         Sync from coreutils.
30553
30554         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
30555         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
30556         [!LDAV_DONE]: Avoid unused variable warning.
30557
30558 2005-09-21  Bruno Haible  <bruno@clisp.org>
30559
30560         * lib/unicodeio.h (unicode_to_mb): New declaration.
30561
30562 2005-09-20  Derek Price  <derek@ximbiot.com>
30563
30564         * lib/getaddrinfo.c: Don't include <netdb.h> included from
30565         getaddrinfo.h.
30566
30567 2005-09-20  Bruno Haible  <bruno@clisp.org>
30568
30569         * gnulib-tool: Remove trailing slashes from the values specified for
30570         --source-base, --m4-base, --tests-base, --aux-dir.
30571         Suggested by Simon Josefsson <jas@extundo.com>.
30572
30573 2005-09-20  Bruno Haible  <bruno@clisp.org>
30574
30575         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
30576         func_modules_to_filelist, func_import, func_create_testdir): Make all
30577         sorting results locale-independent, so that gnulib-cache.m4 doesn't
30578         change when gnulib-tool is invoked in a different locale.
30579
30580 2005-09-19  Simon Josefsson  <jas@extundo.com>
30581
30582         * m4/socklen.m4: Fix typo.
30583
30584 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30585
30586         Use a consistent style for including <config.h>.
30587         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
30588         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
30589         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
30590         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
30591         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
30592         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
30593         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
30594         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
30595         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
30596         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
30597         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
30598         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
30599         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
30600         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
30601         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
30602         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
30603         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
30604         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
30605         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
30606         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
30607         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
30608         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
30609         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
30610         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
30611         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
30612         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
30613         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
30614         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
30615         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
30616         lib/xstrtoumax.c, lib/yesno.c:
30617         Standardize inclusion of config.h.
30618         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
30619         lib/inttostr.h:  Removed inclusion of config.h from header files.
30620         * lib/inttostr.c:  Adjusted in-tree users.
30621         * lib/timespec.h: Remove superfluous warning to include config.h.
30622         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
30623         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
30624         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
30625         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
30626         config.h with HAVE_CONFIG_H.
30627
30628 2005-09-19  Jim Meyering  <jim@meyering.net>
30629
30630         * modules/pathmax (License): Change to LGPL.
30631
30632 2005-09-19  Derek Price  <derek@ximbiot.com>
30633
30634         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
30635
30636 2005-09-19  Bruno Haible  <bruno@clisp.org>
30637
30638         * gnulib-tool (import): Provide default for --tests-base.
30639
30640 2005-09-19  Bruno Haible  <bruno@clisp.org>
30641
30642         * doc/quote.texi: New file, extracted from gnulib.texi.
30643         * doc/ctime.texi: New file, extracted from gnulib.texi.
30644         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
30645         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
30646         * doc/gnulib.texi: Include them.
30647
30648 2005-09-18  Bruno Haible  <bruno@clisp.org>
30649
30650         Portability fix.
30651         * gnulib-tool (func_readlink): New function.
30652         (func_ln_if_changed): Use it.
30653
30654 2005-09-18  Bruno Haible  <bruno@clisp.org>
30655
30656         * gnulib-tool: Support --with-tests also with --import.
30657         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
30658         (func_import): Use variables $testsbase and $inctests. Emit a
30659         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
30660         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
30661         SUBDIRS += $testsdir.
30662         (func_create_testdir): Update.
30663
30664 2005-09-18  Bruno Haible  <bruno@clisp.org>
30665
30666         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
30667         instead of $dry_run.
30668         (func_cp_if_changed, func_mv_if_changed): Remove functions.
30669         (func_ln_if_changed): Don't handle dry-run here.
30670         (func_import): In dry-run mode, detect more precisely which actions
30671         would be performed, and don't use "...ing" verbs.
30672
30673 2005-09-18  Bruno Haible  <bruno@clisp.org>
30674
30675         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
30676         (func_import): Use join on two temporary files instead of three nested
30677         loops, in order to determine which files are new or old.
30678
30679 2005-09-18  Bruno Haible  <bruno@clisp.org>
30680
30681         * gnulib-tool (func_import): Comment out code that spits out the
30682         new files with --dry-run.
30683
30684 2005-09-18  Bruno Haible  <bruno@clisp.org>
30685
30686         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
30687
30688 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
30689
30690         * lib/stat-time.h: New file.
30691         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
30692         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
30693         in a different way.
30694         (timespec_cmp): New function.
30695         * lib/utimecmp.c: Include stat-time.h.
30696         (SYSCALL_RESOLUTION): Depend on whether various struct stat
30697         members exist, not on the obsolescent ST_MTIM_NSEC.
30698         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
30699
30700 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
30701
30702         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
30703
30704 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
30705
30706         * MODULES.html.sh (File system functions): Add stat-time.
30707         * modules/stat-time: New file.
30708         * modules/timespec (Files): Remove m4/st_mtim.m4; this
30709         is now done in a different way, by the stat-time module.
30710         * modules/utimecmp (Depends-on): Add stat-time.
30711
30712 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
30713
30714         * m4/st_mtim.m4: Remove.  Superseded by...
30715         * m4/stat-time.m4: New file.
30716         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
30717         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
30718
30719 2005-09-15  Derek Price  <derek@ximbiot.com>
30720
30721         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
30722
30723 2005-09-15  Derek Price  <derek@ximbiot.com>
30724
30725         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
30726         * lib/regex_internal.c: Ditto, using this...
30727         (__GNUC_PREREQ): ...new macro.
30728         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
30729         using...
30730         (__GNUC_PREREQ): ...this new macro.
30731
30732         * lib/strstr.h: Include string.h. Define strstr as a macro here.
30733
30734 2005-09-15  Derek Price  <derek@ximbiot.com>
30735             Paul Eggert  <eggert@cs.ucla.edu>
30736
30737         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
30738         changes, consolidating in...
30739         * lib/regex_internal.h: ...this file.
30740
30741 2005-09-13  Jim Meyering  <jim@meyering.net>
30742
30743         * lib/canon-host.c: Filter through gnu indent and reword comments
30744         slightly.
30745         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
30746
30747 2005-09-13  Derek Price  <derek@ximbiot.com>
30748
30749         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
30750         failure.
30751         Reported by Jim Meyering  <jim@meyering.net>.
30752
30753 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
30754
30755         * lib/base64.c: Typo.
30756         (base64_encode): Put b64str in initialized data section.
30757
30758 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
30759
30760         Merge glibc and coreutils changes into gnulib, plus a few
30761         extra fixes.
30762         * lib/md5.c: Use #error rather than a string.
30763         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
30764         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
30765         (__attribute__): Define to empty for non recent-GCC.
30766         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
30767         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
30768         Renamed from their non-__ counterparts, with new macros replacing
30769         them if not _LIBC.  Add __THROW attribute.
30770         (rol): Remove.
30771         (struct md5_ctx): Align buffer if using GCC.
30772         * lib/sha1.h (struct sha1_ctx): Likewise.
30773         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
30774         The old name was backwards.
30775         (NOTSWAP): Remove; not used.
30776         (rol): New macro, moved here from md5.h.
30777         (sha1_process_block): Remove a FIXME that doesn't make sense.
30778
30779 2005-09-12  Derek Price  <derek@ximbiot.com>
30780
30781         Return usable errors from canon-host.
30782         * lib/canon-host.h: New file.
30783         * lib/canon-host.c (canon_host): Wrap...
30784         (canon_host_r): ...this new function, which now relies exclusively on
30785         getaddrinfo.
30786         (ch_strerror): New function.
30787         (last_cherror): New global.
30788         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
30789         interface.
30790         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
30791         void *.
30792         (freeaddrinfo): Free ai->ai_canonname when set.
30793
30794 2005-09-12  Derek Price  <derek@ximbiot.com>
30795
30796         Make canon-host require getaddrinfo.
30797         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
30798         AC_LIBSOURCE canon-host.h.  Call...
30799         (gl_PREREQ_CANON_HOST): ...this new function, which requires
30800         gl_GETADDRINFO.
30801         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
30802
30803 2005-09-12  Derek Price  <derek@ximbiot.com>
30804
30805         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
30806         LGPL.
30807         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
30808
30809 2005-09-12  Derek Price  <derek@ximbiot.com>
30810
30811         * lib/gai_strerror.c: Include config.h when available.  Include
30812         getaddrinfo.h before other headers to test interface.
30813         Reported by Larry Jones <lawrence.jones@ugs.com>.
30814
30815 2005-09-12  Derek Price  <derek@ximbiot.com>
30816             Paul Eggert  <eggert@cs.ucla.edu>
30817
30818         * modules/glob (Files): Add glob-libc.h.
30819
30820 2005-09-12  Derek Price  <derek@ximbiot.com>
30821             Paul Eggert  <eggert@cs.ucla.edu>
30822
30823         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
30824         glob_.h, glob-libc.h.
30825         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
30826
30827 2005-09-12  Derek Price  <derek@ximbiot.com>
30828             Paul Eggert  <eggert@cs.ucla.edu>
30829
30830         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
30831         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
30832         protecting things that should be done only in gnulib contexts.
30833         * lib/glob_.h: New file, containing only the glob things needed for
30834         gnulib.
30835         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
30836         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
30837         (glob, globfree, glob_pattern_p): Now defined simply in terms of
30838         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
30839         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
30840         and to respect the namespace rules better.
30841
30842 2005-09-08  Simon Josefsson  <jas@extundo.com>
30843
30844         * modules/socklen: New file.
30845
30846 2005-09-08  Simon Josefsson  <jas@extundo.com>
30847
30848         * m4/socklen.m4: New file.
30849
30850 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
30851
30852         * modules/utimens (Files): Add m4/utimbuf.m4, since
30853         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
30854         Reported by Sergey Poznyakoff.
30855
30856 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
30857
30858         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
30859         definitions, since that's the preferred style in glibc.
30860         Fix a minor spacing issue, and update copyright notice to match
30861         glibc's.
30862
30863 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
30864
30865         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
30866
30867 2005-09-06  Simon Josefsson  <jas@extundo.com>
30868
30869         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
30870         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
30871
30872 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
30873
30874         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
30875         warning.
30876
30877 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
30878
30879         * config/srclist.txt: Add glibc bug 1302.
30880
30881 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
30882
30883         Change bitset word type from unsigned int to unsigned long int,
30884         as this has better performance on typical 64-bit hosts.
30885         Port bitset code to hosts with unusual word sizes.
30886         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
30887         (build_collating_symbol):
30888         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
30889         argument is a bitset.  This is merely a style issue, but it makes
30890         it clearer that an entire array is expected.
30891         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
30892         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
30893         Port to the case where bitset_word is not the same as unsigned int.
30894         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
30895         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
30896         Likewise.
30897         * lib/regexec.c (check_dst_limits_calc_pos_1,
30898         check_subexp_matching_top):
30899         (build_trtable, group_nodes_into_DFAstates):
30900         Likewise.
30901         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
30902         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
30903         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
30904         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
30905         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
30906         * lib/regcomp.c (optimize_subexps, lower_subexp):
30907         Work even if bitset_word has holes in its bitwise representation.
30908         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
30909         * lib/regexec.c (check_dst_limits_calc_pos_1,
30910         check_subexp_matching_top):
30911         Likewise.
30912         * lib/regex_internal.c (re_string_reconstruct):
30913         Don't assume UCHAR_MAX == 255.
30914         * lib/regex_internal.h (bitset_set_all): Likewise.
30915         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
30916         All uses changed.
30917         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
30918         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
30919         All uses changed.
30920         (BITSET_WORD_MAX): New macro.
30921         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
30922         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
30923         (bitset_empty, bitset_copy):
30924         Prefer sizeof (bitset) to multiplying it out ourselves.
30925         (bitset_not_merge): Remove; unused.
30926         (bitset_contain): Return bool, not unsigned int with one bit on.
30927         All callers changed.
30928         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
30929         alignment than re_node_set; do this by defining a new internal
30930         type struct dests_alloc and using it to allocate memory.
30931
30932 2005-09-05  Bruno Haible  <bruno@clisp.org>
30933
30934         * gnulib-tool (func_import): Fix comparison in handling of symbolic
30935         links.
30936
30937 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
30938
30939         * modules/size_max (Makefile.am): Add size_max.h
30940
30941 2005-09-04  Derek Price  <derek@ximbiot.com>
30942
30943         * gnulib-tool (func_import): Fix reversed $symbolic logic.
30944
30945 2005-09-03  Simon Josefsson  <jas@extundo.com>
30946
30947         * gnulib-tool: Fix typo.
30948
30949 2005-09-03  Simon Josefsson  <jas@extundo.com>
30950
30951         * config/srclist.txt: Add glibc bug 1293.
30952
30953 2005-09-03  Derek Price  <derek@ximbiot.com>
30954
30955         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
30956         From Larry Jones <lawrence.jones@ugs.com>.
30957
30958 2005-09-02  Simon Josefsson  <jas@extundo.com>
30959
30960         * modules/socklen: New file.
30961
30962 2005-09-02  Simon Josefsson  <jas@extundo.com>
30963
30964         * modules/havelib: New module.
30965
30966         * modules/gettext, modules/iconv, modules/lock, modules/readline:
30967         Use havelib.
30968
30969 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
30970
30971         Check for arithmetic overflow when calculating sizes, to prevent
30972         some buffer-overflow issues.  These patches are conservative, in the
30973         sense that when I couldn't determine whether an overflow was possible,
30974         I inserted a run-time check.
30975         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
30976         macros.
30977         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
30978         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
30979         (re_xnrealloc, re_x2nrealloc): New inline functions.
30980         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
30981         parse_bracket_exp):
30982         (build_equiv_class, build_charclass): Check for arithmetic overflow
30983         in size expression calculations.
30984         * lib/regex_internal.c (re_string_realloc_buffers):
30985         (build_wcs_upper_buffer, re_node_set_add_intersect):
30986         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
30987         (re_dfa_add_node, register_state): Likewise.
30988         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
30989         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
30990         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
30991         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
30992
30993 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
30994
30995         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
30996         m4/ulonglong.m4.  Problem reported by Martin Lambers.
30997
30998 2005-09-02  Bruno Haible  <bruno@clisp.org>
30999
31000         Support for lib vs. lib64 distinction on biarch platforms.
31001         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
31002         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
31003         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
31004
31005 2005-09-02  Bruno Haible  <bruno@clisp.org>
31006
31007         * gnulib-tool (import): In the other first-use case, provide defaults
31008         as well.
31009
31010 2005-09-02  Bruno Haible  <bruno@clisp.org>
31011
31012         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
31013         patches not yet found in the latest gettext release.
31014
31015 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
31016
31017         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
31018         to avoid a collision with bits/local_lim.h in glibc.
31019         All uses changed.  Problem reported by Dmitry V. Levin in
31020         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
31021
31022         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
31023         bugs in int versus size_t comparisons.
31024         (re_string_context_at): Fix bug where the code assumed that
31025         Idx is signed.
31026
31027         Use bool where appropriate.
31028         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
31029         All callers changed.
31030         (calc_eclosure_iter): Likewise, for ROOT arg.
31031         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
31032         (build_charclass_op): Likewise, for NON_MATCH arg.
31033         * lib/regex_internal.c (re_string_allocate, re_string_construct):
31034         (re_string_construct_common): Likewise, for ICASE arg.
31035         * lib/regexec.c (re_search_2_stub, re_search_stub):
31036         Likewise, for RET_LEN arg.
31037         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
31038         (set_regs): Likewise, for FL_BACKTRACK arg.
31039         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
31040         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
31041         (calc_eclosure_iter, parse_bracket_exp):
31042         Use bool for internal variables that are booleans.
31043         * lib/regexec.c (re_search_internal, check_matching,
31044         proceed_next_node):
31045         (set_regs, build_sifted_states, sift_states_bkref):
31046         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
31047         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
31048         (find_collation_sequence_value):
31049         Likewise.
31050         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
31051         (re_node_set_compare):
31052         Return bool, not int. All callers changed.
31053         * lib/regexec.c (check_halt_node_context, check_dst_limits):
31054         (build_trtable, check_node_accept): Likewise.
31055         * lib/regex_internal.h: Include stdbool.h.
31056
31057         Fix bugs uncovered when converting to bool.
31058         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
31059         failure instead of charging ahead blindly.
31060         * lib/regex_internal.c (register_state): Likewise.
31061         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
31062         for freeing internal storage.
31063         (group_nodes_into_DFA_states): Use unsigned int, not int, for
31064         bitset pieces used as boolean, to avoid undefined behavior
31065         on hosts that do int overflow checking.
31066
31067 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
31068
31069         * config/srclist.txt: Add glibc bugs 1285-1287.
31070
31071 2005-09-01  Jim Meyering  <jim@meyering.net>
31072
31073         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
31074         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
31075         Require gl_STAT_MACROS, too.
31076
31077 2005-09-01  Bruno Haible  <bruno@clisp.org>
31078
31079         * gnulib-tool (import): In the first-use case, provide defaults.
31080
31081 2005-09-01  Bruno Haible  <bruno@clisp.org>
31082
31083         * gnulib-tool (func_import): Remove the .tmp files.
31084
31085 2005-09-01  Bruno Haible  <bruno@clisp.org>
31086
31087         * gnulib-tool (func_import): Fix handling of symbolic links.
31088
31089 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
31090
31091         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
31092         old glibc regex code mishandles strings longer than 2**31 bytes.
31093         This patch fixes this when the regex code is used in gnulib
31094         (i.e., outside glibc).
31095
31096         This patch should not affect the use of the regex code inside
31097         glibc.  No doubt this problem also needs to be handled for glibc
31098         as well, but the result will be an incompatible change to the
31099         glibc ABI, and the old ABI will have to be supported too.  That
31100         can be the the subject for another patch.
31101
31102         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
31103         governing whether the rest of this patch is active.  By default,
31104         the macro is disabled and the patch has no effect.
31105         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
31106         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
31107         (struct re_pattern_buffer, re_search, re_search_2, re_match):
31108         (re_match_2, re_set_registers): Use the new types.
31109         * lib/regex_internal.h (Idx, re_hashval_t): New types.
31110         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
31111         New macros.
31112         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
31113         (re_string_context_at, bin_tree_t, re_dfastate_t):
31114         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
31115         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
31116         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
31117         (re_string_char_size_at, re_string_wchar_at):
31118         (re_string_elem_size_at):
31119         Use the new types and macros to port to 64-bit hosts.
31120         Use unsigned types for internal values, so that the code
31121         mostly works even for arrays larger than SSIZE_MAX.
31122         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
31123         (search_duplicated_node, calc_eclosure_iter, fetch_number):
31124         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
31125         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
31126         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
31127         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
31128         (calc_inveclosure, parse_dup_op, build_range_exp):
31129         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
31130         (fetch_number, create_token_tree, mark_opt_subexp):
31131         Likewise.
31132         * lib/regex_internal.c (re_string_construct_common,
31133         create_ci_newstate):
31134         (create_cd_newstate, re_string_allocate, re_string_construct):
31135         (re_string_realloc_buffers, build_wcs_upper_buffer):
31136         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
31137         (re_string_reconstruct, re_string_peek_byte_case):
31138         (re_string_fetch_byte_case, re_string_context_at):
31139         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
31140         (re_node_set_init_copy, re_node_set_add_intersect):
31141         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
31142         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
31143         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
31144         (re_acquire_state, re_acquire_state_context, register_state):
31145         Likewise.
31146         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
31147         search_cur_bkref_entry):
31148         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
31149         (re_search_internal, re_search_2_stub, re_search_stub)
31150         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
31151         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
31152         (update_cur_sifted_state, check_dst_limits):
31153         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
31154         (check_subexp_limits, sift_states_bkref, merge_state_array):
31155         (check_subexp_matching_top, get_subexp, get_subexp_sub):
31156         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
31157         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
31158         (expand_bkref_cache, check_node_accept_bytes):
31159         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
31160         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
31161         (acquire_init_state_context, check_halt_node_context):
31162         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
31163         (sift_states_backward, clean_state_log_if_needed):
31164         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
31165         (find_recover_state, transit_state_sb, transit_state_mb):
31166         (transit_state_bkref, build_trtable, match_ctx_clean):
31167         Likewise.
31168         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
31169         to work around an assumption that REG_MISSING is negative.
31170
31171         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
31172         (seek_collating_symbol_entry) [defined _LIBC]:
31173         (lookup_collation_sequence_value) [defined _LIBC]:
31174         (build_range_exp, build_collating_symbol) [defined _LIBC]:
31175         Use prototypes rather than old-style function definitions.
31176         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
31177         (transit_state_sb) [0]:
31178         (find_collation_sequence_value) [defined _LIBC]: Likewise.
31179
31180         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
31181         rm_eo.
31182
31183         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
31184         (optimize_subexps, lower_subexp):
31185         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
31186         since the signed shift might overflow.  Use 1u<<31 instead.
31187         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
31188         Likewise.
31189         * lib/regexec.c (check_dst_limits_calc_pos_1,
31190         check_subexp_matching_top): Likewise.
31191
31192         * lib/regcomp.c (optimize_subexps, lower_subexp):
31193         Use CHAR_BIT rather than 8, for clarity.
31194         * lib/regexec.c (check_dst_limits_calc_pos_1):
31195         (check_subexp_matching_top): Likewise.
31196         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
31197         have to worry about portability issues when shifting it left.
31198         Remove no-longer-needed test for table_size > 0.
31199         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
31200         in a word, as the resulting behavior is undefined.
31201         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
31202         in one case, a <= should have been an <, and in another case the
31203         whole test was missing.
31204         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
31205         the standard name CHAR_BIT.
31206         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
31207         this is not true on one's complement and signed-magnitude hosts.
31208
31209         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
31210         next_last_offset.
31211         (struct re_dfa_t): Remove unused member states_alloc.
31212         * lib/regcomp.c (init_dfa): Don't initialize unused members.
31213
31214 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
31215
31216         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
31217         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
31218         and large-file glibc and in 32-bit large-file Solaris.
31219
31220 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
31221
31222         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
31223         lengths fit in regoff_t; this isn't true if regoff_t is the same
31224         width as size_t.
31225         * lib/regex.c (re_search_internal): 5th arg is LAST_START
31226         (= START + RANGE) instead of RANGE.  This avoids overflow
31227         problems when regoff_t is the same width as size_t.
31228         All callers changed.
31229         (re_search_2_stub): Check for overflow when adding the
31230         sizes of the two strings.
31231         (re_search_stub): Check for overflow when adding START
31232         to RANGE; if it occurs, substitute the extreme value.
31233
31234 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
31235
31236         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
31237
31238 2005-08-31  Jim Meyering  <jim@meyering.net>
31239
31240         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
31241         a pointer-to-const.
31242         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
31243         (register_state): Likewise.
31244         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
31245         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
31246         (group_nodes_into_DFAstates): Likewise.
31247
31248 2005-08-31  Jim Meyering  <jim@meyering.net>
31249
31250         * check-module: Add a FIXME comment.
31251
31252 2005-08-31  Eric Blake  <ebb9@byu.net>
31253
31254         * modules/unistd-safer (Files): Add unistd--.h.
31255         * modules/stdio-safer (Files): Add stdio--.h.
31256
31257 2005-08-31  Derek Price  <derek@ximbiot.com>
31258
31259         * lib/getdelim.c (getdelim): Return EOF on EOF.
31260         Reported by Larry Jones <lawrence.jones@ugs.com>.
31261
31262 2005-08-31  Bruno Haible  <bruno@clisp.org>
31263
31264         Avoid unnecessary diffs in the generated lib/Makefile.am.
31265         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
31266         the generated files.
31267         (func_import): Don't set cmd.
31268
31269 2005-08-31  Bruno Haible  <bruno@clisp.org>
31270
31271         * lib/strstr.c: Include <stddef.h>, for NULL.
31272         * lib/strcasestr.c: Likewise.
31273         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
31274
31275 2005-08-31  Bruno Haible  <bruno@clisp.org>
31276
31277         * gnulib-tool: New option --macro-prefix.
31278         (func_import): Use macro_prefix.
31279         (import): Handle option --macro-prefix.
31280
31281 2005-08-31  Bruno Haible  <bruno@clisp.org>
31282
31283         * gnulib-tool (import): Rename most ac_* variables to cached_*.
31284         Also use new variables cached_lgpl, cached_libtool.
31285
31286 2005-08-31  Bruno Haible  <bruno@clisp.org>
31287
31288         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
31289         always instantiating them.
31290
31291 2005-08-31  Bruno Haible  <bruno@clisp.org>
31292
31293         * gnulib-tool (func_import): Read the previous cached settings
31294         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
31295         earlier added by gnulib but are now dropped. Warn when a gnulib file
31296         overwrites a non-gnulib file.
31297
31298 2005-08-31  Bruno Haible  <bruno@clisp.org>
31299
31300         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
31301         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
31302         projects that don't keep autogenerated files in CVS. Put into
31303         actioncmd only the specified modules, not the transitive closure.
31304
31305 2005-08-31  Bruno Haible  <bruno@clisp.org>
31306
31307         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
31308         Create directories that shall be filled.
31309         (import): Don't look for gl_* macros in configure.ac. Recurse across
31310         all directories containing a gnulib-cache.m4 files, if meaningful.
31311
31312 2005-08-31  Bruno Haible  <bruno@clisp.org>
31313
31314         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
31315         (import): Set seen_libtool when we see gl_LIBTOOL.
31316
31317 2005-08-31  Bruno Haible  <bruno@clisp.org>
31318
31319         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
31320         declaration macro definitions from generated gnulib.m4.
31321
31322 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
31323
31324         * lib/iconvme.h: Add prototype for iconv_alloc.
31325
31326 2005-08-29  Simon Josefsson  <jas@extundo.com>
31327
31328         * lib/iconvme.c: Fix errno.
31329
31330 2005-08-29  Bruno Haible  <bruno@clisp.org>
31331
31332         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
31333         that it works when the directory contains spaces.
31334
31335 2005-08-29  Bruno Haible  <bruno@clisp.org>
31336
31337         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
31338
31339 2005-08-29  Bruno Haible  <bruno@clisp.org>
31340
31341         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
31342         Emit more advice.
31343
31344 2005-08-29  Bruno Haible  <bruno@clisp.org>
31345         and Stepan Kasal  <kasal@ucw.cz>
31346
31347         * check-module: If more parameters are given, check each of them
31348         separately; add more exceptions, as noted by Jim Meyering.
31349         (check_module): New procedure.
31350         (%exempt_header): Now contains all exceptions.
31351
31352 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
31353
31354         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
31355
31356 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
31357
31358         * lib/iconvme.c: Split iconv_string into iconv_alloc.
31359
31360 2005-08-28  Bruno Haible  <bruno@clisp.org>
31361
31362         * m4/gnulib-tool.m4: New file.
31363
31364 2005-08-27  Jim Meyering  <jim@meyering.net>
31365
31366         * modules/unistd-safer (Files): Add pipe-safer.c.
31367         * modules/fcntl-safer (Files): Add creat-safer.c.
31368
31369 2005-08-27  Jim Meyering  <jim@meyering.net>
31370
31371         * m4/stdlib-safer.m4: New file.  From coreutils.
31372         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
31373         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
31374         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
31375         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
31376         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
31377
31378 2005-08-27  Jim Meyering  <jim@meyering.net>
31379
31380         * lib/fopen-safer.c: Merge minor changes from coreutils.
31381         * lib/dup-safer.c: Likewise.
31382         * lib/fd-safer.c: Likewise.
31383
31384         Merge from coreutils.
31385         * lib/stdio--.h: New file.
31386         * lib/stdlib--.h: New file.
31387         * lib/mkstemp-safer.c: New file.
31388
31389         GNU tar needs these.
31390         * lib/pipe-safer.c: New file.
31391         * lib/creat-safer.c: New file.
31392         * lib/fcntl--.h (creat): Define to creat_safer.
31393         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
31394         * lib/unistd--.h (pipe): Define to pipe_safer.
31395         * lib/unistd-safer.h: Declare pipe_safer.
31396
31397 2005-08-26  Simon Josefsson  <jas@extundo.com>
31398
31399         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
31400         Haible <bruno@clisp.org>.
31401
31402 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
31403
31404         * lib/regex_internal.h: Remove all references to
31405         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
31406         or better.
31407         (bitset_not, bitset_merge, bitset_not_merge):
31408         (bitset_mask, re_string_allocate, re_string_construct):
31409         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
31410         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
31411         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
31412         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
31413         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
31414         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
31415         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
31416         (re_acquire_state_context):
31417         Remove unnecessary forward decls.
31418         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
31419         Put __attribute at function definition,
31420         now that the function decl has been removed.
31421         * lib/regex_internal.c (re_string_peek_byte_case):
31422         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
31423         Likewise.
31424
31425 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
31426
31427         * m4/regex.m4: Add AC_PREREQ(2.50).
31428         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
31429
31430 2005-08-25  Simon Josefsson  <jas@extundo.com>
31431
31432         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
31433         __fsetlocking.
31434
31435 2005-08-25  Simon Josefsson  <jas@extundo.com>
31436
31437         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
31438         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
31439         GLIBC specific code.
31440
31441 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
31442
31443         Make regex safe for g++.  This fixes one real bug (an "err"
31444         that should have been "*err").  g++ problem reported by
31445         Sam Steingold.
31446         * lib/regex_internal.h (re_calloc): New macro, consistent with
31447         re_malloc etc.  All callers of calloc changed to use re_calloc.
31448         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
31449         not int.  All callers changed.
31450         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
31451         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
31452         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
31453         (find_recover_state): Change "err" to "*err"; this fixes what
31454         appears to be a real bug.
31455         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
31456         versus int.
31457
31458 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
31459
31460         * modules/regex (Depends-on): Add malloc, since the code
31461         assumes that !malloc(0) means failure.
31462
31463 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
31464
31465         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
31466
31467         alloca modernization/simplification for regex.
31468         * lib/regex.c: Remove portability cruft for alloca.  This no longer
31469         needs to be at the start of the file, and can be moved into
31470         regex_internal.h and simplified.
31471         * lib/regex_internal.h: Include <alloca.h>.
31472         (__libc_use_alloca) [!defined _LIBC]: New macro.
31473         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
31474         now works outside glibc.
31475
31476 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
31477
31478         * config/srclist.txt: Add glibc bugs 1241, 1245.
31479
31480 2005-08-25  Jim Meyering  <jim@meyering.net>
31481
31482         * lib/open-safer.c: Include <config.h>.
31483         Otherwise, we'd lose LARGEFILE support in any file using
31484         e.g. "fcntl--.h"
31485
31486 2005-08-25  Bruno Haible  <bruno@clisp.org>
31487
31488         * m4/minmax.m4: Require autoconf 2.52.
31489         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
31490         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
31491         alternatives of translit over the alphabet.
31492         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
31493
31494 2005-08-24  Simon Josefsson  <jas@extundo.com>
31495
31496         * tests/test-getpass.c: New file.
31497
31498 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
31499
31500         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
31501         for GNU regex features.
31502
31503 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
31504
31505         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
31506         * lib/regex.h (regerror): Likewise.
31507
31508         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
31509         requires this.  (The code never needed it.)
31510
31511         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
31512         All uses of recently-renamed identifiers changed to use the new,
31513         POSIX-compliant names.  The code will build and run just fine
31514         without these changes, but it's better to eat our own dog food
31515         and use the standard-conforming names.
31516
31517         * lib/regex.h: Fix a multitude of POSIX name space violations.
31518         These changes have an effect only for programs that define
31519         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
31520         do not change anything for programs compiled in the normal way.
31521         Also, there is no effect on the ABI.
31522
31523         (_REGEX_SOURCE): New macro.
31524         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
31525         defined and _GNU_SOURCE is not; this fixes a name space violation.
31526
31527         Rename the following macros to obey POSIX requirements.
31528         The old names are still visible as macros if _REGEX_SOURCE is defined.
31529         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
31530         RE_BACKSLASH_ESCAPE_IN_LISTS.
31531         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
31532         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
31533         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
31534         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
31535         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
31536         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
31537         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
31538         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
31539         (REG_INTERVALS): renamed from RE_INTERVALS.
31540         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
31541         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
31542         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
31543         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
31544         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
31545         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
31546         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
31547         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
31548         RE_UNMATCHED_RIGHT_PAREN_ORD.
31549         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
31550         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
31551         (REG_DEBUG): renamed from RE_DEBUG.
31552         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
31553         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
31554         unusual, since we can't clash with the POSIX REG_ICASE.
31555         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
31556         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
31557         (REG_NO_SUB): renamed from RE_NO_SUB.
31558         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
31559         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
31560         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
31561         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
31562         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
31563         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
31564         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
31565         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
31566         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
31567         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
31568         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
31569         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
31570         RE_SYNTAX_POSIX_MINIMAL_BASIC.
31571         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
31572         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
31573         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
31574         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
31575         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
31576         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
31577         (REG_FIXED): Renamed from REGS_FIXED.
31578         (REG_NREGS): Renamed from RE_NREGS.
31579
31580         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
31581         of other REG_* macros, since POSIX says the user is allowed to
31582         #undef these macros selectively.
31583
31584         (reg_errcode_t): Update comment stating what other tables need
31585         to be consistent.
31586
31587         Rename the following enum values to obey POSIX requirements.
31588         The old names are still visible as macros.
31589         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
31590         is not defined, since GNU is supposed to be a superset of POSIX as
31591         much as possible, and since we want reg_errcode_t to be a signed
31592         type for implementation consistency.
31593         (_REG_NOERROR): Renamed from REG_NOERROR.
31594         (_REG_NOMATCH): Renamed from REG_NOMATCH.
31595         (_REG_BADPAT): Renamed from REG_BADPAT.
31596         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
31597         (_REG_ECTYPE): Renamed from REG_ECTYPE.
31598         (_REG_EESCAPE): Renamed from REG_EESCAPE.
31599         (_REG_ESUBREG): Renamed from REG_ESUBREG.
31600         (_REG_EBRACK): Renamed from REG_EBRACK.
31601         (_REG_EPAREN): Renamed from REG_EPAREN.
31602         (_REG_EBRACE): Renamed from REG_EBRACE.
31603         (_REG_BADBR): Renamed from REG_BADBR.
31604         (_REG_ERANGE): Renamed from REG_ERANGE.
31605         (_REG_ESPACE): Renamed from REG_ESPACE.
31606         (_REG_BADRPT): Renamed from REG_BADRPT.
31607         (_REG_EEND): Renamed from REG_EEND.
31608         (_REG_ESIZE): Renamed from REG_ESIZE.
31609         (_REG_ERPAREN): Renamed from REG_ERPAREN.
31610         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
31611         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
31612         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
31613         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
31614
31615         (_REG_RE_NAME, _REG_RM_NAME): New macros.
31616         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
31617         changed.  But support the old name if the new one is not defined
31618         and if _REGEX_SOURCE.
31619
31620         Change the following member names in struct re_pattern_buffer.
31621         The old names are still supported if !_REGEX_SOURCE.
31622         The new names are always supported, regardless of _REGEX_SOURCE.
31623         (re_buffer): Renamed from buffer.
31624         (re_allocated): Renamed from allocated.
31625         (re_used): Renamed from used.
31626         (re_syntax): Renamed from syntax.
31627         (re_fastmap): Renamed from fastmap.
31628         (re_translate): Renamed from translate.
31629         (re_can_be_null): Renamed from can_be_null.
31630         (re_regs_allocated): Renamed from regs_allocated.
31631         (re_fastmap_accurate): Renamed from fastmap_accurate.
31632         (re_no_sub): Renamed from no_sub.
31633         (re_not_bol): Renamed from not_bol.
31634         (re_not_eol): Renamed from not_eol.
31635         (re_newline_anchor): Renamed from newline_anchor.
31636
31637         Change the following member names in struct re_registers.
31638         The old names are still supported if !_REGEX_SOURCE.
31639         The new names are always supported, regardless of _REGEX_SOURCE.
31640         (rm_num_regs): Renamed from num_regs.
31641         (rm_start): Renamed from start.
31642         (rm_end): Renamed from end.
31643
31644         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
31645         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
31646         Prepend __ to parameter names.
31647
31648         Undo yesterday's changes.
31649
31650 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
31651
31652         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
31653         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
31654         lib/regex.c.
31655
31656 2005-08-24  Jim Meyering  <jim@meyering.net>
31657
31658         Sync from coreutils.
31659         * m4/fcntl-safer.m4: New file.
31660
31661         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
31662         and object files for this module.
31663
31664 2005-08-24  Jim Meyering  <jim@meyering.net>
31665
31666         Sync from coreutils.
31667         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
31668
31669 2005-08-24  Jim Meyering  <jim@meyering.net>
31670
31671         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
31672         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
31673
31674 2005-08-24  Jim Meyering  <jim@meyering.net>
31675
31676         * modules/fcntl-safer: New module.
31677         * modules/fts (Depends-on): Add fcntl-safer.
31678         * MODULES.html.sh (File descriptor based Input/Output):
31679         Add fcntl-safer.
31680
31681 2005-08-24  Bruno Haible  <bruno@clisp.org>
31682
31683         Support for unit test modules.
31684         * modules/README: Mention tests modules.
31685         * modules/TEMPLATE-TESTS: New file.
31686         * gnulib-tool: New options --extract-tests-module, --with-tests and
31687         --tests-base (unused for the moment).
31688         (testsbase, inctests): New variables.
31689         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
31690         (func_verify_module): Exclude TEMPLATE-TESTS.
31691         (func_verify_nontests_module, func_verify_tests_module): New functions.
31692         (func_get_dependencies): Add implicit dependency for tests modules.
31693         (func_get_tests_module): New function.
31694         (func_modules_transitive_closure): When --with-tests was specified,
31695         include the unit tests as well, unless explicitly avoided.
31696         (func_emit_lib_Makefile_am): Ignore the tests modules here.
31697         (func_emit_tests_Makefile_am): New function.
31698         (func_create_testdir): When --with-tests was specified, emit a
31699         tests/ directory.
31700         * MODULES.html.sh (Future developments): Update.
31701
31702 2005-08-24  Bruno Haible  <bruno@clisp.org>
31703
31704         * modules/tls-tests: New file.
31705         * tests/test-tls.c: New file, from GNU gettext.
31706
31707 2005-08-24  Bruno Haible  <bruno@clisp.org>
31708
31709         * modules/lock-tests: New file.
31710         * tests/test-lock.c: New file, from GNU gettext.
31711
31712 2005-08-24  Bruno Haible  <bruno@clisp.org>
31713
31714         * lib/lock.h: Add multiple inclusion guard.
31715         * lib/tls.h: Add multiple inclusion guard.
31716
31717 2005-08-24  Bruno Haible  <bruno@clisp.org>
31718
31719         * gnulib-tool: Add support for the --aux-dir option to
31720         --create-testdir, --create-megatestdir, --test, --megatest.
31721         (func_create_testdir, func_create_megatestdir): Optionally emit a
31722         AC_CONFIG_AUX_DIR directive.
31723         (create-testdir, create-megatestdir, test, megatest): Provide a
31724         default value for $auxdir.
31725
31726 2005-08-24  Bruno Haible  <bruno@clisp.org>
31727
31728         * gnulib-tool (import): Use compound statement instead of subshell
31729         where possible.
31730
31731 2005-08-24  Bruno Haible  <bruno@clisp.org>
31732
31733         * gnulib-tool (import): Change --aux-dir default to "build-aux".
31734
31735 2005-08-24  Bruno Haible  <bruno@clisp.org>
31736
31737         * gnulib-tool (func_version): Update.
31738
31739 2005-08-24  Bruno Haible  <bruno@clisp.org>
31740
31741         * gnulib-tool (func_import, func_create_testdir,
31742         func_create_megatestdir): Quote all autoconf macro arguments.
31743
31744 2005-08-24  Bruno Haible  <bruno@clisp.org>
31745
31746         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
31747         option --force, because --force causes the aclocal.m4 of each
31748         subdirectory to be newer than the corresponding config.h.in.
31749
31750 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
31751
31752         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
31753         All contents moved to gl_REGEX.
31754         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
31755         assume that it does.
31756
31757 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
31758
31759         * lib/regex.h (REG_NOSYS)
31760         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
31761         Define, since POSIX requires it as of 2001.
31762         (_REG_ENOSYS)
31763         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
31764         New private symbol, used to keep the enum signed in all cases.
31765         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
31766         Youngman in
31767         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
31768
31769         * lib/regex_internal.c (re_string_skip_chars, register_state):
31770         (calc_state_hash):
31771         Remove forward decls; no longer needed now that we use prototypes.
31772         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
31773         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
31774         (clean_state_log_if_needed): Likewise.
31775
31776 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
31777
31778         * config/srclist.txt: Add glibc bugs 1231-1233.
31779
31780 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
31781
31782         Fix problems reported by Sam Steingold in
31783         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
31784         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
31785         assumed that reg_errcode_t is a signed type, which is not
31786         necessarily true if _XOPEN_SOURCE is not defined.
31787         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
31788         since some compilers warn about it otherwise.
31789
31790 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
31791
31792         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
31793         (init_word_char, create_initial_state, duplicate_node_closure):
31794         (fetch_token, peek_token_bracket, build_range_exp):
31795         (build_collating_symbol): Remove forward decls; no longer needed
31796         now that we use prototypes.
31797
31798         * lib/regcomp.c:
31799         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
31800         (re_compile_fastmap_iter, regcomp, regerror, regfree):
31801         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
31802         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
31803         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
31804         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
31805         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
31806         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
31807         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
31808         (build_range_exp, build_collating_symbol, parse_bracket_exp):
31809         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
31810         (build_charclass, build_charclass_op, fetch_number, create_tree):
31811         (create_token_tree, mark_opt_subexp, duplicate_tree):
31812         Use prototypes rather than old-style definitions.
31813
31814         * lib/regex_internal.c:
31815         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
31816         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
31817         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
31818         (re_string_reconstruct, re_string_peek_byte_case):
31819         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
31820         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
31821         (re_node_set_init_copy, re_node_set_add_intersect):
31822         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
31823         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
31824         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
31825         (re_acquire_state, re_acquire_state_context, register_state):
31826         (create_ci_newstate, create_cd_newstate, free_state):
31827         Likewise.
31828         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
31829         re_search_2):
31830         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
31831         (re_search_internal, prune_impossible_nodes):
31832         (acquire_init_state_context, check_matching, static):
31833         (check_halt_node_context, check_halt_state_context, proceed_next_node):
31834         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
31835         (update_regs, sift_states_backward, build_sifted_states):
31836         (clean_state_log_if_needed, merge_state_array):
31837         (update_cur_sifted_state, add_epsilon_src_nodes):
31838         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
31839         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
31840         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
31841         (find_recover_state, check_subexp_matching_top, transit_state_mb):
31842         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
31843         (check_arrival, check_arrival_add_next_nodes):
31844         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
31845         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
31846         (check_node_accept_bytes, check_node_accept, extend_buffers):
31847         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
31848         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
31849         (sift_ctx_init):
31850         Likewise.
31851
31852         * lib/regex_internal.h:
31853         (re_string_allocate, re_string_construct, re_string_reconstruct):
31854         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
31855         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
31856         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
31857         (re_string_context_at, re_string_peek_byte_case):
31858         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
31859         is defined, since we now use prototypes always.
31860
31861         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
31862         C89 or better.  All uses removed.
31863
31864 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
31865
31866         * config/srclist.txt: Add glibc bugs 1220-1227.
31867
31868 2005-08-20  Jim Meyering  <jim@meyering.net>
31869
31870         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
31871         of unused local, dfa.
31872
31873 2005-08-20  Bruno Haible  <bruno@clisp.org>
31874
31875         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
31876
31877 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
31878
31879         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
31880         (re_node_set_insert_last, re_dfa_add_node):
31881         Rename local variables to avoid GCC shadowing warnings.
31882
31883 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
31884
31885         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
31886         [defined lint]: Suppress bogus uninitialized-variable warnings.
31887
31888         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
31889         and let the caller return REG_ESPACE if out of space.  This
31890         removes an uninitialied-variable warning with GCC 4.0.1, and also
31891         avoids taking the address of a local variable.  All callers
31892         changed.
31893
31894 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
31895
31896         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
31897         $LIBCSRC/posix/regexec.c.
31898         Add glibc bug 1217 for regcomp.c.
31899
31900 2005-08-19  Jim Meyering  <jim@meyering.net>
31901
31902         * lib/regexec.c (proceed_next_node): Redo local variables to
31903         avoid GCC shadowing warnings.
31904
31905 2005-08-18  Bruno Haible  <bruno@clisp.org>
31906
31907         * lib/strstr.c (strstr): Fix return value in multibyte case.
31908         * lib/strcasestr.c (strcasestr): Likewise.
31909
31910 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
31911
31912         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
31913
31914 2005-08-17  Jim Meyering  <jim@meyering.net>
31915
31916         Make the %s format (seconds since the epoch) work for a negative
31917         number and when used with a zero-padded field width, e.g. %015s.
31918
31919         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
31920         label so that it precedes the code to set `digits'.  Otherwise,
31921         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
31922         print `00-22'.  Now, it prints `-0022', as it should.
31923
31924 2005-08-17  Bruno Haible  <bruno@clisp.org>
31925
31926         * modules/strstr (Files): Add m4/mbrtowc.m4.
31927         (Depends-on): Add mbuiter.
31928
31929 2005-08-17  Bruno Haible  <bruno@clisp.org>
31930
31931         * modules/strcasestr: New file.
31932         * MODULES.html.sh (String handling, based on ANSI C 89): Add
31933         strcasestr.
31934
31935 2005-08-17  Bruno Haible  <bruno@clisp.org>
31936
31937         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
31938
31939 2005-08-17  Bruno Haible  <bruno@clisp.org>
31940
31941         * modules/mbuiter: New file.
31942         * MODULES.html.sh (Extended multibyte and wide character utilities):
31943         Add mbuiter.
31944
31945 2005-08-17  Bruno Haible  <bruno@clisp.org>
31946
31947         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
31948         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
31949
31950 2005-08-17  Bruno Haible  <bruno@clisp.org>
31951
31952         * m4/strcasestr.m4: New file.
31953
31954 2005-08-17  Bruno Haible  <bruno@clisp.org>
31955
31956         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
31957         * lib/strstr.c: Completely rewritten, with multibyte locale support.
31958
31959 2005-08-17  Bruno Haible  <bruno@clisp.org>
31960
31961         * lib/strcasestr.h: New file.
31962         * lib/strcasestr.c: New file.
31963
31964 2005-08-17  Bruno Haible  <bruno@clisp.org>
31965
31966         * lib/strcasecmp.c: Use mbuiter.h.
31967
31968 2005-08-17  Bruno Haible  <bruno@clisp.org>
31969
31970         * lib/mbuiter.h: New file.
31971
31972 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
31973
31974         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
31975         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
31976         and gl_GETOPT are both invoked via different paths (as happens
31977         with GNU tar CVS because it uses both argp and getopt), the former
31978         wins.
31979
31980 2005-08-16  Bruno Haible  <bruno@clisp.org>
31981
31982         * modules/tls: New file.
31983         * MODULES.html.sh (Multithreading): Add tls.
31984
31985 2005-08-16  Bruno Haible  <bruno@clisp.org>
31986
31987         * modules/strnlen1: New file.
31988         * MODULES.html.sh (String handling): Add strnlen1.
31989
31990 2005-08-16  Bruno Haible  <bruno@clisp.org>
31991
31992         * modules/strcase (Files): Add m4/mbrtowc.m4.
31993         (Depends-on): Add strnlen1, mbchar.
31994
31995 2005-08-16  Bruno Haible  <bruno@clisp.org>
31996
31997         * modules/mbiter: New file.
31998         * MODULES.html.sh (Extended multibyte and wide character utilities):
31999         Add mbiter.
32000
32001 2005-08-16  Bruno Haible  <bruno@clisp.org>
32002
32003         * modules/mbfile: New file.
32004         * MODULES.html.sh (Extended multibyte and wide character utilities):
32005         Add mbfile.
32006
32007 2005-08-16  Bruno Haible  <bruno@clisp.org>
32008
32009         * modules/mbchar: New file.
32010         * MODULES.html.sh (Extended multibyte and wide character utilities):
32011         New section.
32012
32013 2005-08-16  Bruno Haible  <bruno@clisp.org>
32014
32015         * m4/tls.m4: New file, from GNU gettext.
32016
32017 2005-08-16  Bruno Haible  <bruno@clisp.org>
32018
32019         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
32020         always.
32021         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
32022
32023 2005-08-16  Bruno Haible  <bruno@clisp.org>
32024
32025         * m4/mbiter.m4: New file.
32026
32027 2005-08-16  Bruno Haible  <bruno@clisp.org>
32028
32029         * m4/mbfile.m4: New file.
32030
32031 2005-08-16  Bruno Haible  <bruno@clisp.org>
32032
32033         * m4/mbchar.m4: New file.
32034
32035 2005-08-16  Bruno Haible  <bruno@clisp.org>
32036
32037         * lib/tls.h: New file, from GNU gettext.
32038         * lib/tls.c: New file, from GNU gettext.
32039
32040 2005-08-16  Bruno Haible  <bruno@clisp.org>
32041
32042         * lib/strnlen1.h: New file.
32043         * lib/strnlen1.c: New file.
32044
32045 2005-08-16  Bruno Haible  <bruno@clisp.org>
32046
32047         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
32048         (mbi_init): Update.
32049         (mbi_avail, mbi_advance): Let the iteration end before the terminating
32050         NUL byte, not after it.
32051
32052 2005-08-16  Bruno Haible  <bruno@clisp.org>
32053
32054         * lib/strcase.h (strcasecmp): Add note in comments.
32055         * lib/strncasecmp.c: Use code from strcasecmp.c.
32056         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
32057         (strcasecmp): Work correctly in multibyte locales.
32058
32059 2005-08-16  Bruno Haible  <bruno@clisp.org>
32060
32061         * lib/mbiter.h: New file.
32062
32063 2005-08-16  Bruno Haible  <bruno@clisp.org>
32064
32065         * lib/mbfile.h: New file.
32066
32067 2005-08-16  Bruno Haible  <bruno@clisp.org>
32068
32069         * lib/mbchar.h: New file.
32070         * lib/mbchar.c: New file.
32071
32072 2005-08-16  Bruno Haible  <bruno@clisp.org>
32073
32074         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
32075         the valid ones. Makes the comparison operations transitive:
32076         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
32077         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
32078
32079 2005-08-15  Simon Josefsson  <jas@extundo.com>
32080
32081         * modules/ssize_t (License): Change to 'unlimited'.
32082
32083         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
32084
32085 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
32086
32087         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
32088         Add comments for each pending glibc patch.
32089
32090 2005-08-15  Bruno Haible  <bruno@clisp.org>
32091
32092         * lib/regex.h (__restrict_arr): Don't define to __restrict if
32093         __cplusplus is defined.
32094
32095 2005-08-14  Jim Meyering  <jim@meyering.net>
32096
32097         Sync from coreutils.
32098
32099         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
32100         Use the hash-table-based cycle-detection code not just when
32101         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
32102         Reported by James Youngman in
32103         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
32104         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
32105         FTS_TIGHT_CYCLE_CHECK.
32106         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
32107         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
32108         once again.
32109         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
32110         * lib/fts.c (fd_safer): Remove decl.
32111         Include fcntl--.h rather than unistd-safer.h
32112         (fts_safe_changedir): Don't call fd_safer; no longer needed
32113         now that we include fcntl--.h.
32114
32115 2005-08-12  Simon Josefsson  <jas@extundo.com>
32116
32117         * modules/getndelim2: Use ssize_t module.
32118         * modules/getnline: Likewise.
32119         * modules/safe-read: Likewise.
32120         * modules/xreadlink: Likewise.
32121
32122         * modules/ssize_t: New file.
32123
32124 2005-08-12  Simon Josefsson  <jas@extundo.com>
32125
32126         * m4/readline.m4: Look for termcap, curses or ncurses if required.
32127
32128 2005-08-12  Simon Josefsson  <jas@extundo.com>
32129
32130         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
32131         ssize_t.
32132
32133 2005-08-12  Simon Josefsson  <jas@extundo.com>
32134
32135         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
32136         readline, getdelim and check_version.
32137         (Support for systems lacking ISO C 99: Sizes of integer types):
32138         Add size_max.
32139
32140 2005-08-12  Bruno Haible  <bruno@clisp.org>
32141
32142         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
32143
32144 2005-08-11  Simon Josefsson  <jas@extundo.com>
32145
32146         * modules/readline: New file.
32147
32148         * modules/strnlen (Files): Add strnlen.h.
32149
32150 2005-08-11  Simon Josefsson  <jas@extundo.com>
32151
32152         * m4/readline.m4: New file.
32153
32154 2005-08-11  Simon Josefsson  <jas@extundo.com>
32155
32156         * lib/readline.h, readline.c: New file.
32157
32158 2005-08-11  Simon Josefsson  <jas@extundo.com>
32159
32160         * doc/gnulib.texi (Initial import, Finishing touches): Mention
32161         gl_AVOID.
32162
32163 2005-08-11  Bruno Haible  <bruno@clisp.org>
32164
32165         * lib/strnlen.h (strnlen): Change parameter name to match comment.
32166
32167 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
32168
32169         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
32170
32171 2005-08-10  Simon Josefsson  <jas@extundo.com>
32172
32173         * tests/test-iconvme.c: New file.
32174
32175 2005-08-10  Simon Josefsson  <jas@extundo.com>
32176
32177         * m4/strnlen.m4: New file.
32178
32179         * m4/strndup.m4: Don't check for strnlen declaration, done in
32180         strnlen.m4.
32181
32182 2005-08-10  Simon Josefsson  <jas@extundo.com>
32183
32184         * lib/strndup.c: Use strnlen.h.
32185
32186         * lib/strnlen.h: New file.
32187
32188 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
32189
32190         * README: Typos.
32191
32192 2005-08-02  Simon Josefsson  <jas@extundo.com>
32193
32194         * modules/readline: New file.
32195
32196 2005-08-02  Simon Josefsson  <jas@extundo.com>
32197
32198         * modules/getdelim: New file.
32199
32200         * modules/getline: Rewrite, don't use getndelim2.
32201
32202 2005-08-02  Simon Josefsson  <jas@extundo.com>
32203
32204         * m4/getline.m4: Separate out getdelim stuff into separate module.
32205
32206         * m4/getdelim.m4: New file.
32207
32208 2005-08-02  Simon Josefsson  <jas@extundo.com>
32209
32210         * lib/getline.h, getline.c: Rewrite.
32211
32212         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
32213
32214 2005-07-31  Bruno Haible  <bruno@clisp.org>
32215
32216         * lib/lock.h (gl_lock_initializer): New macro.
32217         (gl_lock_define_initialized): Use it.
32218         (gl_rwlock_initializer): New macro.
32219         (gl_rwlock_define_initialized): Use it.
32220         (gl_recursive_lock_initializer): New macro.
32221         (gl_recursive_lock_define_initialized): Use it.
32222
32223 2005-07-30  Karl Berry  <karl@gnu.org>
32224
32225         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
32226         Report from Ben Pfaff, regarding getopt.
32227
32228 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
32229
32230         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
32231         normal way.
32232         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
32233         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
32234         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
32235         (gl_GETOPT): Use the new macros.  Most of the implementation
32236         is moved to the new macros.  This is for programs like Emacs
32237         that don't want all the functionality of gl_GETOPT.
32238
32239 2005-07-26  Bruno Haible  <bruno@clisp.org>
32240
32241         * m4/lock.m4: Update from GNU gettext.
32242
32243 2005-07-26  Bruno Haible  <bruno@clisp.org>
32244
32245         * lib/lock.h: Update from GNU gettext.
32246         * lib/lock.c: Update from GNU gettext.
32247
32248 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
32249
32250         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
32251         obsolescent AC_TRY_RUN.  Include the default includes files, for
32252         'exit'.
32253
32254 2005-07-24  Bruno Haible  <bruno@clisp.org>
32255
32256         * modules/visibility: New file.
32257         * MODULES.html.sh (Misc): Add visibility.
32258
32259 2005-07-24  Bruno Haible  <bruno@clisp.org>
32260
32261         * m4/visibility.m4: New file.
32262
32263 2005-07-24  Bruno Haible  <bruno@clisp.org>
32264
32265         * doc/visibility.texi: New file.
32266
32267 2005-07-22  Bruno Haible  <bruno@clisp.org>
32268
32269         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
32270         $(ALLOCA_H), redundant through BUILT_SOURCES.
32271         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
32272         redundant through BUILT_SOURCES.
32273         * modules/byteswap (Makefile.am): Remove explicit dependency on
32274         $(BYTESWAP_H), redundant through BUILT_SOURCES.
32275         * modules/fnmatch (Makefile.am): Remove explicit dependency on
32276         $(FNMATCH_H), redundant through BUILT_SOURCES.
32277         * modules/getopt (Makefile.am): Remove explicit dependency on
32278         $(GETOPT_H), redundant through BUILT_SOURCES.
32279         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
32280         redundant through BUILT_SOURCES.
32281         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
32282         redundant through BUILT_SOURCES.
32283         * modules/stdbool (Makefile.am): Remove explicit dependency on
32284         $(STDBOOL_H), redundant through BUILT_SOURCES.
32285         * modules/stdint (Makefile.am): Remove explicit dependency on
32286         $(STDINT_H), redundant through BUILT_SOURCES.
32287         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
32288         Remove explicit dependency on $(SYSEXITS_H).
32289         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
32290
32291 2005-07-18  Simon Josefsson  <jas@extundo.com>
32292
32293         * lib/check-version.c (check_version): Accept identical versions too.
32294
32295 2005-07-18  Bruno Haible  <bruno@clisp.org>
32296
32297         * modules/lock: New file.
32298         * MODULES.html.sh (Multithreading): New section.
32299
32300 2005-07-18  Bruno Haible  <bruno@clisp.org>
32301
32302         * m4/lock.m4: New file, from GNU gettext.
32303
32304 2005-07-18  Bruno Haible  <bruno@clisp.org>
32305
32306         * lib/lock.h: New file, from GNU gettext.
32307         * lib/lock.c: New file, from GNU gettext.
32308
32309 2005-07-18  Bruno Haible  <bruno@clisp.org>
32310
32311         * lib/lock.h (gl_once_t): New type.
32312         (gl_once_define, gl_once): New macros.
32313         * lib/lock.c (fresh_once): New variable.
32314         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
32315         functions.
32316
32317 2005-07-16  Simon Josefsson  <jas@extundo.com>
32318
32319         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
32320         workaround, suggested by Bruno.
32321
32322 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
32323
32324         * modules/xalloc (Depends-on): Add xalloc-die.
32325         * modules/xvasprintf (Depends-on): Add xalloc-die.
32326
32327 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
32328
32329         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
32330         with a minor change.
32331
32332 2005-07-15  Bruno Haible  <bruno@clisp.org>
32333
32334         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
32335         When using lib/poll.c, define poll as rpl_poll.
32336
32337 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
32338
32339         * modules/argp (Depends-on): Remove unlocked-io.
32340
32341 2005-07-14  Derek Price  <derek@ximbiot.com>
32342
32343         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
32344         for glob symlink bug.
32345
32346 2005-07-14  Bruno Haible  <bruno@clisp.org>
32347
32348         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
32349         Instead, test for *_unlocked function declarations directly.
32350
32351 2005-07-11  Simon Josefsson  <jas@extundo.com>
32352
32353         * modules/size_max: New file.
32354
32355         * modules/xsize: Depend on size_max module for size_max.m4.
32356
32357 2005-07-11  Simon Josefsson  <jas@extundo.com>
32358
32359         * lib/size_max.h: New file.
32360
32361 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
32362
32363         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
32364         copyright symbol and the year.
32365         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
32366         (version_etc_va): Use parameterized copyright notice.
32367         Reword to conform to the current GNU coding standards.
32368
32369 2005-07-11  Karl Berry  <karl@gnu.org>
32370
32371         * doc/gnulib.texi (Quoting): new node.
32372         (Initial import): more info, from Patrice.
32373
32374 2005-07-11  Bruno Haible  <bruno@clisp.org>
32375
32376         * gnulib-tool (func_usage): Document option --avoid.
32377         (Command line options): Handle --avoid.
32378         (func_acceptable): New function.
32379         (func_modules_transitive_closure): Use it.
32380
32381 2005-07-11  Bruno Haible  <bruno@clisp.org>
32382
32383         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
32384         Reported by Jim Meyering.
32385
32386 2005-07-10  Bruno Haible  <bruno@clisp.org>
32387
32388         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
32389         Needed when size_t is smaller than 'unsigned int'.
32390         Reported by Paul Eggert.
32391
32392 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
32393
32394         * modules/argp (Depends-on): Add unlocked-io
32395
32396 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
32397
32398         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
32399         block of defines.
32400
32401 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
32402
32403         * config/srclist.txt: Comment out regcomp.c, since we have a porting
32404         fix now.
32405
32406 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
32407         and Paul Eggert  <eggert@cs.ucla.edu>
32408
32409         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
32410         in wint_t, not wchar_t.  Remove now-unnecessary cast.
32411
32412 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
32413
32414         * modules/regex (Files): Add lib/regex_internal.c,
32415         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
32416         (Depends-on): Add extensions.
32417         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
32418
32419 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
32420
32421         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
32422         pathconf.
32423         * m4/same.m4 (gl_SAME): Likewise.
32424         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
32425
32426         * m4/regex.m4: Adjust to new libc regex implementation.
32427         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
32428         all the .c and .h parts of (the new) regex.
32429         Quote the m4 stuff better.
32430         Check for RE_ICASE bug of old gnulib.
32431         Check for REG_STARTEND of recent libc.
32432         Rename local variables from jm_* to gl_*.
32433         Quote operand of "test -f".
32434         Say "recent enough" version of libc, not "version 2".
32435         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
32436         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
32437         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
32438         Remove check for btowc, isascii.
32439         Require AM_LANGINFO_CODESET.
32440
32441 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
32442
32443         * lib/regex.c, regex.h: Sync from libc.
32444         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
32445         * lib/regexec.c:
32446         New files, synced from libc, except that regex_internal.h
32447         currently has a small porting fix.
32448
32449 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
32450
32451         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
32452         regex_internal.c, regexec.c.
32453         Add regex_internal.h too, but as a comment, since the libc version
32454         is currently broken in gnulib mode.
32455
32456 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
32457
32458         Support programs like Emacs that use gnulib but not gettext.
32459         * MODULES.html.sh (Internationalization functions): Add gettext-h.
32460         * modules/gettext-h: New file.
32461         * modules/gettext (Files): Remove lib/gettext.h.
32462         (Depends-on): Add gettext-h.
32463         (Makefile.am): Remove lib_SOURCES.
32464         * modules/argmatch, modules/c-stack, modules/closeout:
32465         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
32466         * modules/execute, modules/file-type, modules/getaddrinfo:
32467         * modules/getopt, modules/human, modules/javacomp:
32468         * modules/javaexec, modules/mkdir-p, modules/obstack:
32469         * modules/openat, modules/pagealign_alloc, modules/pipe:
32470         * modules/quotearg, modules/regex, modules/rpmatch:
32471         * modules/unicodeio, modules/userspec, modules/version-etc:
32472         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
32473         * modules/xsetenv:
32474         Depend on gettext-h, not gettext.
32475
32476 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
32477
32478         * gnulib-tool (func_import): Add support for 'public domain' license.
32479         * modules/alloca, modules/atexit, modules/memmove:
32480         Now public domain, not GPL.
32481         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
32482         * modules/realloc, modules/strerror, modules/strtod:
32483         Now LGPL, not GPL.
32484
32485 2005-07-05  Bruno Haible  <bruno@clisp.org>
32486
32487         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
32488         autoconf CVS. Needed for mingw.
32489
32490 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
32491
32492         Remove the dependency of the strftime module on the tzset module.
32493         * modules/strftime (Depends-on): Remove dependency on tzset.
32494
32495 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
32496
32497         Remove the dependency of the strftime module on the tzset module.
32498         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
32499         gl_FUNC_TZSET_CLOBBER.
32500
32501 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
32502
32503         Remove the dependency of the strftime module on the tzset module.
32504         * lib/strftime.c (my_strftime)
32505         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
32506         Copy the input structure, to work around some of the bug with
32507         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
32508         Solaris releases, you should also use the tzset module, but we won't
32509         require it as a dependency any more since we don't want LGPLed code
32510         to depend on GPLed code.
32511
32512 2005-07-02  Jim Meyering  <jim@meyering.net>
32513
32514         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
32515         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
32516         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
32517         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
32518
32519 2005-07-02  Jim Meyering  <jim@meyering.net>
32520
32521         * lib/backupfile.c (backup_args): Change a `0' to NULL.
32522
32523 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
32524
32525         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
32526         declares only 'struct timespec;' (!).
32527
32528 2005-07-01  Jim Meyering  <jim@meyering.net>
32529
32530         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
32531         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
32532         * lib/save-cwd.c, tempname.c:
32533         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
32534         and don't include <sys/file.h>).
32535
32536 2005-06-29  Jim Meyering  <jim@meyering.net>
32537
32538         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
32539         type name.  Use the variable name instead.
32540         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
32541         Likewise.
32542
32543 2005-06-28  Simon Josefsson  <jas@extundo.com>
32544
32545         * modules/check-version (Files): Add check-version.m4.
32546
32547 2005-06-28  Simon Josefsson  <jas@extundo.com>
32548
32549         * m4/check-version.m4: New file, suggested by Jim Meyering
32550         <jim@meyering.net>.
32551
32552 2005-06-28  Simon Josefsson  <jas@extundo.com>
32553
32554         * lib/check-version.h, lib/check-version.c: New files.
32555
32556 2005-06-28  Simon Josefsson  <jas@extundo.com>
32557
32558         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
32559         collision with global variable.  Better indentation.  Don't
32560         increment buffer pointer beyond buffer end.  Based on comments
32561         from Paul Eggert <eggert@cs.ucla.edu>.
32562
32563         * lib/base64.h: Indent.
32564
32565 2005-06-28  Simon Josefsson  <jas@extundo.com>
32566
32567         * doc/gnulib.texi (Library version handling): New section.
32568
32569 2005-06-28  Jim Meyering  <jim@meyering.net>
32570
32571         * check-module (find_included_lib_files): Hard-code another
32572         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
32573         but modules/fts-lgpl (correctly) does not list those files.
32574
32575         * modules/canonicalize (Files): Add lib/pathmax.h.
32576
32577 2005-06-25  Simon Josefsson  <jas@extundo.com>
32578
32579         * modules/check-version: New file.
32580
32581 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
32582
32583         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
32584         initializer of struct addrinfo, as an indication that we don't
32585         care how many members the structure has.
32586
32587 2005-06-24  Derek Price  <derek@ximbiot.com>
32588         and Bruno Haible  <bruno@clisp.org>
32589
32590         Remove stat module & update lstat.
32591         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
32592         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
32593         * m4/stat.m4: Remove this file.
32594
32595 2005-06-24  Derek Price  <derek@ximbiot.com>
32596         and Bruno Haible  <bruno@clisp.org>
32597
32598         Remove stat module & update lstat.
32599         * lib/stat.c: Remove this file...
32600         (slash_aware_lstat): ...moving this content and its support...
32601         * lib/lstat.c (rpl_lstat): ...into here.
32602         * lib/lstat.h: New file.
32603
32604 2005-06-24  Derek Price  <derek@ximbiot.com>
32605         and Bruno Haible  <bruno@clisp.org>
32606
32607         Remove stat module & update lstat.
32608         * config/srclist.txt (libc sources): Remove stat.
32609
32610 2005-06-24  Derek Price  <derek@ximbiot.com>
32611         and Bruno Haible  <bruno@clisp.org>
32612
32613         Remove stat module & update lstat.
32614         * MODULES.html.sh (stat): Remove.
32615         * MODULES.html: Regenerated.
32616         * modules/lstat (Description): Correct function name.
32617         (Files): Add "lstat.h".
32618         (Depends-on): Remove stat, add xalloc, stat-macros.
32619         * modules/stat: Remove this file.
32620         (Include): Add "lstat.h", remove <sys/stat.h>.
32621
32622 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
32623
32624         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
32625         (ranged_convert): Don't save conversion in a temporary struct.
32626         This causes a warning with GCC 4.0.0, and anyway in the typical
32627         case it's not worth the extra 100 bytes or so of code.
32628         (ranged_convert, __mktime_internal): When calling a function via a
32629         pointer P, use P () rather than (*P) (), as we now assume C89 or
32630         better.
32631
32632 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
32633
32634         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
32635         "who -r" failed to give output.  Problem reported by Tim Waugh.
32636
32637         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
32638         (xcalloc): Use it to avoid needless tests.
32639         Problem reported by Jim Meyering.
32640
32641 2005-06-20  Derek Price  <derek@ximbiot.com>
32642
32643         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
32644         unnecessary for Autoconfs > 2.59c.
32645
32646 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
32647
32648         * lib/argp.h (__option_is_short): Check upper limit of
32649         __key. Isprint() requires its argument to have the value
32650         of an unsigned char or EOF.
32651
32652 2005-06-16  Jim Meyering  <jim@meyering.net>
32653
32654         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
32655         when either N or S is zero.
32656
32657 2005-06-16  Derek Price  <derek@ximbiot.com>
32658
32659         * m4/bison.m4: Declare YACC & YFLAGS precious.
32660
32661 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
32662
32663         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
32664         multibyte string or pattern, fall back on unibyte matching.
32665         Problem reported by James Youngman.
32666
32667 2005-06-08  Bruno Haible  <bruno@clisp.org>
32668
32669         * modules/csharpcomp: New file.
32670         * MODULES.html.sh (C#): Add csharpcomp.
32671
32672 2005-06-08  Bruno Haible  <bruno@clisp.org>
32673
32674         * m4/csharpcomp.m4: New file, from GNU gettext.
32675
32676 2005-06-08  Bruno Haible  <bruno@clisp.org>
32677
32678         * lib/csharpcomp.h: New file, from GNU gettext.
32679         * lib/csharpcomp.c: New file, from GNU gettext.
32680         * lib/csharpcomp.sh.in: New file, from GNU gettext.
32681
32682 2005-06-08  Bruno Haible  <bruno@clisp.org>
32683
32684         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
32685         warning on mingw.
32686
32687 2005-06-07  Derek Price  <derek@ximbiot.com>
32688
32689         Sync from CVS.
32690         * lib/glob_.h: Indent nested #ifdef.
32691
32692 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
32693
32694         Sync from coreutils.
32695         Use "file name" when talking about file names, instead of "filename"
32696         or "path", as per the GNU coding standards.
32697         * lib/mkdir-p.c: Renamed from makepath.c.
32698         (make_dir_parents): Renamed from make_path.  All callers changed.
32699         * lib/mkdir-p.h: Likewise.  All includers changed.
32700         * lib/filenamecat.c: Renamed from path-concat.c.
32701         (file_name_concat): Renamed from path_concat.  All callers changed.
32702         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
32703         * lib/filenamecat.h: Likewise.  All includers changed.
32704         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
32705         in comments or local variable names.
32706         * lib/basename.c: Likewise.
32707         * lib/canonicalize.c, canonicalize.h: Likewise.
32708         * lib/dirname.c, dirname.h: Likewise.
32709         * lib/euidaccess.c: Likewise.
32710         * lib/exclude.c: Likewise
32711         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
32712         * lib/fsusage.c, fsuage.h: Likewise.
32713         * lib/fts.c, fts_.h: Likewise.
32714         * lib/getcwd.c: Likewise.
32715         * lib/getloadavg.c: Likewise.
32716         * lib/mkstemp.c: Likewise.
32717         * lib/mountlist.c, mountlist.h: Likewise.
32718         * lib/openat.c, openat.h: Likewise.
32719         * lib/readlink-stub.c: Likewise.
32720         * lib/readutmp.c, readutmp.h: Likewise.
32721         * lib/rename.c: Likewise.
32722         * lib/rmdir.c: Likewise.
32723         * lib/same.c: Likewise.
32724         * lib/savedir.c: Likewise.
32725         * lib/stripslash.c: Likewise.
32726         * lib/tempname.c: Likewise.
32727         * lib/xreadlink.c: Likewise.
32728         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
32729         All uses changed.
32730         * lib/exclude.h: Likewise.
32731
32732         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
32733         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
32734         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
32735         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
32736         * lib/pathmax.h: Include <limits.h> unconditionally, since other
32737         files have been getting away with it for years (MORE/BSD 4.3
32738         is extinct now).
32739         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
32740         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
32741
32742         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
32743         Define to 256, not 255, as per modern POSIX.
32744
32745 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
32746
32747         Sync from coreutils.
32748         Use "file name" when talking about file names, instead of "filename"
32749         or "path", as per the GNU coding standards.
32750         * MODULES.html.sh: mkdir-p renamed from makepath.
32751         filenamecat renamed from path-concat.
32752         * modules/filenamecat: Renamed from modules/path-concat.
32753         (Files): filenamecat.h and filenamecat.c renamed from
32754         path-concat.h and path-concat.c.
32755         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
32756         (Include): filenamecat.h, not path-concat.h.
32757         * modules/mkdir-p: Renamed from modules/makepath.
32758         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
32759         makepath.c.
32760         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
32761         (Include): mkdir-p.h, not makepath.h.
32762
32763 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
32764
32765         Sync from coreutils.
32766         * m4/mkdir-p.m4: Renamed from makepath.m4.
32767         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
32768         Rename files from makepath.c to mkdir-p.c, and from
32769         makepath.h to mkdir-p.h.
32770         * m4/filenamecat.m4: Renamed from path-concat.m4.
32771         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
32772         Rename files from path-concat.c to filenamecat.c,
32773         and from path-concat.h to filenamecat.h.
32774         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
32775         "file name" in local variables or comments.
32776         * m4/rename.m4: Likewise.
32777
32778 2005-06-01  Bruno Haible  <bruno@clisp.org>
32779
32780         * modules/csharpexec: New file.
32781         * MODULES.html.sh (C#): New section.
32782
32783 2005-06-01  Bruno Haible  <bruno@clisp.org>
32784
32785         * m4/csharp.m4: New file, from GNU gettext.
32786         * m4/csharpexec.m4: New file, from GNU gettext.
32787
32788 2005-06-01  Bruno Haible  <bruno@clisp.org>
32789
32790         * lib/csharpexec.h: New file, from GNU gettext.
32791         * lib/csharpexec.c: New file, from GNU gettext.
32792         * lib/csharpexec.sh.in: New file, from GNU gettext.
32793
32794 2005-05-31  Derek Price  <derek@ximbiot.com>
32795             Paul Eggert  <eggert@cs.ucla.edu>
32796
32797         Sync from cvs.
32798         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
32799
32800 2005-05-31  Derek Price  <derek@ximbiot.com>
32801             Paul Eggert  <eggert@cs.ucla.edu>
32802
32803         Sync from cvs.
32804         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
32805
32806 2005-05-29  Derek Price  <derek@ximbiot.com>
32807
32808         * config/srclist.txt (glob_.h, glob.c): Add these files.
32809
32810 2005-05-29  Derek Price  <derek@ximbiot.com>
32811
32812         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
32813         * modules/glob: New file.
32814         * modules/getlogin_r: Add link to POSIX spec in description.
32815
32816 2005-05-29  Derek Price  <derek@ximbiot.com>
32817             Paul Eggert  <eggert@cs.ucla.edu>
32818
32819         * m4/glob.m4: New file.
32820
32821 2005-05-29  Derek Price  <derek@ximbiot.com>
32822             Paul Eggert  <eggert@cs.ucla.edu>
32823
32824         * lib/glob_.h, lib/glob.c: New files.
32825
32826 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
32827
32828         * modules/fts (Files): Remove m4/inttypes-pri.m4.
32829         * modules/fts-lgpl (Depends-on): Remove gettext.
32830
32831 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
32832
32833         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
32834         and don't require gt_INTTYPES_PRI.
32835
32836 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
32837
32838         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
32839
32840         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
32841         the configuration hassle isn't worth it.
32842         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
32843         (LONGEST_MODIFIER, PRIuMAX): Remove.
32844
32845 2005-05-27  Bruno Haible  <bruno@clisp.org>
32846
32847         * lib/getlogin_r.h: Remove second include of <stddef.h>.
32848
32849 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
32850
32851         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
32852         _POSIX_PTHREAD_SEMANTICS for Solaris.
32853
32854 2005-05-25  Derek Price  <derek@ximbiot.com>
32855
32856         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
32857
32858 2005-05-25  Derek Price  <derek@ximbiot.com>
32859             Paul Eggert  <eggert@cs.ucla.edu>
32860
32861         * modules/getlogin_r, m4/getlogin_r.m4: New files.
32862         * lib/getlogin_r.c, getlogin_r.h: New files.
32863
32864 2005-05-25  Bruno Haible  <bruno@clisp.org>
32865             Derek Price  <derek@ximbiot.com>
32866
32867         * lib/getlogin_r.h: Simplify API documentation.
32868
32869 2005-05-23  Derek Price  <derek@ximbiot.com>
32870
32871         * modules/minmax (Files): Add m4/minmax.m4.
32872         (configure.ac): Add gl_MINMAX.
32873
32874 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
32875
32876         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
32877         so that unistd-safer.h (GPL'ed code) need not be included.
32878
32879 2005-05-22  Bruno Haible  <bruno@clisp.org>
32880
32881         * m4/minmax.m4: New file.
32882         Based on a patch by Derek Price <derek@ximbiot.com>.
32883
32884 2005-05-22  Bruno Haible  <bruno@clisp.org>
32885
32886         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
32887         (INT64_MIN): Fix definition.
32888         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
32889
32890         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
32891         NEED_SIGNED_INT_TYPES.
32892
32893         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
32894         HAVE_SYSTEM_INTTYPES.
32895
32896 2005-05-22  Bruno Haible  <bruno@clisp.org>
32897
32898         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
32899         Also include <sys/param.h> if it defines MIN, MAX.
32900         Based on a patch by Derek Price <derek@ximbiot.com>.
32901
32902 2005-05-21  Jim Meyering  <jim@meyering.net>
32903
32904         * modules/fts (Files): Add m4/inttypes-pri.m4.
32905         (Depends-on): Add lstat and remove gettext.  Alphabetize.
32906
32907 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
32908
32909         New fts module.
32910         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
32911         (setup_dir, free_dir): New functions.
32912         (enter_dir, leave_dir): Define trivial
32913         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
32914         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
32915         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
32916         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
32917         Move to fts-cycle.c.
32918         (fts_open): Use setup_dir.
32919         (fts_close): Use free_dir.
32920         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
32921         This adds a label and some gotos, but the alternatives were messier.
32922         Check for memory allocation failure when entering a dir.
32923         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
32924         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
32925         (FTS): New member fts_cycle, that is a union that contains the
32926         old active_dir_ht and cycle_state.  All uses changed to mention
32927         fts_cycle.ht and fts_cycle.state.
32928         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
32929         fts.c, with the following changes:
32930         (setup_dir, free_dir): New functions.
32931         (enter_dir): Now returns bool.  Return true if successful, false
32932         if memory exhausted.  All callers changed.
32933         Do not bother partly cleaning up on
32934         memory allocation failure; that is free_dir's job.
32935         However, free ad if hash_insert fails, to avoid memory leak.
32936         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
32937         fts->fts_options to see which union member to use.
32938
32939 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
32940
32941         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
32942         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
32943
32944 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
32945
32946         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
32947
32948 2005-05-20  Jim Meyering  <jim@meyering.net>
32949
32950         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
32951         Now a macro, to pacify GCC.
32952
32953 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
32954
32955         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
32956         of -1.
32957
32958 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
32959
32960         * lib/chown.c (rpl_chown): Return -1 on failure.
32961
32962 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
32963
32964         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
32965         Don't check for stddef.h.
32966         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
32967         don't use its results.
32968         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
32969         since we include them unconditionally.  Don't require
32970         AM_STDBOOL_H, since stdbool is a prerequisite.
32971         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
32972         since we assume C89 or better.
32973         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
32974         as we don't use their results.
32975         Don't check for fchdir, memmove, memset, strrchr, as we use
32976         them unconditionally.
32977         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
32978         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
32979
32980 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
32981
32982         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
32983         Include <stddef.h> unconditionally, since we assume C89 now.
32984         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
32985         * lib/fts.c: Include fts_.h first, to check interface.
32986         Do not include intprops.h; no longer needed.
32987         Include cycle-check.h and hash.h, since fts_.h no longer does.
32988         Remove unnecessary casts of closedir to void.
32989         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
32990         decide whether to decrement nlinks.
32991         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
32992         (FTS): Use struct hash_table * instead of Hash_table, so that
32993         we no longer need to include hash.h here.
32994
32995 2005-05-18  Jim Meyering  <jim@meyering.net>
32996
32997         * modules/dirfd (License): Change to LGPL.  Most of the code
32998         is already in the public domain.
32999
33000 2005-05-18  Jim Meyering  <jim@meyering.net>
33001
33002         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
33003         Reported by Yoann Vandoorselaere.
33004
33005 2005-05-17  Jim Meyering  <jim@meyering.net>
33006
33007         * m4/fts.m4: New file, from coreutils.
33008
33009 2005-05-17  Jim Meyering  <jim@meyering.net>
33010
33011         * lib/fts.c, lib/fts_.h: New files, from coreutils.
33012
33013 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
33014
33015         Sync from coreutils.
33016         * m4/unlinkdir.m4: New file.
33017
33018 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
33019
33020         Sync from coreutils.
33021         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
33022         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
33023         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
33024         White space changes only.
33025         * lib/makepath.c (make_path): Port to hosts where leading "//" is
33026         special.
33027         * lib/yesno.c: Include getline.h, not ctype.h.
33028         (yesno): Don't remove leading white space; POSIX doesn't allow it.
33029         Use getline to remove arbitrary restriction on response length.
33030
33031 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
33032
33033         * config/srclist-update: Spell out "Street" in FSF postal
33034         mail address; this is the style the FSF seems to prefer.
33035
33036         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
33037         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
33038         this updates FSF postal mail address.
33039
33040         Sync from coreutils.
33041         * modules/unlinkdir: New file.
33042         * modules/yesno (Depends-on): Add getline.
33043         * MODULES.html.sh (File system functions): Add unlinkdir.
33044
33045 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
33046
33047         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
33048         lib/strsep.h:
33049         Change the initial comment to refer to GPL, not LGPL.
33050         gnulib-tool will change it to LGPL as needed.
33051
33052         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
33053         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
33054         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
33055         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
33056         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
33057         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
33058         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
33059         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
33060         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
33061         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
33062         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
33063         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
33064         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
33065         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
33066         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
33067         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
33068         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
33069         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
33070         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
33071         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
33072         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
33073         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
33074         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
33075         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
33076         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
33077         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
33078         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
33079         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
33080         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
33081         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
33082         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
33083         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
33084         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
33085         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
33086         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
33087         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
33088         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
33089         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
33090         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
33091         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
33092         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
33093         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
33094         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
33095         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
33096         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
33097         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
33098         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
33099         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
33100         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
33101         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
33102         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
33103         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
33104         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
33105         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
33106         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
33107         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
33108         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
33109         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
33110         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
33111         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
33112         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
33113         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
33114         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
33115         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
33116         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
33117         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
33118         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
33119         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
33120         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
33121         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
33122         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
33123         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
33124         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
33125         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
33126         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
33127         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
33128         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
33129         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
33130         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
33131         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
33132         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
33133         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
33134         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
33135         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
33136         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
33137         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
33138         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
33139         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
33140         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
33141         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
33142         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
33143         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
33144         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
33145         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
33146         lib/yesno.c, lib/yesno.h:
33147         Update FSF postal mail address.
33148
33149 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
33150
33151         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
33152         tests/test-memmem.c, tests/test-stpncpy.c:
33153         Update FSF postal mail address.
33154
33155 2005-05-13  Bruno Haible  <bruno@clisp.org>
33156
33157         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
33158         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
33159         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
33160         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
33161         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
33162         Add support for 64-bit integers in the MSVC compiler.
33163
33164 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
33165
33166         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
33167
33168 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
33169
33170         * gnulib-tool (func_import): Sort and uniquify recommended includes.
33171
33172 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
33173
33174         * doc/getdate.texi (General date syntax): Don't say that date
33175         date --iso-8601=ns generates acceptable dates; it doesn't yet.
33176         Problem reported by Nic Ferrier.
33177
33178 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33179
33180         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
33181         specified in ai_socktype. Fix invalid ai_protocol
33182         check. ai_protocol is usually set to 0 or depending on
33183         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
33184         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
33185         ai_socktype / ai_protocol in the returned addrinfo structure.
33186
33187 2005-05-10  Simon Josefsson  <jas@extundo.com>
33188
33189         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
33190         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
33191
33192 2005-05-10  Karl Berry  <karl@gnu.org>
33193
33194         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
33195         (from http://www.gnu.org/licenses).
33196         * doc/COPYING.LIB: also rename to COPYING.LESSER.
33197         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
33198         fdl.texi suffices.
33199
33200 2005-05-10  Karl Berry  <karl@gnu.org>
33201
33202         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
33203         (COPYING.DOC): remove.
33204
33205         * config/srclist-update: new FSF address.
33206
33207 2005-05-10  Derek Price  <derek@ximbiot.com>
33208
33209         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
33210         possible.
33211
33212 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33213             Bruno Haible  <bruno@clisp.org>
33214
33215         * modules/inet_ntop: New file.
33216         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
33217         inet_ntop.
33218
33219 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33220             Bruno Haible  <bruno@clisp.org>
33221
33222         * m4/inet_ntop.m4: New file.
33223
33224 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33225             Bruno Haible  <bruno@clisp.org>
33226
33227         * lib/inet_ntop.h: New file.
33228         * lib/inet_ntop.c: New file, from glibc with modifications.
33229
33230 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
33231
33232         * modules/time_r (License): Change to LGPL.
33233         * modules/extensions (License): Change to LGPL.  Actually,
33234         the license is more permissive than that, but currently gnulib-tool
33235         doesn't know how to handle more-permissive licenses.
33236
33237         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
33238         Problem reported by Dave Love.
33239
33240 2005-05-08  Jim Meyering  <jim@meyering.net>
33241
33242         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
33243         blank.
33244
33245 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
33246
33247         * modules/argmatch (Depends-on): Add stdbool.
33248         * modules/backupfile (Depends-on): Likewise.
33249         * modules/chdir-long (Depends-on): Likewise.
33250         * modules/closeout (Depends-on): Likewise.
33251         * modules/cycle-check (Depends-on): Likewise.
33252         * modules/dirname (Depends-on): Likewise.
33253         * modules/fnmatch (Depends-on): Likewise.
33254         * modules/fsusage (Depends-on): Likewise.
33255         * modules/fwriteerror (Depends-on): Likewise.
33256         * modules/getcwd (Depends-on): Likewise.
33257         * modules/getloadavg (Depends-on): Likewise.
33258         * modules/hard-locale (Depends-on): Likewise.
33259         * modules/makepath (Depends-on): Likewise.
33260         * modules/mountlist (Depends-on): Likewise.
33261         * modules/nanosleep (Depends-on): Likewise.
33262         * modules/posixtm (Depends-on): Likewise.
33263         * modules/quotearg (Depends-on): Likewise.
33264         * modules/readtokens (Depends-on): Likewise.
33265         * modules/readtokens0 (Depends-on): Likewise.
33266         * modules/readutmp (Depends-on): Likewise.
33267         * modules/save-cwd (Depends-on): Likewise.
33268         * modules/strftime (Depends-on): Likewise.
33269         * modules/userspec (Depends-on): Likewise.
33270         * modules/utimecmp (Depends-on): Likewise.
33271         * modules/xgetcwd (Depends-on): Likewise.
33272         * modules/xnanosleep (Depends-on): Likewise.
33273         * modules/xstrtod (Depends-on): Likewise.
33274         * modules/yesno (Depends-on): Likewise.
33275
33276 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
33277
33278         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
33279         needless checks.
33280
33281 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
33282
33283         Merge from coreutils.  Among other things,
33284         add bulletproofing for cases where stdin, stdout, or stderr are closed.
33285         * lib/fd-safer.c: New file.
33286         * lib/fcntl-safer.h, open-safer.c: Remove.
33287         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
33288         * lib/dup-safer.c: Include unistd-safer.h first.
33289         Don't include errno.h.
33290         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
33291         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
33292         * lib/file-type.c: Rely on file-type.h change.
33293         * lib/getloadavg.c: Include unistd-safer.h.
33294         (getloadavg): Use safer open.
33295         * lib/getusershell.c: Include "stdio-safer.h".
33296         (getusershell): Use safer fopen.
33297         * lib/long-options.c (long_options): Use NULL rather than 0.
33298         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
33299         'free'.
33300         * lib/modechange.c: Likewise.
33301         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
33302         (MODE_DONE): New constant.
33303         (struct mode_change): Remove 'next' member.
33304         (make_node_op_equals): New function; like the old one of the
33305         same name, except it allocates an array.
33306         (mode_compile, mode_create_from_ref): Use it.
33307         (mode_compile): Allocate result as an array, not a linked list.
33308         Parse octal string ourself, so that we catch mistakes like "+0".
33309         (mode_adjust): Arg is an array, not a linked list.
33310         * lib/modechange.c: Include stat-macros.h, xalloc.h.
33311         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
33312         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
33313         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
33314         Remove.  This is now stat-macros.h's job.
33315         (talloc): Remove.  All callers replaced by xalloc, so that
33316         our invokers don't have to worry about reporting memory failures.
33317         (make_node_op_equals): Remove.
33318         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
33319         New constants.
33320         (struct mode_change): Moved here from modechange.h.
33321         (mode_append_entry): Remove.
33322         (mode_compile): Remove MASKED_OPS arg, since it encouraged
33323         apps to have incorrect behavior.  Use simpler algorithm for head
33324         and tail.  Don't futz with umask; that's now the job of mode_adjust.
33325         Detect more invalid usages rather than having somewhat-random behavior.
33326         Don't insert an "a=" action, as that leads to incorrect behavior.
33327         (mode_compile, mode_create_from_ref): Return NULL on error instead
33328         of an enum, since now there's only one way to have an error.  All
33329         callers changed.
33330         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
33331         at the correct time.  Simplify calculation of "+u" and its ilk.
33332         Don't mishandle "+X".
33333         (mode_free): Remove "register" and localize decls.
33334         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
33335         (struct mode_change): Move to modechange.c; callers don't
33336         need to see this stuff.
33337         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
33338         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
33339         (mode_change, mode_adjust): Reflect the new signatures noted above.
33340         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
33341         that might redefine system include files.
33342         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
33343         (my_usleep): Use NULL rather than (void *) 0.
33344         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
33345         Use siginterrupt to specify that system calls should be interrupted.
33346         (rpl_nanosleep): Move initialization of suspended closer to call of
33347         my_usleep.
33348         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
33349         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
33350         (desirable_utmp_entry): New function.
33351         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
33352         using x2nrealloc, to simplify logic.
33353         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
33354         size calculation.  Do not assume utmp file is a regular file.
33355         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
33356         (READ_UTMP_CHECK_PIDS): New constant.
33357         * lib/save-cwd.c: Include unistd-safer.h.
33358         (save_cwd): Use fd_safer.
33359         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
33360         [!_LIBC] Include "stat-macros.h" instead.
33361         * lib/unistd-safer.h (fd_safer): New decl.
33362
33363 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
33364
33365         * modules/getloadavg (Depends-on): Add unistd-safer.
33366         * modules/getusershell (Depends-on): Add stdio-safer.
33367         * modules/lstat (Depends-on): Remove xalloc.
33368         * modules/mkstemp (Depends-on): Add stat-macros.
33369         * modules/modechange (Depends-on): Remove xstrtol.
33370         Add stat-macros, xalloc.
33371         * modules/save-cwd (Depends-on): Add unistd-safer.
33372         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
33373         * modules/unistd-safer (Files): Add lib/fd-safer.c
33374         (Makefile.am): Remove lib_SOURCES.
33375
33376         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
33377         Remove fcntl-safer; unistd-safer supersedes it.
33378
33379 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
33380
33381         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
33382         AC_HEADER_STAT.
33383         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
33384         (gl_PREREQ_CHOWN): Remove.
33385         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
33386         it.  Don't require AC_HEADER_STAT.
33387         (gl_PREREQ_LSTAT): Remove.
33388         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
33389         Don't require AC_HEADER_STAT.
33390         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
33391         (gl_PREREQ_RMDIR): Remove.
33392         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
33393         mention stat-macros.h or AC_HEADER_STAT, since we'll make
33394         the stat-macros module a prerequisite.
33395         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
33396         * m4/filemode.m4 (gl_FILEMODE): Likewise.
33397         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
33398         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
33399         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
33400         variable names.
33401         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
33402         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
33403         variable prefixes.
33404         * m4/fcntl-safer.m4: Remove.
33405         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
33406         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
33407         Invoke gl_PREREQ_FD_SAFER.
33408         (gl_PREREQ_FD_SAFER): New macro.
33409         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
33410         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
33411         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
33412         Remove duplicate call to AC_LIBOBJ(readutmp).
33413         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
33414
33415         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
33416         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
33417
33418 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
33419
33420         * MODULES.html.sh (Misc): Add byteswap.
33421
33422 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
33423
33424         * modules/getcwd (Depends-on): Add extensions.
33425         * modules/openat (Depends-on): Likewise.
33426
33427 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
33428
33429         * modules/byteswap: New file.
33430
33431 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
33432
33433         * m4/byteswap.m4: New file.
33434
33435 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
33436
33437         * lib/byteswap_.h: New file.
33438
33439 2005-04-25  Karl Berry  <karl@gnu.org>
33440
33441         * m4/gettext.m4: Update from GNU gettext 0.14.4.
33442
33443 2005-04-25  Albert Chin  <china@thewrittenword.com>
33444
33445         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
33446         Toolkit C bug.
33447
33448 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
33449
33450         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
33451         (func_ln_if_changed) Remove forcibly for no error message
33452         in case file does not exist.
33453
33454 2005-04-19  Simon Josefsson  <jas@extundo.com>
33455
33456         * gnulib-tool (Options): Make --symlink mean --symbolic.
33457
33458 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
33459
33460         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
33461
33462 2005-04-16  Simon Josefsson  <jas@extundo.com>
33463
33464         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
33465
33466 2005-04-15  Simon Josefsson  <jas@extundo.com>
33467
33468         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
33469
33470 2005-04-15  Simon Josefsson  <jas@extundo.com>
33471
33472         * gnulib-tool: Rename --symlink to --symbolic.
33473
33474 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
33475
33476         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
33477         symbolic links to files instead of copying/moving.  Add --aux-dir,
33478         specifying directory relative --dir where auxiliary build tools
33479         are placed.
33480
33481 2005-04-14  Bruno Haible  <bruno@clisp.org>
33482
33483         * modules/allocsa (License): Change to LGPL.
33484         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
33485
33486 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
33487
33488         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
33489         that "UTC +1 second" continues to work.  Problem reported
33490         by Dmitry V. Levin.
33491         (relunit_snumber): New rule.
33492         (relunit): Use it.
33493
33494 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
33495
33496         * lib/getdate.y (universal_time_zone_table): New constant.
33497         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
33498         universal_time_zone_table.
33499         (lookup_zone): Prefer universal_time_zone_table to
33500         local_time_zone_table, so that "GMT" time stamps are allowed in
33501         London during the summer.  Problem reported by Ian Abbott.
33502
33503 2005-04-12  Jim Meyering  <jim@meyering.net>
33504
33505         * lib/human.c (humblock): Set *options even when returning due to
33506         xstrtoumax conversion failure.  Thanks to a used-uninitialized
33507         warning from gcc-4.
33508
33509 2005-04-09  Jim Meyering  <jim@meyering.net>
33510
33511         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
33512         -Wuninitialized: initialize tm0.tm_year.
33513
33514 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
33515
33516         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
33517         count, since there's no maximum.  All uses changed.
33518         Add member dsts_seen.
33519         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
33520         not being INT_MAX.
33521         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
33522         Use pc_rels_seen to decide whther a date is absolute.
33523
33524         * lib/getdate.y (number): Don't overwrite year.
33525         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
33526         check.
33527
33528 2005-04-02  Simon Josefsson  <jas@extundo.com>
33529
33530         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
33531         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
33532
33533 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
33534
33535         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
33536         where no absolute path name can be longer than PATH_MAX.
33537
33538 2005-03-27  Jim Meyering  <jim@meyering.net>
33539
33540         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
33541
33542 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
33543
33544         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
33545         "one's complement" -> "ones' complement" in comment, as per Knuth.
33546         "value of type" -> "type or expression" in comment.
33547         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
33548
33549 2005-03-26  Jim Meyering  <jim@meyering.net>
33550
33551         Comment nits.
33552         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
33553         Correct typos: s/or/of/.
33554
33555 2005-03-26  Jim Meyering  <jim@meyering.net>
33556
33557         * modules/check-include-files: Move to ../ and rename to...
33558         * check-module: ...this.
33559
33560 2005-03-25  Jim Meyering  <jim@meyering.net>
33561
33562         * modules/xvasprintf (Files): Add xalloc.h.
33563
33564 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
33565
33566         * modules/gettext (Files): config/config.rpath ->
33567         build-aux/config.rpath
33568         * modules/iconv (Files): Likewise.
33569         Problem reported by Oskar Liljeblad.
33570
33571 2005-03-23  Jim Meyering  <jim@meyering.net>
33572
33573         * modules/check-include-files: New script to check for
33574         missing dependencies, multiple includes, etc.
33575
33576         * modules/c-strtold (Depends-on): Add xalloc.
33577         * modules/c-strtod (Depends-on): Add xalloc.
33578         * modules/hash (Depends-on): Add xalloc.
33579         (Files): Remove lib/xalloc.h.
33580
33581         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
33582         * modules/userspec (Files): Add lib/inttostr.h.
33583
33584 2005-03-23  Jim Meyering  <jim@meyering.net>
33585
33586         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
33587
33588 2005-03-22  Jim Meyering  <jim@meyering.net>
33589
33590         * modules/stat-macros: New module.
33591         * modules/canonicalize, modules/euidaccess, modules/file-type,
33592         * modules/filemode, modules/lchown, modules/makepath,
33593         * modules/rmdir, modules/stat: Depend on new stat-macros module
33594         rather than listing lib/stat-macros.h manually.
33595         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
33596
33597 2005-03-22  Jim Meyering  <jim@meyering.net>
33598
33599         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
33600
33601 2005-03-22  Bruno Haible  <bruno@clisp.org>
33602
33603         * config/srclist.txt: Replace target directory 'config' with
33604         'build-aux'.
33605         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
33606         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
33607         ../build-aux/.
33608
33609 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
33610
33611         * modules/chdir-long (Depends-on): Add mempcpy.
33612
33613         * modules/acl, modules/backupfile, modules/c-strtod,
33614         modules/c-strtold, modules/canon-host, modules/canonicalize,
33615         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
33616         modules/exclude, modules/exitfail, modules/file-type,
33617         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
33618         modules/getdate, modules/getline, modules/getpagesize,
33619         modules/getpass, modules/getugroups, modules/group-member,
33620         modules/hard-locale, modules/hash, modules/human, modules/idcache,
33621         modules/inttostr, modules/long-options, modules/makepath,
33622         modules/md5, modules/memcasecmp, modules/memcoll,
33623         modules/modechange, modules/mountlist, modules/path-concat,
33624         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
33625         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
33626         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
33627         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
33628         modules/strftime, modules/strndup, modules/strverscmp,
33629         modules/timespec, modules/unlocked-io, modules/userspec,
33630         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
33631         modules/yesno:
33632         Remove lib_SOURCES line from Makefile.am section, as this is now
33633         done automatically by the corresponding Autoconf macro.
33634
33635 2005-03-21  Jim Meyering  <jim@meyering.net>
33636
33637         Changes imported from coreutils.
33638
33639         * lib/cycle-check.c: Don't include xalloc.h.
33640
33641         * lib/path-concat.c: Don't include assert.h.
33642         (path_concat): Remove assertion that would have triggered
33643         for ABASE starting with more than one slash.
33644         Reported by Andreas Schwab.
33645
33646         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
33647         properly when ABASE is an absolute file name.
33648         Correct the description of this function.
33649         Include <assert.h>.
33650         Add an assertion and a test driver.
33651         This fixes a bug introduced on 2004-07-02.
33652         Andreas Schwab reported the resulting failure of cp --parents:
33653         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
33654
33655 2005-03-21  Jim Meyering  <jim@meyering.net>
33656
33657         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
33658         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
33659
33660 2005-03-21  Jim Meyering  <jim@meyering.net>
33661         and  Paul Eggert  <eggert@cs.ucla.edu>
33662
33663         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
33664         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
33665         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
33666         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
33667         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
33668         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
33669         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
33670         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
33671         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
33672         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
33673         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
33674         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
33675         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
33676         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
33677         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
33678         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
33679         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
33680         for these modules.
33681
33682 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
33683
33684         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
33685         (which shouldn't happen), generate nothing instead of returning 0
33686         immediately, so that nstrftime (NULL, ...) doesn't return 0.
33687
33688 2005-03-16  Bruno Haible  <bruno@clisp.org>
33689
33690         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
33691         HAVE_LONGLONG_64BIT.
33692
33693 2005-03-16  Bruno Haible  <bruno@clisp.org>
33694
33695         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
33696         HAVE_LONGLONG_64BIT.
33697
33698 2005-03-16  Bruno Haible  <bruno@clisp.org>
33699
33700         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
33701         HAVE_LONGLONG_64BIT.
33702
33703 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
33704
33705         * lib/strftime.c (my_strftime): Prepend space to format so that we can
33706         reliably distinguish strftime failure from empty output on POSIX
33707         hosts.
33708
33709 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
33710
33711         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
33712         (iconv_string): Don't guess a size-zero buffer, as that might cause
33713         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
33714         result would be 'too large', where 'too large' is (heuristically)
33715         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
33716         overflow concerns.  This will prevent some unwanted malloc failures
33717         when the inputs are very large.
33718
33719 2005-03-15  Karl Berry  <karl@gnu.org>
33720
33721         * config/srclist.txt (config.rpath): from gettext.
33722         * config/config.rpath: update.
33723
33724 2005-03-15  Bruno Haible  <bruno@clisp.org>
33725
33726         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
33727         to 'negate'.
33728
33729         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
33730         variable.
33731
33732         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
33733         results.
33734
33735 2005-03-14  Simon Josefsson  <jas@extundo.com>
33736
33737         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
33738         <fx@gnu.org>.
33739
33740 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
33741
33742         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
33743         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
33744         intprops.h.
33745         * lib/strtol.c: Likewise.
33746
33747 2005-03-14  Jim Meyering  <jim@meyering.net>
33748
33749         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
33750         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
33751         to be nonzero so that we (and caller) can detect the difference
33752         between a valid zero-length expansion and an error return, even
33753         when the underlying strftime fails before writing anything into
33754         that location.
33755
33756 2005-03-14  Bruno Haible  <bruno@clisp.org>
33757
33758         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
33759         Update from GNU gettext 0.14.3.
33760
33761 2005-03-10  Jim Meyering  <jim@meyering.net>
33762
33763         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
33764
33765 2005-03-10  Jim Meyering  <jim@meyering.net>
33766
33767         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
33768         so that this module works on systems without fchdir.
33769
33770 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
33771
33772         Factor int-properties macros into a single file, except for
33773         glibc-related files.
33774         * lib/intprops.h: New file.
33775         * lib/getloadavg.c: Include it instead of limits.h.
33776         (INT_STRLEN_BOUND): Remove.
33777         * lib/human.c: Include intprops.h.
33778         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
33779         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
33780         302/1000.
33781         * lib/inttostr.h: Include intprops.h instead of limits.h.
33782         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
33783         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
33784         for consistency with intprops.h.
33785         (time_t_is_integer, twos_complement_arithmetic): Use them.
33786         * lib/sig2str.h: Include <signal.h>, intprops.h.
33787         (INT_STRLEN_BOUND): Remove.
33788         * lib/strftime.c (TYPE_SIGNED): Remove.
33789         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
33790         * lib/strtol.c: Adjust comments to match intprops.h.
33791         * lib/userspec.c: Include intprops.h.
33792         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
33793         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
33794         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
33795         instead of rolling our own expressions.
33796         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
33797
33798         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
33799         instead of int.
33800         (my_strftime): Do not mishandle years close to INT_MAX, by doing
33801         the right thing even if adding 1900 would overflow.  Similarly
33802         for tm_mon + 1 and tm_yday + 1.
33803         Make %Y always equivalent to %C%y, and similarly for %G and %g.
33804         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
33805         (DO_SIGNED_NUMBER): New macro.
33806         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
33807
33808 2005-03-07  Bruno Haible  <bruno@clisp.org>
33809
33810         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
33811
33812 2005-03-07  Bruno Haible  <bruno@clisp.org>
33813
33814         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
33815
33816 2005-03-04  Derek R. Price  <derek@ximbiot.com>
33817
33818         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
33819         (func_import): Only replace files via --import when they have actually
33820         changed.
33821
33822 2005-03-03  Derek R. Price  <derek@ximbiot.com>
33823
33824         * m4/mmap-anon.m4: New file.
33825         * m4/pagealign_alloc.m4: New file.
33826
33827 2005-03-03  Derek R. Price  <derek@ximbiot.com>
33828             Bruno Haible  <bruno@clisp.org>
33829
33830         * modules/pagealign_alloc: New file.
33831         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
33832
33833 2005-03-03  Derek R. Price  <derek@ximbiot.com>
33834             Bruno Haible  <bruno@clisp.org>
33835
33836         * lib/pagealign_alloc.h: New file.
33837         * lib/pagealign_alloc.c: New file.
33838
33839 2005-03-03  Bruno Haible  <bruno@clisp.org>
33840
33841         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
33842         Use an all-permissive copyright notice, recommended by RMS.
33843
33844 2005-03-02  Bruno Haible  <bruno@clisp.org>
33845
33846         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
33847         of AIX, the replacement has to be done only after <string.h> is
33848         included, therefore not in config.h. stpncpy.h does the replacement,
33849         and stpncpy.c uses it.
33850
33851 2005-03-02  Bruno Haible  <bruno@clisp.org>
33852
33853         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
33854         stpncpy.c uses it.
33855
33856 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
33857
33858         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
33859         The workaround isn't strictly needed for POSIX conformance, and
33860         it's too much of a pain to configure and maintain.  We'll ask
33861         people to fix their kernels instead.
33862         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
33863         (NANOSLEEP_BUG_WORKAROUND): Remove.
33864         (xnanosleep): Remove the workaround.
33865
33866 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
33867
33868         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
33869         Reported by Derek Price.
33870         (Include): Add "timespec.h".
33871
33872         * modules/xnanosleep (Depends-on): Remove gethrxtime.
33873
33874 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
33875
33876         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
33877         to detect nanosleep bug.
33878
33879 2005-03-01  Bruno Haible  <bruno@clisp.org>
33880
33881         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
33882
33883 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
33884
33885         * modules/gethrxtime: New file.
33886         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
33887         (Depends-on): Add gethrxtime.
33888         (configure.ac): Add gl_XNANOSLEEP.
33889         (Makefile.am): Remove lib_SOURCES line.
33890
33891 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
33892
33893         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
33894         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
33895
33896 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
33897
33898         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
33899         * lib/timespec.h (gettime): Return void, since it always
33900         succeeds now.  All uses changed.
33901         * lib/gettime.c (gettime) Likewise.
33902         [HAVE_NANOTIME]: Prefer nanotime.
33903         Assume gettimeofday succeeds, as POSIX requires.
33904         Assime time () succeeds, since other code already does.
33905         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
33906         (timespec_subtract): Remove.
33907         (NANOSLEEP_BUG_WORKAROUND): New constant.
33908         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
33909         things considerably.  Use it only on GNU/Linux hosts, since the
33910         workaround shouldn't be needed elsewhere.
33911
33912 2005-02-24  Bruno Haible  <bruno@clisp.org>
33913
33914         * modules/gettext (Files): Add m4/glibc2.m4.
33915
33916 2005-02-24  Bruno Haible  <bruno@clisp.org>
33917
33918         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
33919         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
33920         * m4/progtest.m4:
33921         Update from GNU gettext 0.14.2.
33922         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
33923
33924 2005-02-24  Bruno Haible  <bruno@clisp.org>
33925
33926         * lib/localcharset.c: Update from GNU gettext 0.14.2.
33927         * lib/config.charset: Update from GNU gettext 0.14.2.
33928
33929 2005-02-24  Bruno Haible  <bruno@clisp.org>
33930
33931         * lib/gettext.h: Update from GNU gettext 0.14.2.
33932
33933 2005-02-23  Simon Josefsson  <jas@extundo.com>
33934
33935         * m4/iconvme.m4: New file.
33936
33937 2005-02-23  Jim Meyering  <jim@meyering.net>
33938
33939         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
33940         change.
33941         Thanks to Bruno Haible for catching it.
33942
33943 2005-02-22  Simon Josefsson  <jas@extundo.com>
33944
33945         * modules/iconvme: New file.
33946
33947         * MODULES.html.sh: Add iconvme.
33948
33949 2005-02-22  Simon Josefsson  <jas@extundo.com>
33950
33951         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
33952
33953 2005-02-22  Simon Josefsson  <jas@extundo.com>
33954
33955         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
33956
33957 2005-02-22  Jim Meyering  <jim@meyering.net>
33958
33959         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
33960         s/ifndef/ifdef/.
33961
33962 2005-02-20  Neil Conway  <neilc@samurai.com>
33963
33964         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
33965         returned by OSX/Darwin if the specified buffer is not large
33966         enough for the hostname.
33967
33968 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
33969
33970         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
33971         pass it to _help, otherwise the latter coredumps trying to
33972         dereference state.root_argp.
33973
33974 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
33975
33976         * modules/chdir-long (Depends-on): Add memrchr.
33977         * modules/memrchr (Files): Add lib/memrchr.h.
33978         (Include): "memrchr.h".
33979
33980 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
33981
33982         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
33983
33984 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
33985
33986         * lib/memrchr.h: New file.
33987         * lib/chdir-long.c: Include it.
33988         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
33989         Don't bother including stddef.h.
33990
33991 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
33992
33993         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
33994         inclusion.
33995         Include <sys/types.h>, for dev_t.
33996         (ME_DUMMY, ME_REMOTE): Move from here....
33997         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
33998         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
33999         Dmitry V. Levin.
34000         Include mountlist.h first, to test the interface.
34001
34002 2005-01-29  Bruno Haible  <bruno@clisp.org>
34003
34004         * lib/progname.c (program_name): Initialize.
34005         Needed when linking statically on MacOS X.
34006
34007 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
34008
34009         Sync from coreutils.
34010         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
34011         (Depends-on): Add c-strtod.
34012         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
34013
34014 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
34015
34016         Sync from coreutils.
34017         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
34018
34019         Remove files that are specific to coreutils.
34020         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
34021
34022 2005-01-28  Bruno Haible  <bruno@clisp.org>
34023
34024         * modules/javacomp: New file.
34025         * MODULES.html.sh (Java): Add javacomp.
34026
34027 2005-01-28  Bruno Haible  <bruno@clisp.org>
34028
34029         * m4/javacomp.m4: New file, from GNU gettext.
34030
34031 2005-01-28  Bruno Haible  <bruno@clisp.org>
34032
34033         * lib/javacomp.sh.in: New file, from GNU gettext.
34034         * lib/javacomp.h: New file, from GNU gettext.
34035         * lib/javacomp.c: New file, from GNU gettext.
34036
34037 2005-01-26  Simon Josefsson  <jas@extundo.com>
34038
34039         * lib/gai_strerror.c: Use GPL in header.
34040
34041 2005-01-26  Bruno Haible  <bruno@clisp.org>
34042
34043         * modules/javaexec: New file.
34044         * MODULES.html.sh (Java): Add javaexec.
34045
34046 2005-01-26  Bruno Haible  <bruno@clisp.org>
34047
34048         * m4/javaexec.m4: New file, from GNU gettext.
34049
34050 2005-01-26  Bruno Haible  <bruno@clisp.org>
34051
34052         * lib/javaexec.sh.in: New file, from GNU gettext.
34053         * lib/javaexec.h: New file, from GNU gettext.
34054         * lib/javaexec.c: New file, from GNU gettext.
34055
34056 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
34057
34058         * modules/lchown (Depends-on): Remove lchown.h
34059
34060 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
34061
34062         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
34063         must be defined if the header file was not found, in order
34064         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
34065
34066 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
34067
34068         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
34069         initializers for struct pentry_state.
34070         (__argp_error): Check return value of __asprintf
34071         (__argp_failure): Translate error message
34072
34073         * lib/argp-parse.c: Removed braces around the expansion of N_()
34074
34075 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
34076
34077         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
34078         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
34079         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
34080         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
34081         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
34082         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
34083         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
34084         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
34085         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
34086         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
34087         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
34088         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
34089         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
34090         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
34091         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
34092         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
34093         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
34094         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
34095         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
34096         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
34097         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
34098         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
34099         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
34100         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
34101         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
34102         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
34103         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
34104         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
34105         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
34106         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
34107         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
34108         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
34109         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
34110         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
34111         xstrtol.m4, xstrtoumax.m4, yesno.m4:
34112         Use an all-permissive copyright notice, recommended by RMS.
34113
34114 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
34115
34116         * modules/chdir-long (Depends-on): Remove mempcpy.
34117
34118 2005-01-21  Jim Meyering  <jim@meyering.net>
34119
34120         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
34121         same value as for Solaris 9.
34122
34123         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
34124         component length.  This included changing the parameter to be
34125         of type `char *' rather than `char const *'.
34126         * lib/chdir-long.h (chdir_long): Update prototype.
34127
34128         * lib/openat.c (fdopendir, fstatat): New functions.
34129         * lib/openat.h: Include headers required for use of DIR and struct
34130         stat.
34131         [AT_SYMLINK_NOFOLLOW]: Define.
34132         (fdopendir, fstatat): Add prototypes.
34133
34134 2005-01-21  Bruno Haible  <bruno@clisp.org>
34135
34136         * modules/classpath: New file.
34137         * MODULES.html.sh (Java): Add classpath.
34138
34139 2005-01-21  Bruno Haible  <bruno@clisp.org>
34140
34141         * lib/classpath.h: New file, from GNU gettext.
34142         * lib/classpath.c: New file, from GNU gettext.
34143
34144 2005-01-20  Simon Josefsson  <jas@extundo.com>
34145
34146         * modules/version-etc-fsf: New file.
34147
34148 2005-01-20  Simon Josefsson  <jas@extundo.com>
34149
34150         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
34151         * lib/version-etc.c: Remove version_etc_copyright.
34152         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
34153         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
34154
34155 2005-01-20  Simon Josefsson  <jas@extundo.com>
34156
34157         * lib/base64.h (isbase64): Add.
34158
34159         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
34160         using a unsigned prototype, don't inline.
34161         (base64_decode): Use it.
34162
34163 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
34164
34165         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
34166         it.
34167
34168 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
34169
34170         * lib/save-cwd.c (save_cwd): Remove code to support the case
34171         where fchdir is missing or flaky.
34172
34173 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
34174
34175         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
34176
34177 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
34178
34179         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
34180         AC_LIBSOURCES now does this.
34181         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
34182         with new ullong_max module.
34183
34184 2005-01-19  Bruno Haible  <bruno@clisp.org>
34185
34186         * modules/sh-quote: New file.
34187         * MODULES.html.sh (Executing programs): Add sh-quote.
34188
34189 2005-01-19  Bruno Haible  <bruno@clisp.org>
34190
34191         * lib/sh-quote.h: New file, from GNU gettext.
34192         * lib/sh-quote.c: New file, from GNU gettext.
34193
34194 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
34195
34196         Merge from coreutils.
34197         * m4/ullong_max.m4: New file.
34198         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
34199         (gl_MACROS): Assume localeconv exists.
34200
34201 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
34202
34203         Merge changes from coreutils, as described below in several
34204         changelogs dated today.
34205
34206         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
34207         (O_DIRECTORY): Remove; not needed here, since "." must be
34208         a directory.  All uses removed.
34209         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
34210         universal on Suns, and we also need to test for IRIX.
34211         Revamp code to use 'if' rather than '#if'.
34212         Avoid unnecessary comparison of cwd->desc to 0.
34213
34214         * lib/utimens.c (futimens): Robustify the previous patch, by checking
34215         for known valid error numbers rather than observed invalid ones.
34216
34217 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
34218
34219         * modules/ullong_max: New file.
34220
34221         * modules/chdir-long, modules/openat: New files.
34222         * modules/save-cwd (Depends-on): Depend on chdir-long.
34223         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
34224
34225 2005-01-18  Jim Meyering  <jim@meyering.net>
34226
34227         Merge from coreutils.
34228         * m4/chdir-long.m4, m4/openat.m4: New files.
34229         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
34230         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
34231         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
34232         is sane and DOES follow symlinks.  Besides, testing 20 different
34233         systems found no broken chown implementations.
34234         Prompted by a change in rsync's copy of this macro.
34235         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
34236
34237         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
34238
34239         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
34240         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
34241         NULL-means-set-to-current-time semantics.
34242         Remove temporary file immediately, rather than waiting
34243         for configure's at-exit trap code to do it.
34244
34245 2005-01-18  Jim Meyering  <jim@meyering.net>
34246
34247         * lib/version-etc.c (version_etc_copyright): Update copyright date.
34248
34249         * lib/utimens.c (futimens): Account for the fact that futimes
34250         can also fail with errno == ENOSYS or errno == ENOENT.
34251         Patch from Dmitry V. Levin.
34252
34253         Change the name of the robust chdir function from chdir to chdir_long.
34254         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
34255         (restore_cwd): Use chdir_long, not chdir.
34256         * lib/chdir-long.c: Renamed from chdir.c.
34257         * lib/chdir-long.h: Renamed from chdir.h.
34258         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
34259         Hurd.
34260
34261 2005-01-18  Bruno Haible  <bruno@clisp.org>
34262
34263         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
34264         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
34265         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
34266         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
34267         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
34268         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
34269         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
34270         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
34271         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
34272         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
34273         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
34274         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
34275         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
34276         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
34277         Use an all-permissive copyright notice, recommended by RMS.
34278
34279 2005-01-18  Bob Proulx  <bob@proulx.com>
34280
34281         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
34282         simplify offsetof() macro construct to avoid compile failure with
34283         native HP-UX 11.0 ANSI C compiler.
34284
34285 2005-01-17  Bruno Haible  <bruno@clisp.org>
34286
34287         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
34288         redundant because stpncpy.m4 takes care of it.
34289
34290 2005-01-17  Bruno Haible  <bruno@clisp.org>
34291
34292         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
34293
34294 2005-01-17  Bruno Haible  <bruno@clisp.org>
34295
34296         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
34297         used.
34298
34299 2005-01-17  Bruno Haible  <bruno@clisp.org>
34300
34301         * lib/fwriteerror.h (fwriteerror): Change specification to include
34302         fclose.
34303         * lib/fwriteerror.c: Include <stdbool.h>.
34304         (fwriteerror): At the end, close the file stream. Record whether
34305         stdout was already closed.
34306
34307 2005-01-17  Bruno Haible  <bruno@clisp.org>
34308
34309         * lib/execute.c (environ): Declare if needed.
34310         * lib/pipe.c (environ): Likewise.
34311         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
34312
34313 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
34314
34315         * modules/argp: Depend on vsnprintf
34316
34317 2005-01-10  Jim Meyering  <jim@meyering.net>
34318
34319         * modules/closeout (Depends-on): Add atexit.
34320
34321 2005-01-06  Bruno Haible  <bruno@clisp.org>
34322
34323         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
34324
34325 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
34326
34327         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
34328         definitions to be after all include files, to avoid collisions.
34329         Problem reported by Bob Proulx.
34330
34331 2005-01-04  Jim Meyering  <jim@meyering.net>
34332
34333         Changes imported from coreutils.
34334         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
34335         as the mkstemp template, use a temporary directory and an
34336         8.3-friendly template to avoid trouble on systems like DJGPP.
34337         Reported by Juan M. Guerrero via Stepan Kasal.
34338         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
34339         close. Remove the temporary directory right away, rather than waiting
34340         for configure's at-exit trap code to do it.
34341         Suggestion from Stepan Kasal.
34342
34343 2005-01-01  Simon Josefsson  <jas@extundo.com>
34344
34345         * gnulib-tool: Print #include directives when --import'ing.
34346
34347 2004-12-28  Simon Josefsson  <jas@extundo.com>
34348
34349         * tests/test-base64.c: Include required header files.  Remove
34350         unused variables.
34351
34352 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
34353
34354         * modules/error (Depends-on): Remove gettext.
34355
34356 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
34357
34358         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
34359         not needed.  This removes a dependency on the gettext module.
34360         [defined _LIBC]: Do not include <libintl.h>; not needed.
34361
34362 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
34363
34364         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
34365         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
34366
34367 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
34368
34369         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
34370         HAVE_DECL_STRTOLD.
34371
34372 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
34373
34374         * modules/getdate (Depends-on): Remove alloca-opt.
34375
34376 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
34377
34378         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
34379
34380 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
34381
34382         * lib/argp-parse.c: Include <stddef.h>.
34383         (alignof, alignto): New macros.
34384         (parser_init): Don't assume that void * is aligned sufficiently
34385         for struct option.
34386
34387         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
34388         need to extend the stack.
34389         (YYINITDEPTH): New macro, so that the initial stack isn't overly
34390         large.
34391
34392 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
34393
34394         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
34395
34396 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
34397
34398         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
34399         (2004-10-24) change.  Apparently this was a false alarm.
34400
34401         * modules/getdate: Depend on alloca-opt, not alloca.
34402
34403 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
34404
34405         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
34406         Remove now-obsolete comment about AIX.
34407         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
34408         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
34409         (YYMAXDEPTH): New macro.
34410
34411 2004-12-18  Simon Josefsson  <jas@extundo.com>
34412
34413         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
34414
34415 2004-12-18  Bruno Haible  <bruno@clisp.org>
34416
34417         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
34418
34419 2004-12-18  Bruno Haible  <bruno@clisp.org>
34420
34421         * lib/fatal-signal.c (fatal_signals): Make non-const.
34422         (init_fatal_signals): New function.
34423         (uninstall_handlers, install_handlers): Ignore signals that were set to
34424         SIG_IGN.
34425         (at_fatal_signal): Call init_fatal_signals.
34426         (init_fatal_signal_set): Likewise. Ignore signals that were set to
34427         SIG_IGN.
34428         Reported by Paul Eggert.
34429
34430 2004-12-18  Bruno Haible  <bruno@clisp.org>
34431
34432         * doc/alloca.texi: New file.
34433         * doc/alloca-opt.texi: New file.
34434
34435 2004-12-17  Jim Meyering  <jim@meyering.net>
34436
34437         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
34438         Otherwise, install-sh could exit with improper exit status when
34439         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
34440
34441 2004-12-16  Simon Josefsson  <jas@extundo.com>
34442
34443         * tests/test-base64.c: Add license.
34444
34445 2004-12-15  Stepan Kasal  <address@hidden>
34446
34447         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
34448
34449 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
34450
34451         * modules/getcwd (Files): Add m4/d-ino.m4.
34452         Suggested by Mark D. Baushke.
34453
34454 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
34455
34456         * lib/getdate.y (textint): New member "negative".
34457         (time_zone_hhmm): New function.
34458         Expect 14 shift-reduce conflicts, not 13.
34459         (o_colon_minutes): New rule.
34460         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
34461         (yylex): Set the "negative" member of signed numbers.
34462
34463 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
34464
34465         * doc/getdate.texi (Time of day items, Time zone items):
34466         Describe new formats +00:00, UTC+00:00.
34467
34468 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
34469
34470         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
34471         spurious "-l"s.  Problem reported by Stepan Kasal.
34472
34473 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
34474
34475         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
34476         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
34477
34478 2004-12-04  Simon Josefsson  <jas@extundo.com>
34479
34480         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
34481         Vandoorselaere <yoann@prelude-ids.org>.
34482
34483 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
34484
34485         Changes imported from coreutils.
34486         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
34487         exist.
34488         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
34489
34490 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
34491
34492         Changes imported from coreutils.
34493         * lib/hard-locale.c: Assume <locale.h> exists.
34494         Include "strdup.h".
34495         (GLIBC_VERSION): New macro.
34496         (hard_locale): Assume setlocale exists.
34497         Rewrite to avoid #ifdef.
34498         Use strdup rather than malloc + strcpy.
34499         * lib/human.c: Assume <locale.h> exists.
34500         (human_readable): Assume localeconv exists.
34501
34502 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
34503
34504         * modules/hard-locale (Depends-on): Add strdup.
34505
34506 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
34507
34508         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
34509         convert T2, not T.  (Imported from libc.)
34510
34511 2004-11-30  Simon Josefsson  <jas@extundo.com>
34512
34513         * modules/restrict (License): Change to LGPL.
34514
34515 2004-11-30  Simon Josefsson  <jas@extundo.com>
34516
34517         * m4/restrict.m4: Add copyright and copying conditions.
34518
34519 2004-11-30  Simon Josefsson  <jas@extundo.com>
34520
34521         * m4/base64.m4: New file.
34522
34523 2004-11-30  Simon Josefsson  <jas@extundo.com>
34524
34525         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
34526         base64.
34527
34528         * tests/test-base64.c: New file.
34529
34530         * modules/base64: New file.
34531
34532 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
34533
34534         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
34535         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
34536
34537         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
34538
34539 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
34540
34541         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
34542         (__getcwd.c): Don't restore errno; glibc doesn't.
34543         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
34544         first, falling back to our code only if its results look suspicious.
34545         Ensure that the resulting buffer is only as large as necessary.
34546
34547         * lib/readutmp.c: Include readutmp.h first.
34548         Include <errno.h>, since readutmp.h no longer does that.
34549         * lib/readutmp.h: Don't include <errno.h>,
34550         <sys/param.h>, <time.h>; not needed to establish interface.
34551         (errno): Remove decl.
34552         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
34553         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
34554         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
34555
34556 2004-11-28  Simon Josefsson  <jas@extundo.com>
34557
34558         * lib/base64.h, base64.c: New file.
34559
34560 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
34561
34562         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
34563
34564 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
34565
34566         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
34567         (Depends-on): Remove pathmax, same.  Add mempcpy.
34568         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
34569         (Makefile.am): Append getcwd.h to lib_SOURCES.
34570         (Include): Add getcwd.h.
34571         (Maintainer): Change from Jim Meyering to "all, glibc",
34572         since getdate now uses intended-for-glibc code.
34573         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
34574         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
34575
34576 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
34577
34578         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
34579         HP's ANSI C compiler.
34580         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
34581         Declaring int functions causes warnings on some modern systems and
34582         shouldn't be needed to compile on ancient ones.
34583         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
34584         defined.
34585
34586         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
34587         with the following changes.
34588         (__set_errno): Parenthesize properly.
34589         Include <stdbool.h>.
34590         (MIN, MAX, MATCHING_INO): New macros.
34591         (__getcwd): Define with prototype, not K&R form.
34592         Use heuristics to allocate default buffer on stack if possible.
34593         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
34594         behavior, and to avoid the PATH_MAX limit when computing
34595         ../../../../...
34596         Use MATCHING_INO to compare inode number to file.
34597         Check for arithmetic overflow in size calculations.
34598         Fix bug in reallocation of dot array that caused getcwd to fail
34599         on directories nested deeper than 75.
34600         Be more careful about saving errno on error.
34601         Do not use realloc; use only free+malloc, as this is a bit
34602         more flexible and avoids a needless copy operation.
34603         Do not inspect st_dev and st_ino for symbolic links; POSIX
34604         doesn't specify the latter.
34605         Check for closedir errors.
34606         Avoid needless casts.
34607         Use "#ifdef weak_alias" around weak_alias, to be like other
34608         glibc code.
34609         The following changes to getcwd.c have effect only when used in
34610         gnulib; they have no effect inside glibc proper.
34611         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
34612         as alloca isn't used.
34613         (alloca, __alloca): Likewise.
34614         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
34615         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
34616         unconditionally, as gnulib assumes C89 or better.
34617         Do not include <sys/param.h>.
34618         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
34619         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
34620         better.
34621         (NULL) [!defined NULL]: Remove; we assume C89 or better.
34622         Include <dirent.h> in a way that is compatible with modern Autoconf.
34623         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
34624         New macros, if not already defined.
34625         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
34626         Use "_LIBC", not "defined _LIBC", for consistency.
34627         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
34628         a mempcpy module.
34629         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
34630         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
34631         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
34632         credit only to Jim Meyering and adjust the copyright dates.
34633         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
34634         <stdlib.h>, <unistd.h>, "pathmax.h".
34635         Instead, include "xgetcwd.h" (first) and "getcwd.h".
34636         (INITIAL_BUFFER_SIZE): Remove.
34637         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
34638
34639 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
34640
34641         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
34642         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
34643         Use the _ONCE methods, for efficiency.
34644         Check for fcntl.h.  In test program, include <errno.h>
34645         and <fcntl.h> if available.  Remove old K&R cruft from
34646         test program.  Check for common errors in GNU/Linux,
34647         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
34648         don't do AC_LIBOBJ, as that's getcwd.m4's job.
34649         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
34650         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
34651         name accordingly.
34652         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
34653         accommodate new getcwd.c.
34654         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
34655         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
34656         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
34657         that's all we need now.
34658
34659 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
34660
34661         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
34662         argp-parse.c depends on getopt internals, that means we should
34663         always use our getopt, to be on the safe side.
34664         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
34665         order not to spoil the result of an eventual previous invocation
34666         of gl_GETOPT_SUBSTITUTE.
34667
34668 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
34669
34670         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
34671         redefinition warnings. To avoid them, include the defines
34672         in `#if !defined __need_getopt ... #endif'. The only place
34673         where __getopt_argv_const is used is in definitions
34674         of getopt_long and getopt_long_only below, which are as well
34675         protected by `#ifndef __need_getopt'.
34676         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
34677         __need_getopt after including <stdio.h> and <unistd.h> These
34678         headers might have defined it.
34679
34680 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
34681
34682         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
34683
34684 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
34685
34686         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
34687         (futimens): New function, which uses futimes if available.
34688         (futimens, utimens): Support timespec==NULL, with same semantics
34689         as utime and utimens.
34690         * lib/utimens.h (futimens): New decl.
34691
34692 2004-11-23  Jim Meyering  <jim@meyering.net>
34693
34694         * lib/getopt_.h: Remove trailing blanks.
34695
34696 2004-11-23  Jim Meyering  <jim@meyering.net>
34697
34698         * lib/__fpending.c: Add comment.
34699
34700 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
34701
34702         * modules/canonicalize (Depends-on): Add xreadlink.
34703         Problem reported by James Youngman.
34704
34705 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
34706
34707         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
34708         New macros.
34709         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
34710         optopt): Use them instead of invoking ## directly; otherwise, the
34711         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
34712
34713 2004-11-19  Bruno Haible  <bruno@clisp.org>
34714
34715         * lib/strtok_r.c: Move comments from here...
34716         * lib/strtok_r.h: ... to here.
34717
34718 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
34719
34720         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
34721         implementations that mishandle size_t overflow.
34722
34723 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
34724
34725         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
34726         might fail.  Problem reported by Yoann Vandoorselaere.
34727         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
34728         implementations that mishandle size_t overflow.
34729
34730 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
34731
34732         * modules/canon-host (Depends-on): Add strdup.
34733
34734 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
34735
34736         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
34737
34738 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
34739
34740         * lib/canon-host.c: Include "strdup.h".
34741         (canon_host): Use getaddrinfo if available, so that IPv6 works.
34742         Use strdup instead of malloc/strcpy to duplicate strings.
34743
34744         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
34745         (human_space_before_unit): New constant.
34746         * lib/human.c (human_readable): Support it.
34747
34748         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
34749         (xgetcwd): Set errno correctly when failing.
34750         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
34751         the failure is actually due to a PATH_MAX problem.
34752
34753         Further getopt changes to make it more likely that glibc will
34754         buy the changes back.
34755         * lib/getopt.c (POSIXLY_CORRECT): New constant.
34756         (getopt): Use it, so to preserve glibc semantic
34757         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
34758         when compiling for libc.
34759         * lib/getopt_.h (__getopt_argv_const): Bring it back.
34760         (getopt_long, getopt_long_only): Use it.
34761
34762         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
34763         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
34764         (getopt): Argv is now char * const *, as per standard.
34765         (_getopt_internal_r, _getopt_internal): Argv is now char **,
34766         not char *__getopt_argv_const *.
34767         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
34768         _getopt_long_only_r): Likewise.
34769         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
34770         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
34771         _getopt_long_r, _getopt_long_only_r): Likewise.
34772         * lib/getopt_.h (__getopt_argv_const): Remove.
34773         (getopt): Argv is now char * const *, as per standard.
34774
34775         * lib/getdate.y (tORDINAL): New token.
34776         (day, relunit): Allow it for relative times.
34777         (relative_time_table): Use tORDINAL for ordinals.
34778
34779 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
34780
34781         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
34782         Document that "second" isn't allowed as an ordinal number.
34783
34784 2004-11-16  Jim Meyering  <jim@meyering.net>
34785
34786         * modules/closeout (Depends-on): Add fpending.
34787
34788 2004-11-15  Jim Meyering  <jim@meyering.net>
34789
34790         * lib/closeout.c: Include "__fpending.h" once again.
34791         Include <stdbool.h>.
34792         (close_stdout): Don't fail just because stdout was closed initially,
34793         since some programs don't write to stdout in the normal course of
34794         operation (other than --version and --help), and we don't want this
34795         function to make e.g. `touch file >&-' fail.
34796         But do fail if it was closed and someone has tried to write to it.
34797         E.g., `printf foo >&-' must fail.
34798
34799 2004-11-13  Jim Meyering  <jim@meyering.net>
34800
34801         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
34802
34803 2004-11-12  Simon Josefsson  <jas@extundo.com>
34804
34805         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
34806         small doc fix is still pending.
34807
34808 2004-11-11  Simon Josefsson  <jas@extundo.com>
34809
34810         * modules/strtok_r: New file.
34811
34812         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
34813         strtok_r.
34814
34815 2004-11-11  Simon Josefsson  <jas@extundo.com>
34816
34817         * m4/strtok_r.m4: New file.
34818
34819         * m4/getopt.m4: Replace opterr.
34820
34821 2004-11-11  Simon Josefsson  <jas@extundo.com>
34822
34823         * lib/strtok_r.h, strtok_r.c: New file.
34824
34825 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
34826
34827         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
34828         of replacing opterr, getopt, etc.  This should handle the
34829         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
34830
34831 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
34832
34833         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
34834         we can stop lying to compilers about the constness of argv when we
34835         are compiled outside glibc.
34836         (getopt, getopt_long, getopt_long_only): Use it.
34837         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
34838         _getopt_internal, getopt): Likewise.
34839         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
34840         _getopt_long_only_r): Likewise.
34841         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
34842         _getopt_long_r, _getopt_long_only_r): Likewise.
34843
34844         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
34845         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
34846         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
34847         the other external symbols.
34848         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
34849         declaration, since the above renaming now works around collisions.
34850
34851 2004-11-11  Jim Meyering  <jim@meyering.net>
34852
34853         * lib/linebreak.c: Remove trailing blanks.
34854         * lib/alloca_.h: Likewise.
34855         * lib/acosl.c: Likewise.
34856         * lib/euidaccess.c: Likewise.
34857         * lib/allocsa.h: Likewise.
34858
34859 2004-11-10  Simon Josefsson  <jas@extundo.com>
34860
34861         * m4/getaddrinfo.m4: New file.
34862
34863 2004-11-10  Simon Josefsson  <jas@extundo.com>
34864
34865         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
34866
34867 2004-11-10  Simon Josefsson  <jas@extundo.com>
34868
34869         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
34870         getaddrinfo.
34871
34872         * modules/getaddrinfo: New file.
34873
34874 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
34875
34876         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
34877
34878 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
34879
34880         * lib/mktime.c (SHR): New macro, which is a portable
34881         substitute for >> that should work even on Crays.
34882         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
34883         Problem reported by Mark D. Baushke in
34884         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
34885         * lib/getdate.y (SHR): Likewise.
34886         (tm_diff): Use it.
34887         * lib/strftime.c (SHR): Likewise.
34888         (tm_diff): Use it.
34889         * lib/quotearg.c (struct quoting_options): Use unsigned int for
34890         quote_these_too, so that right shifts are well defined.  All uses
34891         changed.
34892
34893 2004-11-10  Jim Meyering  <jim@meyering.net>
34894
34895         Ensure that no close failure goes unreported.
34896         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
34897         return early when it seems there's nothing to flush.
34898         Don't include __fpending.h.
34899
34900 2004-11-10  Jim Meyering  <jim@meyering.net>
34901
34902         * modules/closeout (Depends-on): Remove fpending.
34903
34904 2004-11-10  Jim Meyering  <jim@meyering.net>
34905
34906         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
34907
34908 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
34909
34910         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
34911         gl_FUNC_STRFTIME.
34912         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
34913         and AC_REQUIRE when possible, to avoid duplicate checks.
34914         Check for <wchar.h>.
34915
34916 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
34917
34918         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
34919
34920 2004-11-09  Bruno Haible  <bruno@clisp.org>
34921
34922         * m4/sockpfaf.m4: New file.
34923
34924 2004-11-05  Bruno Haible  <bruno@clisp.org>
34925
34926         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
34927         Reported by Mark D. Baushke <mdb@cvshome.org>.
34928
34929 2004-11-04  Bruno Haible  <bruno@clisp.org>
34930
34931         2004-09-11  Bruno Haible  <bruno@clisp.org>
34932                 * allocsa.valgrind: New file.
34933         2004-02-06  Bruno Haible  <bruno@clisp.org>
34934                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
34935                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
34936                 Reported by Christopher Seip <chris.seip@hp.com>.
34937
34938 2004-11-04  Bruno Haible  <bruno@clisp.org>
34939
34940         * modules/allocsa (Files): Add lib/allocsa.valgrind.
34941         (Makefile.am): Distribute it.
34942
34943 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
34944
34945         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
34946         with errno == ERANGE if the buffer is too small.
34947         Problem reported by Mark D. Baushke.
34948
34949 2004-11-03  Albert Chin  <china@thewrittenword.com>
34950             Paul Eggert  <eggert@cs.ucla.edu>
34951
34952         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
34953         equivalent, substitute $ac_type for equivalent type rather than
34954         blindly using uint32_t *always* which won't work if uint32_t is not
34955         available.  Define _UINT32_T to work around typedef of uint32_t if
34956         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
34957         2.5.1.
34958
34959 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
34960
34961         * m4/jm-macros.m4: Sync from coreutils.
34962         (gl_MACROS): Check for mbrlen, for pathchk.
34963         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
34964
34965 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
34966
34967         * lib/xreadlink.c (MAXSIZE): New macro.
34968         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
34969         size does not exceed MAXSIZE.  Avoid cast.
34970         As suggested by Mark D. Baushke in
34971         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
34972         if readlink fails with buffer size just under MAXSIZE, try again
34973         with MAXSIZE.
34974
34975 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
34976
34977         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
34978
34979 2004-11-02  Derek R. Price  <derek@ximbiot.com>
34980         and  Paul Eggert  <eggert@cs.ucla.edu>
34981
34982         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
34983         (get_date): Overparenthesize to avoid GCC warning.
34984
34985 2004-11-02  Bruno Haible  <bruno@clisp.org>
34986
34987         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
34988         returns void.
34989
34990 2004-11-02  Bruno Haible  <bruno@clisp.org>
34991
34992         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
34993         function returns void.
34994
34995 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
34996
34997         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
34998         fflush_unlocked, flockfile, funlockfile, funlockfile,
34999         fputs_unlocked, putc_unlocked.
35000
35001 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
35002
35003         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
35004         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
35005         already declared.
35006
35007 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
35008
35009         * modules/getdate (Files): Add doc/getdate.texi.
35010         (Depends-on): Add setenv, xalloc.
35011
35012 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
35013
35014         * lib/getdate.y: Add support for TZ="foo" within a date string.
35015         Fix some bugs near time_t boundaries.  Reject dates with
35016         out-of-range components, e.g., "Sept 31".
35017         Include <stdlib.h>, "setenv.h", "xalloc.h".
35018         (ISDIGIT_LOCALE): Remove; unused.
35019         Note that the TZ and time functions used here are not reentrant.
35020         (mktime_ok, get_tz): New functions.
35021         (TZBUFSIZE): New constant.
35022         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
35023         This requires that we sometimes generate our own TZ="XXX..." setting.
35024
35025 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
35026
35027         * doc/getdate.texi: New file, from coreutils with modifications for
35028         the new TZ parsing.
35029
35030 2004-10-27  Derek R. Price  <derek@ximbiot.com>
35031
35032         * lib/mktime.c (not_equal_tm): Remove redundant check.
35033
35034 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
35035
35036         * modules/regex (lib_SOURCES): Add regex.c.
35037         Reported by James Youngman in
35038         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
35039
35040 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
35041
35042         * lib/getdate.y: Use Bison 1.875 features, and some minor
35043         code cleanups.  This change does not affect semantics.
35044         Don't include <stdlib.h>; no longer needed.
35045         Don't include unlocked-io.h; only the "#if TEST" code uses
35046         stdio, and performance isn't crucial there.
35047         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
35048         Bison 1.875 features as described below.
35049         All uses of "PC." replaced by "pc->".
35050         (YYSTYPE): Add a forward declaration.
35051         (yylex, yyerror): Use full prototypes in forward decls.
35052         Use "%pure-parser" rather than obsolescent "%pure_parser".
35053         Use %parse-param and %lex-param instead of obsolescent
35054         YYPARSE_PARAM and YYLEX_PARAM.
35055         (meridian_table, month_and_day_table, time_units_table,
35056         relative_time_table, time_zone_table, military_table,
35057         lookup_zone, lookup_word, get_date):
35058         Use NULL instead of 0 where appropriate.
35059         (to_hour): Avoid abort (), to avoid a dependency on
35060         stdlib.h.
35061         (yyerror, yylex): Now accepts parser_control * arg.
35062         (main) [TEST]: Use '\0' rather than 0 for char.
35063
35064 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
35065
35066         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
35067
35068 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
35069
35070         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
35071         It's now the caller's responsibility to handle the case where
35072         !HAVE_GETPAGESIZE && !defined getpagesize.
35073
35074         * lib/mktime.c (leapyear): Arg is long int, not int.
35075
35076 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
35077
35078         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
35079
35080 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
35081
35082         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
35083         missing.  Problem reported by James Youngman.
35084
35085 2004-10-16  Simon Josefsson  <jas@extundo.com>
35086
35087         * gnulib-tool: Fix comments.  Fix parse problem.
35088         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
35089
35090 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
35091
35092         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
35093         implementation of getopt_long.  Problem reported by Alexander Taler in:
35094         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
35095
35096 2004-10-15  Bruno Haible  <bruno@clisp.org>
35097
35098         * gnulib-tool: Untabify. Initialize supplied_libname.
35099         (func_usage): More homogenous output.
35100         (func_modules_transitive_closure, func_modules_to_filelist,
35101         func_emit_lib_Makefile_am): New functions.
35102         (func_import): New function, extracted from big case statement. Use
35103         func_get_license, func_modules_transitive_closure,
35104         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
35105         opt_lgpl. Don't use test -a, as it's not portable.
35106         (func_create_testdir): Use func_modules_transitive_closure,
35107         func_modules_to_filelist, func_emit_lib_Makefile_am.
35108
35109 2004-10-15  Bruno Haible  <bruno@clisp.org>
35110
35111         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
35112
35113 2004-10-15  Bruno Haible  <bruno@clisp.org>
35114
35115         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
35116         the portions belonging to each module.
35117         Suggested by Derek Robert Price <derek@ximbiot.com>.
35118
35119 2004-10-12  Simon Josefsson  <jas@extundo.com>
35120
35121         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
35122         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
35123         to real functions.
35124
35125 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
35126
35127         * modules/vsnprintf: New file.
35128
35129 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
35130
35131         * m4/vsnprintf.m4: New file.
35132
35133 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
35134
35135         * lib/vsnprintf.h: New file.
35136         * lib/vsnprintf.c: New file.
35137
35138 2004-10-11  Bruno Haible  <bruno@clisp.org>
35139
35140         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
35141         vsnprintf.
35142
35143 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
35144
35145         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
35146
35147 2004-10-07  Bruno Haible  <bruno@clisp.org>
35148
35149         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
35150         fits into the provided buffer.
35151
35152 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
35153
35154         * lib/diacrit.c, diacrit.h: Add GPL notice.
35155
35156         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
35157         notice.
35158         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
35159         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
35160         This avoids a potential constant-folding bug.
35161
35162 2004-10-05  Bruno Haible  <bruno@clisp.org>
35163
35164         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
35165         for the declaration of strsep.
35166
35167 2004-10-05  Bruno Haible  <bruno@clisp.org>
35168
35169         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
35170
35171 2004-10-04  Simon Josefsson  <jas@extundo.com>
35172
35173         * modules/memmem: New file.
35174         * tests/test-memmem.c: New file.
35175         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
35176
35177 2004-10-04  Simon Josefsson  <jas@extundo.com>
35178
35179         * m4/memmem.m4: New file.
35180
35181 2004-10-04  Simon Josefsson  <jas@extundo.com>
35182
35183         * lib/memmem.h: New file.
35184         * lib/memmem.c: New file, taken from glibc.
35185
35186 2004-10-04  Simon Josefsson  <jas@extundo.com>
35187
35188         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
35189         '#ifdef USE_UNLOCKED_IO'.
35190
35191 2004-10-04  Simon Josefsson  <jas@extundo.com>
35192
35193         * config/srclist.txt: Add memmem from glibc.
35194
35195 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
35196
35197         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
35198
35199         * modules/argmatch, modules/argp, modules/closeout, modules/error,
35200         modules/exclude, modules/getdate, modules/getline,
35201         modules/getndelim2, modules/getpass, modules/getpass-gnu,
35202         modules/getusershell, modules/linebuffer, modules/md5,
35203         modules/mountlist, modules/posixtm, modules/readtokens,
35204         modules/readutmp, modules/regex, modules/sha1,
35205         modules/version-etc, modules/yesno:
35206         Remove dependency on unlocked-io.
35207
35208 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
35209
35210         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
35211
35212         * m4/unlocked-io.m4: Add copyright notice.
35213         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
35214
35215 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
35216
35217         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
35218         * lib/xmalloc.c (xmemdup): Likewise.
35219         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
35220         XFREE): Remove these long-obsolescent macros.
35221         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
35222         * lib/xstrdup.c: Remove.
35223
35224         * lib/regex.c (re_comp): Cast gettext return value to char *,
35225         Problem reported by Martin Neitzel via Mark D. Baushke.
35226
35227 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
35228
35229         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
35230         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
35231         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
35232         regex.c, sha1.c, version-etc.c, yesno.c:
35233         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
35234         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
35235         the includer's responsibility.
35236
35237         Sync from coreutils.
35238
35239         * lib/modechange.c (mode_compile): Don't decrement a pointer that
35240         points to the start of a string, as the C Standard says the
35241         resulting behavior is undefined.
35242
35243         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
35244         simple -> simple_backups, numbered_existing ->
35245         numbered_existing_backups, numbered -> numbered_backups
35246         to avoid shadowing problems.  All uses changed.
35247         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
35248         * lib/backupfile.c (check_extension, numbered_backup):
35249         Rename locals to avoid shadowing 'basename'.
35250         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
35251         once.
35252
35253         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
35254         * lib/.cvsignore: Add getopt.h.
35255
35256 2004-10-04  Bruno Haible  <bruno@clisp.org>
35257
35258         * modules/README: New file.
35259         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
35260         not a module.
35261
35262 2004-10-02  Jim Meyering  <jim@meyering.net>
35263
35264         * lib/dirfd.h, getpagesize.h: Add copyright notice.
35265
35266 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
35267
35268         * modules/strsep: New file.
35269
35270 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
35271
35272         * m4/strsep.m4: New file.
35273
35274 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
35275
35276         * lib/strsep.h: New file.
35277         * lib/strsep.c: New file.
35278
35279 2004-10-01  Simon Josefsson  <jas@extundo.com>
35280
35281         * lib/snprintf.c (snprintf): Handle size==0.
35282
35283 2004-10-01  Simon Josefsson  <jas@extundo.com>
35284             Bruno Haible  <bruno@clisp.org>
35285
35286         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
35287         (snprintf): Declare 'args'.
35288
35289 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
35290
35291         * lib/snprintf.c: Remove comments as to why each header is needed.
35292
35293 2004-10-01  Bruno Haible  <bruno@clisp.org>
35294
35295         * MODULES.html.sh: Add strsep.
35296
35297 2004-09-30  Simon Josefsson  <jas@extundo.com>
35298
35299         * modules/snprintf: New file.
35300
35301 2004-09-30  Simon Josefsson  <jas@extundo.com>
35302
35303         * m4/snprintf.m4: New file.
35304
35305 2004-09-30  Simon Josefsson  <jas@extundo.com>
35306
35307         * lib/snprintf.h, lib/snprintf.c: New files.
35308
35309 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
35310
35311         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
35312         (hol_entry_help): Never translate an empty string.
35313         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
35314         * lib/argp.h (OPTION_NO_TRANS): New option.
35315
35316 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
35317
35318         * modules/argp (Maintainer): Replace Simon Josefsson
35319         by Sergey Poznyakoff.
35320
35321 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
35322
35323         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
35324         changes merged back into glibc.
35325
35326 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
35327
35328         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
35329
35330 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
35331
35332         * lib/xvasprintf.c: Include xalloc.h.
35333         (xvasprintf): Use xalloc_die, not xmalloc_die.
35334
35335 2004-09-29  Bruno Haible  <bruno@clisp.org>
35336
35337         * modules/alloca-opt: New file, derived from modules/alloca.
35338         * modules/allocsa: Depend on alloca-opt instead of alloca.
35339         * modules/setenv: Likewise.
35340         * modules/vasnprintf: Likewise.
35341         * MODULES.html.sh: Add alloca-opt.
35342
35343 2004-09-28  Simon Josefsson  <jas@extundo.com>
35344
35345         * gnulib-tool: New parameter --lgpl, to asseert that modules are
35346         LGPL, and to replace license template from GPL to LGPL.
35347
35348 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
35349
35350         * modules/dummy: Change license to LGPL.
35351
35352 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
35353
35354         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
35355
35356 2004-09-24  Simon Josefsson  <jas@extundo.com>
35357
35358         * modules/minmax (License): Change from GPL to LGPL.
35359
35360 2004-09-23  Simon Josefsson  <jas@extundo.com>
35361
35362         * gnulib-tool (--import): Typo.
35363
35364 2004-09-23  Simon Josefsson  <jas@extundo.com>
35365
35366         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
35367
35368 2004-09-22  Bruno Haible  <bruno@clisp.org>
35369
35370         * modules/*: Add 'License' field.
35371         * gnulib-tool: Accept --extract-license option.
35372         (func_get_license): New function.
35373
35374 2004-09-21  Bruno Haible  <bruno@clisp.org>
35375
35376         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
35377         Reported by Simon Josefsson.
35378
35379 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
35380
35381         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
35382         gl_AC_TYPE_LONG_LONG.
35383
35384 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
35385
35386         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
35387
35388 2004-09-18  Simon Josefsson  <jas@extundo.com>
35389         and  Paul Eggert  <eggert@cs.ucla.edu>
35390
35391         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
35392         calls with autoreconf.  Define GL_LIB.
35393
35394 2004-09-14  Karl Berry  <karl@gnu.org>
35395
35396         * config/srclist.txt: unsync setenv.c, sigh.
35397
35398 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
35399
35400         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
35401         Problem reported by Bruno Haible in:
35402         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
35403
35404 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
35405
35406         * config/srclist.txt: Comment out argp-pvh.c.
35407
35408 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
35409
35410         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
35411         in case some system header has #define'd it.  Problem reported by
35412         Soeren D. Schulze in
35413         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
35414
35415 2004-09-09  Karl Berry  <karl@gnu.org>
35416
35417         * regex.[ch]: delete from the root.  These were supposed to be
35418                 synced with emacs cvs, but this has not happened for about
35419                 a year, and anyway nothing else uses emacs regex.[ch].
35420                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
35421                 lib/regex[.ch] is untouched.
35422
35423 2004-09-09  Bruno Haible  <bruno@clisp.org>
35424
35425         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
35426
35427 2004-09-09  Bruno Haible  <bruno@clisp.org>
35428
35429         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
35430         modifications.
35431         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
35432
35433 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
35434
35435         * modules/xvasprintf: New file.
35436         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
35437
35438 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
35439
35440         * lib/xvasprintf.h: New file.
35441         * lib/xvasprintf.c: New file.
35442         * lib/xasprintf.c: New file.
35443
35444 2004-09-08  Bruno Haible  <bruno@clisp.org>
35445
35446         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
35447
35448 2004-09-08  Bruno Haible  <bruno@clisp.org>
35449
35450         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
35451         length is > INT_MAX.
35452         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
35453         more.
35454
35455 2004-09-08  Bruno Haible  <bruno@clisp.org>
35456
35457         * lib/stdint_.h: New file, taken from GNU clisp.
35458
35459 2004-09-08  Bruno Haible  <bruno@clisp.org>
35460             Oskar Liljeblad  <oskar@osk.mine.nu>
35461
35462         * modules/stdint: New file.
35463         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
35464
35465 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
35466
35467         Import from coreutils.
35468         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
35469         strings on unbounded length.  alloca's performance benefits aren't
35470         that important here.
35471         (V_STRDUP): Remove.
35472         (parse_with_separator): New function, with most of the internals
35473         of the old parse_user_spec.  Allow user to omit both user and group,
35474         for compatibility with FreeBSD.
35475         Clone only the user name, not the entire spec.
35476         Do not set *uid, *gid unless entirely successful.
35477         Avoid memory leak in some failing cases.
35478         Fix regression for USER.GROUP reported by Dmitry V. Levin in
35479         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
35480         (parse_user_spec): Rewrite to use parse_with_separator.
35481
35482 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
35483
35484         * modules/userspec: Don't depend on alloca.
35485
35486 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
35487
35488         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
35489
35490 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
35491
35492         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
35493         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
35494         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
35495
35496 2004-08-16  Simon Josefsson  <jas@extundo.com>
35497
35498         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
35499         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
35500         Add --dry-run for --import.
35501         Let user provided command line parameters override configure.ac
35502         settings.
35503
35504 2004-08-12  Simon Josefsson  <jas@extundo.com>
35505
35506         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
35507         as discussed with Paul Eggert in threads rooted at
35508         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
35509         and
35510         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
35511         Before, the test was empty, and relied on ELIDE_CODE in source
35512         code.)
35513         (gl_PREREQ_GETOPT): New macro.
35514         (gl_GETOPT): Use them.
35515
35516 2004-08-12  Simon Josefsson  <jas@extundo.com>
35517
35518         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
35519         * lib/getopt_.h: Renamed from getopt.h.
35520
35521 2004-08-12  Simon Josefsson  <jas@extundo.com>
35522
35523         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
35524         Change default library name from libfoo to libgnu.
35525         Now, if you have a configure.ac that says:
35526                 gl_SOURCE_BASE(gl)
35527                 gl_M4_BASE(gl/m4)
35528                 gl_MODULES(error getopt etcetera)
35529                 gl_INIT
35530         you can import all you need by running:
35531                 ../gnulib/gnulib-tool --import
35532
35533         * modules/getopt (Files): Rename getopt.h to getopt_.h.
35534         (Makefile.am): Rewrite, use logic from argz.
35535         (Include): Use <getopt.h> instead of "getopt.h".
35536
35537 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
35538
35539         * modules/argp (Files): Add m4/unlocked-io.m4.
35540         (Depends-on): Add extensions.
35541
35542 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
35543
35544         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
35545         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
35546         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
35547         Check for program_invocation_name, program_invocation_short_name,
35548         flockfile, funlockfile, features.h, _getopt_long_only_r.
35549
35550 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
35551
35552         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
35553         its complicated substitute.
35554         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
35555         and program_invocation_name.
35556         (__argp_basename) [!_LIBC]: Remove; the only use was
35557         replaced by its body.
35558         (__argp_short_program_name): Change condition from
35559         !defined __argp_short_program_name to
35560         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
35561         to match argp-namefrob.h.
35562         (__argp_failure): Don't assume strerror_r returns char *.
35563         * lib/argp-parse.c (N_): Define unconditionally.
35564         (argp_default_options): Fill out initializers with 0 to avoid
35565         gcc warnings.
35566
35567 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
35568
35569         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
35570         getopt1.c.
35571
35572 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
35573
35574         Merge from coreutils.
35575
35576         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
35577
35578         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
35579         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
35580
35581 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
35582
35583         Merge from coreutils.
35584
35585         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
35586         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
35587         for Reliant Unix 5.43.
35588
35589         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
35590         (union fooround): Use uintmax_t, not long int.
35591         The rest is a merge from libc:
35592         [defined _LIBC]: Include <shlib-compat.h>.
35593         (_obstack) [defined _LIBC]: Remove after 2.3.4.
35594
35595         * lib/settime.c (settime): Recode to avoid warning with
35596         Sun Forte C 6U2.
35597
35598         * lib/strverscmp.c: Convert to UTF-8.
35599
35600 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
35601
35602         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
35603         m4/uintmax_t.m4.
35604
35605 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
35606
35607         * modules/xalloc-die: New file.
35608         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
35609
35610         * modules/md5 (Files): Add m4/uint32_t.m4.
35611         * modules/sha1: Renamed from modules/sha.
35612         (Files):
35613         Rename lib/sha.h to lib/sha1.h.
35614         Rename lib/sha.c to lib/sha1.c.
35615         Rename m4/sha.m4 to m4/sha1.m4.
35616         (lib_SOURCES): Likewise.
35617         (configure.ac): Rename gl_SHA to gl_SHA1.
35618         (Include): sha.h -> sha1.h.
35619
35620 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
35621
35622         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
35623         * m4/sha1.m4: Renamed from sha.m4.
35624         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
35625
35626 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
35627
35628         * lib/obstack.h (obstack_empty_p):
35629         Don't assume that chunk->contents is suitably aligned.
35630         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
35631         Likewise. Problem reported by Benno in
35632         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
35633
35634         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
35635         readable.  This could be improved further but it'd take some work.
35636
35637 2004-08-08  Simon Josefsson  <jas@extundo.com>
35638
35639         * modules/xgethostname (Depends-on): Remove exit and error (not
35640         used).
35641
35642         * modules/getpass-gnu: Add getpass.h.
35643         (Depends-on): Add stdbool.
35644         * modules/getpass: Add getpass.h.
35645
35646 2004-08-08  Simon Josefsson  <jas@extundo.com>
35647
35648         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
35649         Check getpass declaration.
35650
35651 2004-08-08  Simon Josefsson  <jas@extundo.com>
35652
35653         * lib/xgethostname.c: Don't include error.h (not used).
35654
35655         * lib/getpass.h: Add.
35656         * lib/getpass.c: Include getpass.h first.
35657
35658 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
35659
35660         * lib/xalloc-die.c: New file.
35661         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
35662         All uses removed.
35663         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
35664         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
35665         xalloc-die.c.
35666         (_, N_, xalloc_die): Move to xalloc-die.c.
35667         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
35668         so that we needn't mess with xalloc_msg_memory_exhausted.
35669
35670         * lib/sha1.h: Renamed from sha.h.
35671         (SHA1_H): Renamed from _SHA_H.
35672         (sha1_ctx): Renamed from sha_ctx.
35673         (sha1_init_ctx): Renamed from sha_init_ctx.
35674         (sha1_process_block): Renamed from sha_process_block.
35675         (sha1_process_bytes): Renamed from sha_process_bytes.
35676         (sha1_finish_ctx): Renamed from sha_finish_ctx.
35677         (sha1_read_ctx): Renamed from sha_read_ctx.
35678         (sha1_stream): Renamed from sha_stream.
35679         (sha1_buffer): Renamed from sha_buffer.
35680         * lib/sha1.c: Likewise; renamed from sha.c.
35681         Do not include <sys/types.h>.
35682         Include <stddef.h> rather than <stdlib.h>.
35683
35684 2004-08-08  Bruno Haible  <bruno@clisp.org>
35685
35686         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
35687         FILESYSTEM_PREFIX_LEN.
35688         * lib/progreloc.c: Likewise.
35689         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
35690
35691 2004-08-06  Simon Josefsson  <jas@extundo.com>
35692
35693         * modules/progname (Depends-on): Don't depend on stdbool.
35694
35695 2004-08-06  Simon Josefsson  <jas@extundo.com>
35696
35697         * modules/getsubopt: New file.
35698         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
35699         getsubopt.
35700
35701 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
35702
35703         More merge from coreutils.
35704
35705         * m4/utimens.m4, m4/utimecmp.m4: New files.
35706         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
35707         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
35708         prereq.m4, sha.m4: Import changes from coreutils.
35709
35710 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
35711
35712         More merge from coreutils.
35713         * modules/raise, modules/readtokens0, modules/utimens:
35714         * modules/utimecmp, module/xnanosleep: New files.
35715         * modules/strftime: Add lib/strftime.h.
35716         Change include from <time.h> to "strftime.h".
35717         * modules/yesno: Add lib/yesno.h.
35718         * modules/backupfile: Remove lib/addext.c.
35719         * modules/euidaccess: Add stat-macros.h.
35720         * modules/canonicalize, modules/euidaccess,
35721         modules/filemode, modules/lchown, modules/makepath,
35722         modules/rmdir, modules/stat: Likewise.
35723
35724 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
35725
35726         Merge from tar.
35727         * lib/argp-help.c (make_hol, hol_append): Don't assume that
35728         SIZE_MAX is a valid preprocessor constant.
35729         (__argp_basename): Change from "#ifndef _LIBC"
35730         to "#ifndef __argp_short_program_name", so that
35731         we don't compile these functions for tar.
35732
35733         More merges from coreutils.
35734         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
35735         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
35736         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
35737         * lib/addext.c: Remove; no longer needed.
35738         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
35739         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
35740         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
35741         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
35742         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
35743         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
35744         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
35745         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
35746         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
35747         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
35748         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
35749         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
35750         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
35751         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
35752         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
35753         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
35754         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
35755         Import changes from coreutils.
35756
35757 2004-08-05  Simon Josefsson  <jas@extundo.com>
35758
35759         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
35760
35761 2004-08-05  Simon Josefsson  <jas@extundo.com>
35762
35763         * m4/getsubopt.m4: New file.
35764
35765 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
35766
35767         Merge from coreutils.
35768
35769         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
35770         * m4/getcwd-path-max.m4: New files.
35771
35772         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
35773         FILESYSTEM_PREFIX_LEN ->
35774         FILE_SYSTEM_PREFIX_LEN.
35775         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
35776         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
35777         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
35778         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
35779
35780         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
35781         prerequisite modules now handle the DOS stuff.
35782         Don't check for unistd.h.
35783
35784 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
35785
35786         Merge from coreutils.
35787
35788         * lib/.gdb-history: Remove; this doesn't belong here.
35789
35790         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
35791         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
35792         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
35793         * lib/getcwd.c: New files.
35794
35795         * lib/dirname.h: Include <stdbool.h>.
35796         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
35797         for consistency with POSIX terminology.  All uses changed.
35798         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
35799         (strip_trailing_slashes): Use bool for booleans.
35800         * lib/stripslash.c (strip_trailing_slashes): Likewise.
35801
35802         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
35803         sometimes returns a positive errno value even when it succeeds.
35804         (print_errno_message) [!LIBC]: Fall back on strerror if
35805         __strerror_r fails.
35806
35807         * lib/path-concat.c (mempcpy): Don't define if a system header defines
35808         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
35809         (longest_relative_suffix): New function.
35810         (path_concat): Use it.  Assume first argument is not NULL.
35811         Port to DOS.  Omit redundant separators.
35812         Report an error instead of returning NULL.
35813         Use mempcpy instead of memcpy.
35814         (xpath_concat): Remove: not declared or used.
35815
35816         * lib/same.h: Include <stdbool.h>
35817         (same_name): Return bool, not int.
35818         * lib/same.c (same_name): Likewise.
35819         (errno): Don't declare; we assume C89 or better now.
35820
35821         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
35822         if not already defined.
35823
35824         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
35825         * lib/dup-safer.c (errno): Likewise.
35826
35827 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
35828
35829         Merge from coreutils.
35830         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
35831         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
35832         * modules/path-concat: Don't depend on strdup.
35833
35834 2004-08-03  Simon Josefsson  <jas@extundo.com>
35835
35836         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
35837         * lib/progname.h: Don't include stdbool.h.
35838
35839 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
35840
35841         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
35842         * MODULES.html.sh (func_all_modules): Remove fatal.
35843
35844 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
35845
35846         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
35847
35848 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
35849
35850         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
35851         working.
35852
35853 2004-08-02  Simon Josefsson  <jas@extundo.com>
35854
35855         * lib/getsubopt.h: New file, with comments from Bruno Haible.
35856         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
35857         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
35858
35859 2004-08-01  Simon Josefsson  <jas@extundo.com>
35860
35861         * lib/xgetdomainname.c: Include stdlib.h, for free().
35862
35863 2004-07-19  Bruno Haible  <bruno@clisp.org>
35864
35865         * MODULES.html.sh (func_all_modules): Add dummy.
35866
35867 2004-07-16  Simon Josefsson  <jas@extundo.com>
35868
35869         * modules/dummy: New file.
35870
35871 2004-07-16  Simon Josefsson  <jas@extundo.com>
35872
35873         * lib/dummy.c: New file.
35874
35875 2004-07-16  Bruno Haible  <bruno@clisp.org>
35876
35877         * lib/backupfile.h: Add extern "C" for C++.
35878         * lib/closeout.h: Likewise.
35879         * lib/copy-file.h: Likewise.
35880         * lib/findprog.h: Likewise.
35881         * lib/full-write.h: Likewise.
35882         * lib/pathname.h: Likewise.
35883         * lib/progname.h: Likewise.
35884         * lib/stpcpy.h: Likewise.
35885         * lib/stpncpy.h: Likewise.
35886         * lib/strcase.h: Likewise.
35887         * lib/strstr.h: Likewise.
35888         * lib/xalloc.h: Likewise.
35889
35890         * lib/mbswidth.h: Add extern "C" for C++.
35891         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
35892
35893 2004-07-13  Robert Millan  <robertmh@gnu.org>
35894
35895         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
35896
35897 2004-07-09  Simon Josefsson  <jas@extundo.com>
35898
35899         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
35900         failed without this.)
35901
35902 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
35903
35904         * modules/chown (Files): Add lib/fchown-stub.c, since
35905         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
35906
35907 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
35908
35909         * lib/fchown-stub.c: New file.
35910
35911 2004-06-24  Jim Meyering  <jim@meyering.net>
35912
35913         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
35914
35915 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
35916
35917         * modules/argz: Omit "#include".
35918
35919         * MODULES.html.sh (func_all_modules): Add calloc, to match
35920         2004-06-01 addition of calloc module.
35921
35922 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
35923
35924         * m4/argz.m4: New file, which is autoupdated from libtool.
35925
35926 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
35927
35928         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
35929         libtool.
35930
35931 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
35932
35933         * config/srclist-update: Don't insist on "USA." before the
35934         close-comment, as libtool omits the period and puts the */ on a
35935         separate line.
35936         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
35937         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
35938
35939 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
35940
35941         * modules/argz: New file.
35942         * MODULES.html.sh (func_all_modules): Add argz.
35943
35944 2004-06-12  Jim Meyering  <jim@meyering.net>
35945         and  Paul Eggert  <eggert@cs.ucla.edu>
35946
35947         * modules/hash (Files): Add lib/xalloc.h.
35948         * modules/pipe (Depends-on): Add wait-process.
35949         * modules/stat (Depends-on): Add xalloc.
35950         * modules/userspec (Files): Add lib/userspec.h.
35951         * modules/xstrto
35952
35953         Upgrade from gettext-0.13.
35954         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
35955         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
35956         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
35957
35958 2004-06-10  Jim Meyering  <jim@meyering.net>
35959
35960         * lib/calloc.c: New file.
35961
35962 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
35963
35964         * lib/getdate.y (yylex): Allow space between sign and number.
35965         Problem reported by Dan Jacobson.
35966
35967 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
35968
35969         Merge from coreutils CVS.
35970
35971         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
35972         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
35973         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
35974         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
35975         xstrtol.m4: Fix copyright date and/or serial number.
35976
35977         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
35978         See if we need an fchown replacement.
35979         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
35980         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
35981         and use the replacement function if we detect either defect.
35982
35983         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
35984         gl_UTIMECMP.
35985
35986 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
35987         and  Jim Meyering  <jim@meyering.net>
35988
35989         Merge from coreutils CVS.
35990
35991         * lib/stat-macros.h: New file, with contents from file-type.h
35992         and coreutils' system.h.
35993         * lib/file-type.c: Include "stat-macros.h".
35994         * lib/file-type.h (file_type): Move all macro definitions to new file,
35995         stat-macros.h.
35996
35997         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
35998         Wrap old code with this conditional.
35999         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
36000         function that does not dereference symlinks.
36001         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
36002
36003         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
36004         dependency problems.
36005         (xreadlink): Accept new arg SIZE, for efficiency.
36006         All decls and uses changed.
36007         * lib/xreadlink.h: Include <stddef.h>, for size_t.
36008
36009         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
36010         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
36011
36012         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
36013         sysexits.h.
36014
36015 2004-06-01  Jim Meyering  <jim@meyering.net>
36016
36017         * m4/calloc.m4: New file.
36018
36019 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
36020
36021         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
36022         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
36023         Also, fix a typo in a diagnostic.
36024
36025 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
36026
36027         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
36028         or AC_FUNC_REALLOC.
36029
36030 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
36031
36032         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
36033         macros to be defined.
36034         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
36035         the allocator returns NULL because the requested size is zero.
36036
36037 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
36038
36039         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
36040         var.  Add comment explaining why libc still defines it.  This
36041         merges the following patch from glibc:
36042         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
36043
36044 2004-05-20  Andreas Schwab  <schwab@suse.de>
36045
36046         * m4/free.m4: Replace free if it not known to work, not the other
36047         way round.
36048
36049 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
36050
36051         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
36052         present in glibc since revision 1.1 of this file.
36053         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
36054         obstack_alignment_mask, obstack_alloc, obstack_base,
36055         obstack_blank, obstack_blank_fast, obstack_chunk_size,
36056         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
36057         obstack_grow0, obstack_init, obstack_int_grow,
36058         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
36059         obstack_next_free, obstack_object_size, obstack_ptr_grow,
36060         obstack_ptr_grow_fast, obstack_room): Remove declarations of
36061         nonexistent functions.
36062
36063 2004-05-18  Karl Berry  <karl@gnu.org>
36064
36065         * config/srclist.txt: break link for vasnprintf.c.
36066
36067 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
36068
36069         Port obstack to the AS/400, where pointers are 16 bytes wide and
36070         you cannot cast an integer to a valid pointer.  This patch is
36071         currently waiting to be integrated into glibc; see
36072         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
36073
36074         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
36075         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
36076         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
36077         (struct obstack): temp member is now a union of a pointer and
36078         an integer, instead of an integer.  All integer uses changed.
36079         This does not affect the physical layout of struct obstack,
36080         except on hosts (like the AS/400) where the size or alignment of
36081         void * is greater than that of ptrdiff_t.
36082         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
36083         __STDC__)]: Store temporary in pointer member of union, not
36084         integer member.
36085         * lib/obstack.c: Include <stddef.h>, for offsetof.
36086         (struct fooalign): Remove; it doesn't need a name.
36087         (union fooround): Change double to long double, and add void *.
36088         (DEFAULT_ALIGNMENT): Use offsetof to compute.
36089         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
36090         not a macro.  Hence the values are always int; so remove all
36091         casts-to-int in uses.
36092
36093 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
36094
36095         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
36096         we can get this patch merged into glibc.
36097
36098 2004-05-17  Derek R. Price  <derek@ximbiot.com>
36099             Paul Eggert  <eggert@cs.ucla.edu>
36100
36101         * m4/argp: Depend on alloca.
36102
36103 2004-05-17  Derek R. Price  <derek@ximbiot.com>
36104             Paul Eggert  <eggert@cs.ucla.edu>
36105
36106         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
36107         freecoding.
36108
36109 2004-05-17  Bruno Haible  <bruno@clisp.org>
36110
36111         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
36112         precision that consists of a '.' followed by an empty digit string.
36113         Patch by Tor Lillqvist <tml@iki.fi>.
36114
36115 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
36116
36117         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
36118         for backward compatibility with older code.  We need our own
36119         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
36120         it under some other name, and our alloca.h will define it.
36121
36122 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
36123             Derek Price  <derek@ximbiot.com>
36124
36125         * lib/alloca.c: Include <alloca.h>, to get our interface.
36126         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
36127         include <alloca.h> first.  Use C89 prototype for alloca; this
36128         requires including <stddef.h> for size_t.  Use extern "C" if C++.
36129         Use #elif for simplicity, since we can assume C89 now.
36130         Don't try to source the system alloca.h since it will not be found
36131         and to prevent recursively including its replacement.
36132         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
36133         * lib/regex.c: Likewise.
36134
36135 2004-05-16  Derek Price  <derek@ximbiot.com>
36136             Paul Eggert  <eggert@cs.ucla.edu>
36137
36138         getline cleanup.  This changes the getndelim2 API: both order of
36139         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
36140         no delimiter).
36141
36142         * lib/getline.c: Don't include stddef.h or stdio.h, since our
36143         interface does that.
36144         (getline): Always use getdelim, so that we don't have two
36145         copies of this code.
36146         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
36147         if available.
36148         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
36149         (GETNDELIM2_MAXIMUM): New macro.
36150         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
36151         instead of the old practice of delim2==0.  All callers changed.
36152         Return -1 on overflow, instead of returning junk.
36153         Do not set *linesize unless allocation succeeds.
36154         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
36155         that we include sys/types.h.
36156         * lib/getnline.h: Likewise.
36157         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
36158         (getndelim2): Reorder arguments.
36159         * lib/getnline.c (getnline, getndelim):
36160         Don't discard the NMAX argument.
36161         (getnline): Invoke getndelim, to avoid code duplication.
36162         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
36163         of (size_t) -1 by callers of the getnline family.
36164
36165 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
36166
36167         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
36168         Check for gettimeofday.
36169         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
36170         Check for settimeofday, stime.
36171
36172 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
36173
36174         * lib/nanosleep.c (suspended): Change its type from int to
36175         sig_atomic_t volatile.
36176         (first_call): Make it private to rpl_nanosleep, and have it
36177         be zero initially as that's a bit faster.
36178         (my_usleep): Round up fractional times instead of truncating them,
36179         as this is the usual meaning for 'sleep'.
36180
36181         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
36182         doesn't work.
36183         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
36184         (ENOSYS): Define if not defined.
36185         (settime): Fall back on stime if it exists and settimeofday fails.
36186         But don't bother with fallbacks if a method fails with errno == EPERM.
36187
36188 2004-05-11  Jim Meyering  <jim@meyering.net>
36189
36190         Prior to this change, the save_cwd caller required read access to the
36191         current directory on most systems (ones with the fchdir function).
36192
36193         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
36194         fails, try write-only, and finally, resort to using xgetcwd.
36195
36196 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
36197
36198         * lib/obstack.c, obstack.h: Import changes from libc.
36199
36200 2004-04-28  Bruno Haible  <bruno@clisp.org>
36201
36202         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
36203         also implicitly appends .exe to executables.
36204         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
36205         accepts Windows pathnames.
36206         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
36207         Treat Cygwin like Windows, since it now accepts Windows pathnames.
36208         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
36209         Treat Cygwin like Windows, since it now accepts Windows pathnames.
36210         Reported by Derek Robert Price <derek@ximbiot.com>.
36211
36212 2004-04-21  Karl Berry  <karl@gnu.org>
36213
36214         * config/srclist.txt (localcharset.c): break sync.
36215
36216 2004-04-20  Paul Eggert  <eggert@twinsun.com>
36217
36218         * m4/host-os.m4: Add a copyright notice.
36219
36220 2004-04-20  Jim Meyering  <jim@meyering.net>
36221
36222         Change UTILS_ to gl_ in AC_DEFINE'd names.
36223         Change utils_- and jm_-prefixed variables, too.
36224         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
36225         UTILS_FUNC_MKDIR_TRAILING_SLASH.
36226         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
36227
36228         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
36229         Don't emit trailing blanks.
36230         Also rename jm_-prefixed variables to have gl_ prefix.
36231
36232         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
36233         Also rename jm_-prefixed variables to have gl_ prefix.
36234
36235         * m4/jm-macros.m4: Reflect the renamings.
36236         * m4/prereq.m4: Likewise.
36237
36238 2004-04-20  Jim Meyering  <jim@meyering.net>
36239
36240         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
36241         memory.
36242
36243 2004-04-20  Jim Meyering  <jim@meyering.net>
36244             Bruno Haible  <bruno@clisp.org>
36245
36246         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
36247         memory when realloc fails.
36248
36249 2004-04-19  Jim Meyering  <jim@meyering.net>
36250
36251         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
36252         now that readutmp.c may call `free (0)'.
36253
36254 2004-04-19  Bruno Haible  <bruno@clisp.org>
36255
36256         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
36257         * m4/inttypes_h.m4: Likewise.
36258         * m4/stdint_h.m4: Likewise.
36259         * m4/intmax_t.m4: Likewise.
36260         * m4/uintmax_t.m4: Likewise.
36261
36262 2004-04-18  Jim Meyering  <jim@meyering.net>
36263
36264         * m4/prereq.m4: Don't forbid jm_ prefix.
36265
36266         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
36267         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
36268         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
36269         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
36270         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
36271         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
36272         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
36273         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
36274         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
36275         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
36276         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
36277         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
36278         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
36279         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
36280         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
36281         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
36282         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
36283         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
36284         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
36285
36286 2004-04-18  Jim Meyering  <jim@meyering.net>
36287
36288         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
36289         failure, don't leak memory and do call END_UTMP_ENT.
36290
36291 2004-04-16  Jim Meyering  <jim@meyering.net>
36292
36293         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
36294         coreutils' stat program.
36295         (gl_PREREQ): Don't require jm_PREREQ_STAT.
36296
36297 2004-04-11  Paul Eggert  <eggert@twinsun.com>
36298
36299         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
36300         C89.
36301         (CHAR_BIT): Remove, since we assume C89.
36302         Include <stdint.h> if available, as per current Autoconf CVS advice.
36303
36304 2004-03-31  Jim Meyering  <jim@meyering.net>
36305
36306         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
36307         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
36308         * m4/xalloc.m4: Likewise.
36309
36310 2004-03-30  Paul Eggert  <eggert@twinsun.com>
36311
36312         Merge from coreutils.
36313
36314         * m4/inttostr.m4: New file.
36315         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
36316         Require AM_STDBOOL_H and gl_TIMESPEC instead.
36317         Require gl_CLOCK_TIME.
36318         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
36319
36320 2004-03-30  Paul Eggert  <eggert@twinsun.com>
36321
36322         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
36323         not bool, to be more consistent with Unix conventions.
36324         Suggested by Bruno Haible.
36325
36326         Merge from coreutils.
36327
36328         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
36329         * lib/umaxtostr.c: New files.
36330
36331         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
36332         the usual <time.h> dance.
36333         (get_date): Change signature to support fractional time stamps.
36334         All callers changed.
36335         * lib/getdate.y: Include "getdate.h" first, as we can now
36336         assume C89 and don't need to worry about 'const'.
36337         Similarly, include "unlocked-io.h" near start, not in middle.
36338         Include <limits.h>.
36339         (textint.value): Use long int rather than int.
36340         (textint.digits): Use size_t rather than int.
36341         (BILLION, LOG10_BILLION): New constants.
36342         (parser_control): New member rel_ns.  Members day_ordinal,
36343         time_zone, month, day, hour, minutes, rel_year, rel_month,
36344         rel_day, rel_hour, rel_minutes, rel_seconds
36345         are now long int, not int.  Member seconds is now struct timespec,
36346         not int.  New member timespec_seen.  Members dates_seen, days_seen,
36347         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
36348         not int.
36349         (%union.intval): Now long int, not int.
36350         New member timespec.
36351         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
36352         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
36353         (spec): Now is a timespec or an item list.
36354         (timespec, items): New nonterminals.
36355         (time, rel, relunit, number, get_date):
36356         Add support for fractional seconds.
36357         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
36358         (gmtime, localtime, mktime): Remove decls; not needed with C89.
36359         (to_hour): First arg is now long int, not int.
36360         (to_year): Returns long int, not int.
36361         Don't treat year -70 like 70.
36362         (tm_diff): Returns long int, not int.
36363         (lookup_word): Use bool instead of int when appropriate.
36364         (yylex): Use size_t for count, not int.
36365         Detect overflow when parsing large integer constants.
36366         Add support for fractions.
36367         (get_date): Make pointers 'const' if possible.
36368         Use more-portable code to detect integer overflow.
36369         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
36370         Don't use ctime; it's not reliable if the year has >4 digits.
36371
36372         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
36373         This is for compatibility with BSD.
36374
36375         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
36376         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
36377         From coreutils' system.h.
36378
36379         * lib/userspec.c: Don't include "posixver.h".
36380         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
36381         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
36382         compatible extension.  Simplify code by removing a boolean int
36383         that was always nonzero if a string was nonnull.
36384
36385 2004-03-30  Jim Meyering  <jim@meyering.net>
36386
36387         Merge from coreutils.
36388
36389         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
36390         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
36391         on some systems one must include <grp.h> before it.
36392         Reported by Christian Krackowizer.
36393
36394 2004-03-30  Jim Meyering  <jim@meyering.net>
36395
36396         Merge from coreutils.
36397
36398         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
36399
36400         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
36401         an empty input stream.
36402
36403         * lib/readtokens.c: Include <stdbool.h>.
36404         (readtoken): Use `size_t' rather than int/long.
36405         All callers adjusted.
36406         Use `bool' rather than `int' where appropriate.
36407         Use memset rather than an explicit loop.
36408         Use x2nrealloc rather than xrealloc.
36409         Allow the use of `\0' as a delimiter.
36410         (readtokens): Likewise.
36411         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
36412
36413 2004-03-30  Jim Meyering  <jim@meyering.net>
36414
36415         * m4/realloc.m4: Remove file, since now it does no more than
36416         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
36417         the `configure.ac' section of module/realloc.
36418         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
36419
36420 2004-03-30  Bruno Haible  <bruno@clisp.org>
36421
36422         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
36423         nonnull.
36424
36425 2004-03-29  Paul Eggert  <eggert@twinsun.com>
36426
36427         Merge changes to getloadavg.c from coreutils and Emacs.
36428
36429         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
36430         Define to an expression, not to the empty string.
36431         Include cloexec.h and xalloc.h.
36432         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
36433         Use set_cloexec_flag rather than rolling our own.
36434         * lib/cloexec.c, lib/cloexec.h: New files.
36435
36436 2004-03-29  Paul Eggert  <eggert@twinsun.com>
36437
36438         * m4/cloexec.m4: New file.
36439
36440 2004-03-18  Paul Eggert  <eggert@twinsun.com>
36441
36442         * lib/getopt.h: Sync with libc CVS.
36443
36444 2004-03-18  Paul Eggert  <eggert@twinsun.com>
36445             Bruno Haible  <bruno@clisp.org>
36446
36447         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
36448         mbswidth.
36449
36450 2004-03-18  Paul Eggert  <eggert@twinsun.com>
36451             Bruno Haible  <bruno@clisp.org>
36452
36453         * lib/mbswidth.h: Include <wchar.h> only if
36454         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
36455         <wchar.h>.
36456         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
36457
36458 2004-03-09  Paul Eggert  <eggert@twinsun.com>
36459
36460         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
36461         Sync with libc CVS.
36462         * lib/getopt_int.h: New file, also synced from libc.
36463
36464 2004-03-09  Paul Eggert  <eggert@twinsun.com>
36465
36466         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
36467         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
36468         Bring back getopt.c, getopt.h, getopt1.c.
36469
36470 2004-03-07  Paul Eggert  <eggert@twinsun.com>
36471
36472         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
36473         All uses changed.  Check for sa_sigaction member; this fixes
36474         a bug first reported by Jason Andrade in
36475         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
36476
36477 2004-03-07  Paul Eggert  <eggert@twinsun.com>
36478
36479         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
36480         '#if' expressions.  Unlike the code it replaces, it does not
36481         depend on (defined _SC_PAGESIZE).  However, it does depend on
36482         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
36483         first reported by Jason Andrade in
36484         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
36485
36486 2004-02-25  Simon Josefsson  <jas@extundo.com>
36487
36488         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
36489
36490 2004-02-25  Simon Josefsson  <jas@extundo.com>
36491
36492         * lib/strdup.h: New file.
36493         * lib/strdup.c: Include it.
36494         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
36495         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
36496
36497 2004-02-23  Karl Berry  <karl@gnu.org>
36498
36499         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
36500         (from fencepost.gnu.org:/gd/gnuorg).
36501
36502 2004-02-23  Karl Berry  <karl@gnu.org>
36503
36504         * config/srclistvars.sh (GNUORG) [karl]: redefine.
36505         * config/srclist.txt: add maintain/standards documents.
36506
36507 2004-02-18  Bruno Haible  <bruno@clisp.org>
36508
36509         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
36510         Reported by Derek Robert Price <derek@ximbiot.com>.
36511
36512 2004-02-16  Karl Berry  <karl@gnu.org>
36513
36514         * config/mkinstalldirs, install-sh: update from automake.
36515
36516 2004-02-06  Karl Berry  <karl@gnu.org>
36517
36518         * m4/po.m4: update from gettext 0.14.1.
36519
36520 2004-02-06  Karl Berry  <karl@gnu.org>
36521
36522         * lib/config.charset: update from gettext 0.14.1.
36523
36524 2004-02-05  Paul Eggert  <eggert@twinsun.com>
36525
36526         Add comments and code, prompted by suggestions from Bruno Haible
36527         for sh-quote.
36528         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
36529         describing the enum quoting_style values.
36530         * lib/quotearg.c (quotearg_alloc): New function.
36531         (quotearg_buffer_restyled): Treat lone { and } as special.
36532         Treat = as special.  Work around bug with older shells
36533         that "see" a '\' that is really the 2nd byte of a multibyte char.
36534         Quote empty string with shell_quoting_style.
36535
36536 2004-02-03  Bruno Haible  <bruno@clisp.org>
36537
36538         * m4/pipe.m4: New file, from GNU gettext.
36539
36540 2004-02-03  Bruno Haible  <bruno@clisp.org>
36541
36542         * lib/pipe.h: New file, from GNU gettext.
36543         * lib/pipe.c: New file, from GNU gettext.
36544
36545 2004-01-27  Bruno Haible  <bruno@clisp.org>
36546
36547         * m4/execute.m4: New file, from GNU gettext.
36548
36549 2004-01-27  Bruno Haible  <bruno@clisp.org>
36550
36551         * lib/execute.h: New file, from GNU gettext.
36552         * lib/execute.c: New file, from GNU gettext.
36553         * lib/w32spawn.h: New file, from GNU gettext.
36554
36555 2004-01-24  Paul Eggert  <eggert@twinsun.com>
36556
36557         Merge from diffutils.
36558
36559         * lib/file-type.c (file_type): Add typed memory objects.
36560         * lib/file-type.h (S_TYPEISTMO): New macro.
36561
36562         * lib/c-stack.h (c_stack_action): Remove argv argument.
36563         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
36564         (die): Don't calculate message unless segv_action returns.
36565         (get_stack_location, min_address_from_argv, max_address_from_argv,
36566         volatile stack_base, volatile_stack_size): Remove.
36567         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
36568         that every segmentation violation is a stack overflow.  (Ouch!)
36569         See Debian bug 136249 (still outstanding) for more info about why
36570         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
36571
36572 2004-01-24  Paul Eggert  <eggert@twinsun.com>
36573
36574         Exit-status fix from coreutils.
36575
36576         Use exit_failure consistently in place of EXIT_FAILURE,
36577         so that program exit statuses are consistent on failure.
36578
36579         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
36580         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
36581         * lib/argmatch.h: Comment fix to match the above.
36582         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
36583         Now a macro referring to exit_failure, instead of a separate
36584         variable.  Include "exitfail.h" to get it.
36585         * lib/xstrtol.h: Include "exitfail.h".
36586         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
36587
36588         * lib/long-options.c (parse_long_options): Use prototype
36589         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
36590         for clarity.
36591
36592 2004-01-21  Jim Meyering  <jim@meyering.net>
36593
36594         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
36595         so as not to conflict with a different-sized __mktime_internal
36596         function in GNU libc.
36597         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
36598         Problem building statically-linked `ls' reported by Michael Brunnbauer.
36599
36600 2004-01-20  Karl Berry  <karl@gnu.org>
36601
36602         * config/config.guess: update from config.
36603
36604         * config/srclistvars.sh: GNUWWWLICENSES for karl.
36605
36606 2004-01-20  Bruno Haible  <bruno@clisp.org>
36607
36608         Safer stack allocation.
36609         * lib/setenv.c: Include allocsa.h.
36610         (alloca): Remove fallback definition.
36611         (freea): Remove macro.
36612         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
36613         instead of freea.
36614
36615 2004-01-20  Bruno Haible  <bruno@clisp.org>
36616
36617         * m4/eealloc.m4: New file, from GNU gettext.
36618
36619 2004-01-20  Bruno Haible  <bruno@clisp.org>
36620
36621         * m4/allocsa.m4: New file, from GNU gettext.
36622
36623 2004-01-20  Bruno Haible  <bruno@clisp.org>
36624
36625         * lib/xallocsa.h: New file, from GNU gettext.
36626         * lib/xallocsa.c: New file, from GNU gettext.
36627
36628 2004-01-20  Bruno Haible  <bruno@clisp.org>
36629
36630         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
36631
36632 2004-01-20  Bruno Haible  <bruno@clisp.org>
36633
36634         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
36635         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
36636         specially.
36637
36638 2004-01-20  Bruno Haible  <bruno@clisp.org>
36639
36640         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
36641         patch.
36642
36643 2004-01-20  Bruno Haible  <bruno@clisp.org>
36644
36645         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
36646
36647 2004-01-20  Bruno Haible  <bruno@clisp.org>
36648
36649         * lib/eealloc.h: New file.
36650
36651 2004-01-20  Bruno Haible  <bruno@clisp.org>
36652
36653         * lib/binary-io.h: Avoid warnings on Cygwin.
36654
36655 2004-01-20  Bruno Haible  <bruno@clisp.org>
36656
36657         * lib/allocsa.h: New file, from GNU gettext.
36658         * lib/allocsa.c: New file, from GNU gettext.
36659
36660 2004-01-18  Karl Berry  <karl@gnu.org>
36661
36662         * doc/gpl.texi, doc/lgpl.texi: new files.
36663
36664 2004-01-18  Karl Berry  <karl@gnu.org>
36665
36666         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
36667         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
36668
36669 2004-01-15  Paul Eggert  <eggert@twinsun.com>
36670
36671         Merge from coreutils.
36672
36673         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
36674         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
36675         (gl_DEFAULT_POSIX2_VERSION): Move
36676         the documentation from 'configure' into 'config.hin',
36677         so that 'configure --help' isn't burdened by it and
36678         we don't have to worry about its formatting there.
36679         Reword the documentation so that it's more succinct
36680         and can be run together into a single paragraph.
36681         * m4/same.m4 (gl_SAME): Check for pathconf.
36682
36683 2004-01-15  Paul Eggert  <eggert@twinsun.com>
36684
36685         Merge from coreutils.
36686
36687         * lib/posixver.c: Include posixver.h.
36688
36689         * lib/same.c: Include <stdbool.h>, <limits.h>.
36690         (_POSIX_NAME_MAX): Define if not defined.
36691         (MIN): New macro.
36692         (same_name): If file names are silently truncated, report
36693         that the file names are the same if they are the same after
36694         the silent truncation.
36695
36696         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
36697         conversion function.
36698         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
36699         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
36700         longer needed.
36701
36702 2004-01-15  Jim Meyering  <jim@meyering.net>
36703
36704         Merge from coreutils.
36705
36706         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
36707         if no library is required.
36708         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
36709         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
36710         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
36711         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
36712         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
36713         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
36714         value, $ac_cv_search_crypt, if it's "none required".
36715         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
36716         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
36717         not gl_FUNC_GETLOADAVG.
36718         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
36719         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
36720
36721 2004-01-15  Jim Meyering  <jim@meyering.net>
36722
36723         Merge from coreutils.
36724
36725         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
36726         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
36727         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
36728
36729         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
36730         optional configure-time default.
36731
36732         * lib/version-etc.c (version_etc_copyright): Update copyright date.
36733
36734         * lib/xreadlink.c (xreadlink): Correct outdated comment.
36735
36736 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
36737
36738         Merge from coreutils.
36739
36740         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
36741         value, $ac_cv_search_nanosleep, if it's "none required".
36742
36743 2004-01-14  Paul Eggert  <eggert@twinsun.com>
36744
36745         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
36746         with like-named macro in fnmatch.c.
36747         (EXT): Use an internal constant instead.
36748
36749         Merge fnmatch patches from glibc.
36750         * lib/fnmatch.c (mbsinit): Remove define.
36751         Add libc_hidden_ver (__fnmatch, fnmatch).
36752         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
36753         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
36754
36755 2004-01-14  Karl Berry  <karl@gnu.org>
36756
36757         * config/install-sh: update from automake.
36758
36759 2004-01-13  Karl Berry  <karl@gnu.org>
36760
36761         * config/install-sh: update from automake.
36762
36763 2004-01-09  Karl Berry  <karl@gnu.org>
36764
36765         * config/install-sh: update from automake.
36766
36767 2004-01-05  Karl Berry  <karl@gnu.org>
36768
36769         * config/config.{sub,guess}: update from config.
36770
36771 2003-12-31  Karl Berry  <karl@gnu.org>
36772
36773         * config/depcomp: update from automake.
36774
36775 2003-12-14  Karl Berry  <karl@gnu.org>
36776
36777         * lib/config.charset: update from gettext-runtime.
36778
36779 2003-12-03  Paul Eggert  <eggert@twinsun.com>
36780
36781         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
36782         Bug reported by Alfred M. Szmidt.
36783
36784 2003-12-03  Bruno Haible  <bruno@clisp.org>
36785
36786         * m4/gettext.m4: Upgrade from gettext-0.13.
36787         * m4/po.m4: Upgrade from gettext-0.13.
36788         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
36789         * m4/intmax.m4: New file, from gettext-0.13.
36790         * m4/printf-posix.m4: New file, from gettext-0.13.
36791
36792 2003-11-29  Karl Berry  <karl@gnu.org>
36793
36794         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
36795
36796 2003-11-25  Paul Eggert  <eggert@twinsun.com>
36797             Bruno Haible  <bruno@clisp.org>
36798
36799         * lib/printf-parse.h: Don't include sys/types.h.
36800         (ARG_NONE): New macro.
36801         (char_directive): Change type of *arg_index fields to size_t.
36802         * lib/printf-parse.c: Don't include sys/types.h.
36803         (SSIZE_MAX): Remove macro.
36804         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
36805         Remove unnecessary overflow check.
36806         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
36807         fields.
36808
36809 2003-11-25  Bruno Haible  <bruno@clisp.org>
36810
36811         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
36812
36813 2003-11-25  Bruno Haible  <bruno@clisp.org>
36814
36815         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
36816         gt_TYPE_SSIZE_T.
36817
36818 2003-11-24  Paul Eggert  <eggert@twinsun.com>
36819
36820         * modules/alloca: Remove dependency on xalloc.
36821
36822 2003-11-24  Paul Eggert  <eggert@twinsun.com>
36823
36824         * lib/alloca.c: Remove dependency on xalloc module.
36825         (xalloc_die): Remove.
36826         (memory_full) [!defined emacs]: New macro.
36827         [!defined emacs]: Don't include xalloc.h.
36828         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
36829         address arithmetic overflows.  Change datatypes a bit to avoid
36830         unnecessary casts.
36831
36832 2003-11-22  Jim Meyering  <jim@meyering.net>
36833
36834         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
36835         s/size/size_t/.
36836
36837 2003-11-21  Karl Berry  <karl@gnu.org>
36838
36839         * config/config.{sub,guess}: update from config.
36840
36841 2003-11-18  Karl Berry  <karl@gnu.org>
36842
36843         * config/config.{sub,guess}: update from config.
36844
36845         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
36846
36847 2003-11-17  Paul Eggert  <eggert@twinsun.com>
36848
36849         * README: Mention that S+T cannot overflow if S is the size of
36850         an existing object and T is sufficiently small.
36851
36852 2003-11-17  Jim Meyering  <jim@meyering.net>
36853
36854         On systems without utime and without a utimes function capable of
36855         dealing with a NULL struct utimbuf* argument, this utime replacement
36856         could -- in unusual circumstances -- leak a file descriptor.
36857         * lib/utime.c: Include <unistd.h> and <errno.h>.
36858         (utime_null): Be sure to close `fd' and to preserve errno.
36859         Reported by Geoff Collyer via Arnold Robbins.
36860
36861 2003-11-17  Bruno Haible  <bruno@clisp.org>
36862
36863         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
36864         (Depends-on): Add xsize.
36865
36866 2003-11-17  Bruno Haible  <bruno@clisp.org>
36867
36868         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
36869
36870 2003-11-17  Bruno Haible  <bruno@clisp.org>
36871
36872         * lib/vasnprintf.c (alloca): Remove fallback definition.
36873         (freea): Remove definition.
36874         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
36875         Reported by Paul Eggert.
36876
36877 2003-11-16  Paul Eggert  <eggert@twinsun.com>
36878             Bruno Haible  <bruno@clisp.org>
36879
36880         Protect against address arithmetic overflow.
36881         * lib/printf-args.h: Include stddef.h.
36882         (arguments): Change type of field 'count' to size_t.
36883         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
36884         'unsigned int' where appropriate.
36885         * lib/printf-parse.h: Include sys/types.h.
36886         (char_directive): Change type of *arg_index fields to ssize_t.
36887         (char_directives): Change type of fields 'count', max_*_length to
36888         size_t.
36889         * lib/printf-parse.c: Include sys/types.h and xsize.h.
36890         (SSIZE_MAX): Define fallback value.
36891         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
36892         instead of 'int' where appropriate. Check a_allocated, d_allocated
36893         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
36894         * lib/vasnprintf.c: Include xsize.h.
36895         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
36896         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
36897         overflow. Avoid wraparound when converting a width or precision from
36898         decimal to binary.
36899
36900 2003-11-16  Bruno Haible  <bruno@clisp.org>
36901
36902         Update from GNU gettext.
36903         * lib/printf-parse.c: Generalize to it can be compiled for wide
36904         strings.
36905         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
36906         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
36907         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
36908         SNPRINTF): New macros.
36909         Don't include <alloca.h> if the file is used inside libintl.
36910         (local_wcslen): New function, for Solaris 2.5.1.
36911         (VASNPRINTF): Use it instead of wcslen.
36912
36913 2003-11-16  Bruno Haible  <bruno@clisp.org>
36914
36915         * lib/xsize.h (xmax): New function.
36916         (xsum, xsum3, xsum4): Declare as "pure" functions.
36917
36918 2003-11-12  Paul Eggert  <eggert@twinsun.com>
36919
36920         * modules/xalloc (Files): Undo latest change, since xalloc.h
36921         no longer needs SIZE_MAX or PTRDIFF_MAX.
36922
36923 2003-11-12  Paul Eggert  <eggert@twinsun.com>
36924
36925         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
36926         gl_PTRDIFF_MAX.
36927
36928 2003-11-12  Paul Eggert  <eggert@twinsun.com>
36929
36930         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
36931         "return", to pacify some unknown compiler.  Problem reported
36932         by Joerg Schilling.
36933
36934 2003-11-12  Paul Eggert  <eggert@twinsun.com>
36935
36936         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
36937         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
36938         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
36939         heuristic is just as accurate as far as we know, and it removes a
36940         dependency on size_max.m4 and ptrdiff_max.m4.
36941
36942 2003-11-11  Bruno Haible  <bruno@clisp.org>
36943
36944         * modules/xsize (Files): Add m4/size_max.m4.
36945         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
36946
36947 2003-11-11  Bruno Haible  <bruno@clisp.org>
36948
36949         * m4/size_max.m4: New file.
36950         * m4/ptrdiff_max.m4: New file.
36951         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
36952         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
36953         (gl_XALLOC): Invoke it.
36954
36955 2003-11-11  Bruno Haible  <bruno@clisp.org>
36956
36957         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
36958         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
36959         defined.
36960
36961 2003-11-10  Paul Eggert  <eggert@twinsun.com>
36962
36963         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
36964         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
36965         rejected some allocations of exactly SIZE_MAX - 2 bytes.
36966         From Bruno Haible.
36967         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
36968         not (size_t) -1, since it's defined here.
36969
36970 2003-11-09  Karl Berry  <karl@gnu.org>
36971
36972         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
36973
36974 2003-11-06  Paul Eggert  <eggert@twinsun.com>
36975
36976         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
36977         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
36978         Reject sizes of exactly SIZE_MAX bytes.
36979         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
36980         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
36981
36982 2003-11-05  Bruno Haible  <bruno@clisp.org>
36983
36984         * lib/xsize.h: Include limits.h, to avoid a possible collision with
36985         SIZE_MAX defined in <limits.h> on Solaris.
36986
36987 2003-11-04  Jim Meyering  <jim@meyering.net>
36988
36989         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
36990         variable names, rather than @VAR@.
36991         * modules/poll: Likewise.
36992
36993 2003-11-04  Bruno Haible  <bruno@clisp.org>
36994
36995         * modules/xsize: New file.
36996         * modules/linebreak: Depend on xsize.
36997         * MODULES.html.sh (func_all_modules): Add xsize.
36998
36999 2003-11-04  Bruno Haible  <bruno@clisp.org>
37000
37001         * m4/xsize.m4: New file.
37002
37003 2003-11-04  Bruno Haible  <bruno@clisp.org>
37004
37005         * lib/xsize.h: New file.
37006         * lib/linebreak.c: Include xsize.h.
37007         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
37008         argument for overflow.
37009         Suggested by Paul Eggert.
37010
37011 2003-11-03  Karl Berry  <karl@gnu.org>
37012
37013         * config/config.{guess,sub}: update from config.
37014
37015 2003-11-03  Jim Meyering  <jim@meyering.net>
37016
37017         * modules/userspec (lib_SOURCES): Add userspec.h.
37018         (Include): Add "userspec.h".
37019         Improve description.
37020
37021 2003-11-03  Jim Meyering  <jim@meyering.net>
37022
37023         * lib/userspec.c: Include "userspec.h".
37024         * lib/userspec.h: New file.
37025
37026 2003-11-03  Bruno Haible  <bruno@clisp.org>
37027
37028         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
37029
37030 2003-11-03  Bruno Haible  <bruno@clisp.org>
37031
37032         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
37033         available, to avoid (extremely rare) race condition.
37034         Suggested by Paul Eggert.
37035
37036 2003-11-02  Karl Berry  <karl@gnu.org>
37037
37038         * config/srclist.txt (vasprintf.c): sync broken, sigh.
37039
37040 2003-10-31  Paul Eggert  <eggert@twinsun.com>
37041
37042         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
37043         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
37044         (read_filesystem_list): Set and use me_type_malloced.
37045         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
37046         whatever the type happens to be), for brevity and consistency.
37047         Check for size calculation overflow on Alphas running OSF/1.
37048
37049 2003-10-31  Jim Meyering  <jim@meyering.net>
37050
37051         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
37052
37053         * lib/linebuffer.c: Include <string.h> for declaration of memset.
37054
37055 2003-10-30  Paul Eggert  <eggert@twinsun.com>
37056             Bruno Haible  <bruno@clisp.org>
37057
37058         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
37059         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
37060
37061 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
37062
37063         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
37064         netbsd*-gnu*.  Suggested by Robert Millan.
37065
37066 2003-10-29  Paul Eggert  <eggert@twinsun.com>
37067
37068         * modules/group-member: Depend on stdbool.
37069
37070 2003-10-29  Paul Eggert  <eggert@twinsun.com>
37071
37072         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
37073
37074 2003-10-29  Paul Eggert  <eggert@twinsun.com>
37075
37076         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
37077         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
37078         after the 'gnu' in these cases.  This fixes some bugs in the
37079         previous change, and is based on suggestions by Robert Millan.
37080
37081 2003-10-29  Paul Eggert  <eggert@twinsun.com>
37082
37083         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
37084         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
37085         no longer needed.
37086         * lib/quotearg.c (quotearg_n_options): Use it.
37087         * lib/group-member.c: Include <stdbool.h>.
37088         (free_group_info): Arg is now const *; don't free arg.
37089         (get_group_info): Now returns bool and accepts struct group_info *,
37090         rather than returning a malloc'ed struct group_info *.
37091         All uses changed.  Check for overflow in internal size calculation.
37092
37093         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
37094         rather than xmalloc/xrealloc.
37095         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
37096         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
37097         conformance bug: the old code used a pointer after freeing the
37098         storage that it addressed.
37099         * lib/hash.c (hash_initialize): Simplify the code by using
37100         xalloc_oversized rather than doing it by hand.
37101         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
37102         the buffer preserved.  Use free and xmalloc instead.
37103         * lib/quotearg.c (quotearg_n_options): Likewise.
37104         Use a simpler test for size overflow.  Don't use xalloc_oversized
37105         because unsigned int might be wider than size_t (!); this suggests
37106         that we should switch from unsigned int to size_t for slot numbers.
37107
37108 2003-10-28  Paul Eggert  <eggert@twinsun.com>
37109
37110         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
37111         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
37112         NetBSD kernels.  Requested by Richard Stallman.
37113
37114 2003-10-27  Paul Eggert  <eggert@twinsun.com>
37115
37116         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
37117         to allocate the returned structure.  Do not allocate a subarray,
37118         as x2nrealloc will do that.
37119         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
37120         instead of xnrealloc.
37121         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
37122
37123 2003-10-27  Bruno Haible  <bruno@clisp.org>
37124
37125         * lib/stdbool_.h: Better support for BeOS.
37126
37127 2003-10-26  Paul Eggert  <eggert@twinsun.com>
37128
37129         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
37130         now uses inline.
37131
37132 2003-10-26  Paul Eggert  <eggert@twinsun.com>
37133
37134         * lib/xalloc.h (xalloc_oversized): New static inline function, for
37135         callers that want to do their own size-overflow checking.  Include
37136         <stdbool.h>, since xalloc_oversized returns bool.
37137         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
37138         to use xalloc_oversized.
37139
37140         Add two functions x2realloc, x2nrealloc, for programs that grow
37141         arrays dynamically by doubling their sizes.
37142         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
37143         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
37144         New functions.
37145
37146         Port to C99 semantics for 'inline' of external functions.
37147         Bug reported by Bruno Haible.
37148         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
37149         with the old contents of xnmalloc.
37150         (xnmalloc, xmalloc): Use it.
37151         (xnrealloc_inline): New static inline function,
37152         with the old contents of xnrealloc.
37153         (xnrealloc, xrealloc): Use it.
37154
37155         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
37156         that.
37157
37158 2003-10-26  Karl Berry  <karl@gnu.org>
37159
37160         * config/srclist.txt (COPYING.DOC): no longer available from
37161         /gd/gnuorg; don't know where the ultimate source is.
37162
37163 2003-10-25  Paul Eggert  <eggert@twinsun.com>
37164
37165         Fix several address-calculation bugs in the hash modules,
37166         plus some minor code cleanup.
37167
37168         * lib/hash.h: Include <stdbool.h>, for bool.
37169         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
37170         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
37171         hash_get_n_entries, hash_get_max_bucket_length,
37172         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
37173         hash_rehash): Use size_t rather than unsigned.
37174         * lib/hash.c (struct hash_table, hash_get_n_buckets,
37175         hash_get_n_buckets_used, hash_get_n_entries,
37176         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
37177         hash_get_entries, hash_do_for_each, hash_string, is_prime,
37178         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
37179         Likewise.
37180         (SIZE_MAX): Define if not defined.
37181         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
37182         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
37183         hash_print):
37184         Use const * when possible.
37185         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
37186         (check_tuning): Fix bug: if tuning parameters were very close to
37187         0 or 1, rounding errors could have caused subscript violations.
37188         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
37189         (hash_initialize): Add 'fail:' label
37190         to free table and return NULL, and use it to simplify code.
37191         Use calloc rather than clearing the storage ourself.
37192         (hash_initialize, hash_rehash): Check for arithmetic overflow in
37193         buffer size calculations.
37194         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
37195         Include <stddef.h>, for size_t.
37196         * lib/hash-pjw.c (hash_pjw): Likewise.
37197         Switch to method described by Bruno Haible.
37198         Include <limits.h>, for CHAR_BIT.
37199         (SIZE_BITS): New macro.
37200
37201 2003-10-23  Paul Eggert  <eggert@twinsun.com>
37202
37203         * m4/getline.m4 (AM_FUNC_GETLINE):
37204         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
37205         hosts.  Problem reported by Derek Robert Price in
37206         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
37207         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
37208         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
37209
37210 2003-10-21  Paul Eggert  <eggert@twinsun.com>
37211
37212         * lib/getndelim2.c (getndelim2): When size calculation overflows,
37213         ceiling the allocation at NMAX bytes rather than silently
37214         discarding input bytes before NMAX is reached.  This makes
37215         a difference only if NMAX exceeds SIZE_MAX / 2.
37216
37217         * lib/obstack.c: Merge from glibc.
37218         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
37219         Add libc_hidden_def (_obstack_newchunk).
37220         (_obstack_free) [! defined _LIBC]: Remove.
37221         [defined _LIBC]: Make a strong alias from obstack_free, rather than
37222         a clone of the function body.
37223         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
37224         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
37225
37226         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
37227         glibc.
37228         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
37229         arg to memcpy.
37230
37231         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
37232         (obstack_ptr_grow_fast, obstack_int_grow_fast):
37233         Don't use lvalue casts, as GCC plans to remove support for them
37234         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
37235         was also present in the non-GCC version, indicating that this
37236         code had always been buggy and had never been widely used.
37237         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
37238         Use the fast variant of each macro, rather than copying the
37239         definiens of the fast variant; that way, we'll be more likely to
37240         catch future bugs in the fast variants.
37241
37242 2003-10-20  Bruno Haible  <bruno@clisp.org>
37243
37244         * modules/wait-process: New file.
37245         * MODULES.html.sh (func_all_modules): Add wait-process.
37246
37247 2003-10-20  Bruno Haible  <bruno@clisp.org>
37248
37249         * m4/wait-process.m4: New file.
37250
37251 2003-10-20  Bruno Haible  <bruno@clisp.org>
37252
37253         * lib/wait-process.h: New file, from GNU gettext.
37254         * lib/wait-process.c: New file, from GNU gettext.
37255
37256 2003-10-19  Jim Meyering  <jim@meyering.net>
37257
37258         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
37259         HPUX 10.20.
37260
37261 2003-10-18  Karl Berry  <karl@gnu.org>
37262
37263         * config/config.guess: update from config.
37264
37265 2003-10-16  Paul Eggert  <eggert@twinsun.com>
37266
37267         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
37268         (getgroups): First arg is int, not size_t.
37269         Don't let 'free' mangle errno.
37270
37271 2003-10-16  Paul Eggert  <eggert@twinsun.com>
37272
37273         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
37274
37275 2003-10-16  Karl Berry  <karl@gnu.org>
37276
37277         * config/config.{guess,sub}: update from config.
37278
37279 2003-10-16  Jim Meyering  <jim@meyering.net>
37280
37281         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
37282         memcpy.
37283
37284 2003-10-15  Paul Eggert  <eggert@twinsun.com>
37285
37286         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
37287         (SIZE_MAX): Remove.
37288         (new_exclude, add_exclude_file): Initial size no longer needs to
37289         be a power of 2.
37290         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
37291         our own address arithmetic overflow checking.
37292
37293         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
37294         (fnmatch): Do not alloca more than 2000 wide characters;
37295         instead, use malloc for large buffers.
37296         Check for address arithmetic overflow, and return -1
37297         with errno set to ENOMEM in that case.
37298         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
37299         (NEW_PATTERN): Do not alloca more than 8000 bytes;
37300         instead, return -1.  Check for address arithmetic overflow.
37301
37302 2003-10-14  Paul Eggert  <eggert@twinsun.com>
37303
37304         Handle invalid suffixes and overflow independently, so that
37305         callers can treat them independently as needed.  Fix some bugs in
37306         suffix handling, e.g., "100k@" was not diagnosed as an invalid
37307         suffix for a human-readable blocksize.  The major caller-visible
37308         change is the addition of a new
37309         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
37310         that both overflow and suffix chars were found.
37311
37312         * lib/human.c (humblock): Don't check separately for invalid suffix
37313         char; that is xstrtoumax's job (now that its bug is fixed).
37314         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
37315         INTMAX_MAX]: New macros.
37316         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
37317         TYPE_MAXIMUM): New macros.
37318         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
37319         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
37320         if overflow occurs, as it's what __strtol does and it's more useful
37321         in practice.
37322         (__xstrtol): If __strtol reports some error other than ERANGE,
37323         reflect it to the caller as LONGINT_INVALID.  If it reports
37324         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
37325         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
37326         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
37327         value.
37328         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
37329         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
37330         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
37331         [defined UINTMAX_MAX]: New macros.
37332
37333 2003-10-14  Bruno Haible  <bruno@clisp.org>
37334
37335         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
37336
37337 2003-10-14  Bruno Haible  <bruno@clisp.org>
37338
37339         * m4/sig_atomic_t: New file, from GNU gettext.
37340         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
37341
37342 2003-10-14  Bruno Haible  <bruno@clisp.org>
37343
37344         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
37345         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
37346         Also use volatile where needed.
37347
37348 2003-10-12  Paul Eggert  <eggert@twinsun.com>
37349
37350         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
37351         Change maintainer from Bruno Haible to 'all'.
37352
37353 2003-10-12  Paul Eggert  <eggert@twinsun.com>
37354
37355         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
37356
37357 2003-10-12  Paul Eggert  <eggert@twinsun.com>
37358
37359         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
37360         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
37361         and define in terms of the other primitives.
37362         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
37363         (SIZE_MAX): Define if not already defined.
37364         (array_size_overflow): New function.
37365         (xalloc_die): Abort instead of exiting if 'error' returns.
37366         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
37367         (xmalloc, xrealloc): Use them.
37368         (xcalloc): Check for address arithmetic overflow.
37369         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
37370         a bit faster than strcpy.
37371
37372 2003-10-10  Simon Josefsson  <jas@extundo.com>
37373
37374         * modules/argp (Depends-on): Add restrict and strcase.
37375
37376 2003-10-10  Simon Josefsson  <jas@extundo.com>
37377
37378         * m4/argp.m4: Add AC_C_INLINE.
37379
37380 2003-10-08  Paul Eggert  <eggert@twinsun.com>
37381
37382         Merge getpass from libc, plus a few fixes.
37383
37384         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
37385         Include <stdbool.h>.
37386         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
37387         __fsetlocking to empty.
37388         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
37389         do include <bits/libc-lock.h>.
37390         Do not include <fcntl.h>; not needed.
37391         [_LIBC]: Include <wchar.h>.
37392         (NOTCANCEL_MODE): New macro.
37393         (flockfile, funlockfile) [_LIBC]: New macros.
37394         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
37395         [!_LIBC]: New macros.
37396         (call_fclose): New function.
37397         (getpass): Use it.  Save tty stream separately; this simplifies the
37398         code and makes it more reliable if stdin happens to equal stdout.
37399         Invoke __fsetlocking on tty.
37400         Handle thread cancellation if needed.
37401         Namespace cleanup (use __tcgetattr, __getline).
37402         Use bool for Booleans.
37403         [USE_IN_LIBIO]: Handle wide streams.
37404         [!_LIBC]: Unconditionally do the fseek, since we don't know what
37405         stream might go where.
37406
37407         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
37408         doesn't have to include <stdio.h> before us.
37409         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
37410         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
37411         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
37412         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
37413         if not declared, so that we can use getpass.c code from libc without
37414         rewriting it.
37415         (flockfile, ftrylockfile, funlockfile): New macros.
37416
37417 2003-10-08  Paul Eggert  <eggert@twinsun.com>
37418
37419         * modules/getpass: Depend on stdbool.
37420
37421 2003-10-08  Paul Eggert  <eggert@twinsun.com>
37422
37423         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
37424
37425 2003-10-07  Karl Berry  <karl@gnu.org>
37426
37427         * config/config.{guess,sub}: update from config.
37428
37429 2003-10-06  Jim Meyering  <jim@meyering.net>
37430             Bruno Haible  <bruno@clisp.org>
37431
37432         This lets translators provide better translations for the
37433         "Written by ..." part of --version output.
37434         * lib/version-etc.h: Include stdarg.h.
37435         (version_etc_copyright): Declare as readonly.
37436         (version_etc): Make this function variadic with a NULL-terminated list
37437         of author name strings.
37438         (version_etc_va): New declaration.
37439         * lib/version-etc.c: Include stdarg.h, stdlib.h.
37440         (version_etc_copyright): Declare as readonly.
37441         (version_etc_va): New function. Provide a different translatable string
37442         for each possible number of authors < 10. Abbreviate when there are 10
37443         authors or more.
37444         (version_etc): Make this function variadic. Call version_etc_va.
37445         Suggestion from Gary V. Vaughan.
37446
37447         * lib/long-options.h (parse_long_options): Change prototype: the
37448         authors string is moved to the end and becomes variadic.
37449         * lib/long-options.c: Include stdarg.h.
37450         (parse_long_options): Make this function variadic, too.
37451         Call version_etc_va, not version_etc.
37452
37453 2003-10-06  Bruno Haible  <bruno@clisp.org>
37454
37455         * modules/version-etc-2: Remove file.
37456         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
37457
37458 2003-10-06  Bruno Haible  <bruno@clisp.org>
37459
37460         * modules/fatal-signal: New file.
37461         * MODULES.html.sh (func_all_modules): Add fatal-signal.
37462
37463 2003-10-06  Bruno Haible  <bruno@clisp.org>
37464
37465         * m4/fatal-signal.m4: New file.
37466         * m4/signalblocking.m4: New file, from GNU gettext.
37467
37468 2003-10-06  Bruno Haible  <bruno@clisp.org>
37469
37470         * lib/version-etc-2.h: Remove file.
37471         * lib/version-etc-2.c: Remove file.
37472
37473 2003-10-06  Bruno Haible  <bruno@clisp.org>
37474
37475         * lib/fatal-signal.h: New file, from GNU gettext.
37476         * lib/fatal-signal.c: New file, from GNU gettext.
37477
37478 2003-10-05  Paul Eggert  <eggert@twinsun.com>
37479
37480         * README: Rework advice for preventing empty .o files.
37481         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
37482         not <sys/types.h>.
37483
37484 2003-10-04  Karl Berry  <karl@gnu.org>
37485
37486         * lib/argp*: update from libc.
37487
37488 2003-10-04  Karl Berry  <karl@gnu.org>
37489
37490         * config/config.{guess,sub}: update from config.
37491
37492 2003-10-02  Bruno Haible  <bruno@clisp.org>
37493
37494         * modules/lchown (Include): Add lchown.h.
37495         * modules/time_r (Include): Use "..." syntax.
37496         * modules/xgetdomainname (Include): Add xgetdomainname.h.
37497
37498 2003-10-01  Simon Josefsson  <jas@extundo.com>
37499
37500         * MODULES.html.sh (func_all_modules): Move gethostname from section
37501         'based on' to section 'lacking' POSIX:2001.
37502
37503 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
37504
37505         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
37506         to output mode on the same stream.
37507
37508 2003-09-29  Paul Eggert  <eggert@twinsun.com>
37509
37510         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
37511         Fix arg typo in previous patch.
37512
37513 2003-09-28  Jim Meyering  <jim@meyering.net>
37514
37515         * lib/error.c: Correct cpp indentation.
37516
37517 2003-09-27  Paul Eggert  <eggert@twinsun.com>
37518
37519         * modules/free: New file.
37520
37521 2003-09-27  Paul Eggert  <eggert@twinsun.com>
37522
37523         * m4/free.m4: New file.
37524
37525 2003-09-27  Paul Eggert  <eggert@twinsun.com>
37526
37527         * lib/minmax.h (MIN, MAX)
37528         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
37529         Omit the special code that used __typeof__, since we worry that
37530         it could be more trouble than it's worth.  See:
37531         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
37532         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
37533
37534         * lib/free.c: New file.
37535
37536 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
37537
37538         Trivial fixes to Makefile.am parts of module listings.
37539         * modules/strstr: Append strstr.h to lib_SOURCES.
37540         * modules/strcase: Likewise, for strcase.h.
37541
37542 2003-09-27  Karl Berry  <karl@gnu.org>
37543
37544         * config/mkinstalldirs: update from automake.
37545
37546 2003-09-26  Paul Eggert  <eggert@twinsun.com>
37547
37548         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
37549         (error_tail): Do not loop, reallocating temporary buffer, since
37550         the output cannot contain more wide characters than the input
37551         contains bytes, the size must be big enough already.  This avoids
37552         one potential size overflow calculation.  Check for size overflow
37553         when calculating temporary buffer size.  Free temporary buffer
37554         when done, if it was allocated with malloc; this plugs a memory
37555         leak.  Remove casts from void * to pointers, that are no longer
37556         needed now that we're assuming C89 or better.
37557
37558         Merge error changes from glibc.
37559
37560         * lib/error.c, error.h: Update copyright notice header to match glibc.
37561         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
37562         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
37563         Disable cancellation while printing error.
37564         * lib/error.h: Prepend __ to parameter names.
37565
37566 2003-09-26  Jim Meyering  <jim@meyering.net>
37567
37568         * lib/error.c (error_tail): Move some declarations
37569         into inner scope where the local variables are used.
37570
37571 2003-09-26  Bruno Haible  <bruno@clisp.org>
37572
37573         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
37574         stpncpy().
37575         Don't define stpncpy through config.h; it's now done through stpncpy.h.
37576
37577 2003-09-26  Bruno Haible  <bruno@clisp.org>
37578
37579         * lib/stpncpy.h (gnu_stpncpy): New declaration.
37580         (stpncpy): Define as alias for gnu_stpncpy.
37581         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
37582
37583 2003-09-25  Simon Josefsson  <jas@extundo.com>
37584
37585         * lib/xgetdomainname.h: New file.
37586         * lib/xgetdomainname.c: New file.
37587
37588 2003-09-25  Simon Josefsson  <jas@extundo.com>
37589             Bruno Haible  <bruno@clisp.org>
37590
37591         * modules/getdomainname: New file.
37592         * modules/xgetdomainname: New file.
37593         * MODULES.html.sh (func_all_modules): Add getdomainname,
37594         xgetdomainname.
37595
37596 2003-09-25  Simon Josefsson  <jas@extundo.com>
37597             Bruno Haible  <bruno@clisp.org>
37598
37599         * m4/getdomainname.m4: New file.
37600
37601 2003-09-25  Simon Josefsson  <jas@extundo.com>
37602             Bruno Haible  <bruno@clisp.org>
37603
37604         * lib/getdomainname.h: New file.
37605         * lib/getdomainname.c: New file.
37606
37607 2003-09-25  Karl Berry  <karl@gnu.org>
37608
37609         * lib/argp-fmtstream.c, argp-help.c: update from libc.
37610
37611 2003-09-25  Karl Berry  <karl@gnu.org>
37612
37613         * config/install-sh: update from automake.
37614
37615 2003-09-25  Bruno Haible  <bruno@clisp.org>
37616
37617         * modules/version-etc-2: New file, from modules/version-etc with
37618         modifications.
37619         * MODULES.html.sh (func_all_modules): Add version-etc-2.
37620
37621 2003-09-25  Bruno Haible  <bruno@clisp.org>
37622
37623         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
37624         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
37625
37626 2003-09-24  Simon Josefsson  <jas@extundo.com>
37627
37628         * modules/xgethostname: Add xgethostname.h.
37629
37630 2003-09-24  Paul Eggert  <eggert@twinsun.com>
37631
37632         * lib/linebuffer.c (freebuffer): Don't free the argument, just
37633         the buffer associated with the argument.  Bug reported by
37634         Simon Josefsson.
37635
37636 2003-09-24  Paul Eggert  <eggert@twinsun.com>
37637
37638         * README: Document assumptions that 'int' is at least 32 bits
37639         wide, that integer arithmetic is 2's complement without overflow,
37640         that there are no holes in integer values, that adding sizes of
37641         two nonoverlapping objects can't overflow, and that all-bits-zero
37642         yields scalar zero.  Fix spelling and capitalization typos.
37643
37644 2003-09-19  Karl Berry  <karl@gnu.org>
37645
37646         * lib/argp.h: update from libc.
37647
37648 2003-09-17  Paul Eggert  <eggert@twinsun.com>
37649
37650         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
37651         to avoid spurious warnings like "AC_RUN_IFELSE was called before
37652         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
37653
37654 2003-09-17  Paul Eggert  <eggert@twinsun.com>
37655
37656         * gnulib-tool: Use "test -h", not "test -L", for portability
37657         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
37658         (tags_regexp): Remove, since \| doesn't conform to POSIX.
37659         (sed_extract_prog): Issue s commands one-by-one, rather than
37660         using \| in one s command.
37661
37662 2003-09-16  Paul Eggert  <eggert@twinsun.com>
37663
37664         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
37665         input error, instead of returning NULL the next time we are called
37666         (and therefore losing track of errno).
37667
37668 2003-09-16  Bruno Haible  <bruno@clisp.org>
37669
37670         * gnulib-tool (func_create_testdir): Warn about duplicated
37671         dependencies.
37672
37673 2003-09-15  Paul Eggert  <eggert@twinsun.com>
37674
37675         * modules/argmatch, modules/fatal, modules/obstack,
37676         modules/xalloc, modules/xgethostname: Sort dependencies by
37677         importance, not alphabetically.
37678
37679 2003-09-15  Paul Eggert  <eggert@twinsun.com>
37680
37681         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
37682         fails, so that the caller gets the proper errno.
37683
37684         * lib/readutmp.c (read_utmp): Likewise.
37685         Check for fstat error.  Close stream and free storage
37686         when failing.
37687
37688 2003-09-14  Karl Berry  <karl@gnu.org>
37689
37690         * config/srclist.txt (strdup.c): disable for c89 changes.
37691
37692 2003-09-14  Jim Meyering  <jim@meyering.net>
37693
37694         * lib/getloadavg.c: Correct cpp indentation.
37695         * lib/strdup.c: Likewise.
37696         * lib/vasnprintf.c: Likewise.
37697
37698 2003-09-14  Bruno Haible  <bruno@clisp.org>
37699
37700         * modules/fwriteerror: New file.
37701         * MODULES.html.sh (func_all_modules): Add fwriteerror.
37702
37703 2003-09-14  Bruno Haible  <bruno@clisp.org>
37704
37705         * lib/fwriteerror.h: New file.
37706         * lib/fwriteerror.c: New file.
37707
37708 2003-09-12  Paul Eggert  <eggert@twinsun.com>
37709
37710         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
37711         modules/xgethostname, modules/xalloc: Depend on exit.
37712
37713 2003-09-12  Paul Eggert  <eggert@twinsun.com>
37714
37715         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
37716
37717         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
37718         and AC_MINIX, too, so that their extensions are available.
37719
37720         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
37721         This macro has been superseded by gl_BACKUPFILE.
37722
37723         More patches to assume C89 or better.
37724
37725         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
37726
37727         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
37728         unconditionally.
37729         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
37730         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
37731         Include <string.h>, <stdlib.h> unconditionally.
37732         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
37733         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
37734         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
37735         headers or for string.h.
37736         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
37737         or strtoul.
37738
37739         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
37740         headers.
37741         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
37742         * m4/userspec.m4 (gl_USERSPEC): Likewise.
37743         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
37744         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
37745         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
37746         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
37747         memcpy, memset.
37748         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
37749         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
37750         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
37751         strtol.
37752         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
37753         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
37754         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
37755         strtoul.
37756
37757 2003-09-12  Paul Eggert  <eggert@twinsun.com>
37758
37759         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
37760         * lib/obstack.c [!defined _LIBC]: Likewise.
37761         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
37762         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
37763         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
37764
37765         More changes to assume C89 or better.
37766
37767         * lib/error.c (error_tail): Assume vprintf.
37768
37769         * lib/argmatch.c (getenv): Remove decl.
37770         * lib/progreloc.c (get_full_program_name): Define via prototype.
37771         * lib/setenv.c (clearenv): Likewise.
37772         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
37773         needed.
37774         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
37775         (malloc, memcpy): Remove decls.
37776         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
37777         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
37778         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
37779         (memcpy): Remove macro.
37780         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
37781         (__P): Remove.  All uses removed.
37782         (PTR): Remove.  All uses changed to void *.
37783         (CHAR_BIT, NULL): Remove.
37784         (spaces, zeros, memset_space, memset_zero)
37785         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
37786         Remove.
37787         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
37788         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
37789         Define with prototype.
37790         Remove now-unnecessary prototype decl.
37791         (extra_args_spec): Assume ANSI C.  All uses changed.
37792         (extra_args_spec_iso): Remove.
37793         (my_strftime, emacs_strftimeu): Define via prototype.
37794         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
37795         unconditionally.
37796         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
37797         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
37798         (strtoul, strtol): Remove decls.
37799         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
37800         LONG_MAX): Remove.
37801         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
37802         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
37803         (LOCALE_PARAM_PROTO): New macro.
37804         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
37805         (INTERNAL (strtol), strtol): Define with a prototype.
37806         (PARAMS): Remove.  All uses removed.
37807         * lib/tempname.c: Include <string.h> unconditionally.
37808         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
37809         * lib/xgethostname.c (main): Define with a prototype.
37810         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
37811         Include <stdlib.h> unconditionally.
37812         (calloc, malloc, realloc, free): Remove decls.
37813         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
37814         Include <stdlib.h> unconditionally.  Sort include file names.
37815         (strtod): Remove.
37816         (xstrtod): Define with a prototype.
37817         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
37818         (strtol, strtoul): Remove decls.
37819
37820 2003-09-11  Paul Eggert  <eggert@twinsun.com>
37821
37822         More patches to assume C89 or better.
37823         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
37824         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
37825         string.h, memchr, STDC_HEADERS.
37826
37827 2003-09-11  Paul Eggert  <eggert@twinsun.com>
37828
37829         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
37830         Include <stdlib.h>, <string.h> unconditionally.
37831         Remove now-unnecessary cast to char *.
37832         * lib/strnlen.c: Include <string.h> unconditionally.
37833         * lib/yesno.c (yesno): Define with a prototype.
37834
37835 2003-09-11  Bruno Haible  <bruno@clisp.org>
37836
37837         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
37838
37839 2003-09-10  Jim Meyering  <jim@meyering.net>
37840
37841         * lib/error.c: Correct indentation of cpp directives.
37842
37843 2003-09-10  Bruno Haible  <bruno@clisp.org>
37844
37845         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
37846         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
37847         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
37848         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
37849         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
37850         <stdlib.h> and <string.h> checks.
37851         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
37852         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
37853
37854 2003-09-10  Bruno Haible  <bruno@clisp.org>
37855
37856         * lib/strcspn.c: Include <string.h> unconditionally.
37857         * lib/strpbrk.c: Include <string.h> unconditionally.
37858         * lib/strstr.c: Include <string.h> unconditionally.
37859         * lib/unicodeio.c: Include <string.h> unconditionally.
37860         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
37861         * lib/unsetenv.c: Likewise.
37862         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
37863         * lib/yesno.c: Include <stdlib.h> unconditionally.
37864         (rpmatch): Add prototype.
37865
37866 2003-09-09  Paul Eggert  <eggert@twinsun.com>
37867
37868         More patches to assume C89 or better.
37869         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
37870         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
37871         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
37872         or for string.h.
37873         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
37874         stdlib.h.
37875         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
37876         C headers.
37877         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
37878         string.h.
37879         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
37880         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
37881         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
37882         or for string.h.
37883         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
37884         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
37885         C headers.
37886         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
37887         memcpy.
37888         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
37889         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
37890         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
37891         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
37892         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
37893         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
37894         string.h, free.
37895         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
37896         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
37897         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
37898         C headers, or for string.h.
37899         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
37900         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
37901         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
37902         headers, memory.h, stdlib.h, string.h, strings.h.
37903         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
37904         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
37905         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
37906         strchr.
37907         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
37908         headers, memory.h, string.h.
37909         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
37910         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
37911         free.
37912         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
37913         headers.
37914         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
37915         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
37916         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
37917         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
37918         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
37919
37920 2003-09-09  Paul Eggert  <eggert@twinsun.com>
37921
37922         More K&R removal.
37923
37924         * lib/acosl.c (main): Use a prototype.
37925         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
37926         tanl.c: Likewise.
37927
37928         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
37929
37930         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
37931         (getopt, etopt_long, getopt_long_only, _getopt_internal)
37932         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
37933         with a prototype.
37934         * lib/getopt.c (const): Remove macro.
37935         Include <string.h> unconditionally.
37936         (my_index): Remove; all uses changed to strchr.
37937         (strlen): Remove decl.
37938         (exchange): Remove forward decl; no longer needed.
37939         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
37940         Define with prototype.
37941         * lib/getopt1.c (const): Remove macro.
37942         (getopt_long, getopt_long_only, main): Define with prototype.
37943
37944         * lib/getugroups.c: Include <string.h> unconditionally.
37945
37946         * lib/getusershell.c: Include <stdlib.h> unconditionally.
37947         (getusershell, setusershell, endusershell, readname, main):
37948         Define with prototypes.
37949
37950         * lib/group-member.c: Include group-member.h first.
37951         Include <stdlib.h> unconditionally.
37952
37953         * lib/hard-locale.c: Include hard-locale.h first.
37954         Include <stdlib.h>, <string.h> unconditionally.
37955
37956         * lib/hash.c (free, malloc): Remove decls.
37957         Include <stdlib.h> unconditionally.
37958
37959         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
37960         (getenv): Do not declare.
37961
37962         * lib/idcache.c: Include <string.h> unconditionally.
37963
37964         * lib/long-options.c: Include long-options.h first, to test interface.
37965         Include <stdlib.h> unconditionally.
37966
37967         * lib/makepath.c: Include makepath.h first, to test interface.
37968         Include <stdlib.h> and <string.h> unconditionally.
37969
37970         * lib/linebuffer.c: Include <stdlib.h>.
37971         (free): Remove decl.
37972
37973         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
37974         stddef.h. rpl_malloc returns void *, not char *.
37975         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
37976         prototype.
37977
37978         * lib/md5.h: Include <limits.h> unconditionally.
37979         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
37980         (__P): Remove; all uses removed.
37981         * lib/md5.c: Include "md5.h" first.
37982         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
37983         md5_buffer, md5_process_bytes, md5_process_block):
37984         Define with prototypes.
37985         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
37986         * lib/sha.c: Include "sha.h" first.
37987         Include <stdlib.h>, <string.h> unconditionally.
37988
37989         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
37990         * lib/memcmp.c (__ptr_t): Likewise.
37991         * lib/memrchr.c (__ptr_t): Likewise.
37992         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
37993         Include <string.h> unconditionally.
37994         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
37995         * lib/memchr.c: Include <stdlib.h> unconditionally.
37996         * lib/memchr.c (LONG_MAX): Remove.
37997         * lib/memrchr.c (LONG_MAX): Likewise.
37998         * lib/memchr.c (__memchr): Define via a prototype.
37999         * lib/memrchr.c (__memrchr): Likewise.
38000         * lib/memcmp.c (__P): Remove, and remove all uses.
38001         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
38002         Remove forward decls; no longer needed.
38003         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
38004         Use types required by C89 in prototype.
38005
38006         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
38007         * lib/savedir.c: Likewise.
38008         * lib/mkdir.c (free): Remove decl.
38009         * lib/rmdir.c (rmdir): Define with a prototype.
38010         * lib/savedir.c: Include savedir.h first, to test interface.
38011
38012         * lib/mktime.c (STDC_HEADERS): Remove.
38013         Include <stdlib.h>, <string.h> unconditionally.
38014
38015         * lib/modechange.c: Include <stdlib.h> unconditionally.
38016         (malloc): Remove decl.
38017
38018         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
38019         (free): Remove decl.
38020
38021         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
38022         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
38023         (This type really should be intptr_t, but that's a C99ism.)
38024         (_obstack_memcpy): Remove: all uses changed to memcpy.
38025         Include <string.h> unconditionally.
38026         (struct obstack): Assume __STDC__ for types of members
38027         chunkfun, freefun, extra_arg.
38028         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
38029         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
38030         obstack_begin, obstack_specify_allocation,
38031         obstack_specify_allocation_with_arg, obstack_chunkfun,
38032         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
38033         Remove unprototyped decls and the macros that use them.
38034         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
38035         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
38036         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
38037         (defined __STDC__ && __STDC__)]:
38038         Remove nonprototyped code.
38039         Include <stdlib.h> unconditionally.
38040         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
38041         _obstack_allocated_p, _obstack_free, obstack_free,
38042         _obstack_memory_used, print_and_abort):
38043         Define using prototypes.
38044         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
38045         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
38046         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
38047         obstack_next_free, obstack_object_size, obstack_room) [0]:
38048         Remove unused, unprototyped code.
38049
38050         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
38051
38052         * lib/physmem.c (physmem_total, physmem_available, main): Define
38053         with prototypes.
38054
38055         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
38056         (main): Define with a prototype.
38057
38058         * lib/posixver.c (getenv): Remove decl.
38059
38060         * lib/putenv.c (malloc): Returns void *, not char *.
38061         Include <string.h> unconditionally.
38062         (strchr, memcpy, NULL): Do not define.
38063
38064         * lib/readtokens.c: Include readtokens.h first, to test interface.
38065         Include <stdlib.h>, <string.h> unconditionally.
38066         (init_tokenbuffer): Define with a prototype.
38067
38068         * lib/regex.c (PARAMS): Remove.  All uses removed.
38069         All uses of _RE_ARGS removed, too.
38070         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
38071         unconditionally.
38072         (bzero): Assume memset exists.
38073         (memcmp, memcpy, NULL): Remove.
38074         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
38075         char, or assignments to local vars of type signed char.
38076         (init_syntax_once, PREFIX(extract_number_and_incr),
38077         PREFIX(print_partial_compiled_pattern),
38078         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
38079         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
38080         PREFIX(regex_grow_registers), PREFIX(regex_compile),
38081         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
38082         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
38083         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
38084         wcs_compile_range, byte_compile_range, truncate_wchar,
38085         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
38086         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
38087         count_mbs_length, wcs_re_match_2_internal,
38088         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
38089         PREFIX(alt_match_null_string_p),
38090         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
38091         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
38092         regfree, PREFIX(extract_number)): Define with prototype.  Remove
38093         now-unnecessary declaration, if any.
38094         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
38095         regcomp, regexec):
38096         Remove now-unnecessary casts among pointer types.
38097         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
38098
38099         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
38100         (free): Remove decl.
38101
38102         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
38103
38104         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
38105         (free): Remove decl.
38106
38107         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
38108         * lib/xgetcwd.c: Likewise.
38109
38110         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
38111         (free): Remove decl.
38112
38113         * lib/strchrnul.c (strchrnul): Define with a prototype.
38114         Fix bug: c_in was not converted to char before searching.
38115
38116         The following changes are not K&R related:
38117
38118         * lib/group-member.h: Include <sys/types.h>, so that this file is
38119         self-contained.
38120         * lib/makepath.h: Likewise.
38121
38122         * lib/getusershell.c (readname, default_index, line_size, readname):
38123         Use size_t, not int, for sizes.
38124         (readname): If the size overflows, report an error instead of
38125         looping forever.
38126
38127 2003-09-09  Paul Eggert  <eggert@twinsun.com>
38128
38129         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
38130         libc.
38131
38132 2003-09-09  Paul Eggert  <eggert@twinsun.com>
38133
38134         * README: New section: portability guidelines.
38135
38136 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
38137
38138         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
38139         C89 spec.
38140
38141 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
38142
38143         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
38144
38145 2003-09-08  Paul Eggert  <eggert@twinsun.com>
38146
38147         Assume C89 or better; remove K&R cruft.
38148         A few of these changes were first proposed by Derek Robert Price
38149         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
38150
38151         * lib/addext.c: Include <string.h> unconditionally.
38152         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
38153         Don't declare getenv or malloc.
38154
38155         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
38156         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
38157         (NULL): Remove.
38158         (find_stack_direction, alloca): Use prototypes.
38159
38160         * lib/atexit.c (atexit): Define using a prototype.
38161
38162         * lib/basename.c, dirname.c, stripslash.c:
38163         Include <string.h> unconditionally.
38164
38165         * lib/bcopy.c: Include <stddef.h>.
38166         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
38167
38168         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
38169
38170         * lib/error.h (error, error_at_line, error_print_progname)
38171         [! (defined (__STDC__) && __STDC__)]: Remove decls.
38172         * lib/error.c: Include error.h first, to check interface.
38173         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
38174         (VA_START): Remove; all uses changeed to va_start.
38175         (exit, strerror): Remove decls.
38176         (error_print_progname): Prototype uncondionally.
38177         Don't include <errno.h>; no longer needed.
38178         (private_strerror): Remove.
38179         (error_tail): Always define.
38180         (error, error_at_line): Assume C89 or better; always use prototypes.
38181         * lib/fatal.c: Include "fatal.h" first, to test interface.
38182         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
38183         (VA_START): Remove; all uses changed to va_start.
38184         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
38185         this case.
38186         (exit): Remove decl.
38187         (fatal): Prototype unconditionally.  Assume va_start works.
38188         Abort at end, to pacify gcc.
38189
38190         * lib/euidaccess.c (main): Define with a prototype.
38191
38192         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
38193
38194         * lib/exitfail.c: Include <stdlib.h> unconditionally.
38195
38196         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
38197         prototypes.
38198         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
38199         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
38200         (getenv): Remove decl.
38201         (fnmatch): Define using a prototype.
38202         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
38203         (FCT): Define using a prototype.
38204
38205         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
38206
38207         * lib/gethostname.c: Include <stddef.h>.
38208         (gethostname): Define with prototype.  Length is size_t, not int.
38209
38210 2003-09-08  Paul Eggert  <eggert@twinsun.com>
38211
38212         Assume C89 or better; remove K&R cruft.
38213         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
38214         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
38215         string.h, getenv, malloc.
38216         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
38217         headers.
38218         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
38219         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
38220         do not check for strerror.
38221         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
38222         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
38223         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
38224         do not check for doprnt or vprintf.
38225         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
38226         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
38227
38228 2003-09-08  Paul Eggert  <eggert@twinsun.com>
38229
38230         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
38231         getversion.c should have been removed then, but was accidentally
38232         preserved.
38233
38234         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
38235         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
38236
38237 2003-09-08  Karl Berry  <karl@gnu.org>
38238
38239         * config/config.sub, config.guess, srclistvars.sh: update from savannah
38240                 config, forget about prep.
38241
38242         * config/depcomp, missing: update from automake.
38243
38244 2003-09-07  Paul Eggert  <eggert@twinsun.com>
38245
38246         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
38247         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
38248
38249 2003-09-07  Paul Eggert  <eggert@twinsun.com>
38250
38251         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
38252         copy_tm_result.  Bug reported by Simon Josefsson in
38253         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
38254
38255 2003-09-06  Paul Eggert  <eggert@twinsun.com>
38256
38257         * m4/time_r.m4: New file.
38258         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
38259         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
38260         is. Check for timegm declaration.
38261         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
38262         Do not check for gmtime_r.
38263         Replace mktime if __mktime_internal does not exist and if mktime
38264         hasn't been replaced already.
38265
38266 2003-09-06  Paul Eggert  <eggert@twinsun.com>
38267
38268         * lib/time_r.c, lib/time_r.h: New files.
38269
38270         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
38271         __localtime_r.
38272         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
38273         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
38274
38275         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
38276         __gmtime_r.
38277         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
38278         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
38279         Include <time_r.h>.
38280
38281         * lib/timegm.c: Switch to glibc implementation, with the following
38282         changes:
38283         [defined HAVE_CONFIG_H]: Include <config.h>.
38284         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
38285         (__mktime_internal) [!defined _LIBC]: New decl.
38286         (__gmtime_r) [!defined _LIBC]: New macro and function.
38287         (timegm): Use a prototype, since gnulib assumes C89.
38288         Do not bother declaring tmp to be const, as it's not really usefu.
38289         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
38290         (timegm): Declare only if HAVE_DECL_TIMEGM.
38291
38292 2003-09-06  Paul Eggert  <eggert@twinsun.com>
38293
38294         * MODULES.html.sh (func_all_modules): Add time_r.
38295         * modules/time_r: New file.
38296         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
38297         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
38298
38299 2003-09-03  Paul Eggert  <eggert@twinsun.com>
38300
38301         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
38302         Bug reported by Lute Kamstra in
38303         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
38304
38305         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
38306         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
38307         course with correspondingly smaller numbers for tomorrow and
38308         yesterday.  From Tadayoshi Funaba.  Originally installed into
38309         sh-utils on 1999-08-07, but the patch got lost (I guess during the
38310         coreutils merge?).
38311
38312 2003-08-31  Simon Josefsson  <jas@extundo.com>
38313
38314         * modules/timegm: New file.
38315         * MODULES.html.sh (func_all_modules): Add timegm.
38316
38317 2003-08-31  Simon Josefsson  <jas@extundo.com>
38318
38319         * m4/timegm.m4: New file.
38320
38321 2003-08-31  Simon Josefsson  <jas@extundo.com>
38322
38323         * lib/timegm.h: New file.
38324         * lib/timegm.c: New file.  Based on
38325         wget-1.8.2/src/http.c:mktime_from_utc.
38326
38327 2003-08-31  Karl Berry  <karl@gnu.org>
38328
38329         * lib/argp.h: update from libc.
38330
38331 2003-08-28  Bruno Haible  <bruno@clisp.org>
38332
38333         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
38334         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
38335         followed by '#define fnmatch fnmatch_posix' gives an error.
38336
38337 2003-08-28  Bruno Haible  <bruno@clisp.org>
38338
38339         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
38340         warning on QNX, which defines O_BINARY to 000000.
38341
38342 2003-08-27  Jim Meyering  <jim@meyering.net>
38343
38344         * m4/mkstemp.m4: Require that the system mkstemp be able to create
38345         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
38346         would fail after 32.  Reported by Danny Levinson.  Details here:
38347         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
38348
38349 2003-08-24  Bruno Haible  <bruno@clisp.org>
38350
38351         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
38352         MSVC7 <stdio.h> is included later.
38353
38354 2003-08-22  Simon Josefsson  <jas@extundo.com>
38355
38356         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
38357
38358 2003-08-20  Karl Berry  <karl@gnu.org>
38359
38360         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
38361
38362 2003-08-20  Bruno Haible  <bruno@clisp.org>
38363
38364         * modules/progname: New file.
38365         * MODULES.html.sh (func_all_modules): Add progname.
38366
38367 2003-08-20  Bruno Haible  <bruno@clisp.org>
38368
38369         * lib/progname.h: New file, from GNU gettext.
38370         * lib/progname.c: New file, from GNU gettext.
38371         * lib/progreloc.c: New file, from GNU gettext.
38372
38373 2003-08-19  Jim Meyering  <jim@meyering.net>
38374
38375         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
38376         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
38377
38378 2003-08-19  Bruno Haible  <bruno@clisp.org>
38379
38380         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
38381         more.
38382
38383 2003-08-19  Bruno Haible  <bruno@clisp.org>
38384
38385         * lib/xstrdup.c: Assume <string.h> exists.
38386
38387 2003-08-18  Paul Eggert  <eggert@twinsun.com>
38388
38389         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
38390         in makefile rules.
38391
38392 2003-08-18  Jim Meyering  <jim@meyering.net>
38393
38394         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
38395         * m4/lib-ld.m4: Likewise.
38396
38397 2003-08-18  Jim Meyering  <jim@meyering.net>
38398
38399         * lib/setenv.h: Indent nested cpp directive.
38400         * lib/vasnprintf.c: Remove trailing blanks.
38401
38402 2003-08-17  Simon Josefsson  <jas@extundo.com>
38403
38404         * modules/xstrndup: New file.
38405         * MODULES.html.sh (func_all_modules): Add xstrndup.
38406
38407 2003-08-17  Simon Josefsson  <jas@extundo.com>
38408
38409         * modules/argp: Fix autoconf macro name. Add more dependencies.
38410
38411 2003-08-17  Simon Josefsson  <jas@extundo.com>
38412
38413         * m4/xstrndup.m4: New file.
38414
38415 2003-08-17  Simon Josefsson  <jas@extundo.com>
38416
38417         * m4/argp.m4: New file.
38418
38419 2003-08-17  Simon Josefsson  <jas@extundo.com>
38420             Bruno Haible  <bruno@clisp.org>
38421
38422         * lib/xstrndup.h: New file.
38423         * lib/xstrndup.c: New file.
38424
38425 2003-08-17  Bruno Haible  <bruno@clisp.org>
38426
38427         * modules/strndup (Files, Include): Add lib/strndup.h.
38428
38429 2003-08-17  Bruno Haible  <bruno@clisp.org>
38430
38431         * modules/euidaccess (Files): Add lib/euidaccess.h.
38432
38433 2003-08-17  Bruno Haible  <bruno@clisp.org>
38434
38435         * lib/strndup.h: New file.
38436
38437 2003-08-17  Bruno Haible  <bruno@clisp.org>
38438
38439         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
38440         like AC_GNU_SOURCE.
38441         * modules/extensions (configure.ac): Comment out the invocation of
38442         gl_USE_SYSTEM_EXTENSIONS.
38443
38444 2003-08-16  Paul Eggert  <eggert@twinsun.com>
38445
38446         Merges from coreutils, etc.
38447         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
38448         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
38449         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
38450         fixing a typo.
38451         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
38452         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
38453
38454 2003-08-16  Paul Eggert  <eggert@twinsun.com>
38455
38456         Document merge from coreutils.
38457         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
38458         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
38459         * modules/utime: Add m4/utimes-null.m4.
38460
38461 2003-08-16  Paul Eggert  <eggert@twinsun.com>
38462
38463         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
38464         space, undoing this 2003-08-12 change:
38465         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
38466
38467 2003-08-16  Paul Eggert  <eggert@twinsun.com>
38468
38469         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
38470         strtoul.c from libc, undoing this 2003-08-12 change:
38471         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
38472
38473 2003-08-16  Jim Meyering  <jim@meyering.net>
38474
38475         Merges from coreutils.
38476         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
38477         prefix.  Adjust cache variables similarly.  Create 500 rather than
38478         just 300 files, to exercise bug on Darwin6.5, too.
38479         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
38480         $missing_dir.
38481         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
38482         AM_SYS_POSIX_TERMIOS.
38483         Reported by mkc@mathdogs.com.
38484         Also change use of $am_cv_sys_posix_termios
38485         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
38486         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
38487         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
38488         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
38489         in /proc/mounts until it finds one with matching device number.  This
38490         is unnecessary when the FILE argument *is* a mount point.  No stat call
38491         is necessary in that case.  So, disable the statvfs-testing code on
38492         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
38493         as RedHat bug# 84846.
38494         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
38495         to 1MB, so as not to render systems with no stack size limit (e.g.,
38496         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
38497         Include <unistd.h>.  On some systems,
38498         it is required for the definition of _SC_PAGESIZE.
38499
38500 2003-08-16  Jim Meyering  <jim@meyering.net>
38501
38502         Merge from coreutils.
38503         * lib/xstrtoimax.c: #else #if -> #elif.
38504         * lib/xstrtoumax.c: Likewise.
38505
38506 2003-08-16  Jim Meyering  <jim@meyering.net>
38507
38508         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
38509         * m4/utimes.m4: Removed.
38510         * m4/utimes-null.m4: Renamed from utimes.m4.
38511
38512         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
38513         to 1MB, so as not to render systems with no stack size limit (e.g.,
38514         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
38515         Include <unistd.h>.  On some systems,
38516         it is required for the definition of _SC_PAGESIZE.
38517
38518 2003-08-16  Jim Meyering  <jim@meyering.net>
38519         and Paul Eggert  <eggert@cs.ucla.edu>
38520
38521         Merges from coreutils, etc.
38522
38523         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
38524         using the latest version from cvs.  This avoids problems with #line
38525         directives using a vendor (Sun) compiler.
38526         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
38527         Don't set GETGROUPS_LIB here; now it's
38528         done via getgroups.m4's wrapper function.
38529         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
38530         rather than just in sh-util/configure.in, so that the
38531         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
38532         same.
38533         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
38534         AC_FUNC_GETLOADAVG where to find getloadavg.c.
38535         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
38536         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
38537         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
38538         Remove code that is now done by the newly-required macros.
38539         Append $(EXEEXT) to DF_PROG.
38540         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
38541         Do not invoke or require the following here,
38542         since prereq.m4 or some gnulib .m4 now does this for us:
38543         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
38544         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
38545         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
38546         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
38547         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
38548         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
38549         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
38550         AC_FUNC_OBSTACK.
38551         Do not replace the following functions, as this is now the job
38552         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
38553         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
38554         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
38555         atexit getpass, strdup, getpagesize.
38556         Replace 'raise'.
38557         Do not check for the following functions, as this is now the job
38558         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
38559         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
38560         setregid.
38561         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
38562         Check for sys/sysctl.h.
38563         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
38564         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
38565         of checking for ssize_t ourselves.
38566
38567         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
38568         Require every macro that gnulib/modules/* suggests for us.
38569         (jm_PREREQ_ADDEXT): New macro.
38570         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
38571         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
38572
38573         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
38574         (gl_PHYSMEM): Use it.
38575         Also check for `table' function.
38576         Check for new headers and functions.
38577         Add check for sys/sysmp.h.
38578         With suggestions from Kaveh Ghazi.
38579         Ignore headers that are present but cannot be compiled.  This
38580         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
38581         C 5.4.
38582
38583 2003-08-15  Paul Eggert  <eggert@twinsun.com>
38584
38585         Document merge from coreutils.
38586         * modules/userspec: Depend on posixver.
38587         * modules/strftime: Depend on tzset.
38588
38589 2003-08-15  Paul Eggert  <eggert@twinsun.com>
38590
38591         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
38592         rather than tab, after '#' in shell-script copyright notices.
38593         Suggested by Bruno Haible.
38594
38595 2003-08-15  Paul Eggert  <eggert@twinsun.com>
38596
38597         * config/srclist-update: Use three spaces, rather than tab, after '#'
38598         in shell-script copyright notices.  Suggested by Bruno Haible.
38599         Remove unnecessary parenthesization in regular expression.
38600
38601 2003-08-15  Jim Meyering  <jim@meyering.net>
38602
38603         Merge from coreutils.
38604         * lib/xgethostname.c: Include <stdlib.h>.
38605         (xghostname): Don't exit for anything other than memory-related
38606         failure; just return NULL.
38607         * lib/userspec.c: Include "posixver.h".
38608         (parse_user_spec): Accept `.' as a separator only
38609         in pre-POSIX-200112 mode.
38610         * lib/strtoimax.c: Use #elif rather than #else #if.
38611         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
38612         Remove function, now that we can rely on a working tzset function.
38613         [!_LIBC]: Ensure that the required autoconf test has been run.
38614         [!defined _NL_CURRENT && HAVE_STRFTIME]:
38615         Use underlying_strftime for %r.
38616         * lib/sha.c: Merge in some clean-up and optimization changes from
38617         glibc.
38618         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
38619         Ensure that it is a multiple of 64.
38620         Rearrange loop exit tests so as to avoid performing an
38621         additional fread after encountering an error or EOF.
38622         * lib/realloc.c: Update copyright date.
38623
38624 2003-08-15  Jim Meyering  <jim@meyering.net>
38625         and Paul Eggert  <eggert@twinsun.com>
38626
38627         Merge from coreutils.
38628         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
38629         member but strut utmpx does not.  Needed for AIX 4.3.3.
38630         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
38631
38632 2003-08-15  Jim Meyering  <jim@meyering.net>
38633         and Paul Eggert  <eggert@cs.ucla.edu>
38634
38635         Merges from coreutils, etc.
38636         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
38637         Require gl_FUNC_TZSET_CLOBBER.
38638         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
38639         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
38640         members.
38641
38642 2003-08-14  Paul Eggert  <eggert@twinsun.com>
38643
38644         Help the merge from coreutils.
38645         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
38646         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
38647         * m4/tzset.m4: Use it too.
38648
38649 2003-08-14  Paul Eggert  <eggert@twinsun.com>
38650
38651         * modules/tzset: New file.
38652
38653 2003-08-14  Jim Meyering  <jim@meyering.net>
38654
38655         Merges from coreutils.
38656         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
38657         variable names, rather than @FNMATCH_H@.
38658         * modules/alloca: Likewise for $(ALLOCA_H).
38659
38660         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
38661         the three copies of the literal target, `fnmatch.h'.
38662         * modules/alloca (alloca.h): Likewise.
38663
38664 2003-08-14  Jim Meyering  <jim@meyering.net>
38665
38666         Merge from coreutils.
38667         * m4/tzset.m4: New file.
38668         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
38669         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
38670         otherwise, AIX 5.1 systems would end up using the latter.
38671         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
38672         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
38673         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
38674         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
38675
38676 2003-08-14  Jim Meyering  <jim@meyering.net>
38677
38678         Merge from coreutils.
38679         * lib/obstack.h: Whitespace changes.
38680         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
38681         and xcalloc return values.
38682         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
38683         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
38684         hang on OSF/1 5.1 for DIR on both local and remote file systems.
38685         Reported by (and fix confirmed by) Nelson H. F. Beebe.
38686         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
38687         error from mntctl.
38688         Use mntctl's return value to drive the entry-processing loop, since
38689         we can't rely on the value of the vmt_length member in the last
38690         entry.  On some systems doing so could result in exhausting
38691         virtual memory.  Based in part on a patch from Mike Jetzer.
38692
38693 2003-08-14  Jim Meyering  <jim@meyering.net>
38694         and Paul Eggert  <eggert@twinsun.com>
38695
38696         Merges from coreutils, plus other fixes.
38697         * lib/physmem.c: Merge in portability changes from gcc/libiberty
38698         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
38699         for credits and details.  Thanks to Kaveh Ghazi for helping
38700         to keep these files in sync.
38701         (ARRAY_SIZE): Define it.
38702         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
38703         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
38704         (memcasecmp): Don't assume size_t fits in unsigned int.
38705         Remove casts and duplicate code.
38706         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
38707         (memcpy): Remove definition.
38708         Merge in some clean-up and optimization changes from glibc.
38709         [BLOCKSIZE]: Move definition to top of file.
38710         Ensure that it is a multiple of 64.
38711         Rearrange loop exit tests so as to avoid performing an
38712         additional fread after encountering an error or EOF.
38713         * lib/md5.h (md5_uintptr): Define.
38714         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
38715         return to the initial working directory.  Preserve errno
38716         for caller.
38717         * lib/idcache.c: Include "xalloc.h".
38718         (xmalloc, xrealloc): Remove decls.
38719         (getuser): Remove casts no longer required in C89.
38720         * lib/human.c: Include stdio.h, for sprintf.
38721         * lib/group-member.c: Include "xalloc.h".
38722         (xmalloc, xrealloc): Remove decls.
38723         (get_group_info): Remove casts no longer required in C89.
38724         * lib/getusershell.c (readname): Remove casts no longer required in
38725         C89.
38726         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
38727         * lib/getline.c: Whitespace fix, from coreutils.
38728
38729 2003-08-13  Paul Eggert  <eggert@twinsun.com>
38730
38731         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
38732         Check for isascii.
38733
38734         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
38735         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
38736         Undo previous (whitespace-only) change.
38737
38738 2003-08-13  Paul Eggert  <eggert@twinsun.com>
38739
38740         * lib/exclude.c: Include <ctype.h>
38741         (IN_CTYPE_DOMAIN): New macro.
38742         (is_space): New fn.
38743         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
38744         and empty lines.
38745
38746         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
38747         Undo previous (whitespace-only) change.
38748
38749 2003-08-13  Paul Eggert  <eggert@twinsun.com>
38750
38751         * config/srclist-update: Change update back to the old behavior,
38752         leaving whitespace alone.  Use one 'sed' command rather than a
38753         pipeline.
38754         (fixlicense): Now a variable, not a function.
38755         (remove_trailing_blanks): Remove.
38756         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
38757         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
38758         Undo previous (whitespace-only) change.
38759
38760 2003-08-12  Paul Eggert  <eggert@twinsun.com>
38761
38762         Merge from coreutils.
38763         * modules/euidaccess: Add lib_SOURCES, include for new
38764         file euidaccess.h
38765
38766 2003-08-12  Paul Eggert  <eggert@twinsun.com>
38767
38768         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
38769         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
38770         Normalize leading white space and remove trailing white space.
38771
38772         Merge from coreutils
38773         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
38774
38775         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
38776         0.12.1.  These files are now being upgraded automatically by
38777         ../config/srclist-update.
38778
38779 2003-08-12  Paul Eggert  <eggert@twinsun.com>
38780
38781         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
38782         Normalize leading white space and remove trailing white space.
38783         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
38784         notice, as per ../config/srclist-update.
38785
38786         Merge from coreutils.
38787         * lib/euidaccess.h: New file.
38788         * lib/euidaccess.c: Include it.
38789         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
38790         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
38791         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
38792
38793 2003-08-12  Paul Eggert  <eggert@twinsun.com>
38794
38795         * config/srclist-update: Add copyright notice.
38796         (remove_id_lines, remove_trailing_blanks): New constants.
38797         (fixfile): Use them to normalize spacing a bit in copied files.
38798         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
38799         Normalize leading white space and remove trailing white space.
38800
38801         * config/texinfo.tex: Sync with texinfo.
38802
38803         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
38804         strtoul.c from libc, to merge coreutils whitespace changes.
38805
38806         * config/srclist.txt: Get the following m4 files from gettext:
38807         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
38808         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
38809         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
38810         wint_t.m4.
38811
38812 2003-08-12  Karl Berry  <karl@gnu.org>
38813
38814         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
38815         been made.
38816
38817 2003-08-11  Paul Eggert  <eggert@twinsun.com>
38818
38819         * modules/gnu-source, m4/gnu-source.m4:
38820         Remove; we're assuming Autoconf 2.54 or later now.
38821         Suggested by Bruno Haible.
38822         * MODULES.html.sh (func_all_modules): Remove gnu-source.
38823
38824 2003-08-11  Bruno Haible  <bruno@clisp.org>
38825
38826         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
38827
38828 2003-08-11  Bruno Haible  <bruno@clisp.org>
38829
38830         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
38831         (vasnprintf): Use it instead of wcslen.
38832
38833 2003-08-11  Bruno Haible  <bruno@clisp.org>
38834
38835         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
38836         value to ensure that _Bool promotes to int. Use #define for _Bool when
38837         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
38838
38839 2003-08-10  Karl Berry  <karl@gnu.org>
38840
38841         * lib/regex.h: update from libc (whitespace fix).
38842
38843 2003-08-09  Paul Eggert  <eggert@twinsun.com>
38844
38845         Merge some files from coreutils.  These changes were
38846         originally made by Jim Meyering.
38847         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
38848         many older Unixes require this.
38849         * lib/alloca.c (alloca): Remove cast to argument of free;
38850         no longer needed in C89.
38851         * lib/alloca_.h, regex.h: Fix white space to match
38852         what GNU indent does.
38853
38854 2003-08-09  Paul Eggert  <eggert@twinsun.com>
38855
38856         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
38857         apparently Emacs's Unicode mode got confused before my 2003-08-05
38858         checkin.
38859
38860 2003-08-08  Paul Eggert  <eggert@twinsun.com>
38861
38862         * m4/extensions.m4: New file.
38863         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
38864         Require gl_USE_SYSTEM_EXTENSIONS.
38865         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
38866         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
38867
38868 2003-08-08  Paul Eggert  <eggert@twinsun.com>
38869
38870         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
38871         * modules/extensions, modules/gnu-source: New files.
38872         * modules/timespec, modules/unlocked-io: Depend on extensions.
38873
38874 2003-08-07  Paul Eggert  <eggert@twinsun.com>
38875
38876         * modules/restrict: New file.
38877         * MODULES.html.sh (func_all_modules): Add restrict.
38878         * modules/regex: Depend on restrict.
38879
38880 2003-08-07  Paul Eggert  <eggert@twinsun.com>
38881
38882         * m4/restrict.m4: New file.
38883         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
38884
38885 2003-08-07  Bruno Haible  <bruno@clisp.org>
38886
38887         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
38888         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
38889
38890 2003-08-07  Bruno Haible  <bruno@clisp.org>
38891
38892         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
38893         makes the module 'getndelim2' compatible with the module 'getline'.
38894
38895 2003-08-05  Paul Eggert  <eggert@twinsun.com>
38896
38897         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
38898         byte with "\201" to avoid glitches when editing that source file
38899         with multi-gnome-terminal.
38900
38901 2003-08-05  Paul Eggert  <eggert@twinsun.com>
38902
38903         * lib/bumpalloc.h: Remove.
38904
38905 2003-08-05  Paul Eggert  <eggert@twinsun.com>
38906
38907         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
38908         * modules/bumpalloc: Remove.
38909
38910 2003-08-04  Paul Eggert  <eggert@twinsun.com>
38911
38912         * lib/getloadavg.c: Change copyright notice and spacing to conform to
38913         GNU coding style.
38914
38915         Merge from coreutils.
38916         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
38917         1. From glibc.
38918         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
38919         from Karl Berry, implemented by Jim Meyering.
38920         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
38921         from Dmitry V. Levin.
38922         Remove anachronistic cast of xrealloc.
38923         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
38924         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
38925         type. Otherwise, it wouldn't compile with at least /bin/cc on
38926         ymp-cray-unicos9.0.2.X.
38927         Combine two mostly-identical uses of alloca into one.
38928         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
38929
38930 2003-08-04  Dave Love  <d.love@dl.ac.uk>
38931
38932         [From Emacs.]
38933
38934         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
38935         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
38936         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
38937         obsolete NLIST_NAME_UNION.
38938         [__GNU__]: Undef BSD and FSCALE.
38939         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
38940
38941 2003-08-03  Paul Eggert  <eggert@twinsun.com>
38942
38943         * lib/stdbool_.h (_Bool): Make it signed char, instead of
38944         an enum type, so that it's guaranteed to promote to int.  See:
38945         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
38946
38947 2003-08-03  Karl Berry  <karl@gnu.org>
38948
38949         * config/depcomp: update from automake.
38950
38951 2003-07-31  Paul Eggert  <eggert@twinsun.com>
38952
38953         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
38954         (strerror): Don't assume that a printable int fits in 14 bytes.
38955
38956 2003-07-31  Bruno Haible  <bruno@clisp.org>
38957
38958         * modules/getpass-gnu: New file.
38959         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
38960
38961 2003-07-31  Bruno Haible  <bruno@clisp.org>
38962
38963         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
38964
38965 2003-07-24  Karl Berry  <karl@gnu.org>
38966
38967         * config/missing: update from automake.
38968
38969 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
38970             Bruno Haible  <bruno@clisp.org>
38971
38972         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
38973         * lib/getline.c (getline, getdelim): Likewise.
38974         Remove _GNU_SOURCE define; now it's defined in config.h through
38975         m4/getline.m4.
38976
38977 2003-07-23  Karl Berry  <karl@gnu.org>
38978
38979         * config/config.sub: update from prep.
38980
38981 2003-07-22  Paul Eggert  <eggert@twinsun.com>
38982
38983         * modules/xalloc (Depends-on): Add exitfail.
38984         * modules/xmemcoll: Likewise.
38985
38986 2003-07-22  Paul Eggert  <eggert@twinsun.com>
38987
38988         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
38989         over-parenthesization in macros.
38990
38991         Sync with coreutils.
38992
38993         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
38994         required by C99.
38995
38996         Use `exit_failure' for xalloc and xmemcoll instead of their own
38997         private exit-failure variables.
38998         * lib/xalloc.h (xalloc_exit_failure): Remove.
38999         * lib/xmalloc.c: Likewise.  Include exitfail.h.
39000         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
39001         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
39002         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
39003         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
39004
39005 2003-07-20  Jim Meyering  <jim@meyering.net>
39006
39007         * modules/closeout (Depends-on): Add exitfail.
39008         Suggestion from Bruno Haible.
39009
39010 2003-07-19  Karl Berry  <karl@gnu.org>
39011
39012         * config/config.sub: update from prep.
39013
39014 2003-07-18  Paul Eggert  <eggert@twinsun.com>
39015
39016         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
39017         Remove.
39018         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
39019         to test that it can stand by itself.  Include "exitfail.h".
39020         Clients should set exit_failure instead.
39021         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
39022
39023 2003-07-18  Bruno Haible  <bruno@clisp.org>
39024
39025         * modules/getndelim2: New file.
39026         * modules/getline: Share files with module getndelim2.
39027         * modules/getnline: Depend on getndelim2 instead of sharing files with
39028         it. Add getnline.c to lib_SOURCES.
39029         * MODULES.html.sh (func_all_modules): Add getndelim2.
39030
39031 2003-07-18  Bruno Haible  <bruno@clisp.org>
39032
39033         * m4/getndelim2.m4: New file.
39034         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
39035         invoke gl_PREREQ_GETNDELIM2.
39036         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
39037         gl_PREREQ_GETNDELIM2.
39038         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
39039         gl_GETNDELIM2.
39040
39041 2003-07-18  Bruno Haible  <bruno@clisp.org>
39042
39043         * lib/getndelim2.h: New file.
39044         * lib/getndelim2.c: Make into a module of its own. Include config.h,
39045         getndelim2.h.
39046         (getndelim2): Make non-static. Change return type to ssize_t.
39047         * lib/getline.h: Change argument names.
39048         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
39049         * lib/getnline.c: Include getndelim2.h.
39050
39051 2003-07-18  Andreas Schwab  <schwab@suse.de>
39052
39053         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
39054
39055 2003-07-17  Karl Berry  <karl@gnu.org>
39056
39057         * config/config.sub: update from prep.
39058
39059 2003-07-17  Bruno Haible  <bruno@clisp.org>
39060
39061         * modules/getnline: New file.
39062         * modules/getline: Add lib/getndelim2.c to source file list.
39063         * MODULES.html.sh (func_all_modules): Add getnline.
39064
39065 2003-07-17  Bruno Haible  <bruno@clisp.org>
39066
39067         * m4/getnline.m4: New file.
39068
39069 2003-07-17  Bruno Haible  <bruno@clisp.org>
39070
39071         * m4/Makefile.am.in: Remove file.
39072         * m4/Makefile.am: Remove file.
39073         * m4/Makefile.in: Remove file.
39074
39075 2003-07-17  Bruno Haible  <bruno@clisp.org>
39076
39077         * lib/getnline.h: New file.
39078         * lib/getnline.c: New file.
39079         * lib/getndelim2.c: New file, extracted from getline.c.
39080         (getndelim2): Renamed from getdelim2, with added nmax argument.
39081         * lib/getline.c: Include getndelim2.c.
39082         (getdelim2): Moved out to getndelim2.c.
39083         (getline, getdelim): Update.
39084
39085 2003-07-17  Bruno Haible  <bruno@clisp.org>
39086
39087         * lib/Makefile.am: Remove file.
39088         * lib/Makefile.in: Remove file.
39089
39090 2003-07-17  Bruno Haible  <bruno@clisp.org>
39091
39092         * configure.in: Remove file.
39093         * Makefile.in: Remove file.
39094
39095 2003-07-17  Bruno Haible  <bruno@clisp.org>
39096
39097         * MODULES.html.sh: Put the </BODY> right before </HTML>.
39098
39099 2003-07-16  Karl Berry  <karl@gnu.org>
39100
39101         * config/srclist-update: was running fixlicense twice, which caused
39102                 texinfo.tex to be nullified for some reason.  Simplify,
39103                 $gplsrc is no longer needed as far as I can see?
39104
39105 2003-07-16  Jim Meyering  <jim@meyering.net>
39106
39107         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
39108
39109 2003-07-15  Paul Eggert  <eggert@twinsun.com>
39110
39111         * config/srclist.txt: Get the following files from gettext-runtime/intl
39112         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
39113         ref-del.sin.  From Bruno Haible.
39114         * config/srclist-update (fixfile): Change grep pattern again, since the
39115         previous fix didn't work (there was another trailing $).  Use
39116         '[$]' to escape the $s.
39117
39118 2003-07-15  Karl Berry  <karl@gnu.org>
39119
39120         * lib/vasnprintf.c: update from gettext.
39121
39122 2003-07-15  Karl Berry  <karl@gnu.org>
39123
39124         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
39125         gets expanded when surrounded by '$'.
39126
39127 2003-07-15  Jim Meyering  <jim@meyering.net>
39128
39129         * modules/save-cwd: Don't depend on error.  From Derek Price.
39130
39131 2003-07-15  Jim Meyering  <jim@meyering.net>
39132
39133         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
39134
39135 2003-07-14  Simon Josefsson  <jas@extundo.com>
39136
39137         * modules/mempcpy: New file.
39138         * MODULES.html.sh (func_all_modules): Add mempcpy.
39139
39140 2003-07-14  Simon Josefsson  <jas@extundo.com>
39141
39142         * m4/mempcpy.m4: New file.
39143
39144 2003-07-14  Simon Josefsson  <jas@extundo.com>
39145
39146         * lib/mempcpy.h: New file.
39147         * lib/mempcpy.c: New file.
39148
39149 2003-07-14  Paul Eggert  <eggert@twinsun.com>
39150
39151         * modules/getdate, modules/posixtm: Depend on mktime.
39152
39153 2003-07-14  Paul Eggert  <eggert@twinsun.com>
39154
39155         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
39156         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
39157         unicodeio.c, unicodeio.h, unlocked-io.h:
39158         Switch from LGPL to GPL.
39159
39160 2003-07-14  Paul Eggert  <eggert@twinsun.com>
39161
39162         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
39163         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
39164         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
39165         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
39166         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
39167         updated automatically by ../config/srclist-update.  This changes
39168         their license from LPGL to GPL.
39169
39170 2003-07-14  Paul Eggert  <eggert@twinsun.com>
39171
39172         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
39173         assumed to refer to the root of the most recent stable gettext version.
39174         * config/srclistvars.sh: Add defaults for eggert.
39175         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
39176         Match "This program" as well as "The program".  This is needed
39177         for gettext.
39178
39179 2003-07-14  Jim Meyering  <jim@meyering.net>
39180
39181         Don't emit diagnostics.  Let callers do that.
39182         * lib/save-cwd.c: Don't include "error.h".
39183         (save_cwd): Don't call error.  Ensure that errno is valid
39184         when returning nonzero.
39185
39186         * lib/save-cwd.h (restore_cwd): Update prototype.
39187         * lib/save-cwd.c (restore_cwd): Remove two parameters.
39188         Simplify.  Don't call error upon failure.  Let callers do that.
39189         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
39190         when auditing is enabled.  But don't bother updating the #if.
39191
39192 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
39193
39194         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
39195         it breaks C++ compilation.
39196         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
39197
39198 2003-07-10  Simon Josefsson  <jas@extundo.com>
39199
39200         * modules/strchrnul (Makefile.am): Add strchrnul.h.
39201
39202 2003-07-10  Jim Meyering  <jim@meyering.net>
39203
39204         * m4/clock_time.m4: Remove trailing blank.
39205         * m4/intmax_t.m4: Likewise.
39206
39207 2003-07-10  Jim Meyering  <jim@meyering.net>
39208
39209         * lib/vasnprintf.c: Remove trailing blanks.
39210         Make cpp indentation consistent.
39211
39212 2003-07-09  Paul Eggert  <eggert@twinsun.com>
39213
39214         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
39215         posixver.c, strftime.c, strnlen.c, strverscmp.c:
39216         Switch from LGPL to GPL.
39217
39218 2003-07-09  Paul Eggert  <eggert@twinsun.com>
39219
39220         * config/srclist.txt: Sort sublists.  Add
39221         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
39222         that differ from gnulib for one reason or another; we'd like this list
39223         to be smaller but for now let's document what we have.
39224
39225 2003-07-08  Paul Eggert  <eggert@twinsun.com>
39226
39227         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
39228         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
39229         and sweeter "eval x=$x".
39230         * config/srclist.txt: Get lib/argp* from glibc.
39231
39232 2003-07-07  Paul Eggert  <eggert@twinsun.com>
39233
39234         * lib/mktime.c: Fix some boundary cases and remove need for floating
39235         point.
39236
39237         Issue a compile-time diagnostic if time_t is floating point, or if
39238         two's complement arithmetic is not in effect, or if arithmetic
39239         right shift does not propagate the sign.  These assumptions were
39240         all in the original code but they weren't checked.
39241
39242         (TIME_T_MIDPOINT, verify): New macros.
39243         (__isleap): Remove; it has integer overflow problems.
39244         (leapyear): New function, without those problems.
39245         (ydhms_tm_diff): Remove; splitting into two parts.
39246         (ydhms_diff): New function, containing the arithmetic part of
39247         the old ydhms_tm_diff function.  Issue a compile-time
39248         diagnostic if we are not using C99 integer division.
39249         Avoid casts when possible.
39250         (guess_time_tm): New function, containing the checking part of
39251         the old ydhms_tm_diff function.  Return the new value, rather than
39252         the difference between it and the old.  Accept a new argument T
39253         so that *T specifies the old value.  Check for overflow in the result.
39254
39255         (__mktime_internal): Use a time_t offset, not a long int offset.
39256         This undoes the 2003-06-04 change, which is no longer needed now
39257         that we have better overflow checking.
39258         (localtime_offset): Likewise.
39259
39260         (__mktime_internal): Avoid harmful overflow on hosts where time_t
39261         and long are 64-bit but int is only 32-bit.
39262         (ydhms_diff): Use long int to store year1 and yday1.
39263         Issue a compile-time diagnostic if long int is not wide enough.
39264
39265         (__mktime_internal): Use long int to store adjusted year and yday.
39266         Use plain C rather than preprocessor commands, if that doesn't
39267         affect efficiency.
39268         Check for overflow (and try to repair) after each probe
39269         rather than checking only at the very end.  This avoids some bugs
39270         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
39271         does not equal GMT offset at maximum time).
39272         Use integer to check for overflow rather than floating point; this
39273         is more portable to non-IEEE hosts, and is a tad faster.
39274         When we detect that we are oscillating between two values,
39275         don't check whether tm_isdst has the requested value, since
39276         we already know the answer.  When tm_isdst has the wrong value,
39277         use a different heuristic to find the right one, based on the
39278         extreme values actually observed in practice in tz2003a,
39279         rather than the (overly optimistic) "previous 3 calendar quarters".
39280
39281         (not_equal_tm, print_tm, check_result): Use "const T" rather than
39282         "T const" to accommodate glibc style.
39283         (check_result): Use less-confusing report format.  "long" -> "long int.
39284         (main): Likewise.
39285         Don't loop if the iteration overflows time_t.
39286         Allow a negative step in the iteration.
39287
39288 2003-07-06  Karl Berry  <karl@gnu.org>
39289
39290         * config/depcomp: update from automake.
39291         * config/config.sub: update from prep.
39292
39293 2003-07-03  Karl Berry  <karl@gnu.org>
39294
39295         * config/config.guess: update from prep.
39296
39297 2003-07-01  Paul Eggert  <eggert@twinsun.com>
39298
39299         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
39300         xreadlink.c now includes it unconditionally.
39301
39302 2003-07-01  Paul Eggert  <eggert@twinsun.com>
39303
39304         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
39305         having it depend on HAVE_SYS_TYPES_H.
39306
39307 2003-07-01  Bruno Haible  <bruno@clisp.org>
39308
39309         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
39310         <sys/types.h> should be sufficient.
39311         Reported by Paul Eggert.
39312
39313 2003-06-26  Karl Berry  <karl@gnu.org>
39314
39315         * config/depcomp: update from automake.
39316
39317 2003-06-26  Bruno Haible  <bruno@clisp.org>
39318
39319         * modules/human: Depend on module stdbool.
39320
39321 2003-06-25  Bruno Haible  <bruno@clisp.org>
39322
39323         * modules/readlink: New file.
39324         * modules/xreadlink: Depend on it.
39325         * MODULES.html.sh (func_all_modules): Add readlink.
39326
39327 2003-06-25  Bruno Haible  <bruno@clisp.org>
39328
39329         * m4/readlink.m4: New file.
39330
39331 2003-06-25  Bruno Haible  <bruno@clisp.org>
39332
39333         * lib/readlink.c: New file.
39334
39335 2003-06-22  Karl Berry  <karl@gnu.org>
39336
39337         * config/srclist.txt: update mkinstalldirs from automake.
39338         * config/mkinstalldirs: update.
39339
39340 2003-06-22  Bruno Haible  <bruno@clisp.org>
39341
39342         Portability to mingw32.
39343         * m4/ssize_t.m4: New file, from GNU gettext.
39344         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
39345         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
39346
39347 2003-06-22  Bruno Haible  <bruno@clisp.org>
39348
39349         * modules/safe-read: Add m4/ssize_t.m4.
39350         * modules/xreadlink: Add m4/ssize_t.m4.
39351
39352 2003-06-20  Bruno Haible  <bruno@clisp.org>
39353
39354         Assume C89, so PARAMS isn't needed.
39355         * lib/unicodeio.h (PARAMS): Remove.
39356         * lib/unicodeio.c: Don't use PARAMS.
39357
39358 2003-06-18  Karl Berry  <karl@gnu.org>
39359
39360         * config/config.{guess,sub}: update from prep.
39361
39362 2003-06-18  Jim Meyering  <jim@meyering.net>
39363
39364         Merge changes from coreutils.
39365         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
39366         Remove explicit declarations of xmalloc and realloc.
39367         Include xalloc.h.
39368         (read_utmp): Remove anachronistic cast of xmalloc.
39369
39370 2003-06-17  Paul Eggert  <eggert@twinsun.com>
39371
39372         Assume C89, so PARAMS isn't needed.
39373         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
39374         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
39375         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
39376         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
39377         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
39378         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
39379         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
39380         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
39381         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
39382         lib/xstrtod.h, lib/xstrtol.h: Likewise.
39383         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
39384         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
39385         no longer needed. Anyway, config.h should always be included before any
39386         other file.
39387
39388 2003-06-11  Simon Josefsson  <jas@extundo.com>
39389
39390         * modules/sysexits: New file.
39391         * MODULES.html.sh (func_all_modules): Add sysexits.
39392
39393 2003-06-11  Simon Josefsson  <jas@extundo.com>
39394
39395         * lib/sysexit_.h: New file.
39396
39397 2003-06-11  Derek Price  <derek@ximbiot.com>
39398
39399         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
39400         necessary.
39401
39402 2003-06-11  Bruno Haible  <bruno@clisp.org>
39403
39404         * m4/sysexits.m4: New file.
39405
39406 2003-06-10  Simon Josefsson  <jas@extundo.com>
39407
39408         * lib/argp.h: New file, from glibc.
39409         * lib/argp-ba.c: New file, from glibc.
39410         * lib/argp-eexst.c: New file, from glibc.
39411         * lib/argp-fmtstream.c: New file, from glibc.
39412         * lib/argp-fmtstream.h: New file, from glibc.
39413         * lib/argp-fs-xinl.c: New file, from glibc.
39414         * lib/argp-help.c: New file, from glibc.
39415         * lib/argp-namefrob.h: New file, from glibc.
39416         * lib/argp-parse.c: New file, from glibc.
39417         * lib/argp-pv.c: New file, from glibc.
39418         * lib/argp-pvh.c: New file, from glibc.
39419         * lib/argp-xinl.c: New file, from glibc.
39420
39421 2003-06-10  Simon Josefsson  <jas@extundo.com>
39422
39423         * modules/strchrnul: New file.
39424
39425 2003-06-10  Simon Josefsson  <jas@extundo.com>
39426
39427         * modules/argp: New file.
39428
39429 2003-06-10  Simon Josefsson  <jas@extundo.com>
39430
39431         * m4/strchrnul.m4: New file.
39432
39433 2003-06-10  Simon Josefsson  <jas@extundo.com>
39434
39435         * lib/strchrnul.h: New file.
39436         * lib/strchrnul.c: New file.
39437
39438 2003-06-10  Bruno Haible  <bruno@clisp.org>
39439
39440         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
39441
39442 2003-06-07  Karl Berry  <karl@gnu.org>
39443
39444         * config/config.{guess,sub}: update from prep.
39445
39446 2003-06-07  Jim Meyering  <jim@meyering.net>
39447
39448         * modules/strtod: Use $(...) notation, not @...@ for
39449         AC_REPLACE'd variables.
39450         * modules/localcharset: Likewise.
39451
39452 2003-06-07  Jim Meyering  <jim@meyering.net>
39453
39454         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
39455         in place of my name in the copyright comment.
39456         Remove definition and uses of __P.
39457
39458         From coreutils.
39459         * lib/stat.c: Don't declare xmalloc explicitly.
39460         Instead, include "xalloc.h".
39461         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
39462         xrealloc, and xcalloc return values.
39463         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
39464         Improve comment.
39465         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
39466
39467 2003-06-07  Bruno Haible  <bruno@clisp.org>
39468
39469         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
39470         avoid AC_CONFIG_LINKS.
39471         * modules/fnmatch (Makefile.am): Use explicit creation rule for
39472         fnmatch.h, to avoid AC_CONFIG_LINKS.
39473         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
39474
39475 2003-06-07  Bruno Haible  <bruno@clisp.org>
39476
39477         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
39478         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
39479         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
39480         directory.
39481         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
39482         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
39483         directory.
39484
39485 2003-06-06  Jim Meyering  <jim@meyering.net>
39486
39487         Merge from coreutils.
39488         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
39489         Consolidate declarations and initializations of *_base* locals.
39490
39491         Merge from coreutils.
39492         This avoids a core dump on systems without GNU putenv,
39493         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
39494         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
39495         (unsetenv): New static function, from GNU libc.
39496         (rpl_putenv): Use it.
39497
39498         * lib/modechange.c: Remove trailing blanks.
39499
39500         Merge from coreutils.
39501         * lib/fsusage.c: Remove declaration of statfs.
39502         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
39503
39504         * lib/posixtm.c: Include <stdbool.h> unconditionally.
39505
39506 2003-06-06  Jim Meyering  <jim@meyering.net>
39507
39508         * lib/stdbool_.h: Renamed from stdbool.h.in.
39509
39510 2003-06-06  Jim Meyering  <jim@meyering.net>
39511             Bruno Haible  <bruno@clisp.org>
39512
39513         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
39514         Adjust Makefile.am snippet not to redirect directly to target.
39515         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
39516
39517 2003-06-05  Paul Eggert  <eggert@twinsun.com>
39518
39519         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
39520         mismatch, look in future quarters as well as past.  This fixes a
39521         bug when processing fall-backwards gaps immediately after a long
39522         period of daylight-saving time.
39523
39524         * lib/mktime.c: Assume freestanding C89 or better.
39525         (HAVE_LIMITS_H): Remove.  Assume it's 1.
39526         (__P): Remove; not used.
39527         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
39528         (mktime, not_equal_tm, print_tm, check_result,
39529         main): Use prototypes.  Use const * where appropriate.
39530         (main): Fix typo in testing code that uncovered by above changes.
39531         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
39532
39533 2003-06-04  Paul Eggert  <eggert@twinsun.com>
39534
39535         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
39536         locale.h, localeconv.  This merges changes from coreutils.
39537
39538         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
39539         It can be removed after the next Autoconf is released.
39540         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
39541         needed.
39542
39543 2003-06-04  Paul Eggert  <eggert@twinsun.com>
39544
39545         * lib/mktime.c: Fix Debian bug 177940
39546         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
39547         (localtime_offset): Now long int, not time_t, because we want it
39548         to be guaranteed to be signed.  All uses changed.
39549         (__mktime_internal): If overflow would occur when adding offset,
39550         don't add it.
39551
39552         Merge 'human' changes from coreutils.  Rewrite to support
39553         locale-specific notations like thousands separators.
39554         * lib/human.c: Simplify authorship notice.
39555         Include human.h immediately after config.h.
39556         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
39557         <limits.h>: Do not include, since human.h does.
39558         (SIZE_MAX, UINTMAX_MAX): New macros.
39559         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
39560         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
39561         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
39562         (power_letter): Renamed from suffixes.
39563         (generate_suffix_backwards): Remove.
39564         (adjust_value): Now takes int style (because of human.h changes)
39565         and long double value (for greater precision on some platforms).
39566         (group_number): New function.
39567         (human_readable): Use it.  Use integer options, not enum.
39568         Put the options before the sizes in the arg list.
39569         Support all the new options.
39570         The old human_readable function has been removed;
39571         use inttostr.h instead.
39572         (human_readable, default_block_size, humblock):
39573         Use uintmax_t, not int, for block sizes.
39574         (human_readable_inexact, block_size_types): Remove.
39575         (block_size_opts): New constant.
39576         (human_options): Renamed from human_block_size, with new signature
39577         that allows block sizes up to UINTMAX_MAX.  All callers changed.
39578         * lib/human.h: Add copyright and authorship notice.
39579         Include <limits.h> and <stdbool.h> unconditionally.
39580         (PARAMS): Remove.  All uses removed.
39581         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
39582         (enum human_inexact_style): Remove tag; now a nameless enum.
39583         (human_floor, human_ceiling, human_round_to_even): Now have
39584         values 2, 0, 1 rather than -1, 1, 0.
39585         (human_group_digits, human_suppress_point_zero, human_autoscale,
39586         human_base_1024, human_SI, human_B): New constants.
39587         (human_readable_inexact, human_block_size): Remove.
39588         (human_readable): Size args are now uintmax_t, not int.
39589         (human_options): New decl.
39590
39591         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
39592         unnecessary now that we assume C89 or better.  This change
39593         imported from coreutils.
39594
39595         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
39596         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
39597         in the 2003-05-30 sync from glibc.
39598
39599         .h files should stand alone, but we shouldn't include <sys/types.h>
39600         if we can get away with just <stddef.h>.
39601
39602         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
39603         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
39604         rather than <sys/types.h>, as we merely need size_t.
39605         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
39606         to get size_t.
39607         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
39608         Include <stdio.h>, to get FILE.
39609         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
39610         memcasecmp.h has included <stddef.h> and all we need is size_t.
39611         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
39612         our interface, instead of including <sys/types.h>
39613
39614 2003-06-04  Paul Eggert  <eggert@twinsun.com>
39615
39616         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
39617         now, as glibc mktime is buggy on non-glibc systems.
39618
39619 2003-06-03  Karl Berry  <karl@gnu.org>
39620
39621         * config/config.sub: update from prep.
39622
39623 2003-06-02  Paul Eggert  <eggert@twinsun.com>
39624
39625         [from coreutils]
39626         Fix some minor time-related bugs with POSIX time arguments.
39627         Some valid time stamps were being rejected (notably -1, and
39628         time stamps before 1900 on 64-bit hosts).  And some invalid
39629         time stamps were being accepted, e.g. September 31.
39630
39631         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
39632         that we can return (time_t) -1 successfully.
39633         * lib/posixtm.c: Likewise.
39634         [HAVE_STDBOOL_H]: Include <stdbool.h>.
39635         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
39636         (t): Remove static var.
39637         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
39638         of static var.  All uses changed.
39639         (year): Do not reject years before 1900; they can occur with
39640         64-bit time_t.
39641         (posix_time_parse): Do not check for out-of-range components;
39642         that is now the caller's responsibility, since our checks were
39643         only approximations.
39644         (posixtime): Use mktime to check for out-of-range components,
39645         since it knows them exactly.
39646         If mktime returns (time_t) -1, check whether an error actually occurred
39647         by invoking localtime on -1.
39648         (main) [TEST_POSIXTIME]: Check for input data errors, and report
39649         posixtime failures better.
39650         Improve the test data (in comments only).
39651
39652 2003-06-02  Karl Berry  <karl@gnu.org>
39653
39654         * config/mkinstalldirs (version): new variable.
39655         (--version): new option.
39656         (usage): improve message.
39657
39658 2003-05-30  Karl Berry  <karl@gnu.org>
39659
39660         * lib/mktime.c: update from libc.
39661
39662 2003-05-30  Bruno Haible  <bruno@clisp.org>
39663
39664         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
39665         * config/config.rpath: Upgrade to gettext-0.12.1.
39666
39667 2003-05-30  Bruno Haible  <bruno@clisp.org>
39668
39669         * m4/gettext.m4: Upgrade to gettext-0.12.1.
39670         * m4/nls.m4: New file, from gettext-0.12.1.
39671         * m4/po.m4: New file, from gettext-0.12.1.
39672         * m4/progtest.m4: Upgrade to gettext-0.12.1.
39673
39674 2003-05-30  Bruno Haible  <bruno@clisp.org>
39675
39676         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
39677         * lib/localcharset.h: Likewise.
39678         * lib/localcharset.c: Likewise.
39679
39680 2003-05-29  Karl Berry  <karl@gnu.org>
39681
39682         * config/config.rpath: update from gettext.
39683
39684 2003-05-28  Paul Eggert  <eggert@twinsun.com>
39685
39686         Assume the headers required for C89 freestanding compilers.
39687         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
39688         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
39689         * m4/human.m4 (gl_HUMAN): Likewise.
39690         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
39691         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
39692         * m4/userspec.m4 (gl_USERSPEC): Likewise.
39693         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
39694         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
39695         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
39696
39697 2003-05-28  Paul Eggert  <eggert@twinsun.com>
39698
39699         Assume the headers required for C89 freestanding compilers.
39700         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
39701         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
39702         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
39703         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
39704         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
39705         define, since <limits.h> is guaranteed to do that.
39706         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
39707         * lib/exclude.c: Include <stdbool.h> unconditionally.
39708         * lib/tempname.c: Include <stddef.h> unconditionally.
39709         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
39710         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
39711         <stddef.h> does that.
39712         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
39713         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
39714         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
39715         needed.
39716         * lib/xstrtol.c: Likewise.
39717         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
39718         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
39719
39720         * lib/addext.c (addext): Use assignment rather than cast, to avoid
39721         warnings on some platforms.
39722
39723         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
39724         arbitrarily.
39725
39726 2003-05-26  Jim Meyering  <jim@meyering.net>
39727
39728         Merge in a change from coreutils:
39729         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
39730         that is guaranteed to be `no'.  Use `no_such_member' to indicate
39731         that condition, rather than `-1' which is slightly misleading.
39732         Change the name of the cache variable to have the gl_ prefix.
39733         Prompted by a patch from Richard Dawe for DJGPP.
39734
39735 2003-05-24  Karl Berry  <karl@gnu.org>
39736
39737         * config/config.guess: update from prep.
39738
39739 2003-05-22  Karl Berry  <karl@gnu.org>
39740
39741         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
39742
39743 2003-05-20  Karl Berry  <karl@gnu.org>
39744
39745         * config/config.guess: update from prep.
39746
39747 2003-05-18  Karl Berry  <karl@gnu.org>
39748
39749         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
39750         might actually be set by the user.
39751
39752         * config/depcomp, install-sh, mdate-sh: update from automake.
39753
39754 2003-05-17  Bruno Haible  <bruno@clisp.org>
39755
39756         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
39757         invalid expansion for AC_EGREP_CPP.
39758         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
39759         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
39760         Suggested by Akim Demaille <akim@epita.fr> in
39761         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
39762
39763 2003-05-12  Jim Meyering  <jim@meyering.net>
39764
39765         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
39766         the space-padded-by-default conversion specifiers, %e, %k, %l.
39767
39768 2003-05-12  Bruno Haible  <bruno@clisp.org>
39769
39770         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
39771         the string is longer than 4 KB.
39772
39773 2003-05-11  Karl Berry  <karl@gnu.org>
39774
39775         * config/config.{guess,sub}: update from prep.
39776
39777 2003-05-09  Bruno Haible  <bruno@clisp.org>
39778
39779         * modules/error: Add m4/strerror_r.m4 to file list.
39780
39781 2003-05-03  Bruno Haible  <bruno@clisp.org>
39782
39783         Upgrade to Unicode-4.0.
39784         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
39785         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
39786         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
39787         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
39788         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
39789         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
39790         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
39791         Change width of U+E0100..U+E01EF from 1 to 0.
39792
39793 2003-04-25  Jim Meyering  <jim@meyering.net>
39794
39795         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
39796         of type size_t, not int.
39797
39798 2003-04-25  Bruno Haible  <bruno@clisp.org>
39799
39800         * lib/copy-file.c: Include <stddef.h>, for size_t.
39801
39802 2003-04-21  Paul Eggert  <eggert@twinsun.com>
39803
39804         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
39805         code which expansion is under static control.  Patch imported from
39806         Akim Demaille's patch to Bison; see
39807         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
39808
39809 2003-04-14  Bruno Haible  <bruno@clisp.org>
39810
39811         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
39812
39813 2003-04-11  Jim Meyering  <jim@meyering.net>
39814
39815         Merge changes from Coreutils.
39816
39817         2003-03-22  Jim Meyering  <jim@meyering.net>
39818
39819         * lib/strftime.c (widen): Cast alloca return value to proper type.
39820
39821         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
39822
39823         From GNU libc.
39824         * lib/strftime.c (my_strftime): Handle very large width
39825         specifications for numeric values correctly.  Improve checks for
39826         overflow.
39827
39828         2003-01-19  Jim Meyering  <jim@meyering.net>
39829
39830         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
39831         definitions.
39832         (nl_get_alt_digit) [! defined my_strftime]: Define.
39833         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
39834         _nl_get_alt_digit and _nl_get_walt_digit.
39835
39836         * lib/strftime.c (my_strftime): Merge in locale-related changes from
39837         libc. These changes have no effect outside of _LIBC.
39838
39839 2003-04-10  Bruno Haible  <bruno@clisp.org>
39840
39841         * modules/findprog: New file.
39842         * MODULES.html.sh (func_all_modules): Add it.
39843
39844 2003-04-10  Bruno Haible  <bruno@clisp.org>
39845
39846         * m4/findprog.m4: New file.
39847         * m4/eaccess.m4: New file.
39848
39849 2003-04-10  Bruno Haible  <bruno@clisp.org>
39850
39851         * lib/findprog.h: New file, from GNU gettext.
39852         * lib/findprog.c: New file, from GNU gettext.
39853
39854 2003-04-05  Jim Meyering  <jim@meyering.net>
39855
39856         Merge changes from Coreutils.
39857
39858         * lib/exclude.h (PARAMS): Remove definition and uses.
39859         * lib/exclude.c: Remove uses of `PARAMS'.
39860
39861         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
39862         Add test-cases for DOS filenames. Declare program_name.
39863         (main): Set up program_name.  Patch by Rich Dawe.
39864
39865         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
39866         error from mntctl.
39867         Use mntctl's return value to drive the entry-processing loop, since
39868         we can't rely on the value of the vmt_length member in the last
39869         entry.  On some systems doing so could result in exhausting
39870         virtual memory.  Based in part on a patch from Mike Jetzer.
39871
39872 2003-04-04  Bruno Haible  <bruno@clisp.org>
39873
39874         * modules/linebreak: New file.
39875         * MODULES.html.sh (func_all_modules): Add it.
39876
39877 2003-04-04  Bruno Haible  <bruno@clisp.org>
39878
39879         * m4/linebreak.m4: New file.
39880
39881 2003-04-04  Bruno Haible  <bruno@clisp.org>
39882
39883         * lib/linebreak.h: New file, from GNU gettext.
39884         * lib/linebreak.c: New file, from GNU gettext with slight
39885         modifications.
39886         * lib/lbrkprop.h: New file, from GNU gettext.
39887
39888 2003-04-03  Bruno Haible  <bruno@clisp.org>
39889
39890         * modules/utf8-ucs4: New file.
39891         * modules/utf16-ucs4: New file.
39892         * modules/ucs4-utf8: New file.
39893         * modules/ucs4-utf16: New file.
39894         * MODULES.html.sh (func_all_modules): Add them.
39895
39896 2003-04-03  Bruno Haible  <bruno@clisp.org>
39897
39898         * m4/utf-ucs4.m4: New file.
39899         * m4/ucs4-utf.m4: New file.
39900
39901 2003-04-03  Bruno Haible  <bruno@clisp.org>
39902
39903         * lib/utf8-ucs4.h: New file, from GNU gettext.
39904         * lib/utf16-ucs4.h: New file, from GNU gettext.
39905         * lib/ucs4-utf8.h: New file, from GNU gettext.
39906         * lib/ucs4-utf16.h: New file, from GNU gettext.
39907
39908 2003-04-02  Bruno Haible  <bruno@clisp.org>
39909
39910         * modules/binary-io: New file.
39911         * MODULES.html.sh (func_all_modules): Add it.
39912
39913 2003-04-02  Bruno Haible  <bruno@clisp.org>
39914
39915         * lib/binary-io.h: New file, from GNU gettext.
39916
39917 2003-04-01  Bruno Haible  <bruno@clisp.org>
39918
39919         * modules/pathname: New file.
39920         * MODULES.html.sh (func_all_modules): Add it.
39921
39922 2003-04-01  Bruno Haible  <bruno@clisp.org>
39923
39924         * lib/pathname.h: New file, from GNU gettext.
39925         * lib/concatpath.c: New file, from GNU gettext.
39926
39927 2003-03-30  Bruno Haible  <bruno@clisp.org>
39928
39929         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
39930
39931 2003-03-30  Bruno Haible  <bruno@clisp.org>
39932
39933         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
39934         function chown() doesn't exist.
39935
39936 2003-03-28  Bruno Haible  <bruno@clisp.org>
39937
39938         * modules/copy-file: New file.
39939         * MODULES.html.sh (func_all_modules): Add it.
39940
39941 2003-03-28  Bruno Haible  <bruno@clisp.org>
39942
39943         * m4/copy-file.m4: New file.
39944
39945 2003-03-28  Bruno Haible  <bruno@clisp.org>
39946
39947         * lib/copy-file.h: New file, from GNU gettext.
39948         * lib/copy-file.c: New file, from GNU gettext.
39949
39950 2003-03-18  Jim Meyering  <jim@meyering.net>
39951
39952         * lib/quote.c (quote_n): Fix typo in comment.
39953
39954 2003-03-18  Bruno Haible  <bruno@clisp.org>
39955
39956         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
39957         checking.
39958         * m4/onceonly_2_57.m4: Likewise.
39959
39960 2003-03-17  Bruno Haible  <bruno@clisp.org>
39961
39962         * m4/onceonly.m4: Require autoconf 2.54 or newer.
39963         (m4_quote): Remove macro.
39964         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
39965
39966 2003-03-14  Jim Meyering  <jim@meyering.net>
39967
39968         Merge changes from Coreutils.
39969         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
39970         to be const, in order to avoid warnings.
39971         (obstack_room): Likewise.
39972         (obstack_empty_p): Likewise.
39973
39974 2003-03-14  Bruno Haible  <bruno@clisp.org>
39975
39976         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
39977         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
39978
39979 2003-03-13  Paul Eggert  <eggert@twinsun.com>
39980
39981         Merge changes from Bison.
39982         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
39983         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
39984         when compiling Bison 1.875's `bitset bset = obstack_alloc
39985         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
39986         * lib/hash.c: Include <stdbool.h> unconditionally.
39987
39988 2003-03-13  Paul Eggert  <eggert@twinsun.com>
39989
39990         * m4/onceonly.m4 (m4_quote): New macro.
39991         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
39992         Quote AC_FOREACH variable-expansions properly.
39993
39994 2003-03-13  Paul Eggert  <eggert@twinsun.com>
39995
39996         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
39997
39998 2003-03-09  Paul Eggert  <eggert@twinsun.com>
39999
40000         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
40001         Reported by Bruce Becker; see:
40002         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
40003
40004 2003-03-03  Paul Eggert  <eggert@twinsun.com>
40005             Bruno Haible  <bruno@clisp.org>
40006
40007         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
40008         Reported by John Hughes, see
40009         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
40010
40011 2003-02-20  Bruno Haible  <bruno@clisp.org>
40012
40013         * MODULES.html.sh (func_all_modules): Add poll.
40014
40015 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
40016
40017         * modules/poll: New file.
40018
40019 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
40020
40021         * lib/poll_.h: New file.
40022         * lib/poll.c: New file.
40023
40024 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
40025
40026         * m4/poll.m4: New file.
40027
40028 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
40029
40030         * modules/mathl: New file.
40031
40032 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
40033
40034         * lib/mathl.h: New file.
40035         * lib/acosl.c: New file.
40036         * lib/asinl.c: New file.
40037         * lib/atanl.c: New file.
40038         * lib/ceill.c: New file.
40039         * lib/cosl.c: New file.
40040         * lib/expl.c: New file.
40041         * lib/floorl.c: New file.
40042         * lib/frexpl.c: New file.
40043         * lib/ldexpl.c: New file.
40044         * lib/logl.c: New file.
40045         * lib/sincosl.c: New file.
40046         * lib/sinl.c: New file.
40047         * lib/sqrtl.c: New file.
40048         * lib/tanl.c: New file.
40049         * lib/trigl.c: New file.
40050         * lib/trigl.h: New file.
40051
40052 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
40053
40054         * m4/mathl.m4: New file.
40055
40056 2003-02-18  Bruno Haible  <bruno@clisp.org>
40057
40058         * MODULES.html.sh (func_all_modules): Add mathl.
40059
40060 2003-02-17  Bruno Haible  <bruno@clisp.org>
40061
40062         * modules/mkdtemp: New module.
40063         * MODULES.html.sh (func_all_modules): Add it.
40064
40065 2003-02-17  Bruno Haible  <bruno@clisp.org>
40066
40067         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
40068
40069 2003-02-17  Bruno Haible  <bruno@clisp.org>
40070
40071         * lib/mkdtemp.h: New file, from GNU gettext.
40072         * lib/mkdtemp.c: New file, from GNU gettext.
40073
40074 2003-02-02  Jim Meyering  <jim@meyering.net>
40075
40076         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
40077         e.g. glibc-2.2.93.
40078
40079 2003-01-31  Bruno Haible  <bruno@clisp.org>
40080
40081         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
40082         'rpl_rename'.
40083         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
40084         'rpl_strnlen'.
40085         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
40086         'rpl_strtod'.
40087         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
40088         'rpl_utime'.
40089
40090 2003-01-31  Bruno Haible  <bruno@clisp.org>
40091
40092         * lib/rename.c: #undef rename before defining rpl_rename.
40093         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
40094
40095 2003-01-30  Bruno Haible  <bruno@clisp.org>
40096
40097         * modules/vasnprintf, modules/vasprintf: New modules.
40098         * MODULES.html.sh (func_all_modules): Add them.
40099
40100 2003-01-30  Bruno Haible  <bruno@clisp.org>
40101
40102         * m4/signed.m4: New file, from GNU gettext.
40103         * m4/longdouble.m4: New file, from GNU gettext.
40104         * m4/wchar_t.m4: New file, from GNU gettext.
40105         * m4/wint_t.m4: New file, from GNU gettext.
40106         * m4/vasnprintf.m4: New file.
40107         * m4/vasprintf.m4: New file.
40108
40109 2003-01-30  Bruno Haible  <bruno@clisp.org>
40110
40111         * lib/printf-args.h: New file, from GNU gettext.
40112         * lib/printf-args.c: New file, from GNU gettext.
40113         * lib/printf-parse.h: New file, from GNU gettext.
40114         * lib/printf-parse.c: New file, from GNU gettext.
40115         * lib/vasnprintf.h: New file, from GNU gettext.
40116         * lib/vasnprintf.c: New file, from GNU gettext.
40117         * lib/asnprintf.c: New file, from GNU gettext.
40118         * lib/vasprintf.h: New file, from GNU gettext with modifications.
40119         * lib/vasprintf.c: New file, from GNU gettext.
40120         * lib/asprintf.c: New file, from GNU gettext.
40121
40122 2003-01-29  Bruno Haible  <bruno@clisp.org>
40123
40124         * modules/stpncpy: New module.
40125         * MODULES.html.sh (func_all_modules): Add it.
40126
40127 2003-01-29  Bruno Haible  <bruno@clisp.org>
40128
40129         * m4/stpncpy.m4: New file.
40130
40131 2003-01-29  Bruno Haible  <bruno@clisp.org>
40132
40133         * lib/stpncpy.h: New file, from GNU gettext with modifications.
40134         * lib/stpncpy.c: New file, from GNU gettext with modifications.
40135
40136 2003-01-28  Bruno Haible  <bruno@clisp.org>
40137
40138         * modules/c-ctype: New module.
40139         * MODULES.html.sh (func_all_modules): Add it.
40140
40141 2003-01-28  Bruno Haible  <bruno@clisp.org>
40142
40143         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
40144         Paul Eggert.
40145         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
40146         Paul Eggert.
40147
40148 2003-01-27  Bruno Haible  <bruno@clisp.org>
40149
40150         * modules/xsetenv: New module.
40151         * MODULES.html.sh (func_all_modules): Add it.
40152
40153 2003-01-27  Bruno Haible  <bruno@clisp.org>
40154
40155         * lib/xsetenv.h: New file, from GNU gettext.
40156         * lib/xsetenv.c: New file, from GNU gettext.
40157
40158 2003-01-23  Jim Meyering  <jim@meyering.net>
40159
40160         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
40161         from working on systems without dirfd (at least Irix and OSF1/Tru64).
40162
40163 2003-01-23  Bruno Haible  <bruno@clisp.org>
40164
40165         * modules/minmax: New module.
40166         * MODULES.html.sh (func_all_modules): Add it.
40167
40168 2003-01-23  Bruno Haible  <bruno@clisp.org>
40169
40170         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
40171         Eggert.
40172
40173 2003-01-22  Bruno Haible  <bruno@clisp.org>
40174
40175         * modules/exit: New module.
40176         * MODULES.html.sh (func_all_modules): Add it.
40177
40178 2003-01-22  Bruno Haible  <bruno@clisp.org>
40179
40180         * lib/exit.h: New file, from GNU gettext.
40181
40182 2003-01-19  Bruno Haible  <bruno@clisp.org>
40183
40184         * gnulib-tool: Recognize option --extract-maintainer.
40185         (func_get_maintainer): New function.
40186         * modules/*: Add Maintainer entry.
40187
40188 2003-01-16  Jim Meyering  <jim@meyering.net>
40189
40190         * m4/regex.m4: The `regex' struct is both input and output.
40191         Initialize it before each use.  Patch by Tim Waugh.
40192
40193 2003-01-16  Bruno Haible  <bruno@clisp.org>
40194
40195         * MODULES.html.sh: Add a table of contents. Add the module name as
40196         leftmost column. Add hyperlinks.
40197
40198 2003-01-15  Bruno Haible  <bruno@clisp.org>
40199
40200         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
40201
40202 2003-01-15  Bruno Haible  <bruno@clisp.org>
40203
40204         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
40205         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
40206         suffix.
40207
40208 2003-01-15  Bruno Haible  <bruno@clisp.org>
40209
40210         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
40211
40212 2003-01-15  Bruno Haible  <bruno@clisp.org>
40213
40214         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
40215         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
40216
40217 2003-01-14  Jim Meyering  <jim@meyering.net>
40218
40219         * lib/same.c (same_name): Tweak a comment.
40220
40221 2003-01-14  Bruno Haible  <bruno@clisp.org>
40222
40223         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
40224         when a string comparison is sufficient.
40225
40226 2003-01-14  Bruno Haible  <bruno@clisp.org>
40227
40228         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
40229         'unsigned int'.
40230
40231 2003-01-14  Bruno Haible  <bruno@clisp.org>
40232
40233         * lib/hash-pjw.c: Add comment about low quality of this function.
40234
40235 2003-01-13  Bruno Haible  <bruno@clisp.org>
40236
40237         * modules/stpcpy: Distribute lib/stpcpy.h.
40238         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
40239
40240 2003-01-13  Bruno Haible  <bruno@clisp.org>
40241
40242         * modules/*: Add a description.
40243         * modules/strpbrk: Fix Makefile.am snippet.
40244         * modules/strtoimax: Fix dependencies.
40245         * modules/strtoumax: Likewise.
40246
40247 2003-01-13  Bruno Haible  <bruno@clisp.org>
40248
40249         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
40250         * modules/alloca (Makefile.am): All object files depend on alloca.h.
40251         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
40252
40253 2003-01-13  Bruno Haible  <bruno@clisp.org>
40254
40255         * gnulib-tool (func_create_testdir): Store config/* files in the main
40256         directory.
40257         * config.rpath: Move to ...
40258         * config/config.rpath: ... here.
40259         * modules/gettext: Contains config/config.rpath, not config.rpath.
40260         * modules/iconv: Likewise.
40261
40262 2003-01-12  Paul Eggert  <eggert@twinsun.com>
40263
40264         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
40265         to avoid collisions with libcurses and libreadline.
40266
40267         * m4/getstr.m4: Remove.
40268         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
40269
40270 2003-01-12  Paul Eggert  <eggert@twinsun.com>
40271
40272         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
40273         to avoid collisions with libcurses and libreadline.
40274
40275         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
40276         * lib/getstr.h, getstr.c: Remove.
40277         * lib/getline.c: Include "getline.h", to check interface.
40278         Move body of old getstr.c here: this defines MIN_CHUNK and
40279         declares getdelim2, which is renamed from getstr.
40280         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
40281
40282         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
40283         All uses changed.
40284         * lib/linebuffer.h: Likewise.
40285         (readline): Remove backward-compatibility macro.
40286
40287 2003-01-12  Paul Eggert  <eggert@twinsun.com>
40288
40289         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
40290         to avoid collisions with libcurses and libreadline.
40291         * getstr: Remove.
40292         * MODULES.html.sh: Remove getstr.
40293         * modules/getline: Depend on unlocked-io, not getstr.
40294
40295 2003-01-12  Jim Meyering  <jim@meyering.net>
40296
40297         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
40298
40299 2003-01-10  Bruno Haible  <bruno@clisp.org>
40300
40301         * modules/alloca: Change Makefile.am requirements. Simplify Include
40302         requirements. Add lib/alloca_.h to file list.
40303
40304 2003-01-10  Bruno Haible  <bruno@clisp.org>
40305
40306         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
40307
40308 2003-01-10  Bruno Haible  <bruno@clisp.org>
40309
40310         * lib/alloca_.h: New file.
40311         * lib/getdate.y: Unconditionally include alloca.h.
40312         * lib/makepath.c: Likewise.
40313         * lib/setenv.c: Likewise.
40314         * lib/userspec.c: Likewise.
40315
40316 2003-01-09  Karl Berry  <karl@gnu.org>
40317
40318         * MODULES.html.sh: include `dirname $0` in PATH, to find
40319         gnulib-tool.
40320
40321 2003-01-09  Bruno Haible  <bruno@clisp.org>
40322
40323         * modules/stdbool: Change configure.ac, Makefile.am requirements.
40324         Simplify Include requirements. Add lib/stdbool.h.in to file list.
40325
40326 2003-01-09  Bruno Haible  <bruno@clisp.org>
40327
40328         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
40329
40330 2003-01-09  Bruno Haible  <bruno@clisp.org>
40331
40332         * lib/stdbool.h.in: New file.
40333
40334 2003-01-09  Bruno Haible  <bruno@clisp.org>
40335
40336         * gnulib-tool (func_all_modules): Ignore files ending in ~.
40337         * MODULES.html.sh: Likewise.
40338
40339 2003-01-08  Jim Meyering  <jim@meyering.net>
40340
40341         * lib/full-write.c: Undefine and define-away `const' after inclusion
40342         of errno.h, not before.  Suggestion from Bruno Haible.
40343
40344 2003-01-08  Bruno Haible  <bruno@clisp.org>
40345
40346         * modules/full-read: Depend on full-write.
40347
40348 2003-01-08  Bruno Haible  <bruno@clisp.org>
40349
40350         * lib/safe-read.c: Include specification header first, to ensure its
40351         selfcontainedness.
40352         * lib/full-write.c: Likewise.
40353
40354 2003-01-07  Jim Meyering  <jim@meyering.net>
40355
40356         * lib/full-write.c: Rework so that it may serve to define full_read,
40357         too.
40358         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
40359
40360 2003-01-07  Bruno Haible  <bruno@clisp.org>
40361
40362         * lib/strtoimax.c: Include <stdint.h> as an alternative to
40363         <inttypes.h>.
40364         * lib/xstrtol.h: Likewise.
40365         * lib/xstrtoimax.c: Likewise.
40366         * lib/xstrtoumax.c: Likewise.
40367         * lib/human.h: Likewise.
40368
40369         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
40370         on systems that have <inttypes.h> but not <stdint.h>.
40371
40372 2003-01-07  Bruno Haible  <bruno@clisp.org>
40373
40374         * MODULES.html.sh: Add copyright notice.
40375         (missed_files): Omit CVS directory entries.
40376         (func_module): Make it work with sed-3.02.
40377         * MODULES.txt: Remove file.
40378
40379 2003-01-06  Jim Meyering  <jim@meyering.net>
40380
40381         * lib/version-etc.c: Update year in translatable copyright string.
40382
40383 2003-01-03  Karl Berry  <karl@gnu.org>
40384
40385         * config/config.{guess,sub}: update from prep.
40386
40387 2003-01-02  Karl Berry  <karl@gnu.org>
40388
40389         * doc/COPYING.DOC: belatedly updated to 1.2.
40390
40391 2003-01-01  Karl Berry  <karl@gnu.org>
40392
40393         * gnulib-tool (func_verify_module): report module name $module in
40394         error message, not $1.
40395         * gnulib-tool (create-testdir): don't complain if destdir couldn't
40396         be created, only if it doesn't exist.
40397         * gnulib-tool (last_checkin_date): don't expand the $Date here.
40398
40399 2002-12-31  Paul Eggert  <eggert@twinsun.com>
40400
40401         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
40402
40403 2002-12-31  Paul Eggert  <eggert@twinsun.com>
40404
40405         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
40406         memcmp if strcoll doesn't work.
40407
40408 2002-12-31  Bruno Haible  <bruno@clisp.org>
40409
40410         * lib/utime.c (utime_null): No need to call ftruncate if the file was
40411         nonempty.
40412
40413 2002-12-31  Bruno Haible  <bruno@clisp.org>
40414
40415         * lib/memcoll.c (STRCOLL): New macro.
40416         (memcoll): Use it.
40417
40418 2002-12-31  Bruno Haible  <bruno@clisp.org>
40419
40420         * lib/localcharset.h: New file.
40421         * lib/localcharset.c: Include it.
40422         * lib/unicodeio.c: Likewise.
40423
40424 2002-12-31  Bruno Haible  <bruno@clisp.org>
40425
40426         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
40427         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
40428
40429 2002-12-31  Bruno Haible  <bruno@clisp.org>
40430
40431         * lib/getline.h: Include <stddef.h>, for size_t.
40432
40433         * lib/unicodeio.h: Include <stddef.h>, for size_t.
40434         * lib/unicodeio.c: Don't include <stddef.h>.
40435
40436 2002-12-31  Bruno Haible  <bruno@clisp.org>
40437
40438         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
40439         HAVE_TM_ZONE.
40440
40441 2002-12-24  Karl Berry  <karl@gnu.org>
40442
40443         * config/config.guess: update from prep.
40444
40445 2002-12-24  Bruno Haible  <bruno@clisp.org>
40446
40447         General infrasructure.
40448         * m4/README: Rewritten.
40449         * m4/onceonly.m4: New file.
40450         * m4/onceonly_2_57.m4: New file.
40451
40452         Module atexit.
40453         * m4/atexit.m4: New file.
40454
40455         Module strtod.
40456         * m4/strtod.m4: New file.
40457
40458         Module strtol.
40459         * m4/strtol.m4: New file.
40460
40461         Module strtoul.
40462         * m4/strtoul.m4: New file.
40463
40464         Module memchr.
40465         * m4/memchr.m4: New file.
40466
40467         Module memcmp.
40468         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
40469         (jm_FUNC_MEMCMP): Invoke it.
40470
40471         Module memcpy.
40472         * m4/memcpy.m4: New file.
40473
40474         Module memmove.
40475         * m4/memmove.m4: New file.
40476
40477         Module memset.
40478         * m4/memset.m4: New file.
40479
40480         Module strcspn.
40481         * m4/strcspn.m4: New file.
40482
40483         Module strpbrk.
40484         * m4/strpbrk.m4: New file.
40485
40486         Module strstr.
40487         * m4/strstr.m4: New file.
40488
40489         Module strerror.
40490         * m4/strerror.m4: New file.
40491
40492         Module mktime.
40493         * m4/mktime.m4: Renamed from jm-mktime.m4.
40494         (gl_PREREQ_MKTIME): New macro.
40495         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
40496
40497         Module malloc.
40498         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
40499         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
40500         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
40501
40502         Module realloc.
40503         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
40504         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
40505         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
40506
40507         Module strftime.
40508         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
40509         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
40510         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
40511         gl_TM_GMTOFF.
40512         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
40513
40514         Module xalloc.
40515         * m4/xalloc.m4: New file.
40516
40517         Module alloca.
40518         * m4/alloca.m4: New file.
40519
40520         Module putenv.
40521         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
40522         (jm_FUNC_PUTENV): Invoke it.
40523
40524         Module setenv.
40525         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
40526         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
40527         when invoked twice.
40528         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
40529         gt_FUNC_SETENV.
40530
40531         Module memrchr.
40532         * m4/memrchr.m4: New file.
40533
40534         Module stpcpy.
40535         * m4/stpcpy.m4: New file.
40536
40537         Module strcase.
40538         * m4/strcase.m4: New file.
40539
40540         Module strdup.
40541         * m4/strdup.m4: New file.
40542
40543         Module strnlen.
40544         * m4/strnlen.m4: New file.
40545
40546         Module strndup.
40547         * m4/strndup.m4: New file.
40548
40549         Module xstrtod.
40550         * m4/xstrtod.m4: New file.
40551
40552         Module xstrtol.
40553         * m4/xstrtol.m4: New file.
40554
40555         Module getdate.
40556         * m4/getdate.m4: New file.
40557
40558         Module unlocked-io.
40559         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
40560         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
40561         * m4/jm-glibc-io.m4n: Remove file.
40562
40563         Module long-options.
40564         * m4/long-options.m4: New file.
40565
40566         Module md5.
40567         * m4/md5.m4: New file.
40568
40569         Module sha.
40570         * m4/sha.m4: New file.
40571
40572         Module getstr.
40573         * m4/getstr.m4: New file.
40574
40575         Module getline.
40576         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
40577         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
40578         <sys/types.h>, for size_t. Use the function name gnu_getline, not
40579         simply getline. Infoke gl_PREREQ_GETLINE.
40580
40581         Module obstack.
40582         * m4/obstack.m4: New file.
40583
40584         Module hash.
40585         * m4/hash.m4: New file.
40586
40587         Module readtokens.
40588         * m4/readtokens.m4: New file.
40589
40590         Module strverscmp.
40591         * m4/strverscmp.m4: New file.
40592
40593         Module stdbool.
40594         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
40595         OSF/1.
40596
40597         Module strtoll.
40598         * m4/strtoll.m4: New file.
40599
40600         Module strtoull.
40601         * m4/strtoull.m4: New file.
40602
40603         Module strtoimax.
40604         * m4/strtoimax.m4: New file.
40605
40606         Module strtoumax.
40607         * m4/strtoumax.m4: New file.
40608
40609         Module xstrtoimax.
40610         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
40611         jm_AC_PREREQ_XSTRTOIMAX.
40612         Moved the strtol prerequisites to strtol.m4.
40613         Moved the strtoll prerequisites to strtoll.m4.
40614         Moved the strtoimax prerequisites to strtoimax.m4.
40615
40616         Module xstrtoumax.
40617         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
40618         jm_AC_PREREQ_XSTRTOUMAX.
40619         Moved the strtoul prerequisites to strtoul.m4.
40620         Moved the strtoull prerequisites to strtoull.m4.
40621         Moved the strtoumax prerequisites to strtoumax.m4.
40622
40623         Module chown.
40624         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
40625         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
40626
40627         Module dup2.
40628         * m4/dup2.m4: New file.
40629
40630         Module ftruncate.
40631         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
40632         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
40633
40634         Module getgroups.
40635         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
40636         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
40637
40638         Module gettimeofday.
40639         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
40640         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
40641         gl_PREREQ_GETTIMEOFDAY.
40642
40643         Module mkdir.
40644         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
40645         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
40646
40647         Module mkstemp.
40648         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
40649         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
40650         jm_AC_TYPE_UINTMAX_T.
40651         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
40652
40653         Module stat.
40654         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
40655         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
40656
40657         Module lstat.
40658         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
40659         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
40660
40661         Module timespec.
40662         * m4/timespec.m4 (gl_TIMESPEC): New macro.
40663         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
40664         * m4/st_mtim.m4: Indentation.
40665
40666         Module nanosleep.
40667         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
40668         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
40669         gl_PREREQ_NANOSLEEP.
40670
40671         Module regex.
40672         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
40673         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
40674         (gl_REGEX): New macro.
40675
40676         Module rename.
40677         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
40678         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
40679
40680         Module rmdir.
40681         * m4/rmdir.m4: New file.
40682
40683         Module utime.
40684         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
40685         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
40686         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
40687
40688         Module dirname.
40689         * m4/dirname.m4: New file.
40690
40691         Module getopt.
40692         * m4/getopt.m4: New file.
40693
40694         Module unistd-safer.
40695         * m4/unistd-safer.m4: New file.
40696
40697         Module fnmatch.
40698         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
40699         declaration.
40700         (gl_PREREQ_FNMATCH_EXTRA): New macro.
40701         (gl_FUNC_FNMATCH_POSIX): New macro.
40702         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
40703         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
40704         simply fnmatch.
40705
40706         Module exclude.
40707         * m4/exclude.m4: New file.
40708
40709         Module human.
40710         * m4/human.m4: New file.
40711
40712         Module acl.
40713         * m4/acl.m4: Nop.
40714
40715         Module backupfile.
40716         * m4/backupfile.m4: New file.
40717         * m4/d-ino.m4: Indentation.
40718
40719         Module fsusage.
40720         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
40721         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
40722         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
40723
40724         Module dirfd.
40725         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
40726         requirements.
40727
40728         Module euidaccess.
40729         * m4/euidaccess.m4: New file.
40730
40731         Module file-type.
40732         * m4/file-type.m4: New file.
40733
40734         Module fileblocks.
40735         * m4/fileblocks.m4: New file.
40736
40737         Module filemode.
40738         * m4/filemode.m4: New file.
40739
40740         Module isdir.
40741         * m4/isdir.m4: New file.
40742
40743         Module lchown.
40744         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
40745         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
40746
40747         Module makepath.
40748         * m4/makepath.m4: New file.
40749
40750         Module modechange.
40751         * m4/modechange.m4: New file.
40752
40753         Module mountlist.
40754         * m4/mountlist.m4: New file.
40755         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
40756         Indentation.
40757
40758         Module path-concat.
40759         * m4/path-concat.m4: New file.
40760
40761         Module pathmax.
40762         * m4/pathmax.m4: New file.
40763
40764         Module same.
40765         * m4/same.m4: New file.
40766
40767         Module save-cwd.
40768         * m4/save-cwd.m4: New file.
40769
40770         Module savedir.
40771         * m4/savedir.m4: New file.
40772
40773         Module xgetcwd.
40774         * m4/xgetcwd.m4: New file.
40775         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
40776
40777         Module xreadlink.
40778         * m4/xreadlink.m4: New file.
40779
40780         Module safe-read.
40781         * m4/safe-read.m4: New file.
40782
40783         Module safe-write.
40784         * m4/safe-write.m4: New file.
40785
40786         Module closeout.
40787         * m4/closeout.m4: New file.
40788
40789         Module stdio-safer.
40790         * m4/stdio-safer.m4: New file.
40791
40792         Module getpass.
40793         * m4/getpass.m4: New file.
40794
40795         Module getugroups.
40796         * m4/getugroups.m4: New file.
40797
40798         Module group-member.
40799         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
40800         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
40801
40802         Module idcache.
40803         * m4/idcache.m4: New file.
40804
40805         Module userspec.
40806         * m4/userspec.m4: New file.
40807
40808         Module gettime.
40809         * m4/clock_time.m4: New file.
40810         * m4/gettime.m4: New file.
40811
40812         Module settime.
40813         * m4/settime.m4: New file.
40814
40815         Module posixtm.
40816         * m4/posixtm.m4: New file.
40817
40818         Module gethostname.
40819         * m4/gethostname.m4: New file.
40820
40821         Module canon-host.
40822         * m4/canon-host.m4: New file.
40823
40824         Module gettext.
40825         * m4/codeset.m4: New file, from gettext-0.11.5.
40826         * m4/gettext.m4: New file, from gettext-0.11.5.
40827         * m4/glibc21.m4: New file, from gettext-0.11.5.
40828         * m4/iconv.m4: New file, from gettext-0.11.5.
40829         * m4/intdiv0.m4: New file, from gettext-0.11.5.
40830         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
40831         * m4/inttypes.m4: New file, from gettext-0.11.5.
40832         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
40833         * m4/isc-posix.m4: New file, from gettext-0.11.5.
40834         * m4/lcmessage.m4: New file, from gettext-0.11.5.
40835         * m4/lib-ld.m4: New file, from gettext-0.11.5.
40836         * m4/lib-link.m4: New file, from gettext-0.11.5.
40837         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
40838         * m4/progtest.m4: New file, from gettext-0.11.5.
40839         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
40840         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
40841         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
40842
40843         Module localcharset.
40844         * m4/localcharset.m4: New file.
40845
40846         Module hard-locale.
40847         * m4/hard-locale.m4: New file.
40848
40849         Module mbswidth.
40850         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
40851         onceonly macros.
40852         * m4/mbrtowc.m4: Add comment.
40853
40854         Module memcasecmp.
40855         * m4/memcasecmp.m4: New file.
40856
40857         Module memcoll.
40858         * m4/memcoll.m4: New file.
40859
40860         Module unicodeio.
40861         * m4/unicodeio.m4: New file.
40862
40863         Module rpmatch.
40864         * m4/rpmatch.m4: New file.
40865
40866         Module yesno.
40867         * m4/yesno.m4: New file.
40868
40869         Module exitfail.
40870         * m4/exitfail.m4: New file.
40871
40872         Module c-stack.
40873         * m4/c-stack.m4 (gl_C_STACK): New macro.
40874         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
40875
40876         Module error.
40877         * m4/error.m4 (gl_ERROR): New macro.
40878         (jm_PREREQ_ERROR): Use onceonly macros.
40879
40880         Module fatal.
40881         * m4/fatal.m4: New file.
40882
40883         Module getloadavg.
40884         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
40885         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
40886
40887         Module getpagesize.
40888         * m4/getpagesize.m4: New file.
40889
40890         Module getusershell.
40891         * m4/getusershell.m4: New file.
40892
40893         Module physmem.
40894         * m4/physmem.m4: New file.
40895
40896         Module posixver.
40897         * m4/posixver.m4: New file.
40898
40899         Module quotearg.
40900         * m4/quotearg.m4: New file.
40901
40902         Module quote.
40903         * m4/quote.m4: New file.
40904
40905         Module readutmp.
40906         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
40907
40908         Module sig2str.
40909         * m4/sig2str.m4: New file.
40910
40911         Other.
40912         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
40913         ulonglong.m4.
40914         * m4/intmax_t.m4: New file.
40915         * m4/d-type.m4: Indentation.
40916         * m4/jm-macros.m4: Update.
40917         * m4/prereq.m4 (jm_PREREQ): Update.
40918         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
40919         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
40920         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
40921         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
40922         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
40923         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
40924         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
40925         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
40926         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
40927         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
40928         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
40929         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
40930         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
40931         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
40932         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
40933         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
40934         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
40935         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
40936         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
40937
40938 2002-12-24  Bruno Haible  <bruno@clisp.org>
40939
40940         * MODULES.txt: Update according to m4/ changes.
40941
40942         Module gettext.
40943         * config.rpath: New file, from gettext-0.11.5.
40944
40945         * modules/*: New module descriptions.
40946         * gnulib-tool: New file.
40947         * MODULES.html.sh: New file.
40948
40949 2002-12-21  Karl Berry  <karl@gnu.org>
40950
40951         * doc/fdl.texi: update to version 1.2.
40952
40953 2002-12-19  Karl Berry  <karl@gnu.org>
40954
40955         * config/config.guess: update from prep.
40956
40957 2002-12-18  Bruno Haible  <bruno@clisp.org>
40958
40959         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
40960         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
40961
40962 2002-12-17  Bruno Haible  <bruno@clisp.org>
40963
40964         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
40965         stdlib.h, string.h.
40966
40967 2002-12-17  Bruno Haible  <bruno@clisp.org>
40968
40969         * lib/canon-host.c (strdup): Remove unused declaration.
40970
40971         * lib/fsusage.c: Include full_read.h.
40972         (get_fs_usage): Use full_read instead of safe_read.
40973
40974         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
40975
40976 2002-12-12  Karl Berry  <karl@gnu.org>
40977
40978         * config/config.guess: update from prep.
40979
40980 2002-12-11  Bruno Haible  <bruno@clisp.org>
40981
40982         * m4/setenv.m4: New file, from gettext-0.11.5.
40983
40984 2002-12-11  Bruno Haible  <bruno@clisp.org>
40985
40986         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
40987         not unsetenv().
40988         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
40989         modifications:
40990
40991         2002-12-11  Bruno Haible  <bruno@clisp.org>
40992
40993                 * setenv.c (alloca): Fall back to malloc.
40994                 (freea): New macro.
40995                 (setenv): Use freea() to free memory allocated with alloca().
40996
40997         2002-11-13  Bruno Haible  <bruno@clisp.org>
40998
40999                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
41000                 function declarations.
41001                 * unsetenv.c (unsetenv): Likewise.
41002
41003         2002-03-04  Bruno Haible  <bruno@clisp.org>
41004
41005                 Portability to AIX 4.3.3.
41006                 * unsetenv.c: New file, extracted from setenv.c.
41007                 * setenv.c: Move the unsetenv() function to unsetenv.c.
41008
41009         2001-12-20  Bruno Haible  <bruno@clisp.org>
41010
41011                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
41012                 use malloc instead. For SunOS 4.
41013
41014         2001-12-11  Bruno Haible  <bruno@clisp.org>
41015
41016                 * setenv.c: Declare alloca.
41017                 (compar_fn_t): New typedef.
41018                 (KNOWN_VALUE, STORE_VALUE): Use it.
41019
41020         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
41021         setenv.h.
41022
41023 2002-12-10  Paul Eggert  <eggert@twinsun.com>
41024
41025         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
41026         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
41027         Choose values that are less likely to collide with system fnmatch
41028         options.
41029         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
41030         defined (e.g., a pure POSIX system).
41031         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
41032         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
41033
41034 2002-12-06  Paul Eggert  <eggert@twinsun.com>
41035
41036         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
41037         a pain in practice to deal with generated m4 files.  This change
41038         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
41039
41040         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
41041         and jm-glibc-io.m4, as they are no longer a special case.
41042         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
41043         kludge and the auto-generation stuff.  Check only whether the
41044         functions are declared, not whether they exist, since older hosts
41045         that don't declare the functions can't use the optimization anyway.
41046
41047 2002-12-06  Jim Meyering  <jim@meyering.net>
41048
41049         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
41050
41051         Merge in changes from libc's misc/error.c, in preparation
41052         for the merge of gnulib's changes back into libc.
41053
41054         * lib/error.c (_): Define only if not already defined.
41055         Move definition to follow all #include directives.
41056         Include unlocked-io.h only if !_LIBC.
41057         [_LIBC]: Include <libio/libioP.h>.
41058         [USE_IN_LIBIO]: Include <libio/iolibio.h>
41059         (fflush): Tweak definition to use INTUSE.
41060         (putc): Define.
41061
41062 2002-12-05  Paul Eggert  <eggert@twinsun.com>
41063
41064         * lib/alloca.c [defined emacs]: Include "lisp.h".
41065         (xalloc_die) [defined emacs]: New macro.
41066         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
41067         [! defined emacs]: Include <xalloc.h>.
41068         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
41069         (pointer): Typedef to POINTER_TYPE *.
41070         (malloc): Remove decl; we now always use xmalloc.
41071         (alloca): Use old-style definition, since Emacs needs this.
41072         Check for arithmetic overflow when computing combined size.
41073
41074 2002-12-04  Paul Eggert  <eggert@twinsun.com>
41075
41076         Do not generate unlocked-io.h automatically, since it's easier to
41077         maintain it by hand.
41078
41079         * lib/unlocked-io.h: New file, from GNU diffutils,
41080         but with proper copyright notice and attribution.
41081         * lib/gen-uio: Remove.
41082         * lib/Makefile.am: Add copyright notice.
41083         (libfetish_a_SOURCES): Add unlocked-io.h.
41084         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
41085         (DISTCLEANFILES, io_functions): Remove macros.
41086         (EXTRA_DIST): Remove gen_uio.
41087         (unlocked-io.h): Remove rule.
41088
41089 2002-12-04  Jim Meyering  <jim@meyering.net>
41090
41091         Reflect the fact that stat.c and lstat.c are no longer generated.
41092         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
41093         (DISTCLEANFILES): Likewise.
41094         (EXTRA_DIST): Likewise.
41095         (all_local): Don't depend on stat.c or lstat.c.
41096         (stat.c, lstat.c): Remove rules.
41097         (EXTRA_DIST): Remove xstat.in.
41098
41099         * lib/xstat.in: Remove file.  Contents moved into stat.c.
41100         * lib/stat.c: New file.  Contents mostly from xstat.in.
41101         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
41102         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
41103
41104         * lib/safe-read.c: Rework so that it may serve to define safe_write,
41105         too.
41106         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
41107
41108 2002-12-03  Jim Meyering  <jim@meyering.net>
41109
41110         * lib/safe-read.c, safe-write.c: Change variable names and comments,
41111         but not semantics, to minimize the differences between these two files.
41112         (safe_read): Change comment to mention SAFE_READ_ERROR.
41113
41114         * lib/safe-read.c (IS_EINTR): Define.
41115         (safe_read): Use IS_EINTR in place of in-function cpp directives.
41116
41117 2002-12-02  Jim Meyering  <jim@meyering.net>
41118
41119         * lib/safe-read.c (EINTR): Define.
41120         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
41121         (INT_MAX): Provide fallback.
41122         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
41123
41124         * lib/safe-read.h (SAFE_READ_ERROR): Define.
41125
41126 2002-12-02  Bruno Haible  <bruno@clisp.org>
41127
41128         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
41129         Define, taken from safe-read.c.
41130         (INT_MAX): Provide fallback.
41131         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
41132         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
41133
41134         * lib/safe-read.c (EINTR): Remove definition.
41135         (safe_read): Don't use EINTR if it is absent.
41136
41137 2002-12-01  Jim Meyering  <jim@meyering.net>
41138
41139         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
41140         zero.
41141         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
41142
41143 2002-11-27  Paul Eggert  <eggert@twinsun.com>
41144
41145         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
41146         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
41147         with `if (! (value < limit)) abort ();', for readability.
41148
41149 2002-11-26  Karl Berry  <karl@gnu.org>
41150
41151         * lib/strdup.c: copy from libc again, with jim's ok.
41152         * lib/.cppi-disable: re-add strdup.c
41153
41154 2002-11-25  Karl Berry  <karl@gnu.org>
41155
41156         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
41157         instead of "strtol.c".
41158
41159 2002-11-25  Karl Berry  <karl@gnu.org>
41160
41161         * config/install-sh: update from automake for variable quoting, $0 in
41162         error msgs, etc.
41163
41164         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
41165         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
41166         entry.
41167
41168 2002-11-25  Jim Meyering  <jim@meyering.net>
41169
41170         * lib/mktime.c: Sync from libc, now that it has the latest fix.
41171
41172 2002-11-24  Karl Berry  <karl@gnu.org>
41173
41174         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
41175         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
41176
41177 2002-11-24  Jim Meyering  <jim@meyering.net>
41178
41179         Update from coreutils:
41180
41181         * lib/mktime.c: Merge in changes from libc.
41182
41183         Avoid a link-time failure on some Linux systems.
41184         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
41185         (otherwise).
41186         (__mon_yday): Declare with the STATIC attribute.
41187         (__mktime_internal): Likewise.
41188         Based on a report from Greg Schafer.
41189
41190 2002-11-23  Jim Meyering  <jim@meyering.net>
41191
41192         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
41193         Use `unsigned', not `int', as type of index.
41194
41195         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
41196
41197         * lib/fsusage.c: Remove unneeded parentheses around operands of
41198         `defined'.
41199
41200 2002-11-22  Paul Eggert  <eggert@twinsun.com>
41201
41202         * lib/quotearg.h: Allow multiple inclusion by surrounding with
41203         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
41204         so that we can be included first.
41205         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
41206         * lib/quotearg.c: Include quotearg.h immediately after config.h.
41207         No need to include stddef.h or sys/types.h any more.
41208         Surround local include files with "", not "<>".
41209         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
41210         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
41211         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
41212         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
41213         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
41214         (ISPRINT): Remove; no longer needed now that we assume C89.
41215
41216         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
41217         Preserve errno.
41218
41219         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
41220         quotearg_char): Use SIZE_MAX rather than
41221         (size_t) -1 when we are talking about "infinity".
41222
41223         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
41224
41225 2002-11-22  Paul Eggert  <eggert@twinsun.com>
41226
41227         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
41228         hint that one should use `if (! x) abort ();' rather than `assert
41229         (x);', and anyway it's one less thing to worry about configuring.
41230         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
41231         hash_rehash, hash_insert): Use abort rather than assert.
41232
41233 2002-11-22  Bruno Haible  <bruno@clisp.org>
41234
41235         * lib/safe-read.h: Assume C89. Add comments.
41236         (safe_read): Change return type to size_t.
41237         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
41238         byte counts > SSIZE_MAX correctly.
41239         * lib/safe-write.h: New file.
41240         * lib/safe-write.c: New file.
41241         * lib/full-read.h: New file.
41242         * lib/full-read.c: New file.
41243         * lib/full-write.h: Assume C89. Add comments.
41244         * lib/full-write.c: Include safe-write.h.
41245         (full_write): Rewritten to use safe_write.
41246         Suggested by Jim Meyering and Paul Eggert.
41247
41248 2002-11-21  Jim Meyering  <jim@meyering.net>
41249
41250         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
41251
41252         Merge in changes from the coreutils.
41253
41254         2002-09-25  Paul Eggert  <eggert@twinsun.com>
41255         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
41256         <stdint.h>.
41257         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
41258         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
41259         int.  Work more efficiently if X is the same width as uintmax_t.
41260         Do not compare X to -1, to avoid bogus compiler warning.
41261         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
41262         Don't assume that f_frsize and f_bsize are the same type.
41263
41264         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
41265         warning on FreeBSD.
41266
41267         * lib/makepath.c (make_path): Restore umask *before* creating the final
41268         component.
41269         (make_path): Minor reformatting.
41270
41271         * lib/xmalloc.c: Adjust to work with new autoconf macros,
41272         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
41273         HAVE_MALLOC/HAVE_REALLOC.
41274
41275         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
41276         dummy ones.  At least on GNU/Linux systems, `auto' means something
41277         else.
41278         From Michael Stone.
41279
41280 2002-11-21  Bruno Haible  <bruno@clisp.org>
41281
41282         Remove case insensitive option matching.
41283         * lib/argmatch.h (argcasematch): Remove declaration.
41284         (ARGCASEMATCH): Remove macro.
41285         (__xargmatch_internal): Remove case_sensitive argument.
41286         (XARGMATCH): Update.
41287         (XARGCASEMATCH): Remove macro.
41288         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
41289         case_sensitive argument.
41290         (argcasematch): Remove function.
41291         (__xargmatch_internal): Remove case_sensitive argument.
41292         (main): Use XARGMATCH instead of XARGCASEMATCH.
41293
41294         * lib/xmalloc.c: Change compile-time error message. Add comment about
41295         required autoconf version.
41296
41297 2002-11-20  Paul Eggert  <eggert@twinsun.com>
41298
41299         Merge argmatch cleanups from Bison.  Assume C89.
41300
41301         * lib/argmatch.c: Include config.h here, not in argmatch.h.
41302         Include stdlib.h, for EXIT_FAILURE.
41303         Always include <string.h>, since we assume C89.
41304         (EXIT_FAILURE): Remove pre-C89 bug workaround.
41305         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
41306         Include <stddef.h> instead, since it's all we need for size_t.
41307         (PARAMS): Remove.  All uses removed.
41308         (ARRAY_CARDINALITY): Do not bother to #undef.
41309         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
41310         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
41311         Remove unnecessary parentheses.
41312         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
41313         Insert necessary parentheses.
41314         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
41315         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
41316
41317 2002-11-19  Bruno Haible  <bruno@clisp.org>
41318
41319         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
41320         * lib/mbswidth.h: Include <stddef.h>, for size_t.
41321
41322         * lib/mbswidth.h (PARAMS): Remove macro.
41323         (mbswidth, mbsnwidth): Use ANSI C function declarations.
41324         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
41325
41326         * lib/gcd.h (PARAMS): Remove macro.
41327         (gcd): Use ANSI C function declarations.
41328         * lib/gcd.c (gcd): Likewise.
41329
41330 2002-11-15  Bruno Haible  <bruno@clisp.org>
41331
41332         * lib/strcspn.c: Include <stddef.h>.
41333         (strcspn): Use ANSI C function declaration. Change return type to
41334         size_t. Use NULL.
41335         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
41336         (strpbrk): Use NULL.
41337         * lib/strpbrk.h (PARAMS): Remove macro.
41338         (strpbrk): Use ANSI C function declaration.
41339         * lib/strstr.c: Don't include <sys/types.h>.
41340         * lib/strstr.h (PARAMS): Remove macro.
41341         (strstr): Use ANSI C function declarations.
41342
41343 2002-11-14  Karl Berry  <karl@gnu.org>
41344
41345         * config/mkinstalldirs: `do' on separate line, instead of
41346         `for var; do'.
41347
41348 2002-11-06  Bruno Haible  <bruno@clisp.org>
41349
41350         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
41351         * lib/gcd.c (gcd): Likewise.
41352
41353 2002-11-05  Bruno Haible  <bruno@clisp.org>
41354
41355         * lib/gcd.h: New file, from gettext-0.11.5.
41356         * lib/gcd.c: New file, from gettext-0.11.5.
41357
41358 2002-11-05  Bruno Haible  <bruno@clisp.org>
41359
41360         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
41361         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
41362         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
41363         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
41364
41365         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
41366         <libintl.h>.
41367         * lib/makepath.c: Include gettext.h instead of <locale.h> and
41368         <libintl.h>.
41369
41370         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
41371         * lib/human.c: Include gettext.h instead of <libintl.h>.
41372         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
41373         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
41374         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
41375         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
41376         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
41377         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
41378         (textdomain): Remove definition.
41379         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
41380
41381         * lib/long-options.c: Remove include of <libintl.h> and definition of
41382         _.
41383         * lib/same.c: Remove include of <libintl.h> and definition of _.
41384
41385 2002-11-04  Owen Taylor  <otaylor@redhat.com>
41386
41387         * lib/config.charset: A few additions for Solaris.
41388
41389 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
41390
41391         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
41392         * lib/localcharset.c (locale_charset): Declare as extern "C".
41393
41394 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
41395
41396         * lib/config.charset: msdos in uk_UA uses CP1125.
41397
41398 2002-11-04  Bruno Haible  <bruno@clisp.org>
41399
41400         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
41401         * lib/strcase.h: New file, from GNU gettext-0.11.5.
41402         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
41403         * lib/strstr.h: New file, from GNU gettext-0.11.5.
41404         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
41405
41406 2002-11-04  Bruno Haible  <bruno@clisp.org>
41407
41408         * lib/localcharset.c (locale_charset): Don't return an empty string.
41409
41410 2002-11-04  Bruno Haible  <bruno@clisp.org>
41411
41412         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
41413         aliases.
41414
41415 2002-11-04  Bruno Haible  <bruno@clisp.org>
41416
41417         * lib/config.charset: Update for newest glibc. Add canonical names
41418         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
41419
41420 2002-11-04  Bruno Haible  <bruno@clisp.org>
41421
41422         * lib/config.charset: Add support for NetBSD.
41423
41424 2002-11-04  Bruno Haible  <bruno@clisp.org>
41425
41426         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
41427
41428 2002-11-01  Bruno Haible  <bruno@clisp.org>
41429
41430         * configure.in: Add AC_CONFIG_AUX_DIR call.
41431         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
41432         test/Makefile.
41433         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
41434
41435 2002-09-28  Karl Berry  <karl@gnu.org>
41436
41437         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
41438         installed automake until the next release, since changes have been
41439         made.
41440
41441 2002-09-25  Karl Berry  <karl@gnu.org>
41442
41443         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
41444         * lib/getopt*: copy from libc/posix.
41445         * lib/gettext.h: copy from gettext.
41446         * lib/.cppi-disable: add strdup.c, gettext.h.
41447
41448 2002-09-25  Karl Berry  <karl@gnu.org>
41449
41450         * config/srclist.txt: enable gettext.h check.
41451         * config/config.{guess,sub}: update from prep.
41452         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
41453                 from automake 1.6.3.
41454         See srclist*.
41455
41456 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
41457
41458         * regex.c (PATFETCH): Remove the translating fetch.
41459         (PATFETCH_RAW): Rename to PATFETCH.
41460         (set_image_of_range): New fun.
41461         (SET_RANGE_TABLE_WORK_AREA): Use it.
41462         (regex_compile): Don't translate the pattern chars so eagerly.
41463         Only do it when inserting an `exactn' bytecode or when handling
41464         a char-range.
41465         (mutually_exclusive_p): Avoid empty statement.
41466
41467 2002-07-06  Jim Meyering  <meyering@lucent.com>
41468
41469         * m4/README: Don't mention Makefile.am.in.
41470         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
41471
41472 2002-07-01  Jim Meyering  <meyering@lucent.com>
41473
41474         * lib/c-stack.c: Include sys/time.h.
41475         From Volker Borchert.
41476
41477 2002-06-26  Paul Eggert  <eggert@twinsun.com>
41478
41479         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
41480
41481 2002-06-26  Paul Eggert  <eggert@twinsun.com>
41482
41483         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
41484         New macro.  Use it uniformly instead of
41485         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
41486         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
41487         reported by Vin Shelton.
41488
41489 2002-06-22  Paul Eggert  <eggert@twinsun.com>
41490
41491         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
41492         Do not assume SA_SIGINFO behavior.
41493         Bug reported by Jim Meyering on NetBSD 1.5.2.
41494
41495 2002-06-22  Jim Meyering  <meyering@lucent.com>
41496
41497         * m4/c-stack.m4: New file, from diffutils-2.8.2.
41498         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
41499
41500         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
41501         now that configure.ac uses AC_GNU_SOURCE.
41502         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
41503         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
41504
41505         Update to latest tools.  Suggestions from Paul Eggert.
41506         * m4/stdbool.m4: New file, from diffutils-2.8.2.
41507         * m4/gnu-source.m4: Update from diffutils-2.8.2.
41508         * m4/fnmatch.m4: Likewise.
41509         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
41510         to AC_HEADER_STDBOOL
41511
41512 2002-06-22  Jim Meyering  <meyering@lucent.com>
41513
41514         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
41515         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
41516
41517 2002-06-22  Jim Meyering  <meyering@lucent.com>
41518
41519         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
41520
41521         * lib/exitfail.c, exitfail.h: Likewise.
41522         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
41523
41524         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
41525         of fnmatch.h.
41526         (EXTRA_DIST): Add fnmatch_loop.c.
41527         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
41528
41529         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
41530         * lib/fnmatch.c: Update from diffutils-2.8.2.
41531         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
41532         * lib/fnmatch.h: Remove file.
41533
41534 2002-06-21  Jim Meyering  <meyering@lucent.com>
41535
41536         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
41537         * m4/mbrtowc.m4: Likewise.
41538
41539         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
41540         * m4/mbswidth.m4: Reflect name change:
41541         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
41542         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
41543
41544         * m4/lib-link.m4: Update from gettext-0.11.2.
41545         * m4/gettext.m4: Likewise.
41546
41547         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
41548         From Alfred M. Szmidt.
41549
41550 2002-06-18  Paul Eggert  <eggert@twinsun.com>
41551
41552         * lib/file-type.h: Report an error if neither S_ISREG nor
41553         S_IFREG is defined, instead of using a test specific to glibc
41554         2.2.  This should be safe, since POSIX requires S_ISREG and
41555         Unix Version 7 had S_IFREG.  We don't need to check for
41556         <sys/types.h> since we don't use any symbols that it defines.
41557
41558 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
41559
41560         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
41561         $@-t, so that each temporary file name is unique and valid in the first
41562         8 characters, for operation under DOS.
41563
41564 2002-06-15  Paul Eggert  <eggert@twinsun.com>
41565
41566         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
41567
41568 2002-06-15  Jim Meyering  <meyering@lucent.com>
41569
41570         Work even with DJGPP 2.03, which lacks support for symlinks.
41571         From Richard Dawe.
41572         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
41573         is defined.
41574         * lib/lchown.c (S_ISLNK): Likewise.
41575
41576 2002-06-15  Jim Meyering  <meyering@lucent.com>
41577
41578         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
41579         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
41580         have been included before this file.
41581
41582 2002-06-14  Jim Meyering  <meyering@lucent.com>
41583
41584         * lib/file-type.h: Use the version from diffutils-2.8.2.
41585         * lib/file-type.c: Likewise.
41586
41587 2002-06-07  Jim Meyering  <meyering@lucent.com>
41588
41589         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
41590         They're needed at least for NetBSD 1.5.2.
41591         ($statxfs_includes): Include those same headers.
41592         ($statxfs_includes): Include sys/vfs.h if available.
41593         ($statxfs_includes): Likewise for sys/statvfs.h.
41594         Check for the following members in both structs statfs and statvfs:
41595         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
41596
41597 2002-06-01  Jim Meyering  <meyering@lucent.com>
41598
41599         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
41600         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
41601
41602 2002-05-28  Jim Meyering  <meyering@lucent.com>
41603
41604         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
41605         Reported by Volker Borchert.
41606
41607 2002-05-27  Jim Meyering  <meyering@lucent.com>
41608
41609         Fix a problem seen only on nonconforming systems whereby ls.c's
41610         use of localtime, and then of gettimeofday would cause trouble:
41611         the localtime call used to initialize rpl_gettimeofday's save
41612         mechanism would clobber ls's current local time information so
41613         that in any long listing the first file would always be listed
41614         with date 1970-01-01.  Analysis by Volker Borchert.
41615
41616         * lib/gettimeofday.c (localtime): Undefine.
41617         (rpl_localtime): New function.
41618
41619 2002-05-27  Jim Meyering  <meyering@lucent.com>
41620
41621         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
41622         localtime.
41623
41624         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
41625         use the replacement function; it wouldn't resolve at link time.
41626         Reported by Volker Borchert.
41627
41628 2002-05-22  Jim Meyering  <meyering@lucent.com>
41629
41630         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
41631         file-type.h.
41632         * lib/file-type.h: New file.
41633         * lib/file-type.c (file_type): New file/function.  Extracted from
41634         diffutils.
41635
41636 2002-04-30  Jim Meyering  <meyering@lucent.com>
41637
41638         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
41639
41640 2002-04-29  Paul Eggert  <eggert@twinsun.com>
41641
41642         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
41643
41644 2002-04-29  Paul Eggert  <eggert@twinsun.com>
41645
41646         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
41647         Do not check for alloca.h (no longer used) or stdbool.h (was never
41648         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
41649
41650 2002-04-29  Paul Eggert  <eggert@twinsun.com>
41651
41652         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
41653
41654 2002-04-29  Jim Meyering  <meyering@lucent.com>
41655
41656         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
41657         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
41658         Use AC_FUNC_STRNLEN here instead.
41659
41660         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
41661         With autoconf-2.53a, it's part of AC_PROG_CC.
41662
41663 2002-04-28  Paul Eggert  <eggert@twinsun.com>
41664
41665         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
41666         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
41667
41668 2002-04-28  Paul Eggert  <eggert@twinsun.com>
41669
41670         * lib/sig2str.h, lib/sig2str.c: New files.
41671         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
41672
41673 2002-04-28  Paul Eggert  <eggert@twinsun.com>
41674
41675         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
41676         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
41677         of 127, since 64 is the largest conceivable number for ancient
41678         nonstandard hosts.
41679         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
41680
41681 2002-04-28  Jim Meyering  <meyering@lucent.com>
41682
41683         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
41684
41685 2002-04-24  Jim Meyering  <meyering@lucent.com>
41686
41687         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
41688         (jm_PREREQ): Use it.
41689
41690         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
41691         mach/mach.h fcntl.h.
41692         Check for this function: setlocale.
41693
41694 2002-04-24  Jim Meyering  <meyering@lucent.com>
41695
41696         * lib/gettext.h: New file, from Gettext.
41697         * lib/Makefile.am (INCLUDES): Remove -I../intl.
41698         (libfetish_a_SOURCES): Add gettext.h.
41699
41700 2002-04-16  Jim Meyering  <meyering@lucent.com>
41701
41702         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
41703         ut_pid, ut_id, ut_exit.
41704
41705 2002-04-16  Jim Meyering  <meyering@lucent.com>
41706
41707         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
41708         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
41709         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
41710
41711 2002-04-12  Jim Meyering  <meyering@lucent.com>
41712
41713         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
41714         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
41715         existence of the getmntinfo function.  Needed for Darwin 5.3.
41716
41717         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
41718         This is necessary at least on Darwin 5.3.
41719
41720         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
41721         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
41722         strnlen.o in the library, and that makes some versions of ranlib
41723         object.
41724
41725 2002-04-12  Jim Meyering  <meyering@lucent.com>
41726
41727         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
41728
41729 2002-04-09  Jim Meyering  <meyering@lucent.com>
41730
41731         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
41732         to be more precise.  Rather than saying we're checking whether the
41733         function `works', say what we're testing.
41734         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
41735         Reported by Bruno Haible.
41736
41737 2002-03-10  Jim Meyering  <meyering@lucent.com>
41738
41739         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
41740         Suggestion from Santiago Vila.
41741
41742 2002-03-08  Jim Meyering  <meyering@lucent.com>
41743
41744         * lib/rename.c: Mention that this wrapper is needed also on
41745         mips-dec-ultrix4.4 systems.
41746
41747 2002-03-02  Jim Meyering  <meyering@lucent.com>
41748
41749         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
41750         not HAVE_CLOCK_SETTIME.
41751
41752 2002-02-27  Paul Eggert  <eggert@twinsun.com>
41753
41754         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
41755         Check for clock_settime.
41756
41757 2002-02-27  Paul Eggert  <eggert@twinsun.com>
41758
41759         * lib/nanosleep.h: Rename to....
41760         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
41761
41762         * lib/gettime.c: New file.
41763         * lib/settime.c: New file.
41764         * lib/stime.c: Remove.
41765
41766         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
41767         timespec.h.  Remove nanosleep.h.
41768
41769 2002-02-25  Paul Eggert  <eggert@twinsun.com>
41770
41771         * m4/acl.m4: New file.
41772         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
41773         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
41774
41775 2002-02-25  Paul Eggert  <eggert@twinsun.com>
41776
41777         * lib/acl.c, lib/acl.h: New files.
41778         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
41779
41780 2002-02-24  Jim Meyering  <meyering@lucent.com>
41781
41782         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
41783         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
41784         cause trouble.  Reported by Nelson Beebe.
41785
41786 2002-02-23  Paul Eggert  <eggert@twinsun.com>
41787
41788         * lib/path-concat.c (xpath_concat): Reorder code to pacify
41789         compilers that don't know that xalloc_die never returns.
41790
41791 2002-02-20  Jim Meyering  <meyering@lucent.com>
41792
41793         * lib/getdate.c: Regenerate using bison-1.33.
41794
41795 2002-02-17  Jim Meyering  <meyering@lucent.com>
41796
41797         * config/config.guess (main): Don't use `head -1'; it's no longer
41798         portable. Use `sed 1q' instead.
41799
41800 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
41801
41802         * m4/codeset.m4: Upgrade to gettext-0.11.
41803         * m4/gettext.m4: Upgrade to gettext-0.11.
41804         * m4/glibc21.m4: Upgrade to gettext-0.11.
41805         * m4/iconv.m4: Upgrade to gettext-0.11.
41806         * m4/isc-posix.m4: Upgrade to gettext-0.11.
41807         * m4/lcmessage.m4: Upgrade to gettext-0.11.
41808         * m4/lib-ld.m4: New file, from gettext-0.11.
41809         * m4/lib-link.m4: New file, from gettext-0.11.
41810         * m4/lib-prefix.m4: New file, from gettext-0.11.
41811         * m4/progtest.m4: Upgrade to gettext-0.11.
41812
41813 2002-02-15  Paul Eggert  <eggert@twinsun.com>
41814
41815         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
41816         (jm_PREREQ): Use it.
41817
41818 2002-02-15  Paul Eggert  <eggert@twinsun.com>
41819
41820         * lib/posixver.c, lib/posixver.h: New files.
41821         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
41822
41823 2002-02-02  Paul Eggert  <eggert@twinsun.com>
41824             Bruno Haible  <bruno@clisp.org>
41825
41826         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
41827         (fwrite_success_callback): New declaration.
41828         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
41829         print_unicode_char. Call failure callback instead of error.
41830         (fwrite_success_callback): New function.
41831         (exit_failure_callback): New function.
41832         (fallback_failure_callback): New function.
41833         (print_unicode_char): Call unicode_to_mb.
41834
41835 2002-01-26  Jim Meyering  <meyering@lucent.com>
41836
41837         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
41838         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
41839
41840 2002-01-26  Jim Meyering  <meyering@lucent.com>
41841
41842         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
41843
41844 2002-01-22  Paul Eggert  <eggert@twinsun.com>
41845
41846         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
41847
41848 2002-01-22  Jim Meyering  <meyering@lucent.com>
41849
41850         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
41851         Otherwise, some versions of automake would omit the rule that makes
41852         Makefile from Makefile.in.
41853
41854 2002-01-21  Paul Eggert  <eggert@twinsun.com>
41855
41856         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
41857         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
41858         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
41859         (memcoll): Set errno to zero if there is no error.
41860
41861         * lib/quotearg.c (quotearg_buffer_restyled):
41862         Fix bug with quoting buffers containing NUL when backslashing escapes.
41863         This bug was exposed by the other changes in this patch.
41864         (quotearg_n_options): New arg ARGSIZE.
41865         All callers changed.
41866         (quoting_options_from_style): New function.
41867         (quotearg_n_style): Use it.
41868         (quotearg_n_style_mem): New function.
41869
41870         * lib/quotearg.h (quotearg_n_style_mem): New function.
41871
41872 2002-01-19  Jim Meyering  <meyering@lucent.com>
41873
41874         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
41875         Remove useless quotes: DF_PROG="df".
41876         * m4/strnlen.m4: New file.
41877
41878 2002-01-16  Paul Eggert  <eggert@twinsun.com>
41879
41880         * lib/backupfile.c (ISDIGIT): Comment fix.
41881         * lib/getdate.y (ISDIGIT): Likewise.
41882         * lib/posixtm.c (ISDIGIT, year): Likewise.
41883         * lib/strverscmp.c (ISDIGIT): Likewise.
41884         * lib/userspec.c (ISDIGIT): Likewise.
41885
41886 2002-01-16  Jim Meyering  <meyering@lucent.com>
41887
41888         * lib/getdate.y: Add three semicolons, each just before a closing
41889         brace. Bison (as of version 1.31) no longer papers over that mistake.
41890
41891 2002-01-05  Jim Meyering  <meyering@lucent.com>
41892
41893         * lib/version-etc.c (version_etc_copyright): Update copyright year.
41894
41895 2001-12-19  Paul Eggert  <eggert@twinsun.com>
41896
41897         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
41898         not silently exit merely because the output buffer happens to
41899         have nothing pending.
41900
41901 2001-12-18  Paul Eggert  <eggert@twinsun.com>
41902
41903         See the big note in ../ChangeLog.
41904         * lib/human.c (suffixes): Prefer K to k for 1024.
41905         (generate_suffix_backwards): New function.
41906         (human_readable_inexact): Use it.
41907         * lib/xstrtol.c (__xstrtol): If there is no number but there
41908         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
41909         Accept 'K' as well as 'k'.
41910
41911 2001-12-15  Jim Meyering  <meyering@lucent.com>
41912
41913         * lib/regex.h (__restrict_arr): Update from libc.
41914
41915         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
41916         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
41917         (STREQ): Define.
41918
41919 2001-12-14  Jim Meyering  <meyering@lucent.com>
41920
41921         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
41922         Suggestion from Bruno Haible.
41923
41924 2001-12-10  Jim Meyering  <meyering@lucent.com>
41925
41926         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
41927         xrealloc, Instead, include "xalloc.h".
41928         (initbuffer): Don't cast xmalloc return value to char*.
41929         (readline): Reword comment.
41930         Don't cast xrealloc return value to char*
41931         Return NULL, not 0.
41932
41933 2001-12-09  Jim Meyering  <meyering@lucent.com>
41934
41935         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
41936         about `signed and unsigned type in conditional expression'.
41937         * lib/posixtm.c (posix_time_parse): Likewise.
41938
41939         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
41940
41941         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
41942         to avoid a pedantic warning.
41943
41944         * lib/getstr.c: Don't include assert.h.
41945         (getstr): Remove warning-evoking assertions.
41946         Return -1 if offset parameter is out of bounds.
41947         Change the type of a local from int to size_t.
41948
41949         * lib/strftime.c (my_strftime_localtime_r): Include this function
41950         definition in the `#if ! HAVE_TM_GMTOFF' block.
41951
41952         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
41953         Include xalloc.h instead.
41954
41955 2001-12-02  Jim Meyering  <meyering@lucent.com>
41956
41957         * lib/tempname.c: Don't declare getenv, thus reverting the change of
41958         2001-11-18.  It's no longer necessary, now that stdlib.h is always
41959         included.
41960
41961         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
41962         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
41963
41964 2001-11-30  Akim Demaille  <akim@epita.fr>
41965
41966         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
41967         before being defined.
41968
41969 2001-11-27  Paul Eggert  <eggert@twinsun.com>
41970
41971         * lib/quotearg.h (quotearg_n, quotearg_n_style):
41972         First arg is int, not unsigned.
41973         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
41974         (SIZE_MAX, UINT_MAX): New macros.
41975         (quotearg_n_options): Abort if N is negative.
41976         Avoid overflow check on hosts where size_t is 64 bits and int
41977         is 32 bits, as overflow is impossible there.
41978         Fix off-by-one typo that caused unnecessary reallocation.
41979
41980 2001-11-27  Jim Meyering  <meyering@lucent.com>
41981
41982         * lib/tempname.c: Merge with version from libc.
41983         * lib/regex.c: Likewise.
41984
41985         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
41986         systems for which STDC_HEADERS is 0, it was not included, resulting in
41987         a warning about an integer-to-pointer conversion problem with getenv.
41988         Reported by Volker Borchert.
41989
41990 2001-11-26  Jim Meyering  <meyering@lucent.com>
41991
41992         * lib/gtod.h: Remove file.
41993         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
41994         * lib/gettimeofday.c: Don't include gtod.h.
41995         (GTOD_init): Remove function.
41996         (rpl_gettimeofday): Do its job here instead, rather than aborting.
41997         Suggestion from Volker Borchert.
41998
41999 2001-11-23  Jim Meyering  <meyering@lucent.com>
42000
42001         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
42002         it.
42003         * lib/hash.c (struct hash_table): Define it here instead.
42004
42005 2001-11-22  Jim Meyering  <meyering@lucent.com>
42006
42007         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
42008
42009 2001-11-20  Jim Meyering  <meyering@lucent.com>
42010
42011         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
42012         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
42013
42014 2001-11-19  Jim Meyering  <meyering@lucent.com>
42015
42016         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
42017         directory.  Use "conftestXXXXXX" as the template.
42018         Suggestion from Paul Eggert.
42019
42020         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
42021         immediately, so the test doesn't mistakenly hit the max-open-files
42022         limit.
42023
42024 2001-11-18  Paul Eggert  <eggert@twinsun.com>
42025
42026         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
42027         (TEMPORARIES): New macro.
42028         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
42029         removes an artificial limitation (e.g. HP-UX 10.20, where
42030         TMP_MAX is 17576).
42031
42032 2001-11-18  Jim Meyering  <meyering@lucent.com>
42033
42034         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
42035
42036 2001-11-18  Jim Meyering  <meyering@lucent.com>
42037
42038         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
42039         on SunOS 4.
42040
42041         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
42042         files will be created before anything else.
42043
42044 2001-11-17  Paul Eggert  <eggert@twinsun.com>
42045
42046         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
42047         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
42048
42049 2001-11-17  Jim Meyering  <meyering@lucent.com>
42050
42051         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
42052         Prompted by a report from Bob Proulx.
42053
42054         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
42055         Instead, require UTILS_FUNC_MKSTEMP.
42056
42057 2001-11-17  Jim Meyering  <meyering@lucent.com>
42058
42059         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
42060         Now, that's done as part of AC_FUNC_STRTOD.
42061
42062 2001-11-17  Jim Meyering  <meyering@lucent.com>
42063
42064         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
42065         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
42066         rather than group writable.  Patch by Juan F. Codagnone.
42067
42068         * lib/readtokens.c: Remove explicit declarations of xmalloc and
42069         xrealloc, Instead, include "xalloc.h".
42070
42071         * lib/mountlist.c: Include unlocked-io.h after all system headers.
42072         Remove explicit declarations of xmalloc, xrealloc,
42073         and xstrdup.  Instead, include "xalloc.h".
42074
42075         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
42076         unlocked-io.h.
42077         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
42078         Likewise.
42079         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
42080
42081         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
42082         Reported by Padraig Brady.
42083
42084         * lib/mkstemp.c: #undef mkstemp.
42085         Include config.h.
42086         (rpl_mkstemp): Rename from mkstemp.
42087         Protoize.
42088
42089 2001-11-16  Jim Meyering  <meyering@lucent.com>
42090
42091         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
42092         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
42093         determine the amount of total physical memory, use pstat_getstatic.
42094         HPUX-11 doesn't define _SC_PHYS_PAGES.
42095         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
42096         If sysconf couldn't be used to determine the amount of available
42097         physical memory, use both pstat_getstatic and pstat_getdynamic.
42098         Based on a patch from Bob Proulx.
42099
42100 2001-11-10  Jim Meyering  <meyering@lucent.com>
42101
42102         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
42103         (jm_PREREQ): Use it.
42104
42105 2001-11-09  Jim Meyering  <meyering@lucent.com>
42106
42107         * m4/jm-macros.m4: Require autoconf-2.52f.
42108         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
42109         Use these AC_-prefixed names, not the AM_-prefixed ones.
42110
42111         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
42112
42113 2001-11-05  Jim Meyering  <meyering@lucent.com>
42114
42115         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
42116
42117 2001-11-04  Jim Meyering  <meyering@lucent.com>
42118
42119         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
42120         $DEFS.
42121
42122 2001-11-03  Jim Meyering  <meyering@lucent.com>
42123
42124         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
42125         of AC_DEFUN.
42126
42127         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
42128         know the name of the variable in the macro definition.
42129
42130 2001-11-03  Jim Meyering  <meyering@lucent.com>
42131
42132         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
42133         in argmatch_to_argument call.
42134
42135         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
42136         argument.
42137
42138         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
42139         e.g., a fault due to an attempt to free a NULL pointer.
42140
42141 2001-11-01  Jim Meyering  <meyering@lucent.com>
42142
42143         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
42144         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
42145
42146 2001-11-01  Jim Meyering  <meyering@lucent.com>
42147
42148         * lib/dirfd.c, lib/dirfd.h: New files.
42149         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
42150
42151         * lib/hash.c (hash_print) [TESTING]: Clean up.
42152
42153 2001-10-22  Paul Eggert  <eggert@twinsun.com>
42154
42155         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
42156         to avoid a warning if -Wall.
42157
42158 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
42159
42160         * README: New file
42161         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
42162         (per RMS's instructions, this is now the canonical source)
42163         * lgpl/, gpl/: New directories.
42164
42165 2001-10-21  Paul Eggert  <eggert@twinsun.com>
42166
42167         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
42168
42169 2001-10-21  Jim Meyering  <meyering@lucent.com>
42170
42171         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
42172         this code would end up calling gettext even in packages built
42173         with --disable-nls.
42174         * lib/getopt.c (_): Likewise.
42175         * lib/regex.c (_): Likewise.
42176
42177 2001-10-20  Paul Eggert  <eggert@twinsun.com>
42178
42179         * m4/error.m4 (jm_PREREQ_ERROR):
42180         Do not invoke AC_CHECK_FUNCS with strerror_r, as
42181         AC_FUNC_STRERROR_R does that.
42182         Check for strerror declaration.
42183
42184         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
42185         are supposed to have them these days.
42186         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
42187         Merge changes from latest Autoconf CVS.
42188         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
42189         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
42190         POSIX decided to standardize on the int flavor of strerror_r.
42191
42192 2001-10-20  Paul Eggert  <eggert@twinsun.com>
42193
42194         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
42195         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
42196         Use strerror_r that is only a macro, even if it is not a function.
42197         (strerror): Check for HAVE_DECL_STRERROR before declaring.
42198         (private_strerror): Use prototypes, not old-style function definition.
42199         (print_errno_message): New function.
42200         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
42201         char*-flavored one.
42202         (error_tail, error, error_at_line): Use it.
42203
42204 2001-10-11  Jim Meyering  <meyering@lucent.com>
42205
42206         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
42207         and quote_n (1, ... to avoid clobbering a buffer.
42208
42209 2001-10-05  Jim Meyering  <meyering@lucent.com>
42210
42211         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
42212         hash-pjw.h.
42213         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
42214         * lib/hash-pjw.h: New file.
42215
42216 2001-09-30  Jim Meyering  <meyering@lucent.com>
42217
42218         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
42219         `struct fsstat' has the `f_fstypename' member.
42220         Use that to define FS_TYPE, which is now used to make
42221         the getfsstat link test tighter.
42222
42223 2001-09-30  Jim Meyering  <meyering@lucent.com>
42224
42225         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
42226         Include <sys/ucred.h>, for Apple Darwin.
42227         Include sys/mount.h and sys/fs_types.h only if available.
42228         (FS_TYPE): Define.
42229         (read_filesystem_list): Use FS_TYPE.
42230
42231 2001-09-29  Paul Eggert  <eggert@twinsun.com>
42232
42233         * lib/exclude.c (excluded_filename): 0 -> false, since it's
42234         a boolean context.
42235
42236 2001-09-29  Jim Meyering  <meyering@lucent.com>
42237
42238         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
42239         [one-argument getmntent function]): Include stdio.h before mntent.h.
42240         SunOS 4.1.x needs it for the declaration of `FILE'.
42241         Patch by Volker Borchert.
42242
42243         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
42244         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
42245         sys/fs_types.h, and make the link-test for getfsstat guard #include
42246         directives with appropriate #if HAVE_*_H tests so that we can
42247         detect getfsstat on Apple Darwin1.3.7 systems.
42248         Reported by Nelson Beebe.
42249         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
42250
42251 2001-09-28  Paul Eggert  <eggert@twinsun.com>
42252
42253         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
42254         #defines strtoimax.  Also treat the other strto* functions
42255         like strtoimax.
42256
42257         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
42258         Check for strtoul and strtoumax,
42259         as those declarations are made even in the signed case.
42260         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
42261         Likewise, for strtol and strtoimax.
42262
42263 2001-09-28  Paul Eggert  <eggert@twinsun.com>
42264
42265         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
42266         #defines strtoimax.  Also treat the other strto* functions
42267         like strtoimax.
42268
42269         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
42270         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
42271         (strtoimax, strtoumax): Do not declare if already defined as a macro.
42272
42273 2001-09-26  Jim Meyering  <meyering@lucent.com>
42274
42275         Most macros in unlocked-io.h had the wrong number of arguments.
42276         * lib/gen-uio: New script.
42277         (USE_UNLOCKED_IO): Define to 1 if not already defined.
42278         * lib/unlocked-io.hin: Remove file.
42279         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
42280         rather than trying to embed it here.
42281         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
42282         Reported by Padraig Brady.
42283
42284 2001-09-25  Volker Borchert  <bt@teknon.de>
42285
42286         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
42287         `result'.
42288
42289 2001-09-24  Jim Meyering  <meyering@lucent.com>
42290
42291         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
42292
42293 2001-09-23  Jim Meyering  <meyering@lucent.com>
42294
42295         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
42296         instead of the mere test for existence of mntent.h.  The latter
42297         would get a false-positive on AIX 3.4 systems.
42298         In the outer getmntent if-block, don't die if neither of the getmntent
42299         tests succeeds.  Instead, just fall through and continue with the
42300         remaining tests.
42301
42302 2001-09-23  Jim Meyering  <meyering@lucent.com>
42303
42304         * lib/mountlist.c: Remove useless parentheses in #if directives.
42305         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
42306         the deprecated MOUNTED symbol is no longer defined in mntent.h.
42307
42308 2001-09-22  Jim Meyering  <meyering@lucent.com>
42309
42310         * m4/gettext.m4: New file.  From gettext.
42311         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
42312         * m4/progtest.m4: Likewise
42313         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
42314         * m4/glibc21.m4: Likewise.
42315
42316         * m4/libintl.m4: Remove.  No longer used.
42317
42318 2001-09-22  Jim Meyering  <meyering@lucent.com>
42319
42320         * lib/localcharset.c: Update from latest gettext.
42321         * lib/config.charset: Likewise.
42322
42323 2001-09-20  Jim Meyering  <meyering@lucent.com>
42324
42325         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
42326         strtoimax.
42327         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
42328         strtoumax.
42329
42330 2001-09-20  Jim Meyering  <meyering@lucent.com>
42331
42332         * lib/xstrtol.c (strtoimax): Guard declaration with
42333         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
42334         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
42335         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
42336         (strtoumax): Likewise, for completeness (it wasn't necessary).
42337
42338 2001-09-17  Paul Eggert  <eggert@twinsun.com>
42339
42340         * lib/strtoimax.c (HAVE_LONG_LONG):
42341         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
42342         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
42343         to work around bug in IBM C compiler.
42344
42345 2001-09-17  Jim Meyering  <meyering@lucent.com>
42346
42347         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
42348         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
42349         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
42350         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
42351         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
42352         whenever the right hand side need not be expanded by the shell.
42353
42354 2001-09-16  Paul Eggert  <eggert@twinsun.com>
42355
42356         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
42357         library.  It's not correct, as some older glibcs are buggy.
42358         fnmatch wasn't fixed until glibc 2.2.
42359
42360         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
42361         special shell magic here.
42362
42363 2001-09-16  Jim Meyering  <meyering@lucent.com>
42364
42365         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
42366         * m4/jm-macros.m4: Require it.
42367
42368 2001-09-16  Jim Meyering  <meyering@lucent.com>
42369
42370         * lib/mkdir.c: New file.
42371
42372 2001-09-15  Jim Meyering  <meyering@lucent.com>
42373
42374         * m4/jm-macros.m4: Check for help2man.
42375
42376 2001-09-11  Jim Meyering  <meyering@lucent.com>
42377
42378         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
42379         The body, by Paul Eggert, was moved here from configure.in.
42380         * m4/jm-macros.m4: Require UTILS_HOST_OS.
42381
42382 2001-09-04  Paul Eggert  <eggert@twinsun.com>
42383
42384         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
42385         (jm_PREREQ): Use it.
42386
42387 2001-09-04  Paul Eggert  <eggert@twinsun.com>
42388
42389         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
42390         Use ssize_t, not int, to store result of readlink.
42391         Check for ssize_t overflow as well as size_t overflow,
42392         as POSIX says the result of readlink is implementation-defined
42393         when ssize_t overflows.
42394         Remove unnecessary cast to char*.
42395         Use free+malloc instead of realloc, as the storage doesn't need
42396         to be preserved and it's clearer and can be more efficient that way.
42397         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
42398         * lib/xreadlink.h (xreadlink): Update prototype.
42399
42400 2001-09-04  Paul Eggert  <eggert@twinsun.com>
42401
42402         * lib/xgetcwd.c: Revert some of the previous change; intead,
42403         fix the HAVE_GETCWD_NULL code to behave more like the
42404         !HAVE_GETCWD_NULL code used to.
42405
42406         Include "xalloc.h".
42407         (xgetcwd): Do not return NULL when memory is exhausted; instead,
42408         invoke xalloc_die.
42409
42410 2001-09-03  Paul Eggert  <eggert@twinsun.com>
42411
42412         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
42413         sys/param.h, as pathmax.h includes them.
42414
42415 2001-09-03  Paul Eggert  <eggert@twinsun.com>
42416
42417         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
42418         (jm_PREREQ_XGETCWD): New macro.
42419
42420         * m4/getcwd.m4: New file.
42421
42422 2001-09-03  Paul Eggert  <eggert@twinsun.com>
42423
42424         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
42425         like the HAVE_GETCWD_NULL code.
42426         Include pathmax.h if not HAVE_GETCWD.
42427         Do not include xalloc.h.
42428         (INITIAL_BUFFER_SIZE): New symbol.
42429         Do not use xmalloc / xrealloc, since the caller is responsible for
42430         handling errors.  Preserve errno around `free' during failure.
42431         Do not overrun buffer when using getwd.
42432
42433 2001-09-03  Paul Eggert  <eggert@twinsun.com>
42434
42435         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
42436         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
42437         getcwd (NULL, 0).
42438
42439 2001-09-03  Paul Eggert  <eggert@twinsun.com>
42440
42441         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
42442         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
42443         spotted by Jim Meyering.
42444
42445 2001-09-03  Jim Meyering  <meyering@lucent.com>
42446
42447         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
42448         failure.
42449
42450 2001-09-02  Jim Meyering  <meyering@lucent.com>
42451
42452         * lib/error.c: Update from GNU libc.
42453
42454 2001-09-01  Jim Meyering  <meyering@lucent.com>
42455
42456         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
42457         Used by df.
42458
42459 2001-09-01  Jim Meyering  <meyering@lucent.com>
42460
42461         * lib/xreadlink.c: New file.
42462         * lib/xreadlink.h: New file.
42463         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
42464         xreadlink.h.
42465
42466         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
42467         doesn't conflict with sparc Solaris 7's definition in
42468         /usr/include/sys/int_types.h.
42469
42470         * lib/exclude.c: Use `""', not `<>' to #include non-system header
42471         files.
42472         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
42473         and strncasecmp as r-values.  Unixware didn't have declarations.
42474
42475 2001-08-31  Paul Eggert  <eggert@twinsun.com>
42476
42477         * lib/xstrtol.h: Add copyright notice.
42478         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
42479         LONGINT_INVALID_SUFFIX_CHAR.
42480
42481 2001-08-31  Paul Eggert  <eggert@twinsun.com>
42482
42483         * lib/xstrtol.c (strtoimax): New decl.
42484
42485 2001-08-31  Paul Eggert  <eggert@twinsun.com>
42486
42487         * lib/xgetcwd.c: Don't include pathmax.h.
42488         Include stdlib.h and unistd.h if available.
42489         Include xalloc.h.
42490         (xmalloc, xstrdup, free): Remove decls.
42491         (xgetcwd): Don't assume sizes fit in unsigned.
42492         Check for overflow when computing sizes.
42493         Simplify reallocation code.
42494
42495 2001-08-31  Paul Eggert  <eggert@twinsun.com>
42496
42497         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
42498         a directory's st_size can have an arbitrary value, so the old
42499         usage could waste an arbitrary amount of memory.  All uses
42500         changed.
42501         * lib/savedir.h: Update prototype.
42502
42503 2001-08-31  Paul Eggert  <eggert@twinsun.com>
42504
42505         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
42506
42507         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
42508         old strtoimax.c.
42509
42510         Also, make the following further changes to make this file's
42511         configuration more similar to that of strtol.c:
42512         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
42513         (strtoumax, uintmax_t, strtoull, strtol): Remove.
42514         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
42515         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
42516         changed to signed values.
42517
42518         And make the following changes as well:
42519         Fix copyright notice, as 1999 was missing.
42520         (verify): New macro.
42521         (strtoimax): Check sizes at compile-time, not run-time.
42522         Prefer strtol to strtoll if both work.
42523         (main): Remove; it was not that useful and was a pain to maintain.
42524
42525         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
42526
42527 2001-08-31  Jim Meyering  <meyering@lucent.com>
42528
42529         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
42530         Use an initial, malloc'd, buffer of length 128 rather than
42531         a statically allocated one of length 1024.
42532
42533 2001-08-30  Paul Eggert  <eggert@twinsun.com>
42534
42535         Simplify code, partly by assuming autoconf 2.52 semantics.
42536
42537         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
42538
42539         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
42540         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
42541         All uses removed.
42542         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
42543         Move AC_REQUIRE to next-to-top level, to avoid confusion.
42544         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
42545         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
42546         jm_AC_HEADER_INTTYPES_H.
42547         * m4/jm-macros.m4 (jm_MACROS): Likewise.
42548
42549         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
42550
42551         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
42552         Quote first arg of AC_DEFUN.
42553         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
42554         since they are needed to parse the include file even if we need
42555         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
42556         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
42557         but with opposite signedness.
42558
42559 2001-08-30  Paul Eggert  <eggert@twinsun.com>
42560
42561         Merge 'exclude' changes from tar 1.13.22.
42562         This fixes one or two unlikely storage allocation overflow bugs,
42563         but doesn't change user-visible behavior otherwise.
42564
42565 2001-08-30  Paul Eggert  <eggert@twinsun.com>
42566
42567         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
42568         (jm_PREREQ_EXCLUDE): New macro.
42569
42570 2001-08-30  Paul Eggert  <eggert@twinsun.com>
42571
42572         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
42573         tm to be declared.
42574
42575 2001-08-30  Paul Eggert  <eggert@twinsun.com>
42576
42577         * lib/hash.c: Remove '2001' from copyright notice.
42578
42579 2001-08-30  Paul Eggert  <eggert@twinsun.com>
42580
42581         * lib/full-write.h: New file.
42582         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
42583         * lib/full-write.c: Correct credits, as cccp.c no longer
42584         exists and anyway it was so heavily changed from the old cccp
42585         code as to be unrecognizable.  Include full-write.h.
42586         (full_write) Return size_t, with short writes meaning failure.
42587         All callers changed.  This fixes a bug with large buffers
42588         on 64-bit hosts.
42589         * lib/utime.c: Include full-write.h.
42590
42591 2001-08-30  Paul Eggert  <eggert@twinsun.com>
42592
42593         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
42594         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
42595         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
42596         Include if available.
42597         (<xalloc.h>): Include
42598         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
42599         (verify): New macro.  Use it to verify that EXCLUDE macros do not
42600         collide with FNM macros.
42601         (struct patopts): New struct.
42602         (struct exclude): Use it, as exclude patterns now come with options.
42603         (new_exclude): Support above changes.
42604         (new_exclude, add_exclude_file):
42605         Initial size must now be a power of two to simplify overflow checking.
42606         (free_exclude, fnmatch_no_wildcards): New function.
42607         (excluded_filename): No longer requires options arg, as the options
42608         are determined by add_exclude.  Now returns bool, not int.
42609         (excluded_filename, add_exclude):
42610         Add support for the fancy new exclusion options.
42611         (add_exclude, add_exclude_file): Now takes int options arg.
42612         Check for arithmetic overflow when computing sizes.
42613         (add_exclude_file): xrealloc might modify errno, so don't
42614         realloc until after errno might be used.
42615
42616         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
42617         New macros.
42618         (free_exclude): New decl.
42619         (add_exclude, add_exclude_file): Now takes int options arg.
42620         (excluded_filename): No longer requires options arg, as the options
42621         are determined by add_exclude.  Now returns bool, not int.
42622
42623 2001-08-30  Paul Eggert  <eggert@twinsun.com>
42624
42625         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
42626
42627 2001-08-27  Jim Meyering  <meyering@lucent.com>
42628
42629         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
42630
42631         * lib/version-etc.c (N_): Remove definition.
42632         Revert most of last change.
42633         Instead, simply don't mark the `Copyright...' string for translation.
42634         Based on advice from Paul Eggert.
42635
42636         * lib/strtoxmax.c: Tweak comment.
42637
42638 2001-08-26  Jim Meyering  <meyering@lucent.com>
42639
42640         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
42641
42642         * m4/xstrtoimax.m4: New file.
42643         * m4/xstrtoumax.m4: Add comments explaining why we
42644         AC_REPLACE_FUNCS(strtol).
42645
42646 2001-08-26  Jim Meyering  <meyering@lucent.com>
42647
42648         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
42649         of copyright with `%s' so translators don't get an untranslated
42650         message in 2002.
42651         (COPYRIGHT_YEAR): Define.
42652         (version_etc): Use fprintf rather than fputs.
42653         Suggestion from Ulrich Drepper.
42654
42655         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
42656
42657         * lib/strtoll.c: New file, from GNU libc.
42658         * lib/xstrtoimax.c: New file.
42659
42660         * lib/xstrtol.h: Add xstrtoimax.
42661         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
42662         * lib/strtoimax.c: New file.  Likewise, but first define
42663         STRTOUXMAX_SIGNED.
42664
42665         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
42666         ...
42667         * lib/strtoxmax.c: ... then renamed to this.
42668
42669 2001-08-18  Paul Eggert  <eggert@twinsun.com>
42670
42671         * m4/inttypes.m4: Add AC_PREREQ(2.13).
42672         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
42673         (jm_AC_TYPE_INTMAX_T): New macro.
42674         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
42675
42676         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
42677
42678         * m4/longlong.m4: Renamed from ulonglong.m4.
42679         * m4/inttypes.m4: Renamed from inttypes_h.m4.
42680         * m4/uintmax_t.m4: Removed.
42681
42682 2001-08-13  Paul Eggert  <eggert@twinsun.com>
42683
42684         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
42685         Port to Solaris 8, where 'sed' requires a space after the 'r'
42686         command, and where sh dislikes "$/".  Clean up the spacing a bit.
42687         Redirect output to $tmp just once.
42688
42689 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
42690
42691         * lib/addext.c (<errno.h>): Include.
42692         (errno): Declare if not defined.
42693         (addext): Work correctly when pathconf returns -1 and leaves
42694         errno alone because there is no limit.  Also, work even if
42695         pathconf returns a value greater than SIZE_MAX.
42696
42697 2001-08-12  Jim Meyering  <meyering@lucent.com>
42698
42699         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
42700         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
42701         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
42702         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
42703         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
42704         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
42705         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
42706         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
42707         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
42708         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
42709         utime.m4, utimes.m4, xstrtoumax.m4:
42710         Quote the first argument in each use of AC_DEFUN.
42711
42712 2001-08-12  Jim Meyering  <meyering@lucent.com>
42713
42714         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
42715         Simply `return getcwd (NULL, 0);'.
42716         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
42717         Use 1300 as initial value for length, not PATH_MAX.
42718
42719         * lib/pathmax.h: Clean up cpp syntax.
42720
42721 2001-08-12  Jim Meyering  <meyering@lucent.com>
42722
42723         * lib/gettimeofday.c: New file.
42724         * lib/gtod.h: New file.
42725         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
42726
42727 2001-08-05  Jim Meyering  <meyering@lucent.com>
42728
42729         * m4/jm-macros.m4: Require autoconf-2.52.
42730
42731 2001-08-04  Jim Meyering  <meyering@lucent.com>
42732
42733         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
42734         stmt, to get in sync with glibc.
42735
42736 2001-08-03  Paul Eggert  <eggert@twinsun.com>
42737
42738         The following changes are from gettext 0.10.39 as maintained by
42739         Bruno Haible.
42740
42741         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
42742         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
42743         with inverted sense.  All uses changed.
42744
42745         * lib/mbswidth.c: Don't include <limits.h>.
42746         Include <stdlib.h> and <string.h> unconditionally.
42747         (iswcntrl, mbsinit, ISCNTRL): New macros.
42748         (mbsnwidth): Use K&R style function declarations.
42749         Don't bother checking for MB_LEN_MAX == 1, since the compiler
42750         can optimize it when MB_CUR_MAX == 1.
42751         The width of control characters is zero, not 1.
42752
42753 2001-08-03  Paul Eggert  <eggert@twinsun.com>
42754
42755         The following changes are from gettext 0.10.39 as maintained by
42756         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
42757
42758         * m4/codeset.m4: Upgrade to serial AM1.
42759         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
42760         all uses changed.  Quote first arg of AC_DEFUN.
42761         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
42762
42763         * m4/iconv.m4: Upgrade to serial AM2.
42764         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
42765         Add --with-libconv-prefix.
42766         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
42767         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
42768         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
42769         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
42770         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
42771
42772         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
42773         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
42774         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
42775         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
42776         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
42777         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
42778         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
42779         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
42780         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
42781
42782         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
42783         string.h any more.
42784
42785         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
42786         not the default value.
42787
42788         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
42789         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
42790         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
42791         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
42792         Also check for iswcntrl, used for wcwidth fallback.
42793         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
42794         to Autoconf 2.13.
42795
42796 2001-08-03  Jim Meyering  <meyering@lucent.com>
42797
42798         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
42799         as it was in the original.  Reported by Paul Eggert.
42800
42801 2001-07-16  Jim Meyering  <meyering@lucent.com>
42802
42803         * m4/gettimeofday.m4: New file.
42804         Prompted by a report from Bernhard Baehr.
42805
42806 2001-07-15  Jim Meyering  <meyering@lucent.com>
42807
42808         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
42809         stuff. Now it's in ../Makefile.cfg.
42810
42811 2001-07-15  Jim Meyering  <meyering@lucent.com>
42812
42813         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
42814         (BUILT_SOURCES): Add unlocked-io.h.
42815         (io_functions): Define.
42816         (unlocked-io.h): New rule.
42817         (DISTCLEANFILES): Add unlocked-io.h.
42818         (all-local): Depend on unlocked-io.h, to ensure it is created.
42819
42820         * lib/unlocked-io.hin: New file
42821
42822         * lib/regex.c: Update from glibc.
42823
42824 2001-07-05  Jim Meyering  <meyering@lucent.com>
42825
42826         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
42827         recommendation.
42828         (libfetish_a_SOURCES): Put all .h files here instead.
42829         Remove a thus-exposed (better checks in automake) duplicate and
42830         two unnecessary .h files.
42831
42832 2001-07-04  Jim Meyering  <meyering@lucent.com>
42833
42834         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
42835         that generates jm-glibc-io.m4 so that it doesn't trigger any make
42836         distcheck failure.
42837
42838 2001-07-02  Jim Meyering  <meyering@lucent.com>
42839
42840         The following changes were prompted by suggestions from Bruno Haible.
42841
42842         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
42843         is now generated.
42844         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
42845         definition of EXTRA_DIST.
42846         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
42847         ensure that the generated file is created/updated whenever the list
42848         of $(unlocked_functions) is changed.
42849         (jm-glibc-io.m4): New rule.
42850         (unlocked-io.h): New rule -- currently unused.
42851
42852 2001-06-24  Jim Meyering  <meyering@lucent.com>
42853
42854         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
42855         unmatched right bracket, rather than kludging it with an extra,
42856         falsely-matching quote in a comment.  Patch by Akim Demaille.
42857
42858 2001-06-11  Jim Meyering  <meyering@lucent.com>
42859
42860         * lib/regex.c: Update from GNU libc.
42861
42862 2001-05-27  Jim Meyering  <meyering@lucent.com>
42863
42864         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
42865         Check for ut_type in struct utmp.
42866
42867 2001-05-27  Jim Meyering  <meyering@lucent.com>
42868
42869         * lib/readutmp.h (UT_TYPE): Define.
42870
42871 2001-05-24  Jim Meyering  <meyering@lucent.com>
42872
42873         * lib/argmatch.c: Include "quote.h".
42874         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
42875         quote function.  Reported by Göran Uddeborg.
42876
42877 2001-05-22  Jim Meyering  <meyering@lucent.com>
42878
42879         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
42880         now that we use the package-supplied version unconditionally.
42881         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
42882
42883 2001-05-21  Jim Meyering  <meyering@lucent.com>
42884
42885         * m4/regex.m4: Change a couple backticks to single quotes to avoid
42886         shell syntax errors.
42887
42888 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
42889
42890         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
42891
42892 2001-05-20  Paul Eggert  <eggert@twinsun.com>
42893
42894         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
42895         Don't bother to check library strftime, since
42896         we'll be using our own my_strftime function anyway.
42897         Define my_strftime instead of strftime.
42898
42899 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
42900
42901         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
42902         which is not yet declared.
42903
42904 2001-05-15  Jim Meyering  <meyering@lucent.com>
42905
42906         * m4/regex.m4: Use proper quoting so brackets appear in the test
42907         program.
42908         Reported by, and with help from, Bruno Haible.
42909
42910 2001-05-13  Jim Meyering  <meyering@lucent.com>
42911
42912         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
42913         undefined.
42914
42915 2001-05-11  Paul Eggert  <eggert@twinsun.com>
42916
42917         dirname code cleanup.  base_name now behaves more compatibly
42918         with POSIX basename when given file names that have trailing
42919         slashes, and similarly for dir_name.  Add new primitives
42920         base_len and dir_len.  Put the directory-name-related decls
42921         into dirname.h.
42922
42923         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
42924         * lib/backupfile.c (base_name): Likewise.
42925         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
42926         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
42927         * lib/makepath.c (strip_trailing_slashes): Likewise.
42928         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
42929         ISSLASH): Likewise.
42930         * lib/rename.c (strip_trailing_slashes): Likewise.
42931         * lib/same.c (base_name): Likewise.
42932         * lib/stripslash.c (ISSLASH): Likewise.
42933
42934         * lib/addext.c: Include <dirname.h> after size_t is defined.
42935         * lib/backupfile.c: Likewise.
42936
42937         * lib/addext.c (addext): Use base_len to trim redundant
42938         trailing slashes instead of doing it ourselves.
42939         But do not trim the last slash if it is not redundant.
42940
42941         * lib/backupfile.c (find_backup_file_name,
42942         max_backup_version): Use base_len instead of rolling it ourselves.
42943         Handle the case of "" and (on DOS) "C:" correctly.
42944
42945         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
42946         needed. Include <string.h>, <dirname.h>.
42947         (base_name): Allow file names ending in slashes, other than names
42948         that are all slashes.  In this case, return the basename followed
42949         by the slashes.  This is more general, and can be used in places
42950         where the original base_name purposely had an assertion failure.
42951         (base_len): New function.
42952
42953         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
42954         Do not include <assert.h>; no longer needed.
42955         Include xalloc.h.
42956         (memrchr): Remove decl.
42957         (dir_name_r): Remove.
42958         (dir_len): Renamed from dirlen.  All callers changed.
42959         Rewrite in terms of base_name, for simplicity and consistency.
42960         (dir_name): Never return NULL.  All callers changed.
42961         Do not include <stdlib.h> in test program; no longer needed.
42962         return 0; is fine for test program.
42963
42964         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
42965         New macros.
42966         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
42967
42968         * lib/path-concat.c (path_concat): Use base_len to compute
42969         base length, not strlen; this means we cannot rely on memcpy
42970         to null-terminate.
42971
42972         * lib/same.c (STREQ): Remove.
42973         (same_name): Handle the case where the basename ends in trailing '/'.
42974
42975         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
42976         a slash was stripped.  Do not strip the last slash after a
42977         file system prefix.
42978
42979 2001-05-11  Paul Eggert  <eggert@twinsun.com>
42980
42981         * lib/Makefile.am (libfetish_a_SOURCES):
42982         Add strftime.c, since we now compile it on all hosts.
42983
42984         * lib/strftime.c (my_strftime):
42985         Define to nstrftime if emacs, but only if my_strftime is not defined.
42986         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
42987         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
42988         Add one more extra argument: a nanoseconds value.
42989         All uses changed.
42990         (ns): New macro.
42991         (my_strftime function): Add %N format.
42992         (emacs_strftimeu): Renamed from emacs_strftime,
42993         with extra ut argument.
42994
42995 2001-05-09  Paul Eggert  <eggert@twinsun.com>
42996
42997         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
42998
42999 2001-04-21  Jim Meyering  <meyering@lucent.com>
43000
43001         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
43002         doesn't interfere.
43003
43004 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
43005
43006         * m4/ftruncate.m4: Check for chsize.
43007         Link with ftruncate.o unconditionally if ftruncate is missing.
43008         This was required when cross-compiling to i586-mingw32msvc.
43009
43010 2001-04-08  Jim Meyering  <meyering@lucent.com>
43011
43012         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
43013         recomputed; that's necessary when the offset spans a DST transition.
43014         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
43015
43016 2001-04-02  Jim Meyering  <meyering@lucent.com>
43017
43018         * lib/regex.h, regex.c: Update from GNU libc.
43019
43020 2001-03-24  Jim Meyering  <meyering@lucent.com>
43021
43022         * m4/jm-macros.m4: Require autoconf-2.49d.
43023
43024 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
43025
43026         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
43027
43028 2001-03-19  Paul Eggert  <eggert@twinsun.com>
43029
43030         * lib/version-etc.c (version_etc_copyright): Update to 2001.
43031
43032 2001-03-17  Jim Meyering  <meyering@lucent.com>
43033
43034         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
43035         now that the version in autoconf is equivalent.
43036         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
43037
43038         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
43039         Suggestion from Akim Demaille.
43040
43041         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
43042         (jm_PREREQ_TEMPNAME): New function.
43043
43044 2001-03-16  Paul Eggert  <eggert@twinsun.com>
43045
43046         * lib/tempname.c (uint64_t): Define to uintmax_t if
43047         not defined, and if UINT64_MAX is not defined.
43048         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
43049         Reported by John David Anglin.
43050
43051 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
43052
43053         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
43054         resolve alias if codeset is empty.
43055         * lib/config.charset (BeOS): Use wildcard syntax.
43056
43057 2001-03-13  Jim Meyering  <meyering@lucent.com>
43058
43059         * lib/path-concat.c (path_concat)
43060         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
43061         concatenating e.g., `C:' and `foo'.
43062         From Bruno Haible.
43063
43064 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
43065
43066         * lib/localcharset.c (locale_charset): Don't use
43067         setlocale(LC_CTYPE,NULL). Don't return NULL.
43068         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
43069
43070 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
43071
43072         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
43073         support for DOS/DJGPP.
43074
43075 2001-03-01  Paul Eggert  <eggert@twinsun.com>
43076
43077         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
43078         lacks mkstemp.  Compile our own tempname.c if we compile our own
43079         mkstemp.c, as mkstemp relies on tempname.
43080
43081 2001-03-01  Jim Meyering  <meyering@lucent.com>
43082
43083         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
43084         AH_VERBATIM really does output its argument verbatim.
43085
43086 2001-02-28  Paul Eggert  <eggert@twinsun.com>
43087
43088         * lib/Makefile.am (libfetish_a_SOURCES):
43089         Add dup-safer.c, fopen-safer.c.
43090         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
43091
43092         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
43093         * lib/unistd-safer.h: New files.
43094
43095 2001-02-25  Paul Eggert  <eggert@twinsun.com>
43096
43097         The mkstemp replacement is taken from glibc 2.2.2, with some
43098         portability fixes for use outside glibc, as follows:
43099
43100         * lib/tempname.c (struct_stat64): New macro.
43101         (direxists, __gen_tempname): Use it.
43102         This avoids a portability problem with Solaris 8.
43103
43104         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
43105         (<stddef.h>, <stdint.h>, <string.h>):
43106         Include only if STDC_HEADERS || _LIBC.
43107         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
43108         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
43109         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
43110         (__set_errno): Define this macro if <errno.h> doesn't.
43111         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
43112         Define these macros if <stdio.h> doesn't.
43113         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
43114         Define these macros if <sys/stat.h>
43115         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
43116         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
43117         __xstat64): Define if not _LIBC.
43118         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
43119         (__gen_tempname): Invoke gettimeofday only if
43120         HAVE_GETTIMEOFDAY || _LIBC;
43121         otherwise, fall back on plain "time".
43122         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
43123
43124         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
43125
43126         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
43127
43128 2001-02-18  Paul Eggert  <eggert@twinsun.com>
43129
43130         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
43131
43132 2001-02-17  Paul Eggert  <eggert@twinsun.com>
43133
43134         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
43135         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
43136         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
43137         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
43138
43139 2001-02-17  Paul Eggert  <eggert@twinsun.com>
43140
43141         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
43142         Remove workaround macros for hosts that have mbrtowc but not
43143         mbstate_t, as we now insist on proper declarations for both
43144         before using mbrtowc.
43145
43146 2001-02-17  Jim Meyering  <meyering@lucent.com>
43147
43148         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
43149         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
43150         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
43151         UnixWare 7.1.1.
43152
43153         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
43154         rather than AC_CACHE_VAL.
43155
43156 2001-02-17  Jim Meyering  <meyering@lucent.com>
43157
43158         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
43159         around included file name.
43160
43161         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
43162
43163         * lib/strftime.c: Update from GNU libc (the only changes were to
43164         comments).
43165
43166 2001-02-17  Jim Meyering  <meyering@lucent.com>
43167
43168         * lib/regex.c: Update from libc.
43169
43170 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
43171
43172         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
43173         clash.
43174
43175 2001-02-16  Paul Eggert  <eggert@twinsun.com>
43176
43177         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
43178         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
43179         Reported by Mark Hounschell via Paul Eggert.
43180
43181 2001-02-07  Jim Meyering  <meyering@lucent.com>
43182
43183         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
43184
43185 2001-02-05  Jim Meyering  <meyering@lucent.com>
43186
43187         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
43188         it includes the patch required for `large file' support with at least
43189         HP-UX's 10.20 /bin/cc.
43190
43191 2001-02-03  Jim Meyering  <meyering@lucent.com>
43192
43193         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
43194         AS_IF, now that it works once again (mysteriously).
43195         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
43196
43197 2001-01-30  Jim Meyering  <meyering@lucent.com>
43198
43199         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
43200         * m4/chown.m4: Rename conftestchown to conftest.chown.
43201         * m4/rename.m4: s/conftestdir/conftest.d1/ and
43202         s/conftestdir2/conftest.d2/.
43203         * m4/utimes.m4: s/conftestdata/conftest.data/
43204         Inspired by Pavel Roskin's change in autoconf.
43205
43206 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
43207
43208         * lib/config.charset: Update for FreeBSD 4.2.
43209
43210 2001-01-27  Jim Meyering  <meyering@lucent.com>
43211
43212         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
43213         a use of AS_IF.
43214         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
43215
43216 2001-01-26  Jim Meyering  <meyering@lucent.com>
43217
43218         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
43219         quotearg.c includes it.
43220
43221 2001-01-26  Jim Meyering  <meyering@lucent.com>
43222
43223         * lib/quotearg.c: Include stddef.h.
43224         * lib/quote.c: Include stddef.h.
43225         Reported by Axel Kittenberger.
43226
43227         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
43228         line in double quotes so that it evokes a better diagnostic.
43229         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
43230         Reported by Axel Kittenberger.
43231
43232 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
43233
43234         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
43235         as if it was a `charset'.
43236
43237 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
43238
43239         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
43240         has const.
43241
43242 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
43243
43244         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
43245         to avoid a warning.  Add back 'const' to inptr.
43246
43247 2001-01-20  Jim Meyering  <meyering@lucent.com>
43248
43249         Be sure that headers are checked before used in code compiled
43250         for the type checks.
43251         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
43252         In place of that, invoke jm_CHECK_ALL_TYPES.
43253         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
43254         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
43255         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
43256         The check for ssize_t was mistakenly run before the test for unistd.h.
43257
43258         The configure-time check for stdbool.h was missing.
43259         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
43260         (jm_PREREQ_HASH): New function.
43261
43262 2001-01-17  Jim Meyering  <meyering@lucent.com>
43263
43264         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
43265         for autoconf-2.49c.
43266         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
43267
43268 2001-01-16  Jim Meyering  <meyering@lucent.com>
43269
43270         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
43271         From Bruno Haible.
43272
43273 2001-01-14  Jim Meyering  <meyering@lucent.com>
43274
43275         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
43276         foo and bar.  Create conftestdir/ in the script, not in the C code.
43277         Remove directories in the script, not in the C code.
43278         Remove conftestdir{,2} before trying to create the directory.
43279         Make the entire configure script fail if the mkdir fails.
43280
43281 2001-01-14  Jim Meyering  <meyering@lucent.com>
43282
43283         * lib/rename.c: New file.  From Volker Borchert.
43284         Include stdlib.h, string.h or strings.h, and xalloc.h.
43285         Use strip_trailing_slashes rather than open-coding it.
43286
43287 2001-01-03  Paul Eggert  <eggert@twinsun.com>
43288
43289         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
43290
43291 2001-01-03  Jim Meyering  <meyering@lucent.com>
43292
43293         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
43294         of local `inptr' to avoid warning with some system declarations of
43295         iconv.
43296
43297 2001-01-02  Volker Borchert  <bt@teknon.de>
43298
43299         * m4/rename.m4: New file.
43300         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
43301
43302 2001-01-01  Jim Meyering  <meyering@lucent.com>
43303
43304         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
43305         even on systems with utmpx.h.  It's necessary for the declaration of
43306         utmp's ut_user member.  Reported by Andreas Jaeger.
43307
43308         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
43309         available. They are required for the declarations of getgrgid and
43310         getpwuid resp.
43311         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
43312         Reported by Andreas Jaeger.
43313
43314 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
43315
43316         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
43317         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
43318         so `make install' also works in VPATH builds.
43319
43320 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
43321
43322         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
43323         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
43324         can be used in subdirectories.
43325
43326 2000-12-29  Paul Eggert  <eggert@twinsun.com>
43327
43328         * lib/modechange.c: Do not assume that mode_t uses the
43329         traditional octal encoding.  E.g. "chmod 1 FOO" should set
43330         the other-execute bit of FOO even if S_IXOTH != 1.
43331
43332         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
43333         WOTH, XOTH, ALLM): New macros.
43334         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
43335          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
43336         Use them.
43337         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
43338         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
43339         (mode_compile):
43340         No need to use uintmax_t; unsigned long is long enough.
43341         Don't bother to get suffix since we don't use it.
43342
43343 2000-12-26  Jim Meyering  <meyering@lucent.com>
43344
43345         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
43346         better with autoheader.
43347
43348 2000-12-24  Jim Meyering  <meyering@lucent.com>
43349
43350         * lib/hash.c (is_prime): Return explicit boolean values.
43351         (hash_get_first): Return NULL to appease Irix5.6's 89.
43352         Reported by Nelson Beebe.
43353
43354 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
43355
43356         * lib/localcharset.c (locale_charset): Add support for Win32.
43357
43358 2000-12-18  Paul Eggert  <eggert@twinsun.com>
43359
43360         * lib/physmem.h, lib/physmem.c: New files.
43361
43362         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
43363         (noinst_HEADERS): Add physmem.h.
43364
43365         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
43366         't' for compatibility with Solaris 8 sort.
43367
43368 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
43369
43370         * lib/config.charset: Add support for BeOS.
43371
43372 2000-12-17  Jim Meyering  <meyering@lucent.com>
43373
43374         * m4/dos.m4 (jm_AC_DOS): New file and macro.
43375         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
43376
43377 2000-12-16  Jim Meyering  <meyering@lucent.com>
43378
43379         This bug had a serious impact on chown: `chown N:M FILE' (for integer
43380         N and M) would have treated it like `chown N:N FILE'.
43381
43382         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
43383
43384 2000-12-16  Jim Meyering  <meyering@lucent.com>
43385
43386         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
43387         SHELLS_FILE to a file name that's useful on djgpp systems.
43388         Include stdlib.h.
43389         (ADDITIONAL_DEFAULT_SHELLS): Define.
43390         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
43391         Based mostly on a patch from Prashant TR.
43392
43393 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
43394
43395         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
43396         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
43397         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
43398
43399 2000-12-08  Andreas Schwab  <schwab@suse.de>
43400
43401         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
43402         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
43403
43404 2000-12-07  Jim Meyering  <meyering@lucent.com>
43405
43406         * lib/stripslash.c (ISSLASH): Define.
43407         (strip_trailing_slashes): Use ISSLASH rather than comparing against
43408         `/'.
43409         From Prashant TR.
43410
43411         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
43412         (dir_name_r): Declare this function as static.
43413         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
43414         manifest itself on a name containing a mix of slashes and
43415         backslashes.
43416         Make this function work with names starting with a DOS-style
43417         drive letter and colon prefix.
43418         (dir_name): Append `.' if necessary.
43419         Based mostly on patches from Prashant TR and Eli Zaretskii.
43420
43421         * lib/dirname.h (dir_name_r): Remove prototype.
43422
43423 2000-12-06  Paul Eggert  <eggert@twinsun.com>
43424
43425         * m4/off_t-format.m4: Remove this file.
43426         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
43427
43428 2000-12-06  Jim Meyering  <meyering@lucent.com>
43429
43430         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
43431         replacement strtoull, we may well need the replacement strtoul, too.
43432         Check for declarations of strtoul and strtoull.
43433         Check for strtol.  Mainly as a cue to cause automake to include
43434         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
43435         Check for limits.h -- strtol.c needs it.
43436
43437 2000-12-05  Jim Meyering  <meyering@lucent.com>
43438
43439         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
43440
43441 2000-12-04  Jim Meyering  <meyering@lucent.com>
43442
43443         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
43444         Also include memory.h, stdlib.h, unistd.h if appropriate.
43445         Reported by Andreas Jaeger (conflicting declaration of malloc).
43446
43447 2000-12-02  Jim Meyering  <meyering@lucent.com>
43448
43449         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
43450         * m4/jm-macros.m4 (jm_MACROS): require it.
43451
43452 2000-12-02  Jim Meyering  <meyering@lucent.com>
43453
43454         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
43455
43456 2000-12-01  Paul Eggert  <eggert@twinsun.com>
43457
43458         * lib/memrchr.c: Include <config.h> before any system include file.
43459
43460 2000-11-30  Jim Meyering  <meyering@lucent.com>
43461
43462         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
43463
43464 2000-11-30  Jim Meyering  <meyering@lucent.com>
43465
43466         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
43467
43468 2000-11-29  Paul Eggert  <eggert@twinsun.com>
43469
43470         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
43471
43472 2000-11-26  Jim Meyering  <meyering@lucent.com>
43473
43474         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
43475
43476 2000-11-22  Paul Eggert  <eggert@twinsun.com>
43477
43478         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
43479         size of (size_t) -1; it's not portable.
43480
43481 2000-11-17  Jim Meyering  <meyering@lucent.com>
43482
43483         * lib/strstr.c: Update from GNU libc.
43484
43485 2000-11-17  Akim Demaille  <akim@epita.fr>
43486
43487         * lib/obstack.h: Formatting changes.
43488         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
43489         prevent type checking.
43490         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
43491         cast the value to (void *): assigning a `foo *' to a `void *'
43492         variable is valid.
43493         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
43494
43495 2000-11-16  Jim Meyering  <meyering@lucent.com>
43496
43497         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
43498
43499 2000-11-11  Jim Meyering  <meyering@lucent.com>
43500
43501         * lib/error.c: Add a couple #includes, merging from GNU libc version.
43502
43503 2000-11-10  Jim Meyering  <meyering@lucent.com>
43504
43505         * lib/obstack.h: Update from GNU libc.
43506         * lib/obstack.c: Likewise.
43507
43508 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
43509
43510         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
43511
43512 2000-11-06  Paul Eggert  <eggert@twinsun.com>
43513
43514         * lib/getusershell.c (setusershell): Use rewind rather than
43515         fseek/fseeko, to avoid configuration hassles with fseeko.
43516         Don't bother opening SHELLS_FILE if shellstream is NULL;
43517         it's not necessary.
43518
43519 2000-11-05  Jim Meyering  <meyering@lucent.com>
43520
43521         * lib/makepath.h (make_dir): Declare.
43522         * lib/makepath.c (make_dir): Remove `static' attribute.
43523         Tweak a comment.
43524
43525 2000-11-04  Jim Meyering  <meyering@lucent.com>
43526
43527         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
43528
43529 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
43530
43531         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
43532         last one in a bucket, advance to the next bucket.
43533
43534 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
43535
43536         * lib/fnmatch.c: Do not comment out all the code if we are using
43537         the GNU C library, because in some cases we are replacing buggy
43538         code in the GNU C library itself.
43539
43540 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
43541
43542         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
43543         (regex_compile): Catch bogus \(\1\).
43544
43545 2000-10-30  Paul Eggert  <eggert@twinsun.com>
43546
43547         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
43548         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
43549         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
43550
43551 2000-10-30  Paul Eggert  <eggert@twinsun.com>
43552
43553         * lib/error.h, getline.h, modechange.h:
43554         Remove "2000" from Copyright line, as the file hasn't been
43555         changed this year other than in the copyright notice.
43556
43557         * lib/xalloc.h: Add "2000" to Copyright line, as this file
43558         was changed this year.
43559
43560 2000-10-29  Jim Meyering  <meyering@lucent.com>
43561
43562         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
43563         renaming.
43564         * m4/ls-mntd-fs.m4: Likewise
43565
43566 2000-10-29  Jim Meyering  <meyering@lucent.com>
43567
43568         * lib/xstat.in: Fix grammar in comment.
43569
43570 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
43571
43572         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
43573         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
43574         doesn't define __restrict_arr.
43575
43576 2000-10-28  Jim Meyering  <meyering@lucent.com>
43577
43578         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
43579         (jm_PREREQ_MEMCHR): New function.
43580
43581 2000-10-28  Jim Meyering  <meyering@lucent.com>
43582
43583         * lib/memchr.c: Update from libc.
43584         Adjust for portability:
43585         [HAVE_STDLIB_H]: Include stdlib.h.
43586         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
43587         Undef __memchr, too.
43588         [!weak_alias]: Define __memchr to memchr.
43589
43590         * lib/regex.c: Update from libc.
43591         * lib/regex.h: Likewise.
43592         * lib/getopt1.c: Likewise.
43593         * lib/memcmp.c: Likewise.
43594
43595         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
43596         Avoid using fseek, when possible -- it's broken by design.
43597         Patch by Ulrich Drepper.
43598
43599 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
43600
43601         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
43602         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
43603         Giving in to popular pressure to shut up the compiler with casts.
43604
43605 2000-10-26  Jim Meyering  <meyering@lucent.com>
43606
43607         * lib/strftime.c: Update from libc.
43608
43609 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
43610
43611         * regex.c: More `unsigned char' -> `re_char' changes.
43612         Also change several `int' into `re_wchar_t'.
43613         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
43614         (PUSH_FAILURE_POINTER): Don't cast any more.
43615         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
43616         We want GCC to complain, since this piece of code makes
43617         re_match non-reentrant, which *should* be fixed.
43618         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
43619         (EXTEND_BUFFER): Use RETALLOC.
43620         (SET_LIST_BIT): Don't cast.
43621         (re_wchar_t): New type.
43622         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
43623         that those two functions will always properly return.
43624         (IMMEDIATE_QUIT_CHECK): Cast to void.
43625         (analyse_first): Use recursion rather than an explicit stack.
43626         (re_compile_fastmap): Can't fail anymore.
43627         (re_search_2): Don't check re_compile_fastmap for failure.
43628         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
43629         Now also sets the new value (passed in a new argument).
43630         (re_match_2_internal): Use it.
43631         Also, use a new var `reg' of type size_t when looping through regs
43632         rather than reuse the inappropriate `mcnt'.
43633
43634 2000-10-25  Jim Meyering  <meyering@lucent.com>
43635
43636         * lib/obstack.c: Update from libc.
43637
43638 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
43639
43640         * regex.c (regex_compile): Change the way of handling a range from
43641         a char less than 256 to a char not less than 256.
43642
43643 2000-10-24  Andrew Innes  <andrewi@gnu.org>
43644
43645         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
43646         NT-Emacs only.
43647         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
43648         so that re_search functions only quit when callers expect them to.
43649
43650 2000-10-23  Jim Meyering  <meyering@lucent.com>
43651
43652         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
43653         wrong.  That set_locale call must not have any side effects.
43654         From Paul Eggert.
43655
43656 2000-10-22  Jim Meyering  <meyering@lucent.com>
43657
43658         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
43659         [CYCLIC]: Remove now-unused definition.
43660
43661         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
43662         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
43663         Suggestion from Ulrich Drepper.
43664
43665 2000-10-21  Jim Meyering  <meyering@lucent.com>
43666
43667         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
43668         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
43669         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
43670
43671 2000-10-21  Jim Meyering  <meyering@lucent.com>
43672
43673         * lib/dirname.c (memrchr): Declare if necessary.
43674         (dir_name): Remove the restriction that there be no
43675         trailing slashes.  Now, this code skips past them, effectively
43676         ignoring them.
43677         [TEST_DIRNAME] (main): New unit tests.
43678
43679         * lib/memrchr.c: New file from GNU libc.
43680         Undef __memrchr, too.
43681         [!weak_alias]: Define __memrchr to memrchr.
43682         Guard weak_alias use with `#ifdef weak_alias'.
43683
43684 2000-10-21  Jim Meyering  <meyering@lucent.com>
43685
43686         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
43687         (dir_name): Use dir_name_r.
43688         * lib/dirname.h (dir_name_r): Declare it.
43689
43690 2000-10-17  Jim Meyering  <meyering@lucent.com>
43691
43692         * lib/quote.h (PARAMS): Define and use.
43693         Reported by Akim Demaille.
43694
43695         * lib/getopt.c: Update from libc.
43696
43697 2000-10-16  Jim Meyering  <meyering@lucent.com>
43698
43699         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
43700         setlocale.
43701         From Jan Fedak.
43702
43703 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
43704
43705         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
43706
43707 2000-09-25  Jim Meyering  <meyering@lucent.com>
43708
43709         * lib/md5.h (rol): Define (from GnuPG).
43710
43711         * lib/sha.c: Give credit (GnuPG) where due.
43712         (M): Use rol rather than open-coding it.
43713         Add a FIXME comment.
43714
43715 2000-09-21  Jim Meyering  <meyering@lucent.com>
43716
43717         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
43718         Reported by Michael Stone.
43719
43720 2000-09-20  Jim Meyering  <meyering@lucent.com>
43721
43722         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
43723         (noinst_HEADERS): Add sha.h.
43724         Based on code from Scott G. Miller and from GnuPG.
43725
43726 2000-09-18  Jim Meyering  <meyering@lucent.com>
43727
43728         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
43729         LIBS. Otherwise, everyone ends up linking with -lelf for some
43730         configurations.
43731         Reported by Mike Stone.
43732
43733 2000-09-15  Jim Meyering  <meyering@lucent.com>
43734
43735         * lib/regex.c: Update from libc.
43736
43737 2000-09-10  Jim Meyering  <meyering@lucent.com>
43738
43739         * lib/getopt.c (_getopt_internal): Update from glibc.
43740
43741 2000-09-09  Jim Meyering  <meyering@lucent.com>
43742
43743         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
43744         think it should be used as a general replacement for isascii.
43745         * lib/fnmatch.c: Likewise.
43746         * lib/mbswidth.c: Likewise
43747         * lib/regex.c: Likewise.
43748
43749         Don't use atoi.
43750         * lib/userspec.c: Include sys/param.h and limits.h.
43751         Include xstrtol.h.
43752         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
43753         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
43754         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
43755         UID, GID.  Check range.
43756
43757 2000-09-06  Jim Meyering  <meyering@lucent.com>
43758
43759         * lib/getopt.c (_getopt_internal): Update from glibc.
43760
43761 2000-08-30  Jim Meyering  <meyering@lucent.com>
43762
43763         * lib/strftime.c: Merge in changes from GNU libc.
43764
43765 2000-08-26  Jim Meyering  <meyering@lucent.com>
43766
43767         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
43768         * m4/fpending.m4: New file.
43769
43770 2000-08-26  Jim Meyering  <meyering@lucent.com>
43771
43772         * lib/closeout.c: Include "__fpending.h".
43773         (close_stdout_status): Return right away if there's nothing to flush.
43774
43775         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
43776         * lib/__fpending.c: New file.
43777         * lib/__fpending.h: New file.
43778
43779 2000-08-20  Jim Meyering  <meyering@lucent.com>
43780
43781         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
43782         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
43783         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
43784
43785 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
43786
43787         Improve fileutils installation on systems where running
43788         programs (like install) can't be unlinked.
43789         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
43790         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
43791
43792 2000-08-07  Paul Eggert  <eggert@twinsun.com>
43793
43794         Standardize on "memory exhausted" instead of "Memory exhausted"
43795         or "virtual memory exhausted".
43796         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
43797         "virtual memory exhausted".
43798         * lib/same.c (same_name): Invoke xalloc_die instead of printing
43799         our own message.
43800         * lib/userspec.c (parse_user_spec): Likewise.
43801         * lib/bumpalloc.h: comment fix
43802         * lib/same.c, userspec.c: Include xalloc.h.
43803
43804         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
43805         not char *const and pointing to a constant array.
43806         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
43807         (xrealloc): Comment fix.
43808
43809         * lib/userspec.c (parse_user_spec):
43810         Don't translate a message until just before returning,
43811         to avoid unnecessary translation.
43812
43813 2000-08-07  Jim Meyering  <meyering@lucent.com>
43814
43815         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
43816         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
43817         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
43818         getgroups.c, gethostname.c, getopt.h, group-member.c,
43819         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
43820         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
43821         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
43822         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
43823         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
43824         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
43825         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
43826         yesno.c: Back out Copyright date changes for each file with no change
43827         this year.  This eases coordination with other programs using the same
43828         source code modules.  From Paul Eggert.
43829
43830 2000-08-06  Paul Eggert  <eggert@twinsun.com>
43831
43832         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
43833         not char, for compatibility with glibc 2.1.3 strftime.c.
43834
43835 2000-08-03  Greg McGary  <greg@mcgary.org>
43836
43837         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
43838         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
43839         (EXTEND_BUFFER): Use them.
43840
43841 2000-08-01  Jim Meyering  <meyering@lucent.com>
43842
43843         * lib/dirname.c (ISSLASH): Define.
43844         (BACKSLASH_IS_PATH_SEPARATOR): Define.
43845         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
43846         both `\' and `/' may be use as path separators.
43847         Based on a patch from Prashant TR.
43848
43849 2000-07-31  Paul Eggert  <eggert@twinsun.com>
43850
43851         * lib/quotearg.c (quotearg_n_options): Don't make the initial
43852         slot vector a constant, since it might get modified.
43853
43854 2000-07-31  Jim Meyering  <meyering@lucent.com>
43855
43856         * lib/xmalloc.c: Use `virtual memory exhausted', not
43857         `Memory exhausted'.
43858         * lib/obstack.c (print_and_abort): Likewise.
43859
43860 2000-07-30  Paul Eggert  <eggert@twinsun.com>
43861
43862         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
43863         buffer, so that the caller can always quote one small
43864         component of a "memory exhausted" message in slot 0.
43865         From a suggestion by Jim Meyering.
43866
43867 2000-07-30  Jim Meyering  <meyering@lucent.com>
43868
43869         * lib/makepath.c (make_path): Quote the other instance, too.
43870
43871         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
43872         (STATIC_BUF_SIZE): Define.
43873         (quotearg_n_options): Use only statically allocated storage when
43874         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
43875         than STATIC_BUF_SIZE.
43876
43877 2000-07-29  Jim Meyering  <meyering@lucent.com>
43878
43879         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
43880         * lib/dirname.c (dir_name): Likewise.
43881
43882         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
43883         `/'.
43884
43885         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
43886         (dir_name): Assert that there are no trailing slashes.
43887
43888 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
43889
43890         * lib/mbswidth.h (mbswidth): Add a flags argument.
43891         (mbswidth): New declaration.
43892         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
43893         * lib/mbswidth.c (mbswidth): Add a flags argument.
43894         (mbsnwidth): New function.
43895
43896 2000-07-24  Jim Meyering  <meyering@lucent.com>
43897
43898         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
43899
43900 2000-07-23  Paul Eggert  <eggert@twinsun.com>
43901
43902         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
43903
43904 2000-07-23  Paul Eggert  <eggert@twinsun.com>
43905
43906         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
43907         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
43908         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
43909         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
43910         invoke multibyte primitives.
43911
43912 2000-07-23  Paul Eggert  <eggert@twinsun.com>
43913
43914         * lib/quotearg.c:
43915         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
43916         so that mbstate_t is always defined.
43917
43918         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
43919         be 1 in at least one GCC installation, and this configuration
43920         error is likely to be common.  Ignoring MB_LEN_MAX hurts
43921         performance on hosts that have mbrtowc but have only unibyte
43922         locales, but I assume these hosts are rare.
43923
43924 2000-07-23  Paul Eggert  <eggert@twinsun.com>
43925
43926         * lib/mbswidth.c (_XOPEN_SOURCE):
43927         Don't define; this causes problems on Solaris 7.
43928         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
43929
43930 2000-07-23  Jim Meyering  <meyering@lucent.com>
43931
43932         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
43933         too: getgrgid, getpwuid, getuid.
43934
43935 2000-07-23  Jim Meyering  <meyering@lucent.com>
43936
43937         * lib/basename.c (base_name): Add an assertion.
43938
43939 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
43940
43941         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
43942         shadow its mbsinit function.
43943
43944 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
43945
43946         * lib/mbswidth.h: New file.
43947         * lib/mbswidth.c: New file.
43948         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
43949         (noinst_HEADERS): Add mbswidth.h.
43950
43951 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
43952
43953         * lib/config.charset: Add support for FreeBSD. Improve support for
43954         HP-UX and IRIX 6.
43955
43956 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
43957
43958         * m4/mbswidth.m4: New file.
43959         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
43960
43961 2000-07-15  Jim Meyering  <meyering@lucent.com>
43962
43963         * lib/makepath.c: Include quote.h.
43964         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
43965         corresponding argument in a `quote (...)' call.
43966         Give better diagnostics.
43967
43968         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
43969         (noinst_HEADERS): Add quote.h.
43970
43971         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
43972         from tar's src/misc.c.
43973         * lib/quote.h: New file.  Prototypes for same.
43974
43975 2000-07-14  Paul Eggert  <eggert@twinsun.com>
43976
43977         From a suggestion by Bruno Haible.
43978         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
43979         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
43980         to decide whether to define the BeOS workaround macro;
43981         this adjusts to the change to AC_MBSTATE_T.
43982
43983 2000-07-14  Jim Meyering  <meyering@lucent.com>
43984
43985         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
43986         jm_AC_TYPE_UINTMAX_T.
43987
43988 2000-07-13  Paul Eggert  <eggert@twinsun.com>
43989
43990         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
43991
43992         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
43993         quotearg_buffer_restyled): Add support for
43994         clocale_quoting_style.  Undo previous change to
43995         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
43996         and "{RIGHT QUOTATION MARK}" msgids.
43997
43998 2000-07-10  Paul Eggert  <eggert@twinsun.com>
43999
44000         From a suggestion by Bruno Haible.
44001         * m4/mbstate_t.m4 (AC_MBSTATE_T):
44002         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
44003         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
44004         and mbstate_t, to a single-part test that simply defines mbstate_t.
44005         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
44006         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
44007
44008 2000-07-10  Jim Meyering  <meyering@lucent.com>
44009
44010         * m4/strerror_r.m4: Mirror the correction made in autoconf.
44011
44012         * m4/gnu-source.m4: Output to confdefs.h directly.
44013         Suggestion from Akim Demaille.
44014
44015 2000-07-09  Paul Eggert  <eggert@twinsun.com>
44016
44017         The old behavior of quoting `like this' doesn't look good with
44018         newer, ISO-style fonts.  See:
44019         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
44020
44021         Instead, quote "like this" by default.  Let the translator
44022         tailor the locale-specific quoting behavior by providing
44023         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
44024
44025         * lib/quotearg.c (N_): New macro.
44026         (gettext_default): New function.
44027         (quotearg_buffer_restyled): Use
44028         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
44029         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
44030
44031 2000-07-09  Jim Meyering  <meyering@lucent.com>
44032
44033         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
44034         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
44035
44036         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
44037         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
44038
44039 2000-07-09  Jim Meyering  <meyering@lucent.com>
44040
44041         * lib/Most files: Update copyright dates to include 2000.
44042
44043 2000-07-08  Jim Meyering  <meyering@lucent.com>
44044
44045         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
44046         if not defined.
44047         (xgethostname): Remove now-unnecessary #ifdef.
44048         Move declaration of `err' into loop where it's used.
44049
44050 2000-07-05  Paul Eggert  <eggert@twinsun.com>
44051         and Bruno Haible  <haible@clisp.cons.org>
44052
44053         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
44054         only if the test for an object-type mbstate_t fails.  This
44055         prevents us from mistakenly reporting that mbstate_t is a
44056         system object type after we "#define mbstate_t int" to work
44057         around its lack.
44058
44059 2000-07-05  Paul Eggert  <eggert@twinsun.com>
44060         and Bruno Haible  <haible@clisp.cons.org>
44061
44062         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
44063
44064 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
44065
44066         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
44067         to strerror_r.
44068         Include <ctype.h> for use of isalpha.
44069
44070 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
44071
44072         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
44073         by allocating a larger buffer. Test the gethostname return value for
44074         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
44075         returns an error and ENAMETOOLONG isn't defined.
44076
44077 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
44078
44079         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
44080         dimension.
44081
44082 2000-07-04  Jim Meyering  <meyering@lucent.com>
44083
44084         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
44085         of the deprecated AC_CHECKING.
44086
44087 2000-07-04  Jim Meyering  <meyering@lucent.com>
44088
44089         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
44090         Reported by Bruno Haible.
44091
44092 2000-07-04  Jim Meyering  <meyering@lucent.com>
44093
44094         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
44095         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
44096         lacks mbrtowc.
44097
44098 2000-07-03  Paul Eggert  <eggert@twinsun.com>
44099
44100         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
44101         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
44102
44103 2000-07-03  Paul Eggert  <eggert@twinsun.com>
44104         and Bruno Haible  <haible@clisp.cons.org>
44105
44106         * lib/quotearg.c (mbrtowc):
44107         Assign to *pwc, and return 1 only if result is nonzero.
44108         (iswprint): Use ISPRINT when substituting our own mbrtowc.
44109
44110 2000-07-03  Jim Meyering  <meyering@lucent.com>
44111
44112         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
44113
44114 2000-07-03  Jim Meyering  <meyering@lucent.com>
44115
44116         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
44117         This is necessary to get a definition of e.g., UTMP_FILE on
44118         HP-UX 10.20.
44119         From Bob Proulx.
44120
44121 2000-07-02  Jim Meyering  <meyering@lucent.com>
44122
44123         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
44124
44125         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
44126         AC_LIBOBJ(function_name).
44127         * m4/chown.m4: Likewise.
44128         * m4/fnmatch.m4: Likewise.
44129         * m4/ftruncate.m4: Likewise.
44130         * m4/getgroups.m4: Likewise.
44131         * m4/getline.m4: Likewise.
44132         * m4/group-member.m4: Likewise.
44133         * m4/jm-macros.m4: Likewise.
44134         * m4/lstat.m4: Likewise.
44135         * m4/malloc.m4: Likewise.
44136         * m4/memcmp.m4: Likewise.
44137         * m4/nanosleep.m4: Likewise.
44138         * m4/putenv.m4: Likewise.
44139         * m4/realloc.m4: Likewise.
44140         * m4/regex.m4: Likewise.
44141         * m4/stat.m4: Likewise.
44142         * m4/strftime.m4: Likewise.
44143
44144 2000-07-02  Jim Meyering  <meyering@lucent.com>
44145
44146         * lib/quotearg.c (mbstate_t): Don't define here.
44147
44148 2000-07-02  Jim Meyering  <meyering@lucent.com>
44149
44150         * lib/nanosleep.c (SIGCONT): Define if not already defined.
44151
44152 2000-07-01  Jim Meyering  <meyering@lucent.com>
44153
44154         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
44155
44156 2000-07-01  Jim Meyering  <meyering@lucent.com>
44157
44158         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
44159         problem.
44160
44161 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
44162
44163         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
44164         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
44165
44166 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
44167
44168         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
44169         per change in ../m4/ls-mntd-fs.m4.
44170         (read_filesystem_list): Ignore symbolic links.
44171
44172 2000-06-29  Jim Meyering  <meyering@lucent.com>
44173
44174         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
44175         for declaration of strcmp.
44176
44177         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
44178
44179         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
44180         Avoid warning by casting result to `char *' to remove `const'.
44181
44182 2000-06-28  Jim Meyering  <meyering@lucent.com>
44183
44184         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
44185         included by quotearg.c, for which we perform this test.  From
44186         Bruno Haible.
44187
44188 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
44189
44190         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
44191         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
44192         <utmpx.h> exists, put readutmp.o into LIBOBJS.
44193
44194 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
44195
44196         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
44197
44198 2000-06-26  Paul Eggert  <eggert@twinsun.com>
44199
44200         savedir now sets errno on failure and invokes xmalloc to get memory.
44201         Fix a couple of other minor bugs while we're at it.
44202
44203         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
44204         (NAMLEN): Remove macro.
44205         (malloc, realloc): Remove decls.
44206         (stpcpy): Likewise.
44207         ("xalloc.h"): Include.
44208         (NAME_SIZE_DEFAULT): New macro.
44209         (savedir): Use xmalloc / xrealloc to allocate memory.
44210         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
44211         Skip "" directory entries.
44212         Use strlen to calculate directory entry length, since the old method
44213         is rarely used these days and isn't worth supporting.
44214         Don't use a pointer after freeing it.
44215         Check for integer overflow when calculating allocation size.
44216         Use memcpy to copy entries, instead of stpcpy.
44217         Set errno properly when returning NULL.
44218         Check for readdir error.
44219
44220 2000-06-26  Jim Meyering  <meyering@lucent.com>
44221
44222         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
44223
44224 2000-06-25  Jim Meyering  <meyering@lucent.com>
44225
44226         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
44227         Linux header bug when _XOPEN_SOURCE is defined to 500.
44228
44229 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
44230
44231         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
44232         deficiency.
44233
44234 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
44235
44236         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
44237         Include xalloc.h.
44238         Don't include <stdlib.h>.  Don't declare malloc, realloc.
44239
44240 2000-06-24  Jim Meyering  <meyering@lucent.com>
44241
44242         * m4/strerror_r.m4: Revive this file -- to try out an experimental
44243         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
44244         for which strerror does return char*, but which lacks a conveniently
44245         accessible declaration of the function.  If the compile-test says
44246         strerror_r doesn't work, then resort to a `run'-test that works on
44247         BeOS and segfaults on DEC Unix.
44248
44249 2000-06-24  Jim Meyering  <meyering@lucent.com>
44250
44251         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
44252
44253 2000-06-23  Paul Eggert  <eggert@twinsun.com>
44254
44255         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
44256         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
44257
44258 2000-06-23  Paul Eggert  <eggert@twinsun.com>
44259
44260         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
44261         (mbrtowc, mbstate_t): Define substitutes if
44262         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
44263         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
44264         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
44265
44266 2000-06-23  Jim Meyering  <meyering@lucent.com>
44267
44268         * m4/afs.m4: Add missing AC_MSG_RESULT.
44269         Reported by Bruno Haible.
44270
44271         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
44272         Suggestion from Bruno Haible.
44273
44274 2000-06-23  Jim Meyering  <meyering@lucent.com>
44275
44276         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
44277
44278 2000-06-21  Jim Meyering  <meyering@lucent.com>
44279
44280         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
44281
44282 2000-06-21  Jim Meyering  <meyering@lucent.com>
44283
44284         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
44285         (noinst_HEADERS): Add getstr.h.
44286
44287         * lib/getline.c (getstr): Move into a separate file.
44288         * lib/getstr.c (getstr): New file, extracted from getline.c, with
44289         the following changes: new parameter, delim2; both delim[12]
44290         parameters have type `int', not `char'.  The latter would lose
44291         with 8-bit delimiters.
44292         * lib/getstr.h: New file.
44293
44294 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
44295
44296         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
44297         than 1024, return a memory chunk of least possible size, instead
44298         of size PATH_MAX + 2. In the loop, increment the size proportionally.
44299         Use free/xmalloc instead of xrealloc to avoid copying for very long
44300         paths.
44301
44302 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
44303
44304         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
44305         the empty string.
44306
44307 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
44308
44309         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
44310         address, not strdup.  Include <stdlib.h> and don't declare free().
44311
44312 2000-06-19  Jim Meyering  <meyering@lucent.com>
44313
44314         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
44315
44316 2000-06-18  Jim Meyering  <meyering@lucent.com>
44317
44318         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
44319
44320         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
44321         `checking whether...' message to be consistent with that of the
44322         lstat test.
44323
44324 2000-06-18  Jim Meyering  <meyering@lucent.com>
44325
44326         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
44327         Besides, these days every porting target provides a mkdir function.
44328
44329         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
44330         needed. (this snippet comes from src/system.h).
44331
44332 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
44333
44334         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
44335
44336 2000-06-15  Paul Eggert  <eggert@twinsun.com>
44337
44338         * lib/human.c (adjust_value): New function.
44339         (human_readable_inexact): Apply rounding style even when
44340         printing approximate values.
44341
44342 2000-06-14  Paul Eggert  <eggert@twinsun.com>
44343
44344         * lib/human.c (human_readable_inexact): Allow an input block
44345         size that is not a multiple of the output block size, and vice versa.
44346         Reported by Piergiorgio Sartor.
44347
44348 2000-06-14  Paul Eggert  <eggert@twinsun.com>
44349
44350         * lib/getdate.y (get_date): Apply relative times after time
44351         zone indicator, not before.  Reported by Todd A. Jacobs.
44352
44353 2000-06-13  Jim Meyering  <meyering@lucent.com>
44354
44355         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
44356
44357         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
44358
44359 2000-06-12  Paul Eggert  <eggert@twinsun.com>
44360
44361         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
44362
44363 2000-06-12  Jim Meyering  <meyering@lucent.com>
44364
44365         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
44366         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
44367         optional argument.
44368         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
44369         the optional argument, `lib'.
44370
44371 2000-06-08  Jim Meyering  <meyering@lucent.com>
44372
44373         * m4/largefile.m4: Remove file (now that it's part of autoconf).
44374
44375 2000-06-04  Paul Eggert  <eggert@twinsun.com>
44376
44377         Rewrite largefile configuration so that we don't need to run
44378         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
44379         AC_CANONICAL_HOST in configure.in -- jmm]
44380
44381         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
44382         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
44383         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
44384         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
44385         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
44386         All uses changed.
44387         Instead of inspecting the output of getconf, try to compile the
44388         test program without and with the macro definition.
44389         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
44390         for getconf.  Instead, check for the needed flags by compiling
44391         test programs.
44392
44393 2000-06-04  Paul Eggert  <eggert@twinsun.com>
44394
44395         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
44396
44397 2000-06-04  Jim Meyering  <meyering@lucent.com>
44398
44399         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
44400         SunOS 4.1.4 for which gid_t is an unsigned type.
44401
44402 2000-06-03  Jim Meyering  <meyering@lucent.com>
44403
44404         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
44405         now that autoconf requires that.
44406
44407         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
44408         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
44409         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
44410
44411 2000-06-03  Jim Meyering  <meyering@lucent.com>
44412
44413         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
44414
44415 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
44416
44417         * m4/glibc21.m4: New file.
44418         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
44419
44420 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
44421
44422         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
44423         newer, don't install charset.alias.
44424         * lib/config.charset: Change the Linux/glibc rules so they become empty
44425         on glibc-2.1 or newer.
44426
44427 2000-06-02  Jim Meyering  <meyering@lucent.com>
44428
44429         * lib/mountlist.c: Back out last change.  Instead, do this...
44430         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
44431         me_dummy member using the same `ignore'-testing code.
44432         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
44433         fs_type strings.
44434         From Mark D. Roth.
44435
44436 2000-05-29  Jim Meyering  <meyering@lucent.com>
44437
44438         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
44439         mounts with the `ignore' attribute.  Based on a patch from
44440         Mark D. Roth.
44441
44442 2000-05-28  Jim Meyering  <meyering@lucent.com>
44443
44444         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
44445         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
44446         * m4/stat.m4: Likewise.
44447         * m4/lstat.m4: Likewise.
44448         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
44449
44450         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
44451         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
44452
44453 2000-05-26  Jim Meyering  <meyering@lucent.com>
44454
44455         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
44456
44457 2000-05-24  Jim Meyering  <meyering@lucent.com>
44458
44459         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
44460         autoconf requires that.
44461         * m4/lib-check.m4: Likewise.
44462         * m4/jm-macros.m4: Likewise.
44463         * m4/strftime.m4: Likewise.
44464
44465         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
44466         AC_CHECK_DECLS, now that autoconf requires that.
44467
44468 2000-05-22  Jim Meyering  <meyering@lucent.com>
44469
44470         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
44471         * m4/lstat.m4: Likewise.
44472
44473 2000-05-22  Jim Meyering  <meyering@lucent.com>
44474
44475         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
44476
44477 2000-05-20  Jim Meyering  <meyering@lucent.com>
44478
44479         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
44480         (jm_PREREQ): Use it.
44481
44482 2000-05-18  Jim Meyering  <meyering@lucent.com>
44483
44484         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
44485         back, too, since it may have been modified by allocate_entry.
44486         (hash_delete): Rewrite to use neither the assignment operator
44487         nor the comma operator in an if-expression.
44488
44489 2000-05-15  Paul Eggert  <eggert@twinsun.com>
44490
44491         * lib/closeout.c:
44492         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
44493         Remove; no longer needed.
44494         "quotearg.h": Add include.
44495         (file_name): Do not bother to explicitly initialize to NULL; it's less
44496         efficient on some hosts.
44497         (close_stdout_status): Remove test as to whether stdout was already
44498         closed; it breaks for the case "echo x | sort >&-".
44499         Quote file name colons.
44500         Do not assume that _("write error") lacks format strings.
44501
44502 2000-05-15  Jim Meyering  <meyering@lucent.com>
44503
44504         * lib/version-etc.c (version_etc_copyright): Update the copyright
44505         string used in all --version output.
44506
44507 2000-05-14  Jim Meyering  <meyering@lucent.com>
44508
44509         * lib/closeout.c (close_stdout_set_file_name): New function.
44510         (close_stdout_status): Use new file-scoped global.
44511         Return right away if fstat says the stdout file descriptor is invalid.
44512         * lib/closeout.h (close_stdout_set_file_name): Declare.
44513
44514 2000-05-10  Jim Meyering  <meyering@lucent.com>
44515
44516         * lib/closeout.c [default_exit_status]: New file-scoped variable.
44517         (close_stdout_set_status): New function.
44518         * lib/closeout.h (close_stdout_set_status): Declare.
44519
44520 2000-05-09  Jim Meyering  <meyering@lucent.com>
44521
44522         * m4/gettext.m4: Rename this...
44523         * m4/libintl.m4: ...to this.
44524
44525 2000-05-08  Jim Meyering  <meyering@lucent.com>
44526
44527         * lib/long-options.c: Don't include closeout.h.
44528         (parse_long_options): Don't call close_stdout for --version.
44529
44530 2000-05-06  Paul Eggert  <eggert@twinsun.com>
44531
44532         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
44533         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
44534         2.1.3 bug.  This avoids a clash when files like regex.c define
44535         _GNU_SOURCE.
44536
44537 2000-05-06  Jim Meyering  <meyering@lucent.com>
44538
44539         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
44540         (AC_REPLACE_FUNCS): Add strnlen.
44541
44542         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
44543         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
44544
44545         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
44546         AC_SEARCH_LIBS call for nanosleep.
44547         (LIB_NANOSLEEP): Set and AC_SUBST.
44548
44549 2000-05-06  Jim Meyering  <meyering@lucent.com>
44550
44551         * lib/strnlen.c: Undefine __strnlen and strnlen.
44552         [!weak_alias]: Define __strnlen to strnlen.
44553
44554         * lib/atexit.c: New file, from libiberty.
44555
44556 2000-05-06  Jim Meyering  <meyering@lucent.com>
44557
44558         * lib/closeout.c (close_stdout_status): Also check for errors on the
44559         stderr stream.
44560
44561 2000-05-05  Jim Meyering  <meyering@lucent.com>
44562
44563         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
44564         AC_SEARCH_LIBS call for clock_gettime.
44565         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
44566
44567         * m4/search-libs.m4: Update from autoconf.
44568
44569         su doesn't work on Solaris 2.6.
44570         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
44571         <shadow.h>.  Reported by Dragos Harabor.
44572
44573 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
44574
44575         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
44576         memcpy instead of xmalloc, xrealloc, path_concat.
44577         (locale_charset): Treat empty environment variables as absent.
44578         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
44579
44580 2000-05-04  Jim Meyering  <meyering@lucent.com>
44581
44582         * lib/getopt.c: Update from glibc.
44583         * lib/obstack.c: Likewise.
44584         * lib/obstack.h: Likewise.
44585         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
44586         file
44587
44588         * lib/regex.h: Likewise.
44589         * lib/strndup.c: Likewise.
44590         * lib/strnlen.c: New file, from glibc.
44591
44592 2000-05-03  Jim Meyering  <meyering@lucent.com>
44593
44594         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
44595
44596 2000-05-02  Paul Eggert  <eggert@twinsun.com>
44597
44598         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
44599         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
44600         compile-time test, rather than inspecting host and OS, to
44601         decide whether to define _LARGEFILE_SOURCE.
44602
44603 2000-05-01  Jim Meyering  <meyering@lucent.com>
44604
44605         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
44606
44607         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
44608         Based on a patch from Bruno Haible.
44609
44610 2000-05-01  Jim Meyering  <meyering@lucent.com>
44611
44612         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
44613
44614 2000-04-29  Jim Meyering  <meyering@lucent.com>
44615
44616         * lib/path-concat.c: Declare strdup only if it's not defined.
44617         * lib/canon-host.c: Likewise.
44618
44619 2000-04-28  Jim Meyering  <meyering@lucent.com>
44620
44621         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
44622         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
44623         is included first, then limits.h is included by locale.h by libintl.h.
44624         From John David Anglin.
44625
44626 2000-04-25  Jim Meyering  <meyering@lucent.com>
44627
44628         * lib/makepath.c (S_IRWXUGO): Define.
44629         (make_path): Always perform explicit chmod if MODE specifies any
44630         of the `special' permission bits.  Prompted by a bug report against
44631         install from Mate Wierdl and Joost van Baal.
44632
44633 2000-04-18  Jim Meyering  <meyering@lucent.com>
44634
44635         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
44636         (jm_PREREQ): Use it.
44637
44638 2000-04-18  Jim Meyering  <meyering@lucent.com>
44639
44640         * lib/README: New file.
44641
44642         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
44643         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
44644
44645 2000-04-17  Jim Meyering  <meyering@lucent.com>
44646
44647         Get it right :-)
44648         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
44649         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
44650         Suggestion from Akim Demaille.
44651
44652 2000-04-17  Jim Meyering  <meyering@lucent.com>
44653
44654         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
44655         the definition of it to rpl_strftime also defined-away the system's
44656         declaration.
44657
44658 2000-04-15  Jim Meyering  <meyering@lucent.com>
44659
44660         Use `C' to denote so-called `contiguous' files, the same way
44661         that tar does.
44662         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
44663         (ftypelet): Use S_ISCTG.
44664         From Michael Deutschmann.
44665
44666 2000-04-14  Jim Meyering  <meyering@lucent.com>
44667
44668         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
44669         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
44670         clobbered.
44671
44672 2000-04-14  Jim Meyering  <meyering@lucent.com>
44673
44674         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
44675
44676 2000-04-13  Jim Meyering  <meyering@lucent.com>
44677
44678         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
44679         AH_VERBATIM to insert required #ifndef into config.h.in.
44680         Suggestion from Akim Demaille.
44681
44682 2000-04-12  Jim Meyering  <meyering@lucent.com>
44683
44684         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
44685         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
44686         Christian Krackowizer.
44687
44688         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
44689         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
44690         (AC_SYS_LARGEFILE): Require.
44691         (AM_C_PROTOTYPES): Require.
44692
44693 2000-04-08  Jim Meyering  <meyering@lucent.com>
44694
44695         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
44696         names don't conflict.  Reported by Eli Zaretskii.
44697
44698 2000-04-07  Jim Meyering  <meyering@lucent.com>
44699
44700         * lib/putenv.c: Move inclusion of errno.h so it follows that of
44701         sys/types.h, to work around system header problems on AIX 3.2.5.
44702         From Bruno Haible.
44703
44704 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
44705
44706         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
44707         bug.  Deal with the different error behavior of Irix iconv.
44708
44709 2000-04-05  Paul Eggert  <eggert@twinsun.com>
44710
44711         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
44712         IRIX if the installer said otherwise.
44713
44714 2000-04-05  Jim Meyering  <meyering@lucent.com>
44715
44716         Portability tweaks required for ultrix4.3.
44717         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
44718         (jm_CHECK_DECLS): Add getutent to the list of functions.
44719         (_jm_DECL_HEADERS): Add utmpx.h.
44720         From John David Anglin.
44721
44722         * m4/strftime.m4: Back out the 2000-04-02 change.
44723         Instead of that change, simply undefine putenv in the test program.
44724
44725 2000-04-05  Jim Meyering  <meyering@lucent.com>
44726
44727         Portability tweaks required for ultrix4.3.
44728         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
44729         getutent.
44730         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
44731         * lib/canon-host.c: Declare strdup.
44732         * lib/path-concat.c: Likewise.
44733         From John David Anglin.
44734
44735 2000-04-04  Jim Meyering  <meyering@lucent.com>
44736
44737         Be more DOS 8.3-friendly.
44738         * lib/ref-add.sin: Renamed from ref-add.sed.in.
44739         * lib/ref-del.sin: Renamed from ref-del.sed.in.
44740         * lib/Makefile.am: Reflect renaming.
44741         Reported by Eli Zaretskii.
44742
44743         Use a temporary file name that won't clash with `charset.alias'
44744         in the DOS 8.3 name space.
44745         * lib/Makefile.am (charset_tmp): Define.
44746         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
44747         (uninstall-local): Likewise.
44748         Reported by Eli Zaretskii.
44749
44750 2000-04-03  Jim Meyering  <meyering@lucent.com>
44751
44752         * m4/gettext.m4: Fix typo in comment.
44753
44754         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
44755         textutils/configure.in).  Suggestion from Paul Eggert.
44756         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
44757
44758 2000-04-02  Paul Eggert  <eggert@twinsun.com>
44759
44760         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
44761         variable in the shell rather than using putenv, which isn't
44762         portable.  This avoids the configure-time inter-test dependency
44763         on the potentially-renamed putenv function.
44764
44765 2000-03-30  Paul Eggert  <eggert@twinsun.com>
44766
44767         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
44768         before checking struct stat.st_blksize, so that
44769         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
44770
44771 2000-03-29  Paul Eggert  <eggert@twinsun.com>
44772
44773         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
44774         since strftime.c uses HAVE_STRFTIME to decide whether to use
44775         the underlying strftime.
44776
44777 2000-03-29  Paul Eggert  <eggert@twinsun.com>
44778
44779         * lib/time/strftime.c (my_strftime): Make sure we call the system
44780         strftime, not ourselves, when invoking the underlying strftime.
44781
44782 2000-03-24  Jim Meyering  <meyering@lucent.com>
44783
44784         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
44785         (charset_alias): Define.
44786         (install-exec-local): Factor out common code.
44787         (uninstall-local): Split lines longer than 80.
44788         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
44789         (SUFFIXES): Define.
44790         (.sed.in.sed): New rule.  Don't redirect directly to $@.
44791         (CLEANFILES): Add ref-add.sed and ref-del.sed.
44792
44793 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
44794
44795         * lib/config.charset: Output a line containing "Packages using this
44796         file".
44797         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
44798         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
44799         ref-del.sed): New rules.
44800
44801 2000-03-17  Jim Meyering  <meyering@lucent.com>
44802
44803         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
44804         Otherwise, include <strings.h>
44805
44806 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
44807
44808         * lib/unicodeio.c (utf8_wctomb): New function.
44809         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
44810         format instead of in UCS-4 with platform dependent endianness.
44811
44812 2000-03-10  Jim Meyering  <meyering@lucent.com>
44813
44814         * m4/lib-check.m4: Look for getspnam in -lgen, too.
44815         From Marco Franzen.
44816
44817 2000-03-07  Paul Eggert  <eggert@twinsun.com>
44818
44819         * lib/savedir.c (savedir): Work even if directory size is
44820         negative; this can happen with some screwy NFS configurations.
44821
44822 2000-03-06  Jim Meyering  <meyering@lucent.com>
44823
44824         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
44825         if it's NULL (because we ran out of memory).  From Bruno Haible.
44826
44827 2000-03-05  Jim Meyering  <meyering@lucent.com>
44828
44829         * lib/localcharset.c ("path-concat.h"): Include.
44830         (get_charset_aliases): Use path_concat instead of ANSI string
44831         concatenation.
44832
44833         * lib/unicodeio.h (PARAMS): Define.
44834         Use it to guard prototype.
44835
44836 2000-03-04  Jim Meyering  <meyering@lucent.com>
44837
44838         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
44839         for lib/localcharset.c.
44840
44841 2000-03-04  Jim Meyering  <meyering@lucent.com>
44842
44843         * lib/Makefile.am (install-exec-local): Create $(libdir) before
44844         installing into it.
44845         (uninstall-local): Uncomment this rule so `make distcheck' works
44846         once again.
44847
44848         * lib/unicodeio.c (<errno.h>): Include it.
44849         (errno): Declare if not defined.
44850
44851         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
44852
44853         * lib/config.charset: New version, incorporating remarks from a linux
44854         i18n mailing list.  From Bruno Haible.
44855
44856 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
44857
44858         * m4/codeset.m4: New file.
44859         * m4/iconv.m4: New file.
44860         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
44861
44862 2000-03-03  Jim Meyering  <meyering@lucent.com>
44863
44864         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
44865
44866 2000-03-02  Jim Meyering  <meyering@lucent.com>
44867
44868         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
44869         the messages come out on separate lines.
44870
44871         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
44872         rather than jm_CHECK_DECLARATIONS.
44873         * m4/decl.m4: Remove now-unused file.
44874
44875         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
44876         geteuid.
44877
44878 2000-03-02  Jim Meyering  <meyering@lucent.com>
44879
44880         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
44881
44882 2000-03-01  Jim Meyering  <meyering@lucent.com>
44883
44884         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
44885         * lib/unicodeio.c: Likewise.
44886
44887 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
44888
44889         * lib/config.charset: New file.
44890         * lib/localcharset.c: New file.
44891         * lib/unicodeio.h, lib/unicodeio.c: New files.
44892         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
44893         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
44894         (noinst_HEADERS): Add unicodeio.h.
44895         (all-local, install-exec-local, charset.alias): New targets.
44896
44897 2000-02-28  Paul Eggert  <eggert@twinsun.com>
44898
44899         * lib/quotearg.c (ALERT_CHAR): New macro.
44900         (quotearg_buffer_restyled): Use it.
44901
44902 2000-02-27  Jim Meyering  <meyering@lucent.com>
44903
44904         * m4/check-decl.m4: Add getenv to the list.
44905
44906 2000-02-27  Jim Meyering  <meyering@lucent.com>
44907
44908         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
44909         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
44910
44911         * lib/backupfile.c: Guard inclusion of stdlib.h with
44912         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
44913         Declare malloc if needed.
44914
44915         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
44916         `#ifndef HAVE_DECL..'
44917         now that autoconf always defines the HAVE_DECL_ symbols.
44918         * lib/human.c: Likewise.
44919         * lib/same.c: Likewise.
44920         * lib/strtoumax.c: Likewise.
44921
44922         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
44923         declaration check was not run.
44924         * lib/hash.c: Likewise.
44925         * lib/human.c: Likewise.
44926         * lib/same.c: Likewise.
44927         * lib/strtoumax.c: Likewise.
44928
44929         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
44930         `.', then first look up the entire `.'-containing string as a login
44931         name.
44932
44933 2000-02-23  Jim Meyering  <meyering@lucent.com>
44934
44935         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
44936         in place of my hack.
44937
44938 2000-02-18  Paul Eggert  <eggert@twinsun.com>
44939
44940         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
44941         (textint): New typedef.
44942         (parser_control): Member year changed from int to textint.
44943         All uses changed.
44944         (YYSTYPE): Removed; replaced by %union with int and textint members.
44945         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
44946         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
44947         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
44948         (tSNUMBER, tUNUMBER): Now of type <textintval>.
44949         (date, number, to_year): Use width of number in digits, not its value,
44950         to determine whether it's a 2-digit year, or a 2-digit time.
44951         (yylex): Store number of digits of numeric tokens.
44952         Reported by John Kendall.
44953
44954         (parser_control): Changed from struct parser_control to typedef (for
44955         consistency).  All uses changed.
44956
44957         (tID): Removed; not used.
44958         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
44959
44960 2000-02-14  Paul Eggert  <eggert@twinsun.com>
44961
44962         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
44963         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
44964
44965 2000-02-12  Jim Meyering  <meyering@lucent.com>
44966
44967         * lib/userspec.c (ISDIGIT): Define it.
44968         (isdigit): Remove definition.
44969         (is_number): Use ISDIGIT, not isdigit.
44970         <libintl.h>: Include.
44971         (_ and N_): Define.
44972         (parse_user_spec): Mark translatable strings.
44973
44974 2000-02-10  Jim Meyering  <meyering@lucent.com>
44975
44976         With these changes, nanosleep.[ch] are finally enough like the other
44977         lib/* replacement files to compile on a few more losing systems.
44978
44979         * lib/nanosleep.h: Don't include config.h.
44980         Remove prototype from declaration of nanosleep.
44981         (PARAMS): Remove now-unneeded definition.
44982         * lib/nanosleep.c: #undef nanosleep.
44983         (rpl_nanosleep): Rename from nanosleep.
44984
44985 2000-02-10  Jim Meyering  <meyering@lucent.com>
44986
44987         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
44988         gnu_nanosleep to rpl_nanosleep.
44989
44990 2000-02-09  Jim Meyering  <meyering@lucent.com>
44991
44992         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
44993         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
44994
44995 2000-02-08  Akim Demaille  <akim@epita.fr>
44996
44997         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
44998         `[' and `]' and remove uses of `changequote'.
44999         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
45000         (AC_SYS_LARGEFILE): Likewise.
45001         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
45002         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
45003         of changequote.
45004         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
45005         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
45006         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
45007         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
45008
45009 2000-02-05  Jim Meyering  <meyering@lucent.com>
45010
45011         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
45012         Remove explicit use of AC_HEADER_TIME.  It is required by
45013         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
45014         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
45015         in autoconf whereby the expansion of the latter ended up preceding
45016         the expansion of its prerequisite, AC_HEADER_TIME.
45017         Reported by Volker Borchert.
45018
45019 2000-02-03  Jim Meyering  <meyering@lucent.com>
45020
45021         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
45022
45023 2000-02-03  Jim Meyering  <meyering@lucent.com>
45024
45025         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
45026         rather than with `#if HAVE_UTMPNAME'.
45027
45028 2000-02-02  Jim Meyering  <meyering@lucent.com>
45029
45030         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
45031         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
45032         Reported by Eli Zaretskii.
45033
45034 2000-02-01  Jim Meyering  <meyering@lucent.com>
45035
45036         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
45037
45038 2000-01-31  Jim Meyering  <meyering@lucent.com>
45039
45040         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
45041         functions.  Add the time.h and sys/time.h headers along with the
45042         AC_REQUIRE'ment of AC_HEADER_TIME.
45043
45044 2000-01-31  Jim Meyering  <meyering@lucent.com>
45045
45046         * lib/nanosleep.h (nanosleep): Guard declaration with
45047         `#if ! HAVE_DECL_NANOSLEEP'.
45048         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
45049         the declaration in that vendor's sys/timers.h.
45050         Reported by Christian Krackowizer.
45051
45052         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
45053         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
45054         (ISPRINT): Likewise.
45055         Reported by Tom Tromey.
45056
45057 2000-01-30  Jim Meyering  <meyering@lucent.com>
45058
45059         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
45060
45061         * m4/prereq.m4 (utmp_includes): Define.
45062         Check for ut_user and ut_name members in both struct utmpx
45063         and struct utmp.
45064
45065 2000-01-30  Jim Meyering  <meyering@lucent.com>
45066
45067         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
45068         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
45069         header files where only utmpx.ut_user is declared.
45070
45071         * lib/readutmp.h (UT_USER): Define.
45072
45073 2000-01-29  Jim Meyering  <meyering@lucent.com>
45074
45075         * m4/lib-check.m4: New file containing library-related checks from
45076         fileutils and sh-utils (textutils had none).
45077
45078 2000-01-28  Jim Meyering  <meyering@lucent.com>
45079
45080         * m4/perl.m4: Change format of warning message to look more like that
45081         from the missing script.  Suggestion from François Pinard.
45082
45083 2000-01-25  Jim Meyering  <meyering@lucent.com>
45084
45085         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
45086         well as time.h in the compile check.
45087         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
45088         Fix typo in cross-compiling case: s/yes/no/.
45089
45090 2000-01-23  Jim Meyering  <meyering@lucent.com>
45091
45092         * m4/jm-macros.m4: Move df-related tests here from
45093         fileutils/configure.in
45094
45095         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
45096         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
45097
45098         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
45099         s/space/ac_fsusage_space/.
45100         (jm_FILE_SYSTEM_USAGE): Take two parameters.
45101
45102         * m4/ftruncate.m4: New file (derived from part of
45103         fileutils/configure.in).
45104         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
45105         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
45106
45107         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
45108         AC_SUBST these here, rather than just in sh-util/configure.in, so
45109         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
45110         all the same.
45111         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
45112         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
45113         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
45114         (AC_SUBST(POW_LIBM)): Likewise.
45115         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
45116
45117 2000-01-23  Jim Meyering  <meyering@lucent.com>
45118
45119         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
45120         obstack.c.
45121
45122 2000-01-22  Jim Meyering  <meyering@lucent.com>
45123
45124         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
45125
45126         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
45127
45128         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
45129         configure.in
45130         (AC_CHECK_HEADERS): Likewise for sh-utils.
45131         (AC_CHECK_HEADERS): Likewise for textutils.
45132         Merge the three lists of headers.
45133
45134         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
45135         from fileutils' configure.in.
45136
45137         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
45138         code. Moved tests into their own function (_jm_DECL_HEADERS) in
45139         check-decl.m4.
45140
45141         * m4/check-decl.m4: Use #if rather than #ifdef.
45142         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
45143         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
45144         (_jm_DECL_HEADERS): Define new function.
45145         (jm_CHECK_DECLARATIONS): Require it.
45146
45147 2000-01-22  Jim Meyering  <meyering@lucent.com>
45148
45149         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
45150         [! HAVE_DECL_STRTOULL]: Declare strtoull.
45151         Required for some AIX systems.  Reported by Christian Krackowizer.
45152         [TESTING] (main): New function.
45153
45154         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
45155         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
45156         letters.
45157
45158         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
45159         iswprint.
45160
45161         * lib/strverscmp.c (ISDIGIT): Define.
45162         (strverscmp): Use ISDIGIT, not isdigit.
45163
45164 2000-01-19  Jim Meyering  <meyering@lucent.com>
45165
45166         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
45167         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
45168         defines `struct timespec' in <sys/time.h>
45169
45170         * m4/c-bs-a.m4: Remove uses of changequote altogether.
45171         Thanks to Akim for explaining.
45172
45173 2000-01-17  Paul Eggert  <eggert@twinsun.com>
45174
45175         * lib/nanosleep.c (nanosleep):
45176         Don't use SA_INTERRUPT to decide whether to call sigaction, as
45177         POSIX.1 doesn't require SA_INTERRUPT and some systems
45178         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
45179         it's been part of POSIX.1 since day 1 (in 1988).
45180
45181 2000-01-17  Jim Meyering  <meyering@lucent.com>
45182
45183         * lib/interlock: Remove unused file.  Reported by François Pinard.
45184
45185 2000-01-16  Paul Eggert  <eggert@twinsun.com>
45186
45187         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
45188         alert, backslash, formfeed, and vertical tab unnecessarily in
45189         shell quoting style.
45190
45191 2000-01-16  Jim Meyering  <meyering@lucent.com>
45192
45193         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
45194         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
45195         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
45196         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
45197
45198 2000-01-16  Jim Meyering  <meyering@lucent.com>
45199
45200         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
45201         because the latter didn't work.
45202
45203 2000-01-15  Jim Meyering  <meyering@lucent.com>
45204
45205         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
45206         (AC_REPLACE_FUNCS): Add memcpy and memset.
45207         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
45208         Add strpbrk.
45209         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
45210
45211 2000-01-12  Jim Meyering  <meyering@lucent.com>
45212
45213         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
45214         (jm_PREREQ): Use it.
45215         (jm_PREREQ_READUTMP): New macro.
45216         (jm_PREREQ): Use it.
45217
45218 2000-01-11  Paul Eggert  <eggert@twinsun.com>
45219
45220         Quote multibyte characters correctly.
45221         * m4/c-bs-a.m4: New file.
45222         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
45223         (jm_PREREQ): Use it.
45224
45225 2000-01-11  Paul Eggert  <eggert@twinsun.com>
45226
45227         * m4/uintmax_t.m4: Port to autoconf 2.13.
45228
45229 2000-01-08  Jim Meyering  <meyering@ascend.com>
45230
45231         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
45232         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
45233
45234 2000-01-04  Jim Meyering  <meyering@ascend.com>
45235
45236         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
45237         jm_STRUCT_DIRENT_D_TYPE.
45238         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
45239         jm_STRUCT_DIRENT_D_INO.
45240         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
45241         jm_STRUCT_UTIMBUF.
45242         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
45243         renamings.
45244         * m4/utime.m4: Likewise.
45245
45246         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
45247         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
45248
45249 2000-01-03  Paul Eggert  <eggert@twinsun.com>
45250
45251         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
45252         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
45253
45254 2000-01-02  Jim Meyering  <meyering@ascend.com>
45255
45256         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
45257         remember if this is necessary.
45258
45259 1999-12-26  Jim Meyering  <meyering@ascend.com>
45260
45261         * m4/jm-macros.m4: Use it here.
45262         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
45263
45264 1999-12-23  Jim Meyering  <meyering@ascend.com>
45265
45266         * m4/jm-macros.m4: Check for clock_gettime (moved from
45267         fileutils/configure.in)
45268         Check for gettimeofday.
45269
45270 1999-12-20  Jim Meyering  <meyering@ascend.com>
45271
45272         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
45273         autoconf-2.14a-1999-12-20.
45274
45275 1999-12-19  Jim Meyering  <meyering@ascend.com>
45276
45277         * m4/lstat-slash.m4: New file.
45278         * m4/jm-macros.m4: Use the new macro:
45279         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
45280
45281 1999-12-07  Jim Meyering  <meyering@ascend.com>
45282
45283         * m4/perl.m4: Require that File::Compare be available, too.
45284         Too many systems seem to lack it.
45285
45286         * m4/strftime.m4: Add checks for most of the cpp macros tested in
45287         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
45288
45289 1999-11-18  Paul Eggert  <eggert@twinsun.com>
45290
45291         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
45292         problem with the QNX 4.25 shell, which doesn't propagate exit
45293         status of failed commands inside shell assignments.
45294
45295 1999-11-17  Jim Meyering  <meyering@ascend.com>
45296
45297         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
45298
45299 1999-11-07  Jim Meyering  <meyering@ascend.com>
45300
45301         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
45302
45303 1999-11-06  Jim Meyering  <meyering@ascend.com>
45304
45305         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
45306         * m4/jm-macros.m4 (jm_MACROS): Use it here.
45307
45308 1999-11-05  Jim Meyering  <meyering@ascend.com>
45309
45310         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
45311         configure.in of textutils, fileutils, and sh-utils into this one
45312         (shared between those packages) file.
45313         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
45314         AC_STRUCT_ST_BLKSIZE.
45315
45316 1999-11-03  Jim Meyering  <meyering@ascend.com>
45317
45318         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
45319         of AC_CHECK_TYPE checks includes unistd.h.
45320         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
45321         Suggestion from Akim Demaille.
45322
45323 1999-10-30  Jim Meyering  <meyering@ascend.com>
45324
45325         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
45326         m4-quoted string.
45327         * m4/ls-mntd-fs.m4: Likewise.
45328         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
45329         * m4/jm-winsz1.m4: Likewise.
45330
45331         * m4/const.m4: Remove file, since the fix made it into the experimental
45332         version of autoconf.
45333         * m4/mktime.m4: Likewise.
45334
45335         * m4/check-type.m4: Remove file, now that the latest version of
45336         AC_CHECK_TYPE takes a third arg to specify additional #includes.
45337
45338         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
45339         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
45340         AC_CHECK_TYPE.
45341
45342 1999-10-04  Jim Meyering  <meyering@ascend.com>
45343
45344         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
45345
45346 1999-09-22  Paul Eggert  <eggert@twinsun.com>
45347
45348         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
45349         2.95.1 bug with HP-UX 10.20.
45350
45351 1999-09-17  Jim Meyering  <meyering@ascend.com>
45352
45353         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
45354         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
45355         due to missing strdup (against sh-utils-2.0).
45356
45357 1999-08-29  Jim Meyering  <meyering@ascend.com>
45358
45359         * m4/jm-macros.m4: Require jm_BISON.
45360         * m4/bison.m4: New file.
45361
45362 1999-08-17  Paul Eggert  <eggert@twinsun.com>
45363
45364         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
45365         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
45366
45367 1999-08-05  Jim Meyering  <meyering@ascend.com>
45368
45369         * m4/getline.m4: Rename test file from conftestdata to conftest.data
45370         to avoid conflicts with `conftest' on 8+3 filesystems.
45371         Suggestion from Eli Zaretskii.
45372
45373 1999-08-04  Jim Meyering  <meyering@ascend.com>
45374
45375         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
45376         fileutils and sh-utils (textutils's getline test was inadequate).
45377         (AM_FUNC_GETLINE): Run this test.
45378         (AC_CHECK_FUNCS): Check for getdelim.
45379         Reported by Bob Proulx.
45380
45381 1999-08-02  Jim Meyering  <meyering@ascend.com>
45382
45383         * m4/jm-macros.m4: Add a comment.
45384
45385 1999-08-01  Paul Eggert  <eggert@twinsun.com>
45386
45387         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
45388         <inttypes.h> defines strtoumax as a macro (and not as a
45389         function).
45390
45391 1999-08-01  Paul Eggert  <eggert@twinsun.com>
45392
45393         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
45394         that we can shift, multiply and divide unsigned long long
45395         values; Ultrix cc can't do it.
45396
45397 1999-08-01  Paul Eggert  <eggert@twinsun.com>
45398
45399         * m4/mktime.m4: New file, which is a preview of what should appear
45400         in the next public autoconf release.
45401
45402 1999-08-01  Paul Eggert  <eggert@twinsun.com>
45403
45404         * m4/lfs.m4: Remove this file.
45405         * m4/largefile.m4: New file.  It contains the old contents of
45406         lfs.m4, except that all names with prefix AC_LFS have been
45407         changed to use the prefix AC_SYS_LARGEFILE instead, to be
45408         compatible with future autoconf versions.  Also, some minor m4
45409         quoting problems have been fixed.
45410
45411 1999-08-01  Paul Eggert  <eggert@twinsun.com>
45412
45413         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
45414         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
45415         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
45416         and simplify the shell code.
45417
45418 1999-08-01  Jim Meyering  <meyering@ascend.com>
45419
45420         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
45421         m4.
45422
45423 1999-07-20  Jim Meyering  <meyering@ascend.com>
45424
45425         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
45426
45427 1999-07-15  Jim Meyering  <meyering@ascend.com>
45428
45429         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
45430
45431 1999-05-22  Jim Meyering  <meyering@ascend.com>
45432
45433         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
45434
45435 1999-05-20  Jim Meyering  <meyering@ascend.com>
45436
45437         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
45438         Add a colon after each `then' in case $4 is empty.
45439
45440 1999-05-16  Jim Meyering  <meyering@ascend.com>
45441
45442         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
45443
45444 1999-05-10  Jim Meyering  <meyering@ascend.com>
45445
45446         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
45447
45448         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
45449         AC_FUNC_MKTIME.
45450
45451 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
45452
45453         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
45454
45455 1999-05-04  Paul Eggert  <eggert@twinsun.com>
45456
45457         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
45458         not CPPFLAGS, so that linking works correctly in IRIX.
45459
45460 1999-04-30  Paul Eggert  <eggert@twinsun.com>
45461
45462         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
45463
45464 1999-04-20  Paul Eggert  <eggert@twinsun.com>
45465
45466         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
45467         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
45468         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
45469         jm_AC_TYPE_UNSIGNED_LONG_LONG.
45470         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
45471
45472         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
45473
45474 1999-04-20  Jim Meyering  <meyering@ascend.com>
45475
45476         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
45477         AC_REPLACE xstroull if necessary.  From Paul Eggert.
45478         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
45479
45480 1999-04-18  Jim Meyering  <meyering@ascend.com>
45481
45482         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
45483         * m4/jm-macros.m4: Use it.
45484
45485 1999-04-06  Jim Meyering  <meyering@ascend.com>
45486
45487         * m4/strftime.m4: Remove test for %f.
45488
45489 1999-03-29  Jim Meyering  <meyering@ascend.com>
45490
45491         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
45492         superset of the AC_TYPE_* checks in the textutils, fileutils,
45493         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
45494         AC_TYPE_PID_T.
45495
45496 1999-03-28  Jim Meyering  <meyering@ascend.com>
45497
45498         * m4/jm-macros.m4: Define GNU_PACKAGE here.
45499         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
45500         replaced e.g., in the *.sh files of the sh-utils.
45501
45502 1999-03-20  Jim Meyering  <meyering@ascend.com>
45503
45504         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
45505         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
45506         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
45507
45508 1999-03-19  Jim Meyering  <meyering@ascend.com>
45509
45510         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
45511
45512 1999-03-12  Jim Meyering  <meyering@ascend.com>
45513
45514         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
45515
45516 1999-03-07  Jim Meyering  <meyering@ascend.com>
45517
45518         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
45519         declared.
45520
45521 1999-02-17  Jim Meyering  <meyering@ascend.com>
45522
45523         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
45524         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
45525
45526 1999-02-07  Jim Meyering  <meyering@ascend.com>
45527
45528         * m4/group-member.m4: New file -- extracted from sh-utils'
45529         configure.in.
45530
45531         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
45532         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
45533
45534 1999-02-06  Jim Meyering  <meyering@ascend.com>
45535
45536         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
45537         * m4/fnmatch.m4: Likewise.
45538         * m4/getgroups.m4: Likewise.
45539         * m4/lstat.m4: Likewise.
45540         * m4/malloc.m4: Likewise.
45541         * m4/putenv.m4: Likewise.
45542         * m4/realloc.m4: Likewise.
45543         * m4/regex.m4: Likewise.
45544         * m4/stat.m4: Likewise.
45545         * m4/strftime.m4: Likewise.
45546         Suggestion from Alain Magloire.
45547
45548         * m4/chown.m4: Use `.$ac_objext', not `.o'.
45549         * m4/fnmatch.m4: Likewise.
45550         * m4/getgroups.m4: Likewise.
45551         * m4/getline.m4: Likewise.
45552         * m4/lstat.m4: Likewise.
45553         * m4/malloc.m4: Likewise.
45554         * m4/memcmp.m4: Likewise.
45555         * m4/putenv.m4: Likewise.
45556         * m4/realloc.m4: Likewise.
45557         * m4/regex.m4: Likewise.
45558         * m4/stat.m4: Likewise.
45559         * m4/strftime.m4: Likewise.
45560         Suggestion from Alain Magloire.
45561
45562         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
45563         an argument.
45564
45565         * m4/regex.m4: Add a run-time Test for proper operation of
45566         re_compile_pattern.
45567
45568 1999-01-31  Jim Meyering  <meyering@ascend.com>
45569
45570         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
45571
45572 1999-01-30  Jim Meyering  <meyering@ascend.com>
45573
45574         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
45575
45576         * m4/jm-mktime.m4: Make this a wrapper around the official
45577         AM_FUNC_MKTIME rather than my private copy, now that the official one
45578         is up to date.
45579         * m4/mktime.m4: Remove file.
45580
45581         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
45582         * m4/uptime.m4: Likewise.
45583         * m4/uintmax_t.m4: Likewise.
45584
45585 1999-01-28  Jim Meyering  <meyering@ascend.com>
45586
45587         * m4/jm-macros.m4: Use jm_AFS.
45588         * m4/afs.m4: New file (from fileutils' configure.in).
45589
45590         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
45591         * m4/chown.m4: Likewise.
45592         * m4/d-ino.m4: Likewise.
45593         * m4/d-type.m4: Likewise.
45594         * m4/fnmatch.m4: Likewise.
45595         * m4/getgroups.m4: Likewise.
45596         * m4/gettext.m4: Likewise.
45597         * m4/jm-mktime.m4: Likewise.
45598         * m4/jm-winsz2.m4: Likewise.
45599         * m4/lcmessage.m4: Likewise.
45600         * m4/ls-mntd-fs.m4: Likewise.
45601         * m4/malloc.m4: Likewise.
45602         * m4/memcmp.m4: Likewise.
45603         * m4/putenv.m4: Likewise.
45604         * m4/realloc.m4: Likewise.
45605         * m4/st_mtim.m4: Likewise.
45606         * m4/strftime.m4: Likewise.
45607
45608 1999-01-16  Jim Meyering  <meyering@ascend.com>
45609
45610         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
45611         (ARGMATCH_DIE_DECL): Define.
45612
45613 1999-01-12  Jim Meyering  <meyering@ascend.com>
45614
45615         * m4/Makefile.am.in: Rewrite to avoid using fmt.
45616         Reported by Lars Hecking.
45617
45618 1999-01-10  Jim Meyering  <meyering@ascend.com>
45619
45620         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
45621         gross kludge.
45622         * m4/inttypes_h.m4: Likewise.
45623         * m4/lstat.m4: Likewise.
45624         * m4/malloc.m4: Likewise.
45625         * m4/readdir.m4: Likewise.
45626         * m4/realloc.m4: Likewise.
45627         * m4/st_dm_mode.m4: Likewise.
45628         * m4/stat.m4: Likewise.
45629         * m4/utimbuf.m4: Likewise.
45630         * m4/utimes.m4: Likewise.
45631
45632         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
45633         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
45634         comments in config.h.in are meaningful.
45635
45636         * m4/jm-macros.m4: Require autoconf-2.13 here.
45637
45638         * m4/regex.m4: By default, don't use the included regex.c on systems
45639         with glibc 2.  Suggestion from Uli Drepper.
45640
45641 1999-01-02  Jim Meyering  <meyering@ascend.com>
45642
45643         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
45644
45645 1998-12-18  Jim Meyering  <meyering@ascend.com>
45646
45647         * m4/Makefile.am.in (Makefile.am): Simplify rule.
45648         Based on a suggestion from Lars Hecking.
45649
45650 1998-11-16  Paul Eggert  <eggert@twinsun.com>
45651
45652         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
45653
45654 1998-11-16  Jim Meyering  <meyering@ascend.com>
45655
45656         * m4/lfs.m4: Double-quote the `uname...` expression.
45657
45658 1998-11-14  Jim Meyering  <meyering@ascend.com>
45659
45660         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
45661         * m4/stat.m4: Likewise.
45662
45663 1998-11-03  Jim Meyering  <meyering@ascend.com>
45664
45665         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
45666         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
45667
45668 1998-10-18  Jim Meyering  <meyering@ascend.com>
45669
45670         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
45671
45672 1998-10-17  Jim Meyering  <meyering@ascend.com>
45673
45674         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
45675         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
45676         calls for those previously hard-coded headers.  Instead, take a new
45677         parameter.
45678         (jm_CHECK_DECLARATIONS): Reflect interface change.
45679         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
45680         (jm_CHECK_DECL_LOCALTIME_R): New macro.
45681
45682         * m4/mktime.m4: Test for spring-forward gap before long-running test.
45683
45684 1998-10-14  Jim Meyering  <meyering@ascend.com>
45685
45686         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
45687         instead of "TZ=America/Vancouver".  From Paul Eggert.
45688
45689 1998-10-11  Jim Meyering  <meyering@ascend.com>
45690
45691         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
45692         This adds a test for a recently added compatibility fix for mktime.c.
45693         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
45694
45695 1998-09-27  Jim Meyering  <meyering@ascend.com>
45696
45697         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
45698
45699         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
45700         ../configure.in, including a change from Gordon Matzigkeit to allow
45701         cross-compiling for the Hurd.
45702
45703         * m4/glibc.m4: New file/macro to test for the GNU C Library
45704         versions 1 and 2.  From Gordon Matzigkeit.
45705         Indent.
45706
45707 1998-09-21  Jim Meyering  <meyering@ascend.com>
45708
45709         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
45710
45711 1998-08-18  Paul Eggert  <eggert@twinsun.com>
45712
45713         Port nanosecond-resolution times to UnixWare 2.1.2 and
45714         pedantic Solaris 2.6.
45715
45716         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
45717         AC_STRUCT_ST_MTIM.
45718         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
45719         Generate name of ns member, instead of just 1 or undef.
45720         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
45721
45722 1998-08-15  Jim Meyering  <meyering@ascend.com>
45723
45724         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
45725         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
45726         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
45727         instead of jm_TYPE_SSIZE_T.
45728
45729 1998-08-12  Jim Meyering  <meyering@ascend.com>
45730
45731         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
45732
45733 1998-08-02  Jim Meyering  <meyering@ascend.com>
45734
45735         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
45736         in acconfig.h manually.
45737
45738 1998-07-31  Paul Eggert  <eggert@twinsun.com>
45739
45740         * m4/st_mtim.m4: New file.
45741
45742 1998-07-28  Jim Meyering  <meyering@ascend.com>
45743
45744         * m4/utimes.m4: Undef stat.
45745
45746 1998-07-25  Jim Meyering  <meyering@ascend.com>
45747
45748         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
45749         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
45750
45751 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
45752
45753         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
45754         uid and gid actually remain unchanged.
45755
45756 1998-07-07  Jim Meyering  <meyering@ascend.com>
45757
45758         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
45759
45760 1998-07-04  Jim Meyering  <meyering@ascend.com>
45761
45762         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
45763         to prove that this macro can be used in packages without regex.c.
45764
45765 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
45766
45767         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
45768         is to be used.
45769
45770 1998-07-03  Jim Meyering  <meyering@ascend.com>
45771
45772         * m4/gettext.m4: Add -lintl if it's found to be necessary.
45773
45774         * m4/gettext.m4: New file -- from gettext-0.10.35.
45775         * m4/lcmessage.m4: Likewise.
45776         * m4/progtest.m4: Likewise.
45777
45778         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
45779         * m4/jm-macros.m4: Require the new macro.
45780
45781 1998-06-29  Jim Meyering  <meyering@ascend.com>
45782
45783         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
45784         for the definition of NGROUPS (used in a system header included
45785         by sys/mount.h).
45786
45787 1998-06-28  Jim Meyering  <meyering@ascend.com>
45788
45789         * m4/ls-mntd-fs.m4: New file.
45790         * m4/fstypename.m4: New file.
45791
45792         * m4/jm-macros.m4: Require the new macro.
45793         * m4/jm-glibc-io.m4: New file.
45794
45795 1998-05-19  Jim Meyering  <meyering@ascend.com>
45796
45797         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
45798         * m4/lchown.m4: New file.
45799
45800         * m4/Makefile.am.in: New file.
45801         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
45802
45803 1998-05-14  Jim Meyering  <meyering@ascend.com>
45804
45805         * m4/Makefile.am (EXTRA_DIST): Add them.
45806         * m4/jm-macros.m4: New file.
45807         * m4/utimbuf.m4: New file.
45808
45809 1998-05-12  Jim Meyering  <meyering@ascend.com>
45810
45811         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
45812
45813 1998-05-11  Jim Meyering  <meyering@ascend.com>
45814
45815         * m4/isc-posix.m4: New file.
45816
45817 1998-05-10  Jim Meyering  <meyering@ascend.com>
45818
45819         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
45820
45821 1998-05-09  Jim Meyering  <meyering@ascend.com>
45822
45823         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
45824         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
45825         with automake.
45826
45827         * m4/ssize_t.m4: New file.
45828         * m4/mktime.m4: Remove file -- the new automake has this now.
45829
45830 1998-04-26  Jim Meyering  <meyering@ascend.com>
45831
45832         * m4/assert.m4: New file.
45833         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
45834
45835 1998-04-05  Jim Meyering  <meyering@ascend.com>
45836
45837         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
45838         (jm_PREREQ): Use it here.
45839
45840 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
45841
45842         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
45843         in acconfig.h.
45844
45845 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
45846
45847         * m4/prereq.m4: New file.
45848         * m4/error.m4: New file.
45849         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
45850
45851 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
45852
45853         * m4/getline.m4: Don't set am_cv_func_working_getline before the
45854         cache-check for the same variable -- that defeated the purpose of
45855         the test; the test program was never run.  This was a problem only
45856         on systems with losing getline functions -- HP-UX 10.20 is one.
45857         Reported by Bjorn Helgaas.
45858
45859 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
45860
45861         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
45862
45863 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
45864
45865         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
45866
45867         * m4/const.m4: New file.  Use an initializer in this declaration
45868         typedef int charset[2]; const charset x;
45869         Reported by Bob Glickstein.
45870
45871 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
45872
45873         * m4/chown.m4: Fix reversed types on -1 args to chown.
45874         From Kaveh Ghazi.
45875
45876 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
45877
45878         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
45879         Add lseek and memchr.
45880
45881         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
45882         T.E.Dickey <dickey@clark.net> said that some older preprocessors
45883         have a 20-character limit on names.
45884
45885 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
45886
45887         * m4/inttypes_h.m4: New file.
45888         * m4/uintmax_t.m4: New file.
45889         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
45890
45891
45892         -----
45893
45894         Local Variables:
45895         coding: utf-8
45896         End:
45897
45898         Copyright (C) 1997-2008 Free Software Foundation, Inc.
45899
45900         Copying and distribution of this file, with or without
45901         modification, are permitted provided the copyright notice
45902         and this notice are preserved.