d37da3ba80ce7d590c46cd7535ede6eaee0ab373
[gnulib.git] / ChangeLog
1 2008-12-06  Bruno Haible  <bruno@clisp.org>
2
3         Fix a c-stack test failure on MacOS X.
4         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
5         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
6         handler for SIGBUS as well.
7         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
8         install a signal handler for SIGBUS as well.
9         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
10
11 2008-12-06  Bruno Haible  <bruno@clisp.org>
12
13         Advocacy documentation.
14         * doc/gnulib-intro.texi (Benefits): New section.
15         * doc/gnulib.texi: Update.
16
17 2008-12-06  Bruno Haible  <bruno@clisp.org>
18
19         Document the 'manywarnings' module.
20         * doc/manywarnings.texi: New file.
21         * doc/gnulib.texi: Include it.
22
23 2008-12-05  Eric Blake  <ebb9@byu.net>
24
25         tests: silence some gcc warnings
26         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
27         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
28         type mismatches.
29
30 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31             Bruno Haible  <bruno@clisp.org>
32
33         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
34
35 2008-11-29  Jim Meyering  <meyering@redhat.com>
36
37         fts: fix a thinko
38         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
39         (set_stat_type): Return S_IF*-valued "type" directly.
40         Prompted by James Youngman's spotting a related bug.
41         Confirmed by further testing through find.
42
43         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
44         * lib/fts.c (D_TYPE): Define.
45         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
46         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
47         (s_ifmt_shift_bits): New function.
48         (set_stat_type): New function.
49         (fts_build): When not calling fts_stat, call set_stat_type
50         to propagate dirent.d_type info to fts_read caller.
51         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
52         fts_statp->st_mode type information may be valid.
53
54 2008-11-28  Simon Josefsson  <simon@josefsson.org>
55
56         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
57         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
58         <sds@gnu.org>.
59
60 2008-11-20  Bruno Haible  <bruno@clisp.org>
61
62         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
63         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
64         INCLUDE_NEXT.
65         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
66         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
67         * modules/math (Makefile.am): Substitute
68         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
69         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
70
71 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
72             Bruno Haible  <bruno@clisp.org>
73
74         * lib/stdint.in.h: Define all type macros so that their expansion is
75         a single typedef'ed token. Fixes a compilation failure in Boost which
76         does "using ::int8_t;".
77
78 2008-11-18  Simon Josefsson  <simon@josefsson.org>
79
80         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
81         gl_MANYWARN_ALL_GCC.
82         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
83         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
84         * modules/manywarnings: New file.
85         * MODULES.html.sh: Mention manywarnings module.
86
87 2008-11-18  Bruno Haible  <bruno@clisp.org>
88
89         * doc/gnulib-tool.texi (Unit tests): New section.
90
91 2008-11-18  Simon Josefsson  <simon@josefsson.org>
92
93         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
94         paths like 'lib/po/foo.po'.
95
96 2008-11-17  Simon Josefsson  <simon@josefsson.org>
97
98         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
99         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
100
101 2008-11-17  Simon Josefsson  <simon@josefsson.org>
102
103         * m4/warnings.m4: Use CPPFLAGS to really check whether the
104         parameter works.
105
106 2008-11-17  Simon Josefsson  <simon@josefsson.org>
107
108         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
109
110 2008-11-17  Bruce Korb  <bkorb@gnu.org>
111
112         * modules/parse-duration-tests: New file.
113         * tests/test-parse-duration.sh: New file.
114         * tests/test-parse-duration.c: New file.
115
116         New module 'parse-duration'.
117         * lib/parse-duration.h: New file.
118         * lib/parse-duration.c: New file.
119         * modules/parse-duration: New file.
120
121 2008-11-17  Bruno Haible  <bruno@clisp.org>
122
123         * tests/test-select-out.sh: Comment out the first pipe test.
124         Reported by Simon Josefsson.
125
126 2008-11-17  Bruno Haible  <bruno@clisp.org>
127
128         * modules/getaddrinfo (Depends-on): Add servent, hostent.
129         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
130         gl_HOSTENT.
131
132 2008-11-17  Bruno Haible  <bruno@clisp.org>
133
134         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
135         -lnetwork and -lnet. Needed for Haiku and BeOS.
136
137 2008-11-16  Bruno Haible  <bruno@clisp.org>
138
139         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
140
141 2008-11-16  Bruno Haible  <bruno@clisp.org>
142
143         Avoid test failure on Haiku.
144         * tests/test-fsync.c: Include <errno.h>.
145         (main): Don't require that fsync (0) fails.
146
147 2008-11-15  Bruno Haible  <bruno@clisp.org>
148
149         New module 'hostent'.
150         * modules/hostent: New file.
151         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
152
153 2008-11-15  Bruno Haible  <bruno@clisp.org>
154
155         New module 'servent'.
156         * modules/servent: New file.
157         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
158
159 2008-11-15  Bruno Haible  <bruno@clisp.org>
160
161         Avoid generating same test program with two different rules.
162         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
163         test-frexp to test-frexp-nolibm.
164         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
165         test-frexpl to test-frexpl-nolibm.
166
167 2008-11-15  Bruno Haible  <bruno@clisp.org>
168
169         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
170         $(FREXPL_LIBM).
171
172 2008-11-15  Bruno Haible  <bruno@clisp.org>
173
174         * lib/netdb.in.h: Activate the definitions also when the system's
175         <netdb.h> has 'struct addrinfo'.
176         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
177         EAI_OVERFLOW or AI_NUMERICSERV.
178         * doc/posix-headers/netdb.texi: Document the problem.
179
180 2008-11-15  Bruno Haible  <bruno@clisp.org>
181
182         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
183
184         Make the 'sched' module work on platforms where <sched.h> exists but
185         is incomplete (such as Haiku).
186         * lib/sched.in.h; Include the system's <sched.h> if it exists.
187         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
188         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
189         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
190         HAVE_STRUCT_SCHED_PARAM.
191         * modules/sched (Depends-on): Add include_next.
192         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
193         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
194         * doc/posix-headers/sched.texi: Document the issue.
195
196 2008-11-13  Jim Meyering  <meyering@redhat.com>
197
198         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
199         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
200         test would fail due to the difference in the Report bugs to ...
201         line.  The expected address is empty, "<>", while the actual
202         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
203
204 2008-11-12  Bruno Haible  <bruno@clisp.org>
205
206         lstat: don't compile lstat.c on systems lacking lstat
207         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
208         which don't have lstat; this is handled by lib/sys_stat.in.h already.
209         Reported by Daniel P. Berrange via Jim Meyering.
210
211 2008-11-12  Jim Meyering  <meyering@redhat.com>
212
213         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
214
215 2008-11-12  Simon Josefsson  <simon@josefsson.org>
216
217         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
218         instead.
219
220 2008-11-12  Bruno Haible  <bruno@clisp.org>
221
222         * lib/unicodeio.c: Include unistr.h.
223         (utf8_wctomb): Remove function.
224         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
225
226 2008-11-12  Simon Josefsson  <simon@josefsson.org>
227
228         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
229         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
230         <bruno@clisp.org>.
231         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
232
233 2008-11-12  Simon Josefsson  <simon@josefsson.org>
234
235         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
236         * doc/gnulib.texi: Add section for warnings.
237
238 2008-11-11  Bruno Haible  <bruno@clisp.org>
239
240         * lib/sockets.h: Add a comment.
241
242 2008-11-11  Karl Berry  <karl@gnu.org>
243
244         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
245
246 2008-11-11  Eric Blake  <ebb9@byu.net>
247
248         fdl.texi: avoid git symlinks
249         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
250
251 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
252
253         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
254
255 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
256
257         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
258         (gl_WARN_ADD): Substitute $2 if literal.
259
260 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
261
262         * m4/warning.m4: Remove.
263
264 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
265
266         * m4/warnings.m4: Almost complete rewrite. :-)
267
268 2008-11-10  Simon Josefsson  <simon@josefsson.org>
269
270         * modules/warnings: New module.
271         * m4/warnings.m4: New file.
272         * MODULES.html.sh: Mention warnings module.
273         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
274         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
275
276 2008-11-10  Eric Blake  <ebb9@byu.net>
277
278         fdl.texi: make a symlink to the latest version
279         * doc/standards.texi: Revert today's earlier change.
280         * doc/fdl-1.2.texi: Rename from old fdl.texi...
281         * doc/fdl.texi: ...and replace this with a symlink to the newer
282         fdl-1.3.texi.
283
284 2008-11-10  Bruno Haible  <bruno@clisp.org>
285
286         * tests/test-select-fd.c (main): Accept the result file name as fourth
287         argument.
288         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
289         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
290
291 2008-11-10  Bruno Haible  <bruno@clisp.org>
292
293         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
294         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
295         as autoconf-substituted macros.
296         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
297         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
298         gl_NETDB_H_DEFAULTS. Set these variables.
299         * modules/netdb (Makefile.am): Substitute these variables.
300
301 2008-11-10  Eric Blake  <ebb9@byu.net>
302
303         standards.texi: include correct file for FDL 1.3
304         * doc/standards.texi (GNU Free Documentation License): Change
305         include file to pull in FDL 1.3, not 1.2.
306
307         fdl.texi: revert accidental change to license
308         * doc/fdl.texi: This is FDL 1.2, not 1.3.
309
310 2008-11-10  Bruno Haible  <bruno@clisp.org>
311
312         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
313         cross-compiling guesses also when the native compile gives no result.
314
315 2008-11-10  Bruno Haible  <bruno@clisp.org>
316
317         * lib/spawni.c (__spawni): Force variable into the stack.
318
319 2008-11-10  Bruno Haible  <bruno@clisp.org>
320
321         Add support for Haiku.
322         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
323         glibc and BeOS, but also on Haiku.
324         * lib/fpurge.c (fpurge): Likewise.
325         * lib/freadable.c (freadable): Likewise.
326         * lib/freadahead.c (freadahead): Likewise.
327         * lib/freading.c (freading): Likewise.
328         * lib/freadptr.c (freadptr): Likewise.
329         * lib/freadseek.c (freadptrinc): Likewise.
330         * lib/fseeko.c (rpl_fseeko): Likewise.
331         * lib/fseterr.c (fseterr): Likewise.
332         * lib/fwritable.c (fwritable): Likewise.
333         * lib/fwriting.c (fwriting): Likewise.
334         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
335
336 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
337
338         * lib/config.charset: Treat Haiku like BeOS.
339
340 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
341
342         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
343         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
344
345 2008-11-08  Bruno Haible  <bruno@clisp.org>
346
347         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
348         AC_CACHE_CHECK.
349
350 2008-11-08  Bruno Haible  <bruno@clisp.org>
351
352         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
353
354 2008-11-08  Bruno Haible  <bruno@clisp.org>
355
356         * tests/test-select-fd.c: New file.
357         * tests/test-select-in.sh: New file.
358         * tests/test-select-out.sh: New file.
359         * tests/test-select-stdin.c: New file.
360         * modules/select-tests (Files): Add the new files.
361         (Depends-on): Add gettimeofday.
362         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
363         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
364         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
365
366 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
367             Bruno Haible  <bruno@clisp.org>
368
369         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
370
371 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
372
373         * build-aux/pmccabe2html: Added support for C++ source files.
374
375 2008-11-05  Ben Pfaff  <blp@gnu.org>
376
377         Fix lib/close.c build on Windows.
378         * modules/close (Files): Add lib/w32sock.h.
379
380 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
381
382         Accept Bison's NEWS format.
383         * build-aux/announce-gen (print_news_deltas): Tweak
384         $re_prefix.
385
386 2008-11-04  Bruno Haible  <bruno@clisp.org>
387
388         * modules/random_r (Maintainer): Add glibc.
389
390 2008-11-04  Simon Josefsson  <simon@josefsson.org>
391
392         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
393         by karl@freefriends.org (Karl Berry).
394         * doc/alloca.texi: Likewise.
395         * doc/c-ctype.texi: Likewise.
396         * doc/c-strcase.texi: Likewise.
397         * doc/c-strcaseeq.texi: Likewise.
398         * doc/c-strcasestr.texi: Likewise.
399         * doc/c-strstr.texi: Likewise.
400         * doc/c-strtod.texi: Likewise.
401         * doc/c-strtold.texi: Likewise.
402         * doc/ctime.texi: Likewise.
403         * doc/error.texi: Likewise.
404         * doc/fdl.texi: Likewise.
405         * doc/gcd.texi: Likewise.
406         * doc/getdate.texi: Likewise.
407         * doc/gnulib-intro.texi: Likewise.
408         * doc/gnulib-tool.texi: Likewise.
409         * doc/gnulib.texi: Likewise.
410         * doc/inet_ntoa.texi: Likewise.
411         * doc/maintain.texi: Likewise.
412         * doc/make-stds.texi: Likewise.
413         * doc/quote.texi: Likewise.
414         * doc/regexprops-generic.texi: Likewise.
415         * doc/standards.texi: Likewise.
416         * doc/verify.texi: Likewise.
417         * doc/visibility.texi: Likewise.
418         * doc/gnulib.texi (GNU Free Documentation License): Include
419         fdl-1.3.texi instead of fdl.texi.
420
421 2008-11-04  Simon Josefsson  <simon@josefsson.org>
422
423         * doc/fdl-1.3.texi: New file, from
424         <http://www.gnu.org/licenses/fdl-1.3.texi>.
425         * modules/fdl-1.3: Add.
426         * MODULES.html.sh: Add fdl-1.3.
427
428 2008-11-03  Bruno Haible  <bruno@clisp.org>
429
430         Make determination of absolute name of header file work with AIX xlc.
431         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
432         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
433         preprocessing.
434         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
435         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
436
437 2008-11-03  Simon Josefsson  <simon@josefsson.org>
438
439         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
440         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
441         <ludo@gnu.org>.
442
443 2008-11-02  Bruno Haible  <bruno@clisp.org>
444
445         Mark 'strpbrk' obsolete.
446         * modules/strpbrk (Status, Notice): New sections.
447         * modules/strtok_r (Depends-on): Add strpbrk.
448
449 2008-11-02  Bruno Haible  <bruno@clisp.org>
450
451         Mark 'strdup' obsolete.
452         * modules/strdup (Status, Notice): New sections.
453         * modules/findprog (Depends-on): Add strdup.
454         * modules/getaddrinfo (Depends-on): Likewise.
455         * modules/localename (Depends-on): Likewise.
456         * modules/relocatable-lib (Depends-on): Likewise.
457         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
458         * modules/relocatable-prog (Depends-on): Likewise.
459         * modules/trim (Depends-on): Likewise.
460         * modules/unictype/gen-ctype (Depends-on): Likewise.
461         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
462
463 2008-11-02  Bruno Haible  <bruno@clisp.org>
464
465         Mark 'strcspn' obsolete.
466         * modules/strcspn (Status, Notice): New sections.
467
468 2008-11-02  Bruno Haible  <bruno@clisp.org>
469
470         Mark 'rmdir' obsolete.
471         * modules/rmdir (Status, Notice): New sections.
472         * modules/clean-temp (Depends-on): Add rmdir.
473         * modules/openat (Depends-on): Likewise.
474
475 2008-11-02  Bruno Haible  <bruno@clisp.org>
476
477         Mark 'raise' obsolete.
478         * modules/raise (Status, Notice): New sections.
479         (Include): Specify <signal.h>.
480         * modules/stdio (Depends-on): Add raise.
481         * modules/write (Depends-on): Likewise.
482
483 2008-11-02  Bruno Haible  <bruno@clisp.org>
484
485         Mark 'memset' obsolete.
486         * modules/memset (Status, Notice): New sections.
487
488 2008-11-02  Bruno Haible  <bruno@clisp.org>
489
490         Mark 'memmove' obsolete.
491         * modules/memmove (Status, Notice): New sections.
492         * modules/argp (Depends-on): Add memmove.
493         * modules/argz (Depends-on): Likewise.
494         * modules/canonicalize (Depends-on): Likewise.
495         * modules/canonicalize-lgpl (Depends-on): Likewise.
496         * modules/fts (Depends-on): Likewise.
497         * modules/getcwd (Depends-on): Likewise.
498         * modules/human (Depends-on): Likewise.
499         * modules/regex (Depends-on): Likewise.
500         * modules/striconveh (Depends-on): Likewise.
501         * modules/trim (Depends-on): Likewise.
502         * modules/unistr/u8-move (Depends-on): Likewise.
503         * modules/unistr/u16-move (Depends-on): Likewise.
504         * modules/unistr/u32-move (Depends-on): Likewise.
505
506 2008-11-02  Bruno Haible  <bruno@clisp.org>
507
508         Mark 'memcpy' obsolete.
509         * modules/memcpy (Status, Notice): New sections.
510
511 2008-11-02  Bruno Haible  <bruno@clisp.org>
512
513         Mark 'memcmp' obsolete.
514         * modules/memcmp (Status, Notice): New sections.
515         * modules/argmatch (Depends-on): Add memchr.
516         * modules/backupfile (Depends-on): Likewise.
517         * modules/c-strcasestr (Depends-on): Likewise.
518         * modules/crypto/des (Depends-on): Likewise.
519         * modules/csharpcomp (Depends-on): Likewise.
520         * modules/fnmatch (Depends-on): Likewise.
521         * modules/git-merge-changelog (Depends-on): Likewise.
522         * modules/isnand (Depends-on): Likewise.
523         * modules/isnand-nolibm (Depends-on): Likewise.
524         * modules/isnanf (Depends-on): Likewise.
525         * modules/isnanf-nolibm (Depends-on): Likewise.
526         * modules/isnanl (Depends-on): Likewise.
527         * modules/isnanl-nolibm (Depends-on): Likewise.
528         * modules/mbchar (Depends-on): Likewise.
529         * modules/memcoll (Depends-on): Likewise.
530         * modules/quotearg (Depends-on): Likewise.
531         * modules/regex (Depends-on): Likewise.
532         * modules/relocatable-prog (Depends-on): Likewise.
533         * modules/same (Depends-on): Likewise.
534         * modules/signbit (Depends-on): Likewise.
535         * modules/strcasestr-simple (Depends-on): Likewise.
536         * modules/unictype/gen-ctype (Depends-on): Likewise.
537         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
538         * modules/uniname/uniname (Depends-on): Likewise.
539         * modules/unistr/u8-cmp (Depends-on): Likewise.
540
541 2008-11-02  Bruno Haible  <bruno@clisp.org>
542
543         Mark 'memchr' obsolete.
544         * modules/memchr (Status, Notice): New sections.
545         * modules/argp (Depends-on): Add memchr.
546         * modules/base64 (Depends-on): Likewise.
547         * modules/c-strcasestr (Depends-on): Likewise.
548         * modules/chdir-long (Depends-on): Likewise.
549         * modules/fnmatch (Depends-on): Likewise.
550         * modules/getsubopt (Depends-on): Likewise.
551         * modules/git-merge-changelog (Depends-on): Likewise.
552         * modules/glob (Depends-on): Likewise.
553         * modules/strcasestr-simple (Depends-on): Likewise.
554         * modules/strnlen (Depends-on): Likewise.
555
556 2008-11-02  Bruno Haible  <bruno@clisp.org>
557
558         Mark 'atexit' obsolete.
559         * modules/atexit (Status, Notice): New sections.
560         * modules/chdir-long (Depends-on): Add atexit.
561         * modules/wait-process (Depends-on): Likewise.
562
563 2008-11-02  Bruno Haible  <bruno@clisp.org>
564
565         * gnulib-tool: New option --with-obsolete.
566         (func_usage): Document it.
567         (func_modules_transitive_closure): Drop obsolete dependencies if
568         incobsolete is not true.
569         (func_import): Read and save the incobsolete variable to the cache.
570
571 2008-11-02  Bruno Haible  <bruno@clisp.org>
572
573         * modules/TEMPLATE-EXTENDED: New field 'Status'.
574         * gnulib-tool: New option --extract-status.
575         (func_usage): Document it.
576         (sed_extract_prog): Recognize it.
577         (func_get_status): New function.
578
579 2008-10-30  Simon Josefsson  <simon@josefsson.org>
580
581         * modules/sockets (License): Change from LGPL to LGPLv2+.
582
583 2008-10-28  Simon Josefsson  <simon@josefsson.org>
584
585         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
586
587 2008-10-28  Simon Josefsson  <simon@josefsson.org>
588
589         * MODULES.html.sh (Support for systems lacking POSIX:2001):
590         Mention times and sys_times.
591         * modules/sys_times, modules/sys_times-tests: New modules.
592         * modules/times, modules/times-tests: Likewise
593         * m4/sys_times_h.m4: New file.
594         * lib/sys_times.in.h: Likewise
595         * lib/times.c: Likewise.
596         * tests/test-sys_times.c: Likewise.
597         * tests/test-times.c: Likewise.
598         * doc/posix-headers/sys_times.texi: Update.
599         * doc/posix-functions/times.texi: Update.
600
601 2008-10-28  Jim Meyering  <meyering@redhat.com>
602
603         * modules/tempname (Depends-on): Add lstat.
604
605         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
606
607 2008-10-28  Simon Josefsson  <simon@josefsson.org>
608
609         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
610         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
611         using idiom used elsewhere in gnulib.
612
613 2008-10-27  Jim Meyering  <meyering@redhat.com>
614
615         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
616
617 2008-10-27  Simon Josefsson  <simon@josefsson.org>
618
619         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
620         TESTS_ENVIRONMENT, for shell scripts that needs to call built
621         programs.
622         * tests/test-argp-2.sh: Use $EXEEXT when needed.
623
624 2008-10-27  Simon Josefsson  <simon@josefsson.org>
625
626         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
627
628 2008-10-27  Bruno Haible  <bruno@clisp.org>
629
630         * tests/test-lstat.c: Include <stdio.h>.
631
632 2008-10-27  Simon Josefsson  <simon@josefsson.org>
633
634         * modules/lstat-tests: New module.
635         * tests/test-lstat.c: New file.
636
637 2008-10-26  Jim Meyering  <meyering@redhat.com>
638
639         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
640
641 2008-10-26  Simon Josefsson  <simon@josefsson.org>
642             Bruno Haible  <bruno@clisp.org>
643
644         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
645         * modules/configmake (Include): Add a note that the include must come
646         after all system headers.
647         * lib/javaversion.c: Include configmake.h after all other includes.
648
649 2008-10-26  Bruno Haible  <bruno@clisp.org>
650
651         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
652         HAVE_STRUCT_RANDOM_DATA to 1.
653         (gl_STDLIB_H): Simplify.
654
655 2008-10-26  Simon Josefsson  <simon@josefsson.org>
656
657         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
658         substitute HAVE_STRUCT_RANDOM_DATA.
659         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
660         random_data.
661         * modules/stdlib (Makefile.am): Substitute
662         HAVE_STRUCT_RANDOM_DATA.
663
664 2008-10-26  Simon Josefsson  <simon@josefsson.org>
665
666         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
667         * doc/gnulib-intro.texi (Copyright): Likewise.
668
669 2008-10-26  Simon Josefsson  <simon@josefsson.org>
670
671         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
672         findings.
673
674 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
675             Bruno Haible  <bruno@clisp.org>
676
677         * lib/unistd.in.h: Include <winsock2.h>.
678         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
679         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
680         Provide dummy declarations.
681         (gethostname): Override.
682         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
683         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
684         gl_PREREQ_SYS_H_WINSOCK2.
685         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
686         * doc/posix-functions/gethostname.texi: More details.
687
688 2008-10-25  Bruno Haible  <bruno@clisp.org>
689
690         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
691         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
692         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
693
694         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
695         here ...
696         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
697         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
698         gl_UNISTD_H_DEFAULTS.
699
700 2008-10-25  Eric Blake  <ebb9@byu.net>
701
702         signbit: avoid spurious compiler failure
703         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
704         declarations inside function.
705
706 2008-10-24  Simon Josefsson  <simon@josefsson.org>
707             Bruno Haible  <bruno@clisp.org>
708
709         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
710         * modules/random_r (Depends-on): Add stdint.
711
712 2008-10-24  Bruno Haible  <bruno@clisp.org>
713
714         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
715         Eggert.
716         * modules/strerror (License): Likewise.
717
718 2008-10-24  Jim Meyering  <meyering@redhat.com>
719
720         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
721         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
722
723 2008-10-24  Eric Blake  <ebb9@byu.net>
724
725         getgroups: fix compilation when getgroups is available
726         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
727         but with <config.h> override of getgroups disabled.
728
729 2008-10-24  Simon Josefsson  <simon@josefsson.org>
730
731         * doc/gnulib.texi (Header files): Add note about C++ problems.
732         Explained by Bruno Haible <bruno@clisp.org>.
733
734 2008-10-23  Bruno Haible  <bruno@clisp.org>
735
736         Define a dummy SA_NODEFER macro on Interix.
737         * lib/signal.in.h (SA_NODEFER): Define fallback.
738         Reported by Aleksey Cheusov <cheusov@tut.by> via
739         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
740
741 2008-10-23  Bruno Haible  <bruno@clisp.org>
742
743         * modules/freadahead (License): Change to LGPLv2+.
744         Suggested by Simon Josefsson.
745
746 2008-10-23  Jim Meyering  <meyering@redhat.com>
747
748         random_r: new module
749         * modules/random_r: New file.
750         * m4/random_r.m4: New file.
751         * lib/random_r.c: New file, from glibc.
752         * modules/random_r-tests: New file.
753         * tests/test-random_r.c: New file.
754         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
755          Declare.
756         (RAND_MAX): Define.
757         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
758         * modules/stdlib: Substitute them, too.
759         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
760         * doc/glibc-functions/initstate_r.texi: Mention the new module.
761         * doc/glibc-functions/random_r.texi: Likewise.
762         * doc/glibc-functions/setstate_r.texi: Likewise.
763         * doc/glibc-functions/srandom_r.texi: Likewise.
764         * config/srclist.txt: Mention it.
765
766 2008-10-23  David Lutterkort  <lutter@redhat.com>
767
768         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
769         link requirement
770
771 2008-10-23  Jim Meyering  <meyering@redhat.com>
772
773         selinux-h: mark parameters of stub functions as intentionally unused
774         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
775         * lib/se-context.in.h: Likewise.
776
777 2008-10-22  Simon Josefsson  <simon@josefsson.org>
778
779         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
780
781 2008-10-22  Simon Josefsson  <simon@josefsson.org>
782
783         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
784
785 2008-10-22  Eric Blake  <ebb9@byu.net>
786
787         glthread/thread: avoid compiler warning
788         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
789         Add unreachable abort to silence compiler.
790
791 2008-10-22  Eric Blake  <ebb9@byu.net>
792
793         netdb: also supply struct addrinfo for cygwin 1.5.x
794         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
795         older cygwin.
796         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
797         cygwin.
798         * doc/posix-headers/netdb.texi (netdb.h): Document this.
799
800 2008-10-22  Bruno Haible  <bruno@clisp.org>
801
802         * users.txt: Update entry about pspp.
803
804 2008-10-21  Bruno Haible  <bruno@clisp.org>
805
806         Simplification.
807         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
808         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
809
810         Simplification.
811         * lib/ioctl.c (ioctl): Don't undefine.
812         * lib/socket.c (socket): Don't undefine.
813
814         Remove unused module indicator macros.
815         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
816         GNULIB_$1 as a C macro.
817
818         * doc/posix-functions/close.texi: Undo last change.
819         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
820         Windows platforms.
821
822 2008-10-21  Bruno Haible  <bruno@clisp.org>
823
824         Add gethostname() declaration to <unistd.h>.
825         * lib/unistd.in.h (gethostname): New declaration.
826         * lib/gethostname.c: Include <unistd.h>.
827         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
828         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
829         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
830         and HAVE_GETHOSTNAME.
831         * modules/gethostname (Depends-on): Add unistd.
832         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
833         (Include): Specify <unistd.h>.
834         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
835         HAVE_GETHOSTNAME.
836         * tests/test-gethostname.c: Include <unistd.h> first.
837
838 2008-10-21  Bruno Haible  <bruno@clisp.org>
839
840         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
841         * modules/select-tests (Depends-on): Likewise.
842         Reported by Simon Josefsson.
843
844 2008-10-21  Simon Josefsson  <simon@josefsson.org>
845
846         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
847         * lib/accept.c: New file, based on winsock.c.
848         * lib/bind.c: New file, based on winsock.c.
849         * lib/connect.c: New file, based on winsock.c.
850         * lib/getpeername.c: New file, based on winsock.c.
851         * lib/getsockname.c: New file, based on winsock.c.
852         * lib/getsockopt.c: New file, based on winsock.c.
853         * lib/ioctl.c: New file, based on winsock.c.
854         * lib/listen.c: New file, based on winsock.c.
855         * lib/recv.c: New file, based on winsock.c.
856         * lib/recvfrom.c: New file, based on winsock.c.
857         * lib/send.c: New file, based on winsock.c.
858         * lib/sendto.c: New file, based on winsock.c.
859         * lib/setsockopt.c: New file, based on winsock.c.
860         * lib/shutdown.c: New file, based on winsock.c.
861         * lib/socket.c: New file, based on winsock.c.
862         * lib/w32sock.h: New file, based on winsock.c.
863         * lib/winsock.c: Remove file.
864         * modules/accept: Likewise.
865         * modules/bind: Likewise.
866         * modules/connect: Likewise.
867         * modules/getpeername: Likewise.
868         * modules/getsockname: Likewise.
869         * modules/getsockopt: Likewise.
870         * modules/ioctl: Likewise.
871         * modules/listen: Likewise.
872         * modules/recv: Likewise.
873         * modules/recvfrom: Likewise.
874         * modules/send: Likewise.
875         * modules/sendto: Likewise.
876         * modules/setsockopt: Likewise.
877         * modules/shutdown: Likewise.
878         * modules/socket: Use socket.c instead of winsock.c.
879         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
880         * doc/posix-functions/accept.texi: Doc fix.
881         * doc/posix-functions/bind.texi: Doc fix.
882         * doc/posix-functions/close.texi: Doc fix.
883         * doc/posix-functions/connect.texi: Doc fix.
884         * doc/posix-functions/getpeername.texi: Doc fix.
885         * doc/posix-functions/getsockname.texi: Doc fix.
886         * doc/posix-functions/getsockopt.texi: Doc fix.
887         * doc/posix-functions/ioctl.texi: Doc fix.
888         * doc/posix-functions/listen.texi: Doc fix.
889         * doc/posix-functions/recv.texi: Doc fix.
890         * doc/posix-functions/recvfrom.texi: Doc fix.
891         * doc/posix-functions/send.texi: Doc fix.
892         * doc/posix-functions/sendto.texi: Doc fix.
893         * doc/posix-functions/setsockopt.texi: Doc fix.
894         * doc/posix-functions/shutdown.texi: Doc fix.
895         * doc/posix-functions/socket.texi: Doc fix.
896
897 2008-10-20  Bruno Haible  <bruno@clisp.org>
898
899         Take into account the role of SIGABRT_COMPAT on Windows 2008.
900         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
901         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
902         as an alias for SIGABRT.
903         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
904         (sigaction): Map it to SIGABRT.
905         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
906
907 2008-10-20  Bruno Haible  <bruno@clisp.org>
908
909         * lib/fts.c: Don't include lstat.h.
910         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
911
912         Move the lstat() declaration to <sys/stat.h>.
913         * lib/lstat.h: Remove file.
914         * lib/sys_stat.in.h: Add special invocation convention.
915         (lstat): New declaration.
916         * lib/lstat.c (orig_lstat): New function.
917         (rpl_lstat): Use orig_lstat instead of lstat.
918         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
919         AC_C_INLINE. Set REPLACE_LSTAT.
920         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
921         and REPLACE_LSTAT.
922         * modules/lstat (Files): Remove lib/lstat.h.
923         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
924         (Include): Specify <sys/stat.h> instead of lstat.h.
925         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
926         REPLACE_LSTAT.
927         * NEWS: Mention the change.
928
929 2008-10-20  Bruno Haible  <bruno@clisp.org>
930
931         * modules/posix_spawn-tests: New file.
932         * tests/test-posix_spawn3.c: New file.
933
934 2008-10-20  Bruno Haible  <bruno@clisp.org>
935
936         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
937         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
938         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
939         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
940         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
941
942 2008-10-20  Bruno Haible  <bruno@clisp.org>
943
944         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
945         of posix_spawn on AIX 5.3.
946
947 2008-10-20  Bruno Haible  <bruno@clisp.org>
948
949         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
950
951 2008-10-20  Bruno Haible  <bruno@clisp.org>
952
953         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
954         of AC_LANG_PROGRAM.
955
956 2008-10-20  Simon Josefsson  <simon@josefsson.org>
957
958         * lib/netdb.in.h: Don't define GNU specific constants until they
959         are supported or needed.  Reported by Bruno Haible
960         <bruno@clisp.org>.
961
962 2008-10-20  Simon Josefsson  <simon@josefsson.org>
963
964         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
965
966 2008-10-20  Simon Josefsson  <simon@josefsson.org>
967
968         * lib/getaddrinfo.h: Remove file.
969         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
970         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
971         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
972         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
973         * modules/netdb: Substitute GNULIB_GETADDRINFO.
974         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
975         * tests/test-getaddrinfo.c: Likewise.
976         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
977         * NEWS: Mention change.
978
979 2008-10-19  Bruno Haible  <bruno@clisp.org>
980
981         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
982
983 2008-10-19  Bruno Haible  <bruno@clisp.org>
984
985         * lib/wait-process.c: Include simply <sys/wait.h>.
986         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
987         WIFSTOPPED): Remove fallback definitions.
988         * modules/wait-process (Depends-on): Add sys_wait.
989
990         New module 'sys_wait'.
991         * modules/sys_wait: New file.
992         * lib/sys_wait.in.h: New file, partially copied from
993         lib/wait-process.c.
994         * m4/sys_wait_h.m4: New file.
995         * doc/posix-headers/sys_wait.texi: Mention the new module.
996
997 2008-10-19  Bruno Haible  <bruno@clisp.org>
998
999         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
1000
1001 2008-10-19  Bruno Haible  <bruno@clisp.org>
1002
1003         Assume that waitpid() fills an 'int' status, not a 'union wait'.
1004         * lib/wait-process.c (WAIT_T): Remove type.
1005         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
1006         (wait_subprocess): Update.
1007
1008 2008-10-19  Bruno Haible  <bruno@clisp.org>
1009
1010         New module 'atoll'.
1011         * modules/atoll: New file.
1012         * lib/stdlib.in.h (atoll): New declaration.
1013         * lib/atoll.c: New file, from glibc with modifications.
1014         * m4/atoll.m4: New file.
1015         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
1016         HAVE_ATOLL.
1017         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
1018         * doc/posix-functions/atoll.texi: Mention the new module.
1019
1020 2008-10-19  Bruno Haible  <bruno@clisp.org>
1021
1022         Add strtoull() declaration to <stdlib.h>.
1023         * lib/stdlib.in.h (strtoull): New declaration.
1024         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
1025         Set HAVE_STRTOULL.
1026         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
1027         HAVE_STRTOULL.
1028         * modules/strtoull (Depends-on): Add stdlib.
1029         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
1030         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
1031         HAVE_STRTOULL.
1032
1033 2008-10-19  Bruno Haible  <bruno@clisp.org>
1034
1035         Add strtoll() declaration to <stdlib.h>.
1036         * lib/stdlib.in.h (strtoll): New declaration.
1037         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
1038         Set HAVE_STRTOLL.
1039         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
1040         HAVE_STRTOLL.
1041         * modules/strtoll (Depends-on): Add stdlib.
1042         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
1043         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
1044
1045 2008-10-19  Bruno Haible  <bruno@clisp.org>
1046
1047         * modules/bcopy (Depends-on): Add strings.
1048         (Include): Specify <strings.h>.
1049
1050 2008-10-19  Bruno Haible  <bruno@clisp.org>
1051
1052         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
1053
1054 2008-10-19  Bruno Haible  <bruno@clisp.org>
1055
1056         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
1057         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
1058         mingw.
1059
1060 2008-10-19  Bruno Haible  <bruno@clisp.org>
1061
1062         * lib/atanl.c: Don't include isnanl.h.
1063         * lib/cosl.c: Likewise.
1064         * lib/ldexpl.c: Likewise.
1065         * lib/logl.c: Likewise.
1066         * lib/sinl.c: Likewise.
1067         * lib/sqrtl.c: Likewise.
1068         * lib/tanl.c: Likewise.
1069
1070         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
1071         * lib/isnanf.h: Remove file.
1072         * lib/isnand.h: Remove file.
1073         * lib/isnanl.h: Remove file.
1074         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
1075         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
1076         macros.
1077         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
1078         HAVE_ISNANF, don't define it as a C macro.
1079         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
1080         HAVE_ISNAND, don't define it as a C macro.
1081         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
1082         HAVE_ISNANL, don't define it as a C macro.
1083         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
1084         HAVE_ISNAN[FDL].
1085         * modules/isnanf (Files): Remove lib/isnanf.h.
1086         (Depends-on): Add math.
1087         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
1088         (Include): Specify <math.h> instead of isnanf.h.
1089         * modules/isnand (Files): Remove lib/isnand.h.
1090         (Depends-on): Add math.
1091         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
1092         (Include): Specify <math.h> instead of isnand.h.
1093         * modules/isnanl (Files): Remove lib/isnanl.h.
1094         (Depends-on): Add math.
1095         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
1096         (Include): Specify <math.h> instead of isnanl.h.
1097         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
1098         HAVE_ISNAN[FDL].
1099         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
1100         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
1101         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
1102         * NEWS: Mention the change.
1103
1104 2008-10-18  Bruno Haible  <bruno@clisp.org>
1105
1106         Add getusershell(), setusershell(), endusershell() declarations to
1107         <unistd.h>.
1108         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
1109         declarations.
1110         * lib/getusershell.c: Include unistd.h.
1111         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
1112         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
1113         HAVE_GETUSERSHELL.
1114         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
1115         and HAVE_GETUSERSHELL.
1116         * modules/getusershell (Depends-on): Add unistd, extensions.
1117         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
1118         (Include): Specify <unistd.h>.
1119         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
1120         HAVE_GETUSERSHELL.
1121
1122 2008-10-18  Bruno Haible  <bruno@clisp.org>
1123
1124         Add a getloadavg() declaration to <stdlib.h>.
1125         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
1126         getloadavg declaration.
1127         (getloadavg): New declaration.
1128         * lib/getloadavg.c: Include <stdlib.h> first.
1129         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
1130         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
1131         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
1132         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
1133         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
1134         * modules/getloadavg (Depends-on): Add stdlib, extensions.
1135         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
1136         (Include): Specify <stdlib.h>.
1137         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
1138         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
1139
1140 2008-10-18  Bruno Haible  <bruno@clisp.org>
1141
1142         * lib/dirchownmod.c: Don't include lchmod.h.
1143
1144         Move the lchmod() declaration to <sys/stat.h>.
1145         * lib/lchmod.h: Remove file.
1146         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
1147         (lchmod): New declaration, moved here from lib/lchown.h.
1148         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
1149         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
1150         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
1151         and HAVE_LCHMOD.
1152         * modules/lchmod (Files): Remove lib/lchmod.h.
1153         (Depends-on): Add sys_stat, extensions.
1154         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
1155         (Include): Specify <sys/stat.h> instead of lchmod.h.
1156         * modules/sys_stat (Depends-on): Add link-warning.
1157         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
1158         definition of GL_LINK_WARNING.
1159         * NEWS: Mention the change.
1160
1161 2008-10-18  Bruno Haible  <bruno@clisp.org>
1162
1163         * lib/fchdir.c: Don't include dirfd.h.
1164         * lib/fts.c: Likewise.
1165         * lib/getcwd.c: Likewise.
1166         * lib/glob.c: Likewise.
1167
1168         Move the dirfd() declaration to <dirent.h>.
1169         * lib/dirfd.h: Remove file.
1170         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
1171         (dirfd): New declaration.
1172         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
1173         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
1174         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
1175         HAVE_DECL_DIRFD.
1176         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
1177         HAVE_DECL_DIRFD.
1178         * modules/dirfd (Files): Remove lib/dirfd.h.
1179         (Depends-on): Add dirent, extensions.
1180         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
1181         (Include): Specify <dirent.h> instead of dirfd.h.
1182         * modules/dirent (Depends-on): Add link-warning.
1183         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
1184         definition of GL_LINK_WARNING.
1185         * NEWS: Mention the change.
1186
1187 2008-10-18  Bruno Haible  <bruno@clisp.org>
1188
1189         Move the euidaccess() declaration to <unistd.h>.
1190         * lib/euidaccess.h: Remove file.
1191         * lib/unistd.in.h (euidaccess): New declaration.
1192         * lib/euidaccess.c: Don't include euidaccess.h.
1193         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
1194         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
1195         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
1196         and HAVE_EUIDACCESS.
1197         * modules/euidaccess (Files): Remove lib/euidaccess.h.
1198         (Depends-on): Add unistd.
1199         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
1200         (Include): Specify <unistd.h> instead of euidaccess.h.
1201         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
1202         HAVE_EUIDACCESS.
1203         * NEWS: Mention the change.
1204
1205 2008-10-18  Bruno Haible  <bruno@clisp.org>
1206
1207         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
1208
1209         Move the getdomainname() declaration to <unistd.h>.
1210         * lib/getdomainname.h: Remove file.
1211         * lib/unistd.in.h (getdomainname): New declaration.
1212         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
1213         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
1214         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
1215         HAVE_GETDOMAINNAME.
1216         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
1217         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
1218         * modules/getdomainname (Files): Remove lib/getdomainname.h.
1219         (Depends-on): Add unistd, extensions.
1220         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
1221         (Includes): Specify <unistd.h> instead of getdomainname.h.
1222         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
1223         HAVE_GETDOMAINNAME.
1224         * NEWS: Mention the change.
1225
1226 2008-10-18  Bruno Haible  <bruno@clisp.org>
1227
1228         * modules/dirent: New file.
1229         * m4/dirent_h.m4: New file.
1230         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
1231         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
1232         * modules/fchdir (Files): Remove lib/dirent.in.h.
1233         (Depends-on): Add dirent.
1234         (Makefile.am): Move rules to modules/dirent.
1235         * doc/posix-headers/dirent.texi: Mention the new module.
1236
1237 2008-10-18  Bruno Haible  <bruno@clisp.org>
1238
1239         Avoid -Wunused-parameter warnings in public gnulib header files.
1240         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
1241         macro.
1242         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
1243
1244 2008-10-18  Bruno Haible  <bruno@clisp.org>
1245
1246         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
1247         * doc/glibc-functions/error.texi: Mention the module 'error'.
1248         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
1249         * doc/glibc-functions/getdomainname.texi: Mention the module
1250         'getdomainname'.
1251         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
1252         * doc/glibc-functions/getpagesize.texi: Mention the module
1253         'getpagesize'.
1254         * doc/glibc-functions/getusershell.texi: Mention the module
1255         'getusershell'.
1256         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
1257         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
1258         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
1259         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
1260         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
1261         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
1262         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
1263         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
1264         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
1265         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
1266         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
1267         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
1268         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
1269         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
1270
1271 2008-10-17  Bruno Haible  <bruno@clisp.org>
1272
1273         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
1274         HP-UX and IRIX, use -0.0L.
1275         * tests/test-ceill.c (minus_zero): Likewise.
1276         * tests/test-floorl.c (minus_zero): Likewise.
1277         * tests/test-frexpl.c (minus_zero): Likewise.
1278         * tests/test-isnan.c (minus_zerol): Likewise.
1279         * tests/test-isnanl.h (minus_zero): Likewise.
1280         * tests/test-ldexpl.c (minus_zero): Likewise.
1281         * tests/test-roundl.c (minus_zero): Likewise.
1282         * tests/test-signbit.c (minus_zerol): Likewise.
1283         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
1284         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
1285         * tests/test-truncl.c (minus_zero): Likewise.
1286         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
1287         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
1288         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
1289         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
1290
1291 2008-10-17  Bruno Haible  <bruno@clisp.org>
1292
1293         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
1294         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
1295         that it gets activated only for gcc >= 3.0.
1296         * lib/dirent.in.h: Likewise.
1297         * lib/errno.in.h: Likewise.
1298         * lib/fcntl.in.h: Likewise.
1299         * lib/float.in.h: Likewise.
1300         * lib/iconv.in.h: Likewise.
1301         * lib/inttypes.in.h: Likewise.
1302         * lib/locale.in.h: Likewise.
1303         * lib/math.in.h: Likewise.
1304         * lib/netdb.in.h: Likewise.
1305         * lib/netinet_in.in.h: Likewise.
1306         * lib/search.in.h: Likewise.
1307         * lib/signal.in.h: Likewise.
1308         * lib/spawn.in.h: Likewise.
1309         * lib/stdarg.in.h: Likewise.
1310         * lib/stdint.in.h: Likewise.
1311         * lib/stdio.in.h: Likewise.
1312         * lib/stdlib.in.h: Likewise.
1313         * lib/string.in.h: Likewise.
1314         * lib/strings.in.h: Likewise.
1315         * lib/sys_file.in.h: Likewise.
1316         * lib/sys_ioctl.in.h: Likewise.
1317         * lib/sys_select.in.h: Likewise.
1318         * lib/sys_socket.in.h: Likewise.
1319         * lib/sys_stat.in.h: Likewise.
1320         * lib/sys_time.in.h: Likewise.
1321         * lib/sysexits.in.h: Likewise.
1322         * lib/time.in.h: Likewise.
1323         * lib/unistd.in.h: Likewise.
1324         * lib/wchar.in.h: Likewise.
1325         * lib/wctype.in.h: Likewise.
1326         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
1327
1328 2008-10-17  Jim Meyering  <meyering@redhat.com>
1329
1330         ignore-value: don't depend on inline module
1331         * modules/ignore-value (Depends-on): Remove 'inline'.
1332         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
1333         Suggestion from Bruno Haible.
1334
1335 2008-10-17  Bruno Haible  <bruno@clisp.org>
1336
1337         New implementation of condition variables for Win32.
1338         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
1339         (gl_linked_waitqueue_t): New type.
1340         (gl_cond_t): Use it.
1341         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
1342         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
1343         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
1344         (glthread_cond_init_func, glthread_cond_wait_func,
1345         glthread_cond_timedwait_func, glthread_cond_signal_func,
1346         glthread_cond_broadcast_func, glthread_cond_destroy_func):
1347         Reimplemented on the basis of gl_linked_waitqueue_t.
1348         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
1349         gl_waitqueue_t.
1350         (gl_rwlock_t): Update.
1351         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
1352
1353 2008-10-17  Simon Josefsson  <simon@josefsson.org>
1354
1355         * modules/recvfrom (Depends-on): Add dependency on getpeername.
1356         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
1357
1358 2008-10-17  Jim Meyering  <meyering@redhat.com>
1359
1360         ignore-value: new module
1361         * modules/ignore-value: New file.
1362         * lib/ignore-value.h: New file.
1363         * MODULES.html.sh (Compiler warning management): New section,
1364         just for this module.  More to come.
1365
1366 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
1367
1368         open-safer.c: avoid 'signed and unsigned in conditional...' warning
1369         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
1370         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
1371
1372 2008-10-16  Jim Meyering  <meyering@redhat.com>
1373
1374         openat-die.c: avoid 'no previous prototype' warning
1375         * lib/openat-die.c: Include "openat.h".
1376         Reported by Reuben Thomas <rrt@sc3d.org>.
1377
1378 2008-10-16  Simon Josefsson  <simon@josefsson.org>
1379
1380         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
1381         * lib/netdb.in.h: Fix typo.
1382         Reported by Bruno Haible  <bruno@clisp.org>
1383
1384         * lib/netdb.in.h: Include sys/socket.h for platforms without
1385         netdb.h, to get structures like hostent on MinGW.
1386         * modules/netdb (Depends-on): Add sys_socket.
1387
1388 2008-10-15  Simon Josefsson  <simon@josefsson.org>
1389
1390         * modules/netdb, modules/netdb-tests: New file.
1391         * m4/netdb_h.m4: New file.
1392         * lib/netdb.in.h: Add, currently just an empty file pending
1393         definitions.
1394         * tests/test-netdb.c: New file.
1395         * doc/posix-headers/netdb.texi: Mention that we replace it if
1396         needed.
1397         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
1398         netdb.
1399
1400 2008-10-15  Simon Josefsson  <simon@josefsson.org>
1401
1402         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
1403         with code.
1404
1405 2008-10-13  Bruno Haible  <bruno@clisp.org>
1406
1407         * lib/glthread/cond.c (glthread_cond_wait_func,
1408         glthread_cond_timedwait_func): Add a comment.
1409
1410 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
1411
1412         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
1413         * tests/test-select.c: Likewise,
1414
1415 2008-10-13  Bruno Haible  <bruno@clisp.org>
1416
1417         * lib/glthread/cond.c (glthread_cond_wait_func,
1418         glthread_cond_timedwait_func): Fix variable name.
1419         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
1420
1421 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
1422
1423         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
1424         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
1425         struct sockaddr.sa_len.
1426         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
1427
1428 2008-10-13  Simon Josefsson  <simon@josefsson.org>
1429
1430         * build-aux/pmccabe2html: Add css and css_url parameters.
1431
1432 2008-10-12  Bruno Haible  <bruno@clisp.org>
1433
1434         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
1435         calling aclx_get.
1436         Reported by Rainer Tammer <tammer@tammer.net>.
1437
1438 2008-10-12  Bruno Haible  <bruno@clisp.org>
1439
1440         Use msvcrt aware primitives for creation/termination of Win32 threads.
1441         * lib/glthread/thread.c: Include <process.h>.
1442         (glthread_create_func): Use _beginthreadex instead of CreateThread.
1443         (wrapper_func): Update signature.
1444         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
1445
1446 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
1447             Bruno Haible  <bruno@clisp.org>
1448
1449         Provide a Win32 implementation of the 'cond' module.
1450         * lib/glthread/cond.h [USE_WIN32]: New implementation.
1451         * lib/glthread/cond.c (glthread_cond_init_func,
1452         glthread_cond_wait_func, glthread_cond_timedwait_func,
1453         glthread_cond_signal_func, glthread_cond_broadcast_func,
1454         glthread_cond_destroy_func) [USE_WIN32]: New functions.
1455         * modules/cond (Dependencies): Add gettimeofday.
1456
1457 2008-10-11  Bruno Haible  <bruno@clisp.org>
1458
1459         Make sleep work on older versions of mingw.
1460         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
1461         only whether it exists.
1462         * doc/posix-functions/sleep.texi: Mention the problem with older
1463         versions of mingw.
1464
1465 2008-10-11  Bruno Haible  <bruno@clisp.org>
1466
1467         New module 'shutdown'.
1468         * modules/shutdown: New file.
1469         * lib/sys_socket.in.h (shutdown): New declaration.
1470         * lib/winsock.c (shutdown): New function.
1471         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
1472         GNULIB_SHUTDOWN.
1473         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
1474         * doc/posix-functions/shutdown.texi: Document the new module.
1475
1476 2008-10-11  Jim Meyering  <meyering@redhat.com>
1477
1478         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
1479
1480 2008-10-11  Bruno Haible  <bruno@clisp.org>
1481
1482         New module 'fclose'.
1483         * modules/fclose: New file.
1484         * lib/stdio.in.h (fclose): New declaration.
1485         * lib/fclose.c: New file.
1486         * m4/fclose.m4: New file.
1487         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
1488         REPLACE_FCLOSE.
1489         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
1490         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
1491         REPLACE_FCLOSE.
1492         * modules/close (Depends-on): fclose.
1493         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
1494
1495 2008-10-11  Bruno Haible  <bruno@clisp.org>
1496
1497         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
1498         set errno and don't call _close.
1499
1500 2008-10-10  Bruno Haible  <bruno@clisp.org>
1501
1502         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
1503         ACL, not afterwards. Fixes test failure on Cygwin.
1504
1505 2008-10-09  Ben Pfaff  <blp@gnu.org>
1506
1507         * build-aux/announce-gen: Fix gnulib version related part of usage
1508         message.  Die with a useful error message if no tarballs are
1509         found.
1510
1511 2008-10-10  Jim Meyering  <meyering@redhat.com>
1512
1513         bootstrap: use git's --depth=N option only if it's supported
1514         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
1515         recognize the --depth option.  Reported by Pádraig Brady.
1516
1517 2008-10-09  Bruno Haible  <bruno@clisp.org>
1518
1519         New module 'ioctl'.
1520         * modules/ioctl: New file.
1521         * lib/sys_socket.in.h (ioctl): Remove declaration.
1522         * lib/winsock.c: Include <sys/ioctl.h>.
1523         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
1524         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
1525         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
1526         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
1527         * doc/posix-functions/ioctl.texi: Mention the new module.
1528
1529 2008-10-09  Bruno Haible  <bruno@clisp.org>
1530
1531         New module 'sys_ioctl'.
1532         * lib/sys_ioctl.in.h: New file.
1533         * m4/sys_ioctl_h.m4: New file.
1534         * modules/sys_ioctl: New file.
1535         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
1536
1537 2008-10-09  Bruno Haible  <bruno@clisp.org>
1538
1539         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
1540         * lib/winsock.c: Include <stdarg.h>.
1541         (rpl_ioctl): Change to second argument 'int' and then varargs.
1542
1543 2008-10-09  Bruno Haible  <bruno@clisp.org>
1544
1545         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
1546         when the sys_socket module is present and the system has <winsock2.h>.
1547
1548 2008-10-09  Bruno Haible  <bruno@clisp.org>
1549
1550         * doc/posix-functions/close.texi: Mention module 'close' instead of
1551         module 'sys_socket'.
1552
1553 2008-10-09  Bruno Haible  <bruno@clisp.org>
1554
1555         * doc/glibc-headers/sys_ioctl.texi: New file.
1556         * doc/gnulib.texi: Include it.
1557
1558 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
1559             Bruno Haible  <bruno@clisp.org>
1560
1561         Combine the two replacements of 'close'.
1562         * lib/sys_socket.in.h (close): Define to a reminder to include
1563         <unistd.h>.
1564         (_gl_close_fd_maybe_socket): New declaration.
1565         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
1566         * lib/winsock.c (close): Remove undefinition.
1567         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
1568         needed for the gnulib module 'close'.
1569         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
1570         define to an error symbol or to a warning, if suitable.
1571         * lib/close.c: Include <sys/socket.h>.
1572         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
1573         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
1574         UNISTD_H_HAVE_WINSOCK2_H.
1575         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
1576         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
1577         UNISTD_H_HAVE_WINSOCK2_H.
1578         * modules/sys_socket (Files): Add m4/unistd_h.m4.
1579         (configure.ac): Set a module indicator.
1580         (Makefile.am): Substitute GNULIB_CLOSE.
1581         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
1582         * modules/poll-tests (Depends-on): Add close.
1583         * modules/select-tests (Depends-on): Likewise.
1584
1585 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
1586             Bruno Haible  <bruno@clisp.org>
1587
1588         New module 'close'.
1589         * modules/close: New file.
1590         * lib/unistd.in.h (close): Move declaration out of the
1591         FCHDIR_REPLACEMENT scope.
1592         (_gl_unregister_fd): New declaration.
1593         * lib/close.c: New file.
1594         * lib/fchdir.c (rpl_close): Remove function.
1595         * m4/close.m4: New file.
1596         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
1597         close.
1598         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
1599         REPLACE_CLOSE.
1600         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
1601         REPLACE_CLOSE.
1602         * modules/fchdir (Depends-on): Add close.
1603
1604 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
1605             Bruno Haible  <bruno@clisp.org>
1606
1607         * lib/fcntl.in.h (open): Simplify conditionals.
1608         (_gl_register_fd): New declaration.
1609         * lib/fchdir.c (rpl_open): Remove function.
1610         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
1611         also.
1612         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
1613         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
1614         open.
1615
1616 2008-10-09  Jim Meyering  <meyering@redhat.com>
1617
1618         GNUmakefile: use the more name-space-friendly "_version"
1619         * top/GNUmakefile (_dummy): Update.
1620         (_version): Rename from "version".
1621
1622 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
1623             Bruno Haible  <bruno@clisp.org>
1624
1625         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
1626         rpl_close.
1627         (_gl_register_fd): New function, extracted from rpl_open.
1628         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
1629         (rpl_open, rpl_opendir): Use _gl_register_fd.
1630
1631 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
1632
1633         Fix organization of 'open' replacement.
1634         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
1635         (gl_FUNC_OPEN): Use it.
1636         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
1637
1638 2008-10-08  Bruno Haible  <bruno@clisp.org>
1639
1640         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
1641
1642 2008-10-08  Simon Josefsson  <simon@josefsson.org>
1643
1644         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
1645         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
1646         listen).
1647
1648 2008-10-08  Eric Blake  <ebb9@byu.net>
1649
1650         GNUmakefile: add 'make version' target
1651         * top/GNUmakefile (_curr-ver): Split version update rules...
1652         (version): ...into a target.
1653
1654 2008-10-07  Bruno Haible  <bruno@clisp.org>
1655
1656         Use a more portable replacement expression for -0.0L.
1657         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
1658         instead of -0.0L. Fix m4 quotation.
1659
1660         * tests/test-signbit.c: Include <float.h>.
1661         (minus_zero): New variable.
1662         (test_signbitl): Use minus_zero instead of -zero.
1663         * modules/signbit-tests (Depends-on): Add float.
1664
1665         * tests/test-ceill.c: Include <float.h>.
1666         (zero): Remove variable.
1667         (minus_zero): New variable.
1668         (main): Use minus_zero instead of -zero.
1669         * modules/ceill-tests (Depends-on): Add float.
1670
1671         * tests/test-floorl.c: Include <float.h>.
1672         (zero): Remove variable.
1673         (minus_zero): New variable.
1674         (main): Use minus_zero instead of -zero.
1675         * modules/floorl-tests (Depends-on): Add float.
1676
1677         * tests/test-roundl.c: Include <float.h>.
1678         (zero): Remove variable.
1679         (minus_zero): New variable.
1680         (main): Use minus_zero instead of -zero.
1681         * modules/roundl-tests (Depends-on): Add float.
1682
1683         * tests/test-truncl.c: Include <float.h>.
1684         (zero): Remove variable.
1685         (minus_zero): New variable.
1686         (main): Use minus_zero instead of -zero.
1687         * modules/truncl-tests (Depends-on): Add float.
1688
1689         * tests/test-frexpl.c (zero): Remove variable.
1690         (minus_zero): New variable.
1691         (main): Use minus_zero instead of -zero.
1692         * modules/frexpl-tests (Depends-on): Add float.
1693
1694         * tests/test-isnan.c (zerol): Remove variable.
1695         (minus_zerol): New variable.
1696         (test_long_double): Use minus_zerol instead of -zerol.
1697         * modules/isnan-tests (Depends-on): Add float.
1698
1699         * tests/test-isnanl.h (zero): Remove variable.
1700         (minus_zero): New variable.
1701         (main): Use minus_zero instead of -zero.
1702         * modules/isnanl-nolibm-tests (Depends-on): Add float.
1703         * modules/isnanl-tests (Depends-on): Add float.
1704
1705         * tests/test-ldexpl.c (zero): Remove variable.
1706         (minus_zero): New variable.
1707         (main): Use minus_zero instead of -zero.
1708         * modules/ldexpl-tests (Depends-on): Add float.
1709
1710         * tests/test-snprintf-posix.h (zerol): Remove variable.
1711         (minus_zerol): New variable.
1712         (test_function): Use minus_zerol instead of -zerol.
1713         * modules/snprintf-posix-tests (Depends-on): Add float.
1714         * modules/vsnprintf-posix-tests (Depends-on): Add float.
1715
1716         * tests/test-sprintf-posix.h (zerol): Remove variable.
1717         (minus_zerol): New variable.
1718         (test_function): Use minus_zerol instead of -zerol.
1719         * modules/sprintf-posix-tests (Depends-on): Add float.
1720         * modules/vsprintf-posix-tests (Depends-on): Add float.
1721
1722         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
1723         (minus_zerol): New variable.
1724         (test_function): Use minus_zerol instead of -zerol.
1725         * modules/vasnprintf-posix-tests (Depends-on): Add float.
1726
1727         * tests/test-vasprintf-posix.c (zerol): Remove variable.
1728         (minus_zerol): New variable.
1729         (test_function): Use minus_zerol instead of -zerol.
1730         * modules/vasprintf-posix-tests (Depends-on): Add float.
1731
1732 2008-10-07  Simon Josefsson  <simon@josefsson.org>
1733
1734         * MODULES.html.sh (Support for building documentation): Mention
1735         pmccabe2html.  Sort entries.
1736
1737         Add pmccabe2html module, from gnupdf.
1738         * build-aux/pmccabe.css: New file.
1739         * build-aux/pmccabe2html: New file.
1740         * m4/pmccabe2html.m4: New file.
1741         * modules/pmccabe2html: New file.
1742
1743 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
1744
1745         flock: new module
1746         * MODULES.html.sh: Add to list of modules.
1747         * lib/flock.c: flock implementation for Windows and Unix systems
1748         which have fcntl.
1749         * doc/glibc-functions/flock.texi: Update documentation.
1750         * lib/sys_file.in.h: <sys/file.h> header file.
1751         * m4/flock.m4: M4 macros.
1752         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
1753         * modules/flock: flock module.
1754         * modules/flock-tests: flock tests module.
1755         * modules/sys_file: sys/file.h module.
1756         * tests/test-flock.c: test suite for flock.
1757
1758 2008-10-06  Jim Meyering  <meyering@redhat.com>
1759
1760         bootstrap: check for LT_INIT more portably still ;-)
1761         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
1762         Spotted by Bruno Haible.
1763
1764 2008-10-06  Eric Blake  <ebb9@byu.net>
1765
1766         test-signbit: avoid tripping Irix cc bug on -0.0L
1767         * tests/test-signbit.c (minus_zerol): Delete, and replace with
1768         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
1769         entire testsuite consistent and avoids an Irix 6.2 bug.
1770
1771 2008-10-05  Bruno Haible  <bruno@clisp.org>
1772             Jim Meyering  <jim@meyering.net>
1773
1774         Add an option for ignoring EPIPE during close_stdout.
1775         * lib/closeout.h: Include <stdbool.h>.
1776         (close_stdout_set_ignore_EPIPE): New declaration.
1777         * lib/closeout.c: Include <stdbool.h>.
1778         (ignore_EPIPE): New variable.
1779         (close_stdout_set_ignore_EPIPE): New function.
1780         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
1781         * lib/close-stream.c (close_stream): Mention the possible EPIPE
1782         failure.
1783         * modules/closeout (Depends-on): Add stdbool.
1784
1785 2008-10-05  Bruno Haible  <bruno@clisp.org>
1786
1787         * modules/accept: New file.
1788         * modules/bind: New file.
1789         * modules/connect: New file.
1790         * modules/getpeername: New file.
1791         * modules/getsockname: New file.
1792         * modules/getsockopt: New file.
1793         * modules/listen: New file.
1794         * modules/recv: New file.
1795         * modules/recvfrom: New file.
1796         * modules/send: New file.
1797         * modules/sendto: New file.
1798         * modules/setsockopt: New file.
1799         * modules/socket: New file.
1800         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
1801         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
1802         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
1803         the particular module is requested. Add a link warning when the
1804         particular module is not requested.
1805         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
1806         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
1807         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
1808         the particular module is requested.
1809         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
1810         gl_SYS_SOCKET_H_DEFAULTS): New macros.
1811         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
1812         * modules/sys_socket (Depends-on): Add link-warning.
1813         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
1814         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
1815         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
1816         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
1817         GL_LINK_WARNING.
1818         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
1819         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
1820         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
1821         * doc/posix-functions/getpeername.texi: Mention the new module
1822         'getpeername'.
1823         * doc/posix-functions/getsockname.texi: Mention the new module
1824         'getsockname'.
1825         * doc/posix-functions/getsockopt.texi: Mention the new module
1826         'getsockopt'.
1827         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
1828         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
1829         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
1830         * doc/posix-functions/send.texi: Mention the new module 'send'.
1831         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
1832         * doc/posix-functions/setsockopt.texi: Mention the new module
1833         'setsockopt'.
1834         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
1835         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
1836         listen, connect, accept.
1837         * modules/select-tests (Depends-on): Likewise.
1838
1839 2008-10-05  Bruno Haible  <bruno@clisp.org>
1840
1841         * lib/winsock.c (strerror): Remove unused #undef.
1842         (rpl_close): Remove unused local variable.
1843
1844         * modules/sys_socket (Depends-on); Add errno.
1845
1846 2008-10-05  Bruno Haible  <bruno@clisp.org>
1847
1848         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
1849         (select): Add a link warning when the 'select' module is not used.
1850         * modules/sys_select (Depends-on): Add link-warning.
1851         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
1852         Suggested by Paolo Bonzini.
1853
1854 2008-10-05  Jim Meyering  <meyering@redhat.com>
1855
1856         bootstrap: check for LT_INIT more portably
1857         * build-aux/bootstrap: Avoid using grep -E, since it's not
1858         portable enough.  Suggestion from Bruno Haible.
1859
1860 2008-10-05  Bruno Haible  <bruno@clisp.org>
1861
1862         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
1863         as being fixed by gnulib.
1864
1865 2008-10-05  Bruno Haible  <bruno@clisp.org>
1866
1867         * modules/select-tests: New file, mostly copied from
1868         modules/sys_select-tests.
1869         * tests/test-select.c: New file, mostly copied from
1870         tests/test-sys_select.c.
1871         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
1872         * modules/sys_select-tests (Depends-on): Remove all dependencies.
1873         (Makefile.am): Remove test_sys_select_LDADD.
1874
1875         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
1876         to an undefined symbol, for an error message.
1877         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
1878         (gl_SYS_SELECT_H_DEFAULTS): New macro.
1879         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
1880         winsock-select.c here.
1881         * modules/sys_select (Files): Remove lib/winsock-select.c.
1882         (Depends-on): Remove alloca.
1883         (Makefile.am): Substitute GNULIB_SELECT.
1884         * modules/select: New file.
1885         * doc/posix-functions/select.texi: Update.
1886
1887 2008-10-05  Bruno Haible  <bruno@clisp.org>
1888
1889         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
1890         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
1891         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
1892         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
1893         getdtablesize.
1894         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
1895         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
1896
1897 2008-10-05  Bruno Haible  <bruno@clisp.org>
1898
1899         * modules/getdtablesize-tests: New file.
1900         * tests/test-getdtablesize.c: New file.
1901
1902         New module 'getdtablesize'.
1903         * lib/unistd.in.h (getdtablesize): New declaration.
1904         * lib/getdtablesize.c: New file.
1905         * m4/getdtablesize.m4: New file.
1906         * modules/getdtablesize: New file.
1907         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
1908         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
1909         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
1910         HAVE_GETDTABLESIZE.
1911         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
1912
1913 2008-10-05  Bruno Haible  <bruno@clisp.org>
1914
1915         * modules/sched (Makefile.am): Fix typo.
1916         Reported by Simon Josefsson.
1917
1918 2008-10-05  Jim Meyering  <meyering@redhat.com>
1919
1920         bootstrap: check for LT_INIT, too
1921         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
1922         are deprecated.  Suggestion from Ralf Wildenhues.
1923
1924 2008-10-05  Bruno Haible  <bruno@clisp.org>
1925
1926         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
1927         overriding them by ours.
1928         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
1929
1930 2008-10-05  Jim Meyering  <meyering@redhat.com>
1931
1932         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
1933         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
1934         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
1935
1936 2008-10-04  Bruno Haible  <bruno@clisp.org>
1937
1938         * modules/dup2 (License): Change to LGPLv2+.
1939         * modules/sleep (License): Likewise.
1940         * modules/perror (License): Likewise.
1941         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
1942         Blake.
1943         * modules/signal (License): Likewise.
1944         * modules/sigprocmask (License): Likewise.
1945         * modules/raise (License): Change to LGPLv2+, with approval by Jim
1946         Meyering.
1947
1948 2008-10-04  Bruno Haible  <bruno@clisp.org>
1949
1950         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
1951         Reported by Rainer Tammer <tammer@tammer.net>.
1952
1953 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
1954             Bruno Haible  <bruno@clisp.org>
1955
1956         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
1957         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
1958         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
1959
1960 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
1961
1962         filevercmp: new module
1963         * lib/filevercmp.h: New function filevercmp comparing version strings.
1964         * lib/filevercmp.c: Implementation of filevercmp function.
1965         * modules/filevercmp: Module metadata.
1966         * tests/test-filevercmp.c: Unit test for new module.
1967         * modules/filevercmp-tests: Unit test metadata.
1968         * MODULES.html.sh: Add filevercmp module.
1969
1970 2008-10-03  Bruno Haible  <bruno@clisp.org>
1971
1972         * lib/c-ctype.h: Add comment.
1973         Reported by Jim Meyering.
1974
1975 2008-10-02  Bruno Haible  <bruno@clisp.org>
1976
1977         * modules/posix_spawn-internal (Depends-on): Add 'open'.
1978
1979 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
1980
1981         * build-aux/bootstrap: Allow renaming bootstrap, and change the
1982         name of bootstrap.conf accordingly.
1983
1984 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
1985
1986         * build-aux/bootstrap: Install git-merge-changelog configuration
1987         items into .gitconfig if needed.
1988
1989 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
1990
1991         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
1992         git repository, and initialize/update it accordingly.
1993
1994 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
1995
1996         * modules/fsync-tests: New file.
1997         * tests/test-fsync.c: New file.
1998
1999         New module 'fsync'.
2000         * lib/fsync.c: New file.
2001         * m4/fsync.m4: New file.
2002         * modules/fsync: New file.
2003         * lib/unistd.in.h (fsync): New declaration.
2004         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
2005         GNULIB_FSYNC and HAVE_FSYNC.
2006         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
2007         * MODULES.html.sh (posix_functions): Add fsync.
2008         * doc/posix-functions/fsync.texi: Mention the new module.
2009
2010 2008-10-02  Jim Meyering  <meyering@redhat.com>
2011
2012         fts.c: sync with similar code from coreutils' remove.c
2013         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
2014         Guard also with "#if defined __linux__", since for now at least,
2015         this code is Linux-kernel-specific.
2016
2017 2008-10-02  Jim Meyering  <meyering@redhat.com>
2018
2019         fts: bug fixes
2020         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
2021         Include <sys/vfs.h>, not <sys/statfs.h>.
2022
2023         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
2024         Include <sys/vfs.h>, not <sys/statfs.h>.
2025
2026 2008-10-01  Bruno Haible  <bruno@clisp.org>
2027
2028         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
2029         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
2030         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
2031         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
2032         * doc/posix-functions/posix_spawnp.texi: Likewise.
2033         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
2034         whether posix_spawn actually works.
2035         * m4/pipe.m4 (gl_PIPE): Likewise.
2036         * modules/execute (Files): Add m4/posix_spawn.m4.
2037         * modules/pipe (Files): Add m4/posix_spawn.m4.
2038         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
2039
2040 2008-10-01  Jim Meyering  <meyering@redhat.com>
2041
2042         remove trailing spaces
2043         * NEWS: Likewise.
2044         * lib/poll.c (poll): Likewise.
2045         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
2046         * lib/winsock.c (rpl_close): Likewise.
2047         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
2048         * modules/yield: Likewise.
2049         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
2050         * tests/test-sys_select.c (connect_to_socket): Likewise.
2051
2052         fts.c: adjust a new interface to be more generally useful
2053         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
2054         (fts_build): Adjust caller.
2055
2056 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
2057
2058         * modules/cond-tests: New file.
2059         * tests/test-cond.c: New file.
2060
2061 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
2062             Bruno Haible  <bruno@clisp.org>
2063
2064         * modules/cond (Dependencies): Add errno, time.
2065         * lib/glthread/cond.h: Include <time.h>.
2066         (gl_cond_define, gl_cond_define_initialized): Use the same definition
2067         across platforms.
2068
2069 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
2070             Bruno Haible  <bruno@clisp.org>
2071
2072         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
2073
2074 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
2075             Bruno Haible  <bruno@clisp.org>
2076
2077         * modules/tls-tests (Depends-on): Add thread, yield.
2078         (configure.ac): Remove all checks.
2079         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
2080         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
2081         gl_thread_self): Remove definitions. Include glthread/thread.h and
2082         glthread/yield.h instead.
2083         (test_tls): Pass an additional NULL argument to gl_thread_join.
2084
2085 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
2086             Bruno Haible  <bruno@clisp.org>
2087
2088         * modules/lock-tests (Depends-on): Add thread, yield.
2089         (configure.ac): Remove all checks.
2090         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
2091         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
2092         gl_thread_self): Remove definitions. Include glthread/thread.h and
2093         glthread/yield.h instead.
2094         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
2095         additional NULL argument to gl_thread_join.
2096
2097 2008-09-30  Bruno Haible  <bruno@clisp.org>
2098
2099         Fix the Win32 implementation of the 'thread' module.
2100         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
2101         pointer type.
2102         (gl_thread_self): Invoke gl_thread_self_func.
2103         (gl_thread_self_func): New declaration.
2104         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
2105         (do_init_self_key, init_self_key): New functions.
2106         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
2107         Remove some fields.
2108         (running_threads, running_lock): Remove variables.
2109         (get_current_thread_handle): New function.
2110         (gl_thread_self_func, wrapper_func, glthread_create_func,
2111         glthread_join_func, gl_thread_exit_func): Largely rewritten and
2112         simplified.
2113
2114 2008-09-30  Bruno Haible  <bruno@clisp.org>
2115
2116         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
2117         files.
2118
2119 2008-09-30  Jim Meyering  <meyering@redhat.com>
2120
2121         fts.m4: correct the test for statfs.f_type
2122         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
2123         when checking for statfs.f_type.
2124
2125 2008-09-15  Simon Josefsson  <simon@josefsson.org>
2126
2127         tests: avoid some compiler warnings
2128         * tests/test-memchr.c (main): Pass NULL indirectly.
2129         * tests/test-getdate.c (main): Remove unused variable 'ret'.
2130
2131 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
2132
2133         getdate.y: disallow countable dayshifts like "4 yesterday ago"
2134         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
2135         exactly specified dayshifts.
2136         (dayshift): New rule.
2137         (rel): Add dayshift.
2138         (relative_time_table) [tomorrow, yesterday, today, now]:
2139         Use tDAY_SHIFT in place of tDAY_UNIT.
2140         * tests/test-getdate.c: Add tests for now-disallowed countable
2141         dayshifts, e.g., "4 yesterday ago".
2142
2143 2008-09-29  Bruno Haible  <bruno@clisp.org>
2144
2145         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
2146         * tests/test-posix_spawn1.in.sh: Renamed from
2147         tests/test-posix_spawn.in.sh.
2148         * tests/test-posix_spawn2.c: New file.
2149         * tests/test-posix_spawn2.in.sh: New file.
2150         * modules/posix_spawnp-tests (Files): Update.
2151         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
2152
2153 2008-09-29  Bruno Haible  <bruno@clisp.org>
2154
2155         Propagate effects of putenv/setenv/unsetenv to child processes.
2156         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
2157         * lib/pipe.c (create_pipe): Likewise.
2158
2159 2008-09-29  Bruno Haible  <bruno@clisp.org>
2160
2161         Enable use of shell scripts as executables in mingw.
2162         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
2163         run the program as a shell script.
2164         * lib/pipe.c (create_pipe): Likewise.
2165         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
2166         resulting array.
2167
2168 2008-09-29  Eric Blake  <ebb9@byu.net>
2169
2170         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
2171
2172 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
2173
2174         * doc/posix-functions/accept.texi: Update mingw problems.
2175         * doc/posix-functions/bind.texi: Update mingw problems.
2176         * doc/posix-functions/close.texi: Update mingw problems.
2177         * doc/posix-functions/connect.texi: Update mingw problems.
2178         * doc/posix-functions/getpeername.texi: Update mingw problems.
2179         * doc/posix-functions/getsockname.texi: Update mingw problems.
2180         * doc/posix-functions/getsockopt.texi: Update mingw problems.
2181         * doc/posix-functions/ioctl.texi: Update mingw problems.
2182         * doc/posix-functions/listen.texi: Update mingw problems.
2183         * doc/posix-functions/recv.texi: Update mingw problems.
2184         * doc/posix-functions/recvfrom.texi: Update mingw problems.
2185         * doc/posix-functions/select.texi: Update mingw problems.
2186         * doc/posix-functions/send.texi: Update mingw problems.
2187         * doc/posix-functions/sendto.texi: Update mingw problems.
2188         * doc/posix-functions/setsockopt.texi: Update mingw problems.
2189         * doc/posix-functions/socket.texi: Update mingw problems.
2190
2191 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
2192             Bruno Haible  <bruno@clisp.org>
2193
2194         * lib/sys_select.in.h: Include sys/time.h.
2195         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
2196         * modules/sys_select: Depend on sys_time.
2197         * tests/test-sys_select.c: Test that sys/select.h defines struct
2198         timeval fully.
2199
2200 2008-09-29  Bruno Haible  <bruno@clisp.org>
2201
2202         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
2203         * lib/sys_select.in.h: Likewise.
2204
2205 2008-09-29  Bruno Haible  <bruno@clisp.org>
2206
2207         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
2208
2209 2008-09-29  Bruno Haible  <bruno@clisp.org>
2210
2211         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
2212         Set LIBSOCKET instead of augmenting LIBS.
2213         * modules/sockets (Link): New section.
2214         * modules/sockets-tests (test_sockets_LDADD): New variable.
2215         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
2216         * modules/poll-tests (test_poll_LDADD): New variable.
2217         * NEWS: Document the change.
2218
2219 2008-09-29  Bruno Haible  <bruno@clisp.org>
2220
2221         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
2222         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
2223         ARPA_INET_H directly.
2224         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
2225
2226 2008-09-28  Bruno Haible  <bruno@clisp.org>
2227
2228         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
2229         from gl_HEADER_SYS_SOCKET.
2230         (gl_HEADER_SYS_SOCKET): Invoke it.
2231         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
2232
2233 2008-09-28  Bruno Haible  <bruno@clisp.org>
2234
2235         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
2236         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
2237         Needed on OSF/1 4.0.
2238
2239 2008-09-28  Bruno Haible  <bruno@clisp.org>
2240
2241         Override open more carefully.
2242         * lib/open.c (orig_open): New function.
2243         (rpl_open): Use orig_open instead of open.
2244         * lib/fcntl.in.h: Add special invocation convention.
2245         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
2246         (gl_FUNC_OPEN): Invoke it.
2247
2248         Override freopen more carefully.
2249         * lib/freopen.c (orig_freopen): New function.
2250         (rpl_freopen): Use orig_freopen instead of freopen.
2251         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
2252         (gl_FUNC_FREOPEN): Invoke it.
2253
2254         Override fopen more carefully.
2255         * lib/fopen.c (orig_fopen): New function.
2256         (rpl_fopen): Use orig_fopen instead of fopen.
2257         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
2258         (gl_FUNC_FOPEN): Invoke it.
2259         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
2260
2261 2008-09-28  Bruno Haible  <bruno@clisp.org>
2262
2263         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
2264         SIGPIPE.
2265
2266 2008-09-28  Bruno Haible  <bruno@clisp.org>
2267
2268         * tests/test-sigaction.c (handler, main): Disable the check whether
2269         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
2270         glibc systems with LinuxThreads.
2271
2272 2008-09-28  Bruno Haible  <bruno@clisp.org>
2273
2274         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
2275
2276         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
2277         with AIX xlc.
2278         * lib/fcntl.in.h (open): Likewise.
2279         Reported by Rainer Tammer <tammer@tammer.net>.
2280
2281 2008-09-28  Bruno Haible  <bruno@clisp.org>
2282
2283         * modules/posix_spawnp-tests: New file.
2284         * tests/test-posix_spawn.c: New file.
2285         * tests/test-posix_spawn.in.sh: New file.
2286
2287         New module 'posix_spawnp'.
2288         * modules/posix_spawnp: New file.
2289         * lib/spawnp.c: New file, from GNU libc with modifications.
2290         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
2291
2292         New module 'posix_spawn'.
2293         * modules/posix_spawn: New file.
2294         * lib/spawn.c: New file, from GNU libc with modifications.
2295         * doc/posix-functions/posix_spawn.texi: Mention the new module.
2296
2297         New module 'posix_spawnattr_destroy'.
2298         * modules/posix_spawnattr_destroy: New file.
2299         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
2300         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
2301         module.
2302
2303         New module 'posix_spawnattr_setsigmask'.
2304         * modules/posix_spawnattr_setsigmask: New file.
2305         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
2306         modifications.
2307         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
2308         new module.
2309
2310         New module 'posix_spawnattr_getsigmask'.
2311         * modules/posix_spawnattr_getsigmask: New file.
2312         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
2313         modifications.
2314         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
2315         new module.
2316
2317         New module 'posix_spawnattr_setsigdefault'.
2318         * modules/posix_spawnattr_setsigdefault: New file.
2319         * lib/spawnattr_setdefault.c: New file, from GNU libc with
2320         modifications.
2321         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
2322         new module.
2323
2324         New module 'posix_spawnattr_getsigdefault'.
2325         * modules/posix_spawnattr_getsigdefault: New file.
2326         * lib/spawnattr_getdefault.c: New file, from GNU libc with
2327         modifications.
2328         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
2329         new module.
2330
2331         New module 'posix_spawnattr_setschedpolicy'.
2332         * modules/posix_spawnattr_setschedpolicy: New file.
2333         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
2334         modifications.
2335         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
2336         new module.
2337
2338         New module 'posix_spawnattr_getschedpolicy'.
2339         * modules/posix_spawnattr_getschedpolicy: New file.
2340         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
2341         modifications.
2342         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
2343         new module.
2344
2345         New module 'posix_spawnattr_setschedparam'.
2346         * modules/posix_spawnattr_setschedparam: New file.
2347         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
2348         modifications.
2349         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
2350         new module.
2351
2352         New module 'posix_spawnattr_getschedparam'.
2353         * modules/posix_spawnattr_getschedparam: New file.
2354         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
2355         modifications.
2356         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
2357         new module.
2358
2359         New module 'posix_spawnattr_setpgroup'.
2360         * modules/posix_spawnattr_setpgroup: New file.
2361         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
2362         modifications.
2363         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
2364         module.
2365
2366         New module 'posix_spawnattr_getpgroup'.
2367         * modules/posix_spawnattr_getpgroup: New file.
2368         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
2369         modifications.
2370         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
2371         module.
2372
2373         New module 'posix_spawnattr_setflags'.
2374         * modules/posix_spawnattr_setflags: New file.
2375         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
2376         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
2377         module.
2378
2379         New module 'posix_spawnattr_getflags'.
2380         * modules/posix_spawnattr_getflags: New file.
2381         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
2382         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
2383         module.
2384
2385         New module 'posix_spawnattr_init'.
2386         * modules/posix_spawnattr_init: New file.
2387         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
2388         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
2389         module.
2390
2391         New module 'posix_spawn_file_actions_destroy'.
2392         * modules/posix_spawn_file_actions_destroy: New file.
2393         * lib/spawn_faction_destroy.c: New file, from GNU libc with
2394         modifications.
2395         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
2396         the new module.
2397
2398         New module 'posix_spawn_file_actions_addopen'.
2399         * modules/posix_spawn_file_actions_addopen: New file.
2400         * lib/spawn_faction_addopen.c: New file, from GNU libc with
2401         modifications.
2402         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
2403         the new module.
2404
2405         New module 'posix_spawn_file_actions_adddup2'.
2406         * modules/posix_spawn_file_actions_adddup2: New file.
2407         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
2408         modifications.
2409         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
2410         the new module.
2411
2412         New module 'posix_spawn_file_actions_addclose'.
2413         * modules/posix_spawn_file_actions_addclose: New file.
2414         * lib/spawn_faction_addclose.c: New file, from GNU libc with
2415         modifications.
2416         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
2417         the new module.
2418
2419         New module 'posix_spawn_file_actions_init'.
2420         * modules/posix_spawn_file_actions_init: New file.
2421         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
2422         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
2423         new module.
2424
2425         New module 'posix_spawn-internal'.
2426         * modules/posix_spawn-internal: New file.
2427         * lib/spawn_int.h: New file, from GNU libc with modifications.
2428         * lib/spawni.c: New file, from GNU libc with modifications.
2429         * m4/posix_spawn.m4: New file.
2430
2431         New module 'spawn'.
2432         * modules/spawn: New file.
2433         * lib/spawn.in.h: New file, from GNU libc with modifications.
2434         * m4/spawn_h.m4: New file.
2435         * doc/posix-headers/spawn.texi: Mention the new module.
2436
2437 2008-09-28  Bruno Haible  <bruno@clisp.org>
2438
2439         * modules/sched-tests: New file.
2440         * tests/test-sched.c: New file.
2441
2442         New module 'sched'.
2443         * modules/sched: New file.
2444         * lib/sched.in.h: New file.
2445         * m4/sched_h.m4: New file.
2446         * doc/posix-headers/sched.texi: Mention the new module.
2447
2448 2008-09-27  Eric Blake  <ebb9@byu.net>
2449
2450         Fix previous patch, and tweak references to $0.
2451         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
2452         (func_version, func_gnulib_dir): Don't call this program
2453         gnulib-tool.
2454         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
2455         with using $0 in function.
2456         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
2457         (func_fatal_error): Reuse the name the user invoked us with.
2458
2459 2008-09-27  Bruno Haible  <bruno@clisp.org>
2460
2461         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
2462         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
2463         (gl_ICONV_H): Not here.
2464         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
2465         instead of assigning ICONV_H directly.
2466
2467         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
2468         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
2469         WCHAR_H directly.
2470
2471 2008-09-27  Bruno Haible  <bruno@clisp.org>
2472
2473         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
2474         * modules/arpa_inet (Depends-on): Add link-warning.
2475         (Makefile.am): Insert the definition of GL_LINK-WARNING.
2476         * modules/unistd (Makefile.am): Likewise.
2477
2478 2008-09-26  Bruno Haible  <bruno@clisp.org>
2479
2480         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
2481         variables.
2482         (func_version): Essentially copied from gnulib-tool.
2483         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
2484         func_readlink): Copied from gnulib-tool.
2485
2486 2008-09-26  Bruno Haible  <bruno@clisp.org>
2487
2488         * gnulib-tool (func_version): Change directory to $gnulib_dir before
2489         invoking git-version-gen.
2490
2491 2008-09-26  Bruno Haible  <bruno@clisp.org>
2492
2493         * posix-modules: Update to directory names changed on 2008-01-19.
2494         Remove commas in output before splitting into words. No more need to
2495         avoid 'ftruncate' since 2007-02-19.
2496
2497 2008-09-26  Bruno Haible  <bruno@clisp.org>
2498
2499         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
2500
2501 2008-09-26  Bruno Haible  <bruno@clisp.org>
2502
2503         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
2504         * modules/fwriteerror (Depends-on): Add errno.
2505
2506 2008-09-26  Bruno Haible  <bruno@clisp.org>
2507
2508         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
2509         * tests/test-vc-list-files-cvs.sh: Likewise.
2510
2511 2008-09-26  Bruno Haible  <bruno@clisp.org>
2512
2513         * doc/posix-headers/sys_resource.texi: Reorder items.
2514
2515 2008-09-26  Jim Meyering  <meyering@redhat.com>
2516
2517         fts: tweak inode comparison function
2518         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
2519         inode numbers, as documented.
2520
2521         fts: sort dirent entries on inode number before traversing
2522         This avoids a quadratic, seek-related performance penalty when
2523         operating on a directory containing many entries (measurable at 10k;
2524         3.5 hours at 2 million entries with a cold cache) on certain types
2525         of file systems, including ext3 and ext4, but not tmpfs.
2526         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
2527         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
2528         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
2529         (fs_handles_readdir_ordered_dirents_efficiently): New function.
2530         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
2531         (fts_build): Set the stat.st_ino member from D_INO.
2532         If it is likely to be useful, sort dirent entries on inode number.
2533
2534         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
2535         and the struct statfs.f_type member.
2536         * modules/fts (Depends-on): Add d-ino.
2537
2538 2008-09-26  Bruno Haible  <bruno@clisp.org>
2539
2540         * modules/sigpipe-die (Depends-on): Add sigpipe.
2541
2542         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
2543         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
2544         and GNULIB_STDIO_H_SIGPIPE are set.
2545         * lib/stdio-write.c: New file.
2546         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
2547         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
2548         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
2549         REPLACE_STDIO_WRITE_FUNCS.
2550         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
2551         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
2552         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
2553         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
2554         * modules/stdio (Files): Add lib/stdio-write.c.
2555         (Makefile.am): Substitute 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         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
2560         REPLACE_FPRINTF_POSIX.
2561         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
2562         REPLACE_PRINTF_POSIX.
2563         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
2564         REPLACE_VFPRINTF_POSIX.
2565         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
2566         REPLACE_VPRINTF_POSIX.
2567         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
2568         SIGPIPE issue.
2569         * doc/posix-functions/fputc.texi: Likewise.
2570         * doc/posix-functions/fputs.texi: Likewise.
2571         * doc/posix-functions/fwrite.texi: Likewise.
2572         * doc/posix-functions/printf.texi: Likewise.
2573         * doc/posix-functions/putc.texi: Likewise.
2574         * doc/posix-functions/putchar.texi: Likewise.
2575         * doc/posix-functions/puts.texi: Likewise.
2576         * doc/posix-functions/vfprintf.texi: Likewise.
2577         * doc/posix-functions/vprintf.texi: Likewise.
2578
2579         * modules/safe-write (Depends-on): Add write.
2580
2581         * modules/sigpipe-tests: New file.
2582         * tests/test-sigpipe.c: New file.
2583         * tests/test-sigpipe.sh: New file.
2584
2585         * modules/write: New file.
2586         * lib/unistd.in.h: Include <sys/types.h>.
2587         (write): New declaration.
2588         * lib/write.c: New file.
2589         * m4/write.m4: New file.
2590         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
2591         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
2592         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
2593         GNULIB_WRITE, REPLACE_WRITE.
2594         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
2595         and the SIGPIPE issue.
2596
2597         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
2598         (raise): New declaration.
2599         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
2600         (ext_signal): New function.
2601         (rpl_raise): New function.
2602         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
2603         GNULIB_SIGNAL_H_SIGPIPE.
2604         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
2605         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
2606
2607         * modules/sigpipe: New file.
2608         * m4/sigpipe.m4: New file.
2609
2610 2008-09-25  Derek Price  <derek@ximbiot.com>
2611             Bruno Haible  <bruno@clisp.org>
2612
2613         * gnulib-tool (func_import): Report all license incompatibilities, not
2614         just the first one.
2615
2616 2008-09-25  Bruno Haible  <bruno@clisp.org>
2617
2618         * gnulib-tool (func_import): When computing the edits, consider not
2619         only the Makefile.ams that exist but also those that will be generated.
2620
2621 2008-09-25  Simon Josefsson  <simon@josefsson.org>
2622
2623         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
2624         fixes gnulib-tool --test warning about duplicate dependency.
2625
2626 2008-09-25  Bruno Haible  <bruno@clisp.org>
2627
2628         * gnulib-tool: Don't ask the user to perform edits in the generated
2629         Makefile.ams.
2630         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
2631         apply to the Makefile.am being generated.
2632         (func_emit_tests_Makefile_am): Execute edits that apply to the
2633         Makefile.am being generated.
2634         (func_import): Setup list of Makefile.am edits before emitting the
2635         Makefile.ams, not at the end.
2636         (func_create_testdir): Update.
2637         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
2638
2639 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
2640
2641         * gnulib-tool (func_import): Store the --tests-base option in the
2642         comment in gnulib-cache.m4.
2643
2644 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
2645
2646         * NEWS: Document increased portability that sys_select now provides.
2647
2648         * lib/sys_select.in.h: Install select wrapper.
2649         * lib/sys_socket.in.h: Use more descriptive name when there is no
2650         select wrapper.
2651         * lib/winsock-select.c: New.
2652         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
2653         Require gl_HEADER_SYS_SOCKET.
2654         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
2655         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
2656         * tests/test-sys_select.c: Add functional tests.
2657
2658 2008-09-24  Eric Blake  <ebb9@byu.net>
2659
2660         open, fopen: close fd leak in last patch
2661         * lib/open.c (rpl_open): Close fd before returning error.
2662         * lib/fopen.c (rpl_fopen): Close fd before returning error.
2663         * doc/posix-functions/open.texi (open): Document that Irix also
2664         has the bug.
2665         * doc/posix-functions/fopen.texi (fopen): Likewise.
2666         Reported by Paolo Bonzini.
2667
2668 2008-09-24  Bruno Haible  <bruno@clisp.org>
2669
2670         Ensure that a filename ending in a slash cannot be used to access a
2671         non-directory.
2672         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
2673         to check whether it's really a directory.
2674         * lib/fopen.c: Include fcntl.h, unistd.h.
2675         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
2676         and fdopen().
2677         * modules/fopen (Depends-on): Add unistd.
2678         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
2679         * tests/test-fopen.c (main): Likewise.
2680         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
2681         * doc/posix-functions/fopen.texi: Likewise.
2682         Reported by Eric Blake.
2683
2684 2008-09-23  Eric Blake  <ebb9@byu.net>
2685
2686         c-stack: avoid compiler optimizations when provoking overflow
2687         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
2688         recursion harder to optimize, to ensure a stack overflow occurs.
2689         * tests/test-c-stack.c (recurse): Likewise.
2690         Borrowed from libsigsegv.
2691
2692         c-stack: work around Irix sigaltstack bug
2693         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
2694         whether sigaltstack uses wrong end of stack_t (copied in part from
2695         libsigsegv).
2696         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
2697         Irix bug, without requiring an over-allocation.
2698         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
2699         bug.
2700
2701         fopen: document mingw bug on directories
2702         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
2703         not allowing a stream visiting a directory, even though reading
2704         from such a stream is not portable.
2705
2706 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
2707
2708         * lib/poll.c: Rewrite.
2709         * modules/poll: Depend on alloca.
2710
2711 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
2712
2713         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
2714         instead define prototypes for a full set of wrappers.  Ensure
2715         that Cygwin does not use the compatibility code, which is only
2716         for MinGW.
2717         * lib/winsock.c: New.
2718         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
2719         * modules/sys_socket: Add lib/winsock.c.
2720
2721         * modules/poll-tests: Add errno and perror.
2722         * tests/test-poll.c: Use ioctl, not ioctlsocket.
2723
2724 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
2725
2726         * tests/test-poll.c: Downgrade minimum needed Winsock version.
2727
2728 2008-09-23  Bruno Haible  <bruno@clisp.org>
2729
2730         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
2731         * doc/glibc-functions/*: Likewise.
2732
2733 2008-09-23  Simon Josefsson  <simon@josefsson.org>
2734
2735         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
2736         success.
2737
2738 2008-09-22  Eric Blake  <ebb9@byu.net>
2739             Bruno Haible  <bruno@clisp.org>
2740
2741         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
2742         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
2743         supply %A but mishandle pseudo-NaN.
2744         Reported by Simon Josefsson.
2745
2746 2008-09-21  Bruno Haible  <bruno@clisp.org>
2747
2748         * tests/test-lock.c (main): Tweak skip message.
2749         * tests/test-tls.c (main): Likewise.
2750
2751 2008-09-21  Bruno Haible  <bruno@clisp.org>
2752
2753         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
2754         whether 'struct sigaction' has sa_sigaction here...
2755         (gl_PREREQ_SIG_HANDLER_H): ... not here.
2756         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
2757
2758 2008-09-21  Bruno Haible  <bruno@clisp.org>
2759
2760         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
2761         section.
2762         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
2763         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
2764         the new section.
2765         (Support for obsolete systems lacking POSIX:2001): New section.
2766         (String handling <string.h>): Move strdup to the new section.
2767         Suggested by Simon Josefsson and Paolo Bonzini.
2768
2769 2008-09-21  Bruno Haible  <bruno@clisp.org>
2770
2771         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
2772         exponents in %e and %g results on 'long double'. Needed for mingw's
2773         improved *printf functions.
2774         * tests/test-vasprintf-posix.c (test_function): Likewise.
2775         * tests/test-snprintf-posix.h (test_function): Likewise.
2776         * tests/test-sprintf-posix.h (test_function): Likewise.
2777         Reported by Eric Blake.
2778
2779 2008-09-21  Bruno Haible  <bruno@clisp.org>
2780
2781         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
2782         * tests/test-sprintf-posix.h (test_function): Likewise.
2783
2784 2008-09-21  Bruno Haible  <bruno@clisp.org>
2785
2786         * modules/getpass (Depends-on): Add strdup-posix.
2787
2788         New module 'strdup-posix'.
2789         * modules/strdup-posix: New file.
2790         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
2791         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
2792         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
2793         REPLACE_STRDUP.
2794         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
2795         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
2796         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
2797         strdup-posix.
2798
2799         * modules/strdup (Depends-on): Remove malloc-posix.
2800
2801 2008-09-20  Bruno Haible  <bruno@clisp.org>
2802
2803         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
2804         Wildenhues.
2805
2806 2008-09-20  Bruno Haible  <bruno@clisp.org>
2807
2808         Ensure that wint_t gets defined on IRIX 5.3.
2809         * lib/wchar.in.h (wint_t): Define if not defined by the system.
2810         * lib/wctype.in.h (wint_t): Likewise.
2811         (__wctype_wint_t): Remove type.
2812         (isw*): Use wint_t instead of __wctype_wint_t.
2813         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
2814         * modules/wchar (Files): Add m4/wint_t.m4.
2815         (Makefile.am): Substitute HAVE_WINT_T.
2816         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
2817         * tests/test-wctype.c: Check that wint_t is defined.
2818         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
2819         * doc/posix-headers/wctype.texi: Likewise.
2820         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2821
2822 2008-09-18  Bruno Haible  <bruno@clisp.org>
2823
2824         * gnulib-tool (func_exit): Update comment.
2825
2826 2008-09-18  Simon Josefsson  <simon@josefsson.org>
2827
2828         * modules/getaddrinfo (Depends-on): Remove strdup, this module
2829         assumes strdup exists and does not depend on strdup to return
2830         ENOMEM on out of memory conditions.
2831
2832 2008-09-18  Bruno Haible  <bruno@clisp.org>
2833
2834         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
2835         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
2836         digits for the exponent.
2837
2838 2008-09-18  Jim Meyering  <meyering@redhat.com>
2839             Bruno Haible  <bruno@clisp.org>
2840
2841         * lib/vasnprintf.c (decimal_point_char): Define also if
2842         NEED_PRINTF_INFINITE_LONG_DOUBLE.
2843
2844 2008-09-16  Bruno Haible  <bruno@clisp.org>
2845         and Eric Blake  <ebb9@byu.net>
2846
2847         vasnprintf: support Irix 5.3
2848         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
2849         that mishandle long double infinity.
2850         Reported by Tom G. Christensen.
2851
2852 2008-09-16  Bruno Haible  <bruno@clisp.org>
2853
2854         * doc/glibc-functions/scandir.texi: Mention the function is missing on
2855         Solaris 9.
2856         * doc/glibc-functions/alphasort.texi: Likewise.
2857         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
2858
2859 2008-09-16  Jim Meyering  <meyering@redhat.com>
2860
2861         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
2862         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
2863         a umask modification leak out of a subshell.  Otherwise, the
2864         opensolaris /bin/sh would be accepted and thus cause unwarranted
2865         failures in the coreutils test suite.
2866
2867 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
2868
2869         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
2870         to succeed.
2871
2872 2008-09-16  Jim Meyering  <meyering@redhat.com>
2873
2874         avoid spurious test failure when library is built without ACL support
2875         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
2876         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
2877         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
2878         * tests/test-copy-acl.sh: Likewise.
2879
2880 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2881
2882         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
2883         based on character occurrence counts.
2884
2885 2008-09-15  Eric Blake  <ebb9@byu.net>
2886
2887         tests: avoid some compiler warnings
2888         * tests/test-memchr.c (main): Pass NULL indirectly.
2889         * tests/test-closein.c (main): Avoid unused variable.
2890
2891 2008-09-15  Bruno Haible  <bruno@clisp.org>
2892
2893         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
2894         are missing on OpenBSD 4.0 individually.
2895         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
2896
2897 2008-09-15  Bruno Haible  <bruno@clisp.org>
2898
2899         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
2900         * doc/posix-functions/strerror.texi: Mention also Cygwin.
2901         * doc/posix-functions/perror.texi: Likewise.
2902         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
2903         is missing.
2904         Reported by Eric Blake.
2905
2906         * lib/errno.in.h: Use replacement values >= 2000.
2907         Reported by Eric Blake.
2908
2909 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2910
2911         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
2912         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
2913         limit.
2914         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
2915         compareseq was aborted.
2916
2917 2008-09-14  Bruno Haible  <bruno@clisp.org>
2918
2919         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
2920         yvec_edit_count.
2921         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
2922         (fstrcmp_bounded): Simplify result computation accordingly.
2923
2924 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2925
2926         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
2927         (fstrcmp): Define in terms of fstrcmp_bounded.
2928         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
2929         lower_bound argument.
2930         Return quickly if the result is certainly < lower_bound.
2931         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
2932
2933 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2934
2935         * lib/diffseq.h (EARLY_ABORT): New macro.
2936         (compareseq): Change return type to bool. Return true when EARLY_ABORT
2937         evaluates to true.
2938
2939 2008-09-14  Bruno Haible  <bruno@clisp.org>
2940
2941         * modules/perror-tests: New file.
2942         * tests/test-perror.sh: New file.
2943         * tests/test-perror.c: New file.
2944
2945         New module 'perror'.
2946         * lib/stdio.in.h (perror): New declaration.
2947         * lib/perror.c: New file.
2948         * m4/perror.m4: New file.
2949         * modules/perror: New file.
2950         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
2951         * doc/posix-functions/perror.texi: Mention the perror module.
2952         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
2953         REPLACE_PERROR.
2954         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
2955         REPLACE_PERROR.
2956
2957 2008-09-14  Bruno Haible  <bruno@clisp.org>
2958
2959         * modules/stdio (Makefile.am): Reorder to match the order in
2960         lib/stdio.in.h.
2961         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
2962
2963 2008-09-13  Bruno Haible  <bruno@clisp.org>
2964
2965         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
2966
2967 2008-09-13  Bruno Haible  <bruno@clisp.org>
2968
2969         Extend strerror to cover the added errno values.
2970         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
2971         (rpl_strerror): Provide error messages for the added errno values and
2972         for the WSA* values.
2973         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
2974         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
2975         strerror.
2976         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
2977         * modules/strerror (Depends-on): Add errno.
2978         * doc/posix-functions/strerror.texi: Document the change.
2979         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
2980         and EOVERFLOW.
2981
2982 2008-09-13  Bruno Haible  <bruno@clisp.org>
2983
2984         * modules/EOVERFLOW: Remove file.
2985         * m4/eoverflow.m4: Remove file.
2986         * modules/EOVERFLOW-tests: Remove file.
2987         * tests/test-EOVERFLOW.c: Remove file.
2988         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
2989         * modules/ftell (Depends-on): Likewise.
2990         * modules/getdelim (Depends-on): Likewise.
2991         * modules/getugroups (Depends-on): Likewise.
2992         * modules/poll (Depends-on): Likewise.
2993         * modules/snprintf (Depends-on): Likewise.
2994         * modules/sprintf-posix (Depends-on): Likewise.
2995         * modules/vasnprintf (Depends-on): Likewise.
2996         * modules/vasprintf (Depends-on): Likewise.
2997         * modules/vfprintf-posix (Depends-on): Likewise.
2998         * modules/vsnprintf (Depends-on): Likewise.
2999         * modules/vsprintf-posix (Depends-on): Likewise.
3000         * modules/xvasprintf (Depends-on): Likewise.
3001         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
3002         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
3003         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
3004         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
3005         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
3006         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
3007         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
3008         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
3009         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
3010         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
3011         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
3012         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
3013         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
3014         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
3015         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
3016         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
3017         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
3018         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
3019         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
3020         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
3021         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
3022         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
3023         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
3024         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
3025         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
3026         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
3027         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
3028         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
3029         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
3030         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
3031         * MODULES.html.sh: Remove EOVERFLOW.
3032         * NEWS: Mention the change.
3033
3034 2008-09-13  Bruno Haible  <bruno@clisp.org>
3035
3036         * modules/errno-tests: New file.
3037         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
3038
3039         * lib/errno.in.h: New file.
3040         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
3041         * modules/errno: New file.
3042         * doc/posix-headers/errno.texi: Update documentation.
3043         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
3044
3045 2008-09-13  Bruno Haible  <bruno@clisp.org>
3046
3047         * tests/test-poll.c: Use #if for native Windows, rather than testing
3048         __MSVCRT__.
3049
3050 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
3051             Bruno Haible  <bruno@clisp.org>
3052
3053         * lib/glob.c: Don't include <pwd.h> on native Windows.
3054         (WINDOWS32): New macro.
3055         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
3056
3057 2008-09-13  Bruno Haible  <bruno@clisp.org>
3058
3059         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
3060         (ETIMEDOUT): Remove macro.
3061         (glthread_cond_timedwait_multithreaded): New declaration.
3062         (glthread_cond_timedwait): Use it.
3063         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
3064         (glthread_cond_timedwait_multithreaded): New function.
3065
3066 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
3067
3068         * modules/poll-tests: Do not check for io.h.
3069         * tests/test-poll.c: Check for __MSVCRT__ instead.
3070
3071 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
3072
3073         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
3074         * modules/poll-tests: Add inet_pton, stdbool, sockets.
3075         * tests/test-poll.c: Use them.  Use _pipe on Windows.
3076
3077 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
3078
3079         * modules/poll-tests: New.
3080         * tests/test-poll.c: New.
3081
3082 2008-09-12  Eric Blake  <ebb9@byu.net>
3083
3084         frexp: test for NetBSD failure on -0.0
3085         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
3086         not all, bugs from NetBSD 3.0 have been fixed.
3087         * doc/posix-functions/frexp.texi (frexp): Document bug.
3088         Reported by Thomas Klausner.
3089
3090         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
3091         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
3092         literal -0.0.
3093         Reported by Jonathan C. Patschke <jp@centtech.com>.
3094
3095 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
3096
3097         * lib/glthread/cond.h: Use dummy implementation also if
3098         USE_WIN32_THREADS.
3099
3100 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
3101
3102         * modules/fnmatch-posix (License): Change to LGPLv2+.
3103         * modules/fnmatch-gnu (License): Likewise.
3104
3105 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
3106
3107         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
3108
3109 2008-09-11  Jim Meyering  <meyering@redhat.com>
3110
3111         * users.txt: Add gtk-vnc.
3112
3113 2008-09-08  Simon Josefsson  <simon@josefsson.org>
3114
3115         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
3116         rotate amounts.
3117
3118         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
3119         required for 16-bit and 8-bit rotates.
3120         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
3121         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
3122         UINT8_MAX instead of hard-coded constants.
3123         Suggested by Paul Eggert.
3124
3125 2008-09-07  Bruno Haible  <bruno@clisp.org>
3126
3127         * tests/test-striconveh.c (main): Check behaviour when converting from
3128         UTF-7.
3129
3130         Make striconveh work better with stateful encodings.
3131         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
3132         that iconv does not increment the inptr when returning -1/EINVAL.
3133
3134 2008-09-07  Bruno Haible  <bruno@clisp.org>
3135
3136         * build-aux/config.rpath: Update according to libtool-2.2.6.
3137         * build-aux/config.libpath: Likewise.
3138
3139 2008-09-06  Bruno Haible  <bruno@clisp.org>
3140
3141         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
3142         * lib/freadptr.c (freadptr): Likewise.
3143         * lib/freadseek.c (freadptrinc): Likewise.
3144         Reported by Simon Josefsson.
3145
3146 2008-09-06  Bruno Haible  <bruno@clisp.org>
3147
3148         * modules/freadptr (License): Change to LGPLv2+.
3149         * modules/freadseek (License): Likewise.
3150         Suggested by Eric Blake.
3151
3152         * modules/memchr2 (License): Change to LGPLv2+.
3153         Approved by Eric Blake.
3154
3155 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3156             Bruno Haible  <bruno@clisp.org>
3157
3158         Make gnulib-tool work with native 'sed' on AIX.
3159         * gnulib-tool (sed_noop): New variable.
3160         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
3161         func_add_or_update, func_create_testdir): Use it to initialize sed
3162         script variables.
3163         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
3164
3165 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
3166             Bruno Haible  <bruno@clisp.org>
3167
3168         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
3169         also works after #include directives.
3170
3171 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
3172
3173         getdate.y: reject an out-of-range timezone value
3174         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
3175         the range [-24...+24].  When specified with only one or two digits,
3176         * tests/test-getdate.c: Tests for the fix.
3177         * doc/getdate.texi: Document this change.
3178
3179 2008-09-03  Bruno Haible  <bruno@clisp.org>
3180
3181         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
3182
3183 2008-09-02  Simon Josefsson  <simon@josefsson.org>
3184
3185         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
3186         <bruce.korb@gmail.com> with ideas from Ben Pfaff
3187         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
3188         Blake <ebb9@byu.net>.
3189
3190         * tests/test-bitrotate.c: Add more test vectors.
3191
3192 2008-09-02  Eric Blake  <ebb9@byu.net>
3193
3194         vasnprintf-posix: handle large precision via %.*d
3195         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
3196         when handling it ourselves.
3197         * tests/test-vasnprintf-posix.c (test_function): Add test.
3198         * tests/test-snprintf-posix.h (test_function): Likewise.
3199         * tests/test-sprintf-posix.h (test_function): Likewise.
3200         * tests/test-vasprintf-posix.c (test_function): Likewise.
3201         Reported by Alain Guibert.
3202
3203 2008-09-01  Eric Blake  <ebb9@byu.net>
3204
3205         c-stack: make configure-time check more robust
3206         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
3207         successful sigaction call.
3208         Reported by Tom G. Christensen.
3209
3210 2008-09-01  Bruno Haible  <bruno@clisp.org>
3211
3212         New module 'findprog-lgpl'.
3213         * modules/findprog-lgpl: New file.
3214         * lib/findprog-lgpl.c: New file.
3215         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
3216         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
3217         to decide whether to use strdup or xstrdup, concatenated_filename or
3218         xconcatenated_filename.
3219
3220 2008-09-01  Bruno Haible  <bruno@clisp.org>
3221
3222         Split module 'concat-filename' into 'concat-filename' (LGPL) and
3223         'xconcat-filename' (GPL).
3224         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
3225         (License): Change to LGPLv2+.
3226         * modules/xconcat-filename: New file.
3227         * lib/concat-filename.h (concatenated_filename): Change specification.
3228         (xconcatenated_filename): New declaration.
3229         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
3230         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
3231         memory situations.
3232         * lib/xconcat-filename.c: New file.
3233         * NEWS: Mention the change.
3234         * lib/findprog.c: Include concat-filename.h, not filename.h.
3235         (find_in_path): Use xconcatenated_filename instead of
3236         concatenated_filename.
3237         * lib/javacomp.c: Include concat-filename.h, not filename.h.
3238         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
3239         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
3240         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
3241         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
3242         instead of concatenated_filename.
3243         * lib/javaexec.c: Include concat-filename.h, not filename.h.
3244         (execute_java_class): Use xconcatenated_filename instead of
3245         concatenated_filename.
3246         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
3247         * modules/javacomp (Depends-on): Likewise.
3248         * modules/javaexec (Depends-on): Likewise.
3249
3250 2008-09-01  Bruno Haible  <bruno@clisp.org>
3251
3252         Split module 'filename' into 'filename' and 'concat-filename'.
3253         * modules/filename: Keep only lib/filename.h.
3254         (License): Change to LGPLv2+.
3255         * modules/concat-filename: New file, extracted from modules/filename.
3256         * lib/filename.h (concatenated_filename): Remove declaration.
3257         * lib/concat-filename.h: New file, extracted from lib/filename.h.
3258         * lib/concat-filename.c: Include concat-filename.h.
3259         * NEWS: Mention the change.
3260
3261 2008-09-01  Simon Josefsson  <simon@josefsson.org>
3262
3263         * lib/bitrotate.h (rotl8, rotr8): Add.
3264
3265         * modules/bitrotate (configure.ac): Need
3266         AC_REQUIRE([AC_C_INLINE]).
3267         (Description): Mention stdint.h.  Reported by Bruno Haible
3268         <bruno@clisp.org>.
3269
3270         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
3271         Paolo Bonzini <bonzini@gnu.org>.
3272
3273 2008-08-31  Bruno Haible  <bruno@clisp.org>
3274
3275         Assume Solaris specific bi-arch conventions on Solaris systems.
3276         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
3277         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
3278         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
3279         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
3280         like acl_libdirstem.
3281         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
3282         acl_libdirstem.
3283         * NEWS: Mention the change.
3284         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
3285
3286 2008-08-31  Jim Meyering  <meyering@redhat.com>
3287
3288         * lib/strftime.h: Add comments describing the two added arguments.
3289
3290         remove duplicate #include directives
3291         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
3292         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
3293
3294 2008-08-31  Bruno Haible  <bruno@clisp.org>
3295
3296         New module 'sigpipe-die'.
3297         * modules/sigpipe-die: New file.
3298         * lib/sigpipe-die.h: New file.
3299         * lib/sigpipe-die.c: New file.
3300         * MODULES.html.sh (Signal handling): Add sigpipe-die.
3301
3302 2008-08-31  Bruno Haible  <bruno@clisp.org>
3303
3304         Don't override previously installed signal handlers.
3305         * lib/fatal-signal.c (saved_sigactions): New variable.
3306         (uninstall_handlers): Reset the signal to the saved handler, not
3307         to SIG_DFL (except when ignored).
3308         (install_handlers): Save the previous handlers.
3309
3310 2008-08-30  Bruno Haible  <bruno@clisp.org>
3311
3312         * gnulib-tool (func_reset_sigpipe): New function.
3313         (func_get_automake_snippet, func_modules_transitive_closure,
3314         func_import): Invoke it before a join command that reads from stdin,
3315         to avoid "echo: write error: Broken pipe" error messages on stderr.
3316         Reported by Sam Steingold <sds@gnu.org>.
3317
3318 2008-08-30  Bruno Haible  <bruno@clisp.org>
3319
3320         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
3321         Code copied from m4/open.m4.
3322         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
3323         access and the filename ends in a slash. Code copied from lib/open.c.
3324         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
3325         * tests/test-fopen.c (main): Check against bug with trailing slash.
3326
3327 2008-08-29  Bruno Haible  <bruno@clisp.org>
3328
3329         Avoid some "gcc -pedantic" warnings.
3330         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
3331         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
3332         * lib/dirent.in.h: Likewise.
3333         * lib/fcntl.in.h: Likewise.
3334         * lib/float.in.h: Likewise.
3335         * lib/iconv.in.h: Likewise.
3336         * lib/inttypes.in.h: Likewise.
3337         * lib/locale.in.h: Likewise.
3338         * lib/math.in.h: Likewise.
3339         * lib/netinet_in.in.h: Likewise.
3340         * lib/search.in.h: Likewise.
3341         * lib/signal.in.h: Likewise.
3342         * lib/stdarg.in.h: Likewise.
3343         * lib/stdint.in.h: Likewise.
3344         * lib/stdio.in.h: Likewise.
3345         * lib/stdlib.in.h: Likewise.
3346         * lib/string.in.h: Likewise.
3347         * lib/strings.in.h: Likewise.
3348         * lib/sys_select.in.h: Likewise.
3349         * lib/sys_socket.in.h: Likewise.
3350         * lib/sys_stat.in.h: Likewise.
3351         * lib/sys_time.in.h: Likewise.
3352         * lib/sysexits.in.h: Likewise.
3353         * lib/time.in.h: Likewise.
3354         * lib/unistd.in.h: Likewise.
3355         * lib/wchar.in.h: Likewise.
3356         * lib/wctype.in.h: Likewise.
3357         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
3358         * modules/fchdir (Makefile.am): Likewise.
3359         * modules/fcntl (Makefile.am): Likewise.
3360         * modules/float (Makefile.am): Likewise.
3361         * modules/iconv_open (Makefile.am): Likewise.
3362         * modules/inttypes (Makefile.am): Likewise.
3363         * modules/locale (Makefile.am): Likewise.
3364         * modules/math (Makefile.am): Likewise.
3365         * modules/netinet_in (Makefile.am): Likewise.
3366         * modules/search (Makefile.am): Likewise.
3367         * modules/signal (Makefile.am): Likewise.
3368         * modules/stdarg (Makefile.am): Likewise.
3369         * modules/stdint (Makefile.am): Likewise.
3370         * modules/stdio (Makefile.am): Likewise.
3371         * modules/stdlib (Makefile.am): Likewise.
3372         * modules/string (Makefile.am): Likewise.
3373         * modules/strings (Makefile.am): Likewise.
3374         * modules/sys_select (Makefile.am): Likewise.
3375         * modules/sys_socket (Makefile.am): Likewise.
3376         * modules/sys_stat (Makefile.am): Likewise.
3377         * modules/sys_time (Makefile.am): Likewise.
3378         * modules/sysexits (Makefile.am): Likewise.
3379         * modules/time (Makefile.am): Likewise.
3380         * modules/unistd (Makefile.am): Likewise.
3381         * modules/wchar (Makefile.am): Likewise.
3382         * modules/wctype (Makefile.am): Likewise.
3383         Reported by Reuben Thomas <rrt@sc3d.org>.
3384
3385 2008-08-29  Bruno Haible  <bruno@clisp.org>
3386
3387         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
3388         any more.
3389
3390 2008-08-29  Simon Josefsson  <simon@josefsson.org>
3391
3392         * MODULES.html.sh (Misc): Add bitrotate.
3393
3394         * modules/bitrotate: New file.
3395
3396         * lib/bitrotate.h: New file.
3397
3398         * modules/bitrotate-tests: New file.
3399
3400         * tests/test-bitrotate.c: New file.
3401
3402         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
3403         on the bitrotate module.
3404
3405         * lib/arctwo.c: Use new bitrotate module.
3406
3407 2008-08-29  Jim Meyering  <meyering@redhat.com>
3408
3409         bootstrap: merge changes from coreutils
3410         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
3411         of copied files.  Remove a kludge, now that this is fixed.
3412         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
3413         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
3414         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
3415
3416 2008-08-29  Bruno Haible  <bruno@clisp.org>
3417
3418         * MODULES.html.sh: Remove --cvs-urls option.
3419
3420 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
3421
3422         maint.mk: adjust to file name change
3423         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
3424
3425 2008-08-28  Jim Meyering  <meyering@redhat.com>
3426
3427         * modules/getndelim2 (License): Relicense to LGPLv2+.
3428         Approved by Richard Stallman for the version of 1995, and by
3429         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
3430
3431 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
3432
3433         * lib/getdelim.c (flockfile, funlockfile): Make all of them
3434         dummy if one is not available.  Do not touch them if
3435         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
3436         (getc_maybe_unlocked): New.
3437         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
3438
3439 2008-08-26  Eric Blake  <ebb9@byu.net>
3440
3441         doc/INSTALL: resync from autoconf
3442         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
3443         (INSTALL_PRELUDE): Delete; this is done more efficiently by
3444         moving...
3445         * install.texi [!autoconf]: ...here.  Resync from autoconf.
3446         * INSTALL: Regenerate.
3447         * INSTALL.ISO: New file.
3448         * INSTALL.UTF-8: Likewise.
3449
3450 2008-08-26  Jim Meyering  <meyering@redhat.com>
3451
3452         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
3453         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
3454         these definitions conditional, so that they may be overridden, too.
3455
3456 2008-08-26  Bruno Haible  <bruno@clisp.org>
3457
3458         Generate INSTALL file variants with prettier quotes.
3459         * doc/Makefile (INSTALL_PRELUDE): New macro.
3460         (INSTALL): Use it.
3461         (INSTALL.ISO, INSTALL.UTF-8): New rules.
3462
3463 2008-08-26  Bruno Haible  <bruno@clisp.org>
3464
3465         Run makeinfo in an English locale.
3466         * doc/Makefile (MAKEINFO): New variable.
3467
3468 2008-08-26  Bruno Haible  <bruno@clisp.org>
3469
3470         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
3471         Suggested by Eric Blake.
3472
3473 2008-08-25  Bruno Haible  <bruno@clisp.org>
3474
3475         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
3476
3477 2008-08-25  Eric Blake  <ebb9@byu.net>
3478
3479         c-stack: test that stack overflow can be caught
3480         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
3481         that platform allows handling stack overflow; at least OS/2 EMX
3482         has sigaltstack, but crashes before transferring control to
3483         handler on stack overflow.
3484         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
3485         check for HAVE_STACK_OVERFLOW_HANDLING.
3486         Reported by Elbert Pol.
3487
3488 2008-08-25  Bruno Haible  <bruno@clisp.org>
3489
3490         * doc/posix-functions/strftime.texi: Fix description of strftime
3491         module.
3492
3493 2008-08-24  Bruno Haible  <bruno@clisp.org>
3494
3495         * tests/uniwidth/test-uc_width2.c: New file.
3496         * tests/uniwidth/test-uc_width2.sh: New file.
3497         * modules/uniwidth/width-tests (Files): Add the new files.
3498         (TESTS): Add uniwidth/test-uc_width2.sh.
3499         (TESTS_ENVIRONMENT): New variable.
3500         (check_PROGRAMS): Add test-uc_width2.
3501         (test_uc_width2_SOURCES): New variable.
3502
3503         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
3504         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
3505         not 0x00AB.
3506         Reported by Alexander V. Lukyanov <lav@netis.ru>.
3507
3508 2008-08-22  Eric Blake  <ebb9@byu.net>
3509
3510         test-lock, test-tls: mention why a test is skipped
3511         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
3512         skipped.
3513         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
3514
3515         count-one-bits: relax license
3516         * modules/count-one-bits (License): Relicense to LGPLv2+.
3517         Suggested by Ludovic Courtès, approved by Ben Pfaff.
3518
3519 2008-08-22  Andreas Schwab  <schwab@suse.de>
3520
3521         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
3522         Remove spurious space in assignment.
3523
3524 2008-08-21  Simon Josefsson  <simon@josefsson.org>
3525
3526         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
3527         Paul Eggert <eggert@CS.UCLA.EDU>.
3528
3529 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
3530
3531         * modules/gettext: Add m4/threadlib.m4.
3532
3533 2008-08-19  Eric Blake  <ebb9@byu.net>
3534
3535         test-c-stack: fix compilation failure on FreeBSD 5.0
3536         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
3537         headers before <sys/resource.h>.
3538         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
3539         the bug.
3540         Reported by Nelson H. F. Beebe.
3541
3542         strverscmp: migrate from "strverscmp.h" to <string.h>
3543         * modules/string (Makefile.am): Add new hooks.
3544         * modules/strverscmp (Files): Remove strverscmp.h.
3545         (Depends-on): Add string.
3546         (configure.ac): Add indicator.
3547         (Include): Mention new header.
3548         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
3549         defaults.
3550         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
3551         results.
3552         * lib/strverscmp.h: Delete.
3553         * lib/string.in.h (strverscmp): Provide declaration, when needed.
3554         * tests/test-strverscmp.c (includes): Adjust client.
3555         * lib/check-version.c (includes): Likewise.
3556         * NEWS: Document the change.
3557
3558         strverscmp: add unit test
3559         * modules/strverscmp-tests: New file.
3560         * tests/test-strverscmp.c: Likewise.
3561
3562 2008-08-19  Simon Josefsson  <simon@josefsson.org>
3563
3564         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
3565         regarding Windows crypto stuff, from Mono.
3566
3567 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
3568
3569         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
3570         if present, for intel RND.  Return error on failures.
3571
3572 2008-08-18  Ben Pfaff  <blp@gnu.org>
3573
3574         gitlog-to-changelog: give better diagnostic for failed pipe-open
3575         * build-aux/gitlog-to-changelog: Improve error message: suggest
3576         that the version of Git may be too old.
3577
3578 2008-08-18  Simon Josefsson  <simon@josefsson.org>
3579
3580         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
3581         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
3582
3583 2008-08-18  Bruno Haible  <bruno@clisp.org>
3584
3585         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
3586         pthread_in_use().
3587
3588 2008-08-18  Bruno Haible  <bruno@clisp.org>
3589
3590         * lib/glthread/threadlib.c: Include <pthread.h>.
3591
3592 2008-08-18  Bruno Haible  <bruno@clisp.org>
3593
3594         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
3595         glthread_recursive_lock_* macros.
3596         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
3597         Fix syntax error.
3598
3599 2008-08-18  Bruno Haible  <bruno@clisp.org>
3600
3601         * lib/glthread/thread.c: Avoid forcing a context switch right after
3602         thread creation.
3603
3604 2008-08-17  Bruno Haible  <bruno@clisp.org>
3605
3606         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
3607         * lib/glthread/thread.h: Provide Win32 specific implementation.
3608         * modules/thread (Files): Add lib/glthread/thread.c.
3609         (Depends-on): Add lock.
3610         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
3611
3612 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
3613
3614         New module 'yield'.
3615         * modules/yield: New file.
3616         * lib/glthread/yield.h: New file.
3617         * m4/yield.m4: New file.
3618         * MODULES.html.sh (Multithreading): Add yield.
3619
3620 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
3621
3622         New module 'thread'.
3623         * modules/thread: New file.
3624         * lib/glthread/thread.h: New file.
3625         * m4/thread.m4: New file.
3626         * MODULES.html.sh (Multithreading): Add thread.
3627
3628 2008-08-17  Bruno Haible  <bruno@clisp.org>
3629
3630         * lib/glthread/lock.h: Include <stdlib.h> always.
3631         * lib/glthread/tls.h: Likewise.
3632         * lib/glthread/cond.h: Likewise.
3633
3634 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
3635
3636         New module 'cond'.
3637         * modules/cond: New file.
3638         * lib/glthread/cond.h: New file.
3639         * lib/glthread/cond.c: New file.
3640         * m4/cond.m4: New file.
3641         * MODULES.html.sh (Multithreading): Add cond.
3642
3643 2008-08-16  Eric Blake  <ebb9@byu.net>
3644
3645         c-stack: fix regression on Irix 5.3 from 2008-06-21
3646         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
3647         sa_sigaction...
3648         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
3649         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
3650         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
3651         * modules/signal (Makefile.am): Use the value.
3652         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
3653         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
3654         * doc/posix-headers/signal.texi (signal.h): Document this
3655         portability issue.
3656         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
3657         Reported by Tom G. Christensen.
3658
3659 2008-08-17  Bruno Haible  <bruno@clisp.org>
3660
3661         New module 'threadlib'.
3662         * modules/threadlib: New file.
3663         * lib/glthread/threadlib.c: New file, extracted from
3664         lib/glthread/lock.c.
3665         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
3666         functions.
3667         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
3668         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
3669         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
3670         macros.
3671         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
3672         (gl_DISABLE_THREADS): Remove macro.
3673         * modules/lock (Files): Remove build-aux/config.rpath.
3674         (Depends-on): Remove havelib. Add threadlib.
3675         (configure.ac-early): Remove section.
3676         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
3677         * modules/tls (Depends-on): Remove lock. Add threadlib.
3678         (Link): New section, copied from threadlib.
3679         * MODULES.html.sh (Multithreading): Add threadlib.
3680
3681 2008-08-14  Bruno Haible  <bruno@clisp.org>
3682
3683         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
3684         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
3685         glthread_rwlock_unlock, glthread_rwlock_destroy,
3686         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
3687         glthread_recursive_lock_destroy): Define as macros always.
3688         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
3689         glthread_lock_lock.
3690         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
3691         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
3692         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
3693         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
3694         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
3695         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
3696         (glthread_recursive_lock_lock_func): Renamed from
3697         glthread_recursive_lock_lock.
3698         (glthread_recursive_lock_unlock_func): Renamed from
3699         glthread_recursive_lock_unlock.
3700         (glthread_recursive_lock_destroy_func): Renamed from
3701         glthread_recursive_lock_destroy.
3702
3703 2008-08-14  Bruno Haible  <bruno@clisp.org>
3704
3705         * lib/glthread/lock.h: Renamed from lib/lock.h.
3706         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
3707         * lib/glthread/tls.h: Renamed from lib/tls.h.
3708         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
3709         * lib/fstrcmp.c: Update includes.
3710         * lib/strsignal.c: Update includes.
3711         * modules/lock (Files, Makefile.am): Update.
3712         (Include): Change to "glthread/lock.h".
3713         * modules/tls (Files, Makefile.am): Update.
3714         (Include): Change to "glthread/tls.h".
3715         * tests/test-lock.c: Update includes.
3716         * tests/test-tls.c: Update includes.
3717         * NEWS: Mention the renamed header files.
3718
3719 2008-08-11  Jim Meyering  <meyering@redhat.com>
3720
3721         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
3722
3723 2008-08-11  Eric Blake  <ebb9@byu.net>
3724
3725         test-c-stack: avoid C99-ism
3726         * tests/test-c-stack.c (main): Fix whitespace, move declaration
3727         before statement.
3728         Reported by Alain Guibert.
3729
3730 2008-08-10  Jim Meyering  <meyering@redhat.com>
3731
3732         ensure that return value of uinttostr et al are not ignored
3733         * lib/inttostr.h (__GNUC_PREREQ): Define.
3734         (__attribute_warn_unused_result__): Define.
3735         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
3736
3737 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
3738
3739         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
3740         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
3741
3742 2008-08-07  Jim Meyering  <meyering@redhat.com>
3743
3744         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
3745
3746         * modules/mkstemp (License): Relicense under LGPLv2+.
3747         * modules/tempname (License): Likewise.
3748
3749 2008-08-06  Bruno Haible  <bruno@clisp.org>
3750
3751         * lib/poll.c (poll): Further micro-optimization.
3752
3753 2008-08-06  Jim Meyering  <meyering@redhat.com>
3754
3755         inet_pton.c: use locale-independent tolower
3756         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
3757         (inet_pton6): Use c_tolower rather than tolower.
3758         * modules/inet_pton (Depends-on): Add c-ctype.
3759
3760 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
3761
3762         * lib/poll.c (poll): Avoid division when timeout is 0, cache
3763         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
3764
3765 2008-08-06  Jim Meyering  <meyering@redhat.com>
3766
3767         * modules/inet_pton (License): Relicense under LGPLv2+.
3768
3769 2008-08-03  Bruno Haible  <bruno@clisp.org>
3770
3771         Additional non-aborting API for lock and tls.
3772         * lib/lock.h: Include <errno.h>.
3773         (glthread_lock_init): New macro/function.
3774         (gl_lock_init): Define as wrapper around glthread_lock_init.
3775         (glthread_lock_lock): New macro/function.
3776         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
3777         (glthread_lock_unlock): New macro/function.
3778         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
3779         (glthread_lock_destroy): New macro/function.
3780         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
3781         (glthread_rwlock_init): New macro/function.
3782         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
3783         (glthread_rwlock_rdlock): New macro/function.
3784         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
3785         (glthread_rwlock_wrlock): New macro/function.
3786         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
3787         (glthread_rwlock_unlock): New macro/function.
3788         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
3789         (glthread_rwlock_destroy): New macro/function.
3790         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
3791         (glthread_recursive_lock_init): New macro/function.
3792         (gl_recursive_lock_init): Define as wrapper around
3793         glthread_recursive_lock_init.
3794         (glthread_recursive_lock_lock): New macro/function.
3795         (gl_recursive_lock_lock): Define as wrapper around
3796         glthread_recursive_lock_lock.
3797         (glthread_recursive_lock_unlock): New macro/function.
3798         (gl_recursive_lock_unlock): Define as wrapper around
3799         glthread_recursive_lock_unlock.
3800         (glthread_recursive_lock_destroy): New macro/function.
3801         (gl_recursive_lock_destroy): Define as wrapper around
3802         glthread_recursive_lock_destroy.
3803         (glthread_once): New macro/function.
3804         (gl_once): Define as wrapper around glthread_once.
3805         Update function declarations.
3806         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
3807         glthread_rwlock_init. Return error code.
3808         (glthread_rwlock_rdlock_multithreaded): Renamed from
3809         glthread_rwlock_rdlock. Return error code.
3810         (glthread_rwlock_wrlock_multithreaded): Renamed from
3811         glthread_rwlock_wrlock. Return error code.
3812         (glthread_rwlock_unlock_multithreaded): Renamed from
3813         glthread_rwlock_unlock. Return error code.
3814         (glthread_rwlock_destroy_multithreaded): Renamed from
3815         glthread_rwlock_destroy. Return error code.
3816         (glthread_recursive_lock_init_multithreaded): Renamed from
3817         glthread_recursive_lock_init. Return error code.
3818         (glthread_recursive_lock_lock_multithreaded): Renamed from
3819         glthread_recursive_lock_lock. Return error code.
3820         (glthread_recursive_lock_unlock_multithreaded): Renamed from
3821         glthread_recursive_lock_unlock. Return error code.
3822         (glthread_recursive_lock_destroy_multithreaded): Renamed from
3823         glthread_recursive_lock_destroy. Return error code.
3824         (glthread_once_call): Make static.
3825         (glthread_once_multithreaded): Renamed from glthread_once.
3826         * lib/tls.h: Include <errno.h>.
3827         (glthread_tls_key_init): New macro/function.
3828         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
3829         (glthread_tls_set): New macro/function.
3830         (gl_tls_set): Define as wrapper around glthread_tls_set.
3831         (glthread_tls_key_destroy): New macro/function.
3832         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
3833         Update function declarations.
3834         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
3835         glthread_tls_get.
3836         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
3837
3838 2008-08-04  Eric Blake  <ebb9@byu.net>
3839
3840         gnumakefile: use space, not TAB, outside of targets
3841         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
3842
3843 2008-08-02  Jim Meyering  <meyering@redhat.com>
3844
3845         getdate.y: avoid locale-dependent date parsing failure
3846         In Turkish locales, getdate would fail to recognize keywords
3847         containing a lowercase "i".  The solution is not to rely on
3848         locale-sensitive case-conversion.
3849         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
3850         (lookup_word): Use c_toupper in place of toupper.
3851         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
3852         Reported by Vefa Bicakci <bicave@superonline.com> in
3853         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
3854         * modules/getdate (Depends-on): Add c-ctype.
3855
3856 2008-08-02  Bruno Haible  <bruno@clisp.org>
3857
3858         * gnulib-tool (func_import): When updating or creating a .gitignore
3859         file, prepend each added line with a slash, and ignore leading slashes
3860         from the existing lines.
3861         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
3862
3863 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3864
3865         Portability fix for GNU make 3.79.1.
3866         * top/GNUmakefile: Avoid 'else COND', which older GNU make
3867         versions do not understand.
3868
3869 2008-08-01  Bruno Haible  <bruno@clisp.org>
3870
3871         Work around bug of HP-UX 10.20 cc with -0.0 literal.
3872         * tests/test-isnanf.h (zero): New variable.
3873         (main): Avoid literal -0.0f.
3874         * tests/test-isnand.h (zero): New variable.
3875         (main): Avoid literal -0.0.
3876         * tests/test-isnanl.h (zero): New variable.
3877         (main): Avoid literal -0.0L.
3878         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
3879         (test_float, test_double, test_long_double): Avoid literals -0.0f,
3880         -0.0, -0.0L.
3881         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
3882         (test_signbitd): Avoid literal -0.0.
3883         (test_signbitl): Avoid literal -0.0L.
3884         * tests/test-ceilf1.c (zero): New variable.
3885         (main): Avoid literal -0.0f.
3886         * tests/test-ceill.c (zero): New variable.
3887         (main): Avoid literal -0.0L.
3888         * tests/test-floorf1.c (zero): New variable.
3889         (main): Avoid literal -0.0f.
3890         * tests/test-floorl.c (zero): New variable.
3891         (main): Avoid literal -0.0L.
3892         * tests/test-roundf1.c (zero): New variable.
3893         (main): Avoid literal -0.0f.
3894         * tests/test-round1.c (zero): New variable.
3895         (main): Avoid literal -0.0.
3896         * tests/test-roundl.c (zero): New variable.
3897         (main): Avoid literal -0.0L.
3898         * tests/test-truncf1.c (zero): New variable.
3899         (main): Avoid literal -0.0f.
3900         * tests/test-trunc1.c (zero): New variable.
3901         (main): Avoid literal -0.0.
3902         * tests/test-truncl.c (zero): New variable.
3903         (main): Avoid literal -0.0L.
3904         * tests/test-frexp.c (zero): New variable.
3905         (main): Avoid literal -0.0.
3906         * tests/test-frexpl.c (zero): New variable.
3907         (main): Avoid literal -0.0L.
3908         * tests/test-ldexpl.c (zero): New variable.
3909         (main): Avoid literal -0.0L.
3910         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
3911         (zerod, zerol): New variables.
3912         (test_function): Avoid literals -0.0, -0.0L.
3913         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
3914         (zerod, zerol): New variables.
3915         (test_function): Avoid literals -0.0, -0.0L.
3916         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
3917         (zerod, zerol): New variables.
3918         (test_function): Avoid literals -0.0, -0.0L.
3919         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
3920         (zerod, zerol): New variables.
3921         (test_function): Avoid literals -0.0, -0.0L.
3922         * tests/test-strtod.c (zero): New variable.
3923         (main): Avoid literal -0.0.
3924         Reported by Jonathan C. Patschke <jp@centtech.com>.
3925
3926 2008-07-31  Jim Meyering  <meyering@redhat.com>
3927
3928         sha256.h: correct definition of SHA224_DIGEST_SIZE
3929         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
3930         Reported by Paulie Pena IV <paulie4@gmail.com>.
3931         Define as 224 / 8, rather than as a literal.
3932         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
3933         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
3934         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
3935
3936 2008-07-31  Bruno Haible  <bruno@clisp.org>
3937
3938         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
3939         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
3940         Reported by Jonathan Patschke <jp@centtech.com>.
3941
3942 2008-07-31  Bruno Haible  <bruno@clisp.org>
3943
3944         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
3945         Reported by Paolo Bonzini <bonzini@gnu.org>.
3946
3947 2008-07-30  Eric Blake  <ebb9@byu.net>
3948
3949         test-strtod: allow compilation without -lm
3950         * tests/test-strtod.c (main): Avoid link dependence on fabs.
3951         Reported by Dennis Clarke <blastwave@gmail.com>.
3952
3953 2008-07-28  Jim Meyering  <meyering@redhat.com>
3954
3955         bootstrap: work also when there are no .po files in po/
3956         * build-aux/bootstrap (update_po_files): Complete the change
3957         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
3958
3959 2008-07-27  Jim Meyering  <meyering@redhat.com>
3960
3961         * users.txt: Add zile.
3962
3963 2008-07-26  Ben Pfaff  <blp@gnu.org>
3964
3965         Add missing dependencies on new m4/exponent[fdl].m4 files.
3966         * modules/isnanf-nolibm: Add m4/exponentf.m4.
3967         * modules/isnand-nolibm: Add m4/exponentd.m4.
3968         * modules/isnanl-nolibm: Add m4/exponentl.m4.
3969         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
3970         m4/isnan[fdl].m4, because the macros actually used moved.
3971         Reported by Jim Meyering.
3972
3973 2008-07-14  Ben Pfaff  <blp@gnu.org>
3974
3975         Add isinf module.
3976         * lib/isinf.c: New file.
3977         * lib/math.in.h: Define isinf macro if we have decided to replace
3978         it.
3979         * m4/isinf.m4: New file.
3980         * m4/math_h.m4: Initialize and substitute variables for isinf
3981         module.
3982         * modules/isinf: New file.
3983         * modules/isinf-tests: New file.
3984         * modules/math: Add substitutions for new module.
3985         * tests/test-isinf.c: New file.
3986         * doc/posix-functions/isinf.texi: Mention new module.
3987         * MODULES.html.sh: Mention new module.
3988
3989 2008-07-14  Ben Pfaff  <blp@gnu.org>
3990
3991         Factor out some macros for use by additional modules.
3992         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
3993         exponentf.m4.
3994         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
3995         exponentd.m4.
3996         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
3997         file exponentl.m4.
3998         * m4/exponentf.m4: New file.
3999         * m4/exponentd.m4: New file.
4000         * m4/exponentl.m4: New file.
4001         * modules/isnanf: Use new file m4/exponentf.m4.
4002         * modules/isnand: Use new file m4/exponentd.m4.
4003         * modules/isnanl: Use new file m4/exponentl.m4.
4004
4005 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
4006
4007         mktime.c: normalize tp->tm_isdst value to -1/0/1.
4008         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
4009         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
4010         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
4011
4012         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
4013         readlink on platforms without PATH_MAX.
4014
4015 2008-07-21  Eric Blake  <ebb9@byu.net>
4016
4017         Warn, not fail, on stale version.
4018         * top/GNUmakefile (_curr-ver): Tone down previous patch.
4019
4020         Don't allow installation with stale devel version number.
4021         * top/GNUmakefile (_is-install-target): New macro.
4022         (_curr-ver): Forbid installation with stale version number.
4023
4024 2008-07-20  Bruno Haible  <bruno@clisp.org>
4025
4026         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
4027         TESTS_ENVIRONMENT.
4028         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
4029
4030 2008-07-20  Bruno Haible  <bruno@clisp.org>
4031
4032         * lib/c-stack.h (c_stack_action): Add documentation.
4033         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
4034
4035 2008-07-20  Bruno Haible  <bruno@clisp.org>
4036
4037         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
4038         * modules/readlink (License): Likewise.
4039
4040 2008-07-17  Eric Blake  <ebb9@byu.net>
4041
4042         * modules/c-stack (Link): Fix typo.
4043
4044         Make c-stack use libsigsegv, when available.
4045         * modules/c-stack (Depends-on): Add libsigsegv.
4046         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
4047         needed.
4048         * lib/c-stack.c (SIGSTKSZ): Define fallback.
4049         (segv_handler, overflow_handler, c_stack_action)
4050         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
4051         implementation when libsigsegv is available, but only when using
4052         the library is necessary.
4053         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
4054         comment, explaining why XSI check fails on Linux.
4055         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
4056         * tests/test-c-stack2.sh: Tweak skip message.
4057         * NEWS: Document new link-time requirements.
4058
4059 2008-07-16  Eric Blake  <ebb9@byu.net>
4060
4061         c-stack: Expose false positives when not using libsigsegv.
4062         * modules/c-stack-tests (Files): Expand test.
4063         * tests/test-c-stack.c (main): Add means to conditionally trigger
4064         non-overflow SIGSEGV.
4065         * tests/test-c-stack2.sh: New file.
4066
4067 2008-07-14  Bruno Haible  <bruno@clisp.org>
4068
4069         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
4070         Reported by Eric Blake.
4071
4072 2008-07-14  Sam Steingold  <sds@gnu.org>
4073             Bruno Haible  <bruno@clisp.org>
4074
4075         New module libsigsegv.
4076         * modules/libsigsegv: New file.
4077         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
4078         modifications.
4079         * MODULES.html.sh (Signal handling): New section.
4080
4081 2008-07-14  Bruno Haible  <bruno@clisp.org>
4082
4083         * modules/unictype/ctype-* (Description): Add the word "function".
4084         Improves the resulting doc in MODULES.html.
4085
4086 2008-07-12  Ben Pfaff  <blp@gnu.org>
4087
4088         Add longlong module.
4089         * modules/longlong: New file.
4090
4091 2008-07-12  Bruno Haible  <bruno@clisp.org>
4092
4093         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
4094         to empty.
4095
4096 2008-07-10  Ben Pfaff  <blp@gnu.org>
4097
4098         Add isnan module.
4099         * doc/posix-functions/isnan.texi: Mention new module.
4100         * lib/math.in.h: Define isnan macro if we have decided to replace
4101         it.
4102         * m4/isnan.m4: New file.
4103         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
4104         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
4105         also.
4106         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
4107         redundancy.
4108         * m4/math_h.m4: Initialize and substitute variables for isnan
4109         module.
4110         * modules/isnan: New file.
4111         * modules/isnan-tests: New file.
4112         * modules/math: Add substitutions for new module.
4113         * tests/test-isnan.c: New file.
4114         * MODULES.html.sh: Mention new module.
4115
4116 2008-07-10  Ben Pfaff  <blp@gnu.org>
4117
4118         Add isnanf module.
4119         * lib/isnanf.m4: New file.
4120         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
4121         (gl_HAVE_ISNANF_IN_LIBM): New macro.
4122         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
4123         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
4124         * modules/isnanf: New file.
4125         * modules/isnanf-tests: New file.
4126         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
4127         files.
4128         * tests/test-isnanf-nolibm.c: factored most of its contents into
4129         new file tests/test-isnanf.h.
4130         * tests/test-isnanf.h: New file.
4131         * tests/test-isnanf.c: New file.
4132         * MODULES.html.sh: Mention new module.
4133         * doc/glibc-functions/isnanf.texi: Mention new module.
4134
4135 2008-07-10  Ben Pfaff  <blp@gnu.org>
4136
4137         Add isnand module.
4138         * lib/isnand.h: New file.
4139         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
4140         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
4141         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
4142         functionality also.
4143         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
4144         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
4145         (gl_HAVE_ISNAND_IN_LIBM): New macro.
4146         * modules/isnand: New file.
4147         * modules/isnand-tests: New file.
4148         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
4149         files.
4150         * tests/test-isnand-nolibm.c: factored most of its contents into
4151         new file tests/test-isnand.h.
4152         * tests/test-isnand.h: New file.
4153         * tests/test-isnand.c: New file.
4154         * MODULES.html.sh: Mention new module.
4155
4156 2008-07-10  Ben Pfaff  <blp@gnu.org>
4157
4158         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
4159         * lib/isnand.h: Rename lib/isnand-nolibm.h.
4160         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
4161         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
4162         * modules/isnanf-nolibm: Update references to renamed files.
4163         * modules/isnand-nolibm: Likewise.
4164         * modules/isnanf-nolibm-tests: Likewise.
4165         * modules/isnand-nolibm-tests: Likewise.
4166         * lib/frexp.c: Likewise.
4167         * lib/isfinite.c: Likewise.
4168         * lib/signbitd.c: Likewise.
4169         * lib/signbitf.c: Likewise.
4170         * lib/vasnprintf.c: Likewise.
4171         * tests/test-ceilf1.c: Likewise.
4172         * tests/test-ceilf2.c: Likewise.
4173         * tests/test-floorf1.c: Likewise.
4174         * tests/test-floorf2.c: Likewise.
4175         * tests/test-frexp.c: Likewise.
4176         * tests/test-round1.c: Likewise.
4177         * tests/test-round2.c: Likewise.
4178         * tests/test-roundf1.c: Likewise.
4179         * tests/test-strtod.c: Likewise.
4180         * tests/test-trunc1.c: Likewise.
4181         * tests/test-trunc2.c: Likewise.
4182         * tests/test-truncf1.c: Likewise.
4183         * tests/test-truncf2.c: Likewise.
4184         * NEWS: Mention the renamed header files.
4185
4186 2008-07-11  Jim Meyering  <meyering@redhat.com>
4187
4188         vc-list-files: make the last-resort awk code more portable
4189         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
4190         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
4191         does not support it.
4192
4193 2008-07-10  Eric Blake  <ebb9@byu.net>
4194
4195         Work with tar's bootstrap.
4196         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
4197         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
4198         an m4 comment.
4199
4200 2008-07-09  Jim Meyering  <meyering@redhat.com>
4201
4202         posix-shell.m4: fix typo that made this test malfunction
4203         * m4/posix-shell.m4: Remove capitalization in variable name.
4204
4205 2008-07-08  Bruno Haible  <bruno@clisp.org>
4206
4207         * m4/onceonly.m4: Update comments.
4208         Reported by Ben Pfaff <blp@cs.stanford.edu>.
4209
4210 2008-07-04  Jim Meyering  <meyering@redhat.com>
4211
4212         * users.txt: Add vc-dwim.
4213         (bison, coreutils): Use the gitweb URL.
4214
4215 2008-07-03  Jim Meyering  <meyering@redhat.com>
4216
4217         * users.txt: Add libffcall.  From Sam Steingold.
4218
4219 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
4220
4221         getdate.y: do not ignore TZ with relative day, month or year offset
4222         * lib/getdate.y (get_date): Move the tz-handling block to follow the
4223         relative-date-handling, since otherwise, the latter would clobber the
4224         sole output (an updated Start value) of the tz-handling block.
4225         * tests/test-getdate.c: Tests for the fix
4226
4227 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4228
4229         Recognize 'foo_LIBRARIES += libgnu.a'.
4230         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
4231         makefile snippet has already specified an installation location,
4232         also using '+='.
4233
4234 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
4235
4236         getdate.y: factor out common actions
4237         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
4238         Use them in place of open-coded actions.
4239
4240 2008-07-01  Simon Josefsson  <simon@josefsson.org>
4241
4242         Add self-test for getdate module.
4243         * modules/getdate-tests: New file.
4244         * tests/test-getdate.c: New file.
4245
4246 2008-06-29  Bruno Haible  <bruno@clisp.org>
4247
4248         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
4249         .gitignore.
4250         Reported by Sylvain Beucler <beuc@beuc.net>.
4251
4252 2008-06-29  Bruno Haible  <bruno@clisp.org>
4253
4254         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
4255         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
4256
4257 2008-06-29  Bruno Haible  <bruno@clisp.org>
4258
4259         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
4260         EXTRA_DIST.
4261         Reported by Sylvain Beucler <beuc@beuc.net>.
4262
4263 2008-06-26  Jim Meyering  <meyering@redhat.com>
4264
4265         make several modules depend on the "open" module
4266         This provides slightly increased consistency when opening-for-write
4267         the name of a non-directory spelled with a trailing slash.
4268         * modules/chdir-safer: Likewise.
4269         * modules/chown: Likewise.
4270         * modules/clean-temp: Likewise.
4271         * modules/copy-file: Likewise.
4272         * modules/fchdir: Likewise.
4273         * modules/fcntl-safer: Likewise.
4274         * modules/pipe: Likewise.
4275         * modules/utime: Likewise.
4276         Prompted by Eric Blake and Bruno Haible.
4277
4278 2008-06-24  Andreas Schwab  <schwab@suse.de>
4279
4280         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
4281         literals can be used as initializers for global variables.
4282
4283 2008-06-23  Eric Blake  <ebb9@byu.net>
4284
4285         Make gnulib-cache.m4 easier to diff.
4286         * gnulib-tool (func_import): Allow newlines when reading cached
4287         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
4288
4289 2008-06-23  Bruno Haible  <bruno@clisp.org>
4290
4291         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
4292         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
4293         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
4294         m4/signalblocking.m4.
4295         (gl_PREREQ_SIGACTION): Don't invoke it.
4296         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
4297         gl_PREREQ_SIG_HANDLER_H.
4298         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
4299         Don't check for sigaction here.
4300
4301 2008-06-23  Bruno Haible  <bruno@clisp.org>
4302
4303         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
4304         (install_handlers): Don't set the SA_RESETHAND flag.
4305
4306 2008-06-23  Bruno Haible  <bruno@clisp.org>
4307
4308         * m4/sigaction.m4: Comment fixes.
4309         * lib/signal.in.h: Likewise.
4310
4311 2008-06-23  Eric Blake  <ebb9@byu.net>
4312
4313         Fix typo.
4314         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
4315
4316         Avoid SA_ namespace.
4317         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
4318         Reported by Ralf Wildenhues.
4319
4320         Avoid test failure due to SA_RESTORER.
4321         * tests/test-sigaction.c (SA_MASK): New macro.
4322         (main): Avoid failing due to extension flags being set.
4323         Reported by Jim Meyering.
4324
4325         Revert use of sig-handler.h in sigprocmask.c.
4326         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
4327         it requires the existence of struct sigaction.
4328         * lib/sigprocmask.c (handler_t): Restore typedef.
4329         (rpl_signal, old_handlers): Use local type.
4330
4331 2008-06-22  Bruno Haible  <bruno@clisp.org>
4332
4333         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
4334         conditionally.
4335         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
4336
4337 2008-06-22  Bruno Haible  <bruno@clisp.org>
4338
4339         * doc/posix-functions/siginterrupt.texi: Move note.
4340
4341         * lib/signal.in.h (SA_RESTART): New macro.
4342         * lib/sigaction.c: Update comment.
4343
4344         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
4345
4346         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
4347         (gl_PREREQ_SIGPROCMASK): Invoke it.
4348         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
4349
4350         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
4351
4352         * lib/sigprocmask.c: Update a comment.
4353
4354 2008-06-21  Eric Blake  <ebb9@byu.net>
4355
4356         Use sigaction module rather than signal().
4357         * modules/c-stack (Depends-on): Add sigaction.
4358         * modules/fatal-signal (Depends-on): Likewise.
4359         * modules/nanosleep (Depends-on): Likewise.
4360         * modules/sigprocmask (Files): Add sig-handler.h.
4361         * modules/sigaction (Files): Likewise.
4362         * lib/sig-handler.h (get_handler): New file, suggested by Paul
4363         Eggert.
4364         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
4365         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
4366         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
4367         (init_fatal_signals): Likewise.
4368         * lib/nanosleep.c (rpl_nanosleep): Likewise.
4369         (siginterrupt): Delete fallback.
4370         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
4371         instead.
4372         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
4373         siginterrupt.
4374
4375         New module sigaction, for mingw.
4376         * modules/sigaction: New module...
4377         * modules/sigaction-tests: ...and its test.
4378         * m4/sigaction.m4: New file.
4379         * lib/sigaction.c: Likewise.
4380         * tests/test-sigaction.c: Likewise.
4381         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
4382         * modules/signal (Makefile.am): Likewise.
4383         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
4384         needed.
4385         * doc/posix-headers/signal.texi (signal.h): Mention provided
4386         types.
4387         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
4388         that sigaction is preferable.
4389         * doc/posix-functions/sigaction.texi (sigaction): Mention new
4390         module.
4391         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
4392         sigaction.
4393
4394         Improve robustness of sigprocmask by overriding signal.
4395         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
4396         is in use.
4397         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
4398         (SIGKILL, SIGSTOP): Provide fallbacks.
4399         (rpl_signal): Implement.
4400         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
4401         signal can be called inside handlers.
4402
4403         Fix nanosleep module on mingw.
4404         * modules/nanosleep (Depends-on): Add sys_select.
4405         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
4406
4407         Fix licensing of sigprocmask.
4408         * modules/raise (License): Relicense as LGPL.
4409
4410 2008-06-21  Bruno Haible  <bruno@clisp.org>
4411
4412         * lib/propername.c (proper_name_utf8): Don't use the transliterated
4413         result if it contains question marks.
4414         Reported by Michael Geng <linux@michaelgeng.de>.
4415
4416 2008-06-19  Bruno Haible  <bruno@clisp.org>
4417
4418         Fix CVS-ism.
4419         * doc/gnulib.texi: Include updated-stamp.texi.
4420         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
4421         (updated-stamp.texi): New rule.
4422         (gnulib.info): Depend on it.
4423         * doc/.gitignore: Add updated-stamp.texi.
4424         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
4425
4426 2008-06-19  Bruno Haible  <bruno@clisp.org>
4427
4428         * doc/Makefile (gnulib.info): Update and simplify dependencies.
4429         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
4430
4431 2008-06-19  Eric Blake  <ebb9@byu.net>
4432
4433         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
4434         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
4435         Reported by Stepan Kasal.
4436
4437 2008-06-18  Bruno Haible  <bruno@clisp.org>
4438
4439         * lib/fatal-signal.c (init_fatal_signals): Add comment.
4440         Reported by Eric Blake.
4441
4442 2008-06-18  Eric Blake  <ebb9@byu.net>
4443
4444         Work around cygwin 1.5.25 strsignal bug.
4445         * tests/test-strsignal.c: Allow for const char *.
4446         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
4447
4448 2008-06-18  Simon Josefsson  <simon@josefsson.org>
4449
4450         * users.txt: Update URL to article and add author/date
4451         information.
4452
4453 2008-06-17  Bruno Haible  <bruno@clisp.org>
4454
4455         New macro gl_DISABLE_THREADS.
4456         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
4457         if the user did not pass --enable-threads or --disable-threads option.
4458         (gl_DISABLE_THREADS): New macro.
4459         Reported by Eric Blake <ebb9@byu.net>.
4460
4461 2008-06-17  Bruno Haible  <bruno@clisp.org>
4462
4463         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
4464         when the macro ignores it.
4465         Based on a patch by Eric Blake <ebb9@byu.net>.
4466
4467 2008-06-17  Bruno Haible  <bruno@clisp.org>
4468
4469         * modules/tls (License): Change to LGPLv2+.
4470         Reported by Eric Blake.
4471
4472 2008-06-17  Eric Blake  <ebb9@byu.net>
4473
4474         Simplify c-stack prerequisites.
4475         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
4476         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
4477         no longer requires <ucontext.h> to exist.  Optimize setrlimit
4478         check.
4479         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
4480         <sys/resource.h>.
4481
4482         Move c-stack test into testsuite.
4483         * modules/c-stack-tests: New file.
4484         * lib/c-stack.c [DEBUG]: Move test program...
4485         * tests/test-c-stack.c: ...into this new file.  Skip rather than
4486         fail test if sigaltstack is lacking.
4487         * tests/test-c-stack.sh: New driver file.
4488
4489 2008-06-16  Eric Blake  <ebb9@byu.net>
4490
4491         Use raise module consistently.
4492         * modules/fatal-signal (Depends-on): Add raise.
4493         * modules/sigprocmask (Depends-on): Likewise.
4494         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
4495         * lib/sigprocmask.c (sigprocmask): Likewise.
4496         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
4497         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
4498
4499         Fix compliance bug in sigpending.
4500         * lib/sigprocmask.c (sigpending): Return pending array via
4501         parameter, not return value.
4502
4503 2008-06-14  Eric Blake  <ebb9@byu.net>
4504
4505         Improve obstack-printf test code.
4506         * tests/test-obstack-printf.c (test_function): Fix comment, and
4507         simplify usage of obstack_* in macros.  Add a test for coverage.
4508         Reported by Bruno Haible.
4509
4510 2008-06-14  Bruno Haible  <bruno@clisp.org>
4511
4512         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
4513         array size as a constant, not as a const variable.
4514         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
4515         AC_USE_SYSTEM_EXTENSIONS.
4516         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
4517         Test whether the obstack_printf function actually exists.
4518         * modules/obstack-printf (Depends-on): Add extensions.
4519         (Include): Remove obstack.h.
4520         * modules/obstack-printf-posix (Depends-on): Add extensions.
4521         (Include): Remove obstack.h.
4522
4523 2008-06-13  Eric Blake  <ebb9@byu.net>
4524
4525         Add obstack-printf and obstack-printf-posix modules.
4526         * modules/obstack-printf: New file.
4527         * modules/obstack-printf-posix: Likewise.
4528         * MODULES.html.sh (Misc): Mention them.
4529         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
4530         Likewise.
4531         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
4532         Likewise.
4533         * modules/stdio (Makefile.am): Accomodate new modules.
4534         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
4535         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
4536         Declare.
4537         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
4538         functions.
4539         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
4540         (gl_REPLACE_OBSTACK_PRINTF): New macros
4541         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
4542         * tests/test-obstack-printf.c: New file.
4543         * modules/obstack-printf-tests: Likewise.
4544         * modules/obstack-printf-posix-tests: Likewise.
4545
4546 2008-06-11  Bruno Haible  <bruno@clisp.org>
4547
4548         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
4549         * lib/open.c: Include errno.h.
4550         (open): Fail when attempting to write to a file that has a trailing
4551         slash.
4552         * tests/test-open.c (main): Test against trailing slash bug.
4553         * doc/posix-functions/open.texi: Mention the trailing slash bug.
4554
4555 2008-06-10  Bruno Haible  <bruno@clisp.org>
4556
4557         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
4558         for $? to work inside the trap command, with various /bin/sh-s.
4559         * tests/test-vc-list-files-cvs.sh: Likewise.
4560
4561 2008-06-10  Bruno Haible  <bruno@clisp.org>
4562
4563         * lib/acl-internal.h: Don't include gettext.h here.
4564         * lib/set-mode-acl.c: Include gettext.h here.
4565         * lib/copy-acl.c: Likewise.
4566
4567 2008-06-10  Bruno Haible  <bruno@clisp.org>
4568
4569         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
4570         * lib/wait-process.c (wait_subprocess): Likewise.
4571         * lib/execute.h (execute): Add termsigp argument.
4572         * lib/execute.c (execute): Likewise.
4573         * lib/csharpcomp.c (compile_csharp_using_pnet,
4574         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
4575         * lib/csharpexec.c (execute_csharp_using_pnet,
4576         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
4577         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
4578         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
4579         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
4580         is_jikes_present): Update.
4581         * lib/javaexec.c (execute_java_class): Update.
4582         * lib/javaversion.c (execute_and_read_line): Update.
4583         * NEWS: Document the changes.
4584         Reported by Eric Blake.
4585
4586 2008-06-10  Eric Blake  <ebb9@byu.net>
4587
4588         Add missing include.
4589         * tests/test-strstr.c (includes): Add <signal.h>.
4590         * tests/test-strcasestr.c (includes): Likewise.
4591         * tests/test-memmem.c (includes): Likewise.
4592
4593 2008-06-10  Bruno Haible  <bruno@clisp.org>
4594
4595         * lib/wait-process.c (wait_subprocess): Add an assertion.
4596
4597 2008-06-10  Bruno Haible  <bruno@clisp.org>
4598
4599         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
4600
4601 2008-06-10  Bruno Haible  <bruno@clisp.org>
4602
4603         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
4604         using alarm().
4605         * tests/test-strcasestr.c (main): Likewise.
4606         * tests/test-strstr.c (main): Likewise.
4607
4608 2008-06-09  Bruno Haible  <bruno@clisp.org>
4609
4610         Work around the Solaris 10 ACE ACLs ABI change.
4611         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
4612         declare if ACL_NO_TRIVIAL is present.
4613         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
4614         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
4615         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
4616         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
4617         define if ACL_NO_TRIVIAL is present.
4618         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
4619         and use the current ABI.
4620         (file_has_acl): Use same #if condition as elsewhere.
4621         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
4622         in use, and use the current ABI.
4623         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
4624         Reported by Jim Meyering.
4625
4626 2008-06-09  Eric Blake  <ebb9@byu.net>
4627
4628         Work around environments that (stupidly) ignore SIGALRM.
4629         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
4630         before using alarm().
4631         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
4632         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
4633         Reported by Ian Beckwith <ianb@erislabs.net>.
4634
4635         Produce autobuild blurb earlier in log.
4636         * modules/autobuild (configure.ac-early): Move AB_INIT here.
4637
4638 2008-06-09  Jim Meyering  <meyering@redhat.com>
4639         and OndÅ™ej Vašík  <ovasik@redhat.com>
4640
4641         utimens.c: correct kernel bug work-around
4642         OndÅ™ej Vašík found that the invalid return value of 280 indicates
4643         failure, not success, and the kernel bug we're trying to work
4644         around affects not just the utimensat call, but also the fallback
4645         futimens call.
4646         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
4647         not success.
4648         [HAVE_FUTIMENS]: Use the same work-around, here.
4649
4650 2008-06-09  Jim Meyering  <meyering@redhat.com>
4651
4652         add more guards around definition of ACE_-related code
4653         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
4654         ALLOW and ACE_OWNER are also defined.
4655
4656 2008-06-08  Bruno Haible  <bruno@clisp.org>
4657
4658         * lib/acl-internal.h: Add me as co-author.
4659         * lib/file-has-acl.c: Likewise.
4660         * lib/set-mode-acl.c: Likewise.
4661         * lib/copy-acl.c: Likewise.
4662
4663 2008-06-08  Bruno Haible  <bruno@clisp.org>
4664
4665         Add support for AIX ACLs.
4666         * lib/acl-internal.h (acl_nontrivial): New declaration.
4667         * lib/file-has-acl.c (acl_nontrivial): New function.
4668         (file_has_acl): Add implementation using AIX 4 ACL API.
4669         * lib/set-mode-acl.c (qset_acl): Likewise.
4670         * lib/copy-acl.c (qcopy_acl): Likewise.
4671
4672 2008-06-08  Bruno Haible  <bruno@clisp.org>
4673
4674         Add support for HP-UX ACLs.
4675         * lib/acl-internal.h (acl_nontrivial): New declaration.
4676         * lib/file-has-acl.c (acl_nontrivial): New function.
4677         (file_has_acl): Add implementation using HP-UX 11 ACL API.
4678         * lib/set-mode-acl.c (qset_acl): Likewise.
4679         * lib/copy-acl.c (qcopy_acl): Likewise.
4680
4681 2008-06-08  Bruno Haible  <bruno@clisp.org>
4682
4683         Add support for Cygwin ACLs.
4684         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
4685         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
4686         the chmod_or_fchmod call.
4687         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
4688
4689 2008-06-08  Bruno Haible  <bruno@clisp.org>
4690
4691         Fix bug with setuid modes in Solaris 10+ code.
4692         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
4693         succeeded, when the mode contains some special bits.
4694
4695 2008-06-08  Bruno Haible  <bruno@clisp.org>
4696
4697         Add support for Solaris 7..10 ACLs.
4698         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
4699         declarations.
4700         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
4701         functions.
4702         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
4703         * lib/set-mode-acl.c (qset_acl): Likewise.
4704         * lib/copy-acl.c (qcopy_acl): Likewise.
4705
4706 2008-06-08  Bruno Haible  <bruno@clisp.org>
4707
4708         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
4709         declaration.
4710         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
4711         (acl_access_nontrivial): Remove MacOS X case.
4712         (file_has_acl): Use acl_extended_nontrivial.
4713         * lib/copy-acl.c (qcopy_acl): Likewise.
4714
4715 2008-06-08  Bruno Haible  <bruno@clisp.org>
4716
4717         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
4718
4719 2008-06-08  Jim Meyering  <meyering@redhat.com>
4720
4721         * modules/acl (Maintainer): Add Bruno Haible.
4722
4723 2008-06-07  Bruno Haible  <bruno@clisp.org>
4724
4725         Improve support for Tru64 ACLs.
4726         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
4727         ACL on OSF/1.
4728
4729 2008-06-07  Bruno Haible  <bruno@clisp.org>
4730
4731         Add support for MacOS X ACLs.
4732         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
4733         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
4734         * lib/set-mode-acl.c (qset_acl): Likewise.
4735         * lib/copy-acl.c (qcopy_acl): Likewise.
4736
4737 2008-06-07  Bruno Haible  <bruno@clisp.org>
4738
4739         Fix memory leak introduced on 2008-05-22.
4740         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
4741         use.
4742
4743 2008-06-07  Bruno Haible  <bruno@clisp.org>
4744
4745         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
4746         to construct an empty ACL.
4747
4748 2008-06-07  Bruno Haible  <bruno@clisp.org>
4749
4750         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
4751         precisely.
4752         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
4753
4754 2008-06-07  Bruno Haible  <bruno@clisp.org>
4755
4756         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
4757         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
4758
4759 2008-06-07  Bruno Haible  <bruno@clisp.org>
4760
4761         * doc/posix-functions/_setjmp.texi: Explain the use of this function
4762         regardless of POSIX.
4763         * doc/posix-functions/_longjmp.texi: Likewise.
4764         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
4765         SystemV platform in this case.
4766
4767 2008-06-06  Eric Blake  <ebb9@byu.net>
4768
4769         Document abort() bugs.
4770         * doc/posix-functions/abort.texi (abort): Mention anomalies.
4771
4772         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
4773         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
4774         sigsetjmp.
4775         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
4776         siglongjmp, but only as a macro.
4777         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
4778         is obsolete.
4779         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
4780
4781         Tweak documentation to cover cygwin argz bugs.
4782         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
4783         argz bug fix; no code change needed since no cygwin releases
4784         occurred between the last fix and the bug being tested.
4785         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
4786         module and recently fixed cygwin bugs.
4787         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
4788         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
4789         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
4790         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
4791         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
4792         Likewise.
4793         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
4794         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
4795         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
4796         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
4797         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
4798         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
4799         Likewise.
4800
4801         Avoid gcc warning on cygwin.
4802         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
4803         !ACL_NO_TRIVIAL]: Avoid unused variable.
4804
4805 2008-06-05  Eric Blake  <ebb9@byu.net>
4806
4807         Be tolerant of UNKNOWN version in gnulib-tool test dir.
4808         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
4809         git-version-gen fails to come up with a version.
4810         Reported by Simon Josefsson.
4811
4812 2008-06-05  Jim Meyering  <meyering@redhat.com>
4813             Paul Eggert  <eggert@cs.ucla.edu>
4814
4815         utimens.c: work around a probable Linux kernel bug
4816         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
4817         appears to be a kernel bug that causes utimensat to return 280
4818         instead of 0, indicating success.
4819
4820 2008-06-04  Bruno Haible  <bruno@clisp.org>
4821
4822         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
4823         2008-06-01 commit.
4824
4825 2008-06-04  Bruno Haible  <bruno@clisp.org>
4826
4827         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
4828         * lib/file-has-acl.c (acl_access_nontrivial): New function.
4829         (file_has_acl): Use it. Save errno afterwards.
4830         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
4831
4832 2008-06-03  Bruno Haible  <bruno@clisp.org>
4833
4834         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
4835         draft code. Simplify #ifs.
4836         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
4837         Put Solaris code after POSIX-draft code. Fix comments regarding
4838         Solaris 10, HP-UX. Mention Cygwin.
4839         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
4840
4841 2008-06-03  Eric Blake  <ebb9@byu.net>
4842
4843         Provide fallback for older kernels.
4844         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
4845         Provide runtime fallback if kernel lacks support.
4846         Reported by Mike Frysinger.
4847
4848 2008-06-02  Bruno Haible  <bruno@clisp.org>
4849
4850         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
4851         it exists.
4852
4853 2008-06-02  Bruno Haible  <bruno@clisp.org>
4854
4855         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
4856         * lib/copy-acl.c (qcopy_acl): Update comment.
4857
4858 2008-06-02  Bruno Haible  <bruno@clisp.org>
4859
4860         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
4861         like ACL APIs.
4862
4863 2008-06-02  Bruno Haible  <bruno@clisp.org>
4864
4865         * tests/test-file-has-acl.sh: Use different code for Cygwin.
4866         * tests/test-set-mode-acl.sh: Likewise.
4867         * tests/test-copy-acl.sh: Likewise.
4868         * tests/test-copy-file.sh: Likewise.
4869
4870 2008-06-02  Bruno Haible  <bruno@clisp.org>
4871
4872         * tests/test-file-has-acl.sh: Remove unused code.
4873
4874 2008-06-01  Bruno Haible  <bruno@clisp.org>
4875
4876         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
4877         (copy_acl): Just a wrapper around qcopy_acl that emits the error
4878         messages.
4879         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
4880
4881 2008-06-01  Bruno Haible  <bruno@clisp.org>
4882
4883         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
4884         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
4885         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
4886         APIs.
4887         * modules/acl-tests (configure.ac): Remove tests now contained in
4888         m4/acl.m4.
4889
4890 2008-06-02  Jim Meyering  <meyering@redhat.com>
4891
4892         announce-gen: use a better key-server host name
4893         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
4894         it may be more consistently reliable.  Suggested by Werner Koch
4895         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
4896
4897 2008-06-01  Bruno Haible  <bruno@clisp.org>
4898
4899         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
4900         Reported by Voroskoi Andras <voroskoi@gmail.com>.
4901
4902 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
4903
4904         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
4905
4906 2008-06-01  Bruno Haible  <bruno@clisp.org>
4907
4908         New ACL tests.
4909         * tests/test-file-has-acl.sh: New file.
4910         * tests/test-file-has-acl.c: New file.
4911         * tests/test-set-mode-acl.sh: New file.
4912         * tests/test-set-mode-acl.c: New file.
4913         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
4914         * tests/test-copy-acl.c: New file.
4915         * modules/acl-tests: New file, based on modules/copy-file-tests.
4916         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
4917         (Depends-on): Add acl-tests.
4918         (configure.ac): Remove checks.
4919         (Makefile.am): Don't create test-sameacls program here any more.
4920
4921 2008-06-01  Bruno Haible  <bruno@clisp.org>
4922
4923         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
4924         * tests/test-sameacls.c: Include progname.h.
4925         (main): Invoke set_program_name. Portability fixes for MacOS X,
4926         Solaris, HP-UX.
4927
4928 2008-06-01  Bruno Haible  <bruno@clisp.org>
4929
4930         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
4931         function.
4932         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
4933
4934 2008-06-01  Bruno Haible  <bruno@clisp.org>
4935
4936         * modules/rpmatch (Depends-on): Add strdup.
4937
4938 2008-06-01  Bruno Haible  <bruno@clisp.org>
4939
4940         * lib/pipe.c: Include unistd-safer.h.
4941         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
4942         * modules/pipe (Depends-on): Add unistd-safer.
4943
4944 2008-05-30  Simon Josefsson  <simon@josefsson.org>
4945
4946         * modules/autobuild (configure.ac): Call AB_INIT.
4947
4948 2008-05-30  Simon Josefsson  <simon@josefsson.org>
4949
4950         * tests/test-getaddrinfo.c: Don't print debug messages by default.
4951         Suggested by Bruno Haible <bruno@clisp.org>.
4952
4953 2008-05-30  Simon Josefsson  <simon@josefsson.org>
4954
4955         * tests/test-base64.c: Cast size_t to unsigned long when invoking
4956         printf.  Use %lu instead of %d.  Reported by Bruno Haible
4957         <bruno@clisp.org>.
4958
4959 2008-05-29  Eric Blake  <ebb9@byu.net>
4960
4961         Prefer new POSIX 200x interfaces over futimesat.
4962         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
4963         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
4964         when available.
4965         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
4966
4967 2008-05-28  Bruno Haible  <bruno@clisp.org>
4968
4969         * modules/stpcpy (License): Change to LGPLv2+.
4970         Requested by David Lutterkort <dlutter@redhat.com>.
4971
4972 2008-05-27  Bruno Haible  <bruno@clisp.org>
4973
4974         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
4975         current mingw.
4976         Reported by Jose E. Marchesi <jemarch@gnu.org>.
4977
4978 2008-05-27  Bruno Haible  <bruno@clisp.org>
4979
4980         * modules/iconv_open (Link): New section, from module 'iconv'.
4981         * modules/striconv (Link): Likewise.
4982         * modules/striconveh (Link): Likewise.
4983         * modules/xstriconv (Link): Likewise.
4984         * modules/unicodeio (Link): Likewise.
4985         * modules/propername (Link): Likewise.
4986         Reported by Jim Meyering.
4987
4988 2008-05-26  Jim Meyering  <meyering@redhat.com>
4989
4990         sha256: do not artificially restrict buffer length to be < 2^32
4991         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
4992         uint32_t to size_t.
4993         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
4994         to match.
4995
4996         avoid unaligned access errors, e.g., on sparc
4997         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
4998         direct access through a possibly-unaligned uint64* pointer.
4999         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
5000         direct access through a possibly-unaligned uint32* pointer.
5001         Prompted by this patch from Tom "spot" Callaway:
5002         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
5003
5004         sha512.c: fix typo in comment
5005         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
5006
5007 2008-05-25  Bruno Haible  <bruno@clisp.org>
5008
5009         * lib/set-mode-acl.c: Renamed from lib/acl.c.
5010         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
5011         (Makefile.am): Update lib_SOURCES.
5012
5013 2008-05-25  Bruno Haible  <bruno@clisp.org>
5014
5015         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
5016
5017 2008-05-25  Jim Meyering  <meyering@redhat.com>
5018
5019         useless-if-before-free: freed expr may have white-space differences
5020         * build-aux/useless-if-before-free: Recognize cases in which the
5021         freed expression differs from the tested one in embedded white
5022         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
5023         $1 was used, so we can't make any regexp shy.  Improved tests now
5024         detect this.
5025
5026         useless-if-before-free: accept white space in the expression.
5027         * build-aux/useless-if-before-free: For now, any white space
5028         in the expression must be identical in the free argument.
5029
5030         useless-if-before-free: efficiency tweak
5031         * build-aux/useless-if-before-free: Make the expression-matching
5032         regexp "shy".
5033         Make the *outer* regexp shy, not the expr-matching one.
5034
5035         update code-in-comment to accept cast of free arg
5036         * build-aux/useless-if-before-free: Update regexp.
5037
5038 2008-05-25  Bruno Haible  <bruno@clisp.org>
5039
5040         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
5041         * modules/copy-file-tests (Files, Makefile.am): Update.
5042         * tests/test-copy-file.c (func_test_copy): Update.
5043
5044 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
5045
5046         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
5047
5048 2008-05-23  Bruno Haible  <bruno@clisp.org>
5049
5050         Improve support for ACLs on OSF/1.
5051         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
5052         Remove fallback for unknown flavors of ACLs.
5053
5054 2008-05-22  Bruno Haible  <bruno@clisp.org>
5055
5056         Add support for ACLs on OSF/1.
5057         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
5058         replacements.
5059         (acl_free_text): New macro fallback.
5060         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
5061         acl_free.
5062         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
5063         acl_free_text function. Require AC_C_INLINE.
5064
5065 2008-05-22  Bruno Haible  <bruno@clisp.org>
5066
5067         Make copy_acl work on MacOS X 10.5.
5068         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
5069         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
5070         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
5071         If MODE_INSIDE_ACL, don't assume that every system has the same text
5072         representation for ACLs as FreeBSD.
5073         * lib/copy-acl.c (copy_acl): Add support for platforms with
5074         !MODE_INSIDE_ACL.
5075         * lib/file-has-acl.c (file_has_acl): Likewise.
5076         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
5077         FreeBSD, MacOS X, or IRIX, respectively.
5078
5079 2008-05-22  Bruno Haible  <bruno@clisp.org>
5080
5081         * lib/acl.h: Don't include <sys/acl.h>.
5082         (GETACLCNT): Move fallback to lib/acl-internal.h.
5083         * lib/acl-internal.h: Include <sys/acl.h> here.
5084         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
5085
5086 2008-05-22  Bruno Haible  <bruno@clisp.org>
5087
5088         Split off copy_acl function to separate file.
5089         * lib/copy-acl.c: New file, extracted from lib/acl.c.
5090         * lib/acl.c (copy_acl): Moved function to separate file.
5091         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
5092         * modules/acl (Files): Add lib/copy-acl.c.
5093         (Makefiles.am): Augment lib_SOURCES.
5094
5095 2008-05-22  Bruno Haible  <bruno@clisp.org>
5096
5097         * modules/copy-file-tests: New file.
5098         * tests/test-copy-file.sh: New file.
5099         * tests/test-copy-file.c: New file.
5100         * tests/test-copy-file-sameacls.c: New file.
5101
5102 2008-05-22  Eric Blake  <ebb9@byu.net>
5103
5104         Avoid gcc warning.
5105         * tests/test-memcmp.c (main): Pass NULL indirectly.
5106
5107 2008-05-21  Bruno Haible  <bruno@clisp.org>
5108
5109         Add reference doc about ACLs.
5110         * doc/acl-resources.txt: New file.
5111         * doc/acl-cygwin.txt: New file.
5112
5113 2008-05-21  Bruno Haible  <bruno@clisp.org>
5114
5115         Avoid one more warning from gcc.
5116         * lib/vasnprintf.c (IF_LINT): Update comments.
5117         (VASNPRINTF): Use it also for the 'prefix' array initializer.
5118
5119 2008-05-21  Jim Meyering  <meyering@redhat.com>
5120
5121         avoid a warning from gcc
5122         * lib/vasnprintf.c (IF_LINT): Define.
5123         (scale10_round_decimal_long_double):
5124         Use it to avoid a "may be used uninitialized" warning.
5125         (scale10_round_decimal_double): Likewise.
5126
5127 2008-05-21  Simon Josefsson  <simon@josefsson.org>
5128
5129         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
5130         declared.
5131
5132 2008-05-20  Bruno Haible  <bruno@clisp.org>
5133
5134         * tests/test-memcmp.c (main): Test also the sign of the result. Test
5135         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
5136
5137 2008-05-20  Simon Josefsson  <simon@josefsson.org>
5138
5139         * modules/memcmp-tests: New file.
5140         * tests/test-memcmp.c: New file.
5141
5142 2008-05-19  Bruno Haible  <bruno@clisp.org>
5143
5144         * modules/propername (Notice, configure.ac): Put quoted "..." into
5145         --keyword option.
5146         * lib/propername.h: Update comments accordingly.
5147         Reported by Eric Blake.
5148
5149 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
5150
5151         * modules/getpass-gnu (Depends-on): Add fseeko.
5152
5153 2008-05-19  Simon Josefsson  <simon@josefsson.org>
5154
5155         * modules/base64-tests: New file.
5156
5157 2008-05-19  Bo Borgerson <gigabo@gmail.com>
5158
5159         * lib/base64.c (base64_decode_ctx): If a decode context structure
5160         was passed in use it to ignore newlines.  If a context structure
5161         was _not_ passed in, continue to treat newlines as garbage (this
5162         is the historical behavior).  Formerly base64_decode.
5163         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
5164         takes a decode context structure.
5165         * lib/base64.h (base64_decode): Macro for four-argument calls.
5166         (base64_decode_alloc): Likewise.
5167         * lib/base64.c (base64_decode_ctx): If a decode context structure
5168         was passed in use it to ignore newlines.  If a context structure
5169         was _not_ passed in, continue to treat newlines as garbage (this
5170         is the historical behavior).  Formerly base64_decode.
5171         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
5172         takes a decode context structure.
5173         * lib/base64.h (base64_decode): Macro for four-argument calls.
5174         (base64_decode_alloc): Likewise.
5175
5176 2008-05-19  Jim Meyering  <meyering@redhat.com>
5177
5178         avoid a warning from gcc
5179         * lib/trim.c (IF_LINT): Define.
5180         (trim2): Use it to avoid a "may be used uninitialized" warning.
5181
5182         Fix doc typo.
5183         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
5184
5185 2008-05-19  Bruno Haible  <bruno@clisp.org>
5186
5187         * doc/glibc-functions/getpass.texi: Document limits of other
5188         implementations.
5189
5190 2008-05-19  Simon Josefsson  <simon@josefsson.org>
5191             Bruno Haible <bruno@clisp.org>
5192
5193         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
5194
5195 2008-05-18  Bruno Haible  <bruno@clisp.org>
5196
5197         * modules/propername: New file, from GNU gettext.
5198         * lib/propername.h: New file, from GNU gettext.
5199         * lib/propername.c: New file, from GNU gettext.
5200         * MODULES.html.sh (Internationalization functions): Add propername.
5201
5202 2008-05-16  Jim Meyering  <meyering@redhat.com>
5203             Bruno Haible  <bruno@clisp.org>
5204
5205         Avoid some warnings from "gcc -Wshadow".
5206         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
5207
5208 2008-05-15  Eric Blake  <ebb9@byu.net>
5209
5210         Extend previous patch to cygwin 1.7.0.
5211         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
5212         fast implementation in cygwin >= 1.7.0.
5213         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
5214         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
5215
5216 2008-05-15  Bruno Haible  <bruno@clisp.org>
5217
5218         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
5219         implementation in glibc >= 2.9.
5220         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
5221         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
5222
5223 2008-05-15  Bruno Haible  <bruno@clisp.org>
5224
5225         * MODULES.html.sh (Internationalization functions): Remove linebreak.
5226         (Unicode string functions): Add unilbrk/*.
5227         Reported by Karl Berry.
5228
5229 2008-05-15  Eric Blake  <ebb9@byu.net>
5230
5231         Fix violation of <stdbool.h> replacement in regex.
5232         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
5233         * lib/regexec.c (re_search_internal): Likewise.
5234         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
5235
5236 2008-05-15  Jim Meyering  <meyering@redhat.com>
5237
5238         avoid distracting test output when git or cvs is not found
5239         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
5240         * tests/test-vc-list-files-git.sh: Likewise.
5241
5242 2008-05-15  Eric Blake  <ebb9@byu.net>
5243
5244         Glibc finally accepted the memmem speedup code, bugzilla #5514.
5245         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
5246         glibc version.
5247         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
5248         * doc/posix-functions/strstr.texi (strstr): Likewise.
5249         * lib/str-two-way.h (MAX): Sychronize with glibc.
5250
5251 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
5252
5253         * lib/regcomp.c (optimize_utf8): Add a note on why we test
5254         opr.ctx_type.
5255         (calc_first): Initialize constraint field.
5256         (duplicate_node_closure): Use it instead of special casing ANCHORS.
5257         Fix grammar.
5258         (duplicate_node): Merge constraint field for all node types.
5259         (calc_eclosure_iter): Look at constraint field for all node types.
5260         * lib/regex_internal.c (create_cd_newstate): Don't look at
5261         opr.ctx_type.
5262
5263 2008-05-14  Bruno Haible  <bruno@clisp.org>
5264
5265         Help GCC to do better code generation.
5266         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
5267         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
5268         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
5269         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
5270         Declare with attribute 'malloc' if supported.
5271
5272 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
5273
5274         use "echo STR|wc -c" rather than unportable "expr length STR"
5275         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
5276         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
5277
5278 2008-05-14  Jim Meyering  <meyering@redhat.com>
5279
5280         use dd ibs=$n count=1 ... rather than less-portable head -c$n
5281         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
5282         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
5283         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
5284         via Collin Lasse.
5285
5286 2008-05-14  Eric Blake  <ebb9@byu.net>
5287
5288         Avoid quadratic growth in gl_LIBSOURCES.
5289         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
5290         Suggested by Bruno Haible.
5291
5292         Test xmemdup0.
5293         * modules/xmemdup0-tests: New file.
5294         * tests/test-xmemdup0.c: Likewise.
5295
5296 2008-05-13  Eric Blake  <ebb9@byu.net>
5297
5298         Split xmemdup0 into its own module.
5299         * modules/xmemdup0: New file.
5300         * lib/xmemdup0.h: Likewise.
5301         * lib/xmemdup0.c: Likewise.
5302         * MODULES.html.sh (Memory management functions): Add xmemdup0.
5303         * lib/xalloc.h (xmemdup0): Remove.
5304         * lib/xmalloc.c (xmemdup0): Likewise.
5305
5306 2008-05-13  Eric Blake  <ebb9@byu.net>
5307             Bruno Haible  <bruno@clisp.org>
5308
5309         Reduce number of forks required during autoconf.
5310         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
5311         and gl_LIBSOURCES_DIR.
5312         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
5313         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
5314         m4_syscmd per file.
5315         <m4_foreach_w>: Move...
5316         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
5317
5318 2008-05-13  Eric Blake  <ebb9@byu.net>
5319
5320         * gnulib-tool: Fix various comment typos.
5321
5322 2008-05-12  Bruno Haible  <bruno@clisp.org>
5323
5324         Tailor the linebreaking algorithm.
5325         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
5326
5327 2008-05-12  Bruno Haible  <bruno@clisp.org>
5328
5329         Update to Unicode 5.0.0.
5330         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
5331         LBP_JV, LBP_JT. Redistribute values.
5332         (unilbrk_table): Change size.
5333         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
5334         Unicode TR#14 rev. 22.
5335         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
5336         LBP_JV, LBP_JT. Redistribute values.
5337         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
5338         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
5339         Update.
5340         * lib/unilbrk/lbrkprop1.h: Regenerated.
5341         * lib/unilbrk/lbrkprop2.h: Regenerated.
5342         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
5343         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
5344         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
5345         Likewise.
5346         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
5347         Likewise.
5348         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
5349         result.
5350         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
5351         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
5352         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
5353         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
5354         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
5355         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
5356
5357 2008-05-11  Bruno Haible  <bruno@clisp.org>
5358
5359         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
5360
5361 2008-05-11  Bruno Haible  <bruno@clisp.org>
5362
5363         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
5364         * modules/unilbrk/gen-lbrk: New file.
5365
5366 2008-05-11  Bruno Haible  <bruno@clisp.org>
5367
5368         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
5369         * m4/sha512.m4 (gl_SHA512): Likewise.
5370
5371 2008-05-11  Jim Meyering  <meyering@redhat.com>
5372
5373         New modules: crypto/sha256, crypto/sha512 (from coreutils)
5374         * modules/crypto/sha256: New file.
5375         * modules/crypto/sha512: Likewise.
5376         * lib/sha256.c: Likewise.
5377         * lib/sha256.h: Likewise.
5378         * lib/sha512.c: Likewise.
5379         * lib/sha512.h: Likewise.
5380         * lib/u64.h: Likewise.
5381         * m4/sha256.m4: Likewise.
5382         * m4/sha512.m4: Likewise.
5383         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
5384
5385 2008-05-10  Bruno Haible  <bruno@clisp.org>
5386
5387         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
5388         (Input/Output <stdio.h>): Add xprintf.
5389         (Signal handling <signal.h>): Add strsignal.
5390         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
5391         (Core language properties): Add func.
5392         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
5393         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
5394         strings.
5395         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
5396         (Input/output): New section.
5397         (File system functions): Add openat-die, stat-macros.
5398         (Networking functions): Add sockets.
5399         (Unicode string functions): Add unictype/*.
5400         (Support for building libraries and executables): Add gperf.
5401         (Support for building documentation): Add agpl-3.0.
5402         (Misc): Add nocrash.
5403
5404 2008-05-10  Bruno Haible  <bruno@clisp.org>
5405
5406         * modules/unictype/gen-ctype: New file.
5407
5408 2008-05-10  Jim Meyering  <meyering@redhat.com>
5409
5410         Make chdir-safer.c more efficient on a system with no symlinks.
5411         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
5412         also if ELOOP is zero.  Suggested by Bruno Haible.
5413
5414         Make chdir-safer.c slightly safer.
5415         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
5416         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
5417
5418         Avoid compile failure on systems without ELOOP (like mingw).
5419         * lib/chdir-safer.c (ELOOP): Define if not already defined.
5420         Reported by Bruno Haible.
5421
5422 2008-05-10  Bruno Haible  <bruno@clisp.org>
5423
5424         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
5425         (is_utf8_encoding): Use a case-insensitive comparison.
5426         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
5427         streq.
5428
5429 2008-05-10  Bruno Haible  <bruno@clisp.org>
5430
5431         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
5432         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
5433         * lib/unilbrk/ulc-common.h (iconv_string_length,
5434         iconv_string_keeping_offsets): Remove declarations.
5435         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
5436         Don't include <iconv.h>, streq.h, xsize.h.
5437         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
5438         conversion.
5439         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
5440         <iconv.h>, streq.h, xsize.h.
5441         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
5442         conversion.
5443         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
5444         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
5445         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
5446         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
5447
5448 2008-05-10  Bruno Haible  <bruno@clisp.org>
5449
5450         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
5451         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
5452
5453         * modules/unilbrk/u32-width-linebreaks-tests: New file.
5454         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
5455
5456         * modules/unilbrk/u16-width-linebreaks-tests: New file.
5457         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
5458
5459         * modules/unilbrk/u8-width-linebreaks-tests: New file.
5460         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
5461
5462         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
5463         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
5464
5465         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
5466         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
5467
5468         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
5469         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
5470
5471         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
5472         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
5473
5474 2008-05-10  Bruno Haible  <bruno@clisp.org>
5475
5476         Split up 'linebreak' module.
5477         * lib/unilbrk.h: New file, based on lib/linebreak.h.
5478         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
5479         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
5480         modifications.
5481         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
5482         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
5483         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
5484         lib/linebreak.c.
5485         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
5486         lib/linebreak.c.
5487         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
5488         lib/linebreak.c.
5489         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
5490         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
5491         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
5492         lib/linebreak.c.
5493         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
5494         lib/linebreak.c.
5495         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
5496         lib/linebreak.c.
5497         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
5498         lib/linebreak.c.
5499         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
5500         lib/linebreak.c.
5501         * modules/unilbrk/base: New file.
5502         * modules/unilbrk/tables: New file.
5503         * modules/unilbrk/u8-possible-linebreaks: New file.
5504         * modules/unilbrk/u16-possible-linebreaks: New file.
5505         * modules/unilbrk/u32-possible-linebreaks: New file.
5506         * modules/unilbrk/ulc-common: New file.
5507         * modules/unilbrk/ulc-possible-linebreaks: New file.
5508         * modules/unilbrk/u8-width-linebreaks: New file.
5509         * modules/unilbrk/u16-width-linebreaks: New file.
5510         * modules/unilbrk/u32-width-linebreaks: New file.
5511         * modules/unilbrk/ulc-width-linebreaks: New file.
5512         * lib/linebreak.h: Remove file.
5513         * lib/linebreak.c: Remove file.
5514         * m4/linebreak.m4: Remove file.
5515         * modules/linebreak: Remove file.
5516         * NEWS: Mention the changes.
5517
5518 2008-05-09  Eric Blake  <ebb9@byu.net>
5519
5520         Add xmemdup0.
5521         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
5522         implementation.
5523         * lib/xmalloc.c (xmemdup0): New C implementation.
5524
5525 2008-05-08  Bruno Haible  <bruno@clisp.org>
5526
5527         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
5528
5529 2008-05-07  Eric Blake  <ebb9@byu.net>
5530
5531         Support cross-compilation of <wctype.h>.
5532         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
5533         AC_CACHE_CHECK.
5534
5535 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
5536
5537         * build-aux/vc-list-files: Add support for bzr.
5538
5539 2008-05-03  Jim Meyering  <meyering@redhat.com>
5540
5541         avoid failed assertion with tight malloc
5542         * tests/test-getndelim2.c: Correct an off-by-one assertion.
5543
5544 2008-05-03  Simon Josefsson  <simon@josefsson.org>
5545
5546         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
5547         are needed from arpa/inet.h.
5548         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
5549         Reported by Bruno Haible.
5550
5551 2008-05-02  Jim Meyering  <meyering@redhat.com>
5552
5553         avoid compilation error on FreeBSD 6
5554         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
5555
5556 2008-05-01  Jim Meyering  <meyering@redhat.com>
5557
5558         useless-if-before-free: correct --help's exit status description
5559         * build-aux/useless-if-before-free (usage): Like grep, exit 0
5560         for one or more matches, etc.  Reported by Bruno Haible.
5561
5562         vc-list-files: make the stand-alone gnulib test work
5563         * modules/vc-list-files-tests (configure.ac):
5564         Define and AC_SUBST abs_aux_dir.
5565         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
5566         $(abs_top_srcdir) to each script and having each of them
5567         duplicate the work of setting PATH, set PATH here, using
5568         the new variable, abs_aux_dir instead.
5569         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
5570         * tests/test-vc-list-files-git.sh: Likewise.
5571         Reported by Bruno Haible.
5572
5573 2008-05-01  Bruno Haible  <bruno@clisp.org>
5574
5575         * lib/getndelim2.c (getndelim2): Fix newsize computation during
5576         reallocation. Rename 'done' to 'found_delimiter'.
5577
5578 2008-05-01  Jim Meyering  <meyering@redhat.com>
5579
5580         vc-list-files: accommodate /bin/sh like the one from Solaris 10
5581         * build-aux/vc-list-files: Use `...`, not $(...).
5582
5583 2008-04-30  Jim Meyering  <meyering@redhat.com>
5584
5585         add tests for vc-list-files
5586         * modules/vc-list-files-tests: New module.
5587         * tests/test-vc-list-files-cvs.sh: New file.
5588         * tests/test-vc-list-files-git.sh: New file.
5589
5590         avoid a warning from gcc
5591         * lib/getndelim2.c (IF_LINT): Define.
5592         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
5593
5594         vc-list-files: work properly with build-aux/cvsu, too
5595         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
5596         to all cvs-based clauses.
5597
5598         vc-list-files: work properly in the CVS+awk case, too
5599         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
5600
5601         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
5602         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
5603         take more than one file argument, so .  Add quotes, just in case $dir
5604         ever contains a shell meta-character.  Prompted by Soren Hansen in
5605         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
5606
5607 2008-04-29  Eric Blake  <ebb9@byu.net>
5608
5609         Optimize getndelim2 to use block operations when possible.
5610         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
5611         freadseek, and memchr2.
5612         * lib/getndelim2.c (getndelim2): Use them for block reads.
5613
5614 2008-04-29  Bruno Haible  <bruno@clisp.org>
5615
5616         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
5617         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
5618         * modules/inet_ntop (Depends-on): Add extensions.
5619         * modules/inet_pton (Depends-on): Likewise.
5620         Reported by Simon Josefsson.
5621
5622 2008-04-29  Jim Meyering  <meyering@redhat.com>
5623
5624         When the is more than one match in a block, match all of them.
5625         * build-aux/useless-if-before-free: Iterate through each block
5626         until there are no more matches.
5627
5628         Fix broken useless-if-before-free script.
5629         * build-aux/useless-if-before-free: Fix typo: missing "?" after
5630         the expression to match cast of argument to free-like function.
5631
5632 2008-04-29  Eric Blake  <ebb9@byu.net>
5633
5634         Use new header.
5635         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
5636
5637 2008-04-29  Jim Meyering  <meyering@redhat.com>
5638
5639         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
5640         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
5641         by gnulib to exist and to declare e.g., inet_ntop.
5642         Don't include "inet_ntop.h", now removed.
5643
5644         * m4/arpa_inet_h.m4: Remove trailing blanks.
5645
5646 2008-04-29  Eric Blake  <ebb9@byu.net>
5647
5648         Silence valgrind on safe reads beyond potential array bounds.
5649         * lib/rawmemchr.valgrind: New file.
5650         * lib/strchrnul.valgrind: Likewise.
5651         * modules/rawmemchr (Files): Distribute new file.
5652         * modules/strchrnul (Files): Likewise.
5653         Suggested by Bruno Haible.
5654
5655 2008-04-29  Bruno Haible  <bruno@clisp.org>
5656
5657         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
5658         (inet_ntop, inet_pton): Change portability warning's wording.
5659         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
5660         Invoke gl_CHECK_NEXT_HEADERS.
5661         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
5662         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
5663         set ARPA_INET_H.
5664         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
5665         * modules/arpa_inet (Description): No longer only for systems that
5666         lack it.
5667         (Depends-on): Add include_next.
5668         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
5669         HAVE_ARPA_INET_H.
5670
5671 2008-04-29  Jim Meyering  <meyering@redhat.com>
5672
5673         * modules/mkdir (License): Re-license as LGPLv2+.
5674
5675 2008-04-29  Bruno Haible  <bruno@clisp.org>
5676
5677         * modules/rawmemchr (Maintainer): Set to Eric.
5678         * modules/strchrnul (Maintainer): Likewise.
5679
5680 2008-04-29  Simon Josefsson  <simon@josefsson.org>
5681
5682         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
5683         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
5684
5685         * modules/arpa_inet (arpa/inet.h): Use them.
5686
5687 2008-04-28  Eric Blake  <ebb9@byu.net>
5688
5689         Test getndelim2.
5690         * modules/getndelim2-tests: New file.
5691         * tests/test-getndelim2.c: Likewise.
5692         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
5693         stream.
5694         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
5695
5696         * MODULES.html.sh: Document new module.
5697
5698 2008-04-20  Bruno Haible  <bruno@clisp.org>
5699
5700         * lib/c-stack.c (die): Use raise.
5701         * modules/c-stack (Depends-on): Add raise.
5702
5703 2008-04-28  Bruno Haible  <bruno@clisp.org>
5704
5705         Expect rpmatch to be declared.
5706         * lib/yesno.c (rpmatch): Remove declaration.
5707
5708         Declare rpmatch.
5709         * lib/stdlib.in.h (rpmatch): New declaration.
5710         * lib/rpmatch.c: Include <stdlib.h> first.
5711         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
5712         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
5713         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
5714         HAVE_RPMATCH.
5715         * modules/rpmatch (Depends-on): Add stdlib, extensions.
5716         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
5717         (Include): Set to <stdlib.h>.
5718         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
5719         HAVE_RPMATCH.
5720         * NEWS: Document the change.
5721
5722 2008-04-28  Bruno Haible  <bruno@clisp.org>
5723
5724         Change rpmatch to use nl_langinfo when appropriate.
5725         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
5726         (N_): New macro.
5727         (localized_pattern): New function/macro.
5728         (try): Remove match, nomatch arguments. Copy the pattern into safe
5729         memory before caching it.
5730         (rpmatch): Use localized_pattern. Add translator comments.
5731         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
5732         Suggested by Eric Blake.
5733         * modules/rpmatch (Depends-on): Add stdbool.
5734
5735 2008-04-28  Eric Blake  <ebb9@byu.net>
5736
5737         Add rawmemchr module, matching glibc.
5738         * modules/string (Makefile.am): New indicator.
5739         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
5740         * lib/string.in.h (rawmemchr): Declare when appropriate.
5741         * modules/rawmemchr: New file.
5742         * m4/rawmemchr.m4: Likewise.
5743         * lib/rawmemchr.c: Likewise.
5744         * modules/rawmemchr-tests: Likewise.
5745         * tests/test-rawmemchr.c: Likewise.
5746         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
5747         module.
5748         * modules/strchrnul (Depends-on): Add rawmemchr.
5749         * lib/strchrnul.c (strchrnul): Optimize a corner case.
5750
5751         Whitespace cleanup.
5752         * tests/test-strchrnul.c: Reindent.
5753         * lib/strchrnul.c: Likewise.
5754
5755         Optimize and test strchrnul.
5756         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
5757         * modules/strchrnul-tests: New file.
5758         * tests/test-strchrnul.c: Likewise.
5759
5760         Remove intprops dependency.
5761         * modules/memchr (Depends-on): Remove intprops.
5762         * modules/memrchr (Depends-on): Likewise.
5763         * modules/memchr2 (Depends-on): Likewise.
5764         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
5765         * lib/memrchr.c (__memrchr): Likewise.
5766         * lib/memrchr2.c (memchr2): Likewise.
5767         Reported by Simon Josefsson.
5768
5769 2008-04-28  Simon Josefsson  <simon@josefsson.org>
5770
5771         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
5772         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
5773
5774 2008-04-28  Simon Josefsson  <simon@josefsson.org>
5775
5776         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
5777
5778         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
5779
5780         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
5781
5782         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
5783         declarations.
5784         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
5785
5786         * m4/inet_pton.m4: Don't check for header files.
5787
5788         * m4/inet_ntop.m4: Don't check for header files.
5789
5790 2008-04-28  Simon Josefsson  <simon@josefsson.org>
5791
5792         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
5793         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
5794         trigger for cygwin).
5795         Reported by Bruno Haible  <bruno@clisp.org>.
5796
5797 2008-04-28  Bruno Haible  <bruno@clisp.org>
5798
5799         * doc/posix-functions/strdup.texi: Mention mingw problem.
5800
5801 2008-04-27  Bruno Haible  <bruno@clisp.org>
5802
5803         * modules/stat-time-tests (Depends-on): Add sleep.
5804         * tests/test-stat-time.c (force_unlink): New function.
5805         (cleanup): Use it.
5806         (test_mtime): Remove the ctime related tests.
5807         (test_ctime): New function, containing the ctime related tests.
5808         (main): Call test_ctime, except on native Windows platforms.
5809
5810 2008-04-27  Bruno Haible  <bruno@clisp.org>
5811
5812         * lib/rpmatch.c (rpmatch): Add some comments.
5813         Reported by James Youngman <jay@gnu.org>.
5814
5815 2008-04-27  Bruno Haible  <bruno@clisp.org>
5816
5817         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
5818         quiet NaNs.
5819
5820 2008-04-27  Bruno Haible  <bruno@clisp.org>
5821
5822         Make test-yesno.sh work on mingw.
5823         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
5824         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
5825         (main): Set stdin to binary mode.
5826         * modules/yesno-tests (Depends-on): Add binary-io.
5827
5828 2008-04-27  Bruno Haible  <bruno@clisp.org>
5829
5830         Fix 'isfinite' on x86, x86_64, ia64 platforms.
5831         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
5832         argument that lie outside the IEEE 854 domain.
5833         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
5834         (gl_ISFINITE): Use it.
5835         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
5836
5837 2008-04-27  Bruno Haible  <bruno@clisp.org>
5838
5839         Allow local renaming in config.h.
5840         * lib/memrchr.c (memrchr): Don't undefine outside libc.
5841
5842 2008-04-27  Bruno Haible  <bruno@clisp.org>
5843
5844         * lib/memchr.c (__memchr): Change type of 'i'.
5845         * lib/memchr2.c (memchr2): Likewise.
5846
5847 2008-04-26  Eric Blake  <ebb9@byu.net>
5848         and Bruno Haible  <bruno@clisp.org>
5849
5850         Optimize and test memrchr.
5851         * modules/memrchr (Depends-on): Add intprops.
5852         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
5853         * modules/memrchr-tests: New file.
5854         * tests/test-memrchr.c: New file.
5855
5856 2008-04-26  Bruno Haible  <bruno@clisp.org>
5857
5858         Add tentative support for DragonFly BSD.
5859         * lib/stdio-impl.h: Add macros for DragonFly BSD.
5860         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
5861         fp.
5862         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
5863         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
5864         * lib/fpurge.c (fpurge): Likewise.
5865         * lib/freadable.c (freaadable): Likewise.
5866         * lib/freadahead.c (freadahead): Likewise.
5867         * lib/freading.c (freading): Likewise.
5868         * lib/freadptr.c (freadptr): Likewise.
5869         * lib/freadseek.c (freadptrinc): Likewise.
5870         * lib/fseeko.c (fseeko): Likewise.
5871         * lib/fseterr.c (fseterr): Likewise.
5872         * lib/fwritable.c (fwritable): Likewise.
5873         * lib/fwriting.c (fwriting): Likewise.
5874
5875 2008-04-26  Bruno Haible  <bruno@clisp.org>
5876
5877         * lib/stdio-impl.h: New file.
5878         * lib/fbufmode.c: Include stdio-impl.h.
5879         (fbufmode): Use fp_, remove redundant #defines.
5880         * lib/fflush.c: Include stdio-impl.h.
5881         (clear_ungetc_buffer): Remove redundant #defines.
5882         * lib/fpurge.c: Include stdio-impl.h.
5883         (fpurge): Remove redundant #defines.
5884         * lib/freadable.c: Include stdio-impl.h.
5885         (freadable): Remove redundant #defines.
5886         * lib/freadahead.c: Include stdio-impl.h.
5887         (freadahead): Remove redundant #defines.
5888         * lib/freading.c: Include stdio-impl.h.
5889         (freading): Remove redundant #defines.
5890         * lib/freadptr.c: Include stdio-impl.h.
5891         (freadptr): Remove redundant #defines.
5892         * lib/freadseek.c: Include stdio-impl.h.
5893         (freadptrinc): Remove redundant #defines.
5894         * lib/fseeko.c: Include stdio-impl.h.
5895         (rpl_fseeko): Remove redundant #defines.
5896         * lib/fseterr.c: Include stdio-impl.h.
5897         (fseterr): Remove redundant #defines.
5898         * lib/fwritable.c: Include stdio-impl.h.
5899         (fwritable: Remove redundant #defines.
5900         * lib/fwriting.c: Include stdio-impl.h.
5901         (fwriting): Remove redundant #defines.
5902         * modules/fbufmode (Files): Add lib/stdio-impl.h.
5903         * modules/fflush (Files): Likewise.
5904         * modules/fpurge (Files): Likewise.
5905         * modules/freadable (Files): Likewise.
5906         * modules/freadahead (Files): Likewise.
5907         * modules/freading (Files): Likewise.
5908         * modules/freadptr (Files): Likewise.
5909         * modules/freadseek (Files): Likewise.
5910         * modules/fseeko (Files): Likewise.
5911         * modules/fseterr (Files): Likewise.
5912         * modules/fwritable (Files): Likewise.
5913         * modules/fwriting (Files): Likewise.
5914
5915 2008-04-26  Bruno Haible  <bruno@clisp.org>
5916
5917         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
5918         restore_seek_optimization, update_fpos_cache): New functions, extracted
5919         from rpl_fflush.
5920         (rpl_fflush): Use them.
5921         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
5922         (gl_REPLACE_FFLUSH): Use it.
5923
5924 2008-04-26  Bruno Haible  <bruno@clisp.org>
5925
5926         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
5927         on Solaris.
5928         * tests/test-xstrtoimax.sh: Likewise.
5929         * tests/test-xstrtoumax.sh: Likewise.
5930         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
5931
5932 2008-04-26  Bruno Haible  <bruno@clisp.org>
5933
5934         * modules/memchr-tests: New file.
5935         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
5936
5937 2008-04-26  Eric Blake  <ebb9@byu.net>
5938             Bruno Haible  <bruno@clisp.org>
5939
5940         * lib/memchr.c: Include intprops.h.
5941         (__memchr): Optimize parallel detection of matching bytes. Rename local
5942         variables. Add explanatory comments.
5943
5944 2008-04-26  Bruno Haible  <bruno@clisp.org>
5945
5946         Fix module 'memchr', broken since 2000-10-28.
5947         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
5948
5949 2008-04-26  Bruno Haible  <bruno@clisp.org>
5950
5951         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
5952         comments.
5953
5954 2008-04-25  Eric Blake  <ebb9@byu.net>
5955
5956         Use native fstatat on cygwin 1.7.0.
5957         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
5958         first.
5959
5960 2008-04-23  Eric Blake  <ebb9@byu.net>
5961
5962         Improve memchr2 performance.
5963         * lib/memchr2.c (memchr2): Further optimize parallel detection of
5964         NUL bytes.
5965         * modules/memchr2 (Depends-on): Use intprops.h.
5966
5967 2008-04-23  Simon Josefsson  <simon@josefsson.org>
5968
5969         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
5970         an inline function instead of a CPP macro.  Patch by Ben Pfaff
5971         <blp@cs.stanford.edu>.
5972
5973 2008-04-23  Simon Josefsson  <simon@josefsson.org>
5974
5975         * lib/arpa_inet.in.h: New file.
5976
5977         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
5978         (Makefile.am): Sed in substitute header file.
5979
5980         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
5981         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
5982
5983         * modules/inet_ntop (configure.ac): Use
5984         gl_ARPA_INET_MODULE_INDICATOR.
5985
5986         * modules/inet_pton (configure.ac): Use
5987         gl_ARPA_INET_MODULE_INDICATOR.
5988
5989 2008-04-22  Jim Meyering  <meyering@redhat.com>
5990
5991         * modules/verify (License): Re-license as LGPLv2+.
5992
5993 2008-04-22  Simon Josefsson  <simon@josefsson.org>
5994
5995         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
5996         parameter to void* as per POSIX standard (MinGW uses char*).
5997
5998 2008-04-21  Bruno Haible  <bruno@clisp.org>
5999
6000         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
6001         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
6002         Define to replacements if REPLACE_ISWCNTRL is 1.
6003         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
6004         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
6005         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
6006         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
6007         what it fixes.
6008         * doc/posix-functions/iswalpha.texi: Likewise.
6009         * doc/posix-functions/iswblank.texi: Likewise.
6010         * doc/posix-functions/iswcntrl.texi: Likewise.
6011         * doc/posix-functions/iswdigit.texi: Likewise.
6012         * doc/posix-functions/iswgraph.texi: Likewise.
6013         * doc/posix-functions/iswlower.texi: Likewise.
6014         * doc/posix-functions/iswprint.texi: Likewise.
6015         * doc/posix-functions/iswpunct.texi: Likewise.
6016         * doc/posix-functions/iswspace.texi: Likewise.
6017         * doc/posix-functions/iswupper.texi: Likewise.
6018         * doc/posix-functions/iswxdigit.texi: Likewise.
6019         Reported by Alain Guibert.
6020
6021 2008-04-21  Bruno Haible  <bruno@clisp.org>
6022
6023         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
6024         Patch by Alain Guibert.
6025
6026 2008-04-21  Bruno Haible  <bruno@clisp.org>
6027
6028         Fix test failures on mingw.
6029         * tests/test-xstrtol.c (print_no_progname): New function.
6030         (main): Install it in error_print_progname hook.
6031         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
6032         * tests/test-xstrtoimax.sh: Likewise.
6033         * tests/test-xstrtoumax.sh: Likewise.
6034
6035 2008-04-21  Bruno Haible  <bruno@clisp.org>
6036
6037         Fix test failure on mingw.
6038         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
6039
6040 2008-04-21  Bruno Haible  <bruno@clisp.org>
6041
6042         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
6043         Actually assign a value.
6044
6045 2008-04-20  Bruno Haible  <bruno@clisp.org>
6046
6047         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
6048         take 2.
6049         * lib/canonicalize.c (canonicalize_file_name): Elide if the
6050         'canonicalize-lgpl' module is also used.
6051         * lib/canonicalize-lgpl.c: Undo last change.
6052         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
6053
6054 2008-04-20  Bruno Haible  <bruno@clisp.org>
6055
6056         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
6057         config.h. Provide _mkdir based fallback for mingw.
6058         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
6059         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
6060         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
6061         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
6062         rather than defining mkdir in config.h.
6063         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
6064         (gl_SYS_STAT_H_DEFAULTS): New macro.
6065         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
6066         HAVE_IO_H any more.
6067         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
6068         HAVE_DECL_MKDIR and HAVE_IO_H.
6069
6070 2008-04-20  Bruno Haible  <bruno@clisp.org>
6071
6072         * lib/isapipe.c: Port to native Windows platforms.
6073
6074 2008-04-20  Bruno Haible  <bruno@clisp.org>
6075
6076         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
6077
6078 2008-04-21  Eric Blake  <ebb9@byu.net>
6079
6080         Work around preprocessors that don't handle UINTMAX_MAX.
6081         * lib/memchr2.c (memchr2): Avoid embedded #if.
6082         Reported by Alain Guibert, fix suggested by Bruno Haible.
6083
6084 2008-04-21  Simon Josefsson  <simon@josefsson.org>
6085
6086         * doc/posix-functions/strftime.texi (strftime): Explain better
6087         Windows incompatibility.  Suggested by Micah Cowan
6088         <micah@cowan.name>.
6089
6090 2008-04-20  Bruno Haible  <bruno@clisp.org>
6091
6092         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
6093         unistr/u8-mblen.
6094
6095 2008-04-20  Bruno Haible  <bruno@clisp.org>
6096
6097         Fix test failure on platforms with non-GNU iconv.
6098         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
6099         (U_TO_U8): Use it, rather than u16_to_u8.
6100         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
6101         units at the end of the input string.
6102         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
6103
6104 2008-04-20  Bruno Haible  <bruno@clisp.org>
6105
6106         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
6107         when the resulting length is 0.
6108         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
6109
6110 2008-04-20  Bruno Haible  <bruno@clisp.org>
6111
6112         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
6113         works.
6114         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
6115
6116 2008-04-20  Bruno Haible  <bruno@clisp.org>
6117
6118         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
6119         * modules/tsearch-tests (configure.ac): Test for initstate function.
6120
6121 2008-04-20  Bruno Haible  <bruno@clisp.org>
6122
6123         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
6124         for nlink_t if missing.
6125         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
6126
6127 2008-04-19  Bruno Haible  <bruno@clisp.org>
6128
6129         Work around snprintf bug on Linux libc5.
6130         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
6131         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
6132         gl_SNPRINTF_SIZE1.
6133         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
6134         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
6135         that test failed.
6136         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
6137         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
6138         * modules/snprintf (Files): Add m4/printf.m4.
6139         * modules/vsnprintf (Files): Likewise.
6140         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
6141         * doc/posix-functions/vsnprintf.texi: Likewise.
6142
6143 2008-04-19  Bruno Haible  <bruno@clisp.org>
6144
6145         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
6146         from 0.0058 to less than 10^-7.
6147
6148 2008-04-19  Bruno Haible  <bruno@clisp.org>
6149
6150         Fix rounding when a precision is given.
6151         * lib/vasnprintf.c (is_borderline): New function.
6152         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
6153         9...9x.
6154         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
6155         %e, %g.
6156         * tests/test-vasprintf-posix.c (test_function): Likewise.
6157         * tests/test-snprintf-posix.h (test_function): Likewise.
6158         * tests/test-sprintf-posix.h (test_function): Likewise.
6159         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
6160         * tests/test-printf-posix.h (test_function): Likewise.
6161         * tests/test-printf-posix.output: Update.
6162         Reported by John Darrington <john@darrington.wattle.id.au> via
6163         Ben Pfaff <blp@cs.stanford.edu>.
6164
6165 2008-04-18  Simon Josefsson  <simon@josefsson.org>
6166
6167         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
6168         Suggested by Bruno Haible <bruno@clisp.org>.
6169
6170 2008-04-17  Bruno Haible  <bruno@clisp.org>
6171
6172         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
6173         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
6174         implementation.
6175         Patch by Bruce Merry <bmerry@gmail.com>.
6176
6177 2008-04-17  Simon Josefsson  <simon@josefsson.org>
6178
6179         * doc/posix-functions/strftime.texi (strftime): Mention that %e
6180         doesn't work under Windows.
6181
6182 2008-04-16  Bruno Haible  <bruno@clisp.org>
6183
6184         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
6185         New macros.
6186         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
6187         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
6188         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
6189         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
6190         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
6191         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
6192         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
6193         macros.
6194         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
6195         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
6196         Northern Sotho, Uighur.
6197
6198 2008-04-16  Bruno Haible  <bruno@clisp.org>
6199
6200         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
6201         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
6202         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
6203         Reported by Daniel Bergström <daniel@octocode.com>.
6204
6205 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
6206             Bruno Haible  <bruno@clisp.org>
6207
6208         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
6209         function.
6210         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
6211         New functions, mostly extracted from gl_locale_name_default.
6212         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
6213
6214 2008-04-16  Eric Blake  <ebb9@byu.net>
6215
6216         Adjust strtod detection to catch glibc 2.7 bug.
6217         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
6218         Reported by John Gatewood Ham.
6219
6220 2008-04-16  Bruno Haible  <bruno@clisp.org>
6221
6222         Add tentative support for Linux libc5.
6223         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
6224         * lib/fpurge.c (fpurge): Likewise.
6225         * lib/freadable.c (freadable): Likewise.
6226         * lib/freadahead.c (freadahead): Likewise.
6227         * lib/freading.c (freading): Likewise.
6228         * lib/freadptr.c (freadptr): Likewise.
6229         * lib/freadseek.c (freadptrinc): Likewise.
6230         * lib/fseeko.c (rpl_fseeko): Likewise.
6231         * lib/fseterr.c (fseterr): Likewise.
6232         * lib/fwritable.c (fwritable): Likewise.
6233         * lib/fwriting.c (fwriting): Likewise.
6234         Reported by Alain Guibert <alguibert+bts@free.fr>.
6235
6236 2008-04-15  Bruno Haible  <bruno@clisp.org>
6237
6238         * modules/mathl (configure.ac): Define module indicator.
6239
6240 2008-04-15  Bruno Haible  <bruno@clisp.org>
6241
6242         * lib/logl.c (logl): Remove unused variables.
6243
6244 2008-04-15  Bruno Haible  <bruno@clisp.org>
6245
6246         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
6247         fails.
6248
6249 2008-04-15  Bruno Haible  <bruno@clisp.org>
6250
6251         * lib/trim.c (trim2): Fix argument of isspace() macro.
6252
6253 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
6254
6255         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
6256         to 0.
6257         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
6258
6259 2008-04-14  Bruno Haible  <bruno@clisp.org>
6260
6261         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
6262         AC_LANG_PROGRAM argument.
6263         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
6264         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
6265         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
6266         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
6267         * m4/math_h.m4 (gl_MATH_H): Likewise.
6268         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
6269         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
6270         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
6271         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
6272         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
6273         * m4/regex.m4 (gl_REGEX): Likewise.
6274         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
6275         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
6276         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
6277         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
6278         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
6279         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
6280         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
6281         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
6282
6283 2008-04-14  Jim Meyering  <meyering@redhat.com>
6284
6285         test-strtod: fix typos: s/abs/fabs/
6286         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
6287
6288 2008-04-13  Bruno Haible  <bruno@clisp.org>
6289
6290         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
6291         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
6292         module is also used and while not building the reloc-wrapper.
6293
6294 2008-04-13  Bruno Haible  <bruno@clisp.org>
6295
6296         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
6297
6298 2008-04-13  Bruno Haible  <bruno@clisp.org>
6299
6300         Fix AIX compilation failure introduced on 2008-04-02.
6301         * tests/test-frexp.c (exp): Undefine before redefining.
6302         * tests/test-frexpl.c (exp): Likewise.
6303
6304 2008-04-13  Bruno Haible  <bruno@clisp.org>
6305
6306         Work around a HP-UX stdio bug.
6307         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
6308         * tests/test-ftello.c (main): Likewise.
6309         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
6310         * doc/posix-functions/ftello.texi: Likewise.
6311
6312 2008-04-13  Bruno Haible  <bruno@clisp.org>
6313
6314         Make test-signbit pass on HP-UX/hppa.
6315         * tests/test-signbit.c (minus_zerol): New variable.
6316         (test_signbitl): Use it.
6317
6318 2008-04-13  Bruno Haible  <bruno@clisp.org>
6319
6320         Make truncl work on OSF/1 4.0.
6321         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
6322         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
6323         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
6324         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
6325         HAVE_DECL_TRUNCL.
6326         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
6327         HAVE_DECL_TRUNCL.
6328         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
6329
6330 2008-04-13  Bruno Haible  <bruno@clisp.org>
6331
6332         * lib/unictype.h: Remove trailing comma from enumeration definitions.
6333
6334 2008-04-13  Bruno Haible  <bruno@clisp.org>
6335
6336         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
6337         expression, so as to avoid HP-UX 11 cc compiler bug.
6338
6339 2008-04-13  Bruno Haible  <bruno@clisp.org>
6340
6341         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
6342
6343 2008-04-13  Bruno Haible  <bruno@clisp.org>
6344
6345         * lib/git-merge-changelog.c: Remove empty declaration outside of
6346         functions.
6347
6348 2008-04-13  Bruno Haible  <bruno@clisp.org>
6349
6350         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
6351
6352 2008-04-13  Bruno Haible  <bruno@clisp.org>
6353
6354         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
6355         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
6356         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
6357         also if it exists but lacks definitions of the SHUT_* macros.
6358         * modules/sys_socket (Description): Update.
6359         Reported by Elbert Pol <e.pol@chello.nl>.
6360
6361 2008-04-13  Bruno Haible  <bruno@clisp.org>
6362
6363         * lib/localcharset.c (OS2): Don't redefine if already defined.
6364         Reported by Elbert Pol <e.pol@chello.nl>.
6365
6366 2008-04-13  Bruno Haible  <bruno@clisp.org>
6367
6368         * lib/binary-io.h [__EMX__]: Include <io.h>.
6369         Reported by Elbert Pol <e.pol@chello.nl>.
6370
6371 2008-04-12  Bruno Haible  <bruno@clisp.org>
6372
6373         * lib/fpucw.h: Enable the definitions also for x86_64.
6374         Needed for NetBSD/x86_64.
6375         Reported by Thomas Klausner <tk@giga.or.at>.
6376
6377 2008-04-12  Bruno Haible  <bruno@clisp.org>
6378
6379         * tests/test-strtod.c: Include isnand.h.
6380         (main): Use isnand instead of isnan.
6381         Reported by Jim Meyering.
6382
6383 2008-04-12  Bruno Haible  <bruno@clisp.org>
6384
6385         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
6386         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
6387
6388 2008-04-12  Jim Meyering  <meyering@redhat.com>
6389
6390         * m4/math_h.m4 (gl_MATH_H): Fix typos.
6391
6392 2008-04-12  Bruno Haible  <bruno@clisp.org>
6393
6394         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
6395         Reported by Elbert Pol <e.pol@chello.nl>.
6396
6397 2008-04-12  Eric Blake  <ebb9@byu.net>
6398
6399         Work around Solaris 10 math.h bug.
6400         * m4/math_h.m4 (gl_MATH_H): Check for bug.
6401         (gl_MATH_H_DEFAULTS): Set up default.
6402         * modules/math (Makefile.am): Replace new indicators.
6403         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
6404         * tests/test-math.c (main): Test this.
6405         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
6406         * doc/posix-headers/math.texi (math.h): Mention bug.
6407         Reported by Nelson H. F. Beebe and Jim Meyering.
6408
6409 2008-04-11  Bruno Haible  <bruno@clisp.org>
6410
6411         Adapt to future versions of Apple GCC.
6412         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
6413         Reported by Peter O'Gorman <peter@pogma.com>.
6414
6415 2008-04-11  Bruno Haible  <bruno@clisp.org>
6416
6417         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
6418
6419 2008-04-11  Bruno Haible  <bruno@clisp.org>
6420
6421         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
6422
6423         * modules/getaddrinfo-tests (Makefile.am): Define
6424         test_getaddrinfo_LDADD.
6425
6426 2008-04-11  Bruno Haible  <bruno@clisp.org>
6427
6428         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
6429         (init): Fix syntax error.
6430         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
6431         is declared.
6432
6433 2008-04-11  Bruno Haible  <bruno@clisp.org>
6434
6435         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
6436         * modules/glob (Depends-on): Add stdbool.
6437
6438 2008-04-11  Bruno Haible  <bruno@clisp.org>
6439
6440         * lib/trim.c: Include <string.h>.
6441
6442 2008-04-11  Eric Blake  <ebb9@byu.net>
6443
6444         Avoid compile failure on OS/2.
6445         * lib/regex_internal.h (internal_function): Disable optimization
6446         on OS/2 (__EMX__), where it caused compiler error.
6447         Reported by Elbert Pol.
6448
6449 2008-04-11  Bruno Haible  <bruno@clisp.org>
6450
6451         Flush the standard error stream before aborting. Needed on mingw.
6452         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
6453         * tests/test-array_list.c (ASSERT): Likewise.
6454         * tests/test-array_oset.c (ASSERT): Likewise.
6455         * tests/test-avltree_list.c (ASSERT): Likewise.
6456         * tests/test-avltree_oset.c (ASSERT): Likewise.
6457         * tests/test-avltreehash_list.c (ASSERT): Likewise.
6458         * tests/test-binary-io.c (ASSERT): Likewise.
6459         * tests/test-byteswap.c (ASSERT): Likewise.
6460         * tests/test-c-ctype.c (ASSERT): Likewise.
6461         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
6462         * tests/test-c-strcasestr.c (ASSERT): Likewise.
6463         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
6464         * tests/test-c-strstr.c (ASSERT): Likewise.
6465         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
6466         * tests/test-canonicalize.c (ASSERT): Likewise.
6467         * tests/test-carray_list.c (ASSERT): Likewise.
6468         * tests/test-ceilf1.c (ASSERT): Likewise.
6469         * tests/test-ceilf2.c (ASSERT): Likewise.
6470         * tests/test-ceill.c (ASSERT): Likewise.
6471         * tests/test-count-one-bits.c (ASSERT): Likewise.
6472         * tests/test-fbufmode.c (ASSERT): Likewise.
6473         * tests/test-fflush2.c (ASSERT): Likewise.
6474         * tests/test-floorf1.c (ASSERT): Likewise.
6475         * tests/test-floorf2.c (ASSERT): Likewise.
6476         * tests/test-floorl.c (ASSERT): Likewise.
6477         * tests/test-fopen.c (ASSERT): Likewise.
6478         * tests/test-fpending.c (ASSERT): Likewise.
6479         * tests/test-fprintf-posix.c (ASSERT): Likewise.
6480         * tests/test-fpurge.c (ASSERT): Likewise.
6481         * tests/test-freadable.c (ASSERT): Likewise.
6482         * tests/test-freadahead.c (ASSERT): Likewise.
6483         * tests/test-freading.c (ASSERT): Likewise.
6484         * tests/test-freadptr.c (ASSERT): Likewise.
6485         * tests/test-freadptr2.c (ASSERT): Likewise.
6486         * tests/test-freadseek.c (ASSERT): Likewise.
6487         * tests/test-freopen.c (ASSERT): Likewise.
6488         * tests/test-frexp.c (ASSERT): Likewise.
6489         * tests/test-frexpl.c (ASSERT): Likewise.
6490         * tests/test-fseek.c (ASSERT): Likewise.
6491         * tests/test-fseeko.c (ASSERT): Likewise.
6492         * tests/test-fstrcmp.c (ASSERT): Likewise.
6493         * tests/test-ftell.c (ASSERT): Likewise.
6494         * tests/test-ftello.c (ASSERT): Likewise.
6495         * tests/test-func.c (ASSERT): Likewise.
6496         * tests/test-fwritable.c (ASSERT): Likewise.
6497         * tests/test-fwriting.c (ASSERT): Likewise.
6498         * tests/test-getdelim.c (ASSERT): Likewise.
6499         * tests/test-getline.c (ASSERT): Likewise.
6500         * tests/test-i-ring.c (ASSERT): Likewise.
6501         * tests/test-iconv-utf.c (ASSERT): Likewise.
6502         * tests/test-iconv.c (ASSERT): Likewise.
6503         * tests/test-isfinite.c (ASSERT): Likewise.
6504         * tests/test-isnand.c (ASSERT): Likewise.
6505         * tests/test-isnanf.c (ASSERT): Likewise.
6506         * tests/test-isnanl.h (ASSERT): Likewise.
6507         * tests/test-ldexpl.c (ASSERT): Likewise.
6508         * tests/test-linked_list.c (ASSERT): Likewise.
6509         * tests/test-linkedhash_list.c (ASSERT): Likewise.
6510         * tests/test-localename.c (ASSERT): Likewise.
6511         * tests/test-lseek.c (ASSERT): Likewise.
6512         * tests/test-mbscasecmp.c (ASSERT): Likewise.
6513         * tests/test-mbscasestr1.c (ASSERT): Likewise.
6514         * tests/test-mbscasestr2.c (ASSERT): Likewise.
6515         * tests/test-mbscasestr3.c (ASSERT): Likewise.
6516         * tests/test-mbscasestr4.c (ASSERT): Likewise.
6517         * tests/test-mbschr.c (ASSERT): Likewise.
6518         * tests/test-mbscspn.c (ASSERT): Likewise.
6519         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
6520         * tests/test-mbspbrk.c (ASSERT): Likewise.
6521         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
6522         * tests/test-mbsrchr.c (ASSERT): Likewise.
6523         * tests/test-mbsspn.c (ASSERT): Likewise.
6524         * tests/test-mbsstr1.c (ASSERT): Likewise.
6525         * tests/test-mbsstr2.c (ASSERT): Likewise.
6526         * tests/test-mbsstr3.c (ASSERT): Likewise.
6527         * tests/test-memchr2.c (ASSERT): Likewise.
6528         * tests/test-memmem.c (ASSERT): Likewise.
6529         * tests/test-open.c (ASSERT): Likewise.
6530         * tests/test-printf-frexp.c (ASSERT): Likewise.
6531         * tests/test-printf-frexpl.c (ASSERT): Likewise.
6532         * tests/test-printf-posix.c (ASSERT): Likewise.
6533         * tests/test-quotearg.c (ASSERT): Likewise.
6534         * tests/test-rbtree_list.c (ASSERT): Likewise.
6535         * tests/test-rbtree_oset.c (ASSERT): Likewise.
6536         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
6537         * tests/test-round1.c (ASSERT): Likewise.
6538         * tests/test-roundf1.c (ASSERT): Likewise.
6539         * tests/test-roundl.c (ASSERT): Likewise.
6540         * tests/test-signbit.c (ASSERT): Likewise.
6541         * tests/test-sleep.c (ASSERT): Likewise.
6542         * tests/test-snprintf-posix.c (ASSERT): Likewise.
6543         * tests/test-snprintf.c (ASSERT): Likewise.
6544         * tests/test-sprintf-posix.c (ASSERT): Likewise.
6545         * tests/test-stat-time.c (ASSERT): Likewise.
6546         * tests/test-strcasestr.c (ASSERT): Likewise.
6547         * tests/test-strerror.c (ASSERT): Likewise.
6548         * tests/test-striconv.c (ASSERT): Likewise.
6549         * tests/test-striconveh.c (ASSERT): Likewise.
6550         * tests/test-striconveha.c (ASSERT): Likewise.
6551         * tests/test-strsignal.c (ASSERT): Likewise.
6552         * tests/test-strstr.c (ASSERT): Likewise.
6553         * tests/test-strtod.c (ASSERT): Likewise.
6554         * tests/test-trunc1.c (ASSERT): Likewise.
6555         * tests/test-trunc2.c (ASSERT): Likewise.
6556         * tests/test-truncf1.c (ASSERT): Likewise.
6557         * tests/test-truncf2.c (ASSERT): Likewise.
6558         * tests/test-truncl.c (ASSERT): Likewise.
6559         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
6560         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
6561         * tests/test-vasnprintf.c (ASSERT): Likewise.
6562         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
6563         * tests/test-vasprintf.c (ASSERT): Likewise.
6564         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
6565         * tests/test-vprintf-posix.c (ASSERT): Likewise.
6566         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
6567         * tests/test-vsnprintf.c (ASSERT): Likewise.
6568         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
6569         * tests/test-wcwidth.c (ASSERT): Likewise.
6570         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
6571         * tests/test-xprintf-posix.c (ASSERT): Likewise.
6572         * tests/test-xvasprintf.c (ASSERT): Likewise.
6573         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
6574         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
6575         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
6576         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
6577         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
6578         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
6579         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
6580         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
6581         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
6582         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
6583         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
6584         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
6585         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
6586         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
6587         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
6588         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
6589         * tests/unictype/test-block_list.c (ASSERT): Likewise.
6590         * tests/unictype/test-block_of.c (ASSERT): Likewise.
6591         * tests/unictype/test-block_test.c (ASSERT): Likewise.
6592         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
6593         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
6594         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
6595         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
6596         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
6597         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
6598         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
6599         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
6600         * tests/unictype/test-combining.c (ASSERT): Likewise.
6601         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
6602         * tests/unictype/test-digit.c (ASSERT): Likewise.
6603         * tests/unictype/test-mirror.c (ASSERT): Likewise.
6604         * tests/unictype/test-numeric.c (ASSERT): Likewise.
6605         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
6606         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
6607         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
6608         * tests/unictype/test-scripts.c (ASSERT): Likewise.
6609         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
6610         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
6611         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
6612         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
6613         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
6614         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
6615         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
6616         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
6617         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
6618         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
6619         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
6620         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
6621         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
6622         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
6623         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
6624         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
6625         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
6626         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
6627         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
6628         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
6629         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
6630         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
6631         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
6632         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
6633         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
6634         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
6635         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
6636         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
6637         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
6638         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
6639         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
6640         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
6641         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
6642         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
6643         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
6644         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
6645         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
6646         Reported by Eric Blake.
6647
6648 2008-04-11  Bruno Haible  <bruno@clisp.org>
6649
6650         * lib/wchar.in.h: Tweak comment.
6651
6652 2008-04-11  Bruno Haible  <bruno@clisp.org>
6653
6654         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
6655         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
6656         gl_COMMON.
6657         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
6658
6659 2008-04-11  Bruno Haible  <bruno@clisp.org>
6660
6661         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
6662
6663 2008-04-11  Simon Josefsson  <simon@josefsson.org>
6664
6665         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
6666         of attempting to use non-existing /dev/*random.  Based on patch
6667         from Adam Strzelecki <ono@java.pl> in
6668         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
6669
6670 2008-04-08  Bruno Haible  <bruno@clisp.org>
6671
6672         Add tentative support for emx+gcc.
6673         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
6674         * lib/fpurge.c (fpurge): Likewise.
6675         * lib/freadable.c (freadable): Likewise.
6676         * lib/freadahead.c (freadahead): Likewise.
6677         * lib/freading.c (freading): Likewise.
6678         * lib/freadptr.c (freadptr): Likewise.
6679         * lib/freadseek.c (freadptrinc): Likewise.
6680         * lib/fseeko.c (rpl_fseeko): Likewise.
6681         * lib/fseterr.c (fseterr): Likewise.
6682         * lib/fwritable.c (fwritable): Likewise.
6683         * lib/fwriting.c (fwriting): Likewise.
6684         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
6685
6686 2008-04-09  Eric Blake  <ebb9@byu.net>
6687
6688         Avoid some autoconf warnings.
6689         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
6690         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
6691         * m4/afs.m4 (gl_AFS): Likewise.
6692         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
6693         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
6694         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
6695         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
6696         (gl_INTEGER_TYPE_SUFFIX): Likewise.
6697         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
6698         (AC_CHECK_DECLS_ONCE): Likewise.
6699         Rename file...
6700         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
6701         gnulib-tool requires autoconf 2.59 or better.
6702         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
6703
6704 2008-04-08  Eric Blake  <ebb9@byu.net>
6705
6706         Use 'git describe --match' if present (added in git 1.5.5).
6707         * build-aux/git-version-gen: Limit result to tags that match 'v*'
6708         if possible.
6709
6710 2008-04-08  Bruno Haible  <bruno@clisp.org>
6711
6712         Add tentative support for OpenServer.
6713         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
6714         _ptr, _cnt.
6715         * lib/fpurge.c (fpurge): Likewise.
6716         * lib/freadable.c (freadable): Likewise.
6717         * lib/freadahead.c (freadahead): Likewise.
6718         * lib/freading.c (freading): Likewise.
6719         * lib/freadptr.c (freadptr): Likewise.
6720         * lib/freadseek.c (freadptrinc): Likewise.
6721         * lib/fseeko.c (rpl_fseeko): Likewise.
6722         * lib/fseterr.c (fseterr): Likewise.
6723         * lib/fwritable.c (fwritable): Likewise.
6724         * lib/fwriting.c (fwriting): Likewise.
6725         Reported by Roger Cornelius <rac@tenzing.org> and
6726         Brian K. White <brian@aljex.com>.
6727
6728 2008-04-06  Jim Meyering  <meyering@redhat.com>
6729
6730         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
6731
6732 2008-04-06  Bruno Haible  <bruno@clisp.org>
6733
6734         Avoid possible error with non-ASCII bytes in UTF-8 locales.
6735         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
6736         * tests/test-printf-posix.sh: Likewise.
6737         * tests/test-vfprintf-posix.sh: Likewise.
6738         * tests/test-vprintf-posix.sh: Likewise.
6739         * tests/test-xprintf-posix.sh: Likewise.
6740
6741 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6742
6743         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
6744         hide error from 'ls', needed on OS/2.
6745         Report by Elbert Pol <elbert.pol@gmail.com>.
6746
6747 2008-04-04  Eric Blake  <ebb9@byu.net>
6748
6749         Make test-fseeko.c failures meaningful.
6750         * tests/test-fseeko.c: Print line number on failure.
6751         * tests/test-fseek.c: Likewise.
6752         Reported by Nelson H. F. Beebe.
6753
6754         Improve strtod bug detection check.
6755         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
6756         required for Solaris 10.
6757         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
6758
6759 2008-04-04  Bruno Haible  <bruno@clisp.org>
6760
6761         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
6762         by m4/setenv.m4.
6763
6764 2008-04-03  Eric Blake  <ebb9@byu.net>
6765
6766         Ensure sane .version contents.
6767         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
6768         version string.
6769         * build-aux/git-version-gen: Improve documentation.
6770
6771         Make GNU make output nicer.
6772         * top/GNUmakefile [!_have-Makefile]: Add dependency on
6773         MAKECMDGOALS to enforce message for all command line targets.  Set
6774         srcdir for use in maint.mk.
6775
6776         Another maintainer tweak.
6777         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
6778         a target that regenerates version.
6779
6780 2008-04-03  Jim Meyering  <meyering@redhat.com>
6781
6782         vc-list-files: don't cause coreutils "make po-check" failure
6783         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
6784
6785 2008-04-03  Eric Blake  <ebb9@byu.net>
6786
6787         Allow VPATH usage of vc-list-files.
6788         * build-aux/vc-list-files (scriptversion): Add timestamp.
6789         (options): Add --help, --version, -C.
6790         (CVS): Support installed cvsu.
6791
6792 2008-04-02  Bruno Haible  <bruno@clisp.org>
6793
6794         Avoid some "statement with no effect" warnings from gcc.
6795         * tests/test-wctype.c (main): Explicitly ignore unused values.
6796         Reported by Jim Meyering.
6797
6798 2008-04-02  Jim Meyering  <meyering@redhat.com>
6799
6800         Avoid some warnings from "gcc -Wshadow".
6801         * tests/test-frexp.c (exp): Define to a different identifier.
6802         * tests/test-frexpl.c (exp): Likewise.
6803
6804 2008-04-03  Jim Meyering  <meyering@redhat.com>
6805
6806         bootstrap: remove dangling *.[ch] symlinks from lib
6807         * build-aux/bootstrap [dangling symlink removal]: Move find's
6808         -depth option to precede all others, to avoid a warning.
6809         Remove *.[ch] files too, and from "$source_base" (usually lib/).
6810
6811 2008-04-02  Bruno Haible  <bruno@clisp.org>
6812
6813         Avoid some warnings from "gcc -Wshadow".
6814         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
6815         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
6816         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
6817         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
6818         Reported by Jim Meyering.
6819
6820 2008-04-01  Bruno Haible  <bruno@clisp.org>
6821
6822         Fix test to work on IRIX 6.5 with cc.
6823         * tests/test-math.c (numeric_equal): New function.
6824         (main): Use it.
6825
6826 2008-04-01  Bruno Haible  <bruno@clisp.org>
6827
6828         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
6829
6830 2008-04-01  Bruno Haible  <bruno@clisp.org>
6831
6832         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
6833         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
6834         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
6835         (Depends-on): Remove math.
6836
6837         * tests/test-vasprintf-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/vasprintf-posix-tests (Files): Add tests/nan.h.
6840         (Depends-on): Remove math.
6841
6842         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
6843         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
6844         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
6845         (Depends-on): Remove math.
6846         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
6847         (Depends-on): Remove math.
6848
6849         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
6850         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
6851         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
6852         (Depends-on): Remove math.
6853         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
6854         (Depends-on): Remove math.
6855
6856         * tests/test-round1.c: Include nan.h.
6857         (main): Use NaNd instead of NAN.
6858         * modules/round-tests (Files): Add tests/nan.h.
6859
6860         * tests/test-trunc1.c: Include nan.h.
6861         (main): Use NaNd instead of NAN.
6862         * modules/trunc-tests (Files): Add tests/nan.h.
6863
6864         * tests/test-roundf1.c: Include nan.h.
6865         (main): Use NaNf instead of NAN.
6866         * modules/roundf-tests (Files): Add tests/nan.h.
6867
6868         * tests/test-truncf1.c: Include nan.h.
6869         (main): Use NaNf instead of NAN.
6870         * modules/truncf-tests (Files): Add tests/nan.h.
6871
6872         * tests/test-ceilf1.c: Include nan.h.
6873         (main): Use NaNf instead of NAN.
6874         * modules/ceilf-tests (Files): Add tests/nan.h.
6875
6876         * tests/test-floorf1.c: Include nan.h.
6877         (main): Use NaNf instead of NAN.
6878         * modules/floorf-tests (Files): Add tests/nan.h.
6879
6880         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
6881         (main): Use NaNf instead of NAN.
6882         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
6883
6884         * tests/test-isnand.c: Include nan.h instead of <math.h>.
6885         (main): Use NaNd instead of NAN.
6886         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
6887
6888         * tests/test-frexp.c: Include nan.h.
6889         (main): Use NaNd instead of NAN.
6890         * modules/frexp-tests (Files): Add tests/nan.h.
6891
6892         * lib/isnan.c: Don't include <math.h>.
6893         (FUNC): Don't use NAN macro.
6894         * modules/isnand-nolibm (Depends-on): Remove math.
6895         * modules/isnanf-nolibm (Depends-on): Remove math.
6896         * modules/isnanl (Depends-on): Remove math.
6897         * modules/isnanl-nolibm (Depends-on): Remove math.
6898
6899         * tests/nan.h: New file.
6900
6901 2008-04-01  Eric Blake  <ebb9@byu.net>
6902
6903         Fix typos.
6904         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
6905         values to be the right type.
6906
6907         For now, cater to gnulib strtod inaccuracies.
6908         * tests/test-strtod.c (main): Allow 1-ulp error on expected
6909         fractional results.  While not as nice from a QoI perspective, it
6910         is a quicker patch than correctly implementing decimal to binary
6911         rounding.
6912
6913 2008-03-31  Eric Blake  <ebb9@byu.net>
6914
6915         Guarantee a definition of NAN.
6916         * lib/math.in.h (NAN): Define if missing.
6917         * tests/test-math.c (main): Test it.
6918         * doc/posix-headers/math.texi (math.h): Document this.
6919         * lib/isnan.c (rpl_isnand): Use it.
6920         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
6921         * tests/test-floorf1.c (NaN): Likewise.
6922         * tests/test-frexp.c (NaN): Likewise.
6923         * tests/test-isnand.c (NaN): Likewise.
6924         * tests/test-isnanf.c (NaN): Likewise.
6925         * tests/test-round1.c (NaN): Likewise.
6926         * tests/test-roundf1.c (NaN): Likewise.
6927         * tests/test-snprintf-posix.h (NaN): Likewise.
6928         * tests/test-sprintf-posix.h (NaN): Likewise.
6929         * tests/test-trunc1.c (NaN): Likewise.
6930         * tests/test-truncf1.c (NaN): Likewise.
6931         * tests/test-vasnprintf-posix.c (NaN): Likewise.
6932         * tests/test-vasprintf-posix.c (NaN): Likewise.
6933         * modules/isnand-nolibm (Depends-on): Add math.
6934         * modules/isnanf-nolibm (Depends-on): Likewise.
6935         * modules/isnanl (Depends-on): Likewise.
6936         * modules/isnanl-nolibm (Depends-on): Likewise.
6937         * modules/snprintf-posix-tests (Depends-on): Likewise.
6938         * modules/sprintf-posix-tests (Depends-on): Likewise.
6939         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
6940         * modules/vsprintf-posix-tests (Depends-on): Likewise.
6941         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
6942         * modules/vasprintf-posix-tests (Depends-on): Likewise.
6943
6944 2008-03-31  Bruno Haible  <bruno@clisp.org>
6945
6946         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
6947         * doc/posix-functions/strtod.texi: Likewise.
6948
6949 2008-03-31  Bruno Haible  <bruno@clisp.org>
6950
6951         * tests/test-strtod.c (main): Don't use C99 syntax.
6952
6953 2008-03-31  Bruno Haible  <bruno@clisp.org>
6954
6955         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
6956         Reported by Eric Blake.
6957
6958 2008-03-31  Jim Meyering  <meyering@redhat.com>
6959
6960         Don't compare actual signbit return values.
6961         * tests/test-strtod.c (main): Rather, compare only their
6962         zero/non-zero nature.
6963
6964 2008-03-31  Eric Blake  <ebb9@byu.net>
6965
6966         More strtod documentation.
6967         * doc/posix-functions/strtod.texi (strtod): Interpret more test
6968         failures as distinct bugs.
6969
6970 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
6971
6972         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
6973         Problem reported by Erik Benada in
6974         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
6975
6976 2008-03-30  Bruno Haible  <bruno@clisp.org>
6977
6978         * tests/test-strtod.c: Add comments about which assertion fails on which
6979         platform.
6980         * doc/posix-functions/strtod.texi: Add info about many more platforms.
6981
6982 2008-03-30  Eric Blake  <ebb9@byu.net>
6983
6984         Test signbit behavior on zeros.
6985         * tests/test-signbit.c (test_signbitf): Add tests for zero.
6986         (test_signbitd, test_signbitl): Likewise.
6987
6988         More strtod touchups.
6989         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
6990         sign of negative underflow, for now.  Use .5, not .1.
6991         * doc/posix-functions/strtod.texi (strtod): Mention these
6992         limitations.
6993         Reported by Jim Meyering.
6994
6995 2008-03-30  Bruno Haible  <bruno@clisp.org>
6996
6997         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
6998         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
6999
7000 2008-03-30  Bruno Haible  <bruno@clisp.org>
7001
7002         Avoid failure when attempting to return empty iconv results on some
7003         platforms.
7004         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
7005         allocation, don't report ENOMEM when the resulting string is empty.
7006
7007 2008-03-30  Bruno Haible  <bruno@clisp.org>
7008
7009         Fix buffer overrun.
7010         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
7011         Don't consider the width for tmp_length. Check count against tmp_length
7012         before doing the padding. Ensure enough allocation during padding.
7013
7014 2008-03-30  Eric Blake  <ebb9@byu.net>
7015
7016         strtod touchups.
7017         * lib/strtod.c (strtod): Avoid compiler warnings.
7018         Reported by Jim Meyering.
7019
7020 2008-03-30  Bruno Haible  <bruno@clisp.org>
7021
7022         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
7023         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
7024         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
7025         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
7026         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
7027         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
7028         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
7029         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
7030
7031         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
7032         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
7033         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
7034         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
7035         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
7036         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
7037         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
7038         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
7039
7040         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
7041         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
7042         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
7043         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
7044         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
7045         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
7046         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
7047         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
7048
7049         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
7050         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
7051
7052         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
7053         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
7054
7055         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
7056         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
7057
7058         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
7059         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
7060         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
7061
7062         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
7063         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
7064         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
7065
7066         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
7067         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
7068         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
7069
7070         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
7071         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
7072         * modules/vasprintf (Depends-on): Add EOVERFLOW.
7073
7074         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
7075         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
7076         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
7077         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
7078         (Depends-on): Add EOVERFLOW.
7079         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
7080         (Depends-on): Add EOVERFLOW.
7081         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
7082         (Depends-on): Add EOVERFLOW.
7083         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
7084         (Depends-on): Add EOVERFLOW.
7085         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
7086         (Depends-on): Add EOVERFLOW.
7087         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
7088         (Depends-on): Add EOVERFLOW.
7089         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
7090         (Depends-on): Add EOVERFLOW.
7091         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
7092         (Depends-on): Add EOVERFLOW.
7093
7094         * lib/sprintf.c (EOVERFLOW): Remove fallback.
7095         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
7096         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
7097
7098         * lib/snprintf.c (EOVERFLOW): Remove fallback.
7099         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
7100         * modules/snprintf (Depends-on): Add EOVERFLOW.
7101
7102         * lib/poll.c (EOVERFLOW): Remove fallback.
7103         * modules/poll (Depends-on): Add EOVERFLOW.
7104
7105         * lib/getugroups.c (EOVERFLOW): Remove fallback.
7106         * modules/getugroups (Depends-on): Add EOVERFLOW.
7107
7108         * lib/getdelim.c (EOVERFLOW): Remove fallback.
7109         * modules/getdelim (Depends-on): Add EOVERFLOW.
7110
7111         * lib/ftell.c (EOVERFLOW): Remove fallback.
7112         * modules/ftell (Depends-on): Add EOVERFLOW.
7113
7114         * lib/fprintf.c (EOVERFLOW): Remove fallback.
7115         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
7116         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
7117
7118         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
7119
7120         * modules/EOVERFLOW-tests: New file.
7121         * tests/test-EOVERFLOW.c: New file.
7122
7123         * modules/EOVERFLOW: New file.
7124         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
7125
7126 2008-03-30  Bruno Haible  <bruno@clisp.org>
7127
7128         Fix bug introduced on 2007-06-10.
7129         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
7130         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
7131
7132 2008-03-30  Bruno Haible  <bruno@clisp.org>
7133
7134         Improve freadseek's efficiency after ungetc.
7135         * lib/freadseek.c: Include freadahead.h.
7136         (freadptrinc): New function, extracted from freadseek.
7137         (freadseek): Use it in a loop. Use freadahead to determine the number
7138         of loop iterations.
7139         * modules/freadseek (Depends-on): Add freadahead.
7140         (configure.ac): Require AC_C_INLINE.
7141
7142 2008-03-30  Bruno Haible  <bruno@clisp.org>
7143
7144         * lib/freadseek.c (freadseek): Don't ignore the return value of
7145         freadptr.
7146
7147 2008-03-29  Eric Blake  <ebb9@byu.net>
7148
7149         Add hex float support.
7150         * modules/strtod (Depends-on): Add c-ctype.
7151         (Link): Mention POW_LIB.
7152         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
7153         whitespace between 'e' and exponent.
7154         * tests/test-strtod.c (main): Enable hex float tests.
7155         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
7156         now provides.
7157
7158         Document various strtod bugs, with some fixes.
7159         * doc/posix-functions/strtod.texi (strtod): Document bugs with
7160         "-0x", "inf", "nan", and hex constants.
7161         * doc/posix-functions/atof.texi (atof): Likewise.
7162         * modules/stdlib (Makefile.am): Support strtod.
7163         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
7164         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
7165         detect additional strtod bugs.
7166         * lib/stdlib.in.h (rpl_strtod): Add declarations.
7167         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
7168         bool where appropriate.  Parse 'inf' and 'nan'.
7169         * tests/test-strtod.c: New file.
7170         * modules/strtod (Depends-on): Add stdbool, stdlib.
7171         (configure.ac): Turn on module indicator.
7172         * modules/strtod-tests: New module.
7173
7174 2008-03-29  Eric Blake  <ebb9@byu.net>
7175
7176         Fix ftell on mingw.
7177         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
7178         * modules/ftell-tests (Depends-on): Add binary-io.
7179         * modules/ftello-tests (Depends-on): Likewise.
7180         * tests/test-ftell.c (main): Enhance test to cover behavior after
7181         ungetc.  Enforce binary mode.
7182         * tests/test-ftello.c (main): Likewise.
7183
7184         Pass test-freadseek on cygwin.
7185         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
7186         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
7187         ungetc buffer.
7188
7189         * tests/test-fflush2.c (main): Fix typo.
7190
7191 2008-03-29  Bruno Haible  <bruno@clisp.org>
7192
7193         * tests/test-fflush2.c (main): Temporarily disable the contents of
7194         this test.
7195         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
7196         Reported by Eric Blake.
7197
7198 2008-03-28  Simon Josefsson  <simon@josefsson.org>
7199
7200         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
7201         (GC_SHA224_DIGEST_SIZE): Add.
7202
7203         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
7204         (gc_hash_digest_length): Likewise.
7205         (gc_hash_buffer): Likewise.
7206
7207 2008-03-25  Bruno Haible  <bruno@clisp.org>
7208
7209         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
7210         detail which gettext release to use.
7211         Reported by Simon Josefsson.
7212
7213 2008-03-26  Jim Meyering  <meyering@redhat.com>
7214
7215         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
7216         * modules/gnumakefile (clean-GNUmakefile): Also, use
7217         test ... && ... || : syntax rather than if-then ... fi.
7218
7219         gnumakefile: Don't double-quote-expand $(VPATH) value.
7220         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
7221
7222 2008-03-24  Eric Blake  <ebb9@byu.net>
7223
7224         Alter GNUmakefile to install into top directory.
7225         * modules/maintainer-makefile: Split, and add dependency...
7226         * modules/gnumakefile: to this new module.
7227         * build-aux/GNUmakefile: Move...
7228         * top/GNUmakefile: ...here.
7229         * build-aux/maint.mk: Move...
7230         * top/maint.mk: ...here.
7231         * MODULES.html.sh (Support for maintaining...): Document new
7232         module.
7233
7234 2008-03-23  Bruno Haible  <bruno@clisp.org>
7235
7236         * gnulib-tool: New options --vc-files, --no-vc-files.
7237         (func_usage): Document them.
7238         (vc_files): New variable.
7239         (func_import): Consider vc_files.
7240         (func_create_testdir): Set vc_files to empty.
7241         Suggested by Jim Meyering and Karl Berry.
7242
7243 2008-03-23  Bruno Haible  <bruno@clisp.org>
7244
7245         Fix regex compilation error on HP-UX 11.
7246         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
7247         * modules/regex (Files): Add m4/mbstate_t.m4.
7248         Reported by Ton Voon <ton.voon@altinity.com>.
7249
7250 2008-03-23  Bruno Haible  <bruno@clisp.org>
7251
7252         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
7253
7254 2008-03-23  Eric Blake  <ebb9@byu.net>
7255             Bruno Haible  <bruno@clisp.org>
7256
7257         Install files from top/ in the destination directory.
7258         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
7259         augmentation also for the files from top/.
7260         (func_import, func_create_testdir): Rewrite file names:
7261         top/filename -> filename.
7262
7263 2008-03-23  Bruno Haible  <bruno@clisp.org>
7264
7265         Tweak "gnulib --version" output.
7266         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
7267
7268 2008-03-23  Bruno Haible  <bruno@clisp.org>
7269
7270         Tweak "gnulib --version" output.
7271         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
7272         rather than contents of ChangeLog, when possible.
7273
7274 2008-03-21  Eric Blake  <ebb9@byu.net>
7275
7276         More --version tweaks.
7277         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
7278         date of last ChangeLog entry.
7279
7280 2008-03-21  Jim Meyering  <meyering@redhat.com>
7281
7282         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
7283
7284 2008-03-20  Eric Blake  <ebb9@byu.net>
7285
7286         VPATH fix.
7287         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
7288
7289 2008-03-20  Simon Josefsson  <simon@josefsson.org>
7290
7291         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
7292         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
7293
7294 2008-03-20  Eric Blake  <ebb9@byu.net>
7295
7296         Sync GNUmakefile with coreutils.
7297         * build-aux/GNUmakefile (have-Makefile): Rename...
7298         (_have-Makefile): ...to this, for namespace consideration.
7299         (GNUmakefile.cfg): Include, if present.
7300         (_autoreconf): Define a default.
7301         (_is-dist-target): New rule for rebuilds to pick up intra-release
7302         version.
7303         (maint-cfg.mk): Rename...
7304         (cfg.mk): ...to this.
7305
7306 2008-03-18  Jim Meyering  <meyering@redhat.com>
7307
7308         New script and module: mktempd
7309         * MODULES.html.sh (maint+release support): Add mktempd.
7310         * build-aux/mktempd: New file.
7311         * modules/mktempd: New file.
7312
7313 2008-03-15  Jim Meyering  <meyering@redhat.com>
7314
7315         Undo last change.
7316         * lib/sha1.c, lib/md5.c: 63 != ~63.
7317         Reported by Andreas Schwab.
7318
7319         sha1.c, md5.c: Hoist a redundant expression.
7320         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
7321         "ctx->buflen" only once, before calling *_process_block.
7322         * lib/md5.c (md5_process_bytes): Likewise.
7323
7324 2008-03-14  Eric Blake  <ebb9@byu.net>
7325
7326         Bump copyright year in files generated by gnulib-tool.
7327         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
7328         gnulib-tool, rather than hard-coding it.
7329
7330         Fix 'gnulib-tool --version' output to work with git.
7331         * gnulib-tool (func_gnulib_dir): New function, extracted from...
7332         (startup): ...here.
7333         (func_version): Use it to invoke git-version-gen, rather than
7334         relying on CVS keyword expansion.  Modernize wording.
7335         (cvsdatestamp, last_checkin_date, version): Kill unused
7336         variables.
7337
7338 2008-03-12  Jim Meyering  <meyering@redhat.com>
7339
7340         Recognize optional cast of the argument to free.
7341         * build-aux/useless-if-before-free: Update regexps.
7342
7343         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
7344
7345 2008-03-11  Bruno Haible  <bruno@clisp.org>
7346
7347         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
7348         by a single package.
7349         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
7350         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
7351         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
7352         Reported by Sam Steingold <sds@gnu.org>.
7353
7354 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
7355
7356         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
7357         repositories.
7358
7359 2008-03-11  Bruno Haible  <bruno@clisp.org>
7360
7361         Avoid conflicts between local macro definitions.
7362         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
7363         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
7364
7365 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
7366             Bruno Haible  <bruno@clisp.org>
7367
7368         Make va_copy work with some version of xlc on AIX 5.1.
7369         * lib/stdarg.in.h: New file.
7370         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
7371         On AIX, use a <stdarg.h> file substitute.
7372         * modules/stdarg (Files): Add lib/stdarg.in.h.
7373         (Depends-on): Add include_next.
7374         (Makefile.am): Build a stdarg.h substitute if requested.
7375         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
7376
7377 2008-03-10  Bruno Haible  <bruno@clisp.org>
7378
7379         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
7380         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
7381         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
7382
7383 2008-03-10  Bruno Haible  <bruno@clisp.org>
7384
7385         * modules/stdlib (Depends-on): Add include_next, remove
7386         absolute-header.
7387
7388 2008-03-09  Bruno Haible  <bruno@clisp.org>
7389
7390         * lib/freadahead.h (freadahead): Document more precisely.
7391         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
7392         the sum of both buffer sizes.
7393         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
7394         * NEWS: Document the change.
7395
7396 2008-03-09  Bruno Haible  <bruno@clisp.org>
7397
7398         Extend freadptr to return also the buffer size.
7399         * lib/freadptr.h (freadptr): Add sizep argument.
7400         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
7401         (freadptr): Add sizep argument. Determine buffer size like freadahead
7402         does.
7403         * tests/test-freadptr.c: Don't include freadahead.h.
7404         (main): Adapt for new calling convention of freadptr.
7405         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
7406         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
7407         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
7408         tests/test-freadptr2.sh.
7409         (Depends): Remove freadahead.
7410         (TESTS): Add test-freadptr2.sh.
7411         (check_PROGRAMS): Add test-freadptr2.
7412
7413 2008-03-09  Bruno Haible  <bruno@clisp.org>
7414
7415         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
7416         Report and solution by Simon Josefsson.
7417
7418 2008-03-06  Bruno Haible  <bruno@clisp.org>
7419
7420         Make fflush after ungetc work on BSD platforms.
7421         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
7422         * tests/test-fflush2.c: New file.
7423         * tests/test-fflush2.sh: New file.
7424         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
7425         tests/test-fflush2.c.
7426         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
7427         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
7428
7429 2008-03-06  Eric Blake  <ebb9@byu.net>
7430
7431         Likewise for ftello.
7432         * modules/ftello (Dependencies): Add extensions.
7433         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
7434
7435 2008-03-06  Bruno Haible  <bruno@clisp.org>
7436
7437         * modules/fseeko (Dependencies): Add extensions.
7438         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
7439         Needed on glibc systems.
7440
7441 2008-03-06  Bruno Haible  <bruno@clisp.org>
7442
7443         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
7444         email address.
7445         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
7446
7447 2008-03-06  Bruno Haible  <bruno@clisp.org>
7448
7449         * users.txt: Add libgnupdf.
7450
7451 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
7452
7453         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
7454         (Header File Substitutes, Function Substitutes,
7455         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
7456         (Build robot for gnulib): Fix typo.
7457
7458 2008-03-06  Bruno Haible  <bruno@clisp.org>
7459
7460         * doc/gnulib-tool.texi (VCS Issues): Small updates.
7461         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
7462
7463 2008-03-06  Bruno Haible  <bruno@clisp.org>
7464
7465         * doc/func.texi: New file, extracted from doc/gnulib.texi.
7466         * doc/gnulib.texi: Include it.
7467
7468 2008-03-06  Simon Josefsson  <simon@josefsson.org>
7469
7470         * modules/func (License): Change license to unlimited; there was
7471         no LGPL parts in the module anyway.
7472
7473 2008-03-06  Simon Josefsson  <simon@josefsson.org>
7474
7475         * modules/__func__: Renamed to modules/func.
7476         * modules/__func__-tests: Renamed to modules/func-tests.
7477         * tests/test-__func__.c: Renamed to tests/test-func.c.
7478         * m4/__func__.m4: Renamed to m4/func.m4.
7479         * doc/gnulib.texi (__func__): Section renamed to func.
7480         Suggested by Eric Blake <ebb9@byu.net>.
7481
7482 2008-03-06  Simon Josefsson  <simon@josefsson.org>
7483
7484         * doc/gnulib.texi (__func__): Use C99 terminology when talking
7485         about __func__.  Make example self-contained.  Suggested by Eric
7486         Blake <ebb9@byu.net>.
7487
7488         * tests/test-__func__.c (main): Avoid extraneous () around __func.
7489         Suggested by Eric Blake <ebb9@byu.net>.
7490
7491 2008-03-06  Simon Josefsson  <simon@josefsson.org>
7492
7493         * modules/__func__: New file.
7494         * modules/__func__-tests: New file.
7495         * tests/test-__func__.c: New file.
7496         * m4/__func__.m4: New file.
7497         * doc/gnulib.texi (__func__): Document __func__ module.
7498
7499 2008-03-05  Simon Josefsson  <simon@josefsson.org>
7500
7501         * modules/byteswap (License): Re-license as LGPLv2+.
7502
7503 2008-03-05  Simon Josefsson  <simon@josefsson.org>
7504
7505         * doc/Makefile: Add pdf target.
7506
7507 2008-03-05  Simon Josefsson  <simon@josefsson.org>
7508
7509         * modules/inline (License): Use 'unlimited', since there are only
7510         *.m4 files in this module.
7511
7512 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
7513             Bruno Haible  <bruno@clisp.org>
7514
7515         Add support for HP C 7.1 on OpenVMS 8.3.
7516         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
7517
7518 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
7519
7520         Update VMS specifics.
7521         * lib/getopt.c [VMS]: Remove include of unixlib.h.
7522
7523 2008-03-02  Jim Meyering  <meyering@redhat.com>
7524
7525         Remove the last dependency on the "free" module.
7526         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
7527         Reported by Bob Proulx.
7528
7529         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
7530
7531         Remove useless "if" tests before free.  Deprecate "free" module.
7532         * doc/posix-functions/free.texi: Mention that this
7533         module is no longer useful.
7534         * modules/free (Notice): Say this module is obsolete.
7535         * modules/readutmp (Depends-on): Remove free.
7536         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
7537         * lib/putenv.c (putenv): Likewise.
7538         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
7539         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
7540         * tests/test-c-strcasestr.c (main): Likewise.
7541         * tests/test-c-strstr.c (main): Likewise.
7542         * tests/test-mbscasestr1.c (main): Likewise.
7543         * tests/test-mbscasestr2.c (main): Likewise.
7544         * tests/test-mbsstr1.c (main): Likewise.
7545         * tests/test-mbsstr2.c (main): Likewise.
7546         * tests/test-memmem.c (main): Likewise.
7547         * tests/test-strcasestr.c (main): Likewise.
7548         * tests/test-striconv.c (main): Likewise.
7549         * tests/test-striconveh.c (main): Likewise.
7550         * tests/test-striconveha.c (main): Likewise.
7551         * tests/test-strstr.c (main): Likewise.
7552
7553         * build-aux/git-version-gen: Adjust a comment and the Usage string.
7554
7555         bootstrap: sync from coreutils again
7556         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
7557
7558 2008-03-01  Jim Meyering  <meyering@redhat.com>
7559
7560         bootstrap: sync from coreutils
7561         * build-aux/bootstrap (update_po_files): Copy a .po file into place
7562         also when the target doesn't exist.
7563
7564 2008-03-01  Eric Blake  <ebb9@byu.net>
7565
7566         Fix bugs in last patch.
7567         * lib/memchr2.c (memchr2): Fix typo.
7568         * tests/test-memchr2.c: Test previous bug, and don't use GNU
7569         extension.
7570         Reported by Bruce Korb.
7571
7572         New module 'memchr2'.
7573         * modules/memchr2: New file.
7574         * modules/memchr2-tests: Likewise.
7575         * lib/memchr2.h: Likewise.
7576         * lib/memchr2.c: Likewise, based on memchr.c.
7577         * tests/test-memchr2.c: New test.
7578         * MODULES.html.sh (String handling): Add memchr2.
7579
7580 2008-02-29  Bruno Haible  <bruno@clisp.org>
7581
7582         * modules/freadseek-tests: New file.
7583         * tests/test-freadseek.sh: New file.
7584         * tests/test-freadseek.c: New file.
7585
7586         New module 'freadseek'.
7587         * modules/freadseek: New file.
7588         * lib/freadseek.h: New file.
7589         * lib/freadseek.c: New file.
7590         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
7591
7592 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
7593
7594         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
7595         wydawca.
7596
7597         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
7598         program_invocation_name and program_invocation_short_name are
7599         present.
7600
7601 2008-02-28  Bruno Haible  <bruno@clisp.org>
7602
7603         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
7604         * tests/test-freadptr.sh: Also test non-seekable stdin.
7605
7606 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
7607
7608         * build-aux/bootstrap (source_base, m4_base)
7609         (doc_base, tests_base): New variables.
7610         (gnulib_tool_options): Do not hardcode base directories, use
7611         the above variables instead.
7612
7613 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
7614
7615         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
7616
7617 2008-02-28  Bruno Haible  <bruno@clisp.org>
7618
7619         * modules/freadptr-tests: New file.
7620         * tests/test-freadptr.sh: New file.
7621         * tests/test-freadptr.c: New file.
7622
7623         New module 'freadptr'.
7624         * modules/freadptr: New file.
7625         * lib/freadptr.h: New file.
7626         * lib/freadptr.c: New file.
7627         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
7628
7629 2008-02-26  Karl Berry  <karl@freefriends.org>
7630
7631         Sync from Libtool:
7632         * libltdl/argz.c (argz_add, argz_count): New functions.
7633         * libltdl/argz.in.h: Declare them.
7634         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
7635
7636 2008-02-22  Bruno Haible  <bruno@clisp.org>
7637
7638         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
7639         is a pointer type.  Needed for HP-UX 10.
7640         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
7641         * doc/posix-functions/gmtime_r.texi: Likewise.
7642         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
7643
7644 2008-02-24  Bruno Haible  <bruno@clisp.org>
7645
7646         * modules/environ-tests: New file.
7647         * tests/test-environ.c: New file.
7648
7649         New module 'environ'.
7650         * modules/environ: New file.
7651         * lib/unistd.in.h (environ): New declaration.
7652         * m4/environ.m4: New file.
7653         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
7654         after use.
7655         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
7656         HAVE_DECL_ENVIRON.
7657         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
7658         HAVE_DECL_ENVIRON.
7659         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
7660         wrong claim that 'environ' is missing on some systems.
7661         * modules/execute (Depends-on): Add environ.
7662         * lib/execute.c (environ): Remove fallback declaration.
7663         * modules/pipe (Depends-on): Add environ.
7664         * lib/pipe.c (environ): Remove fallback declaration.
7665         * modules/setenv (Depends-on): Add environ.
7666         * lib/setenv.c (environ): Remove fallback declaration.
7667         * modules/unsetenv (Depends-on): Add environ.
7668         * lib/unsetenv.c (environ): Remove fallback declaration.
7669         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
7670         m4/environ.m4.
7671         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
7672         (gl_PREREQ_UNSETENV): Likewise.
7673
7674 2008-02-24  Bruno Haible  <bruno@clisp.org>
7675
7676         * doc/posix-functions/environ.texi: Document the MacOS X problem.
7677
7678 2008-02-20  Bob Proulx  <bob@proulx.com>
7679
7680         Enable use of older two part flavor 'git describe'.
7681         * build-aux/git-version-gen: If using the older two part flavor of
7682         git version then recreate the third part now present in the
7683         newer three part flavor of git describe.
7684
7685 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
7686
7687         * lib/fts.c (fts_build): Typo correction to comment.
7688
7689 2008-02-17  Bruno Haible  <bruno@clisp.org>
7690
7691         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
7692         generating no-op conflicts.
7693
7694 2008-02-17  Bruno Haible  <bruno@clisp.org>
7695
7696         Speed up by 10%.
7697         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
7698         result_entries, rather than an index-based loop.
7699
7700 2008-02-17  Bruno Haible  <bruno@clisp.org>
7701
7702         Speed up by 25%.
7703         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
7704         'hashcode_cached'.
7705         (entry_create): New function.
7706         (entry_hashcode): Use the cached hashcode if possible.
7707         (read_changelog_file, try_split_merged_entry): Use entry_create.
7708
7709 2008-02-17  Bruno Haible  <bruno@clisp.org>
7710
7711         Speed up from O(n^2) to O(n) for long ChangeLog files.
7712         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
7713         (read_changelog_file): Change implementation of entries_reversed list
7714         to rbtreehash.
7715         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
7716
7717 2008-02-17  Bruno Haible  <bruno@clisp.org>
7718
7719         New option --split-merged-entry.
7720         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
7721         (find_paragraph_end, try_split_merged_entry): New functions.
7722         (long_options): Add option --split-merged-entry.
7723         (usage): Document option --split-merged-entry.
7724         (main): Implement option --split-merged-entry.
7725         Reported by Eric Blake.
7726
7727 2008-02-17  Bruno Haible  <bruno@clisp.org>
7728
7729         * lib/git-merge-changelog.c: Include c-strstr.h.
7730         (main): Support the "git pull --rebase" situation.
7731         * modules/git-merge-changelog (Depends-on): Add c-strstr.
7732         Reported by Eric Blake.
7733
7734 2008-02-16  Eric Blake  <ebb9@byu.net>
7735
7736         Avoid doubling \ in common case of "c-maybe" quoting style.
7737         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
7738         eliding outer quotes.
7739         * lib/quotearg.h: Document this.
7740         * tests/test-quotearg.c (result_strings, inputs, results_g)
7741         (flag_results, locale_results): Test it by adding a new string to
7742         each test group.
7743         (compare_strings): Test new string.
7744
7745 2008-02-13  Eric Blake  <ebb9@byu.net>
7746
7747         Avoid trigraph quoting in default output.
7748         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
7749         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
7750         unless explicitly requested.
7751         * tests/test-quotearg.c (flag_results, main): Add additional tests.
7752
7753 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
7754
7755         Don't rely on signed integer overflowing to negative value.
7756         * lib/getugroups.c (getugroups): Include <limits.h>.
7757         Instead, compare against INT_MAX, and increment only if the test passes.
7758
7759 2008-02-13  Jim Meyering  <meyering@redhat.com>
7760         and Eric Blake  <ebb9@byu.net>
7761
7762         Avoid shadowing warning and compile errors on Linux.
7763         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
7764         forwarding macros on Linux.
7765         (dcgettext): Define a stub, for Linux.
7766         (results_g, main): Avoid warnings.
7767
7768 2008-02-12  Eric Blake  <ebb9@byu.net>
7769
7770         Silence warning in last patch.
7771         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
7772
7773         Quotearg part 4: add tests, fix c-maybe colon quoting.
7774         * lib/quotearg.h: Improve documentation.
7775         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
7776         escapes when adding outer quotes.  When quoting trigraphs, use
7777         valid C notation.  When quoting NUL, omit extra characters if next
7778         character is not digit.  Alter prototype.
7779         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
7780         callers.
7781         * modules/quotearg-tests: New module.
7782         * tests/test-quotearg.c: New test.
7783
7784 2008-02-07  Eric Blake  <ebb9@byu.net>
7785
7786         Quotearg part 3: add flag to control outer quote elision.
7787         * lib/quotearg.h (c_maybe_quoting_style): New style.
7788         (enum quoting_flags): Better documentation of flags.
7789         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
7790         c-maybe style.
7791         (quotearg_buffer_restyled): Handle new flag to elide outer
7792         quotes.
7793
7794         Quotearg part 2: add flag that can control NUL elision.
7795         * lib/quotearg.h (set_quoting_flags): New prototype.
7796         * lib/quotearg.c (struct quoting_options): Add flag field.
7797         (set_quoting_flags): New function.
7798         (quotearg_buffer_restyled): Add flags parameter.
7799         (quotearg_alloc_mem): Set the flag if length cannot be returned.
7800         (quotearg_n_options): Set the flag, since length cannot be
7801         returned.
7802         (quoting_options_from_style): Default flags correctly.
7803
7804         Quotearg part 1: more wrappers, restore quotearg_char state.
7805         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
7806         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
7807         (quotearg_colon_mem): New wrappers.
7808         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
7809         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
7810         functions.
7811         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
7812         (quotearg_colon_mem): New functions.
7813
7814 2008-02-11  Bruno Haible  <bruno@clisp.org>
7815
7816         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
7817         library in the current directory: it does not work with parallel make.
7818         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
7819
7820 2008-02-11  Bruno Haible  <bruno@clisp.org>
7821
7822         * .gitattributes: New file.
7823
7824 2008-02-11  Jim Meyering  <meyering@redhat.com>
7825
7826         useless-if-before-free: Fix reversed exit values.
7827         * build-aux/useless-if-before-free: Use correct values
7828         for EXIT_MATCH and EXIT_NO_MATCH.
7829
7830         * build-aux/useless-if-before-free: Close stdout carefully.
7831
7832 2008-02-10  Bruno Haible  <bruno@clisp.org>
7833
7834         New module 'git-merge-changelog'.
7835         * modules/git-merge-changelog: New file.
7836         * lib/git-merge-changelog.c: New file.
7837
7838 2008-02-10  Jim Meyering  <meyering@redhat.com>
7839
7840         useless-if-before-free: New option: --list (-l).
7841
7842         useless-if-before-free: Don't exit immediately upon open failure.
7843         * build-aux/useless-if-before-free: Exit 2 for errors.
7844         Upon failure to open a file, don't exit immediately.
7845         Rather, just warn and continue with any remaining files.
7846
7847 2008-02-10  Bruno Haible  <bruno@clisp.org>
7848
7849         New abstract list operation 'node_set_value'.
7850         * lib/gl_list.h (gl_list_node_set_value): New function.
7851         (struct gl_list_implementation): New field node_set_value.
7852         * lib/gl_list.c (gl_list_node_set_value): New function.
7853         * lib/gl_array_list.c (gl_array_node_set_value): New function.
7854         (gl_array_list_implementation): Update.
7855         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
7856         (gl_carray_list_implementation): Update.
7857         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
7858         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
7859         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
7860         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
7861         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
7862         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
7863         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
7864         Update.
7865         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
7866         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
7867         (gl_sublist_list_implementation): Update.
7868
7869 2008-02-10  Bruno Haible  <bruno@clisp.org>
7870
7871         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
7872         Needed when ELEMENT is #defined to 'some_type *'.
7873
7874 2008-02-10  Jim Meyering  <meyering@redhat.com>
7875
7876         New script and module: useless-if-before-free
7877         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
7878         * build-aux/useless-if-before-free: New file.
7879         * modules/useless-if-before-free: New file.
7880
7881         * build-aux/gitlog-to-changelog: Use committer date, not author date.
7882
7883         xstrtol_error: Fix typo.
7884         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
7885         s/exit_failure/exit_status/.
7886
7887 2008-02-09  Jim Meyering  <meyering@redhat.com>
7888
7889         New script and module: gitlog-to-changelog
7890         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
7891         * modules/gitlog-to-changelog: New file.
7892         * build-aux/gitlog-to-changelog: New file.
7893
7894 2008-02-08  Jim Meyering  <meyering@redhat.com>
7895
7896         Avoid two "parameter unused" warnings.
7897         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
7898         Mark "st" as used.
7899
7900         Use "git COMMAND", not "git-COMMAND".
7901         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
7902         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
7903         * build-aux/git-version-gen: Use "git status", not "git-status".
7904
7905 2008-02-07  Bruno Haible  <bruno@clisp.org>
7906
7907         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
7908         Avoids a crash on Windows Vista.
7909         Reported by Adam Strzelecki <ono@java.pl> via
7910         Simon Josefsson <simon@josefsson.org>.
7911
7912 2008-02-06  Bruno Haible  <bruno@clisp.org>
7913
7914         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
7915         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
7916         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
7917         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
7918         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
7919         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
7920         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
7921         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
7922         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
7923         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
7924         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
7925         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
7926         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
7927         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
7928         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
7929         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
7930         left-adjust flag.
7931         * tests/test-snprintf-posix.h (test_function): Likewise.
7932         * tests/test-sprintf-posix.h (test_function): Likewise.
7933         * tests/test-vasprintf-posix.c (test_function): Likewise.
7934         * doc/posix-functions/fprintf.texi: Update.
7935         * doc/posix-functions/printf.texi: Update.
7936         * doc/posix-functions/snprintf.texi: Update.
7937         * doc/posix-functions/sprintf.texi: Update.
7938         * doc/posix-functions/vfprintf.texi: Update.
7939         * doc/posix-functions/vprintf.texi: Update.
7940         * doc/posix-functions/vsnprintf.texi: Update.
7941         * doc/posix-functions/vsprintf.texi: Update.
7942         Reported by Peter Fales <psfales@alcatel-lucent.com>.
7943
7944 2008-02-06  Bruno Haible  <bruno@clisp.org>
7945
7946         Fix bug introduced on 2008-01-26.
7947         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
7948
7949 2008-02-06  Bruno Haible  <bruno@clisp.org>
7950
7951         Fix bug introduced on 2007-06-10.
7952         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
7953         !NEED_PRINTF_FLAG_ZERO.
7954
7955 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
7956
7957         getloadavg: use libperfstat on AIX5
7958         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
7959
7960 2008-02-03  Bruno Haible  <bruno@clisp.org>
7961
7962         * lib/diffseq.h: Add comments about required #includes.
7963         Reported by Michael Biggs <gnulib@doubleplum.net>.
7964
7965 2008-02-01  Bruno Haible  <bruno@clisp.org>
7966
7967         * users.txt: Add gnuit.
7968
7969 2008-01-31  Bruno Haible  <bruno@clisp.org>
7970
7971         * lib/md4.c (set_uint32): Mark as inline.
7972         * lib/md5.c (set_uint32): Likewise.
7973         * lib/sha1.c (set_uint32): Likewise.
7974         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
7975         * m4/md5.m4 (gl_MD5): Likewise.
7976         * m4/sha1.m4 (gl_SHA1): Likewise.
7977
7978 2008-01-31  Jim Meyering  <meyering@redhat.com>
7979
7980         Use "sizeof VAR", rather than a literal "4".
7981         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
7982         * lib/md4.c (md4_read_ctx): Likewise.
7983         * lib/sha1.c (sha1_read_ctx): Likewise.
7984
7985 2008-01-31  Simon Josefsson  <simon@josefsson.org>
7986
7987         * tests/test-sha1.c: New file, based on test-md5.c.
7988
7989         * modules/crypto/sha1-tests: New file.
7990
7991 2008-01-31  Simon Josefsson  <simon@josefsson.org>
7992
7993         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
7994
7995 2008-01-31  Jim Meyering  <meyering@redhat.com>
7996
7997         Prefer "sizeof v" over the equivalent "4".
7998         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
7999         * lib/md5.c (set_uint32): Likewise.
8000         * lib/sha1.c (set_uint32): Likewise.
8001
8002 2008-01-31  Simon Josefsson  <simon@josefsson.org>
8003
8004         * lib/sha1.c (set_uint32): Mark function as static.
8005
8006 2008-01-31  Simon Josefsson  <simon@josefsson.org>
8007
8008         md2: clarify comments to say that alignment is not required.
8009         * lib/md2.h: Remove warning about alignment in comment.
8010         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
8011         never been required.
8012
8013 2008-01-31  Simon Josefsson  <simon@josefsson.org>
8014
8015         md4: adapt alignment constraint fix from sha1.
8016         * lib/md4.c (set_uint32): New function, from sha1.c
8017         (md4_read_ctx): Use it.
8018         (md4_finish_ctx): Doc fix.
8019         * lib/md4.h: Doc fix.
8020
8021 2008-01-31  Simon Josefsson  <simon@josefsson.org>
8022
8023         md5: adapt alignment constraint fix from sha1.
8024         * lib/md5.c (set_uint32): New function, from sha1.c
8025         (md5_read_ctx): Use it.
8026         (md5_finish_ctx): Doc fix.
8027         * lib/md5.h: Doc fix.
8028
8029 2008-01-30  Peter Palfrader  <weasel@debian.org>
8030
8031         sha1: remove the result buffer alignment constraint
8032         * lib/sha1.c (set_uint32): New function.
8033         (sha1_read_ctx): Rewrite to remove the result buffer alignment
8034         constraint.
8035         (sha1_finish_ctx): Remove comment warning about alignment constraint.
8036         * lib/sha1.h: Likewise.
8037
8038 2008-01-30  Andreas Schwab  <schwab@suse.de>
8039             Bruno Haible  <bruno@clisp.org>
8040
8041         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
8042         correct definition of LDBL_MIN_EXP.
8043
8044 2008-01-30  Karl Berry  <karl@gnu.org>
8045
8046         * config/srclist-update: try to preserve x bit on updates.
8047         * config/srclistvars.sh: update for karl.
8048
8049 2008-01-29  Jim Meyering  <meyering@redhat.com>
8050
8051         vasnprintf.c: Avoid warning about unused label
8052         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
8053         "overflow" label definition and associated code with the
8054         same cpp condition that guards the sole use of that label.
8055
8056 2008-01-26  Bruno Haible  <bruno@clisp.org>
8057
8058         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
8059         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
8060         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
8061         * lib/isnanl-nolibm.h (isnanl): Likewise.
8062         Reported by Paul Eggert <eggert@cs.ucla.edu>.
8063
8064 2008-01-26  Bruno Haible  <bruno@clisp.org>
8065
8066         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
8067         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
8068
8069 2008-01-26  Bruno Haible  <bruno@clisp.org>
8070
8071         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
8072         GCC >= 4.0 built-in.
8073         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
8074
8075 2008-01-26  Bruno Haible  <bruno@clisp.org>
8076
8077         Rename isnan, applicable to 'double' only, to isnand.
8078         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
8079         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
8080         (configure.ac): Update.
8081         (Include): Replace "isnan.h" with "isnand.h".
8082         * m4/isnand.m4: Renamed from m4/isnan.m4.
8083         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
8084         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
8085         instead of isnan.c.
8086         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
8087         instead of HAVE_ISNAN_IN_LIBC.
8088         (isnand): Renamed from isnan.
8089         * lib/isnand.c: New file.
8090         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
8091         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
8092         (Makefile.am): Update.
8093         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
8094         Include isnand.h instead of isnan.h.
8095         (main): Test isnand instead of isnan.
8096         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
8097         isnan-nolibm.
8098         * modules/frexp (Depends-on): Likewise.
8099         * modules/frexp-tests (Depends-on): Likewise.
8100         * modules/frexp-nolibm (Depends-on): Likewise.
8101         * modules/frexp-nolibm-tests (Depends-on): Likewise.
8102         * modules/isfinite (Depends-on): Likewise.
8103         * modules/round-tests (Depends-on): Likewise.
8104         * modules/signbit (Depends-on): Likewise.
8105         * modules/signbit-tests (Depends-on): Likewise.
8106         * modules/snprintf-posix (Depends-on): Likewise.
8107         * modules/sprintf-posix (Depends-on): Likewise.
8108         * modules/trunc-tests (Depends-on): Likewise.
8109         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
8110         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
8111         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
8112         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
8113         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
8114         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
8115         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
8116         * modules/vasnprintf-posix (Depends-on): Likewise.
8117         * modules/vasprintf-posix (Depends-on): Likewise.
8118         * modules/vfprintf-posix (Depends-on): Likewise.
8119         * modules/vsnprintf-posix (Depends-on): Likewise.
8120         * modules/vsprintf-posix (Depends-on): Likewise.
8121         * lib/frexp.c: Include isnand.h instead of isnan.h.
8122         (ISNAN): Set to isnand instead of isnan.
8123         * lib/isfinite.c: Include isnand.h instead of isnan.h.
8124         (gl_isfinited): Use isnand instead of isnan.
8125         * lib/signbitd.c: Include isnand.h instead of isnan.h.
8126         (gl_signbitd): Use isnand instead of isnan.
8127         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
8128         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
8129         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
8130         (main): Use isnand instead of isnan.
8131         * tests/test-round1.c: Include isnand.h.
8132         (main): Use isnand instead of isnan.
8133         * tests/test-round2.c: Include isnand.h instead of isnan.h.
8134         (ISNAN): Set to isnand instead of isnan.
8135         * tests/test-trunc1.c: Include isnand.h.
8136         (main): Use isnand instead of isnan.
8137         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
8138         (equal): Use isnand instead of isnan.
8139         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
8140         isnand-nolibm.
8141         * NEWS: Mention the change.
8142
8143 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
8144             Bruno Haible  <bruno@clisp.org>
8145
8146         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
8147         the GCC builtins for signbits are present and set
8148         REPLACE_SIGNBIT_USING_GCC if so.
8149         * lib/math.in.h (signbit): Define using GCC builtins if
8150         REPLACE_SIGNBIT_USING_GCC is set.
8151         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
8152         REPLACE_SIGNBIT_USING_GCC.
8153         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
8154
8155 2008-01-25  Jim Meyering  <meyering@redhat.com>
8156
8157         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
8158         * lib/poll.c: Include <config.h>, not "config.h".
8159         * tests/test-getaddrinfo.c: Likewise.
8160
8161 2008-01-25  Simon Josefsson  <simon@josefsson.org>
8162
8163         * modules/sockets-tests: New file.
8164
8165 2008-01-24  Simon Josefsson  <simon@josefsson.org>
8166
8167         * modules/sockets: New module, can be used to call WSA_Startup and
8168         WSA_Cleanup when needed.
8169
8170         * lib/sockets.h, lib/sockets.c: New files.
8171
8172         * m4/sockets.m4: New file.
8173
8174         * tests/test-sockets.c: New file.
8175
8176 2008-01-19  Bruno Haible  <bruno@clisp.org>
8177
8178         * doc/posix-headers: Renamed from doc/headers.
8179         * doc/posix-functions: Renamed from doc/functions.
8180         * doc/gnulib.texi: Update.
8181
8182 2008-01-19  Bruno Haible  <bruno@clisp.org>
8183
8184         * doc/glibc-functions/strcasestr.texi: Include contents of
8185         doc/functions/strcasestr.texi, fixing the list of platforms.
8186         * doc/functions/strcasestr.texi: Remove file.
8187
8188 2008-01-19  Bruno Haible  <bruno@clisp.org>
8189
8190         * doc/glibc-functions/memmem.texi: Include contents of
8191         doc/functions/memmem.texi.
8192         * doc/functions/memmem.texi: Remove file.
8193
8194 2008-01-18  Bruno Haible  <bruno@clisp.org>
8195
8196         * doc/glibc-functions/*.texi: New files.
8197         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
8198         to use the new files.
8199
8200 2008-01-17  Bruno Haible  <bruno@clisp.org>
8201
8202         * tests/test-gethostname.c (main): Fix printf statement.
8203
8204 2008-01-17  Simon Josefsson  <simon@josefsson.org>
8205
8206         * modules/gethostname-tests: New file.
8207
8208         * tests/test-gethostname.c: New file.
8209
8210 2008-01-17  Simon Josefsson  <simon@josefsson.org>
8211
8212         * lib/gethostname.c: Include string.h unconditionally, strncpy is
8213         used by the UNAME case.  Reported by Bruno Haible
8214         <bruno@clisp.org>.
8215
8216 2008-01-17  Eric Blake  <ebb9@byu.net>
8217
8218         Convert c-strcasestr to be more efficient.
8219         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
8220         (Depends-on): Add c-strcase, remove malloca, strnlen.
8221         * tests/test-c-strcasestr.c (main): Enhance test.
8222         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
8223
8224 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
8225
8226         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
8227         Use it in creating po/Makevars.
8228
8229 2008-01-15  Simon Josefsson  <simon@josefsson.org>
8230
8231         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
8232         Applications that requires it should initialize libgcrypt
8233         manually.
8234
8235 2008-01-16  Simon Josefsson  <simon@josefsson.org>
8236
8237         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
8238
8239 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
8240
8241         Fix problem with getdate on mingw32 reported by Simon Josefsson
8242         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
8243         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
8244         tzname", when deciding whether to declare tzname.
8245         * lib/strftime.c (tzname): Likewise.
8246
8247 2008-01-15  Bruno Haible  <bruno@clisp.org>
8248
8249         Work around a MacOS X 10.5 bug in frexpl().
8250         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
8251         * doc/functions/frexpl.texi: Document the bug.
8252         Reported by Elias Pipping <pipping@gentoo.org>.
8253
8254 2008-01-14  Eric Blake  <ebb9@byu.net>
8255
8256         Touch up previous patch.
8257         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
8258         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
8259
8260         Convert strcasestr module to use Two-Way algorithm.
8261         * modules/strcasestr-simple: New module, based on the old
8262         strcasestr, but with Two-Way rather than KMP.
8263         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
8264         * lib/string.in.h (rpl_strcasestr): Declare.
8265         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
8266         performance.
8267         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
8268         * modules/string (Makefile.am): Support strcasestr.
8269         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
8270         * modules/strcasestr-tests (Depends-on): Check for alarm.
8271         * tests/test-strcasestr.c: Augment test.
8272         * lib/str-two-way.h: Clean up stray macro.
8273         * NEWS: Document new module.
8274         * MODULES.html.sh (string handling): Likewise.
8275         * doc/functions/strcasestr.texi: New file.
8276         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
8277         here, since it is not a POSIX function.
8278
8279 2008-01-14  Colin Watson  <cjwatson@debian.org>
8280             Bruno Haible  <bruno@clisp.org>
8281
8282         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
8283         works fine; if not, set REPLACE_STRSIGNAL.
8284         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
8285         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
8286         REPLACE_STRSIGNAL.
8287         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
8288         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
8289         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
8290
8291 2008-01-14  Bruno Haible  <bruno@clisp.org>
8292
8293         * modules/strsignal (Include): Change to <string.h>.
8294
8295 2008-01-14  Colin Watson  <cjwatson@debian.org>
8296
8297         * modules/argp (Notice): Add a notice recommending to change
8298         XGETTEXT_OPTIONS.
8299         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
8300
8301 2008-01-13  Colin Watson  <cjwatson@debian.org>
8302
8303         * modules/strsignal-tests: New file.
8304         * tests/test-strsignal.c: New file.
8305
8306         * lib/strsignal.c: New file, from glibc with modifications.
8307         * lib/siglist.h: New file, from glibc with modifications.
8308         * lib/string.in.h (strsignal): New declaration.
8309         * m4/strsignal.m4: New file.
8310         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
8311         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
8312         * modules/strsignal: New file.
8313         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
8314         HAVE_DECL_STRSIGNAL.
8315
8316 2008-01-13  Bruno Haible  <bruno@clisp.org>
8317
8318         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
8319         locale encoding is not ASCII. Needed for OpenBSD 4.0.
8320         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
8321         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
8322
8323 2008-01-13  Bruno Haible  <bruno@clisp.org>
8324
8325         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
8326         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
8327         * lib/argp.h (__attribute__): Likewise.
8328         * lib/c-stack.c (__attribute__): Likewise.
8329         * lib/error.h (__attribute__): Likewise.
8330         * lib/fts.c (__attribute__): Likewise.
8331         * lib/openat.h (__attribute__): Likewise.
8332         * lib/stdio.in.h (__attribute__): Likewise.
8333         * lib/string.in.h (__attribute__): Likewise.
8334         * lib/utimens.c (__attribute__): Likewise.
8335         * lib/vasnprintf.h (__attribute__): Likewise.
8336         * lib/xalloc.h (__attribute__): Likewise.
8337         * lib/xprintf.h (__attribute__): Likewise.
8338         * lib/xstrtol.h (__attribute__): Likewise.
8339         * lib/xvasprintf.h (__attribute__): Likewise.
8340
8341 2008-01-12  Bruno Haible  <bruno@clisp.org>
8342
8343         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
8344         * doc/glibc-headers/a.out.texi: New file.
8345         * doc/glibc-headers/aliases.texi: New file.
8346         * doc/glibc-headers/alloca.texi: New file.
8347         * doc/glibc-headers/ar.texi: New file.
8348         * doc/glibc-headers/argp.texi: New file.
8349         * doc/glibc-headers/argz.texi: New file.
8350         * doc/glibc-headers/byteswap.texi: New file.
8351         * doc/glibc-headers/crypt.texi: New file.
8352         * doc/glibc-headers/endian.texi: New file.
8353         * doc/glibc-headers/envz.texi: New file.
8354         * doc/glibc-headers/err.texi: New file.
8355         * doc/glibc-headers/error.texi: New file.
8356         * doc/glibc-headers/execinfo.texi: New file.
8357         * doc/glibc-headers/fpu_control.texi: New file.
8358         * doc/glibc-headers/fstab.texi: New file.
8359         * doc/glibc-headers/fts.texi: New file.
8360         * doc/glibc-headers/getopt.texi: New file.
8361         * doc/glibc-headers/ieee754.texi: New file.
8362         * doc/glibc-headers/ifaddrs.texi: New file.
8363         * doc/glibc-headers/libintl.texi: New file.
8364         * doc/glibc-headers/mcheck.texi: New file.
8365         * doc/glibc-headers/mntent.texi: New file.
8366         * doc/glibc-headers/obstack.texi: New file.
8367         * doc/glibc-headers/paths.texi: New file.
8368         * doc/glibc-headers/printf.texi: New file.
8369         * doc/glibc-headers/pty.texi: New file.
8370         * doc/glibc-headers/resolv.texi: New file.
8371         * doc/glibc-headers/shadow.texi: New file.
8372         * doc/glibc-headers/sysexits.texi: New file.
8373         * doc/glibc-headers/ttyent.texi: New file.
8374
8375 2008-01-12  Jim Meyering  <meyering@redhat.com>
8376
8377         announce-gen: emit Gnulib's git-based version string.
8378         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
8379         New option --gnulib-version=V, where V is expected to be
8380         the output of running git describe in the gnulib directory.
8381         (get_tool_versions): Request feedback on xdelta.  I suspect it's
8382         not useful, and plan to stop publishing an xdelta file with each
8383         coreutils release.
8384
8385         * build-aux/announce-gen: Also check for lzma-compressed files.
8386
8387 2008-01-11  Bruno Haible  <bruno@clisp.org>
8388
8389         * tests/test-memmem.c (main): Increase maximum allowed time.
8390         * tests/test-strstr.c (main): Likewise.
8391
8392 2008-01-11  Bruno Haible  <bruno@clisp.org>
8393
8394         * doc/functions/memmem.texi: Add more precisions about platforms.
8395         * doc/functions/strstr.texi: Likewise.
8396
8397 2008-01-10  Eric Blake  <ebb9@byu.net>
8398
8399         * m4/strstr.m4: Delete cruft from copy-n-paste.
8400         Reported by Bruno Haible.
8401
8402 2008-01-10  Bruno Haible  <bruno@clisp.org>
8403
8404         Make c-strstr rely on strstr.
8405         * lib/c-strstr.c: Don't include str-kmp.h.
8406         (c_strstr): Define in terms of strstr.
8407         * modules/c-strstr (Files): Remove lib/str-kmp.h.
8408         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
8409
8410 2008-01-10  Bruno Haible  <bruno@clisp.org>
8411
8412         * doc/gnulib.texi (String Functions in C Locale): New section.
8413         * doc/c-ctype.texi: New file.
8414         * doc/c-strcase.texi: New file.
8415         * doc/c-strcaseeq.texi: New file.
8416         * doc/c-strcasestr.texi: New file.
8417         * doc/c-strstr.texi: New file.
8418         * doc/c-strtod.texi: New file.
8419         * doc/c-strtold.texi: New file.
8420
8421 2008-01-10  Eric Blake  <ebb9@byu.net>
8422
8423         * lib/relocatable.h: Fix a comment.
8424
8425 2008-01-10  Eric Blake  <ebb9@byu.net>
8426
8427         Share two-way algorithm.
8428         * lib/str-two-way.h: New file, merged from...
8429         * lib/memmem.c: ...here...
8430         * lib/strstr.c: ...and here.
8431         * modules/memmem (Files): Use it.
8432         * modules/strstr (Files): Likewise.
8433
8434         Avoid quadratic strstr implementations.
8435         * lib/strstr.c: New file.
8436         * m4/strstr.m4: Likewise.
8437         * modules/strstr: Likewise.
8438         * modules/strstr-tests: Likewise.
8439         * tests/test-strstr.c: Likewise.
8440         * lib/string.in.h (rpl_strstr): Declare.
8441         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
8442         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
8443         * modules/string (Makefile.am): Likewise.
8444         * MODULES.html.sh (string handling): Mention new module.
8445         * doc/functions/strstr.texi (strstr): Document the bug.
8446
8447 2008-01-10  Bruno Haible  <bruno@clisp.org>
8448
8449         * lib/relocatable.h (relocate): State whether result is freshly
8450         allocated or not.
8451         * lib/relocatable.c (relocate): Return a freshly allocated string
8452         instead of a pointer to a privately held string.
8453         Reported by Sylvain Beucler <beuc@gnu.org>.
8454
8455 2008-01-10  Colin Watson  <cjwatson@debian.org>
8456
8457         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
8458         s/S_ISNLK/S_ISLNK/.
8459
8460 2008-01-09  Bruno Haible  <bruno@clisp.org>
8461
8462         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
8463         and other files.
8464         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
8465         if it's only a guess.
8466         * modules/memmem: Simplify by depending on memmem-simple.
8467
8468 2008-01-09  Bruno Haible  <bruno@clisp.org>
8469
8470         Work around OpenBSD 4.0 tdelete() bug.
8471         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
8472         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
8473         macros and don't redefine the enum values.
8474         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
8475         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
8476         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
8477
8478 2008-01-09  Bruno Haible  <bruno@clisp.org>
8479
8480         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
8481         (main): Don't perform the tests if setlocale did not install a UTF-8
8482         locale. Needed on OpenBSD 4.0.
8483         * modules/wcwidth-tests (Depends-on): Add localcharset.
8484
8485 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
8486
8487         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
8488         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
8489         * NEWS: announce this.
8490         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
8491
8492 2008-01-09  Simon Josefsson  <simon@josefsson.org>
8493         and Eric Blake  <ebb9@byu.net>
8494
8495         Add memmem-simple module.
8496         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
8497         (gl_FUNC_MEMMEM): Separate performance from presence checks.
8498         * modules/memmem-simple: New file.
8499         * modules/memmem (Description): Tweak.
8500         * MODULES.html.sh (string handling): Mention new module.
8501         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
8502         addressed by memmem-simple.
8503         * NEWS: Document the difference.
8504
8505 2008-01-09  Eric Blake  <ebb9@byu.net>
8506
8507         Give gcc some memmem optimization hints.
8508         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
8509         (strcasestr): Declare as pure.
8510         * modules/memmem (Maintainer): Claim my implementation.
8511
8512 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8513
8514         Support AIX 6.1 and higher.
8515         * build-aux/config.libpath: Likewise.
8516         * build-aux/config.rpath: Likewise.
8517
8518 2008-01-08  Jim Meyering  <meyering@redhat.com>
8519             Bruno Haible  <bruno@clisp.org>
8520
8521         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
8522         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
8523         Reported by Peter Fales in
8524         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
8525
8526 2008-01-08  Bruno Haible  <bruno@clisp.org>
8527
8528         * modules/unictype/category-of (Depends-on): Add
8529         unictype/category-none.
8530         * modules/unictype/category-and-tests (Depends-on): Add
8531         unictype/category-{L,N,Lu,Nd}.
8532         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
8533         * modules/unictype/category-or-tests (Depends-on): Add
8534         unictype/category-{L,N}.
8535         * modules/unictype/category-name-tests (Depends-on): Add
8536         unictype/category-{Z,Nl}.
8537         Reported by Simon Josefsson.
8538
8539 2008-01-08  Bruno Haible  <bruno@clisp.org>
8540
8541         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
8542         convention better.
8543         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
8544         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
8545         Reported by Peter Miller <millerp@canb.auug.org.au>.
8546
8547 2008-01-08  Eric Blake  <ebb9@byu.net>
8548
8549         Rewrite memmem to guarantee linear complexity without malloc.
8550         * lib/memmem.c (memmem): Use Two-Way rather than
8551         Knuth-Morris-Pratt, to allow O(1) space usage.
8552         (critical_factorization, two_way_short_needle)
8553         (two_way_long_needle): New functions.
8554         (knuth_morris_pratt): Delete.
8555         * modules/memmem (Depends-on): No longer need malloca or stdbool.
8556         Add stdint.
8557         * tests/test-memmem.c (main): Add tests for periodic needle and
8558         sublinear performance.
8559         * doc/functions/memmem.texi (memmem): Document other deficiencies
8560         in cygwin and older glibc.
8561
8562 2008-01-08  Bruno Haible  <bruno@clisp.org>
8563
8564         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
8565         augmentation.
8566
8567 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
8568
8569         Add a configure time option: --disable-acl.
8570         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
8571         AC_ARG_ENABLE(acl).
8572
8573 2008-01-06  Simon Josefsson  <simon@josefsson.org>
8574
8575         * tests/test-localename.c: Don't include obsolete "setenv.h".
8576
8577         * modules/localename-tests (Depends-on): Need unsetenv.
8578
8579 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8580
8581         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
8582
8583 2008-01-06  Colin Watson  <cjwatson@debian.org>
8584
8585         * users.txt: Add man-db.
8586
8587 2008-01-07  Bruno Haible  <bruno@clisp.org>
8588
8589         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
8590         previous section name.
8591
8592 2008-01-07  Bruno Haible  <bruno@clisp.org>
8593
8594         * lib/progname.c (set_program_name): Don't strip off a leading
8595         "lt-" prefix outside a .libs directory.
8596         Suggested by Paul Eggert.
8597
8598 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
8599             Bruno Haible  <bruno@clisp.org>
8600
8601         Improve memory cleanup in 'relocatable' module.
8602         * lib/relocatable.h (compute_curr_prefix): Change return type to
8603         'char *'.
8604         * lib/relocatable.c (compute_curr_prefix): Change return type to
8605         'char *'. Free curr_installdir after use.
8606         (relocate): Free curr_prefix_better after use.
8607         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
8608
8609 2008-01-01  Bruno Haible  <bruno@clisp.org>
8610
8611         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
8612         failure on older glibc systems.
8613         Reported by Peter Fales <psfales@alcatel-lucent.com>.
8614
8615 2008-01-05  Eric Blake  <ebb9@byu.net>
8616
8617         Avoid quadratic system memmem.
8618         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
8619         Reported by Ralf Wildenhues.
8620
8621         Fix memmem test for mingw.
8622         * modules/memmem-tests (configure.ac): Check for alarm.
8623         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
8624         it.
8625         * doc/functions/memmem.texi: New file.
8626         * doc/gnulib.texi (Function Substitutes): Add memmem.
8627         Reported by Bruno Haible.
8628
8629 2008-01-04  Bruno Haible  <bruno@clisp.org>
8630
8631         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
8632         Require gl_HEADER_STRINGS_H_DEFAULTS, not
8633         gl_HEADER_STRING_H_DEFAULTS.
8634
8635 2008-01-04  Eric Blake  <ebb9@byu.net>
8636
8637         Shorten duration of memmem test.
8638         * tests/test-memmem.c (main): Use alarm to declare failure if test
8639         is taking too long.
8640         Reported by Ralf Wildenhues.
8641
8642 2007-12-21  Simon Josefsson  <simon@josefsson.org>
8643
8644         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
8645         string, needed by strerror.
8646
8647 2008-01-03  Colin Watson  <cjwatson@debian.org>
8648             Bruno Haible  <bruno@clisp.org>
8649
8650         * doc/gnulib-tool.texi (Localization): New section.
8651
8652 2008-01-02  Bruno Haible  <bruno@clisp.org>
8653
8654         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
8655         variables to 'unsigned char *' type.
8656         Reported by Paul Eggert.
8657
8658 2008-01-02  Jim Meyering  <jim@meyering.net>
8659
8660         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
8661
8662 2007-12-31  Jim Meyering  <jim@meyering.net>
8663
8664         Avoid use of private FTS type name.
8665         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
8666
8667 2007-12-30  Karl Berry  <karl@gnu.org>
8668
8669         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
8670         work around defect in Texinfo and/or the standalone Info browser.
8671
8672 2007-12-30  Bruno Haible  <bruno@clisp.org>
8673
8674         Unify 5 copies of the KMP code.
8675         * lib/str-kmp.h: New file.
8676         * lib/c-strcasestr.c: Include str-kmp.h.
8677         (knuth_morris_pratt): Remove function.
8678         (c_strcasestr): Update.
8679         * lib/c-strstr.c: Include str-kmp.h.
8680         (knuth_morris_pratt): Remove function.
8681         (c_strcasestr): Update.
8682         * lib/mbscasestr.c: Include str-kmp.h.
8683         (knuth_morris_pratt_unibyte): Remove function.
8684         * lib/mbsstr.c: Include str-kmp.h.
8685         (knuth_morris_pratt_unibyte): Remove function.
8686         * lib/strcasestr.c: Include str-kmp.h.
8687         (knuth_morris_pratt): Remove function.
8688         (strcasestr): Update.
8689         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
8690         * modules/c-strstr (Files): Likewise.
8691         * modules/mbscasestr (Files): Likewise.
8692         * modules/mbsstr (Files): Likewise.
8693         * modules/strcasestr (Files): Likewise.
8694         Suggested by Paul Eggert.
8695
8696 2007-12-30  Bruno Haible  <bruno@clisp.org>
8697
8698         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
8699         defined.
8700
8701 2007-12-30  Bruno Haible  <bruno@clisp.org>
8702
8703         * lib/xmalloca.h: Include xalloc.h.
8704         (xnmalloca): New macro.
8705
8706 2007-12-30  Bruno Haible  <bruno@clisp.org>
8707
8708         * lib/malloca.h (nmalloca): New macro.
8709         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
8710         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
8711         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
8712         knuth_morris_pratt_multibyte): Likewise.
8713         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
8714         knuth_morris_pratt_multibyte): Likewise.
8715         * lib/memmem.c (knuth_morris_pratt): Likewise.
8716         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
8717
8718 2007-12-25  Bruno Haible  <bruno@clisp.org>
8719
8720         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
8721         * lib/glob.c: Don't include openat.h.
8722         (link_exists2_p): Add back the code that deals with the
8723         !GLOB_ALTDIRFUNC case.
8724         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
8725         let it do the filename concatenation.
8726         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
8727         * modules/glob (Depends-on): Remove openat.
8728
8729 2007-12-31  Bruno Haible  <bruno@clisp.org>
8730
8731         * modules/dirfd (License): Change to LGPLv2+.
8732         Approved by Jim Meyering.
8733
8734 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
8735
8736         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
8737         when multiplying M by sizeof (size_t).
8738
8739 2007-12-10  Martin Lambers  <marlam@marlam.de>
8740
8741         Override getpagesize on mingw.
8742         * lib/getpagesize.c: New file.
8743         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
8744         * modules/getpagesize (Files): Add lib/getpagesize.c.
8745         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
8746         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
8747         REPLACE_GETPAGESIZE.
8748         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
8749
8750 2007-12-25  Bruno Haible  <bruno@clisp.org>
8751
8752         * modules/localcharset (Notice): New field.
8753         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
8754         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
8755
8756 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
8757             Bruno Haible  <bruno@clisp.org>
8758
8759         Avoid using the syntax symbol() in formatted documentation.
8760         * MODULES.html.sh (func_module): When replacing symbol() with a
8761         hyperlink, remove the parentheses. Show an error if some remain.
8762         Recognize and render the '...' syntax.
8763         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
8764         Rework. Add paragraph about GCC's inlining.
8765         * doc/alloca.texi: Likewise.
8766         * doc/error.texi: Remove parentheses from symbol reference.
8767         * doc/gnulib-intro.texi: Likewise.
8768         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
8769         * modules/fnmatch (Description): Reword to say "the ... function".
8770         * modules/full-read (Description): Likewise.
8771         * modules/full-write (Description): Likewise.
8772         * modules/safe-read (Description): Likewise.
8773         * modules/safe-write (Description): Likewise.
8774         * modules/strchrnul (Description): Likewise.
8775         * modules/trim (Description): Likewise.
8776         * modules/error (Description): Remove parentheses from symbol
8777         references.
8778         * modules/verror (Description): Likewise.
8779         Reported by Karl Berry.
8780
8781 2007-12-25  Bruno Haible  <bruno@clisp.org>
8782
8783         Fixup after 2007-10-16 commit.
8784         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
8785
8786 2007-12-24  Bruno Haible  <bruno@clisp.org>
8787
8788         Make --enable-relocatable work with DESTDIR.
8789         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
8790         to compute installdir from destprog.
8791         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
8792         also set the RELOC_DESTDIR variable.
8793         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
8794
8795 2007-12-24  Bruno Haible  <bruno@clisp.org>
8796
8797         Fix link error due to xalloc_die().
8798         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
8799         of xreadlink.
8800         * lib/relocwrapper.c: Update comments.
8801         * build-aux/install-reloc: Remove xreadlink.c from file list.
8802         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
8803         xreadlink.c.
8804         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
8805
8806 2007-12-24  Bruno Haible  <bruno@clisp.org>
8807
8808         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
8809         * lib/setenv.h: Remove file.
8810         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
8811         lib/setenv.h.
8812         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
8813         (Depends-on): Add stdlib.
8814         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
8815         gl_FUNC_UNSETENV.
8816         (Include): Replace setenv.h with <stdlib.h>.
8817         * modules/unsetenv: New file.
8818         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
8819         * lib/unsetenv.c: Include <stdlib.h> first.
8820         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
8821         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
8822         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
8823         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
8824         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
8825         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
8826         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
8827         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
8828         * doc/functions/unsetenv.texi: Update.
8829         * modules/xsetenv (Depends-on): Add unsetenv.
8830         * modules/getdate (Depends-on): Likewise.
8831         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
8832         * lib/xsetenv.c: Don't include setenv.h.
8833         * lib/getdate.y: Likewise.
8834         * lib/relocwrapper.c: Likewise.
8835         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
8836         (Depends-on): Add stdlib.
8837         * NEWS: Mention the changes.
8838         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
8839
8840 2007-12-23  Bruno Haible  <bruno@clisp.org>
8841
8842         * lib/memmem.c (memmem): Use lowercase variable names. Tab
8843         indentation.
8844
8845 2007-12-23  Bruno Haible  <bruno@clisp.org>
8846
8847         * lib/c-strcasestr.c: Add more comments.
8848         * lib/c-strstr.c: Likewise.
8849         * lib/mbscasestr.c: Likewise.
8850         * lib/mbsstr.c: Likewise.
8851         * lib/strcasestr.c: Likewise.
8852         * lib/memmem.c: Likewise.
8853
8854 2007-12-23  Bruno Haible  <bruno@clisp.org>
8855
8856         * tests/test-memmem.c: Include <string.h> first.
8857
8858 2007-12-22  Bruno Haible  <bruno@clisp.org>
8859
8860         * gnulib-tool (func_create_testdir): Change $auxdir while generating
8861         the contents of $testsbase.
8862         Reported by Ralf Wildenhues.
8863
8864 2007-12-22  Bruno Haible  <bruno@clisp.org>
8865
8866         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
8867         two variables local_ldadd_before, local_ldadd_last.
8868
8869 2007-12-20  Eric Blake  <ebb9@byu.net>
8870
8871         Work around circular library issue when cross-compiling.
8872         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
8873         that progname.o does not need to pull in rpl_memcmp.
8874
8875 2007-12-19  Eric Blake  <ebb9@byu.net>
8876
8877         Fix memmem to avoid O(n^2) worst-case complexity.
8878         * lib/memmem.c (knuth_morris_pratt): New function.
8879         (memmem): Use it if first few naive iterations fail.
8880         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
8881         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
8882         * modules/memchr (License): Likewise.
8883         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
8884         malloca.
8885         * tests/test-memmem.c: Rewrite, borrowing ideas from
8886         test-mbsstr1.c; the old version wouldn't even compile!
8887         * modules/memmem-tests: New file.
8888         * lib/string.in.h (rpl_memmem): Add declaration.
8889         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
8890         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
8891         REPLACE_MEMMEM.
8892
8893 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
8894
8895         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
8896         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
8897         before any system include files, and undef after them all.  This
8898         should fix a problem on VMS reported by John E. Malmberg in
8899         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
8900
8901 2007-12-17  Eric Blake  <ebb9@byu.net>
8902
8903         Revert addition of verify, for BSD/OS.
8904         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
8905         can't handle large files, for the sake of obsolete platforms.
8906         * modules/fseeko (Depends-on): Remove verify.
8907         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
8908         * doc/functions/ftello.texi (ftello): Likewise.
8909         * doc/functions/fgetpos.texi (fgetpos): Likewise.
8910         Reported by Larry Jones.
8911
8912 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
8913
8914         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
8915         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
8916
8917 2007-12-17  Jim Meyering  <meyering@redhat.com>
8918
8919         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
8920         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
8921         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
8922         * modules/getcwd (Depends-on): Add openat.
8923         Reported by Petr Salinger.
8924
8925 2007-12-17  Bruno Haible  <bruno@clisp.org>
8926
8927         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
8928         avoid a segmentation fault of the configure test on x86_64 systems.
8929
8930 2007-12-15  Jim Meyering  <meyering@redhat.com>
8931
8932         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
8933
8934 2007-12-13  Eric Blake  <ebb9@byu.net>
8935
8936         Another fseek test.
8937         * tests/test-fseek.c (main): Also test ungetc handling.
8938         * tests/test-fseeko.c (main): Likewise.
8939         * modules/fseeko (Depends-on): Add verify.
8940         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
8941         large.
8942         Reported by Larry Jones.
8943
8944         Fix fseeko on mingw.
8945         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
8946         seek.
8947
8948         Beef up fseek tests.
8949         * tests/test-fseek.c (main): Also test eof handling.
8950         * tests/test-fseeko.c (main): Likewise.
8951         Reported by Larry Jones.
8952
8953 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
8954
8955         Fix fseeko on BSD-based platforms.
8956         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
8957         successful seek.
8958
8959 2007-12-12  Eric Blake  <ebb9@byu.net>
8960
8961         Allow circular dependency of separate libtests.a
8962         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
8963         when use_libtests.
8964
8965 2007-12-11  Eric Blake  <ebb9@byu.net>
8966
8967         Fix bug with -0.0L in previous patch.
8968         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
8969         * tests/test-isnan.c (main): Also test on zeroes.
8970         * tests/test-isnanf.c (main): Likewise.
8971         * tests/test-isnanl.h (main): Likewise.
8972
8973         Detect pseudo-denormals on x86 even when cross-compiling.
8974         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
8975         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
8976         invalid bit patterns that happen to satisfy ==.
8977
8978         Avoid link failures with separate libtests.a.
8979         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
8980         last, to satisfy circular dependencies.
8981
8982 2007-12-11  Eric Blake  <ebb9@byu.net>
8983         and Bruno Haible  <bruno@clisp.org>
8984
8985         Fix OpenBSD 4.0 <float.h> handling of long double.
8986         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
8987         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
8988         * doc/headers/float.texi (float.h): Document OpenBSD bug.
8989
8990 2007-12-11  Jim Meyering  <meyering@redhat.com>
8991
8992         * users.txt: Add libvirt.
8993
8994         Support versions of autoconf prior to 2.59c.
8995         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
8996         if it is not already defined.
8997
8998 2007-12-09  Bruno Haible  <bruno@clisp.org>
8999
9000         Let 'gnulib-tool --import' collect sources needed for the tests in
9001         tests/ rather than in lib/.
9002         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
9003         argument. If true, add rules to generate libtests.a, and put libtests.a
9004         into $(LDADD). Consider source files in subdirectories and set
9005         uses_subdirs.
9006         (func_emit_initmacro_start, func_emit_initmacro_end,
9007         func_emit_initmacro_done): Pass all arguments explicitly.
9008         (func_import): Determine two module lists main_modules,
9009         testsrelated_modules. Determine use_libtests. Determine two variables
9010         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
9011         instead of just sed_transform_lib_file. Determine two variables
9012         main_files and testsrelated_files. Compute 'files' as the union of
9013         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
9014         func_add_or_update. In the generated gnulib-comp.m4, collect the
9015         object files for tests/ in different variables than those for lib/.
9016         Substitute LIBTESTS_LIBDEPS.
9017         (func_create_testdir): Combine the uses_subdirs results from
9018         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
9019
9020 2007-12-09  Bruno Haible  <bruno@clisp.org>
9021
9022         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
9023         the build-aux directory.
9024
9025 2007-12-09  Bruno Haible  <bruno@clisp.org>
9026
9027         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
9028         introduced on 2006-09-09.
9029
9030 2007-12-07  Jim Meyering  <meyering@redhat.com>
9031
9032         Let these macros work also with autoconf-2.59.
9033         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
9034         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
9035         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
9036
9037 2007-12-06  Jim Meyering  <meyering@redhat.com>
9038
9039         Avoid a configure-time syntax error in gl_FUNC_ACL.
9040         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
9041         function in each branch, before testing the cache variable.
9042
9043 2007-12-04  Eric Blake  <ebb9@byu.net>
9044
9045         Make scripts executable.
9046         * build-aux/config.guess: Add execute permissions.
9047         * build-aux/config.sub: Likewise.
9048         * build-aux/gendocs.sh: Likewise.
9049
9050         Fix frexp on mingw.
9051         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
9052         cross-compiling.
9053         * doc/functions/frexp.texi (frexp): Document the bug.
9054
9055         Make cygwin fseeko check more reliable.
9056         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
9057         version numbers, rather than unrelated feature check.
9058         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
9059         * doc/functions/ftello.texi (ftello): Likewise.
9060         Reported by Bruno Haible.
9061
9062         * m4/strerror.m4: Bump version number.
9063
9064 2007-12-03  Bruno Haible  <bruno@clisp.org>
9065
9066         * doc/functions/mprotect.texi: Mention the mingw problem.
9067
9068 2007-12-03  Eric Blake  <ebb9@byu.net>
9069
9070         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
9071         REPLACE_STRERROR is initialized before this macro.
9072
9073 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
9074
9075         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
9076         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
9077         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
9078         put -lsec in even for programs other than 'ls'.  This fixes a problem
9079         for gettext reported by Bruno Haible in
9080         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
9081         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
9082         Add support for Solaris 10.  This isn't efficient, but should get the
9083         job done for now.
9084
9085 2007-12-03  James Youngman  <jay@gnu.org>
9086
9087         * doc/regexprops-generic.texi: change "an close-group" to "a
9088         close-group" and "illegal" to "not allowed".
9089
9090 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9091
9092         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
9093         pr_byname.h. Needed for the rare case when the maintainer has done
9094         "make maintainer-clean" in the source directory and then attempts a
9095         build outside the source directory.
9096         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
9097         scripts_byname.h.
9098
9099 2007-12-02  Martin Lambers <marlam@marlam.de>
9100             Bruno Haible  <bruno@clisp.org>
9101
9102         * lib/getpagesize.h: Remove file.
9103         * lib/unistd.in.h: Include declaration of getpagesize here.
9104         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
9105         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
9106         HAVE_SYS_PARAM_H.
9107         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
9108         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
9109         * modules/getpagesize (Files): Remove lib/getpagesize.h.
9110         (Depends-on): Add unistd.
9111         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
9112         (Include): Use <unistd.h> instead of getpagesize.h.
9113         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
9114         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
9115         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
9116         gl_GETPAGESIZE invocation, already handled by module dependency.
9117         * lib/pagealign_alloc.c: Don't include getpagesize.h.
9118
9119 2007-12-02  Bruno Haible  <bruno@clisp.org>
9120
9121         * modules/strings-tests: New file.
9122         * tests/test-strings.c: New file.
9123
9124         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
9125         * lib/strings.in.h: New file.
9126         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
9127         * m4/strings_h.m4: New file.
9128         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
9129         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
9130         * modules/strings: New file.
9131         * modules/string (Makefile.am): Update.
9132         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
9133         Reported by Karl Berry.
9134
9135 2007-12-01  Eric Blake  <ebb9@byu.net>
9136
9137         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
9138         accomodate fix in cygwin 1.5.25.
9139
9140 2007-12-01  Jim Meyering  <meyering@redhat.com>
9141
9142         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
9143         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
9144         that would inhibit utf8-optimization of a regexp containing line-
9145         or buffer-anchors, e.g., `^', `$'.
9146
9147 2007-11-30  Bruno Haible  <bruno@clisp.org>
9148
9149         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
9150         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
9151         glthread_recursive_lock_init.
9152         * lib/lock.c (glthread_recursive_lock_init)
9153         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
9154         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
9155
9156 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
9157
9158         New function qset_acl, like set_acl but with syscall semantics.
9159         * lib/acl.h (qset_acl): New decl.
9160         * lib/acl.c (qset_acl): New function.
9161         (set_acl): Use new function.  Use more-consistent diagnostics.
9162
9163 2007-11-28  Jim Meyering  <meyering@redhat.com>
9164
9165         * modules/physmem (License): Change from GPL to LGPLv2+.
9166
9167 2007-11-26  Bruno Haible  <bruno@clisp.org>
9168
9169         * lib/vasnprintf.c (decode_long_double): Don't abort if the
9170         'long double' type has excess precision.
9171         Reported by Jim Meyering in
9172         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
9173
9174 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9175
9176         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
9177         Sync from <http://gnu.org/licenses>.
9178         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
9179         with license text from same location.
9180         * doc/maintain.texi, doc/standards.texi:  Sync from
9181         <http://savannah.gnu.org/projects/gnustandards>.
9182
9183 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
9184         and Jim Meyering  <meyering@redhat.com>
9185
9186         Adjust getdate' grammar to accept a slightly more regular language.
9187         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
9188         Before, the former was rejected.
9189         * lib/getdate.y (digits_to_date_time): New function, factored
9190         out of ...
9191         (number): ...here.  Just call digits_to_date_time.
9192         (hybrid): New non-terminal to handle an <unsigned number,
9193         signed relative offset> sequence consistently.
9194
9195 2007-11-18  Jim Meyering  <meyering@redhat.com>
9196
9197         Pull my changes from coreutils:
9198         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
9199         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
9200         use of $gnulib_tool_option_extras, so that it's separated from the
9201         preceding argument.
9202
9203         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
9204         * build-aux/bootstrap (cp_mark_as_generated): Create any required
9205         parent destination directories before copying a file into place.
9206
9207 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
9208
9209         bootstrap: work also with 4-argument variant of AC_INIT
9210         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
9211
9212 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
9213
9214         Port test-getaddrinfo to Solaris.
9215         Problem reported by Bruno Haible in
9216         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
9217         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
9218         explanation of setting 'hints'.
9219         Don't reject an implementation merely because it returns EAI_SERVICE.
9220         (EAI_SERVICE): Define to 0 if not defined.
9221
9222 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
9223
9224         The license of gnu-make and posix-shell is now "GPLed build tool".
9225         * modules/gnu-make (License): Likewise.
9226         * modules/posix-shell (License): Likewise.
9227
9228         New module posix-shell, for determining a POSIX shell
9229         or perhaps something that is close enough to a POSIX shell.
9230         * m4/posix-shell.m4: New file.
9231         * modules/posix-shell: New file.
9232
9233         * MODULES.html.sh: Mention new module.
9234
9235         New module gnu-make, for determining whether we're using GNU Make.
9236         * m4/gnu-make.m4: New file.
9237         * modules/gnu-make: New file.
9238         * MODULES.html.sh: Mention new module.
9239
9240 2007-11-14  Jim Meyering  <meyering@redhat.com>
9241
9242         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
9243         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
9244         use this macro to create a function _definition_.
9245         Remove useless "#undef ARGMATCH_DIE".
9246
9247 2007-11-14  Bruno Haible  <bruno@clisp.org>
9248
9249         * lib/config.charset: Update for OpenBSD 4.1.
9250         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
9251
9252 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
9253
9254         Document 64-bit #if problems in stdint.texi.
9255         * doc/headers/stdint.texi (stdint.h): Mention problems with
9256         64-bit-#if, and how to work around them.
9257
9258         Don't insist on 'long long int' support in the preprocessor.  It
9259         breaks too many things.  For example, PRIdMAX still uses a 'long
9260         long int' format with the latest Sun compiler, even though
9261         HAVE_LONG_LONG_INT isn't defined due to that compiler's
9262         preprocessor problem.  This causes the latest coreutils to dump
9263         core on Solaris 10 sparc with the Sun C compiler.
9264         Instead, fix the 2007-10-16 problem in a different way, by evaluating
9265         the troublesome expressions at configure-time, not at #if-time.
9266         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
9267         preprocessor.
9268         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
9269         compile-time C checks, done at 'configure'-time.
9270         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
9271         * modules/inttypes (Makefile): Substitute the new symbols that
9272         gl_INTTYPES_H now generates.
9273         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
9274
9275 2007-11-12  Bruno Haible  <bruno@clisp.org>
9276
9277         Tests for Unicode character classification functions.
9278
9279         * modules/unictype/bidicategory-byname-tests: New file.
9280         * modules/unictype/bidicategory-name-tests: New file.
9281         * modules/unictype/bidicategory-of-tests: New file.
9282         * modules/unictype/bidicategory-test-tests: New file.
9283         * modules/unictype/block-list-tests: New file.
9284         * modules/unictype/block-of-tests: New file.
9285         * modules/unictype/block-test-tests: New file.
9286         * modules/unictype/category-C-tests: New file.
9287         * modules/unictype/category-Cc-tests: New file.
9288         * modules/unictype/category-Cf-tests: New file.
9289         * modules/unictype/category-Cn-tests: New file.
9290         * modules/unictype/category-Co-tests: New file.
9291         * modules/unictype/category-Cs-tests: New file.
9292         * modules/unictype/category-L-tests: New file.
9293         * modules/unictype/category-Ll-tests: New file.
9294         * modules/unictype/category-Lm-tests: New file.
9295         * modules/unictype/category-Lo-tests: New file.
9296         * modules/unictype/category-Lt-tests: New file.
9297         * modules/unictype/category-Lu-tests: New file.
9298         * modules/unictype/category-M-tests: New file.
9299         * modules/unictype/category-Mc-tests: New file.
9300         * modules/unictype/category-Me-tests: New file.
9301         * modules/unictype/category-Mn-tests: New file.
9302         * modules/unictype/category-N-tests: New file.
9303         * modules/unictype/category-Nd-tests: New file.
9304         * modules/unictype/category-Nl-tests: New file.
9305         * modules/unictype/category-No-tests: New file.
9306         * modules/unictype/category-P-tests: New file.
9307         * modules/unictype/category-Pc-tests: New file.
9308         * modules/unictype/category-Pd-tests: New file.
9309         * modules/unictype/category-Pe-tests: New file.
9310         * modules/unictype/category-Pf-tests: New file.
9311         * modules/unictype/category-Pi-tests: New file.
9312         * modules/unictype/category-Po-tests: New file.
9313         * modules/unictype/category-Ps-tests: New file.
9314         * modules/unictype/category-S-tests: New file.
9315         * modules/unictype/category-Sc-tests: New file.
9316         * modules/unictype/category-Sk-tests: New file.
9317         * modules/unictype/category-Sm-tests: New file.
9318         * modules/unictype/category-So-tests: New file.
9319         * modules/unictype/category-Z-tests: New file.
9320         * modules/unictype/category-Zl-tests: New file.
9321         * modules/unictype/category-Zp-tests: New file.
9322         * modules/unictype/category-Zs-tests: New file.
9323         * modules/unictype/category-and-not-tests: New file.
9324         * modules/unictype/category-and-tests: New file.
9325         * modules/unictype/category-byname-tests: New file.
9326         * modules/unictype/category-name-tests: New file.
9327         * modules/unictype/category-none-tests: New file.
9328         * modules/unictype/category-of-tests: New file.
9329         * modules/unictype/category-or-tests: New file.
9330         * modules/unictype/category-test-withtable-tests: New file.
9331         * modules/unictype/combining-class-tests: New file.
9332         * modules/unictype/ctype-alnum-tests: New file.
9333         * modules/unictype/ctype-alpha-tests: New file.
9334         * modules/unictype/ctype-blank-tests: New file.
9335         * modules/unictype/ctype-cntrl-tests: New file.
9336         * modules/unictype/ctype-digit-tests: New file.
9337         * modules/unictype/ctype-graph-tests: New file.
9338         * modules/unictype/ctype-lower-tests: New file.
9339         * modules/unictype/ctype-print-tests: New file.
9340         * modules/unictype/ctype-punct-tests: New file.
9341         * modules/unictype/ctype-space-tests: New file.
9342         * modules/unictype/ctype-upper-tests: New file.
9343         * modules/unictype/ctype-xdigit-tests: New file.
9344         * modules/unictype/decimal-digit-tests: New file.
9345         * modules/unictype/digit-tests: New file.
9346         * modules/unictype/mirror-tests: New file.
9347         * modules/unictype/numeric-tests: New file.
9348         * modules/unictype/property-alphabetic-tests: New file.
9349         * modules/unictype/property-ascii-hex-digit-tests: New file.
9350         * modules/unictype/property-bidi-arabic-digit-tests: New file.
9351         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
9352         * modules/unictype/property-bidi-block-separator-tests: New file.
9353         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
9354         * modules/unictype/property-bidi-common-separator-tests: New file.
9355         * modules/unictype/property-bidi-control-tests: New file.
9356         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
9357         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
9358         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
9359         * modules/unictype/property-bidi-european-digit-tests: New file.
9360         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
9361         * modules/unictype/property-bidi-left-to-right-tests: New file.
9362         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
9363         * modules/unictype/property-bidi-other-neutral-tests: New file.
9364         * modules/unictype/property-bidi-pdf-tests: New file.
9365         * modules/unictype/property-bidi-segment-separator-tests: New file.
9366         * modules/unictype/property-bidi-whitespace-tests: New file.
9367         * modules/unictype/property-byname-tests: New file.
9368         * modules/unictype/property-combining-tests: New file.
9369         * modules/unictype/property-composite-tests: New file.
9370         * modules/unictype/property-currency-symbol-tests: New file.
9371         * modules/unictype/property-dash-tests: New file.
9372         * modules/unictype/property-decimal-digit-tests: New file.
9373         * modules/unictype/property-default-ignorable-code-point-tests: New file.
9374         * modules/unictype/property-deprecated-tests: New file.
9375         * modules/unictype/property-diacritic-tests: New file.
9376         * modules/unictype/property-extender-tests: New file.
9377         * modules/unictype/property-format-control-tests: New file.
9378         * modules/unictype/property-grapheme-base-tests: New file.
9379         * modules/unictype/property-grapheme-extend-tests: New file.
9380         * modules/unictype/property-grapheme-link-tests: New file.
9381         * modules/unictype/property-hex-digit-tests: New file.
9382         * modules/unictype/property-hyphen-tests: New file.
9383         * modules/unictype/property-id-continue-tests: New file.
9384         * modules/unictype/property-id-start-tests: New file.
9385         * modules/unictype/property-ideographic-tests: New file.
9386         * modules/unictype/property-ids-binary-operator-tests: New file.
9387         * modules/unictype/property-ids-trinary-operator-tests: New file.
9388         * modules/unictype/property-ignorable-control-tests: New file.
9389         * modules/unictype/property-iso-control-tests: New file.
9390         * modules/unictype/property-join-control-tests: New file.
9391         * modules/unictype/property-left-of-pair-tests: New file.
9392         * modules/unictype/property-line-separator-tests: New file.
9393         * modules/unictype/property-logical-order-exception-tests: New file.
9394         * modules/unictype/property-lowercase-tests: New file.
9395         * modules/unictype/property-math-tests: New file.
9396         * modules/unictype/property-non-break-tests: New file.
9397         * modules/unictype/property-not-a-character-tests: New file.
9398         * modules/unictype/property-numeric-tests: New file.
9399         * modules/unictype/property-other-alphabetic-tests: New file.
9400         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
9401         * modules/unictype/property-other-grapheme-extend-tests: New file.
9402         * modules/unictype/property-other-id-continue-tests: New file.
9403         * modules/unictype/property-other-id-start-tests: New file.
9404         * modules/unictype/property-other-lowercase-tests: New file.
9405         * modules/unictype/property-other-math-tests: New file.
9406         * modules/unictype/property-other-uppercase-tests: New file.
9407         * modules/unictype/property-paired-punctuation-tests: New file.
9408         * modules/unictype/property-paragraph-separator-tests: New file.
9409         * modules/unictype/property-pattern-syntax-tests: New file.
9410         * modules/unictype/property-pattern-white-space-tests: New file.
9411         * modules/unictype/property-private-use-tests: New file.
9412         * modules/unictype/property-punctuation-tests: New file.
9413         * modules/unictype/property-quotation-mark-tests: New file.
9414         * modules/unictype/property-radical-tests: New file.
9415         * modules/unictype/property-sentence-terminal-tests: New file.
9416         * modules/unictype/property-soft-dotted-tests: New file.
9417         * modules/unictype/property-space-tests: New file.
9418         * modules/unictype/property-terminal-punctuation-tests: New file.
9419         * modules/unictype/property-test-tests: New file.
9420         * modules/unictype/property-titlecase-tests: New file.
9421         * modules/unictype/property-unassigned-code-value-tests: New file.
9422         * modules/unictype/property-unified-ideograph-tests: New file.
9423         * modules/unictype/property-uppercase-tests: New file.
9424         * modules/unictype/property-variation-selector-tests: New file.
9425         * modules/unictype/property-white-space-tests: New file.
9426         * modules/unictype/property-xid-continue-tests: New file.
9427         * modules/unictype/property-xid-start-tests: New file.
9428         * modules/unictype/property-zero-width-tests: New file.
9429         * modules/unictype/scripts-tests: New file.
9430         * modules/unictype/syntax-c-ident-tests: New file.
9431         * modules/unictype/syntax-c-whitespace-tests: New file.
9432         * modules/unictype/syntax-java-ident-tests: New file.
9433         * modules/unictype/syntax-java-whitespace-tests: New file.
9434         * tests/unictype/test-bidi_byname.c: New file.
9435         * tests/unictype/test-bidi_name.c: New file.
9436         * tests/unictype/test-bidi_of.c: New file.
9437         * tests/unictype/test-bidi_test.c: New file.
9438         * tests/unictype/test-block_list.c: New file.
9439         * tests/unictype/test-block_of.c: New file.
9440         * tests/unictype/test-block_test.c: New file.
9441         * tests/unictype/test-categ_and.c: New file.
9442         * tests/unictype/test-categ_and_not.c: New file.
9443         * tests/unictype/test-categ_byname.c: New file.
9444         * tests/unictype/test-categ_name.c: New file.
9445         * tests/unictype/test-categ_none.c: New file.
9446         * tests/unictype/test-categ_of.c: New file.
9447         * tests/unictype/test-categ_or.c: New file.
9448         * tests/unictype/test-categ_test_withtable.c: New file.
9449         * tests/unictype/test-combining.c: New file.
9450         * tests/unictype/test-decdigit.c: New file.
9451         * tests/unictype/test-digit.c: New file.
9452         * tests/unictype/test-mirror.c: New file.
9453         * tests/unictype/test-numeric.c: New file.
9454         * tests/unictype/test-pr_byname.c: New file.
9455         * tests/unictype/test-pr_test.c: New file.
9456         * tests/unictype/test-predicate-part1.h: New file.
9457         * tests/unictype/test-predicate-part2.h: New file.
9458         * tests/unictype/test-scripts.c: New file.
9459         * tests/unictype/test-sy_c_ident.c: New file.
9460         * tests/unictype/test-sy_java_ident.c: New file.
9461
9462         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
9463         for Unicode 5.0.0.
9464         * tests/unictype/test-categ_Cc.c: Likewise.
9465         * tests/unictype/test-categ_Cf.c: Likewise.
9466         * tests/unictype/test-categ_Cn.c: Likewise.
9467         * tests/unictype/test-categ_Co.c: Likewise.
9468         * tests/unictype/test-categ_Cs.c: Likewise.
9469         * tests/unictype/test-categ_L.c: Likewise.
9470         * tests/unictype/test-categ_Ll.c: Likewise.
9471         * tests/unictype/test-categ_Lm.c: Likewise.
9472         * tests/unictype/test-categ_Lo.c: Likewise.
9473         * tests/unictype/test-categ_Lt.c: Likewise.
9474         * tests/unictype/test-categ_Lu.c: Likewise.
9475         * tests/unictype/test-categ_M.c: Likewise.
9476         * tests/unictype/test-categ_Mc.c: Likewise.
9477         * tests/unictype/test-categ_Me.c: Likewise.
9478         * tests/unictype/test-categ_Mn.c: Likewise.
9479         * tests/unictype/test-categ_N.c: Likewise.
9480         * tests/unictype/test-categ_Nd.c: Likewise.
9481         * tests/unictype/test-categ_Nl.c: Likewise.
9482         * tests/unictype/test-categ_No.c: Likewise.
9483         * tests/unictype/test-categ_P.c: Likewise.
9484         * tests/unictype/test-categ_Pc.c: Likewise.
9485         * tests/unictype/test-categ_Pd.c: Likewise.
9486         * tests/unictype/test-categ_Pe.c: Likewise.
9487         * tests/unictype/test-categ_Pf.c: Likewise.
9488         * tests/unictype/test-categ_Pi.c: Likewise.
9489         * tests/unictype/test-categ_Po.c: Likewise.
9490         * tests/unictype/test-categ_Ps.c: Likewise.
9491         * tests/unictype/test-categ_S.c: Likewise.
9492         * tests/unictype/test-categ_Sc.c: Likewise.
9493         * tests/unictype/test-categ_Sk.c: Likewise.
9494         * tests/unictype/test-categ_Sm.c: Likewise.
9495         * tests/unictype/test-categ_So.c: Likewise.
9496         * tests/unictype/test-categ_Z.c: Likewise.
9497         * tests/unictype/test-categ_Zl.c: Likewise.
9498         * tests/unictype/test-categ_Zp.c: Likewise.
9499         * tests/unictype/test-categ_Zs.c: Likewise.
9500         * tests/unictype/test-ctype_alnum.c: Likewise.
9501         * tests/unictype/test-ctype_alpha.c: Likewise.
9502         * tests/unictype/test-ctype_blank.c: Likewise.
9503         * tests/unictype/test-ctype_cntrl.c: Likewise.
9504         * tests/unictype/test-ctype_digit.c: Likewise.
9505         * tests/unictype/test-ctype_graph.c: Likewise.
9506         * tests/unictype/test-ctype_lower.c: Likewise.
9507         * tests/unictype/test-ctype_print.c: Likewise.
9508         * tests/unictype/test-ctype_punct.c: Likewise.
9509         * tests/unictype/test-ctype_space.c: Likewise.
9510         * tests/unictype/test-ctype_upper.c: Likewise.
9511         * tests/unictype/test-ctype_xdigit.c: Likewise.
9512         * tests/unictype/test-decdigit.h: Likewise.
9513         * tests/unictype/test-digit.h: Likewise.
9514         * tests/unictype/test-numeric.h: Likewise.
9515         * tests/unictype/test-pr_alphabetic.c: Likewise.
9516         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
9517         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
9518         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
9519         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
9520         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
9521         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
9522         * tests/unictype/test-pr_bidi_control.c: Likewise.
9523         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
9524         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
9525         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
9526         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
9527         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
9528         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
9529         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
9530         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
9531         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
9532         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
9533         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
9534         * tests/unictype/test-pr_combining.c: Likewise.
9535         * tests/unictype/test-pr_composite.c: Likewise.
9536         * tests/unictype/test-pr_currency_symbol.c: Likewise.
9537         * tests/unictype/test-pr_dash.c: Likewise.
9538         * tests/unictype/test-pr_decimal_digit.c: Likewise.
9539         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
9540         * tests/unictype/test-pr_deprecated.c: Likewise.
9541         * tests/unictype/test-pr_diacritic.c: Likewise.
9542         * tests/unictype/test-pr_extender.c: Likewise.
9543         * tests/unictype/test-pr_format_control.c: Likewise.
9544         * tests/unictype/test-pr_grapheme_base.c: Likewise.
9545         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
9546         * tests/unictype/test-pr_grapheme_link.c: Likewise.
9547         * tests/unictype/test-pr_hex_digit.c: Likewise.
9548         * tests/unictype/test-pr_hyphen.c: Likewise.
9549         * tests/unictype/test-pr_id_continue.c: Likewise.
9550         * tests/unictype/test-pr_id_start.c: Likewise.
9551         * tests/unictype/test-pr_ideographic.c: Likewise.
9552         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
9553         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
9554         * tests/unictype/test-pr_ignorable_control.c: Likewise.
9555         * tests/unictype/test-pr_iso_control.c: Likewise.
9556         * tests/unictype/test-pr_join_control.c: Likewise.
9557         * tests/unictype/test-pr_left_of_pair.c: Likewise.
9558         * tests/unictype/test-pr_line_separator.c: Likewise.
9559         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
9560         * tests/unictype/test-pr_lowercase.c: Likewise.
9561         * tests/unictype/test-pr_math.c: Likewise.
9562         * tests/unictype/test-pr_non_break.c: Likewise.
9563         * tests/unictype/test-pr_not_a_character.c: Likewise.
9564         * tests/unictype/test-pr_numeric.c: Likewise.
9565         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
9566         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
9567         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
9568         * tests/unictype/test-pr_other_id_continue.c: Likewise.
9569         * tests/unictype/test-pr_other_id_start.c: Likewise.
9570         * tests/unictype/test-pr_other_lowercase.c: Likewise.
9571         * tests/unictype/test-pr_other_math.c: Likewise.
9572         * tests/unictype/test-pr_other_uppercase.c: Likewise.
9573         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
9574         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
9575         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
9576         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
9577         * tests/unictype/test-pr_private_use.c: Likewise.
9578         * tests/unictype/test-pr_punctuation.c: Likewise.
9579         * tests/unictype/test-pr_quotation_mark.c: Likewise.
9580         * tests/unictype/test-pr_radical.c: Likewise.
9581         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
9582         * tests/unictype/test-pr_soft_dotted.c: Likewise.
9583         * tests/unictype/test-pr_space.c: Likewise.
9584         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
9585         * tests/unictype/test-pr_titlecase.c: Likewise.
9586         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
9587         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
9588         * tests/unictype/test-pr_uppercase.c: Likewise.
9589         * tests/unictype/test-pr_variation_selector.c: Likewise.
9590         * tests/unictype/test-pr_white_space.c: Likewise.
9591         * tests/unictype/test-pr_xid_continue.c: Likewise.
9592         * tests/unictype/test-pr_xid_start.c: Likewise.
9593         * tests/unictype/test-pr_zero_width.c: Likewise.
9594         * tests/unictype/test-sy_c_whitespace.c: Likewise.
9595         * tests/unictype/test-sy_java_whitespace.c: Likewise.
9596
9597 2007-11-12  Bruno Haible  <bruno@clisp.org>
9598
9599         Unicode character classification functions.
9600         * lib/unictype.h: New file.
9601         * modules/unictype/base: New file.
9602         * modules/unictype/category-L: New file.
9603         * modules/unictype/category-Lu: New file.
9604         * modules/unictype/category-Ll: New file.
9605         * modules/unictype/category-Lt: New file.
9606         * modules/unictype/category-Lm: New file.
9607         * modules/unictype/category-Lo: New file.
9608         * modules/unictype/category-M: New file.
9609         * modules/unictype/category-Mn: New file.
9610         * modules/unictype/category-Mc: New file.
9611         * modules/unictype/category-Me: New file.
9612         * modules/unictype/category-N: New file.
9613         * modules/unictype/category-Nd: New file.
9614         * modules/unictype/category-Nl: New file.
9615         * modules/unictype/category-No: New file.
9616         * modules/unictype/category-P: New file.
9617         * modules/unictype/category-Pc: New file.
9618         * modules/unictype/category-Pd: New file.
9619         * modules/unictype/category-Ps: New file.
9620         * modules/unictype/category-Pe: New file.
9621         * modules/unictype/category-Pi: New file.
9622         * modules/unictype/category-Pf: New file.
9623         * modules/unictype/category-Po: New file.
9624         * modules/unictype/category-S: New file.
9625         * modules/unictype/category-Sm: New file.
9626         * modules/unictype/category-Sc: New file.
9627         * modules/unictype/category-Sk: New file.
9628         * modules/unictype/category-So: New file.
9629         * modules/unictype/category-Z: New file.
9630         * modules/unictype/category-Zs: New file.
9631         * modules/unictype/category-Zl: New file.
9632         * modules/unictype/category-Zp: New file.
9633         * modules/unictype/category-C: New file.
9634         * modules/unictype/category-Cc: New file.
9635         * modules/unictype/category-Cf: New file.
9636         * modules/unictype/category-Cs: New file.
9637         * modules/unictype/category-Co: New file.
9638         * modules/unictype/category-Cn: New file.
9639         * modules/unictype/category-or: New file.
9640         * modules/unictype/category-of: New file.
9641         * modules/unictype/category-test: New file.
9642         * modules/unictype/category-test-withtable: New file.
9643         * modules/unictype/category-byname: New file.
9644         * modules/unictype/category-none: New file.
9645         * modules/unictype/category-and: New file.
9646         * modules/unictype/category-and-not: New file.
9647         * modules/unictype/category-name: New file.
9648         * modules/unictype/combining-class: New file.
9649         * modules/unictype/category-all: New file.
9650         * modules/unictype/bidicategory-all: New file.
9651         * modules/unictype/bidicategory-byname: New file.
9652         * modules/unictype/bidicategory-name: New file.
9653         * modules/unictype/bidicategory-of: New file.
9654         * modules/unictype/bidicategory-test: New file.
9655         * modules/unictype/decimal-digit: New file.
9656         * modules/unictype/digit: New file.
9657         * modules/unictype/numeric: New file.
9658         * modules/unictype/mirror: New file.
9659         * modules/unictype/property-white-space: New file.
9660         * modules/unictype/property-alphabetic: New file.
9661         * modules/unictype/property-other-alphabetic: New file.
9662         * modules/unictype/property-not-a-character: New file.
9663         * modules/unictype/property-default-ignorable-code-point: New file.
9664         * modules/unictype/property-other-default-ignorable-code-point: New
9665         file.
9666         * modules/unictype/property-deprecated: New file.
9667         * modules/unictype/property-logical-order-exception: New file.
9668         * modules/unictype/property-variation-selector: New file.
9669         * modules/unictype/property-private-use: New file.
9670         * modules/unictype/property-unassigned-code-value: New file.
9671         * modules/unictype/property-uppercase: New file.
9672         * modules/unictype/property-other-uppercase: New file.
9673         * modules/unictype/property-lowercase: New file.
9674         * modules/unictype/property-other-lowercase: New file.
9675         * modules/unictype/property-titlecase: New file.
9676         * modules/unictype/property-soft-dotted: New file.
9677         * modules/unictype/property-id-start: New file.
9678         * modules/unictype/property-other-id-start: New file.
9679         * modules/unictype/property-id-continue: New file.
9680         * modules/unictype/property-other-id-continue: New file.
9681         * modules/unictype/property-xid-start: New file.
9682         * modules/unictype/property-xid-continue: New file.
9683         * modules/unictype/property-pattern-white-space: New file.
9684         * modules/unictype/property-pattern-syntax: New file.
9685         * modules/unictype/property-join-control: New file.
9686         * modules/unictype/property-grapheme-base: New file.
9687         * modules/unictype/property-grapheme-extend: New file.
9688         * modules/unictype/property-other-grapheme-extend: New file.
9689         * modules/unictype/property-grapheme-link: New file.
9690         * modules/unictype/property-bidi-control: New file.
9691         * modules/unictype/property-bidi-left-to-right: New file.
9692         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
9693         * modules/unictype/property-bidi-arabic-right-to-left: New file.
9694         * modules/unictype/property-bidi-european-digit: New file.
9695         * modules/unictype/property-bidi-eur-num-separator: New file.
9696         * modules/unictype/property-bidi-eur-num-terminator: New file.
9697         * modules/unictype/property-bidi-arabic-digit: New file.
9698         * modules/unictype/property-bidi-common-separator: New file.
9699         * modules/unictype/property-bidi-block-separator: New file.
9700         * modules/unictype/property-bidi-segment-separator: New file.
9701         * modules/unictype/property-bidi-whitespace: New file.
9702         * modules/unictype/property-bidi-non-spacing-mark: New file.
9703         * modules/unictype/property-bidi-boundary-neutral: New file.
9704         * modules/unictype/property-bidi-pdf: New file.
9705         * modules/unictype/property-bidi-embedding-or-override: New file.
9706         * modules/unictype/property-bidi-other-neutral: New file.
9707         * modules/unictype/property-hex-digit: New file.
9708         * modules/unictype/property-ascii-hex-digit: New file.
9709         * modules/unictype/property-ideographic: New file.
9710         * modules/unictype/property-unified-ideograph: New file.
9711         * modules/unictype/property-radical: New file.
9712         * modules/unictype/property-ids-binary-operator: New file.
9713         * modules/unictype/property-ids-trinary-operator: New file.
9714         * modules/unictype/property-zero-width: New file.
9715         * modules/unictype/property-space: New file.
9716         * modules/unictype/property-non-break: New file.
9717         * modules/unictype/property-iso-control: New file.
9718         * modules/unictype/property-format-control: New file.
9719         * modules/unictype/property-dash: New file.
9720         * modules/unictype/property-hyphen: New file.
9721         * modules/unictype/property-punctuation: New file.
9722         * modules/unictype/property-line-separator: New file.
9723         * modules/unictype/property-paragraph-separator: New file.
9724         * modules/unictype/property-quotation-mark: New file.
9725         * modules/unictype/property-sentence-terminal: New file.
9726         * modules/unictype/property-terminal-punctuation: New file.
9727         * modules/unictype/property-currency-symbol: New file.
9728         * modules/unictype/property-math: New file.
9729         * modules/unictype/property-other-math: New file.
9730         * modules/unictype/property-paired-punctuation: New file.
9731         * modules/unictype/property-left-of-pair: New file.
9732         * modules/unictype/property-combining: New file.
9733         * modules/unictype/property-composite: New file.
9734         * modules/unictype/property-decimal-digit: New file.
9735         * modules/unictype/property-numeric: New file.
9736         * modules/unictype/property-diacritic: New file.
9737         * modules/unictype/property-extender: New file.
9738         * modules/unictype/property-ignorable-control: New file.
9739         * modules/unictype/property-test: New file.
9740         * modules/unictype/property-byname: New file.
9741         * modules/unictype/property-all: New file.
9742         * modules/unictype/scripts: New file.
9743         * modules/unictype/scripts-all: New file.
9744         * modules/unictype/block-of: New file.
9745         * modules/unictype/block-test: New file.
9746         * modules/unictype/block-list: New file.
9747         * modules/unictype/block-all: New file.
9748         * modules/unictype/syntax-c-whitespace: New file.
9749         * modules/unictype/syntax-java-whitespace: New file.
9750         * modules/unictype/syntax-c-ident: New file.
9751         * modules/unictype/syntax-java-ident: New file.
9752         * modules/unictype/ctype-alnum: New file.
9753         * modules/unictype/ctype-alpha: New file.
9754         * modules/unictype/ctype-cntrl: New file.
9755         * modules/unictype/ctype-digit: New file.
9756         * modules/unictype/ctype-graph: New file.
9757         * modules/unictype/ctype-lower: New file.
9758         * modules/unictype/ctype-print: New file.
9759         * modules/unictype/ctype-punct: New file.
9760         * modules/unictype/ctype-space: New file.
9761         * modules/unictype/ctype-upper: New file.
9762         * modules/unictype/ctype-xdigit: New file.
9763         * modules/unictype/ctype-blank: New file.
9764         * lib/unictype/bidi_byname.c: New file.
9765         * lib/unictype/bidi_name.c: New file.
9766         * lib/unictype/bidi_of.c: New file.
9767         * lib/unictype/bidi_test.c: New file.
9768         * lib/unictype/bitmap.h: New file.
9769         * lib/unictype/block_test.c: New file.
9770         * lib/unictype/blocks.c: New file.
9771         * lib/unictype/categ_C.c: New file.
9772         * lib/unictype/categ_Cc.c: New file.
9773         * lib/unictype/categ_Cf.c: New file.
9774         * lib/unictype/categ_Cn.c: New file.
9775         * lib/unictype/categ_Co.c: New file.
9776         * lib/unictype/categ_Cs.c: New file.
9777         * lib/unictype/categ_L.c: New file.
9778         * lib/unictype/categ_Ll.c: New file.
9779         * lib/unictype/categ_Lm.c: New file.
9780         * lib/unictype/categ_Lo.c: New file.
9781         * lib/unictype/categ_Lt.c: New file.
9782         * lib/unictype/categ_Lu.c: New file.
9783         * lib/unictype/categ_M.c: New file.
9784         * lib/unictype/categ_Mc.c: New file.
9785         * lib/unictype/categ_Me.c: New file.
9786         * lib/unictype/categ_Mn.c: New file.
9787         * lib/unictype/categ_N.c: New file.
9788         * lib/unictype/categ_Nd.c: New file.
9789         * lib/unictype/categ_Nl.c: New file.
9790         * lib/unictype/categ_No.c: New file.
9791         * lib/unictype/categ_P.c: New file.
9792         * lib/unictype/categ_Pc.c: New file.
9793         * lib/unictype/categ_Pd.c: New file.
9794         * lib/unictype/categ_Pe.c: New file.
9795         * lib/unictype/categ_Pf.c: New file.
9796         * lib/unictype/categ_Pi.c: New file.
9797         * lib/unictype/categ_Po.c: New file.
9798         * lib/unictype/categ_Ps.c: New file.
9799         * lib/unictype/categ_S.c: New file.
9800         * lib/unictype/categ_Sc.c: New file.
9801         * lib/unictype/categ_Sk.c: New file.
9802         * lib/unictype/categ_Sm.c: New file.
9803         * lib/unictype/categ_So.c: New file.
9804         * lib/unictype/categ_Z.c: New file.
9805         * lib/unictype/categ_Zl.c: New file.
9806         * lib/unictype/categ_Zp.c: New file.
9807         * lib/unictype/categ_Zs.c: New file.
9808         * lib/unictype/categ_and.c: New file.
9809         * lib/unictype/categ_and_not.c: New file.
9810         * lib/unictype/categ_byname.c: New file.
9811         * lib/unictype/categ_name.c: New file.
9812         * lib/unictype/categ_none.c: New file.
9813         * lib/unictype/categ_of.c: New file.
9814         * lib/unictype/categ_or.c: New file.
9815         * lib/unictype/categ_test.c: New file.
9816         * lib/unictype/combining.c: New file.
9817         * lib/unictype/ctype_alnum.c: New file.
9818         * lib/unictype/ctype_alpha.c: New file.
9819         * lib/unictype/ctype_blank.c: New file.
9820         * lib/unictype/ctype_cntrl.c: New file.
9821         * lib/unictype/ctype_digit.c: New file.
9822         * lib/unictype/ctype_graph.c: New file.
9823         * lib/unictype/ctype_lower.c: New file.
9824         * lib/unictype/ctype_print.c: New file.
9825         * lib/unictype/ctype_punct.c: New file.
9826         * lib/unictype/ctype_space.c: New file.
9827         * lib/unictype/ctype_upper.c: New file.
9828         * lib/unictype/ctype_xdigit.c: New file.
9829         * lib/unictype/decdigit.c: New file.
9830         * lib/unictype/digit.c: New file.
9831         * lib/unictype/identsyntaxmap.h: New file.
9832         * lib/unictype/mirror.c: New file.
9833         * lib/unictype/numeric.c: New file.
9834         * lib/unictype/pr_alphabetic.c: New file.
9835         * lib/unictype/pr_ascii_hex_digit.c: New file.
9836         * lib/unictype/pr_bidi_arabic_digit.c: New file.
9837         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
9838         * lib/unictype/pr_bidi_block_separator.c: New file.
9839         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
9840         * lib/unictype/pr_bidi_common_separator.c: New file.
9841         * lib/unictype/pr_bidi_control.c: New file.
9842         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
9843         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
9844         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
9845         * lib/unictype/pr_bidi_european_digit.c: New file.
9846         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
9847         * lib/unictype/pr_bidi_left_to_right.c: New file.
9848         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
9849         * lib/unictype/pr_bidi_other_neutral.c: New file.
9850         * lib/unictype/pr_bidi_pdf.c: New file.
9851         * lib/unictype/pr_bidi_segment_separator.c: New file.
9852         * lib/unictype/pr_bidi_whitespace.c: New file.
9853         * lib/unictype/pr_byname.c: New file.
9854         * lib/unictype/pr_byname.gperf: New file.
9855         * lib/unictype/pr_combining.c: New file.
9856         * lib/unictype/pr_composite.c: New file.
9857         * lib/unictype/pr_currency_symbol.c: New file.
9858         * lib/unictype/pr_dash.c: New file.
9859         * lib/unictype/pr_decimal_digit.c: New file.
9860         * lib/unictype/pr_default_ignorable_code_point.c: New file.
9861         * lib/unictype/pr_deprecated.c: New file.
9862         * lib/unictype/pr_diacritic.c: New file.
9863         * lib/unictype/pr_extender.c: New file.
9864         * lib/unictype/pr_format_control.c: New file.
9865         * lib/unictype/pr_grapheme_base.c: New file.
9866         * lib/unictype/pr_grapheme_extend.c: New file.
9867         * lib/unictype/pr_grapheme_link.c: New file.
9868         * lib/unictype/pr_hex_digit.c: New file.
9869         * lib/unictype/pr_hyphen.c: New file.
9870         * lib/unictype/pr_id_continue.c: New file.
9871         * lib/unictype/pr_id_start.c: New file.
9872         * lib/unictype/pr_ideographic.c: New file.
9873         * lib/unictype/pr_ids_binary_operator.c: New file.
9874         * lib/unictype/pr_ids_trinary_operator.c: New file.
9875         * lib/unictype/pr_ignorable_control.c: New file.
9876         * lib/unictype/pr_iso_control.c: New file.
9877         * lib/unictype/pr_join_control.c: New file.
9878         * lib/unictype/pr_left_of_pair.c: New file.
9879         * lib/unictype/pr_line_separator.c: New file.
9880         * lib/unictype/pr_logical_order_exception.c: New file.
9881         * lib/unictype/pr_lowercase.c: New file.
9882         * lib/unictype/pr_math.c: New file.
9883         * lib/unictype/pr_non_break.c: New file.
9884         * lib/unictype/pr_not_a_character.c: New file.
9885         * lib/unictype/pr_numeric.c: New file.
9886         * lib/unictype/pr_other_alphabetic.c: New file.
9887         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
9888         * lib/unictype/pr_other_grapheme_extend.c: New file.
9889         * lib/unictype/pr_other_id_continue.c: New file.
9890         * lib/unictype/pr_other_id_start.c: New file.
9891         * lib/unictype/pr_other_lowercase.c: New file.
9892         * lib/unictype/pr_other_math.c: New file.
9893         * lib/unictype/pr_other_uppercase.c: New file.
9894         * lib/unictype/pr_paired_punctuation.c: New file.
9895         * lib/unictype/pr_paragraph_separator.c: New file.
9896         * lib/unictype/pr_pattern_syntax.c: New file.
9897         * lib/unictype/pr_pattern_white_space.c: New file.
9898         * lib/unictype/pr_private_use.c: New file.
9899         * lib/unictype/pr_punctuation.c: New file.
9900         * lib/unictype/pr_quotation_mark.c: New file.
9901         * lib/unictype/pr_radical.c: New file.
9902         * lib/unictype/pr_sentence_terminal.c: New file.
9903         * lib/unictype/pr_soft_dotted.c: New file.
9904         * lib/unictype/pr_space.c: New file.
9905         * lib/unictype/pr_terminal_punctuation.c: New file.
9906         * lib/unictype/pr_test.c: New file.
9907         * lib/unictype/pr_titlecase.c: New file.
9908         * lib/unictype/pr_unassigned_code_value.c: New file.
9909         * lib/unictype/pr_unified_ideograph.c: New file.
9910         * lib/unictype/pr_uppercase.c: New file.
9911         * lib/unictype/pr_variation_selector.c: New file.
9912         * lib/unictype/pr_white_space.c: New file.
9913         * lib/unictype/pr_xid_continue.c: New file.
9914         * lib/unictype/pr_xid_start.c: New file.
9915         * lib/unictype/pr_zero_width.c: New file.
9916         * lib/unictype/scripts.c: New file.
9917         * lib/unictype/sy_c_ident.c: New file.
9918         * lib/unictype/sy_c_whitespace.c: New file.
9919         * lib/unictype/sy_java_ident.c: New file.
9920         * lib/unictype/sy_java_whitespace.c: New file.
9921
9922         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
9923         Unicode 5.0.0.
9924         * lib/unictype/blocks.h: Likewise.
9925         * lib/unictype/categ_C.h: Likewise.
9926         * lib/unictype/categ_Cc.h: Likewise.
9927         * lib/unictype/categ_Cf.h: Likewise.
9928         * lib/unictype/categ_Cn.h: Likewise.
9929         * lib/unictype/categ_Co.h: Likewise.
9930         * lib/unictype/categ_Cs.h: Likewise.
9931         * lib/unictype/categ_L.h: Likewise.
9932         * lib/unictype/categ_Ll.h: Likewise.
9933         * lib/unictype/categ_Lm.h: Likewise.
9934         * lib/unictype/categ_Lo.h: Likewise.
9935         * lib/unictype/categ_Lt.h: Likewise.
9936         * lib/unictype/categ_Lu.h: Likewise.
9937         * lib/unictype/categ_M.h: Likewise.
9938         * lib/unictype/categ_Mc.h: Likewise.
9939         * lib/unictype/categ_Me.h: Likewise.
9940         * lib/unictype/categ_Mn.h: Likewise.
9941         * lib/unictype/categ_N.h: Likewise.
9942         * lib/unictype/categ_Nd.h: Likewise.
9943         * lib/unictype/categ_Nl.h: Likewise.
9944         * lib/unictype/categ_No.h: Likewise.
9945         * lib/unictype/categ_P.h: Likewise.
9946         * lib/unictype/categ_Pc.h: Likewise.
9947         * lib/unictype/categ_Pd.h: Likewise.
9948         * lib/unictype/categ_Pe.h: Likewise.
9949         * lib/unictype/categ_Pf.h: Likewise.
9950         * lib/unictype/categ_Pi.h: Likewise.
9951         * lib/unictype/categ_Po.h: Likewise.
9952         * lib/unictype/categ_Ps.h: Likewise.
9953         * lib/unictype/categ_S.h: Likewise.
9954         * lib/unictype/categ_Sc.h: Likewise.
9955         * lib/unictype/categ_Sk.h: Likewise.
9956         * lib/unictype/categ_Sm.h: Likewise.
9957         * lib/unictype/categ_So.h: Likewise.
9958         * lib/unictype/categ_Z.h: Likewise.
9959         * lib/unictype/categ_Zl.h: Likewise.
9960         * lib/unictype/categ_Zp.h: Likewise.
9961         * lib/unictype/categ_Zs.h: Likewise.
9962         * lib/unictype/categ_of.h: Likewise.
9963         * lib/unictype/combining.h: Likewise.
9964         * lib/unictype/ctype_alnum.h: Likewise.
9965         * lib/unictype/ctype_alpha.h: Likewise.
9966         * lib/unictype/ctype_blank.h: Likewise.
9967         * lib/unictype/ctype_cntrl.h: Likewise.
9968         * lib/unictype/ctype_digit.h: Likewise.
9969         * lib/unictype/ctype_graph.h: Likewise.
9970         * lib/unictype/ctype_lower.h: Likewise.
9971         * lib/unictype/ctype_print.h: Likewise.
9972         * lib/unictype/ctype_punct.h: Likewise.
9973         * lib/unictype/ctype_space.h: Likewise.
9974         * lib/unictype/ctype_upper.h: Likewise.
9975         * lib/unictype/ctype_xdigit.h: Likewise.
9976         * lib/unictype/decdigit.h: Likewise.
9977         * lib/unictype/digit.h: Likewise.
9978         * lib/unictype/mirror.h: Likewise.
9979         * lib/unictype/numeric.h: Likewise.
9980         * lib/unictype/pr_alphabetic.h: Likewise.
9981         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
9982         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
9983         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
9984         * lib/unictype/pr_bidi_block_separator.h: Likewise.
9985         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
9986         * lib/unictype/pr_bidi_common_separator.h: Likewise.
9987         * lib/unictype/pr_bidi_control.h: Likewise.
9988         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
9989         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
9990         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
9991         * lib/unictype/pr_bidi_european_digit.h: Likewise.
9992         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
9993         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
9994         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
9995         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
9996         * lib/unictype/pr_bidi_pdf.h: Likewise.
9997         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
9998         * lib/unictype/pr_bidi_whitespace.h: Likewise.
9999         * lib/unictype/pr_combining.h: Likewise.
10000         * lib/unictype/pr_composite.h: Likewise.
10001         * lib/unictype/pr_currency_symbol.h: Likewise.
10002         * lib/unictype/pr_dash.h: Likewise.
10003         * lib/unictype/pr_decimal_digit.h: Likewise.
10004         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
10005         * lib/unictype/pr_deprecated.h: Likewise.
10006         * lib/unictype/pr_diacritic.h: Likewise.
10007         * lib/unictype/pr_extender.h: Likewise.
10008         * lib/unictype/pr_format_control.h: Likewise.
10009         * lib/unictype/pr_grapheme_base.h: Likewise.
10010         * lib/unictype/pr_grapheme_extend.h: Likewise.
10011         * lib/unictype/pr_grapheme_link.h: Likewise.
10012         * lib/unictype/pr_hex_digit.h: Likewise.
10013         * lib/unictype/pr_hyphen.h: Likewise.
10014         * lib/unictype/pr_id_continue.h: Likewise.
10015         * lib/unictype/pr_id_start.h: Likewise.
10016         * lib/unictype/pr_ideographic.h: Likewise.
10017         * lib/unictype/pr_ids_binary_operator.h: Likewise.
10018         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
10019         * lib/unictype/pr_ignorable_control.h: Likewise.
10020         * lib/unictype/pr_iso_control.h: Likewise.
10021         * lib/unictype/pr_join_control.h: Likewise.
10022         * lib/unictype/pr_left_of_pair.h: Likewise.
10023         * lib/unictype/pr_line_separator.h: Likewise.
10024         * lib/unictype/pr_logical_order_exception.h: Likewise.
10025         * lib/unictype/pr_lowercase.h: Likewise.
10026         * lib/unictype/pr_math.h: Likewise.
10027         * lib/unictype/pr_non_break.h: Likewise.
10028         * lib/unictype/pr_not_a_character.h: Likewise.
10029         * lib/unictype/pr_numeric.h: Likewise.
10030         * lib/unictype/pr_other_alphabetic.h: Likewise.
10031         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
10032         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
10033         * lib/unictype/pr_other_id_continue.h: Likewise.
10034         * lib/unictype/pr_other_id_start.h: Likewise.
10035         * lib/unictype/pr_other_lowercase.h: Likewise.
10036         * lib/unictype/pr_other_math.h: Likewise.
10037         * lib/unictype/pr_other_uppercase.h: Likewise.
10038         * lib/unictype/pr_paired_punctuation.h: Likewise.
10039         * lib/unictype/pr_paragraph_separator.h: Likewise.
10040         * lib/unictype/pr_pattern_syntax.h: Likewise.
10041         * lib/unictype/pr_pattern_white_space.h: Likewise.
10042         * lib/unictype/pr_private_use.h: Likewise.
10043         * lib/unictype/pr_punctuation.h: Likewise.
10044         * lib/unictype/pr_quotation_mark.h: Likewise.
10045         * lib/unictype/pr_radical.h: Likewise.
10046         * lib/unictype/pr_sentence_terminal.h: Likewise.
10047         * lib/unictype/pr_soft_dotted.h: Likewise.
10048         * lib/unictype/pr_space.h: Likewise.
10049         * lib/unictype/pr_terminal_punctuation.h: Likewise.
10050         * lib/unictype/pr_titlecase.h: Likewise.
10051         * lib/unictype/pr_unassigned_code_value.h: Likewise.
10052         * lib/unictype/pr_unified_ideograph.h: Likewise.
10053         * lib/unictype/pr_uppercase.h: Likewise.
10054         * lib/unictype/pr_variation_selector.h: Likewise.
10055         * lib/unictype/pr_white_space.h: Likewise.
10056         * lib/unictype/pr_xid_continue.h: Likewise.
10057         * lib/unictype/pr_xid_start.h: Likewise.
10058         * lib/unictype/pr_zero_width.h: Likewise.
10059         * lib/unictype/scripts.h: Likewise.
10060         * lib/unictype/scripts_byname.gperf: Likewise.
10061         * lib/unictype/sy_c_ident.h: Likewise.
10062         * lib/unictype/sy_c_whitespace.h: Likewise.
10063         * lib/unictype/sy_java_ident.h: Likewise.
10064         * lib/unictype/sy_java_whitespace.h: Likewise.
10065
10066         * lib/unictype/Makefile: New file.
10067         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
10068         glibc.
10069         * lib/unictype/3level.h: New file, copied from glibc.
10070         * lib/unictype/3levelbit.h: New file.
10071
10072 2007-11-11  Bruno Haible  <bruno@clisp.org>
10073
10074         * modules/gperf: New file.
10075         * modules/iconv_open (Depends-on): Add it.
10076         (Makefile.am): Remove the GPERF definition.
10077
10078 2007-11-11  Bruno Haible  <bruno@clisp.org>
10079
10080         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
10081         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
10082
10083 2007-11-11  Bruno Haible  <bruno@clisp.org>
10084
10085         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
10086         (usage): Remove function.
10087
10088 2007-11-11  Bruno Haible  <bruno@clisp.org>
10089
10090         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
10091         gl_FUNC_CEILF_LIBS.
10092         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
10093         gl_FUNC_CEIL_LIBS.
10094         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
10095         gl_FUNC_CEILL_LIBS.
10096         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
10097         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
10098         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
10099
10100 2007-11-11  Bruno Haible  <bruno@clisp.org>
10101
10102         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
10103         roundf were declared but do not exist on functions.
10104         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
10105         roundl were declared but do not exist on functions.
10106         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
10107         HAVE_FLOORL_AND_CEILL, respectively.
10108         Needed for Sun C on Solaris 10.
10109
10110 2007-11-11  Bruno Haible  <bruno@clisp.org>
10111
10112         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
10113         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
10114         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
10115         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
10116         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
10117         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
10118         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
10119         HAVE_DECL_ROUNDF.
10120         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
10121         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
10122         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
10123         of HAVE_DECL_ROUND*.
10124         * modules/math (Makefile.am): Update.
10125
10126 2007-11-10  Bruno Haible  <bruno@clisp.org>
10127
10128         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
10129         ptrdiff_t as m4/intl.m4.
10130
10131 2007-11-10  Jim Meyering  <meyering@redhat.com>
10132
10133         Avoid link failure for the argmatch test.
10134         * tests/test-argmatch.c (usage): Define function to avoid a link
10135         failure: argmatch_die requires a usage function.
10136
10137 2007-11-09  Bruno Haible  <bruno@clisp.org>
10138
10139         * doc/functions/snprintf.texi: Mention BeOS deficiency.
10140         * doc/functions/vsnprintf.texi: Likewise.
10141         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
10142         with a size argument < 2.
10143
10144 2007-11-09  Bruno Haible  <bruno@clisp.org>
10145
10146         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
10147         buffer. Fixes an inefficiency introduced on 2007-11-03.
10148
10149 2007-11-09  Bruno Haible  <bruno@clisp.org>
10150
10151         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
10152         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
10153
10154 2007-11-08  Jim Meyering  <meyering@redhat.com>
10155
10156         Change cache variable name prefix "jm_" to "gl_" everywhere.
10157         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
10158         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
10159         * m4/uptime.m4: s/gl_/jm_/
10160
10161 2007-11-07  Bruno Haible  <bruno@clisp.org>
10162
10163         Update to GNU gettext 0.17.
10164         * m4/intl.m4: Update to GNU gettext 0.17.
10165         * m4/po.m4: Likewise.
10166         * modules/gettext (Files): Remove m4/ulonglong.m4.
10167         (configure.ac): Require gettext infrastructure from version 0.17.
10168
10169 2007-11-06  Bruno Haible  <bruno@clisp.org>
10170
10171         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
10172         symbolic values are not defined in a public header.
10173         * lib/freadable.c (freadable) [QNX]: Likewise.
10174         * lib/freadahead.c (freadahead) [QNX]: Likewise.
10175         * lib/freading.c (freading) [QNX]: Likewise.
10176         * lib/fseterr.c (fseterr) [QNX]: Likewise.
10177         * lib/fwritable.c (fwritable) [QNX]: Likewise.
10178         * lib/fwriting.c (fwriting) [QNX]: Likewise.
10179         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
10180         Reported by Alain Magloire.
10181
10182         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
10183
10184 2007-11-05  Bruno Haible  <bruno@clisp.org>
10185
10186         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
10187         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
10188         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
10189         Reported by Eric Blake.
10190
10191 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10192             Bruno Haible  <bruno@clisp.org>
10193
10194         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
10195         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
10196         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
10197         (malloc): Undefine also before including <stdlib.h>.
10198         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
10199         Needed on OSF/1 4.0.
10200
10201 2007-11-05  Jim Meyering  <meyering@redhat.com>
10202
10203         git-version-gen: sync from coreutils.
10204         * build-aux/git-version-gen: Add comments.
10205         Change the first '-' to '.' in the snapshot version string,
10206         e.g., 6.9-377-08144 -> 6.9.377-08144
10207         Remove first parameter.
10208         Don't declare a version "-dirty" merely because a time
10209         stamp has changed.
10210
10211 2007-11-04  Bruno Haible  <bruno@clisp.org>
10212
10213         * lib/lock.h: Protect all macro definitions containing an 'if'
10214         statement through a "do { ... } while (0)".
10215         * lib/tls.h: Likewise.
10216
10217 2007-11-04  Bruno Haible  <bruno@clisp.org>
10218
10219         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
10220
10221 2007-11-04  Bruno Haible  <bruno@clisp.org>
10222
10223         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
10224         * modules/fprintf-posix (Depends-on): Add nocrash.
10225         * modules/snprintf-posix (Depends-on): Likewise.
10226         * modules/sprintf-posix (Depends-on): Likewise.
10227         * modules/vasnprintf-posix (Depends-on): Likewise.
10228         * modules/vasprintf-posix (Depends-on): Likewise.
10229         * modules/vfprintf-posix (Depends-on): Likewise.
10230         * modules/vsnprintf-posix (Depends-on): Likewise.
10231         * modules/vsprintf-posix (Depends-on): Likewise.
10232         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
10233         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
10234         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
10235         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
10236         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
10237         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
10238         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
10239
10240 2007-11-04  Bruno Haible  <bruno@clisp.org>
10241
10242         * modules/nocrash: New file.
10243         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
10244         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
10245
10246 2007-11-04  Bruno Haible  <bruno@clisp.org>
10247
10248         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
10249         precision handling.
10250         * tests/test-vasprintf-posix.c (test_function): Likewise.
10251         * tests/test-snprintf-posix.h (test_function): Likewise.
10252         * tests/test-sprintf-posix.h (test_function): Likewise.
10253
10254         Fix *printf behaviour for large precisions on mingw and BeOS.
10255         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
10256         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
10257         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
10258         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
10259         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
10260         gl_PRINTF_PRECISION and test its result. Invoke
10261         gl_PREREQ_VASNPRINTF_PRECISION.
10262         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
10263         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
10264         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
10265         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
10266         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
10267         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
10268         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
10269         * doc/functions/fprintf.texi: Update.
10270         * doc/functions/printf.texi: Update.
10271         * doc/functions/snprintf.texi: Update.
10272         * doc/functions/sprintf.texi: Update.
10273         * doc/functions/vfprintf.texi: Update.
10274         * doc/functions/vprintf.texi: Update.
10275         * doc/functions/vsnprintf.texi: Update.
10276         * doc/functions/vsprintf.texi: Update.
10277
10278 2007-11-04  Bruno Haible  <bruno@clisp.org>
10279
10280         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
10281
10282 2007-11-04  Bruno Haible  <bruno@clisp.org>
10283
10284         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
10285         Reported by Sylvain Beucler <beuc@gnu.org>.
10286
10287 2007-11-03  Bruno Haible  <bruno@clisp.org>
10288
10289         * tests/test-fprintf-posix2.sh: New file.
10290         * tests/test-fprintf-posix2.c: New file.
10291         * modules/fprintf-posix-tests (Files): Add them.
10292         (TESTS): Add test-fprintf-posix2.sh.
10293         (configure.ac): Check for getrlimit and setrlimit.
10294         (check_PROGRAMS): Add test-fprintf-posix2.
10295
10296         * tests/test-printf-posix2.sh: New file.
10297         * tests/test-printf-posix2.c: New file.
10298         * modules/printf-posix-tests (Files): Add them.
10299         (TESTS): Add test-printf-posix2.sh.
10300         (configure.ac): Check for getrlimit and setrlimit.
10301         (check_PROGRAMS): Add test-printf-posix2.
10302
10303         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
10304         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
10305         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
10306         (decode_double): New function, copied from decode_long_double.
10307         (scale10_round_decimal_decoded): New function, extracted from
10308         scale10_round_decimal_long_double.
10309         (scale10_round_decimal_long_double): Use it.
10310         (scale10_round_decimal_double): New function.
10311         (floorlog10): New function.
10312         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
10313         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
10314         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
10315         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
10316         gl_PRINTF_ENOMEM and test its result. Invoke
10317         gl_PREREQ_VASNPRINTF_ENOMEM.
10318         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
10319         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
10320         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
10321         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
10322         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
10323         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
10324         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
10325         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
10326         * modules/snprintf-posix (Depends-on): Likewise.
10327         * modules/sprintf-posix (Depends-on): Likewise.
10328         * modules/vasnprintf-posix (Depends-on): Likewise.
10329         * modules/vasprintf-posix (Depends-on): Likewise.
10330         * modules/vfprintf-posix (Depends-on): Likewise.
10331         * modules/vsnprintf-posix (Depends-on): Likewise.
10332         * modules/vsprintf-posix (Depends-on): Likewise.
10333         * doc/functions/fprintf.texi: Update.
10334         * doc/functions/printf.texi: Update.
10335         * doc/functions/snprintf.texi: Update.
10336         * doc/functions/sprintf.texi: Update.
10337         * doc/functions/vfprintf.texi: Update.
10338         * doc/functions/vprintf.texi: Update.
10339         * doc/functions/vsnprintf.texi: Update.
10340         * doc/functions/vsprintf.texi: Update.
10341
10342 2007-11-03  Bruno Haible  <bruno@clisp.org>
10343
10344         * modules/frexp-nolibm-tests: New file.
10345
10346         * modules/frexp-nolibm: New file.
10347         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
10348
10349 2007-11-03  Bruno Haible  <bruno@clisp.org>
10350
10351         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
10352         value is C99 compliant.
10353         Needed for OSF/1 5.1.
10354
10355 2007-11-03  Bruno Haible  <bruno@clisp.org>
10356
10357         Fix out-of-memory handling of vasnprintf.
10358         * lib/printf-parse.c: Include <errno.h>.
10359         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
10360         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
10361         is already set.
10362
10363 2007-11-02  Eric Blake  <ebb9@byu.net>
10364
10365         Fix tests on cygwin.
10366         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
10367
10368 2007-11-01  Bruno Haible  <bruno@clisp.org>
10369
10370         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
10371         warning.
10372         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
10373         needed for POSIX compatibility.
10374
10375 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
10376
10377         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
10378         for compatibility with GNU.
10379
10380 2007-11-01  Bruno Haible  <bruno@clisp.org>
10381
10382         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
10383         (putenv): Renamed from rpl_putenv. Change argument type from
10384         'const char *' to 'char *'.
10385         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
10386         of defining putenv in config.h, just set REPLACE_PUTENV.
10387         * modules/putenv (Depends-on): Add stdlib.
10388         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
10389         (Include): Use <stdlib.h>.
10390         * lib/stdlib.in.h (putenv): New declaration.
10391         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
10392         REPLACE_PUTENV.
10393         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
10394         REPLACE_PUTENV.
10395         Needed for MacOS X 10.5.0.
10396         Reported by Peter O'Gorman <peter@pogma.com>.
10397
10398 2007-11-01  Jim Meyering  <meyering@redhat.com>
10399
10400         Treat an empty date string exactly like "0".
10401         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
10402         if the remaining date string (to be parsed) is empty, use "0".
10403         Reported by Mischa Molhoek and discussed in this thread:
10404         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
10405
10406 2007-10-31  Bruno Haible  <bruno@clisp.org>
10407
10408         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
10409         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
10410         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
10411         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
10412         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
10413         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
10414
10415 2007-10-31  Bruno Haible  <bruno@clisp.org>
10416
10417         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
10418         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
10419         (AC_TYPE_LONG_LONG_INT): Use it.
10420         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
10421         it as well.
10422         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
10423         to m4/longlong.m4.
10424         * modules/stdint (Files): Remove m4/ulonglong.m4.
10425         * modules/strtoull (Files): Use m4/longlong.m4 instead of
10426         m4/ulonglong.m4.
10427         * modules/strtoumax (Files): Likewise.
10428
10429 2007-10-30  Bruno Haible  <bruno@clisp.org>
10430
10431         * modules/xvasprintf-posix: New file.
10432         Suggested by Eric Blake.
10433
10434 2007-10-30  Bruno Haible  <bruno@clisp.org>
10435
10436         * modules/xprintf-posix-tests: New file.
10437         * tests/test-xprintf-posix.sh: New file.
10438         * tests/test-xprintf-posix.c: New file.
10439         * tests/test-xfprintf-posix.c: New file.
10440
10441         * modules/xprintf-posix: New file.
10442
10443 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10444
10445         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
10446         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
10447         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
10448
10449 2007-10-29  Bruno Haible  <bruno@clisp.org>
10450
10451         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
10452         contain the special marker '_cv_'.
10453         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
10454         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
10455         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
10456         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
10457         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
10458         Reported by Ralf Wildenhues.
10459
10460 2007-10-29  Bruno Haible  <bruno@clisp.org>
10461
10462         * gnulib-tool (func_import): When --lgpl is not specified, set
10463         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
10464         GPLv3.
10465         Reported by Simon Josefsson.
10466
10467 2007-10-28  Bruno Haible  <bruno@clisp.org>
10468
10469         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
10470         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
10471         HAVE_DECL_ISFINITE.
10472         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
10473         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
10474         HAVE_DECL_ISFINITE.
10475
10476 2007-10-28  Bruno Haible  <bruno@clisp.org>
10477
10478         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
10479         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
10480
10481 2007-10-28  Bruno Haible  <bruno@clisp.org>
10482
10483         Fix link errors with Sun C 5.0 on Solaris 10.
10484         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
10485         function is declared but not present in the compiler's libm.
10486         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
10487         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
10488         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
10489         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
10490         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
10491         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
10492         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
10493         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
10494         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
10495         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
10496         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
10497         HAVE_DECL_FLOORL.
10498
10499 2007-10-28  Bruno Haible  <bruno@clisp.org>
10500
10501         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
10502         gl_FUNC_FLOORL. Cache the result.
10503         (gl_FUNC_FLOORL): Use it.
10504         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
10505         gl_FUNC_CEILL. Cache the result.
10506         (gl_FUNC_CEILL): Use it.
10507
10508         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
10509         gl_FUNC_FLOOR. Cache the result.
10510         (gl_FUNC_FLOOR): Use it.
10511         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
10512         gl_FUNC_CEIL. Cache the result.
10513         (gl_FUNC_CEIL): Use it.
10514
10515         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
10516         gl_FUNC_FLOORF. Cache the result.
10517         (gl_FUNC_FLOORF): Use it.
10518         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
10519         gl_FUNC_CEILF. Cache the result.
10520         (gl_FUNC_CEILF): Use it.
10521
10522 2007-10-28  Bruno Haible  <bruno@clisp.org>
10523
10524         * gnulib-tool: Allow specifying the LGPL version number through
10525         --lgpl=2 or --lgpl=3.
10526         (func_usage): Document --lgpl with argument.
10527         Handle --lgpl=... arguments.
10528         (func_import): Recognize also gl_LGPL calls with an argument. When
10529         --lgpl=2 is used and the module's license is just LGPL, report an
10530         error. Set sed_transform_lib_file according to the lgpl variable. In
10531         the generated files, use --lgpl or gl_LGPL invocations with argument,
10532         if necessary.
10533         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
10534         an LGPv2+ license.
10535         * doc/gnulib-tool.texi (Modified imports): Update explanation of
10536         gl_LGPL macro.
10537
10538 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10539             Bruno Haible  <bruno@clisp.org>
10540
10541         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
10542         (u16_uctomb_aux): Likewise.
10543         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
10544         !HAVE_INLINE.
10545         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
10546
10547 2007-10-28  Bruno Haible  <bruno@clisp.org>
10548
10549         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
10550         Invoke AM_GETTEXT_OPTION if it exists.
10551         * modules/vasprintf: Likewise.
10552         * modules/verror: Likewise.
10553         * modules/xprintf: Likewise.
10554         * modules/xvasprintf: Likewise.
10555
10556 2007-10-27  Ben Pfaff  <blp@gnu.org>
10557
10558         * lib/math.in.h: Define isfinite macro and prototypes for
10559         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
10560         implementations.
10561         * m4/math_h.m4: New substitutions for isfinite module.
10562         * lib/isfinite.c: New file.
10563         * m4/isfinite.m4: New file.
10564         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
10565         * modules/isfinite: New file.
10566         * modules/isfinite-tests: New file.
10567         * tests/tests-isfinite.c: New file.
10568         * doc/functions/isfinite.texi: Mention isfinite module.
10569         * MODULES.html.sh: Mention new module.
10570
10571 2007-10-27  Ben Pfaff  <blp@gnu.org>
10572
10573         Ralf Wildenhues reported that Tru64 4.0D declares the round
10574         functions but does not have definitions.
10575         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
10576         cannot be found in any library, set the output variable to
10577         "missing" instead of "".
10578         * m4/round.m4: Also use our substitute if we cannot find round in
10579         any library, even if it is declared.
10580         * m4/roundf.m4: Likewise for roundf.
10581         * m4/roundl.m4: Likewise for roundl.
10582         * lib/math.in.h: Undefine roundf, round, roundl before defining
10583         their replacements, to allow for hypothetical systems where these
10584         may be defined as macros but not available in libraries.
10585
10586 2007-10-27  Bruno Haible  <bruno@clisp.org>
10587
10588         * doc/gnulib.texi: Invoke @firstparagraphindent.
10589         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
10590         changes in gnulib.
10591         (Source changes): New section.
10592
10593 2007-10-26  Bruno Haible  <bruno@clisp.org>
10594
10595         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
10596         borrowed from autoconf.
10597
10598 2007-10-26  Bruno Haible  <bruno@clisp.org>
10599
10600         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
10601         strerror returned the empty string. Needed on HP-UX 11.00.
10602
10603 2007-10-24  Micah Cowan  <micah@cowan.name>
10604
10605         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
10606         * build-aux/bootstrap: Remove support for now-unnecessary option,
10607         --cvs-user, and envvars CVS_USER, CVS_RSH.
10608
10609 2007-10-24  Jim Meyering  <meyering@redhat.com>
10610
10611         Avoid diagnostics from sha1sum when there is no cached checksum.
10612         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
10613         if the po.s1 file hasn't been created yet.
10614
10615         * build-aux/bootstrap: Sync from coreutils:
10616         2007-10-24  Jim Meyering  <meyering@redhat.com>
10617         Get gnulib from the git repository, not from an obsolete cvs one.
10618         * build-aux/bootstrap: Suggestion from Micah Cowan.
10619         2007-10-04  Jim Meyering  <jim@meyering.net>
10620         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
10621         (update_po_files): Work also when there are no .po files in po/.
10622
10623 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
10624
10625         * README: Append ".git" to git and cg examples.
10626         Problem reported by Benoit Sigoure.
10627
10628 2007-10-23  Micah Cowan  <micah@cowan.name>
10629
10630         * users.txt: Add wget.
10631
10632 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10633
10634         Fix linking of some unistdio tests on FreeBSD.
10635         * modules/unistdio/u16-vsnprintf-tests
10636         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
10637         * modules/unistdio/u16-vsprintf-tests
10638         (test_u16_vsnprintf1_LDADD): Likewise.
10639         * modules/unistdio/u32-vsnprintf-tests
10640         (test_u32_vsnprintf1_LDADD): Likewise.
10641         * modules/unistdio/u32-vsprintf-tests
10642         (test_u32_vsprintf1_LDADD): Likewise.
10643         * modules/unistdio/u8-vsnprintf-tests
10644         (test_u8_vsnprintf1_LDADD): Likewise.
10645         * modules/unistdio/u8-vsprintf-tests
10646         (test_u8_vsprintf1_LDADD): Likewise.
10647         * modules/unistdio/ulc-vsnprintf-tests
10648         (test_ulc_vsnprintf1_LDADD): Likewise.
10649         * modules/unistdio/ulc-vsprintf-tests
10650         (test_ulc_vsprintf1_LDADD): Likewise.
10651
10652         Fix linking of some uniconv tests on FreeBSD.
10653         * modules/uniconv/u16-conv-from-enc-tests
10654         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
10655         * modules/uniconv/u16-conv-to-enc-tests
10656         (test_u16_conv_to_enc_LDADD): Likewise.
10657         * modules/uniconv/u16-strconv-from-enc-tests
10658         (test_u16_strconv_from_enc_LDADD): Likewise.
10659         * modules/uniconv/u16-strconv-to-enc-tests
10660         (test_u16_strconv_to_enc_LDADD): Likewise.
10661         * modules/uniconv/u32-conv-from-enc-tests
10662         (test_u32_conv_from_enc_LDADD): Likewise.
10663         * modules/uniconv/u32-conv-to-enc-tests
10664         (test_u32_conv_to_enc_LDADD): Likewise.
10665         * modules/uniconv/u32-strconv-from-enc-tests
10666         (test_u32_strconv_from_enc_LDADD): Likewise.
10667         * modules/uniconv/u32-strconv-to-enc-tests
10668         (test_u32_strconv_to_enc_LDADD): Likewise.
10669         * modules/uniconv/u8-conv-from-enc-tests
10670         (test_u8_conv_from_enc_LDADD): Likewise.
10671         * modules/uniconv/u8-conv-to-enc-tests
10672         (test_u8_conv_to_enc_LDADD): Likewise.
10673         * modules/uniconv/u8-strconv-from-enc-tests
10674         (test_u8_strconv_from_enc_LDADD): Likewise.
10675         * modules/uniconv/u8-strconv-to-enc-tests
10676         (test_u8_strconv_to_enc_LDADD): Likewise.
10677
10678 2007-10-22  Bruno Haible  <bruno@clisp.org>
10679
10680         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
10681         size.
10682
10683 2007-10-22  Eric Blake  <ebb9@byu.net>
10684
10685         Tweak x*printf documentation.
10686         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
10687         variable name and comments.
10688         Suggested by Bruno Haible.
10689
10690 2007-10-22  Bruno Haible  <bruno@clisp.org>
10691
10692         * lib/acl.c (copy_acl): Fix file name in comment.
10693
10694 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
10695
10696         Fix Tru64 problem with stdbool.h.
10697         * lib/stdbool.in.h (false, true):
10698         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
10699         Don't declare as an enum in this situation; it runs afoul of Tru64.
10700         Problem reported by Steven M. Schweda in
10701         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
10702
10703 2007-10-22  Eric Blake  <ebb9@byu.net>
10704
10705         Also wrap vf?printf.
10706         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
10707         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
10708         (xvprintf, xvfprintf): New functions.
10709
10710 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10711
10712         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
10713         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
10714
10715         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
10716         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
10717
10718 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
10719
10720         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
10721         by Bruno Haible.
10722
10723 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10724
10725         * lib/getloadavg.c
10726         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
10727         Undef `sys' after including sys/table.h, for Tru64 4.0D.
10728
10729         * tests/test-i-ring.c: Work for C89.
10730
10731 2007-10-22  Bruno Haible  <bruno@clisp.org>
10732
10733         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
10734         -1u, in preprocessor expression, so that we don't test for the bug
10735         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
10736         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
10737
10738 2007-10-22  Eric Blake  <ebb9@byu.net>
10739
10740         * tests/test-yesno.sh: Silence stderr during test.
10741
10742 2007-10-22  Simon Josefsson  <simon@josefsson.org>
10743
10744         * modules/crypto/gc-camellia: New file.
10745
10746         * m4/gc-camellia.m4: New file.
10747
10748         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
10749
10750         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
10751
10752 2007-10-22  Simon Josefsson  <simon@josefsson.org>
10753
10754         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
10755         --help to stdout.  Reported by sms@antinode.org (Steven
10756         M. Schweda).
10757
10758 2007-10-22  Simon Josefsson  <simon@josefsson.org>
10759
10760         * users.txt: Fix link to libksba.
10761
10762 2007-10-21  Ben Pfaff  <blp@gnu.org>
10763
10764         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
10765         round.c roundf implementation that depends on floorf and ceilf to
10766         be tested unconditionally.
10767
10768 2007-10-21  Ben Pfaff  <blp@gnu.org>
10769
10770         * m4/check-libm-func.m4: Removed.
10771         * m4/check-math-lib.m4: New file.
10772         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
10773         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
10774         definition and lack of AC_LIBOBJ([roundf]).
10775         * m4/roundl.m4: Ditto, and similarly for roundl.
10776         * modules/round: Reference new m4 file.
10777         * modules/roundf: Ditto.
10778         * modules/roundl: Ditto.
10779         * tests/test-round2.c (main): Use ROUND instead of round.
10780         Bug report from Bruno Haible.
10781
10782 2007-10-21  Bruno Haible  <bruno@clisp.org>
10783
10784         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
10785         context.
10786
10787 2007-10-21  Bruno Haible  <bruno@clisp.org>
10788
10789         * tests/test-wcwidth.c (main): Allow negative result for some control
10790         characters.
10791
10792         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
10793         Needed on OSF/1 5.1.
10794
10795 2007-10-21  Bruno Haible  <bruno@clisp.org>
10796
10797         * tests/test-floorf1.c: Include isnanf.h.
10798         (main): Use isnanf() instead of isnan().
10799         * tests/test-ceilf1.c: Include isnanf.h.
10800         (main): Use isnanf() instead of isnan().
10801         * tests/test-truncf1.c: Include isnanf.h.
10802         (main): Use isnanf() instead of isnan().
10803         * tests/test-roundf1.c: Include isnanf.h.
10804         (main): Use isnanf() instead of isnan().
10805
10806 2007-10-21  Eric Blake  <ebb9@byu.net>
10807
10808         * users.txt: Update URL for m4.
10809
10810 2007-10-21  Bruno Haible  <bruno@clisp.org>
10811
10812         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
10813
10814 2007-10-21  Bruno Haible  <bruno@clisp.org>
10815
10816         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
10817         Git's management files if the CVS files are not present.
10818
10819 2007-10-20  Bruno Haible  <bruno@clisp.org>
10820
10821         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
10822         gcc-3.4.x.
10823
10824 2007-10-20  Ben Pfaff  <blp@gnu.org>
10825
10826         * lib/math.in.h: Declare round, roundf, roundl if we are providing
10827         implementations.
10828         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
10829         * lib/round.c: New file.
10830         * lib/roundf.c: New file.
10831         * lib/roundl.c: New file.
10832         * m4/round.m4: New file.
10833         * m4/roundf.m4: New file.
10834         * m4/roundl.m4: New file.
10835         * m4/check-libm-func-m4: New file.
10836         * modules/math: Replace round, roundf, roundl related @VARS@ in
10837         math.in.h.
10838         * modules/round: New file.
10839         * modules/round-tests: New file.
10840         * modules/roundf: New file.
10841         * modules/roundf-tests: New file.
10842         * modules/roundl: New file.
10843         * modules/roundl-tests: New file.
10844         * tests/test-round1.c: New file.
10845         * tests/test-round2.c: New file.
10846         * tests/test-roundf1.c: New file.
10847         * tests/test-roundf2.c: New file.
10848         * tests/test-roundl.c: New file.
10849         * doc/functions/round.texi: Mention round module.
10850         * doc/functions/roundf.texi: Mention roundf module.
10851         * doc/functions/roundl.texi: Mention roundl module.
10852         * MODULES.html.sh: Mention new modules.
10853         Thanks to Bruno Haible for suggestions.
10854
10855 2007-10-20  Jim Meyering  <meyering@redhat.com>
10856
10857         * lib/xprintf.c: Include <config.h> unconditionally.
10858
10859         Change xprintf's license to GPL.
10860         * modules/xprintf (License): s/LGPL/GPL/, since this module
10861         depends on modules (exit and exitfail) which are GPL.
10862         Suggestion from Bruno Haible.
10863
10864         xprintf fixes.
10865         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
10866         Use a clearer diagnostic.
10867         Patch from Bruno Haible.
10868
10869 2007-10-20  Bruno Haible  <bruno@clisp.org>
10870
10871         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
10872         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
10873         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10874
10875 2007-10-20  Bruno Haible  <bruno@clisp.org>
10876
10877         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
10878         precision in the comparison result > x - 1 or similar.
10879         * tests/test-ceilf2.c (correct_result_p): Likewise.
10880         * tests/test-truncf2.c (correct_result_p): Likewise.
10881         * tests/test-trunc2.c (correct_result_p): Likewise.
10882         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10883
10884 2007-10-20  Bruno Haible  <bruno@clisp.org>
10885
10886         * modules/ceil: New file.
10887         * m4/ceil.m4: New file.
10888         * doc/functions/ceil.texi: Mention the 'ceil' module.
10889
10890 2007-10-20  Bruno Haible  <bruno@clisp.org>
10891
10892         * modules/floor: New file.
10893         * m4/floor.m4: New file.
10894         * doc/functions/floor.texi: Mention the 'floor' module.
10895
10896 2007-10-20  Bruno Haible  <bruno@clisp.org>
10897
10898         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
10899         of %a.
10900         * modules/floorf-tests (Depends-on): Likewise.
10901         * modules/truncf-tests (Depends-on): Likewise.
10902         * modules/trunc-tests (Depends-on): Likewise.
10903         Reported by Ben Pfaff.
10904
10905 2007-10-19  Jim Meyering  <meyering@redhat.com>
10906
10907         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
10908         Don't bother testing specific errno values.  Just test ferror.
10909
10910         New module: xprintf
10911         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
10912
10913 2007-10-19  Bruno Haible  <bruno@clisp.org>
10914
10915         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
10916         syntax.
10917         * modules/javaexec (Makefile.am): Likewise.
10918         * modules/relocatable-prog (Makefile.am): Likewise.
10919         Suggested by Jim Meyering.
10920
10921 2007-10-18  Bruno Haible  <bruno@clisp.org>
10922
10923         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
10924         Reported by Jim Meyering.
10925
10926 2007-10-18  Eric Blake  <ebb9@byu.net>
10927
10928         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
10929
10930 2007-10-18  Bruno Haible  <bruno@clisp.org>
10931
10932         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
10933         the format string into writable memory. Needed in Fortify conditions.
10934
10935 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
10936             Bruno Haible  <bruno@clisp.org>
10937
10938         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
10939         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
10940         * modules/trim (Depends-on): Add mbchar.
10941         (configure.ac): Add gl_FUNC_MBRTOWC.
10942         (Makefile.am): Augment lib_SOURCES.
10943
10944 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
10945
10946         Modify glob.c to use fstatat and dirfd, to simplify it.
10947         Suggested by Eric Blake.
10948         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
10949         Don't include <stdbool.h>; not used.
10950         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
10951         (link_exists_p): Simplify implementation, since we can now assume
10952         dirfd and fstatat.
10953         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
10954
10955 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10956
10957         * gnulib-tool (func_get_dependencies): Fix sed script to
10958         match only tests.
10959
10960 2007-10-17  Bruno Haible  <bruno@clisp.org>
10961
10962         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
10963         allow locale names without encoding suffix.
10964         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
10965         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
10966
10967 2007-10-16  Bruno Haible  <bruno@clisp.org>
10968
10969         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
10970         * lib/getgroups.c (getgroups): Likewise.
10971         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
10972
10973 2007-10-16  Bruno Haible  <bruno@clisp.org>
10974
10975         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
10976         * modules/malloc-posix (License): Likewise.
10977         * modules/realloc-posix (License): Likewise.
10978         * modules/calloc-posix (License): Likewise.
10979         * modules/intprops (License): Change from GPL to LGPL, with
10980         Paul Eggert's approval.
10981
10982 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
10983
10984         Merge glibc changes into lib/glob.c.
10985
10986         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
10987         2007-10-15 04:59:03 UTC.  Here are the changes:
10988
10989         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
10990
10991         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
10992
10993         * lib/glob.c: Add some branch prediction throughout.
10994
10995         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
10996
10997         [BZ #5103]
10998         * lib/glob.c (glob): Recognize patterns starting \/.
10999
11000         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
11001
11002         [BZ #3996]
11003         * lib/glob.c (attribute_hidden): Define if not defined.
11004         (glob): Unescape dirname, filename or username when needed and not
11005         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
11006         is NULL.  Handle unescaped [ in pattern without closing ].
11007         Don't pass GLOB_CHECK down to recursive glob for directories.
11008         (__glob_pattern_type): New function.
11009         (__glob_pattern_p): Implement using __glob_pattern_type.
11010         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
11011         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
11012         Remove unreachable code.
11013
11014         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
11015
11016         * lib/glob.c (glob_in_dir): Add some comments and asserts to
11017         explain why there are no leaks.
11018
11019         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
11020
11021         [BZ #3253]
11022         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
11023         time, rather allocate increasingly bigger arrays of pointers, if
11024         possible with alloca, if too large with malloc.
11025
11026 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
11027
11028         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
11029         Problem reported by H.Merijn Brand in
11030         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
11031         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
11032         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
11033
11034 2007-10-15  Bruno Haible  <bruno@clisp.org>
11035
11036         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
11037         with explicit rpl_ prefix.
11038         * lib/fopen.c (fopen): Likewise.
11039         * lib/freopen.c (freopen): Likewise.
11040         * lib/iconv.c (iconv): Likewise.
11041         * lib/iconv_close.c (iconv_close): Likewise.
11042
11043 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11044
11045         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
11046
11047 2007-10-15  Bruno Haible  <bruno@clisp.org>
11048
11049         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
11050         <stddef.h> instead of <stdlib.h> since we only need NULL.
11051         Reported by Ben Pfaff <blp@cs.stanford.edu>.
11052
11053 2007-10-15  Bruno Haible  <bruno@clisp.org>
11054
11055         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
11056         Replace paragraph talking about LIBOBJS.
11057         Reported by Colin Watson <cjwatson@debian.org>.
11058
11059 2007-10-15  Bruno Haible  <bruno@clisp.org>
11060
11061         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
11062         <stdlib.h> before using NULL.
11063
11064 2007-10-15  Simon Josefsson  <simon@josefsson.org>
11065
11066         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
11067         Reported by Albert Chin <china@thewrittenword.com>.
11068
11069 2007-10-14  Bruno Haible  <bruno@clisp.org>
11070
11071         * modules/iconv_open-utf-tests: New file.
11072         * tests/test-iconv-utf.c: New file.
11073
11074         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
11075         * modules/iconv_open-utf: New file.
11076         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
11077         (iconv, iconv_close): New declarations.
11078         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
11079         be defined.
11080         (iconv_open): Add special handling of conversion between UTF-8 and
11081         UTF-{16,32}{BE,LE}.
11082         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
11083         * lib/iconv_close.c: New file.
11084         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
11085         gl_FUNC_ICONV_OPEN.
11086         (gl_FUNC_ICONV_OPEN): Use it.
11087         (gl_FUNC_ICONV_OPEN_UTF): New macro.
11088         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
11089         and REPLACE_ICONV_UTF.
11090         * modules/iconv_open (Depends-on): Add c-strcase.
11091         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
11092         ICONV_CONST.
11093         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
11094
11095 2007-10-13  Albert Chin  <china@thewrittenword.com>
11096             Bruno Haible  <bruno@clisp.org>
11097
11098         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
11099         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
11100
11101 2007-10-13  Bruno Haible  <bruno@clisp.org>
11102
11103         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
11104         defined, use the ISO C99 inline semantics.
11105         * lib/argp.h (ARGP_EI): Likewise.
11106
11107 2007-10-13  Bruno Haible  <bruno@clisp.org>
11108
11109         Handle 'inline' change in gcc 4.3.0.
11110         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
11111         argp_fmtstream_write, argp_fmtstream_set_lmargin,
11112         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
11113         argp_fmtstream_point): Disable 'extern' declaration if the function
11114         definition is going to be provided inline.
11115         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
11116         semantics, not the ISO C99 inline semantics.
11117         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
11118         'extern' declaration if the function definition is going to be provided
11119         inline.
11120         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
11121         the GNU C inline semantics, not the ISO C99 inline semantics. With
11122         GCC 4.2, avoid a warning.
11123
11124 2007-10-13  Bruno Haible  <bruno@clisp.org>
11125
11126         * lib/freading.h (freading): Enable the use of __freading for
11127         glibc >= 2.7.
11128         * lib/freading.c (freading): Likewise.
11129
11130 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
11131
11132         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
11133         "warning: C99 inline functions are not supported; using GNU89".
11134
11135 2007-10-12  Bruno Haible  <bruno@clisp.org>
11136
11137         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
11138         of 2.
11139         * tests/test-ceilf2.c: New file.
11140         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
11141
11142         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
11143         * modules/ceilf-tests: Update.
11144
11145 2007-10-12  Bruno Haible  <bruno@clisp.org>
11146
11147         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
11148         of 2.
11149         * tests/test-floorf2.c: New file.
11150         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
11151
11152         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
11153         * modules/floorf-tests: Update.
11154
11155 2007-10-12  Bruno Haible  <bruno@clisp.org>
11156
11157         * tests/test-trunc2.c: New file.
11158         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
11159
11160         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
11161         * modules/trunc-tests: Update.
11162
11163 2007-10-12  Bruno Haible  <bruno@clisp.org>
11164
11165         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
11166         of 2.
11167         * tests/test-truncf2.c: New file.
11168         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
11169
11170         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
11171         * modules/truncf-tests: Update.
11172
11173 2007-10-11  Eric Blake  <ebb9@byu.net>
11174
11175         Don't claim strerror is broken on Interix.
11176         * doc/functions/strerror.texi (strerror): Known broken systems are
11177         now Solaris 8, and not Interix.
11178         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
11179         Interix on cross-compile.
11180         Reported by Martin Koeppe in
11181         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
11182
11183 2007-10-11  Bruno Haible  <bruno@clisp.org>
11184
11185         * modules/i-ring-tests: New file.
11186         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
11187         instead of assert.
11188
11189 2007-10-11  Bruno Haible  <bruno@clisp.org>
11190
11191         * modules/filenamecat-tests: New file.
11192         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
11193         * lib/filenamecat.c: Remove test code.
11194
11195 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
11196
11197         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
11198
11199         * lib/strerror.c: Include <string.h> always, to test interface,
11200         and to remove the need for the dummy.
11201         Include intprops.h to compute width instead of doing it ourselves
11202         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
11203         (strerror): Define it to return NULL if there's no system strerror.
11204         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
11205         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
11206         ancient pre-strerror Unix systems well any more.  Saying "unknown
11207         system error" is enough.
11208         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
11209         simpler strerror.c implementation.
11210         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
11211         Simplify the tests to reflect the simpler strerror implementation.
11212         * modules/strerror (Depends-on): Add intprops.
11213
11214 2007-10-09  Eric Blake  <ebb9@byu.net>
11215
11216         Silence test-fpending.
11217         * modules/fpending-tests (Files): Add wrapper script.
11218         * tests/test-fpending.sh: New file.
11219
11220 2007-10-09  Bruno Haible  <bruno@clisp.org>
11221
11222         * MODULES.html.sh (func_module): Don't create a hyperlink for
11223         function names like 'printf_frexp'.
11224         (Misc): Add crc, memxor.
11225         (Characteristics of floating types): New section.
11226         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
11227         isnanf-nolibm, signbit, trunc, truncf, truncl.
11228         (Enhancements for ISO C 99 functions): New subsection Input/output.
11229         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
11230         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
11231         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
11232         (Compatibility checks for POSIX:2001 functions): Add clock-time.
11233         (Enhancements for POSIX:2001 functions): Add chdir-long.
11234         (File system functions): Add areadlink, chdir-safer, read-file.
11235         Remove cycle-check.
11236         (File system as inode set): New section.
11237         (Date and time): Add gethrxtime.
11238         (Multithreading): Add openmp.
11239         (Internationalization functions): Add localename.
11240         (Unicode string functions): Add unistr/u*-mbsnlen.
11241         (Support for maintaining and releasing projects): Add git-version-gen.
11242         (Lone files): Remove directories.
11243
11244 2007-10-08  Ben Pfaff  <blp@gnu.org>
11245
11246         * lib/xmalloca.h: Fix typo in comment.
11247
11248 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
11249
11250         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
11251         when avoiding problems with integer overflow.  Use a portable test
11252         instead.
11253
11254 2007-10-08  Simon Josefsson  <simon@josefsson.org>
11255
11256         * modules/dummy (License): Change to LGPLv2+.
11257         * modules/float (License): Likewise
11258         * modules/realloc (License): Likewise
11259         * modules/stdlib (License): Likewise
11260
11261 2007-10-07  Bruno Haible  <bruno@clisp.org>
11262
11263         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
11264         * floor.c (TWO_MANT_DIG): Likewise.
11265         * ceil.c (TWO_MANT_DIG): Likewise.
11266         Reported by Ben Pfaff.
11267
11268 2007-10-07  Bruno Haible  <bruno@clisp.org>
11269
11270         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
11271         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
11272         * lib/frexp.c (FUNC): Likewise.
11273         * lib/printf-frexp.h (printf_frexp): Likewise.
11274         * lib/printf-frexpl.h (printf_frexpl): Likewise.
11275         * lib/printf-frexp.c (FUNC): Likewise.
11276         Suggested by Jim Meyering.
11277
11278 2007-10-07  Jim Meyering  <meyering@redhat.com>
11279
11280         Make xnanosleep's integer overflow test more robust.
11281         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
11282         so that gcc-4.3.0 doesn't optimize away this test for overflow.
11283
11284 2007-10-07  Bruno Haible  <bruno@clisp.org>
11285
11286         * NEWS: Mention the license change.
11287
11288         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
11289         abbreviations in the modules files.
11290
11291         Change copyright notice from GPLv2+ to GPLv3+.
11292         * README: Change copyright notice.
11293         * MODULES.html.sh: Likewise.
11294         * build-aux/bootstrap.conf: Likewise.
11295         * build-aux/config.libpath: Likewise.
11296         * build-aux/csharpcomp.sh.in: Likewise.
11297         * build-aux/csharpexec.sh.in: Likewise.
11298         * build-aux/install-reloc: Likewise.
11299         * build-aux/javacomp.sh.in: Likewise.
11300         * build-aux/javaexec.sh.in: Likewise.
11301         * build-aux/ldd.sh.in: Likewise.
11302         * build-aux/reloc-ldflags: Likewise.
11303         * build-aux/relocatable.sh.in: Likewise.
11304         * build-aux/x-to-1.in: Likewise.
11305         * check-module: Likewise.
11306         * config/srclistvars.sh: Likewise.
11307         * gnulib-tool: Likewise.
11308         * lib/acl-internal.h: Likewise.
11309         * lib/acl.c: Likewise.
11310         * lib/acl.h: Likewise.
11311         * lib/acl_entries.c: Likewise.
11312         * lib/areadlink-with-size.c: Likewise.
11313         * lib/areadlink.c: Likewise.
11314         * lib/areadlink.h: Likewise.
11315         * lib/argmatch.c: Likewise.
11316         * lib/argmatch.h: Likewise.
11317         * lib/argp-ba.c: Likewise.
11318         * lib/argp-eexst.c: Likewise.
11319         * lib/argp-fmtstream.c: Likewise.
11320         * lib/argp-fmtstream.h: Likewise.
11321         * lib/argp-fs-xinl.c: Likewise.
11322         * lib/argp-help.c: Likewise.
11323         * lib/argp-namefrob.h: Likewise.
11324         * lib/argp-parse.c: Likewise.
11325         * lib/argp-pin.c: Likewise.
11326         * lib/argp-pv.c: Likewise.
11327         * lib/argp-pvh.c: Likewise.
11328         * lib/argp-xinl.c: Likewise.
11329         * lib/argp.h: Likewise.
11330         * lib/at-func.c: Likewise.
11331         * lib/atanl.c: Likewise.
11332         * lib/backupfile.c: Likewise.
11333         * lib/backupfile.h: Likewise.
11334         * lib/basename.c: Likewise.
11335         * lib/binary-io.h: Likewise.
11336         * lib/byteswap.in.h: Likewise.
11337         * lib/c-stack.c: Likewise.
11338         * lib/c-stack.h: Likewise.
11339         * lib/c-strcasestr.c: Likewise.
11340         * lib/c-strcasestr.h: Likewise.
11341         * lib/c-strstr.c: Likewise.
11342         * lib/c-strstr.h: Likewise.
11343         * lib/c-strtod.c: Likewise.
11344         * lib/calloc.c: Likewise.
11345         * lib/canon-host.c: Likewise.
11346         * lib/canon-host.h: Likewise.
11347         * lib/canonicalize-lgpl.c: Likewise.
11348         * lib/canonicalize.c: Likewise.
11349         * lib/canonicalize.h: Likewise.
11350         * lib/ceil.c: Likewise.
11351         * lib/ceilf.c: Likewise.
11352         * lib/ceill.c: Likewise.
11353         * lib/chdir-long.c: Likewise.
11354         * lib/chdir-long.h: Likewise.
11355         * lib/chdir-safer.c: Likewise.
11356         * lib/chdir-safer.h: Likewise.
11357         * lib/chown.c: Likewise.
11358         * lib/classpath.c: Likewise.
11359         * lib/classpath.h: Likewise.
11360         * lib/clean-temp.c: Likewise.
11361         * lib/clean-temp.h: Likewise.
11362         * lib/cloexec.c: Likewise.
11363         * lib/close-stream.c: Likewise.
11364         * lib/closein.c: Likewise.
11365         * lib/closein.h: Likewise.
11366         * lib/closeout.c: Likewise.
11367         * lib/closeout.h: Likewise.
11368         * lib/concat-filename.c: Likewise.
11369         * lib/copy-file.c: Likewise.
11370         * lib/copy-file.h: Likewise.
11371         * lib/count-one-bits.h: Likewise.
11372         * lib/crc.c: Likewise.
11373         * lib/crc.h: Likewise.
11374         * lib/creat-safer.c: Likewise.
11375         * lib/csharpcomp.c: Likewise.
11376         * lib/csharpcomp.h: Likewise.
11377         * lib/csharpexec.c: Likewise.
11378         * lib/csharpexec.h: Likewise.
11379         * lib/cycle-check.c: Likewise.
11380         * lib/cycle-check.h: Likewise.
11381         * lib/diacrit.c: Likewise.
11382         * lib/diacrit.h: Likewise.
11383         * lib/diffseq.h: Likewise.
11384         * lib/dirchownmod.c: Likewise.
11385         * lib/dirent.in.h: Likewise.
11386         * lib/dirfd.c: Likewise.
11387         * lib/dirfd.h: Likewise.
11388         * lib/dirname.c: Likewise.
11389         * lib/dirname.h: Likewise.
11390         * lib/dummy.c: Likewise.
11391         * lib/dup-safer.c: Likewise.
11392         * lib/dup2.c: Likewise.
11393         * lib/eealloc.h: Likewise.
11394         * lib/error.c: Likewise.
11395         * lib/error.h: Likewise.
11396         * lib/euidaccess.c: Likewise.
11397         * lib/exclude.c: Likewise.
11398         * lib/exclude.h: Likewise.
11399         * lib/execute.c: Likewise.
11400         * lib/execute.h: Likewise.
11401         * lib/exitfail.c: Likewise.
11402         * lib/exitfail.h: Likewise.
11403         * lib/expl.c: Likewise.
11404         * lib/fatal-signal.c: Likewise.
11405         * lib/fatal-signal.h: Likewise.
11406         * lib/fbufmode.c: Likewise.
11407         * lib/fbufmode.h: Likewise.
11408         * lib/fchdir.c: Likewise.
11409         * lib/fchmodat.c: Likewise.
11410         * lib/fchownat.c: Likewise.
11411         * lib/fcntl--.h: Likewise.
11412         * lib/fcntl-safer.h: Likewise.
11413         * lib/fcntl.in.h: Likewise.
11414         * lib/fd-safer.c: Likewise.
11415         * lib/fflush.c: Likewise.
11416         * lib/file-has-acl.c: Likewise.
11417         * lib/file-set.c: Likewise.
11418         * lib/file-type.c: Likewise.
11419         * lib/file-type.h: Likewise.
11420         * lib/fileblocks.c: Likewise.
11421         * lib/filemode.c: Likewise.
11422         * lib/filemode.h: Likewise.
11423         * lib/filename.h: Likewise.
11424         * lib/filenamecat.c: Likewise.
11425         * lib/filenamecat.h: Likewise.
11426         * lib/findprog.c: Likewise.
11427         * lib/findprog.h: Likewise.
11428         * lib/float.in.h: Likewise.
11429         * lib/floor.c: Likewise.
11430         * lib/floorf.c: Likewise.
11431         * lib/floorl.c: Likewise.
11432         * lib/fopen-safer.c: Likewise.
11433         * lib/fopen.c: Likewise.
11434         * lib/fpending.c: Likewise.
11435         * lib/fpending.h: Likewise.
11436         * lib/fprintf.c: Likewise.
11437         * lib/fprintftime.h: Likewise.
11438         * lib/fpucw.h: Likewise.
11439         * lib/fpurge.c: Likewise.
11440         * lib/fpurge.h: Likewise.
11441         * lib/freadable.c: Likewise.
11442         * lib/freadable.h: Likewise.
11443         * lib/freadahead.c: Likewise.
11444         * lib/freadahead.h: Likewise.
11445         * lib/freading.c: Likewise.
11446         * lib/freading.h: Likewise.
11447         * lib/free.c: Likewise.
11448         * lib/freopen.c: Likewise.
11449         * lib/frexp.c: Likewise.
11450         * lib/frexpl.c: Likewise.
11451         * lib/fseek.c: Likewise.
11452         * lib/fseterr.c: Likewise.
11453         * lib/fseterr.h: Likewise.
11454         * lib/fstatat.c: Likewise.
11455         * lib/fstrcmp.c: Likewise.
11456         * lib/fstrcmp.h: Likewise.
11457         * lib/fsusage.c: Likewise.
11458         * lib/fsusage.h: Likewise.
11459         * lib/ftell.c: Likewise.
11460         * lib/ftello.c: Likewise.
11461         * lib/fts-cycle.c: Likewise.
11462         * lib/fts.c: Likewise.
11463         * lib/fts_.h: Likewise.
11464         * lib/full-read.c: Likewise.
11465         * lib/full-read.h: Likewise.
11466         * lib/full-write.c: Likewise.
11467         * lib/full-write.h: Likewise.
11468         * lib/fwritable.c: Likewise.
11469         * lib/fwritable.h: Likewise.
11470         * lib/fwriteerror.c: Likewise.
11471         * lib/fwriteerror.h: Likewise.
11472         * lib/fwriting.c: Likewise.
11473         * lib/fwriting.h: Likewise.
11474         * lib/gcd.c: Likewise.
11475         * lib/gcd.h: Likewise.
11476         * lib/getcwd.c: Likewise.
11477         * lib/getdate.h: Likewise.
11478         * lib/getdate.y: Likewise.
11479         * lib/getdomainname.c: Likewise.
11480         * lib/getdomainname.h: Likewise.
11481         * lib/getgroups.c: Likewise.
11482         * lib/gethostname.c: Likewise.
11483         * lib/gethrxtime.c: Likewise.
11484         * lib/gethrxtime.h: Likewise.
11485         * lib/getloadavg.c: Likewise.
11486         * lib/getndelim2.c: Likewise.
11487         * lib/getndelim2.h: Likewise.
11488         * lib/getnline.c: Likewise.
11489         * lib/getnline.h: Likewise.
11490         * lib/getopt.c: Likewise.
11491         * lib/getopt.in.h: Likewise.
11492         * lib/getopt1.c: Likewise.
11493         * lib/getopt_int.h: Likewise.
11494         * lib/getpagesize.h: Likewise.
11495         * lib/getsubopt.c: Likewise.
11496         * lib/gettime.c: Likewise.
11497         * lib/getugroups.c: Likewise.
11498         * lib/getugroups.h: Likewise.
11499         * lib/getusershell.c: Likewise.
11500         * lib/gl_anyavltree_list1.h: Likewise.
11501         * lib/gl_anyavltree_list2.h: Likewise.
11502         * lib/gl_anyhash_list1.h: Likewise.
11503         * lib/gl_anyhash_list2.h: Likewise.
11504         * lib/gl_anylinked_list1.h: Likewise.
11505         * lib/gl_anylinked_list2.h: Likewise.
11506         * lib/gl_anyrbtree_list1.h: Likewise.
11507         * lib/gl_anyrbtree_list2.h: Likewise.
11508         * lib/gl_anytree_list1.h: Likewise.
11509         * lib/gl_anytree_list2.h: Likewise.
11510         * lib/gl_anytree_oset.h: Likewise.
11511         * lib/gl_anytreehash_list1.h: Likewise.
11512         * lib/gl_anytreehash_list2.h: Likewise.
11513         * lib/gl_array_list.c: Likewise.
11514         * lib/gl_array_list.h: Likewise.
11515         * lib/gl_array_oset.c: Likewise.
11516         * lib/gl_array_oset.h: Likewise.
11517         * lib/gl_avltree_list.c: Likewise.
11518         * lib/gl_avltree_list.h: Likewise.
11519         * lib/gl_avltree_oset.c: Likewise.
11520         * lib/gl_avltree_oset.h: Likewise.
11521         * lib/gl_avltreehash_list.c: Likewise.
11522         * lib/gl_avltreehash_list.h: Likewise.
11523         * lib/gl_carray_list.c: Likewise.
11524         * lib/gl_carray_list.h: Likewise.
11525         * lib/gl_linked_list.c: Likewise.
11526         * lib/gl_linked_list.h: Likewise.
11527         * lib/gl_linkedhash_list.c: Likewise.
11528         * lib/gl_linkedhash_list.h: Likewise.
11529         * lib/gl_list.c: Likewise.
11530         * lib/gl_list.h: Likewise.
11531         * lib/gl_oset.c: Likewise.
11532         * lib/gl_oset.h: Likewise.
11533         * lib/gl_rbtree_list.c: Likewise.
11534         * lib/gl_rbtree_list.h: Likewise.
11535         * lib/gl_rbtree_oset.c: Likewise.
11536         * lib/gl_rbtree_oset.h: Likewise.
11537         * lib/gl_rbtreehash_list.c: Likewise.
11538         * lib/gl_rbtreehash_list.h: Likewise.
11539         * lib/gl_sublist.c: Likewise.
11540         * lib/gl_sublist.h: Likewise.
11541         * lib/group-member.c: Likewise.
11542         * lib/group-member.h: Likewise.
11543         * lib/hard-locale.c: Likewise.
11544         * lib/hard-locale.h: Likewise.
11545         * lib/hash-pjw.c: Likewise.
11546         * lib/hash-pjw.h: Likewise.
11547         * lib/hash-triple.c: Likewise.
11548         * lib/hash.c: Likewise.
11549         * lib/hash.h: Likewise.
11550         * lib/human.c: Likewise.
11551         * lib/human.h: Likewise.
11552         * lib/i-ring.c: Likewise.
11553         * lib/i-ring.h: Likewise.
11554         * lib/idcache.c: Likewise.
11555         * lib/imaxabs.c: Likewise.
11556         * lib/imaxdiv.c: Likewise.
11557         * lib/inet_pton.c: Likewise.
11558         * lib/inet_pton.h: Likewise.
11559         * lib/intprops.h: Likewise.
11560         * lib/inttostr.c: Likewise.
11561         * lib/inttostr.h: Likewise.
11562         * lib/inttypes.in.h: Likewise.
11563         * lib/isapipe.c: Likewise.
11564         * lib/isdir.c: Likewise.
11565         * lib/isnan.c: Likewise.
11566         * lib/isnan.h: Likewise.
11567         * lib/isnanf.c: Likewise.
11568         * lib/isnanf.h: Likewise.
11569         * lib/isnanl-nolibm.h: Likewise.
11570         * lib/isnanl.c: Likewise.
11571         * lib/isnanl.h: Likewise.
11572         * lib/javacomp.c: Likewise.
11573         * lib/javacomp.h: Likewise.
11574         * lib/javaexec.c: Likewise.
11575         * lib/javaexec.h: Likewise.
11576         * lib/javaversion.c: Likewise.
11577         * lib/javaversion.h: Likewise.
11578         * lib/javaversion.java: Likewise.
11579         * lib/lbrkprop.h: Likewise.
11580         * lib/lchmod.h: Likewise.
11581         * lib/lchown.c: Likewise.
11582         * lib/ldexpl.c: Likewise.
11583         * lib/linebreak.c: Likewise.
11584         * lib/linebreak.h: Likewise.
11585         * lib/linebuffer.c: Likewise.
11586         * lib/linebuffer.h: Likewise.
11587         * lib/locale.in.h: Likewise.
11588         * lib/logl.c: Likewise.
11589         * lib/long-options.c: Likewise.
11590         * lib/long-options.h: Likewise.
11591         * lib/lstat.c: Likewise.
11592         * lib/lstat.h: Likewise.
11593         * lib/math.in.h: Likewise.
11594         * lib/mbchar.c: Likewise.
11595         * lib/mbchar.h: Likewise.
11596         * lib/mbfile.h: Likewise.
11597         * lib/mbiter.h: Likewise.
11598         * lib/mbscasecmp.c: Likewise.
11599         * lib/mbscasestr.c: Likewise.
11600         * lib/mbschr.c: Likewise.
11601         * lib/mbscspn.c: Likewise.
11602         * lib/mbslen.c: Likewise.
11603         * lib/mbsncasecmp.c: Likewise.
11604         * lib/mbsnlen.c: Likewise.
11605         * lib/mbspbrk.c: Likewise.
11606         * lib/mbspcasecmp.c: Likewise.
11607         * lib/mbsrchr.c: Likewise.
11608         * lib/mbssep.c: Likewise.
11609         * lib/mbsspn.c: Likewise.
11610         * lib/mbsstr.c: Likewise.
11611         * lib/mbstok_r.c: Likewise.
11612         * lib/mbswidth.c: Likewise.
11613         * lib/mbswidth.h: Likewise.
11614         * lib/mbuiter.h: Likewise.
11615         * lib/memcasecmp.c: Likewise.
11616         * lib/memcasecmp.h: Likewise.
11617         * lib/memchr.c: Likewise.
11618         * lib/memcmp.c: Likewise.
11619         * lib/memcoll.c: Likewise.
11620         * lib/memcoll.h: Likewise.
11621         * lib/memcpy.c: Likewise.
11622         * lib/memrchr.c: Likewise.
11623         * lib/mkancesdirs.c: Likewise.
11624         * lib/mkdir-p.c: Likewise.
11625         * lib/mkdir-p.h: Likewise.
11626         * lib/mkdir.c: Likewise.
11627         * lib/mkdirat.c: Likewise.
11628         * lib/mkdtemp.c: Likewise.
11629         * lib/mkstemp-safer.c: Likewise.
11630         * lib/mkstemp.c: Likewise.
11631         * lib/modechange.c: Likewise.
11632         * lib/modechange.h: Likewise.
11633         * lib/mountlist.c: Likewise.
11634         * lib/mountlist.h: Likewise.
11635         * lib/mpsort.c: Likewise.
11636         * lib/nanosleep.c: Likewise.
11637         * lib/obstack.c: Likewise.
11638         * lib/obstack.h: Likewise.
11639         * lib/open-safer.c: Likewise.
11640         * lib/open.c: Likewise.
11641         * lib/openat-die.c: Likewise.
11642         * lib/openat-priv.h: Likewise.
11643         * lib/openat-proc.c: Likewise.
11644         * lib/openat.c: Likewise.
11645         * lib/openat.h: Likewise.
11646         * lib/pagealign_alloc.c: Likewise.
11647         * lib/pagealign_alloc.h: Likewise.
11648         * lib/physmem.c: Likewise.
11649         * lib/physmem.h: Likewise.
11650         * lib/pipe-safer.c: Likewise.
11651         * lib/pipe.c: Likewise.
11652         * lib/pipe.h: Likewise.
11653         * lib/posixtm.c: Likewise.
11654         * lib/posixtm.h: Likewise.
11655         * lib/posixver.c: Likewise.
11656         * lib/printf-frexp.c: Likewise.
11657         * lib/printf-frexp.h: Likewise.
11658         * lib/printf-frexpl.c: Likewise.
11659         * lib/printf-frexpl.h: Likewise.
11660         * lib/printf.c: Likewise.
11661         * lib/progname.c: Likewise.
11662         * lib/progname.h: Likewise.
11663         * lib/progreloc.c: Likewise.
11664         * lib/putenv.c: Likewise.
11665         * lib/quote.c: Likewise.
11666         * lib/quote.h: Likewise.
11667         * lib/quotearg.c: Likewise.
11668         * lib/quotearg.h: Likewise.
11669         * lib/raise.c: Likewise.
11670         * lib/readline.c: Likewise.
11671         * lib/readline.h: Likewise.
11672         * lib/readlink.c: Likewise.
11673         * lib/readtokens.c: Likewise.
11674         * lib/readtokens.h: Likewise.
11675         * lib/readtokens0.c: Likewise.
11676         * lib/readtokens0.h: Likewise.
11677         * lib/readutmp.c: Likewise.
11678         * lib/readutmp.h: Likewise.
11679         * lib/realloc.c: Likewise.
11680         * lib/relocwrapper.c: Likewise.
11681         * lib/rename-dest-slash.c: Likewise.
11682         * lib/rename.c: Likewise.
11683         * lib/rmdir.c: Likewise.
11684         * lib/rpmatch.c: Likewise.
11685         * lib/safe-read.c: Likewise.
11686         * lib/safe-read.h: Likewise.
11687         * lib/safe-write.c: Likewise.
11688         * lib/safe-write.h: Likewise.
11689         * lib/same-inode.h: Likewise.
11690         * lib/same.c: Likewise.
11691         * lib/same.h: Likewise.
11692         * lib/save-cwd.c: Likewise.
11693         * lib/save-cwd.h: Likewise.
11694         * lib/savedir.c: Likewise.
11695         * lib/savedir.h: Likewise.
11696         * lib/savewd.c: Likewise.
11697         * lib/savewd.h: Likewise.
11698         * lib/search.in.h: Likewise.
11699         * lib/setenv.c: Likewise.
11700         * lib/setenv.h: Likewise.
11701         * lib/settime.c: Likewise.
11702         * lib/sh-quote.c: Likewise.
11703         * lib/sh-quote.h: Likewise.
11704         * lib/sig2str.c: Likewise.
11705         * lib/sig2str.h: Likewise.
11706         * lib/signal.in.h: Likewise.
11707         * lib/signbitd.c: Likewise.
11708         * lib/signbitf.c: Likewise.
11709         * lib/signbitl.c: Likewise.
11710         * lib/sigprocmask.c: Likewise.
11711         * lib/sincosl.c: Likewise.
11712         * lib/sleep.c: Likewise.
11713         * lib/sprintf.c: Likewise.
11714         * lib/sqrtl.c: Likewise.
11715         * lib/stat-time.h: Likewise.
11716         * lib/stdio--.h: Likewise.
11717         * lib/stdio-safer.h: Likewise.
11718         * lib/stdlib--.h: Likewise.
11719         * lib/stdlib-safer.h: Likewise.
11720         * lib/stdlib.in.h: Likewise.
11721         * lib/stpcpy.c: Likewise.
11722         * lib/stpncpy.c: Likewise.
11723         * lib/strchrnul.c: Likewise.
11724         * lib/strcspn.c: Likewise.
11725         * lib/strerror.c: Likewise.
11726         * lib/strftime.c: Likewise.
11727         * lib/strftime.h: Likewise.
11728         * lib/striconveh.c: Likewise.
11729         * lib/striconveh.h: Likewise.
11730         * lib/striconveha.c: Likewise.
11731         * lib/striconveha.h: Likewise.
11732         * lib/stripslash.c: Likewise.
11733         * lib/strnlen1.c: Likewise.
11734         * lib/strnlen1.h: Likewise.
11735         * lib/strtod.c: Likewise.
11736         * lib/strtoimax.c: Likewise.
11737         * lib/strtok_r.c: Likewise.
11738         * lib/strtol.c: Likewise.
11739         * lib/strtoll.c: Likewise.
11740         * lib/strtoul.c: Likewise.
11741         * lib/strtoull.c: Likewise.
11742         * lib/sysexits.in.h: Likewise.
11743         * lib/tempname.c: Likewise.
11744         * lib/tempname.h: Likewise.
11745         * lib/timespec.h: Likewise.
11746         * lib/tls.c: Likewise.
11747         * lib/tls.h: Likewise.
11748         * lib/tmpdir.c: Likewise.
11749         * lib/tmpdir.h: Likewise.
11750         * lib/tmpfile-safer.c: Likewise.
11751         * lib/tmpfile.c: Likewise.
11752         * lib/trigl.c: Likewise.
11753         * lib/trigl.h: Likewise.
11754         * lib/trim.c: Likewise.
11755         * lib/trim.h: Likewise.
11756         * lib/trunc.c: Likewise.
11757         * lib/truncf.c: Likewise.
11758         * lib/truncl.c: Likewise.
11759         * lib/tsearch.c: Likewise.
11760         * lib/unicodeio.c: Likewise.
11761         * lib/unicodeio.h: Likewise.
11762         * lib/unistd--.h: Likewise.
11763         * lib/unistd-safer.h: Likewise.
11764         * lib/unistdio/ulc-fprintf.c: Likewise.
11765         * lib/unistdio/ulc-vfprintf.c: Likewise.
11766         * lib/unlinkdir.c: Likewise.
11767         * lib/unlinkdir.h: Likewise.
11768         * lib/unlocked-io.h: Likewise.
11769         * lib/unsetenv.c: Likewise.
11770         * lib/userspec.c: Likewise.
11771         * lib/utime.c: Likewise.
11772         * lib/utimecmp.c: Likewise.
11773         * lib/utimecmp.h: Likewise.
11774         * lib/utimens.c: Likewise.
11775         * lib/verify.h: Likewise.
11776         * lib/verror.c: Likewise.
11777         * lib/verror.h: Likewise.
11778         * lib/version-etc-fsf.c: Likewise.
11779         * lib/version-etc.c: Likewise.
11780         * lib/version-etc.h: Likewise.
11781         * lib/vfprintf.c: Likewise.
11782         * lib/vprintf.c: Likewise.
11783         * lib/vsprintf.c: Likewise.
11784         * lib/w32spawn.h: Likewise.
11785         * lib/wait-process.c: Likewise.
11786         * lib/wait-process.h: Likewise.
11787         * lib/wcwidth.c: Likewise.
11788         * lib/write-any-file.c: Likewise.
11789         * lib/xalloc-die.c: Likewise.
11790         * lib/xalloc.h: Likewise.
11791         * lib/xasprintf.c: Likewise.
11792         * lib/xgetcwd.c: Likewise.
11793         * lib/xgetcwd.h: Likewise.
11794         * lib/xgetdomainname.c: Likewise.
11795         * lib/xgetdomainname.h: Likewise.
11796         * lib/xgethostname.c: Likewise.
11797         * lib/xmalloc.c: Likewise.
11798         * lib/xmalloca.c: Likewise.
11799         * lib/xmalloca.h: Likewise.
11800         * lib/xmemcoll.c: Likewise.
11801         * lib/xnanosleep.c: Likewise.
11802         * lib/xreadlink.c: Likewise.
11803         * lib/xreadlink.h: Likewise.
11804         * lib/xsetenv.c: Likewise.
11805         * lib/xsetenv.h: Likewise.
11806         * lib/xstriconv.c: Likewise.
11807         * lib/xstriconv.h: Likewise.
11808         * lib/xstrndup.c: Likewise.
11809         * lib/xstrndup.h: Likewise.
11810         * lib/xstrtod.c: Likewise.
11811         * lib/xstrtod.h: Likewise.
11812         * lib/xstrtol-error.c: Likewise.
11813         * lib/xstrtol.c: Likewise.
11814         * lib/xstrtol.h: Likewise.
11815         * lib/xtime.h: Likewise.
11816         * lib/xvasprintf.c: Likewise.
11817         * lib/xvasprintf.h: Likewise.
11818         * lib/yesno.c: Likewise.
11819         * lib/yesno.h: Likewise.
11820         * posix-modules: Likewise.
11821         * tests/test-alloca-opt.c: Likewise.
11822         * tests/test-arcfour.c: Likewise.
11823         * tests/test-arctwo.c: Likewise.
11824         * tests/test-argmatch.c: Likewise.
11825         * tests/test-argp-2.sh: Likewise.
11826         * tests/test-argp.c: Likewise.
11827         * tests/test-arpa_inet.c: Likewise.
11828         * tests/test-array_list.c: Likewise.
11829         * tests/test-array_oset.c: Likewise.
11830         * tests/test-atexit.c: Likewise.
11831         * tests/test-avltree_list.c: Likewise.
11832         * tests/test-avltree_oset.c: Likewise.
11833         * tests/test-avltreehash_list.c: Likewise.
11834         * tests/test-base64.c: Likewise.
11835         * tests/test-binary-io.c: Likewise.
11836         * tests/test-byteswap.c: Likewise.
11837         * tests/test-c-ctype.c: Likewise.
11838         * tests/test-c-strcasecmp.c: Likewise.
11839         * tests/test-c-strcasestr.c: Likewise.
11840         * tests/test-c-strncasecmp.c: Likewise.
11841         * tests/test-c-strstr.c: Likewise.
11842         * tests/test-canonicalize-lgpl.c: Likewise.
11843         * tests/test-canonicalize.c: Likewise.
11844         * tests/test-carray_list.c: Likewise.
11845         * tests/test-ceilf.c: Likewise.
11846         * tests/test-ceill.c: Likewise.
11847         * tests/test-count-one-bits.c: Likewise.
11848         * tests/test-crc.c: Likewise.
11849         * tests/test-dirname.c: Likewise.
11850         * tests/test-fbufmode.c: Likewise.
11851         * tests/test-fcntl.c: Likewise.
11852         * tests/test-fflush.c: Likewise.
11853         * tests/test-floorf.c: Likewise.
11854         * tests/test-floorl.c: Likewise.
11855         * tests/test-fopen.c: Likewise.
11856         * tests/test-fprintf-posix.c: Likewise.
11857         * tests/test-fprintf-posix.h: Likewise.
11858         * tests/test-fpurge.c: Likewise.
11859         * tests/test-freadable.c: Likewise.
11860         * tests/test-freadahead.c: Likewise.
11861         * tests/test-freading.c: Likewise.
11862         * tests/test-freopen.c: Likewise.
11863         * tests/test-frexp.c: Likewise.
11864         * tests/test-frexpl.c: Likewise.
11865         * tests/test-fseek.c: Likewise.
11866         * tests/test-fseeko.c: Likewise.
11867         * tests/test-fseterr.c: Likewise.
11868         * tests/test-fstrcmp.c: Likewise.
11869         * tests/test-ftell.c: Likewise.
11870         * tests/test-ftello.c: Likewise.
11871         * tests/test-fwritable.c: Likewise.
11872         * tests/test-fwriting.c: Likewise.
11873         * tests/test-getaddrinfo.c: Likewise.
11874         * tests/test-getpass.c: Likewise.
11875         * tests/test-gettimeofday.c: Likewise.
11876         * tests/test-hmac-md5.c: Likewise.
11877         * tests/test-hmac-sha1.c: Likewise.
11878         * tests/test-iconv.c: Likewise.
11879         * tests/test-iconvme.c: Likewise.
11880         * tests/test-inttypes.c: Likewise.
11881         * tests/test-isnan.c: Likewise.
11882         * tests/test-isnanf.c: Likewise.
11883         * tests/test-isnanl-nolibm.c: Likewise.
11884         * tests/test-isnanl.c: Likewise.
11885         * tests/test-isnanl.h: Likewise.
11886         * tests/test-ldexpl.c: Likewise.
11887         * tests/test-linked_list.c: Likewise.
11888         * tests/test-linkedhash_list.c: Likewise.
11889         * tests/test-locale.c: Likewise.
11890         * tests/test-localename.c: Likewise.
11891         * tests/test-lock.c: Likewise.
11892         * tests/test-lseek.c: Likewise.
11893         * tests/test-malloca.c: Likewise.
11894         * tests/test-math.c: Likewise.
11895         * tests/test-mbscasecmp.c: Likewise.
11896         * tests/test-mbscasestr1.c: Likewise.
11897         * tests/test-mbscasestr2.c: Likewise.
11898         * tests/test-mbscasestr3.c: Likewise.
11899         * tests/test-mbscasestr4.c: Likewise.
11900         * tests/test-mbschr.c: Likewise.
11901         * tests/test-mbscspn.c: Likewise.
11902         * tests/test-mbsncasecmp.c: Likewise.
11903         * tests/test-mbspbrk.c: Likewise.
11904         * tests/test-mbspcasecmp.c: Likewise.
11905         * tests/test-mbsrchr.c: Likewise.
11906         * tests/test-mbsspn.c: Likewise.
11907         * tests/test-mbsstr1.c: Likewise.
11908         * tests/test-mbsstr2.c: Likewise.
11909         * tests/test-mbsstr3.c: Likewise.
11910         * tests/test-md5.c: Likewise.
11911         * tests/test-memmem.c: Likewise.
11912         * tests/test-netinet_in.c: Likewise.
11913         * tests/test-open.c: Likewise.
11914         * tests/test-printf-frexp.c: Likewise.
11915         * tests/test-printf-frexpl.c: Likewise.
11916         * tests/test-printf-posix.c: Likewise.
11917         * tests/test-printf-posix.h: Likewise.
11918         * tests/test-rbtree_list.c: Likewise.
11919         * tests/test-rbtree_oset.c: Likewise.
11920         * tests/test-rbtreehash_list.c: Likewise.
11921         * tests/test-read-file.c: Likewise.
11922         * tests/test-rijndael.c: Likewise.
11923         * tests/test-search.c: Likewise.
11924         * tests/test-signbit.c: Likewise.
11925         * tests/test-sleep.c: Likewise.
11926         * tests/test-snprintf-posix.c: Likewise.
11927         * tests/test-snprintf-posix.h: Likewise.
11928         * tests/test-snprintf.c: Likewise.
11929         * tests/test-sprintf-posix.c: Likewise.
11930         * tests/test-sprintf-posix.h: Likewise.
11931         * tests/test-stat-time.c: Likewise.
11932         * tests/test-stdbool.c: Likewise.
11933         * tests/test-stdint.c: Likewise.
11934         * tests/test-stdio.c: Likewise.
11935         * tests/test-stdlib.c: Likewise.
11936         * tests/test-stpncpy.c: Likewise.
11937         * tests/test-strcasestr.c: Likewise.
11938         * tests/test-striconv.c: Likewise.
11939         * tests/test-striconveh.c: Likewise.
11940         * tests/test-striconveha.c: Likewise.
11941         * tests/test-string.c: Likewise.
11942         * tests/test-sys_select.c: Likewise.
11943         * tests/test-sys_socket.c: Likewise.
11944         * tests/test-sys_stat.c: Likewise.
11945         * tests/test-sys_time.c: Likewise.
11946         * tests/test-sysexits.c: Likewise.
11947         * tests/test-time.c: Likewise.
11948         * tests/test-tls.c: Likewise.
11949         * tests/test-trunc.c: Likewise.
11950         * tests/test-truncf.c: Likewise.
11951         * tests/test-truncl.c: Likewise.
11952         * tests/test-unistd.c: Likewise.
11953         * tests/test-vasnprintf-posix.c: Likewise.
11954         * tests/test-vasnprintf-posix2.c: Likewise.
11955         * tests/test-vasnprintf.c: Likewise.
11956         * tests/test-vasprintf-posix.c: Likewise.
11957         * tests/test-vasprintf.c: Likewise.
11958         * tests/test-verify.c: Likewise.
11959         * tests/test-vfprintf-posix.c: Likewise.
11960         * tests/test-vprintf-posix.c: Likewise.
11961         * tests/test-vsnprintf-posix.c: Likewise.
11962         * tests/test-vsnprintf.c: Likewise.
11963         * tests/test-vsprintf-posix.c: Likewise.
11964         * tests/test-wchar.c: Likewise.
11965         * tests/test-wctype.c: Likewise.
11966         * tests/test-wcwidth.c: Likewise.
11967         * tests/test-xstrtol.c: Likewise.
11968         * tests/test-xvasprintf.c: Likewise.
11969         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
11970         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
11971         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
11972         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
11973         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
11974         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
11975         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
11976         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
11977         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
11978         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
11979         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
11980         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
11981         * tests/uniname/test-uninames.c: Likewise.
11982         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
11983         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
11984         * tests/unistdio/test-u16-printf1.h: Likewise.
11985         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
11986         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
11987         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
11988         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
11989         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
11990         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
11991         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
11992         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
11993         * tests/unistdio/test-u32-printf1.h: Likewise.
11994         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
11995         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
11996         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
11997         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
11998         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
11999         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
12000         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
12001         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
12002         * tests/unistdio/test-u8-printf1.h: Likewise.
12003         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
12004         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
12005         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
12006         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
12007         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
12008         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
12009         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
12010         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
12011         * tests/unistdio/test-ulc-printf1.h: Likewise.
12012         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
12013         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
12014         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
12015         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
12016         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
12017         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
12018         * tests/uniwidth/test-u16-strwidth.c: Likewise.
12019         * tests/uniwidth/test-u16-width.c: Likewise.
12020         * tests/uniwidth/test-u32-strwidth.c: Likewise.
12021         * tests/uniwidth/test-u32-width.c: Likewise.
12022         * tests/uniwidth/test-u8-strwidth.c: Likewise.
12023         * tests/uniwidth/test-u8-width.c: Likewise.
12024         * tests/uniwidth/test-uc_width.c: Likewise.
12025         * config/srclist-update: Likewise.
12026         (fixlicense): Update to GPLv3+.
12027
12028         Change copyright notice from LGPLv2.1+ to LGPLv3+.
12029         * tests/test-tsearch.c: Change copyright notice.
12030
12031         Change copyright notice from LGPLv2.0+ to LGPLv3+.
12032         * lib/c-strcaseeq.h: Change copyright notice.
12033         * lib/streq.h: Likewise.
12034         * lib/uniconv.h: Likewise.
12035         * lib/uniconv/u-conv-from-enc.h: Likewise.
12036         * lib/uniconv/u-conv-to-enc.h: Likewise.
12037         * lib/uniconv/u-strconv-from-enc.h: Likewise.
12038         * lib/uniconv/u-strconv-to-enc.h: Likewise.
12039         * lib/uniconv/u16-conv-from-enc.c: Likewise.
12040         * lib/uniconv/u16-conv-to-enc.c: Likewise.
12041         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
12042         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
12043         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
12044         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
12045         * lib/uniconv/u32-conv-from-enc.c: Likewise.
12046         * lib/uniconv/u32-conv-to-enc.c: Likewise.
12047         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
12048         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
12049         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
12050         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
12051         * lib/uniconv/u8-conv-from-enc.c: Likewise.
12052         * lib/uniconv/u8-conv-to-enc.c: Likewise.
12053         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
12054         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
12055         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
12056         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
12057         * lib/uniname.h: Likewise.
12058         * lib/uniname/uniname.c: Likewise.
12059         * lib/unistdio.h: Likewise.
12060         * lib/unistdio/u-asnprintf.h: Likewise.
12061         * lib/unistdio/u-asprintf.h: Likewise.
12062         * lib/unistdio/u-printf-args.c: Likewise.
12063         * lib/unistdio/u-printf-args.h: Likewise.
12064         * lib/unistdio/u-printf-parse.h: Likewise.
12065         * lib/unistdio/u-snprintf.h: Likewise.
12066         * lib/unistdio/u-sprintf.h: Likewise.
12067         * lib/unistdio/u-vasprintf.h: Likewise.
12068         * lib/unistdio/u-vsnprintf.h: Likewise.
12069         * lib/unistdio/u-vsprintf.h: Likewise.
12070         * lib/unistdio/u16-asnprintf.c: Likewise.
12071         * lib/unistdio/u16-asprintf.c: Likewise.
12072         * lib/unistdio/u16-printf-parse.c: Likewise.
12073         * lib/unistdio/u16-snprintf.c: Likewise.
12074         * lib/unistdio/u16-sprintf.c: Likewise.
12075         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
12076         * lib/unistdio/u16-u16-asprintf.c: Likewise.
12077         * lib/unistdio/u16-u16-snprintf.c: Likewise.
12078         * lib/unistdio/u16-u16-sprintf.c: Likewise.
12079         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
12080         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
12081         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
12082         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
12083         * lib/unistdio/u16-vasnprintf.c: Likewise.
12084         * lib/unistdio/u16-vasprintf.c: Likewise.
12085         * lib/unistdio/u16-vsnprintf.c: Likewise.
12086         * lib/unistdio/u16-vsprintf.c: Likewise.
12087         * lib/unistdio/u32-asnprintf.c: Likewise.
12088         * lib/unistdio/u32-asprintf.c: Likewise.
12089         * lib/unistdio/u32-printf-parse.c: Likewise.
12090         * lib/unistdio/u32-snprintf.c: Likewise.
12091         * lib/unistdio/u32-sprintf.c: Likewise.
12092         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
12093         * lib/unistdio/u32-u32-asprintf.c: Likewise.
12094         * lib/unistdio/u32-u32-snprintf.c: Likewise.
12095         * lib/unistdio/u32-u32-sprintf.c: Likewise.
12096         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
12097         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
12098         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
12099         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
12100         * lib/unistdio/u32-vasnprintf.c: Likewise.
12101         * lib/unistdio/u32-vasprintf.c: Likewise.
12102         * lib/unistdio/u32-vsnprintf.c: Likewise.
12103         * lib/unistdio/u32-vsprintf.c: Likewise.
12104         * lib/unistdio/u8-asnprintf.c: Likewise.
12105         * lib/unistdio/u8-asprintf.c: Likewise.
12106         * lib/unistdio/u8-printf-parse.c: Likewise.
12107         * lib/unistdio/u8-snprintf.c: Likewise.
12108         * lib/unistdio/u8-sprintf.c: Likewise.
12109         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
12110         * lib/unistdio/u8-u8-asprintf.c: Likewise.
12111         * lib/unistdio/u8-u8-snprintf.c: Likewise.
12112         * lib/unistdio/u8-u8-sprintf.c: Likewise.
12113         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
12114         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
12115         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
12116         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
12117         * lib/unistdio/u8-vasnprintf.c: Likewise.
12118         * lib/unistdio/u8-vasprintf.c: Likewise.
12119         * lib/unistdio/u8-vsnprintf.c: Likewise.
12120         * lib/unistdio/u8-vsprintf.c: Likewise.
12121         * lib/unistdio/ulc-asnprintf.c: Likewise.
12122         * lib/unistdio/ulc-asprintf.c: Likewise.
12123         * lib/unistdio/ulc-printf-parse.c: Likewise.
12124         * lib/unistdio/ulc-snprintf.c: Likewise.
12125         * lib/unistdio/ulc-sprintf.c: Likewise.
12126         * lib/unistdio/ulc-vasnprintf.c: Likewise.
12127         * lib/unistdio/ulc-vasprintf.c: Likewise.
12128         * lib/unistdio/ulc-vsnprintf.c: Likewise.
12129         * lib/unistdio/ulc-vsprintf.c: Likewise.
12130         * lib/unistr.h: Likewise.
12131         * lib/unistr/u-cpy-alloc.h: Likewise.
12132         * lib/unistr/u-cpy.h: Likewise.
12133         * lib/unistr/u-endswith.h: Likewise.
12134         * lib/unistr/u-move.h: Likewise.
12135         * lib/unistr/u-set.h: Likewise.
12136         * lib/unistr/u-startswith.h: Likewise.
12137         * lib/unistr/u-stpcpy.h: Likewise.
12138         * lib/unistr/u-stpncpy.h: Likewise.
12139         * lib/unistr/u-strcat.h: Likewise.
12140         * lib/unistr/u-strcpy.h: Likewise.
12141         * lib/unistr/u-strcspn.h: Likewise.
12142         * lib/unistr/u-strdup.h: Likewise.
12143         * lib/unistr/u-strlen.h: Likewise.
12144         * lib/unistr/u-strncat.h: Likewise.
12145         * lib/unistr/u-strncpy.h: Likewise.
12146         * lib/unistr/u-strnlen.h: Likewise.
12147         * lib/unistr/u-strpbrk.h: Likewise.
12148         * lib/unistr/u-strspn.h: Likewise.
12149         * lib/unistr/u-strstr.h: Likewise.
12150         * lib/unistr/u-strtok.h: Likewise.
12151         * lib/unistr/u16-check.c: Likewise.
12152         * lib/unistr/u16-chr.c: Likewise.
12153         * lib/unistr/u16-cmp.c: Likewise.
12154         * lib/unistr/u16-cpy-alloc.c: Likewise.
12155         * lib/unistr/u16-cpy.c: Likewise.
12156         * lib/unistr/u16-endswith.c: Likewise.
12157         * lib/unistr/u16-mblen.c: Likewise.
12158         * lib/unistr/u16-mbsnlen.c: Likewise.
12159         * lib/unistr/u16-mbtouc-aux.c: Likewise.
12160         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
12161         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
12162         * lib/unistr/u16-mbtouc.c: Likewise.
12163         * lib/unistr/u16-mbtoucr.c: Likewise.
12164         * lib/unistr/u16-move.c: Likewise.
12165         * lib/unistr/u16-next.c: Likewise.
12166         * lib/unistr/u16-prev.c: Likewise.
12167         * lib/unistr/u16-set.c: Likewise.
12168         * lib/unistr/u16-startswith.c: Likewise.
12169         * lib/unistr/u16-stpcpy.c: Likewise.
12170         * lib/unistr/u16-stpncpy.c: Likewise.
12171         * lib/unistr/u16-strcat.c: Likewise.
12172         * lib/unistr/u16-strchr.c: Likewise.
12173         * lib/unistr/u16-strcmp.c: Likewise.
12174         * lib/unistr/u16-strcpy.c: Likewise.
12175         * lib/unistr/u16-strcspn.c: Likewise.
12176         * lib/unistr/u16-strdup.c: Likewise.
12177         * lib/unistr/u16-strlen.c: Likewise.
12178         * lib/unistr/u16-strmblen.c: Likewise.
12179         * lib/unistr/u16-strmbtouc.c: Likewise.
12180         * lib/unistr/u16-strncat.c: Likewise.
12181         * lib/unistr/u16-strncmp.c: Likewise.
12182         * lib/unistr/u16-strncpy.c: Likewise.
12183         * lib/unistr/u16-strnlen.c: Likewise.
12184         * lib/unistr/u16-strpbrk.c: Likewise.
12185         * lib/unistr/u16-strrchr.c: Likewise.
12186         * lib/unistr/u16-strspn.c: Likewise.
12187         * lib/unistr/u16-strstr.c: Likewise.
12188         * lib/unistr/u16-strtok.c: Likewise.
12189         * lib/unistr/u16-to-u32.c: Likewise.
12190         * lib/unistr/u16-to-u8.c: Likewise.
12191         * lib/unistr/u16-uctomb-aux.c: Likewise.
12192         * lib/unistr/u16-uctomb.c: Likewise.
12193         * lib/unistr/u32-check.c: Likewise.
12194         * lib/unistr/u32-chr.c: Likewise.
12195         * lib/unistr/u32-cmp.c: Likewise.
12196         * lib/unistr/u32-cpy-alloc.c: Likewise.
12197         * lib/unistr/u32-cpy.c: Likewise.
12198         * lib/unistr/u32-endswith.c: Likewise.
12199         * lib/unistr/u32-mblen.c: Likewise.
12200         * lib/unistr/u32-mbsnlen.c: Likewise.
12201         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
12202         * lib/unistr/u32-mbtouc.c: Likewise.
12203         * lib/unistr/u32-mbtoucr.c: Likewise.
12204         * lib/unistr/u32-move.c: Likewise.
12205         * lib/unistr/u32-next.c: Likewise.
12206         * lib/unistr/u32-prev.c: Likewise.
12207         * lib/unistr/u32-set.c: Likewise.
12208         * lib/unistr/u32-startswith.c: Likewise.
12209         * lib/unistr/u32-stpcpy.c: Likewise.
12210         * lib/unistr/u32-stpncpy.c: Likewise.
12211         * lib/unistr/u32-strcat.c: Likewise.
12212         * lib/unistr/u32-strchr.c: Likewise.
12213         * lib/unistr/u32-strcmp.c: Likewise.
12214         * lib/unistr/u32-strcpy.c: Likewise.
12215         * lib/unistr/u32-strcspn.c: Likewise.
12216         * lib/unistr/u32-strdup.c: Likewise.
12217         * lib/unistr/u32-strlen.c: Likewise.
12218         * lib/unistr/u32-strmblen.c: Likewise.
12219         * lib/unistr/u32-strmbtouc.c: Likewise.
12220         * lib/unistr/u32-strncat.c: Likewise.
12221         * lib/unistr/u32-strncmp.c: Likewise.
12222         * lib/unistr/u32-strncpy.c: Likewise.
12223         * lib/unistr/u32-strnlen.c: Likewise.
12224         * lib/unistr/u32-strpbrk.c: Likewise.
12225         * lib/unistr/u32-strrchr.c: Likewise.
12226         * lib/unistr/u32-strspn.c: Likewise.
12227         * lib/unistr/u32-strstr.c: Likewise.
12228         * lib/unistr/u32-strtok.c: Likewise.
12229         * lib/unistr/u32-to-u16.c: Likewise.
12230         * lib/unistr/u32-to-u8.c: Likewise.
12231         * lib/unistr/u32-uctomb.c: Likewise.
12232         * lib/unistr/u8-check.c: Likewise.
12233         * lib/unistr/u8-chr.c: Likewise.
12234         * lib/unistr/u8-cmp.c: Likewise.
12235         * lib/unistr/u8-cpy-alloc.c: Likewise.
12236         * lib/unistr/u8-cpy.c: Likewise.
12237         * lib/unistr/u8-endswith.c: Likewise.
12238         * lib/unistr/u8-mblen.c: Likewise.
12239         * lib/unistr/u8-mbsnlen.c: Likewise.
12240         * lib/unistr/u8-mbtouc-aux.c: Likewise.
12241         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
12242         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
12243         * lib/unistr/u8-mbtouc.c: Likewise.
12244         * lib/unistr/u8-mbtoucr.c: Likewise.
12245         * lib/unistr/u8-move.c: Likewise.
12246         * lib/unistr/u8-next.c: Likewise.
12247         * lib/unistr/u8-prev.c: Likewise.
12248         * lib/unistr/u8-set.c: Likewise.
12249         * lib/unistr/u8-startswith.c: Likewise.
12250         * lib/unistr/u8-stpcpy.c: Likewise.
12251         * lib/unistr/u8-stpncpy.c: Likewise.
12252         * lib/unistr/u8-strcat.c: Likewise.
12253         * lib/unistr/u8-strchr.c: Likewise.
12254         * lib/unistr/u8-strcmp.c: Likewise.
12255         * lib/unistr/u8-strcpy.c: Likewise.
12256         * lib/unistr/u8-strcspn.c: Likewise.
12257         * lib/unistr/u8-strdup.c: Likewise.
12258         * lib/unistr/u8-strlen.c: Likewise.
12259         * lib/unistr/u8-strmblen.c: Likewise.
12260         * lib/unistr/u8-strmbtouc.c: Likewise.
12261         * lib/unistr/u8-strncat.c: Likewise.
12262         * lib/unistr/u8-strncmp.c: Likewise.
12263         * lib/unistr/u8-strncpy.c: Likewise.
12264         * lib/unistr/u8-strnlen.c: Likewise.
12265         * lib/unistr/u8-strpbrk.c: Likewise.
12266         * lib/unistr/u8-strrchr.c: Likewise.
12267         * lib/unistr/u8-strspn.c: Likewise.
12268         * lib/unistr/u8-strstr.c: Likewise.
12269         * lib/unistr/u8-strtok.c: Likewise.
12270         * lib/unistr/u8-to-u16.c: Likewise.
12271         * lib/unistr/u8-to-u32.c: Likewise.
12272         * lib/unistr/u8-uctomb-aux.c: Likewise.
12273         * lib/unistr/u8-uctomb.c: Likewise.
12274         * lib/unitypes.h: Likewise.
12275         * lib/uniwidth.h: Likewise.
12276         * lib/uniwidth/cjk.h: Likewise.
12277         * lib/uniwidth/u16-strwidth.c: Likewise.
12278         * lib/uniwidth/u16-width.c: Likewise.
12279         * lib/uniwidth/u32-strwidth.c: Likewise.
12280         * lib/uniwidth/u32-width.c: Likewise.
12281         * lib/uniwidth/u8-strwidth.c: Likewise.
12282         * lib/uniwidth/u8-width.c: Likewise.
12283         * lib/uniwidth/width.c: Likewise.
12284
12285 2007-10-07  Bruno Haible  <bruno@clisp.org>
12286
12287         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
12288         The file is still under LGPL (see modules/inttypes).
12289
12290 2007-10-06  Bruno Haible  <bruno@clisp.org>
12291
12292         * modules/trunc (Dependencies): Add 'extensions'.
12293         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
12294         Reported by Ben Pfaff <blp@gnu.org>.
12295
12296 2007-10-06  Bruno Haible  <bruno@clisp.org>
12297
12298         * modules/freopen-tests: New file.
12299         * tests/test-freopen.c: New file.
12300
12301         * modules/fopen-tests: New file.
12302         * tests/test-fopen.c: New file.
12303
12304         * modules/fopen: New file.
12305         * lib/fopen.c: New file.
12306         * m4/fopen.m4: New file.
12307         * modules/freopen: New file.
12308         * lib/freopen.c: New file.
12309         * m4/freopen.m4: New file.
12310         * lib/stdio.in.h (fopen, freopen): New declarations.
12311         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
12312         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
12313         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
12314         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
12315         * doc/functions/fopen.texi: Mention the 'fopen' module.
12316         * doc/functions/freopen.texi: Mention the 'freopen' module.
12317
12318 2007-10-06  Bruno Haible  <bruno@clisp.org>
12319
12320         * modules/open-tests: New file.
12321         * tests/test-open.c: New file.
12322
12323         * modules/open: New file.
12324         * lib/open.c: New file.
12325         * m4/open.m4: New file.
12326         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
12327         lib/open.c does.
12328         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
12329         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
12330         macros.
12331         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
12332         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
12333         REPLACE_OPEN.
12334         * doc/functions/open.texi: Mention the 'open' module.
12335
12336 2007-10-04  Bruno Haible  <bruno@clisp.org>
12337
12338         * modules/ceill-tests: New file.
12339         * tests/test-ceill.c: New file.
12340
12341         * modules/ceill: New file.
12342         * lib/ceill.c: Replace entire file.
12343         * m4/ceill.m4: New file.
12344         * lib/math.in.h (ceill): Replace declaration.
12345         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
12346         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
12347         * doc/functions/ceill.texi: Mention the 'ceill' module.
12348         * modules/mathl (Files): Remove lib/ceill.c.
12349         (Depends-on): Add ceill.
12350
12351 2007-10-04  Bruno Haible  <bruno@clisp.org>
12352
12353         * modules/ceilf-tests: New file.
12354         * tests/test-ceilf.c: New file.
12355
12356         * modules/ceilf: New file.
12357         * lib/ceil.c: New file.
12358         * lib/ceilf.c: New file.
12359         * m4/ceilf.m4: New file.
12360         * lib/math.in.h (ceilf): New declaration.
12361         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
12362         HAVE_DECL_CEILF.
12363         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
12364         HAVE_DECL_CEILF.
12365         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
12366
12367 2007-10-04  Bruno Haible  <bruno@clisp.org>
12368
12369         * modules/floorl-tests: New file.
12370         * tests/test-floorl.c: New file.
12371
12372         * modules/floorl: New file.
12373         * lib/floorl.c: Replace entire file.
12374         * m4/floorl.m4: New file.
12375         * lib/math.in.h (floorl): Replace declaration.
12376         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
12377         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
12378         * doc/functions/floorl.texi: Mention the 'floorl' module.
12379         * modules/mathl (Files): Remove lib/floorl.c.
12380         (Depends-on): Add floorl.
12381
12382 2007-10-04  Bruno Haible  <bruno@clisp.org>
12383
12384         * modules/floorf-tests: New file.
12385         * tests/test-floorf.c: New file.
12386
12387         * modules/floorf: New file.
12388         * lib/floor.c: New file.
12389         * lib/floorf.c: New file.
12390         * m4/floorf.m4: New file.
12391         * lib/math.in.h (floorf): New declaration.
12392         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
12393         HAVE_DECL_FLOORF.
12394         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
12395         HAVE_DECL_FLOORF.
12396         * doc/functions/floorf.texi: Mention the 'floorf' module.
12397
12398 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
12399             Bruno Haible  <bruno@clisp.org>
12400
12401         Advertise for the Git server instead of the CVS server.
12402         * doc/gnulib-intro.texi (Steady Development): Mention the Git
12403         repository instead of the CVS one.
12404         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
12405         about all VCS systems generically.
12406         * doc/gnulib.texi (Introduction): Capitalize `Git'.
12407
12408 2007-10-04  Bruno Haible  <bruno@clisp.org>
12409
12410         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
12411         means.
12412         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
12413
12414 2007-10-04  Bruno Haible  <bruno@clisp.org>
12415
12416         * modules/truncl-tests: New file.
12417         * tests/test-truncl.c: New file.
12418
12419         * modules/truncl: New file.
12420         * lib/truncl.c: New file.
12421         * m4/truncl.m4: New file.
12422         * lib/math.in.h (truncl): New declaration.
12423         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
12424         HAVE_DECL_TRUNCL.
12425         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
12426         HAVE_DECL_TRUNCL.
12427         * doc/functions/truncl.texi: Mention the 'truncl' module.
12428
12429 2007-10-04  Bruno Haible  <bruno@clisp.org>
12430
12431         * modules/truncf-tests: New file.
12432         * tests/test-truncf.c: New file.
12433
12434         * modules/truncf: New file.
12435         * lib/trunc.c: Make paramerizable through USE_* macros.
12436         * lib/truncf.c: New file.
12437         * m4/truncf.m4: New file.
12438         * lib/math.in.h (truncf): New declaration.
12439         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
12440         HAVE_DECL_TRUNCF.
12441         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
12442         HAVE_DECL_TRUNCF.
12443         * doc/functions/truncf.texi: Mention the 'truncf' module.
12444
12445 2007-10-03  Bruno Haible  <bruno@clisp.org>
12446
12447         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
12448         augmentation also for tests modules.
12449         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
12450         * modules/atexit-tests (Makefile.am): Likewise.
12451         * modules/binary-io-tests (Makefile.am): Likewise.
12452         * modules/c-strcase-tests (Makefile.am): Likewise.
12453         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
12454         * modules/canonicalize-tests (Makefile.am): Likewise.
12455         * modules/closein-tests (Makefile.am): Likewise.
12456         * modules/fprintf-posix-tests (Makefile.am): Likewise.
12457         * modules/freadahead-tests (Makefile.am): Likewise.
12458         * modules/fseek-tests (Makefile.am): Likewise.
12459         * modules/fseeko-tests (Makefile.am): Likewise.
12460         * modules/ftell-tests (Makefile.am): Likewise.
12461         * modules/ftello-tests (Makefile.am): Likewise.
12462         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
12463         * modules/isnanl-tests (Makefile.am): Likewise.
12464         * modules/lseek-tests (Makefile.am): Likewise.
12465         * modules/mbscasecmp-tests (Makefile.am): Likewise.
12466         * modules/mbscasestr-tests (Makefile.am): Likewise.
12467         * modules/mbschr-tests (Makefile.am): Likewise.
12468         * modules/mbscspn-tests (Makefile.am): Likewise.
12469         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
12470         * modules/mbspbrk-tests (Makefile.am): Likewise.
12471         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
12472         * modules/mbsrchr-tests (Makefile.am): Likewise.
12473         * modules/mbsspn-tests (Makefile.am): Likewise.
12474         * modules/mbsstr-tests (Makefile.am): Likewise.
12475         * modules/printf-posix-tests (Makefile.am): Likewise.
12476         * modules/snprintf-posix-tests (Makefile.am): Likewise.
12477         * modules/sprintf-posix-tests (Makefile.am): Likewise.
12478         * modules/tsearch-tests (Makefile.am): Likewise.
12479         * modules/uniname/uniname-tests (Makefile.am): Likewise.
12480         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
12481         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
12482         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
12483         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
12484         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
12485         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
12486         * modules/vprintf-posix-tests (Makefile.am): Likewise.
12487         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
12488         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
12489         * modules/xstrtoimax-tests (Makefile.am): Likewise.
12490         * modules/xstrtol-tests (Makefile.am): Likewise.
12491         * modules/xstrtoumax-tests (Makefile.am): Likewise.
12492         * modules/yesno-tests (Makefile.am): Likewise.
12493
12494 2007-10-03  Bruno Haible  <bruno@clisp.org>
12495
12496         * modules/trunc-tests: New file.
12497         * tests/test-trunc.c: New file.
12498
12499         * modules/trunc: New file.
12500         * lib/trunc.c: New file.
12501         * m4/trunc.m4: New file.
12502         * lib/math.in.h (trunc): New declaration.
12503         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
12504         HAVE_DECL_TRUNC.
12505         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
12506         HAVE_DECL_TRUNC.
12507         * doc/functions/trunc.texi: Mention the 'trunc' module.
12508
12509 2007-10-03  Bruno Haible  <bruno@clisp.org>
12510
12511         * tests/test-fpending.c: New file, mostly copied
12512         from coreutils/lib/t-fpending.c.
12513         * modules/fpending-tests: New file.
12514
12515 2007-10-03  Bruno Haible  <bruno@clisp.org>
12516
12517         Port the stdio extensions to QNX (untested).
12518         * lib/fseterr.c (fseterr): Add support for QNX.
12519         * lib/fbufmode.c (fbufmode): Likewise.
12520         * lib/freadable.c (freadable): Likewise.
12521         * lib/fwritable.c (fwritable): Likewise.
12522         * lib/freading.c (freading): Likewise.
12523         * lib/fwriting.c (fwriting): Likewise.
12524         * lib/freadahead.c (freadahed): Likewise.
12525         * lib/fpurge.c (fpurge): Likewise.
12526         * lib/fseeko.c (rpl_fseeko): Likewise.
12527
12528 2007-10-03  Bruno Haible  <bruno@clisp.org>
12529             Jim Meyering  <jim@meyering.net>
12530             Eric Blake  <ebb9@byu.net>
12531
12532         * doc/relocatable.texi: Use @command instead of @program.
12533
12534 2007-10-02  Jim Meyering  <jim@meyering.net>
12535
12536         Perform one more "_.h" -> ".in.h" substitution.
12537         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
12538         instead of unistd_.h here, too.
12539
12540 2007-10-01  Bruno Haible  <bruno@clisp.org>
12541
12542         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
12543         Needed for the alloca-opt module.
12544
12545 2007-09-30  Bruno Haible  <bruno@clisp.org>
12546
12547         * lib/alloca.in.h: Renamed from lib/alloca_.h.
12548         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
12549         alloca_.h.
12550         * lib/argz.in.h: Renamed from lib/argz_.h.
12551         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
12552         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
12553         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
12554         byteswap_.h.
12555         * lib/dirent.in.h: Renamed from lib/dirent_.h.
12556         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
12557         dirent_.h.
12558         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
12559         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
12560         fcntl_.h.
12561         * lib/float.in.h: Renamed from lib/float_.h.
12562         * modules/float (Files, Makefile.am): Use float.in.h instead of
12563         float_.h.
12564         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
12565         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
12566         fnmatch_.h.
12567         * lib/getopt.in.h: Renamed from lib/getopt_.h.
12568         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
12569         getopt_.h.
12570         * lib/glob.in.h: Renamed from lib/glob_.h.
12571         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
12572         * lib/iconv.in.h: Renamed from lib/iconv_.h.
12573         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
12574         iconv_.h.
12575         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
12576         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
12577         inttypes_.h.
12578         * lib/locale.in.h: Renamed from lib/locale_.h.
12579         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
12580         locale_.h.
12581         * lib/math.in.h: Renamed from lib/math_.h.
12582         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
12583         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
12584         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
12585         of netinet_in_.h. Add dependency.
12586         * lib/poll.in.h: Renamed from lib/poll_.h.
12587         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
12588         * lib/search.in.h: Renamed from lib/search_.h.
12589         * modules/search (Files, Makefile.am): Use search.in.h instead of
12590         search_.h.
12591         * lib/signal.in.h: Renamed from lib/signal_.h.
12592         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
12593         _signal.h.
12594         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
12595         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
12596         stdbool_.h.
12597         * lib/stdint.in.h: Renamed from lib/stdint_.h.
12598         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
12599         stdint_.h.
12600         * lib/stdio.in.h: Renamed from lib/stdio_.h.
12601         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
12602         stdio_.h.
12603         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
12604         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
12605         stdlib_.h.
12606         * lib/string.in.h: Renamed from lib/string_.h.
12607         * modules/string (Files, Makefile.am): Use string.in.h instead of
12608         string_.h.
12609         * doc/gnulib-tool.texi (Initial import): Update.
12610         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
12611         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
12612         of sys_select_.h. Add dependency.
12613         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
12614         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
12615         of sys_socket_.h.
12616         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
12617         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
12618         sys_stat_.h.
12619         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
12620         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
12621         sys_time_.h.
12622         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
12623         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
12624         sysexits_.h.
12625         * lib/time.in.h: Renamed from lib/time_.h.
12626         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
12627         * lib/unistd.in.h: Renamed from lib/unistd_.h.
12628         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
12629         unistd_.h.
12630         * lib/wchar.in.h: Renamed from lib/wchar_.h.
12631         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
12632         wchar_.h.
12633         * lib/wctype.in.h: Renamed from lib/wctype_.h.
12634         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
12635         wctype_.h.
12636         * build-aux/bootstrap (slurp): Update.
12637         * lib/.cppi-disable: Update.
12638
12639 2007-09-30  Bruno Haible  <bruno@clisp.org>
12640
12641         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
12642         Needed on BeOS.
12643
12644 2007-09-30  Bruno Haible  <bruno@clisp.org>
12645
12646         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
12647
12648 2007-09-29  Bruno Haible  <bruno@clisp.org>
12649
12650         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
12651
12652 2007-09-29  Bruno Haible  <bruno@clisp.org>
12653
12654         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
12655         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
12656         * build-aux/install-reloc: Compile also areadlink.c.
12657         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
12658
12659 2007-09-29  Bruno Haible  <bruno@clisp.org>
12660
12661         * gnulib-tool (func_emit_initmacro_done): Indentation.
12662
12663 2007-09-29  Bruno Haible  <bruno@clisp.org>
12664
12665         * README: Add CVS checkout update instructions.
12666         Info from Bob Proulx <bob@proulx.com>.
12667
12668 2007-09-28  Eric Blake  <ebb9@byu.net>
12669
12670         Provide move-if-change.
12671         * build-aux/move-if-change: New file, based on best practice
12672         rather than any canonical upstream location.
12673
12674 2007-09-28  Jim Meyering  <jim@meyering.net>
12675
12676         Fix canonicalize loop-detection corner case.
12677         Do not attempt to stat the symlink values stored via seen_triple.
12678         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
12679         on linux-2.6.18, (but not 2.6.22).
12680         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
12681         triple_compare.  The former compares dev,ino,filename, while the latter
12682         would actually stat dirname(filename) when dev and ino were equal.
12683         * lib/hash-triple.c: Install <string.h>.
12684         (STREQ): Define.
12685         (triple_compare_ino_str): New function.
12686         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
12687
12688 2007-09-28  Eric Blake  <ebb9@byu.net>
12689
12690         Enforce that AC_REPLACE_FUNCS files exist.
12691         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
12692         override check for typos.
12693
12694         Fix test-closein on Solaris 10.
12695         * tests/test-closein.c (main): Don't assume stdin can be inherited
12696         closed on all systems.
12697         * tests/test-closein.sh: Likewise.
12698         Reported by Piotr Tarnowski.
12699
12700 2007-09-28  Jim Meyering  <jim@meyering.net>
12701
12702         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
12703
12704 2007-09-27  Jim Meyering  <jim@meyering.net>
12705
12706         canonicalize: Avoid a false-positive cycle failure.
12707         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
12708         Sort.  Remove cycle-check.
12709         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
12710         not cycle-check.h.
12711         (seen_triple): New function.
12712         (canonicalize_filename_mode): Use it instead of cycle-check.
12713         * tests/test-canonicalize.c: Add a test for this bug.
12714         * tests/test-canonicalize.sh: Set up and run the test.
12715
12716         New module, file-set, from coreutils.
12717         * modules/file-set: Define it.
12718         * lib/file-set.c, lib/file-set.h: Implement.
12719
12720         New module, hash-triple, from coreutils.
12721         * modules/hash-triple: Define it.
12722         * lib/hash-triple.c, lib/hash-triple.h: Implement.
12723
12724 2007-09-25  Eric Blake  <ebb9@byu.net>
12725
12726         Fix strerror on Interix.
12727         * lib/string_.h (strerror): Declare replacement.
12728         * doc/functions/strerror.texi (strerror): Document the Interix
12729         shortcoming.
12730         * modules/string (Makefile.am): Support new hooks.
12731         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
12732         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
12733         gl_FUNC_STRERROR_SEPARATE.
12734         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
12735         * lib/strerror.c (rpl_strerror): Provide replacement.
12736         * modules/strerror (Depends-on): Add string.
12737         (configure.ac): Detect use of module.
12738         * tests/test-strerror.c: New file.
12739         * modules/strerror-tests: New test module.
12740         * modules/argp (Depends-on): Add strerror.
12741         * modules/error (Depends-on): Likewise.
12742         Reported by Martin Koeppe.
12743
12744 2007-09-24  Bruno Haible  <bruno@clisp.org>
12745
12746         * README: Update git instructions.
12747
12748 2007-09-24  Eric Blake  <ebb9@byu.net>
12749
12750         Revert fpending breakage from 2007-09-08.
12751         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
12752         __fpending.c.
12753
12754 2007-09-24  Jim Meyering  <jim@meyering.net>
12755
12756         filenamecat.c: Add a test.
12757         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
12758         showing how the function works when DIR is the empty string.
12759
12760 2007-09-21  Simon Josefsson  <simon@josefsson.org>
12761
12762         * tests/test-canonicalize.sh: Turn on executable bit.
12763
12764 2007-09-19  Eric Blake  <ebb9@byu.net>
12765
12766         * README: Update CVS instructions.
12767
12768 2007-09-18  Bruno Haible  <bruno@clisp.org>
12769
12770         * modules/areadlink: New file.
12771         * lib/areadlink.h (areadlink): New declaration.
12772         * lib/areadlink.c: New file, based on lib/xreadlink.c.
12773
12774 2007-09-17  Jim Meyering  <jim@meyering.net>
12775
12776         * lib/savewd.c (ESTALE) [!defined]: Define.
12777         Reported to be required on Interix by Martin Koeppe.
12778
12779 2007-09-17  Bruno Haible  <bruno@clisp.org>
12780
12781         * gnulib-tool (func_version): Use $version.
12782
12783 2007-09-16  Bruno Haible  <bruno@clisp.org>
12784
12785         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
12786         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
12787         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
12788         Reported by Greg Schafer <gschafer@zip.com.au>.
12789
12790 2007-09-15  Bruno Haible  <bruno@clisp.org>
12791
12792         * gnulib-tool (sed): Try a little harder to make bash understand the
12793         alias.
12794         Reported by Bruce Korb <bruce.korb@gmail.com>.
12795
12796 2007-09-13  Eric Blake  <ebb9@byu.net>
12797
12798         * ChangeLog: Remove conflict markers.
12799
12800 2007-09-13  Simon Josefsson  <simon@josefsson.org>
12801
12802         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
12803         Reported by Bruno Haible <bruno@clisp.org>.
12804
12805 2007-09-12  Bruno Haible  <bruno@clisp.org>
12806
12807         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
12808         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
12809         is not defined.
12810
12811 2007-09-12  Eric Blake  <ebb9@byu.net>
12812
12813         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
12814         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
12815         Autoconf definition.
12816         * modules/euidaccess (Depends-on): Add extensions, for
12817         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
12818         * modules/fnmatch (Depends-on): Likewise.
12819         * modules/getaddrinfo (Depends-on): Likewise.
12820         * modules/getdelim (Depends-on): Likewise.
12821         * modules/getline (Depends-on): Likewise.
12822         * modules/getsubopt (Depends-on): Likewise.
12823         * modules/gettext (Depends-on): Likewise.
12824         * modules/group-member (Depends-on): Likewise.
12825         * modules/mbchar (Depends-on): Likewise.
12826         * modules/memmem (Depends-on): Likewise.
12827         * modules/mempcpy (Depends-on): Likewise.
12828         * modules/memrchr (Depends-on): Likewise.
12829         * modules/pagealign_alloc (Depends-on): Likewise.
12830         * modules/readutmp (Depends-on): Likewise.
12831         * modules/stpcpy (Depends-on): Likewise.
12832         * modules/stpncpy (Depends-on): Likewise.
12833         * modules/strchrnul (Depends-on): Likewise.
12834         * modules/strndup (Depends-on): Likewise.
12835         * modules/strsep (Depends-on): Likewise.
12836         * modules/strverscmp (Depends-on): Likewise.
12837         * modules/vasprintf (Depends-on): Likewise.
12838         * modules/wcwidth (Depends-on): Likewise.
12839         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
12840         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
12841         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
12842         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
12843         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
12844         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
12845         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
12846         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
12847         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
12848         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
12849         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
12850         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
12851         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
12852         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
12853         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
12854         * m4/readutmp.m4 (gl_READUTMP): Likewise.
12855         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
12856         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
12857         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
12858         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
12859         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
12860         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
12861         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
12862         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
12863         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
12864         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
12865         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
12866         so that lock.m4 can be used in gettext without extensions module.
12867
12868 2007-09-11  Bruno Haible  <bruno@clisp.org>
12869
12870         * m4/isc-posix.m4: Remove file.
12871         Suggested by Eric Blake.
12872
12873 2007-09-11  Eric Blake  <ebb9@byu.net>
12874
12875         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
12876
12877 2007-09-10  Bruno Haible  <bruno@clisp.org>
12878
12879         * posix-modules: Fix typo in error message.
12880         Reported by Matt <mkraai@beckman.com>.
12881
12882 2007-09-09  Bruno Haible  <bruno@clisp.org>
12883
12884         * doc/functions/getdelim.texi: Update list of platforms lacking the
12885         function.
12886         * doc/functions/getline.texi: Likewise.
12887
12888 2007-09-09  Jim Meyering  <jim@meyering.net>
12889
12890         * lib/hash.c (hash_initialize): Detect calloc failure.
12891         Reported by Bruno Haible.
12892
12893 2007-09-09  Bruno Haible  <bruno@clisp.org>
12894
12895         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
12896         malloc or realloc fails.
12897
12898 2007-09-09  Bruno Haible  <bruno@clisp.org>
12899
12900         * modules/getcwd (Depends-on): Add malloc-posix.
12901         * modules/glob (Depends-on): Likewise.
12902         * modules/putenv (Depends-on): Likewise.
12903         * modules/strdup (Depends-on): Likewise.
12904         * modules/getdelim (Depends-on): Add realloc-posix.
12905         * modules/read-file (Depends-on): Likewise.
12906
12907 2007-09-09  Bruno Haible  <bruno@clisp.org>
12908
12909         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
12910         (gl_FUNC_MALLOC_POSIX): Require it.
12911         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
12912         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
12913         * modules/realloc (Files): Add m4/malloc.m4.
12914         * modules/calloc (Files): Likewise.
12915
12916 2007-09-09  Bruno Haible  <bruno@clisp.org>
12917
12918         * modules/malloc-posix: New file.
12919         * modules/malloc (Depends-on): Add malloc-posix.
12920         * lib/malloc.c: Include errno.h.
12921         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
12922         and a POSIX-compatible malloc into a single function. Set ENOMEM
12923         when returning NULL.
12924         * m4/malloc.m4: New file.
12925         * doc/functions/malloc.texi: Mention the malloc-posix module.
12926         * lib/stdlib_.h (malloc): New declaration.
12927         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
12928         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
12929         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
12930         and HAVE_MALLOC_POSIX.
12931
12932 2007-09-09  Bruno Haible  <bruno@clisp.org>
12933
12934         * modules/realloc-posix: New file.
12935         * modules/realloc (Depends-on): Add realloc-posix.
12936         * lib/realloc.c: Include errno.h.
12937         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
12938         and a POSIX-compatible realloc into a single function. Set ENOMEM
12939         when returning NULL.
12940         * m4/realloc.m4: New file.
12941         * doc/functions/realloc.texi: Mention the realloc-posix module.
12942         * lib/stdlib_.h (realloc): New declaration.
12943         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
12944         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
12945         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
12946         and HAVE_REALLOC_POSIX.
12947
12948 2007-09-09  Bruno Haible  <bruno@clisp.org>
12949
12950         * modules/calloc-posix: New file.
12951         * modules/calloc (Depends-on): Add calloc-posix.
12952         * lib/calloc.c: Include errno.h.
12953         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
12954         and a POSIX-compatible calloc into a single function. Set ENOMEM
12955         when returning NULL.
12956         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
12957         * doc/functions/calloc.texi: Mention the calloc-posix module.
12958         * lib/stdlib_.h (calloc): New declaration.
12959         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
12960         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
12961         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
12962         and HAVE_CALLOC_POSIX.
12963
12964 2007-09-09  Bruno Haible  <bruno@clisp.org>
12965
12966         Allow for modules to show an arbitrary notice.
12967         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
12968         * gnulib-tool: New option --extract-notice.
12969         (func_usage): Document it.
12970         (sed_extract_prog): Update.
12971         (func_get_notice): New function.
12972         (func_modules_notice): New function.
12973         (func_import, func_create_testdir): Invoke it.
12974         Suggested by Jim Meyering.
12975
12976 2007-09-09  Bruno Haible  <bruno@clisp.org>
12977
12978         * gnulib-tool: New options --verbose, --quiet.
12979         (func_usage): Document them.
12980         (verbose): New variable.
12981         (func_execute_command): New function.
12982         (func_import): Don't show the module list and the file list if
12983         $verbose < 0.
12984         (func_create_testdir): Likewise. Use func_execute_command.
12985         (func_create_megatestdir): Use func_execute_command.
12986
12987 2007-09-08  Bruno Haible  <bruno@clisp.org>
12988
12989         * gnulib-tool (func_import): Prefer rsync over wget when available,
12990         for fetching the PO files.
12991
12992 2007-09-08  Bruno Haible  <bruno@clisp.org>
12993
12994         * posix-modules: New file. Portions copied from gnulib-tool.
12995         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
12996
12997 2007-09-08  Jim Meyering  <jim@meyering.net>
12998
12999         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
13000         * lib/fpending.h: Rename from __fpending.h.
13001         * lib/fpending.c: Rename from __fpending.c.
13002         Include "fpending.h", not "__fpending.h".
13003         * lib/__fpending.h, lib/__fpending.c: Remove files.
13004         * modules/fpending (Files): Reflect new file names.
13005         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
13006
13007 2007-09-08  Bruno Haible  <bruno@clisp.org>
13008
13009         * m4/inttypes-h.m4: Remove stub file.
13010
13011 2007-09-07  Simon Josefsson  <simon@josefsson.org>
13012
13013         * doc/headers/stdint.texi: Discuss #include_next issue.
13014
13015 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
13016
13017         * build-aux/bootstrap: Remove obsolete comment about wget --help.
13018
13019 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
13020
13021         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
13022         in variable name.
13023
13024 2007-09-03  Jim Meyering  <jim@meyering.net>
13025
13026         New module: git-version-gen.
13027         * modules/git-version-gen: New file.
13028
13029         Import changes from coreutils for bootstrap script.
13030
13031         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
13032
13033         bootstrap: uses rsync to download the .po files
13034         * build-aux/bootstrap (po_download_command_format): New global.
13035         (download_po_files): Use rsync.
13036         (update_po_files): Don't remove .po files after download,
13037         so future rsync runs can take advantage of the copies.
13038
13039         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
13040
13041         Solve the unnecessary-.po-file-regeneration problem once and for all.
13042         * build-aux/bootstrap (download_po_files): New function, renamed from
13043         get_translations.  Now, downloads, but doesn't update LINGUAS.
13044         (update_po_files): New function.
13045
13046         bootstrap: Ignore more.
13047         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
13048         uniwidth to e.g., lib/.gitignore.
13049         (slurp): Handle the sys_stat_.h -> sys mapping, too.
13050
13051         * build-aux/bootstrap: New setting: vc_ignore.
13052         (insert_sorted_if_absent): Create $file if absent.
13053         Adapt to new, possibly empty, list: $vc_ignore.
13054
13055         bootstrap: generate more ignorable names
13056         * build-aux/bootstrap (slurp): When generating ignorable names,
13057         also map .sin to .sed, .gperf to .c, and .y to .c.
13058
13059 2007-09-03  Jim Meyering  <jim@meyering.net>
13060
13061         * build-aux/git-version-gen: New file, from coreutils.  For details, see
13062         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
13063
13064 2007-09-02  Bruno Haible  <bruno@clisp.org>
13065
13066         Fix mis-recognition of 'mcs' on QNX 6.
13067         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
13068         output contains the string "Mono".
13069         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
13070         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
13071
13072 2007-09-01  Bruno Haible  <bruno@clisp.org>
13073
13074         Fix collision between uniwidth/* and linebreak modules.
13075         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
13076         u32_width): Remove declarations.
13077         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
13078         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
13079         streq3, streq2, streq1, streq0): Remove functions.
13080         (STREQ): Remove macro.
13081         (is_cjk_encoding): Remove function.
13082         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
13083         (uc_width, u8_width, u16_width, u32_width): Remove functions.
13084         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
13085         * NEWS: Document the change.
13086
13087 2007-09-01  Bruno Haible  <bruno@clisp.org>
13088
13089         * lib/streq.h: Add double-inclusion guard.
13090
13091 2007-09-01  Karl Berry  <karl@gnu.org>
13092
13093         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
13094
13095 2007-08-28  Jim Meyering  <jim@meyering.net>
13096
13097         Rename mreadlink_with_size to areadlink_with_size.
13098         * NEWS: Document the change.
13099         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
13100         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
13101         * lib/mreadlink.h: Rename this to...
13102         * lib/areadlink.h: ...this.
13103         * modules/mreadlink-with-size: Rename this to...
13104         * modules/areadlink-with-size: ...this.
13105         * lib/canonicalize.c: Reflect the renaming.
13106         * modules/canonicalize: Likewise.
13107
13108 2007-08-26  Bruno Haible  <bruno@clisp.org>
13109
13110         * gnulib-tool (func_import): When deciding which files to remove,
13111         consider also dangling symbolic links.
13112         Reported by Eric Blake.
13113
13114 2007-08-26  Bruno Haible  <bruno@clisp.org>
13115
13116         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
13117
13118 2007-08-23  Simon Josefsson  <simon@josefsson.org>
13119
13120         * lib/readline.c: Don't include getline.h, the prototype is now
13121         found in stdio.h.
13122
13123 2007-08-23  Jim Meyering  <jim@meyering.net>
13124
13125         Getdelim touchup.
13126         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
13127         around the funlockfile call, since funlockfile never sets errno.
13128         Don't set errno upon failed realloc.
13129
13130 2007-08-22  Eric Blake  <ebb9@byu.net>
13131
13132         Getline touchups.
13133         * lib/getdelim.c (getdelim): Revert regression that required *n to
13134         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
13135         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
13136         getdelim, rather than whether implementation is missing.
13137         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
13138         * lib/stdio_.h (getline): Also declare if replacement is
13139         required.
13140         * doc/functions/getdelim.texi: New file.
13141         * doc/functions/getline.texi: Likewise.
13142         * doc/gnulib.texi (Function Substitutes): Add new files.
13143         Reported by Bruno Haible.
13144
13145 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
13146
13147         * users.txt: Add Guile.
13148
13149 2007-08-22  Eric Blake  <ebb9@byu.net>
13150
13151         * tests/test-getdelim.c (main): Use remove, not unlink.
13152         * tests/test-getline.c (main): Likewise.
13153
13154         Move getline and getdelim into stdio.h, per POSIX 200x.
13155         * modules/getline (Files): Remove getline.h.
13156         (Depends-on): Add stdio.
13157         (configure.ac): Add module indicator.
13158         * modules/getdelim (Files): Remove getdelim.h.
13159         (Depends-on): Add stdio.
13160         (configure.ac): Add module indicator.
13161         * modules/stdio (Makefile.am): Work with new indicators.
13162         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
13163         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
13164         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
13165         * lib/getdelim.h: Delete.
13166         * lib/getline.h: Delete.
13167         * lib/stdio_.h (getdelim, getline): Declare.
13168         * modules/getdelim-tests: New module.
13169         * modules/getline-tests: Likewise.
13170         * tests/test-getdelim.c: New file.
13171         * tests/test-getline.c: Likewise.
13172         * NEWS: Document the change.
13173         * lib/getline.c: Update choice of header.
13174         * lib/csharpcomp.c: Likewise.
13175         * lib/getpass.c: Likewise.
13176         * lib/javacomp.c: Likewise.
13177         * lib/javaversion.c: Likewise.
13178         * lib/yesno.c: Likewise.
13179         * lib/getdelim.c: Likewise.
13180         (getdelim): Set errno on failure, and avoid memory leak.
13181
13182 2007-08-19  Bruno Haible  <bruno@clisp.org>
13183
13184         * modules/closein (Depends-on): Add freadahead.
13185         * lib/closein.c: Include freadahead.h.
13186         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
13187         is zero.
13188
13189 2007-08-19  Bruno Haible  <bruno@clisp.org>
13190
13191         * modules/freadahead-tests: New file.
13192         * tests/test-freadahead.sh: New file.
13193         * tests/test-freadahead.c: New file.
13194
13195         * modules/freadahead: New file.
13196         * lib/freadahead.h: New file.
13197         * lib/freadahead.c: New file.
13198         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
13199         fbufmode, fpurge, freadable, fwritable.
13200
13201 2007-08-19  Eric Blake  <ebb9@byu.net>
13202
13203         Test yesno in combination with closein.
13204         * lib/yesno.c (yesno): Document use of stdin.
13205         * modules/yesno-tests (Files): New module.
13206         * tests/test-yesno.c (main): New file.
13207         * tests/test-yesno.sh: Likewise.
13208
13209 2007-08-19  Bruno Haible  <bruno@clisp.org>
13210
13211         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
13212         * lib/fseeko.c (rpl_fseeko): Likewise.
13213         * lib/fseterr.c (fseterr): Likewise.
13214
13215 2007-08-19  Bruno Haible  <bruno@clisp.org>
13216
13217         * tests/test-lseek.c (main): Disable a test for BeOS.
13218         * doc/functions/lseek.texi: Document the BeOS bug.
13219
13220 2007-08-19  Bruno Haible  <bruno@clisp.org>
13221             Eric Blake  <ebb9@byu.net>
13222
13223         * lib/lseek.c: Include <sys/stat.h>.
13224         (rpl_lseek): Add workaround code also for Unix platforms.
13225         Needed for BeOS.
13226         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
13227         * doc/functions/lseek.texi: Document BeOS definiency.
13228
13229 2007-08-18  Bruno Haible  <bruno@clisp.org>
13230
13231         * modules/fstrcmp-tests: New file.
13232         * tests/test-fstrcmp.c: New file.
13233
13234 2007-08-18  Bruno Haible  <bruno@clisp.org>
13235
13236         * modules/fstrcmp: New file, from GNU gettext with modifications.
13237         * lib/fstrcmp.h: New file, from GNU gettext.
13238         * lib/fstrcmp.c: New file, from GNU gettext.
13239         * MODULES.html.sh (String handling): Add fstrcmp.
13240
13241 2007-08-18  Bruno Haible  <bruno@clisp.org>
13242
13243         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
13244         'bool'.
13245         (diag, compareseq): Remove const from the ctxt argument.
13246         (USE_HEURISTIC): Undefine at the end.
13247
13248 2007-08-18  Jim Meyering  <jim@meyering.net>
13249
13250         New file: lib/idcache.h
13251         * NEWS: Mention the addition.
13252         * modules/idcache (Files): Add lib/idcache.h
13253         * lib/idcache.c: Include "idcache.h".
13254         Don't include <sys/types.h>.
13255         Add a FIXME comment.
13256         Move file-scoped "static" declarations to the top.
13257         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
13258
13259 2007-08-17  Bruno Haible  <bruno@clisp.org>
13260         and Paul Eggert  <eggert@cs.ucla.edu>
13261
13262         * MODULES.html.sh: Add diffseq.
13263         * modules/diffseq: New file.
13264         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
13265         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
13266
13267 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
13268
13269         Import changes from coreutils for bootstrap script.
13270
13271         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
13272
13273         * build-aux/bootstrap (slurp): Work even in environments where
13274         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
13275         current code does not slurp files whose names start with ".", and
13276         this looks like it might be a troublesome area.
13277
13278         2007-07-11  Jim Meyering  <jim@meyering.net>
13279
13280         If there's a GPL vN copyright comment, require that N == 3.
13281
13282         2007-07-08  Jim Meyering  <jim@meyering.net>
13283
13284         Run the coreutils-specific code only if tests/Makefile.am.in exists.
13285         * build-aux/bootstrap (mam_template): Move definition out of loop.
13286
13287         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
13288
13289         * build-aux/bootstrap (symlink_to_dir): Rename function from
13290         symlink_to_gnulib.  Add a directory parameter.  Update all
13291         callers.
13292         (cp_mark_as_generated): Also check for -- and link to -- files in
13293         gl/.
13294
13295         2007-07-08  Jim Meyering  <jim@meyering.net>
13296
13297         Adapt to deeper hierarchy in gnulib.
13298         * build-aux/bootstrap (symlink_to_dir): If the destination
13299         directory doesn't exist, create it. This is required at least for
13300         "lib/uniwidth/cjk.h".
13301
13302         2007-05-15  Jim Meyering  <jim@meyering.net>
13303
13304         * build-aux/bootstrap: Now that generated Makefile.am files
13305         are no longer under version control, they must be created at
13306         bootstrap time.
13307
13308 2007-08-14  Ben Pfaff  <blp@gnu.org>
13309
13310         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
13311
13312 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
13313
13314         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
13315         given the changes below.
13316         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
13317         even on hosts that have padding bits beyond the supported 64.
13318
13319 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
13320
13321         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
13322         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
13323         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
13324         depends on it.
13325         (xstrtol_error): Remove.
13326         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
13327         but with a different signature.
13328         (ATTRIBUTE_NORETURN, __attribute__): New macros.
13329         * lib/xstrtol-error.c: Include exitfail.h.
13330         (xstrtol_fatal): New function, with a different signature from the
13331         old xstrtol_error, so that the caller need not worry about passing
13332         in an exit status, or about storage management of the option argument.
13333         (xstrtol_error): Now a static function.  Redo signature to
13334         implement xstrtol_fatal.  Output the correct number of hyphens in
13335         front of the option so that the caller need not worry about
13336         storage management.
13337         (N_): New macro.
13338         (_): Remove; not used now.
13339         * modules/xstrtol: Depend on getopt.
13340         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
13341         of old STRTOL_FATAL_ERROR macro.
13342         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
13343         of test program.
13344         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
13345         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
13346
13347 2007-08-08  Eric Blake  <ebb9@byu.net>
13348
13349         * lib/xstrtol-error.c: Add missing include.
13350
13351         Move xstrtol messages into gnulib domain, when --pobase is used.
13352         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
13353         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
13354         * modules/xstrtol (Files): Distribute new file.
13355         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
13356         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
13357         * tests/test-xstrtol.c: ...into new file.
13358         * tests/test-xstrtoul.c: Also test xstrtoul.
13359         * tests/test-xstrtoimax.c: Also test xstrtoimax.
13360         * tests/test-xstrtoumax.c: Also test xstrtoumax.
13361         * tests/test-xstrtol.sh: Drive the tests.
13362         * tests/test-xstrtoimax.sh: Likewise.
13363         * tests/test-xstrtoumax.sh: Likewise.
13364         * modules/xstrtol-tests: New module.
13365         * modules/xstrtoimax-tests: Likewise.
13366         * modules/xstrtoumax-tests: Likewise.
13367
13368 2007-08-08  Jim Meyering  <jim@meyering.net>
13369
13370         New function: mfile_name_concat.
13371         * lib/filenamecat.c (mfile_name_concat): New function, just like
13372         file_name_concat, but return NULL upon failure rather than exiting
13373         with a diagnostic.
13374         * lib/filenamecat.h: Declare it.
13375
13376 2007-08-07  Bruno Haible  <bruno@clisp.org>
13377
13378         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
13379         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
13380         warning from gcc.
13381         Reported by Eric Blake.
13382
13383 2007-08-07  Simon Josefsson  <simon@josefsson.org>
13384
13385         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
13386         * modules/crypto/arcfour (License): Likewise.
13387         * modules/crypto/des-tests (License): Likewise.
13388         * modules/crypto/gc-arctwo-tests (License): Likewise.
13389         * modules/crypto/gc-des-tests (License): Likewise.
13390         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
13391         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
13392         * modules/crypto/gc-md2-tests (License): Likewise.
13393         * modules/crypto/gc-md4-tests (License): Likewise.
13394         * modules/crypto/gc-md5-tests (License): Likewise.
13395         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
13396         * modules/crypto/gc-rijndael-tests (License): Likewise.
13397         * modules/crypto/gc-sha1-tests (License): Likewise.
13398         * modules/crypto/gc-tests (License): Likewise.
13399         * modules/crypto/hmac-md5 (License): Likewise.
13400         * modules/crypto/hmac-sha1 (License): Likewise.
13401         * modules/crypto/md2-tests (License): Likewise.
13402         * modules/crypto/md4-tests (License): Likewise.
13403         * modules/crypto/md5 (License): Likewise.
13404         * modules/crypto/rijndael (License): Likewise.
13405         * modules/crypto/sha1 (License): Likewise.
13406         * modules/memxor (License): Likewise.
13407
13408 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
13409         and Bruno Haible  <bruno@clisp.org>
13410
13411         * NEWS: Describe interface changes to human, xstrtol.
13412         * lib/human.h: Include <xstrtol.h>.
13413         (human_options): Return enum strtol_error, not int.  Remove
13414         bool arg; take int * instead.
13415         * lib/human.c: Don't include "gettext.h".
13416         (_): Remove; no longer used.
13417         Don't include <xstrtol.h>, since human.h does it.
13418         (human_options): Adjust to abovementioned interface changes.
13419         Do not report error to stderr; that's now the caller's
13420         responsibility.
13421         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
13422         interface change.
13423         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
13424         Str, Argument_type_string.  All uses changed.  Put " argument"
13425         in diagnostics to make them clearer.  Change wording of suffix
13426         message for clarity.
13427         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
13428         Argument_type_string.
13429         (STRTOL_FATAL_WARN): Remove; no longer used.
13430         * modules/human (Depends-on): Remove gettext-h.
13431
13432 2007-08-06  Simon Josefsson  <simon@josefsson.org>
13433
13434         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
13435
13436 2007-07-31  Bruno Haible  <bruno@clisp.org>
13437
13438         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
13439         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
13440         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
13441
13442 2007-07-31  Bruno Haible  <bruno@clisp.org>
13443
13444         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
13445         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
13446
13447 2007-07-30  Bruno Haible  <bruno@clisp.org>
13448
13449         * modules/base64 (License): Use the synonymous term "LGPLv2+".
13450         * modules/c-ctype (License): Likewise.
13451         * modules/c-strcase (License): Likewise.
13452         * modules/check-version (License): Likewise.
13453         * modules/iconv (License): Likewise.
13454         * modules/iconv_open (License): Likewise.
13455         * modules/read-file (License): Likewise.
13456         * modules/striconv (License): Likewise.
13457         * modules/strverscmp (License): Likewise.
13458         * modules/vasprintf (License): Likewise.
13459         * modules/crypto/des (License): Likewise.
13460         * modules/crypto/gc (License): Likewise.
13461         * modules/crypto/gc-arcfour (License): Likewise.
13462         * modules/crypto/gc-arctwo (License): Likewise.
13463         * modules/crypto/gc-des (License): Likewise.
13464         * modules/crypto/gc-hmac-md5 (License): Likewise.
13465         * modules/crypto/gc-hmac-sha1 (License): Likewise.
13466         * modules/crypto/gc-md2 (License): Likewise.
13467         * modules/crypto/gc-md4 (License): Likewise.
13468         * modules/crypto/gc-md5 (License): Likewise.
13469         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
13470         * modules/crypto/gc-random (License): Likewise.
13471         * modules/crypto/gc-rijndael (License): Likewise.
13472         * modules/crypto/gc-sha1 (License): Likewise.
13473         * modules/crypto/md2 (License): Likewise.
13474         * modules/crypto/md4 (License): Likewise.
13475
13476 2007-07-30  Jim Meyering  <jim@meyering.net>
13477
13478         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
13479         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
13480         it has valid stat data.  This bug would cause du not to count the
13481         sizes of inaccessible directories.
13482         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
13483         in <http://bugzilla.redhat.com/250077>.
13484
13485 2007-07-25  Peter O'Gorman  <peter@pogma.com>
13486             Bruno Haible  <bruno@clisp.org>
13487
13488         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
13489         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
13490         #include_next, gives a diagnostic about it, but reports no error in
13491         the exit code.
13492         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
13493
13494 2007-07-24  Ben Pfaff  <blp@gnu.org>
13495
13496         Improve name: "count-one-bits" is better than "popcount".
13497         * MODULES.html.sh: Update name.
13498         * lib/popcount.h: Renamed lib/count-one-bits.h.
13499         (popcount): Renamed count_one_bits.
13500         (popcountl): Renamed count_one_bits_l.
13501         (popcountll): Renamed count_one_bits_ll.
13502         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
13503         * modules/popcount: Renamed module/count-one-bits.
13504         * modules/popcount-tests: Renamed module/count-one-bits-tests.
13505         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
13506
13507 2007-07-23  Ben Pfaff  <blp@gnu.org>
13508
13509         * lib/popcount.h (popcount32): Reduce size of constants, to allow
13510         better code generation, and add U to large constants to avoid
13511         warnings, in non-GCC case.
13512         Suggested by Bruno Haible.
13513
13514 2007-07-23  Ben Pfaff  <blp@gnu.org>
13515
13516         * lib/popcount.h: Use verify_true instead of if...abort.
13517         * modules/popcount: Depend on verify module.
13518         Suggested by Jim Meyering.
13519
13520 2007-07-23  Bruno Haible  <bruno@clisp.org>
13521
13522         * gnulib-tool (func_import): Create a .cvsignore file also when the
13523         directory is not yet in CVS but the toplevel directory is. When
13524         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
13525         Reported by Karl Berry.
13526
13527 2007-07-22  Ben Pfaff  <blp@gnu.org>
13528
13529         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
13530         case.
13531         Suggested by Eric Blake.
13532
13533 2007-07-22  Ben Pfaff  <blp@gnu.org>
13534
13535         New module: popcount.
13536         * MODULES.html.sh: Add popcount.
13537         * modules/popcount: New file.
13538         * modules/popcount-tests: New file.
13539         * tests/test-popcount.c: New file.
13540         * lib/popcount.h: New file.
13541         * m4/popcount.m4: New file.
13542
13543 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
13544
13545         * build-aux/announce-gen: Update to GPLv3.
13546
13547         * build-aux/config.guess: Update from config.
13548
13549 2007-07-21  Bruno Haible  <bruno@clisp.org>
13550
13551         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
13552         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
13553
13554 2007-07-20  Jim Meyering  <jim@meyering.net>
13555
13556         * check-module: Diagnose a self-dependency.
13557
13558 2007-07-19  Bruno Haible  <bruno@clisp.org>
13559
13560         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
13561         empty.
13562         Reported by Eric Blake.
13563
13564 2007-07-18  Bruno Haible  <bruno@clisp.org>
13565
13566         * gnulib-tool: New options --po-base, --po-domain.
13567         (func_usage): Document them.
13568         (pobase, po_domain): New variables.
13569         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
13570         DEFAULT_TEXT_DOMAIN.
13571         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
13572         (func_import): Consider pobase and po_domain. Create a po/ directory.
13573         (func_create_testdir): Set pobase and po_domain to empty.
13574         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
13575         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
13576
13577 2007-07-18  Bruno Haible  <bruno@clisp.org>
13578
13579         * gnulib-tool (func_get_automake_snippet): Synthesize also an
13580         EXTRA_DIST augmentation for files in build-aux/.
13581
13582 2007-07-16  Bruno Haible  <bruno@clisp.org>
13583
13584         * modules/lseek (License): Use the synonymous term "LGPLv2+".
13585         * modules/getdelim (License): Likewise.
13586
13587 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
13588
13589         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
13590         * modules/d-type (License): Likewise.
13591         * modules/extensions (License): Likewise.
13592         * modules/fnmatch (License): Likewise.
13593         * modules/fseeko (License): Likewise.
13594         * modules/getaddrinfo (License): Likewise.
13595         * modules/getline (License): Likewise.
13596         * modules/getlogin_r (License): Likewise.
13597         * modules/getpass (License): Likewise.
13598         * modules/gettimeofday (License): Likewise.
13599         * modules/glob (License): Likewise.
13600         * modules/inet_ntop (License): Likewise.
13601         * modules/malloc (License): Likewise.
13602         * modules/malloca (License): Likewise.
13603         * modules/memmem (License): Likewise.
13604         * modules/mempcpy (License): Likewise.
13605         * modules/memset (License): Likewise.
13606         * modules/minmax (License): Likewise.
13607         * modules/mktime (License): Likewise.
13608         * modules/netinet_in (License): Likewise.
13609         * modules/pathmax (License): Likewise.
13610         * modules/poll (License): Likewise.
13611         * modules/regex (License): Likewise.
13612         * modules/snprintf (License): Likewise.
13613         * modules/stdbool (License): Likewise.
13614         * modules/stdint (License): Likewise.
13615         * modules/stdio (License): Likewise.
13616         * modules/strcase (License): Likewise.
13617         * modules/strcasestr (License): Likewise.
13618         * modules/strdup (License): Likewise.
13619         * modules/string (License): Likewise.
13620         * modules/strndup (License): Likewise.
13621         * modules/strnlen (License): Likewise.
13622         * modules/strpbrk (License): Likewise.
13623         * modules/strptime (License): Likewise.
13624         * modules/strsep (License): Likewise.
13625         * modules/sys_select (License): Likewise.
13626         * modules/sys_socket (License): Likewise.
13627         * modules/sys_stat (License): Likewise.
13628         * modules/sys_time (License): Likewise.
13629         * modules/time (License): Likewise.
13630         * modules/time_r (License): Likewise.
13631         * modules/timegm (License): Likewise.
13632         * modules/unistd (License): Likewise.
13633         * modules/vsnprintf (License): Likewise.
13634         * modules/wctype (License): Likewise.
13635
13636 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13637
13638         * modules/argz (License): LGPLv2+.
13639
13640 2007-07-15  Karl Berry  <karl@gnu.org>
13641
13642         * doc/gnulib.texi: revise node structure per new fdl.texi.
13643
13644 2007-07-14  Bruno Haible  <bruno@clisp.org>
13645
13646         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
13647         the output file.
13648         * lib/uniname/uninames.h: Regenerated.
13649
13650 2007-07-14  Karl Berry  <karl@gnu.org>
13651
13652         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
13653         omitting sectioning and index commands.
13654
13655 2007-07-13  Bruno Haible  <bruno@clisp.org>
13656
13657         New gnulib-tool option --more-symlinks.
13658         * gnulib-tool (func_usage): Document --more-symlinks.
13659         (do_copyrights): New variable.
13660         Recognize option --more-symlinks.
13661         (func_import): Don't add a copyright notice transform to
13662         sed_transform_lib_file if do_copyrights is empty.
13663
13664 2007-07-13  Bruno Haible  <bruno@clisp.org>
13665
13666         * lib/vasnprintf.c (decimal_point_char): Define also if
13667         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
13668         && !NEED_PRINTF_DIRECTIVE_A.
13669         Reported by Clemens Koller <clemens.koller@anagramm.de> via
13670         Gary V. Vaughan <gary@gnu.org>.
13671
13672 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
13673
13674         * lib/inttypes_.h: Undo previous change, since it was fixed
13675         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
13676
13677 2007-07-13  Bruno Haible  <bruno@clisp.org>
13678
13679         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
13680         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
13681
13682 2007-07-13  Jim Meyering  <jim@meyering.net>
13683
13684         df: Don't fail for Tru64's "file-on-file mount".
13685         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
13686         so we fall through and use statfs instead.  Details here:
13687         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
13688         Reported by Albert Chin.
13689
13690 2007-07-13  Bruno Haible  <bruno@clisp.org>
13691
13692         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
13693         * modules/configmake (License): Likewise.
13694         * modules/gettext (License): Likewise.
13695         * modules/gettext-h (License): Likewise.
13696         * modules/include_next (License): Likewise.
13697         * modules/link-warning (License): Likewise.
13698         * modules/localcharset (License): Likewise.
13699         * modules/localename (License): Likewise.
13700         * modules/lock (License): Likewise.
13701         * modules/relocatable-lib-lgpl (License): Likewise.
13702         * modules/size_max (License): Likewise.
13703         * modules/vasnprintf (License): Likewise.
13704         * modules/wchar (License): Likewise.
13705         * modules/xsize (License): Likewise.
13706
13707 2007-07-13  Bruno Haible  <bruno@clisp.org>
13708
13709         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
13710         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
13711
13712 2007-07-12  Bruno Haible  <bruno@clisp.org>
13713
13714         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
13715         in the modules files.
13716
13717 2007-07-11  Karl Berry  <karl@gnu.org>
13718
13719         * MODULES.html.sh (func_module): use
13720          sed -e '\|^'"${includefile}"'$|d'
13721          instead of /.../d, to avoid errors on $includefile's containing /.
13722
13723 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
13724
13725         * gnulib-tool (func_import): Avoid duplication of --avoid
13726         statements
13727         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
13728         names to `_' in variable names.
13729
13730 2007-07-10  Eric Blake  <ebb9@byu.net>
13731
13732         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
13733         * NEWS: Document this change.
13734
13735 2007-07-08  Bruno Haible  <bruno@clisp.org>
13736
13737         Update to Unicode 5.0.
13738         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
13739         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
13740         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
13741         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
13742         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
13743         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
13744         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
13745         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
13746         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
13747         U+10A3F, U+1D242..U+1D244.
13748         (nonspacing_table_ind): Update.
13749         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
13750         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
13751
13752 2007-07-08  Bruno Haible  <bruno@clisp.org>
13753
13754         Update to Unicode 5.0.
13755         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
13756         code transform. Extend the name index field of unicode_name_to_code and
13757         unicode_code_to_name from 16 to 24 bits.
13758         * lib/uniname/uniname.c (unicode_character_name,
13759         unicode_name_character): Add the range 0x12xxx to the code transform.
13760         * lib/uniname/uninames.h: Regenerated.
13761         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
13762
13763 2007-07-07  Bruno Haible  <bruno@clisp.org>
13764
13765         * modules/wcwidth-tests: New file.
13766         * tests/test-wcwidth.c: New file.
13767
13768         Work around MacOS X wcwidth() bug.
13769         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
13770         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
13771         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
13772         original wcwidth in non-UTF-8 locales.
13773         * modules/wcwidth (Depends-on): Add localcharset, streq,
13774         uniwidth/width.
13775         * doc/functions/wcwidth.texi: Update.
13776
13777 2007-07-07  Bruno Haible  <bruno@clisp.org>
13778
13779         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
13780         (wcwidth): New declaration.
13781         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
13782         macros.
13783         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
13784         here. Prepare for creating <wchar.h> unconditionally.
13785         * modules/wchar (Depends-on): Add link-warning.
13786         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
13787         REPLACE_WCWIDTH, and GL_LINK_WARNING.
13788         * lib/wcwidth.h: Remove file.
13789         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
13790         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
13791         * modules/wcwidth (Files): Remove lib/wcwidth.h.
13792         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
13793         (Include): Replace wcwidth.h with <wchar.h>.
13794         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
13795         * lib/mbchar.h: Don't include wcwidth.h.
13796         * lib/mbswidth.c: Likewise.
13797         * NEWS: Mention the change.
13798
13799 2007-07-07  Bruno Haible  <bruno@clisp.org>
13800
13801         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
13802         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
13803         definition with an external declaration.
13804         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
13805         defined as a function. Remove AC_C_INLINE requirement.
13806         * modules/wcwidth (Files): Add lib/wcwidth.c.
13807         (Makefile.am): Remove redundant statement.
13808
13809 2007-07-07  Bruno Haible  <bruno@clisp.org>
13810
13811         * MODULES.html.sh (Unicode string functions): Add the new modules.
13812
13813         * tests/uniwidth/test-u32-strwidth.c: New file.
13814         * modules/uniwidth/u32-strwidth-tests: New file.
13815
13816         * lib/uniwidth/u32-strwidth.c: New file.
13817         * modules/uniwidth/u32-strwidth: New file.
13818
13819         * tests/uniwidth/test-u16-strwidth.c: New file.
13820         * modules/uniwidth/u16-strwidth-tests: New file.
13821
13822         * lib/uniwidth/u16-strwidth.c: New file.
13823         * modules/uniwidth/u16-strwidth: New file.
13824
13825         * tests/uniwidth/test-u8-strwidth.c: New file.
13826         * modules/uniwidth/u8-strwidth-tests: New file.
13827
13828         * lib/uniwidth/u8-strwidth.c: New file.
13829         * modules/uniwidth/u8-strwidth: New file.
13830
13831         * tests/uniwidth/test-u32-width.c: New file.
13832         * modules/uniwidth/u32-width-tests: New file.
13833
13834         * lib/uniwidth/u32-width.c: New file.
13835         * modules/uniwidth/u32-width: New file.
13836
13837         * tests/uniwidth/test-u16-width.c: New file.
13838         * modules/uniwidth/u16-width-tests: New file.
13839
13840         * lib/uniwidth/u16-width.c: New file.
13841         * modules/uniwidth/u16-width: New file.
13842
13843         * tests/uniwidth/test-u8-width.c: New file.
13844         * modules/uniwidth/u8-width-tests: New file.
13845
13846         * lib/uniwidth/u8-width.c: New file.
13847         * modules/uniwidth/u8-width: New file.
13848
13849         * tests/uniwidth/test-uc_width.c: New file.
13850         * modules/uniwidth/width-tests: New file.
13851
13852         * lib/uniwidth/width.c: New file, from GNU libiconv.
13853         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
13854         * modules/uniwidth/width: New file.
13855
13856         * lib/uniwidth.h: New file, from GNU libiconv.
13857         * modules/uniwidth/base: New file.
13858
13859 2007-07-07  Bruno Haible  <bruno@clisp.org>
13860
13861         * lib/uniname.h: New file, from GNU gettext.
13862         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
13863         * lib/uniname/uninames.h: New file, from GNU gettext.
13864         * lib/uniname/uniname.c: New file, from GNU gettext.
13865         * tests/uniname/test-uninames.sh: New file.
13866         * tests/uniname/test-uninames.c: New file, from GNU gettext.
13867         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
13868         * modules/uniname/base: New file.
13869         * modules/uniname/uniname: New file.
13870         * modules/uniname/uniname-tests: New file.
13871         * MODULES.html.sh (Unicode string functions): Add the new modules.
13872
13873 2007-07-06  Bruno Haible  <bruno@clisp.org>
13874
13875         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
13876
13877 2007-07-06  Bruno Haible  <bruno@clisp.org>
13878
13879         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
13880         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
13881         includes <cygwin/sys_time.h> which includes <sys/select.h> which
13882         include <sys/time.h>.
13883         Reported by Eric Blake.
13884
13885 2007-07-06  Eric Blake  <ebb9@byu.net>
13886
13887         Fix testing canonicalize on cygwin.
13888         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
13889         Revert patch from 2007-06-19.
13890         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
13891         canonicalize module is also in use.
13892         * tests/test-canonicalize.c: New file.
13893         * tests/test-canonicalize.sh: Likewise.
13894         * modules/canonicalize-tests: Likewise.
13895
13896 2007-07-06  Jim Meyering  <jim@meyering.net>
13897
13898         * lib/getugroups.c (getugroups): Detect getgrent failure.
13899         Adjust comment to reflect reality: this function may return -1.
13900
13901 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
13902
13903         * build-aux/bootstrap (TP_URL,get_translations): Update to use
13904         the new TP address.
13905         (usage): Fix typo
13906         (gnulib_mk): New variable.
13907
13908 2007-07-05  Jim Meyering  <jim@meyering.net>
13909
13910         Don't let endgrent clobber errno, no matter how improbable.
13911         * lib/getugroups.c (getugroups): Save and restore errno around
13912         endgrent call.
13913
13914         Close the group DB even when failing with 2^31 or more members.
13915         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
13916
13917 2007-07-04  Jim Meyering  <jim@meyering.net>
13918
13919         * lib/getugroups.h: New file.
13920         * lib/getugroups.c: Include "getugroups.h".
13921         Remove uses of "register" keyword.
13922         Move local variable, "cp", down into scope where used.
13923         Give "username" parameter the "const" attribute.
13924         * modules/getugroups (Files): Add lib/getugroups.h
13925
13926 2007-07-04  Karl Berry  <karl@gnu.org>
13927
13928         * MODULES.html.sh (func_all_modules): Complete rename of
13929         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
13930
13931 2007-07-02  Bruno Haible  <bruno@clisp.org>
13932
13933         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
13934         mode, when inttypes.h comes from gnulib.
13935         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
13936
13937 2007-07-02  Simon Josefsson  <simon@josefsson.org>
13938
13939         * NEWS: Mention lgpl module name change.
13940
13941         * modules/lgpl-2.1: Renamed from lgpl.
13942
13943         * NEWS: Mention gpl module name change.
13944
13945         * modules/gpl-3.0: New file, based on gpl-2.0.
13946
13947         * modules/gpl-2.0: Renamed from gpl.
13948
13949         * modules/gpl: Fix filename, doc/gpl.texi is now found at
13950         doc/gpl-2.0.texi.
13951
13952 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
13953
13954         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
13955         #define __STDC_LIMIT_MACROS temporarily while including
13956         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
13957         Problem reported by Joel E. Denny in
13958         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
13959
13960 2007-07-01  Bruno Haible  <bruno@clisp.org>
13961
13962         * lib/unistdio.h: New file.
13963         * lib/unistdio/u-asnprintf.h: New file.
13964         * lib/unistdio/u-asprintf.h: New file.
13965         * lib/unistdio/u-printf-args.c: New file.
13966         * lib/unistdio/u-printf-args.h: New file.
13967         * lib/unistdio/u-printf-parse.h: New file.
13968         * lib/unistdio/u-snprintf.h: New file.
13969         * lib/unistdio/u-sprintf.h: New file.
13970         * lib/unistdio/u-vasprintf.h: New file.
13971         * lib/unistdio/u-vsnprintf.h: New file.
13972         * lib/unistdio/u-vsprintf.h: New file.
13973         * lib/unistdio/ulc-asnprintf.c: New file.
13974         * lib/unistdio/ulc-asprintf.c: New file.
13975         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
13976         * lib/unistdio/ulc-printf-parse.c: New file.
13977         * lib/unistdio/ulc-snprintf.c: New file.
13978         * lib/unistdio/ulc-sprintf.c: New file.
13979         * lib/unistdio/ulc-vasnprintf.c: New file.
13980         * lib/unistdio/ulc-vasprintf.c: New file.
13981         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
13982         * lib/unistdio/ulc-vsnprintf.c: New file.
13983         * lib/unistdio/ulc-vsprintf.c: New file.
13984         * lib/unistdio/u8-asnprintf.c: New file.
13985         * lib/unistdio/u8-asprintf.c: New file.
13986         * lib/unistdio/u8-printf-parse.c: New file.
13987         * lib/unistdio/u8-snprintf.c: New file.
13988         * lib/unistdio/u8-sprintf.c: New file.
13989         * lib/unistdio/u8-vasnprintf.c: New file.
13990         * lib/unistdio/u8-vasprintf.c: New file.
13991         * lib/unistdio/u8-vsnprintf.c: New file.
13992         * lib/unistdio/u8-vsprintf.c: New file.
13993         * lib/unistdio/u8-u8-asnprintf.c: New file.
13994         * lib/unistdio/u8-u8-asprintf.c: New file.
13995         * lib/unistdio/u8-u8-snprintf.c: New file.
13996         * lib/unistdio/u8-u8-sprintf.c: New file.
13997         * lib/unistdio/u8-u8-vasnprintf.c: New file.
13998         * lib/unistdio/u8-u8-vasprintf.c: New file.
13999         * lib/unistdio/u8-u8-vsnprintf.c: New file.
14000         * lib/unistdio/u8-u8-vsprintf.c: New file.
14001         * lib/unistdio/u16-asnprintf.c: New file.
14002         * lib/unistdio/u16-asprintf.c: New file.
14003         * lib/unistdio/u16-printf-parse.c: New file.
14004         * lib/unistdio/u16-snprintf.c: New file.
14005         * lib/unistdio/u16-sprintf.c: New file.
14006         * lib/unistdio/u16-vasnprintf.c: New file.
14007         * lib/unistdio/u16-vasprintf.c: New file.
14008         * lib/unistdio/u16-vsnprintf.c: New file.
14009         * lib/unistdio/u16-vsprintf.c: New file.
14010         * lib/unistdio/u16-u16-asnprintf.c: New file.
14011         * lib/unistdio/u16-u16-asprintf.c: New file.
14012         * lib/unistdio/u16-u16-snprintf.c: New file.
14013         * lib/unistdio/u16-u16-sprintf.c: New file.
14014         * lib/unistdio/u16-u16-vasnprintf.c: New file.
14015         * lib/unistdio/u16-u16-vasprintf.c: New file.
14016         * lib/unistdio/u16-u16-vsnprintf.c: New file.
14017         * lib/unistdio/u16-u16-vsprintf.c: New file.
14018         * lib/unistdio/u32-asnprintf.c: New file.
14019         * lib/unistdio/u32-asprintf.c: New file.
14020         * lib/unistdio/u32-printf-parse.c: New file.
14021         * lib/unistdio/u32-snprintf.c: New file.
14022         * lib/unistdio/u32-sprintf.c: New file.
14023         * lib/unistdio/u32-vasnprintf.c: New file.
14024         * lib/unistdio/u32-vasprintf.c: New file.
14025         * lib/unistdio/u32-vsnprintf.c: New file.
14026         * lib/unistdio/u32-vsprintf.c: New file.
14027         * lib/unistdio/u32-u32-asnprintf.c: New file.
14028         * lib/unistdio/u32-u32-asprintf.c: New file.
14029         * lib/unistdio/u32-u32-snprintf.c: New file.
14030         * lib/unistdio/u32-u32-sprintf.c: New file.
14031         * lib/unistdio/u32-u32-vasnprintf.c: New file.
14032         * lib/unistdio/u32-u32-vasprintf.c: New file.
14033         * lib/unistdio/u32-u32-vsnprintf.c: New file.
14034         * lib/unistdio/u32-u32-vsprintf.c: New file.
14035         * tests/unistdio/test-ulc-asnprintf1.c: New file.
14036         * tests/unistdio/test-ulc-asnprintf1.h: New file.
14037         * tests/unistdio/test-ulc-printf1.h: New file.
14038         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
14039         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
14040         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
14041         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
14042         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
14043         * tests/unistdio/test-ulc-vasprintf1.c: New file.
14044         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
14045         * tests/unistdio/test-ulc-vsprintf1.c: New file.
14046         * tests/unistdio/test-u8-asnprintf1.c: New file.
14047         * tests/unistdio/test-u8-asnprintf1.h: New file.
14048         * tests/unistdio/test-u8-printf1.h: New file.
14049         * tests/unistdio/test-u8-vasnprintf1.c: New file.
14050         * tests/unistdio/test-u8-vasnprintf2.c: New file.
14051         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
14052         * tests/unistdio/test-u8-vasnprintf3.c: New file.
14053         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
14054         * tests/unistdio/test-u8-vasprintf1.c: New file.
14055         * tests/unistdio/test-u8-vsnprintf1.c: New file.
14056         * tests/unistdio/test-u8-vsprintf1.c: New file.
14057         * tests/unistdio/test-u16-asnprintf1.c: New file.
14058         * tests/unistdio/test-u16-asnprintf1.h: New file.
14059         * tests/unistdio/test-u16-printf1.h: New file.
14060         * tests/unistdio/test-u16-vasnprintf1.c: New file.
14061         * tests/unistdio/test-u16-vasnprintf2.c: New file.
14062         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
14063         * tests/unistdio/test-u16-vasnprintf3.c: New file.
14064         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
14065         * tests/unistdio/test-u16-vasprintf1.c: New file.
14066         * tests/unistdio/test-u16-vsnprintf1.c: New file.
14067         * tests/unistdio/test-u16-vsprintf1.c: New file.
14068         * tests/unistdio/test-u32-asnprintf1.c: New file.
14069         * tests/unistdio/test-u32-asnprintf1.h: New file.
14070         * tests/unistdio/test-u32-printf1.h: New file.
14071         * tests/unistdio/test-u32-vasnprintf1.c: New file.
14072         * tests/unistdio/test-u32-vasnprintf2.c: New file.
14073         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
14074         * tests/unistdio/test-u32-vasnprintf3.c: New file.
14075         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
14076         * tests/unistdio/test-u32-vasprintf1.c: New file.
14077         * tests/unistdio/test-u32-vsnprintf1.c: New file.
14078         * tests/unistdio/test-u32-vsprintf1.c: New file.
14079         * modules/unistdio/base: New file.
14080         * modules/unistdio/u-printf-args: New file.
14081         * modules/unistdio/ulc-asnprintf: New file.
14082         * modules/unistdio/ulc-asprintf: New file.
14083         * modules/unistdio/ulc-fprintf: New file.
14084         * modules/unistdio/ulc-printf-parse: New file.
14085         * modules/unistdio/ulc-snprintf: New file.
14086         * modules/unistdio/ulc-sprintf: New file.
14087         * modules/unistdio/ulc-vasnprintf: New file.
14088         * modules/unistdio/ulc-vasprintf: New file.
14089         * modules/unistdio/ulc-vfprintf: New file.
14090         * modules/unistdio/ulc-vsnprintf: New file.
14091         * modules/unistdio/ulc-vsprintf: New file.
14092         * modules/unistdio/u8-asnprintf: New file.
14093         * modules/unistdio/u8-asprintf: New file.
14094         * modules/unistdio/u8-printf-parse: New file.
14095         * modules/unistdio/u8-snprintf: New file.
14096         * modules/unistdio/u8-sprintf: New file.
14097         * modules/unistdio/u8-vasnprintf: New file.
14098         * modules/unistdio/u8-vasprintf: New file.
14099         * modules/unistdio/u8-vsnprintf: New file.
14100         * modules/unistdio/u8-vsprintf: New file.
14101         * modules/unistdio/u8-u8-asnprintf: New file.
14102         * modules/unistdio/u8-u8-asprintf: New file.
14103         * modules/unistdio/u8-u8-snprintf: New file.
14104         * modules/unistdio/u8-u8-sprintf: New file.
14105         * modules/unistdio/u8-u8-vasnprintf: New file.
14106         * modules/unistdio/u8-u8-vasprintf: New file.
14107         * modules/unistdio/u8-u8-vsnprintf: New file.
14108         * modules/unistdio/u8-u8-vsprintf: New file.
14109         * modules/unistdio/u16-asnprintf: New file.
14110         * modules/unistdio/u16-asprintf: New file.
14111         * modules/unistdio/u16-printf-parse: New file.
14112         * modules/unistdio/u16-snprintf: New file.
14113         * modules/unistdio/u16-sprintf: New file.
14114         * modules/unistdio/u16-vasnprintf: New file.
14115         * modules/unistdio/u16-vasprintf: New file.
14116         * modules/unistdio/u16-vsnprintf: New file.
14117         * modules/unistdio/u16-vsprintf: New file.
14118         * modules/unistdio/u16-u16-asnprintf: New file.
14119         * modules/unistdio/u16-u16-asprintf: New file.
14120         * modules/unistdio/u16-u16-snprintf: New file.
14121         * modules/unistdio/u16-u16-sprintf: New file.
14122         * modules/unistdio/u16-u16-vasnprintf: New file.
14123         * modules/unistdio/u16-u16-vasprintf: New file.
14124         * modules/unistdio/u16-u16-vsnprintf: New file.
14125         * modules/unistdio/u16-u16-vsprintf: New file.
14126         * modules/unistdio/u32-asnprintf: New file.
14127         * modules/unistdio/u32-asprintf: New file.
14128         * modules/unistdio/u32-printf-parse: New file.
14129         * modules/unistdio/u32-snprintf: New file.
14130         * modules/unistdio/u32-sprintf: New file.
14131         * modules/unistdio/u32-vasnprintf: New file.
14132         * modules/unistdio/u32-vasprintf: New file.
14133         * modules/unistdio/u32-vsnprintf: New file.
14134         * modules/unistdio/u32-vsprintf: New file.
14135         * modules/unistdio/u32-u32-asnprintf: New file.
14136         * modules/unistdio/u32-u32-asprintf: New file.
14137         * modules/unistdio/u32-u32-snprintf: New file.
14138         * modules/unistdio/u32-u32-sprintf: New file.
14139         * modules/unistdio/u32-u32-vasnprintf: New file.
14140         * modules/unistdio/u32-u32-vasprintf: New file.
14141         * modules/unistdio/u32-u32-vsnprintf: New file.
14142         * modules/unistdio/u32-u32-vsprintf: New file.
14143         * modules/unistdio/ulc-asnprintf-tests: New file.
14144         * modules/unistdio/ulc-vasnprintf-tests: New file.
14145         * modules/unistdio/ulc-vasprintf-tests: New file.
14146         * modules/unistdio/ulc-vsnprintf-tests: New file.
14147         * modules/unistdio/ulc-vsprintf-tests: New file.
14148         * modules/unistdio/u8-asnprintf-tests: New file.
14149         * modules/unistdio/u8-vasnprintf-tests: New file.
14150         * modules/unistdio/u8-vasprintf-tests: New file.
14151         * modules/unistdio/u8-vsnprintf-tests: New file.
14152         * modules/unistdio/u8-vsprintf-tests: New file.
14153         * modules/unistdio/u16-asnprintf-tests: New file.
14154         * modules/unistdio/u16-vasnprintf-tests: New file.
14155         * modules/unistdio/u16-vasprintf-tests: New file.
14156         * modules/unistdio/u16-vsnprintf-tests: New file.
14157         * modules/unistdio/u16-vsprintf-tests: New file.
14158         * modules/unistdio/u32-asnprintf-tests: New file.
14159         * modules/unistdio/u32-vasnprintf-tests: New file.
14160         * modules/unistdio/u32-vasprintf-tests: New file.
14161         * modules/unistdio/u32-vsnprintf-tests: New file.
14162         * modules/unistdio/u32-vsprintf-tests: New file.
14163         * MODULES.html.sh (Unicode string functions): Add the new modules.
14164
14165 2007-07-01  Bruno Haible  <bruno@clisp.org>
14166
14167         * lib/sprintf.c (sprintf): Limit the available length estimation,
14168         to avoid address wraparound.
14169         * lib/vsprintf.c (vsprintf): Likewise.
14170         * modules/sprintf-posix (Dependencies): Add stdint.
14171         * modules/vsprintf-posix (Dependencies): Likewise.
14172
14173 2007-07-01  Bruno Haible  <bruno@clisp.org>
14174
14175         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
14176         Windows PATH as well. Conservative double-quoting. Comments.
14177
14178 2007-07-01  Bruno Haible  <bruno@clisp.org>
14179             Eric Blake  <ebb9@byu.net>
14180             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14181
14182         * gnulib-tool (self_abspathname): Fix algorithm to cope with
14183         empty components in $PATH, denoting '.'.
14184
14185 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14186
14187         * gnulib-tool: Fix indentation.
14188         (func_create_megatestdir): Likewise.
14189         Report by Bruno Haible.
14190
14191 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14192
14193         Sync from Automake.
14194         * build-aux/gnupload: Fix shell portability issues with for loops.
14195         Report by Karl Berry.
14196
14197 2007-06-29  Simon Josefsson  <simon@josefsson.org>
14198
14199         * build-aux/maint.mk (POURL): Use translationproject.org.
14200
14201 2007-06-27  Simon Josefsson  <simon@josefsson.org>
14202             Bruno Haible  <bruno@clisp.org>
14203
14204         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
14205         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
14206         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
14207         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
14208         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
14209
14210 2007-06-27  Bruno Haible  <bruno@clisp.org>
14211
14212         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
14213         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
14214
14215 2007-06-26  Karl Berry  <karl@gnu.org>
14216
14217         * MODULES.html.sh: remove xreadlink-with-size.
14218
14219 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
14220
14221         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
14222         method that I hope also handles the double-include problem noted
14223         by Bruno Haible in
14224         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
14225
14226 2007-06-23  Bruno Haible  <bruno@clisp.org>
14227
14228         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
14229         Don't let the 'mostlyclean' target fail if the last subdirectory could
14230         not be removed.
14231         Reported by Karl Berry.
14232
14233 2007-06-23  Bruno Haible  <bruno@clisp.org>
14234
14235         * gnulib-tool (echo): Add a speedier workaround for ksh.
14236         * tests/test-echo.sh: Likewise.
14237
14238 2007-06-23  Bruno Haible  <bruno@clisp.org>
14239
14240         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
14241         * tests/test-echo.sh: Likewise.
14242
14243 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14244
14245         * gnulib-tool (IFS): Initialize early, so we don't set it to
14246         empty later.
14247         (self_abspathname): Rewrite algorithm to set it, reindent.
14248         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
14249         (func_create_megatestdir): Merge some sed scripts.
14250
14251 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
14252
14253         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
14254         exposed by Sun Studio 11 cc on Solaris 8.
14255
14256 2007-06-22  Bruno Haible  <bruno@clisp.org>
14257
14258         * gnulib-tool (echo): Ensure the echo primitive does not interpret
14259         backslashes.
14260         * tests/test-echo.sh: New file.
14261
14262 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14263
14264         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
14265         simplify `sed_replace_build_aux' scripts, they are portable but
14266         echoing them with `echo' is not.
14267         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
14268
14269 2007-06-21  Karl Berry  <karl@gnu.org>
14270
14271         * config/srclist.txt: guess we can't handle the licenses via
14272         srclist at the moment.
14273
14274 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
14275
14276         * MODULES.html.sh: Add include_next.
14277         * modules/include_next: New file.
14278
14279 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
14280
14281         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
14282         INCLUDE_NEXT.
14283         (gl_CHECK_NEXT_HEADERS): New macro.
14284         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
14285         the obsolescent gl_ABSOLUTE_HEADER.
14286         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
14287         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
14288         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
14289         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
14290         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
14291         * m4/math_h.m4 (gl_MATH_H): Likewise.
14292         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
14293         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
14294         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
14295         * m4/stdint.m4 (gl_STDINT_H): Likewise.
14296         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
14297         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
14298         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
14299         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
14300         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
14301         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
14302         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
14303         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
14304         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
14305         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
14306         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
14307         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
14308         * m4/inttypes.m4 (gl_INTTYPES_H): Define
14309         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
14310         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
14311         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
14312         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
14313         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
14314         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
14315         * lib/float_.h: Likewise.
14316         * lib/inttypes_.h: Likewise.
14317         * lib/math_.h: Likewise.
14318         * lib/search_.h: Likewise.
14319         * lib/signal_.h: Likewise.
14320         * lib/stdint_.h: Likewise.
14321         * lib/stdio_.h: Likewise.
14322         * lib/stdlib_.h: Likewise.
14323         * lib/string_.h: Likewise.
14324         * lib/sys_stat_.h: Likewise.
14325         * lib/sys_time_.h: Likewise.
14326         * lib/time_.h: Likewise.
14327         * lib/unistd_.h: Likewise.
14328         * lib/wchar_.h: Likewise.
14329         * lib/wctype_.h: Likewise.
14330         * lib/dirent_.h: Likewise.
14331         * lib/iconv_.h: Likewise.
14332         * lib/locale_.h: Likewise.
14333         * lib/netinet_in_.h: Likewise.
14334         * lib/sys_select_.h: Likewise.
14335         * lib/sys_socket_.h: Likewise.
14336         * lib/sysexits_.h: Likewise.
14337         * modules/fcntl (Depends-on): Depend on include_next, not
14338         absolute_header.
14339         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
14340         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
14341         * modules/fchdir: Likewise.
14342         * modules/float: Likewise.
14343         * modules/iconv_open: Likewise.
14344         * modules/inttypes: Likewise.
14345         * modules/locale: Likewise.
14346         * modules/math: Likewise.
14347         * modules/netinet_in: Likewise.
14348         * modules/search: Likewise.
14349         * modules/signal: Likewise.
14350         * modules/stdint: Likewise.
14351         * modules/stdio: Likewise.
14352         * modules/stdlib: Likewise.
14353         * modules/string: Likewise.
14354         * modules/sys_select: Likewise.
14355         * modules/sys_socket: Likewise.
14356         * modules/sys_stat: Likewise.
14357         * modules/sys_time: Likewise.
14358         * modules/sysexits: Likewise.
14359         * modules/time: Likewise.
14360         * modules/unistd: Likewise.
14361         * modules/wchar: Likewise.
14362         * modules/wctype: Likewise.
14363         * modules/sys_stat: Change maintainer to "all".
14364         * modules/unistd: Likewise.
14365
14366 2007-06-20  Karl Berry  <karl@gnu.org>
14367
14368         * config/srclist.txt: track www changes in license files.
14369
14370 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
14371
14372         * build-aux/bootstrap: Remove stray dot.
14373         Make sure build_aux settings are honored when linking
14374         gnulib_extra_files.
14375
14376 2007-06-19  Eric Blake  <ebb9@byu.net>
14377
14378         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
14379         Allow compilation on cygwin.
14380
14381 2007-06-19  Jim Meyering  <jim@meyering.net>
14382
14383         xreadlink-with-size: Remove module.  No longer used.
14384         Ex-callers now use xreadlink or mreadlink-with-size.
14385         * modules/xreadlink-with-size: Remove module.
14386         * lib/xreadlink-with-size.c: Remove file.
14387         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
14388         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
14389         just before the function definition *is* accurate.
14390
14391         Eliminate one way canonicalize_filename_mode could exit.
14392         * lib/canonicalize.c (canonicalize_filename_mode):
14393         Use mreadlink_with_size, not xreadlink_with_size.
14394
14395 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
14396
14397         Detect porting problems to FreeBSD/arm, which has time_t wider than
14398         long int.  Original problem reported for GNU diff by Xin Li in
14399         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
14400         * modules/getdate (Depends-on): Add intprops, verify.
14401         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
14402         is an integer type no wider than long int.
14403
14404 2007-06-18  Jim Meyering  <jim@meyering.net>
14405
14406         New module: mreadlink-with-size.
14407         * MODULES.html.sh: Add mreadlink-with-size.
14408         * modules/mreadlink-with-size: New module
14409         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
14410         not xreadlink-with-size.
14411         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
14412
14413 2007-06-16  Bruno Haible  <bruno@clisp.org>
14414
14415         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
14416         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
14417         Reported by Gary V. Vaughan <gary@gnu.org>.
14418
14419 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
14420
14421         Revamp lchown so that it lives in unistd.h where it belongs.
14422         * lib/lchown.h: Remove.
14423         * lib/dirchownmod.c: Don't include lib/lchown.h.
14424         * lib/fchownat.c: Likewise.
14425         * lib/openat.c: Likewise.
14426         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
14427         does not follow symlinks.
14428         (EOPNOTSUPP): Define if not defined.
14429         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
14430         is defined to 0.
14431         (lchown): New decl.
14432         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
14433         Do not check for lchown decl.
14434         Set REPLACE_LCHOWN.
14435         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
14436         REPLACE_LCHOWN.
14437         * modules/chown: Make it clear it follows symlinks.
14438         * modules/lchown: Make it clear it doesn't follow symlinks.
14439         (Files): Remove lib/lchown.h
14440         (Depends-on): Add unistd.
14441         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
14442         (Include): Include <unistd.h>, not "lchown.h".
14443         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
14444         REPLACE_LCHOWN.
14445
14446 2007-06-15  Jim Meyering  <jim@meyering.net>
14447
14448         Change license (GPL to LGPL) of fsusage and dependents.
14449         * modules/fsusage (License): Change to LGPL.
14450         * modules/full-read (License): Likewise.
14451         * modules/full-write (License): Likewise.
14452         * modules/safe-read (License): Likewise.
14453         * modules/safe-write (License): Likewise.
14454
14455 2007-06-14  Ben Pfaff  <blp@gnu.org>
14456
14457         Missing part of allocsa -> malloca transition.
14458         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
14459         gl_MALLOCA.
14460
14461 2007-06-12  Bruno Haible  <bruno@clisp.org>
14462
14463         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
14464         to ia64, x86_64, i386.
14465         Reported by Eric Blake.
14466
14467 2007-06-12  Bruno Haible  <bruno@clisp.org>
14468
14469         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
14470         cross-compiling to x86_64.
14471
14472 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
14473
14474         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
14475         glitch reported by Ralf Wildenhues in
14476         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
14477
14478         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
14479         Vin Shelton.
14480
14481 2007-06-11  Bruno Haible  <bruno@clisp.org>
14482
14483         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
14484         replacement string.
14485         Reported by Eric Blake.
14486
14487 2007-06-10  Bruno Haible  <bruno@clisp.org>
14488
14489         Prepare vasnprintf code for use with Unicode strings.
14490         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
14491         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
14492         TYPE_U32_STRING.
14493         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
14494         a_u32_string variants.
14495         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
14496         * lib/printf-args.c: Don't include config.h and the specification
14497         header if PRINTF_FETCHARGS is already defined.
14498         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
14499         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
14500         TYPE_U16_STRING, TYPE_U32_STRING.
14501         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
14502         u16_directive, u16_directives, u32_directive, u32_directives): New
14503         types.
14504         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
14505         New declarations.
14506         * lib/printf-parse.c: Don't include config.h and the specification
14507         header if PRINTF_PARSE is already defined. Eliminate the set of
14508         parameters for WIDE_CHAR_VERSION; the user of this file must provide
14509         them now. Include c-ctype.h.
14510         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
14511         directive and CHAR_T_ONLY_ASCII.
14512         * lib/vasnprintf.c: Don't include config.h and the specification header
14513         if VASNPRINTF is already defined.
14514         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
14515         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
14516         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
14517         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
14518         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
14519         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
14520         code accordingly.
14521         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
14522         pad_ourselves also in this case, with the 'c' and 's' directives, and
14523         with a different notion of "width".
14524         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
14525
14526 2007-06-10  Bruno Haible  <bruno@clisp.org>
14527
14528         * modules/unistr/u32-mbsnlen: New file.
14529         * lib/unistr/u32-mbsnlen.c: New file.
14530
14531         * modules/unistr/u16-mbsnlen: New file.
14532         * lib/unistr/u16-mbsnlen.c: New file.
14533
14534         * modules/unistr/u8-mbsnlen: New file.
14535         * lib/unistr/u8-mbsnlen.c: New file.
14536
14537         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
14538         declarations.
14539
14540 2007-06-10  Bruno Haible  <bruno@clisp.org>
14541
14542         * lib/string_.h (mbsnlen): New declaration.
14543         * lib/mbsnlen.c: New file.
14544         * m4/mbsnlen.m4: New file.
14545         * modules/mbsnlen: New file.
14546         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
14547         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
14548         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
14549
14550 2007-06-10  Bruno Haible  <bruno@clisp.org>
14551
14552         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
14553
14554 2007-06-10  Bruno Haible  <bruno@clisp.org>
14555
14556         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
14557         * lib/mbuiter.h: Likewise.
14558
14559 2007-06-10  Bruno Haible  <bruno@clisp.org>
14560
14561         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
14562         declaration.
14563
14564 2007-06-10  Karl Berry  <karl@gnu.org>
14565
14566         * config/srclist.txt: remove gettext entries, Bruno prefers
14567         to update individually.
14568
14569 2007-06-10  Bruno Haible  <bruno@clisp.org>
14570
14571         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
14572         'maxlen'. Ensure only length + width bytes are allocated, not
14573         length + 1 + width.
14574
14575 2007-06-09  Bruno Haible  <bruno@clisp.org>
14576
14577         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
14578         (CHAR_T): Remove macro.
14579         (VASNPRINTF): Update.
14580
14581 2007-06-09  Bruno Haible  <bruno@clisp.org>
14582
14583         * MODULES.html.sh (Unicode string functions): Add the new modules.
14584
14585         * modules/uniconv/u32-conv-to-enc: New file.
14586         * lib/uniconv/u32-conv-to-enc.c: New file.
14587         * modules/uniconv/u32-conv-to-enc-tests: New file.
14588         * tests/uniconv/test-u32-conv-to-enc.c: New file.
14589
14590         * modules/uniconv/u16-conv-to-enc: New file.
14591         * lib/uniconv/u16-conv-to-enc.c: New file.
14592         * lib/uniconv/u-conv-to-enc.h: New file.
14593         * modules/uniconv/u16-conv-to-enc-tests: New file.
14594         * tests/uniconv/test-u16-conv-to-enc.c: New file.
14595
14596         * modules/uniconv/u8-conv-to-enc: New file.
14597         * lib/uniconv/u8-conv-to-enc.c: New file.
14598         * modules/uniconv/u8-conv-to-enc-tests: New file.
14599         * tests/uniconv/test-u8-conv-to-enc.c: New file.
14600
14601         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
14602         u32_conv_to_encoding): New declarations.
14603
14604 2007-06-09  Bruno Haible  <bruno@clisp.org>
14605
14606         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
14607
14608 2007-06-09  Bruno Haible  <bruno@clisp.org>
14609
14610         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
14611         * modules/malloca: Renamed from modules/allocsa, updated.
14612         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
14613         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
14614         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
14615         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
14616         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
14617         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
14618         * modules/xmalloca: Renamed from modules/xallocsa, updated.
14619         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
14620         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
14621         * modules/c-strcasestr (Depends-on): Update.
14622         * lib/c-strcasestr.c: Update.
14623         * modules/c-strstr (Depends-on): Update.
14624         * lib/c-strstr.c: Update.
14625         * modules/canonicalize-lgpl (Depends-on): Update.
14626         * lib/canonicalize-lgpl.c: Update.
14627         * modules/clean-temp (Depends-on): Update.
14628         * lib/clean-temp.c: Update.
14629         * modules/csharpcomp (Depends-on): Update.
14630         * lib/csharpcomp.c: Update.
14631         * modules/csharpexec (Depends-on): Update.
14632         * lib/csharpexec.c: Update.
14633         * modules/javacomp (Depends-on): Update.
14634         * lib/javacomp.c: Update.
14635         * modules/javaexec (Depends-on): Update.
14636         * lib/javaexec.c: Update.
14637         * modules/mbscasestr (Depends-on): Update.
14638         * lib/mbscasestr.c: Update.
14639         * modules/mbsstr (Depends-on): Update.
14640         * lib/mbsstr.c: Update.
14641         * modules/setenv (Depends-on): Update.
14642         * lib/setenv.c: Update.
14643         * modules/strcasestr (Depends-on): Update.
14644         * lib/strcasestr.c: Update.
14645         * modules/striconveha (Depends-on): Update.
14646         * lib/striconveha.c: Update.
14647         * modules/relocatable-prog-wrapper (Files): Update.
14648         * lib/relocwrapper.c: Update.
14649         * build-aux/install-reloc: Update.
14650         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
14651
14652 2007-06-08  Bruno Haible  <bruno@clisp.org>
14653
14654         Port to uClibc.
14655         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
14656         * lib/fpurge.c (fpurge): Likewise.
14657         * lib/freading.c (freading): Likewise.
14658         * lib/fseeko.c (rpl_fseeko): Likewise.
14659         * lib/fseterr.c (fseterr): Likewise.
14660         * lib/fwriting.c (fwriting): Likewise.
14661         * tests/test-fflush.c (main): Avoid a failure on uClibc.
14662
14663 2007-06-08  Bruno Haible  <bruno@clisp.org>
14664
14665         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
14666         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
14667         * modules/gettext (Files): Add m4/intlmacosx.m4.
14668
14669 2007-06-07  Bruno Haible  <bruno@clisp.org>
14670
14671         * modules/localename-tests: New file.
14672         * tests/test-localename.c: New file.
14673
14674         New module 'localename'.
14675         * lib/localename.h: New file.
14676         * lib/localename.c: New file, from GNU gettext.
14677         * m4/localename.m4: New file.
14678         * modules/localename: New file.
14679
14680 2007-06-07  Bruno Haible  <bruno@clisp.org>
14681
14682         Work around the lack of <wchar.h> on some builds of uClibc.
14683         * doc/headers/wchar.texi: Update.
14684         * lib/wchar_.h: Include <wchar.h> only if it exists.
14685         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
14686         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
14687         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
14688         doesn't exist.
14689         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
14690         * modules/mbfile (Depends-on): Add wchar.
14691         * modules/mbiter (Depends-on): Likewise.
14692         * modules/mbuiter (Depends-on): Likewise.
14693         Reported by Simon Josefsson.
14694
14695 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
14696
14697         Work around problem reported by Steven M. Schweda in
14698         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
14699         Tru64 5.1B with the Compaq compiler environment installed declares
14700         an 'isblank' function but does not define it in the C library.
14701         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
14702         * lib/regex_internal.h (isblank): Likewise.
14703         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
14704         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
14705
14706 2007-06-05  Bruno Haible  <bruno@clisp.org>
14707
14708         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
14709         ia64.
14710         * modules/printf-safe: New file.
14711         * modules/fprintf-posix (Depends-on): Add printf-safe.
14712         * modules/printf-posix (Depends-on): Likewise.
14713         * modules/snprintf-posix (Depends-on): Likewise.
14714         * modules/sprintf-posix (Depends-on): Likewise.
14715         * modules/vasnprintf-posix (Depends-on): Likewise.
14716         * modules/vasprintf-posix (Depends-on): Likewise.
14717         * modules/vfprintf-posix (Depends-on): Likewise.
14718         * modules/vprintf-posix (Depends-on): Likewise.
14719         * modules/vsnprintf-posix (Depends-on): Likewise.
14720         * modules/vsprintf-posix (Depends-on): Likewise.
14721         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
14722         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
14723         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
14724         "no" on i386, x86_64, ia64.
14725         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
14726         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
14727         on i386, x86_64, ia64.
14728         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
14729         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
14730         on i386, x86_64, ia64.
14731         * tests/test-vasnprintf-posix.c: Include float.h.
14732         (LDBL80_WORDS): New macro.
14733         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
14734         on i386, x86_64, ia64.
14735         * tests/test-vasprintf-posix.c: Include float.h.
14736         (LDBL80_WORDS): New macro.
14737         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
14738         on i386, x86_64, ia64.
14739         * tests/test-snprintf-posix.c: Include float.h.
14740         * tests/test-sprintf-posix.c: Likewise.
14741         * tests/test-vsnprintf-posix.c: Likewise.
14742         * tests/test-vsprintf-posix.c: Likewise.
14743
14744 2007-06-05  Bruno Haible  <bruno@clisp.org>
14745
14746         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
14747         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
14748         non-IEEE numbers on i386, x86_64, ia64.
14749         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
14750         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
14751         * tests/test-isnanl.h: Include float.h.
14752         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
14753
14754 2007-06-05  Bruno Haible  <bruno@clisp.org>
14755
14756         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
14757         also the %a / %A. Handle the %a / %A code before this extra handling.
14758
14759 2007-06-05  Bruno Haible  <bruno@clisp.org>
14760
14761         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
14762         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
14763
14764 2007-06-05  Bruno Haible  <bruno@clisp.org>
14765
14766         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
14767         typo in variable name.
14768
14769 2007-06-05  Eric Blake  <ebb9@byu.net>
14770
14771         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
14772         Reported by Simon Josefsson.
14773
14774 2007-06-04  Bruno Haible  <bruno@clisp.org>
14775
14776         Avoid test failures on some PowerPC platforms.
14777         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
14778         Define differently for PowerPC.
14779         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
14780         Reported by Gary V. Vaughan <gary@gnu.org>.
14781
14782 2007-06-02  Bruno Haible  <bruno@clisp.org>
14783
14784         Fix test-stdint failure on FreeBSD/ia64.
14785         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
14786         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
14787         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
14788         * doc/headers/stdint.texi: Update.
14789
14790 2007-06-01  Bruno Haible  <bruno@clisp.org>
14791
14792         * tests/test-binary-io.c (main): Pass a third argument to open().
14793         Reported by Gary V. Vaughan <gary@gnu.org>.
14794
14795 2007-06-01  Bruno Haible  <bruno@clisp.org>
14796
14797         * doc/functions/frexpl.texi: Update for mingw.
14798
14799 2007-06-01  Bruno Haible  <bruno@clisp.org>
14800
14801         * tests/test-lseek.c (main): Disable test of errno for invalid third
14802         argument.
14803         * doc/functions/lseek.texi: Update.
14804         Reported by Gary V. Vaughan <gary@gnu.org>.
14805
14806 2007-05-28  Bruno Haible  <bruno@clisp.org>
14807
14808         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
14809
14810 2007-05-31  Eric Blake  <ebb9@byu.net>
14811
14812         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
14813         cross compiling.
14814
14815 2007-05-30  Eric Blake  <ebb9@byu.net>
14816         and Bruno Haible  <bruno@clisp.org>
14817
14818         Work around mingw test failures exposed by m4-1.4.9b.
14819         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
14820         * tests/test-unistd.c: Disable uid_t and git_t tests for the
14821         moment.
14822
14823 2007-05-30  Bruno Haible  <bruno@clisp.org>
14824
14825         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
14826         assuming that they are closed. Needed on HP-UX 11.
14827
14828 2007-05-29  Bruno Haible  <bruno@clisp.org>
14829
14830         Fix a problem with #include_next.
14831         * lib/dirent_.h: Split the double-inclusion guard.
14832         * lib/fcntl_.h: Likewise.
14833         * lib/float_.h: Likewise.
14834         * lib/iconv_.h: Likewise.
14835         * lib/inttypes_.h: Likewise.
14836         * lib/locale_.h: Likewise.
14837         * lib/math_.h: Likewise.
14838         * lib/netinet_in_.h: Likewise.
14839         * lib/search_.h: Likewise.
14840         * lib/signal_.h: Likewise.
14841         * lib/stdint_.h: Likewise.
14842         * lib/stdio_.h: Likewise.
14843         * lib/stdlib_.h: Likewise.
14844         * lib/string_.h: Likewise.
14845         * lib/sys_select_.h: Likewise.
14846         * lib/sys_socket_.h: Likewise.
14847         * lib/sys_stat_.h: Likewise.
14848         * lib/sys_time_.h: Likewise.
14849         * lib/sysexits_.h: Likewise.
14850         * lib/time_.h: Likewise.
14851         * lib/unistd_.h: Likewise.
14852         * lib/wchar_.h: Likewise.
14853         * lib/wctype_.h: Likewise.
14854
14855 2007-05-29  Bruno Haible  <bruno@clisp.org>
14856
14857         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
14858         for the moment.
14859
14860 2007-05-29  Bruno Haible  <bruno@clisp.org>
14861
14862         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
14863         invocation.
14864         Reported by Eric Blake.
14865
14866 2007-05-29  Bruno Haible  <bruno@clisp.org>
14867
14868         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
14869         compiling case.
14870
14871 2007-05-29  Eric Blake  <ebb9@byu.net>
14872             Bruno Haible  <bruno@clisp.org>
14873
14874         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
14875         cross compiles.
14876
14877 2007-05-28  Eric Blake  <ebb9@byu.net>
14878
14879         * modules/closein-tests (test_closein_LDADD): Support test on
14880         cygwin with libtool.
14881
14882 2007-05-28  Bruno Haible  <bruno@clisp.org>
14883
14884         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
14885         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
14886         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
14887         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
14888         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
14889         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
14890         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
14891         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
14892         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
14893
14894 2007-05-28  Eric Blake  <ebb9@byu.net>
14895
14896         Unconditionally include <config.h> in unit tests.
14897         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
14898         * tests/test-allocsa.c, tests/test-arcfour.c,
14899         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
14900         tests/test-array_list.c, tests/test-array_oset.c,
14901         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
14902         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
14903         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
14904         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
14905         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
14906         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
14907         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
14908         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
14909         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
14910         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
14911         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
14912         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
14913         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
14914         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
14915         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
14916         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
14917         test-md5.c, test-memmem.c, test-printf-posix.c,
14918         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
14919         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
14920         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
14921         test-strcasestr.c, test-striconv.c, test-striconveh.c,
14922         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
14923         test-vasnprintf-posix2.c, test-vasnprintf.c,
14924         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
14925         test-vfprintf-posix.c, test-vprintf-posix.c,
14926         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
14927         test-xvasprintf.c: Likewise.
14928
14929 2007-05-28  Bruno Haible  <bruno@clisp.org>
14930
14931         * gnulib-tool (func_import): Remember the --with-tests command-line
14932         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
14933         Reported by Eric Blake.
14934
14935 2007-05-28  Bruno Haible  <bruno@clisp.org>
14936
14937         * modules/ftell-tests: New file.
14938         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
14939         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
14940
14941         * lib/ftell.c: New file.
14942         * modules/ftell: New file.
14943         * m4/ftell.m4: New file.
14944         * doc/functions/ftell.texi: Update.
14945         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
14946         REPLACE_FTELL.
14947         * lib/stdio_.h (rpl_ftell): New declaration.
14948         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
14949         REPLACE_FTELL.
14950
14951 2007-05-28  Eric Blake  <ebb9@byu.net>
14952
14953         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
14954
14955 2007-05-28  Bruno Haible  <bruno@clisp.org>
14956
14957         * modules/fseek-tests: New file.
14958         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
14959         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
14960
14961         * lib/fseek.c: New file.
14962         * modules/fseek: New file.
14963         * m4/fseek.m4: New file.
14964         * doc/functions/fseek.texi: Update.
14965         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
14966         REPLACE_FSEEK.
14967         * lib/stdio_.h (rpl_fseek): New declaration.
14968         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
14969         REPLACE_FSEEK.
14970
14971 2007-05-28  Bruno Haible  <bruno@clisp.org>
14972
14973         * lib/stdio_.h (fflush): More comments.
14974
14975 2007-05-28  Bruno Haible  <bruno@clisp.org>
14976
14977         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
14978         runtime test.
14979
14980 2007-05-28  Eric Blake  <ebb9@byu.net>
14981
14982         Improve lseek module.
14983         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
14984         * lib/unistd_.h (lseek): Scale back link warning message.
14985         * tests/test-lseek.c: Beef up test.
14986         * tests/test-lseek.sh: Exercise more facets of lseek.
14987         Reported by Bruno Haible.
14988
14989 2007-05-28  Bruno Haible  <bruno@clisp.org>
14990
14991         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
14992         to define.
14993
14994 2007-05-27  Bruno Haible  <bruno@clisp.org>
14995
14996         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
14997
14998 2007-05-27  Bruno Haible  <bruno@clisp.org>
14999
15000         * modules/openmp: New file.
15001         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
15002         Noah Misch.
15003
15004 2007-05-26  Bruno Haible  <bruno@clisp.org>
15005
15006         * modules/chdir-long (Depends-on): Add fchdir.
15007         * modules/chdir-safer (Depends-on): Likewise.
15008         * modules/fts (Depends-on): Likewise.
15009         * modules/fts-lgpl (Depends-on): Likewise.
15010         * modules/openat (Depends-on): Likewise.
15011         * modules/savewd (Depends-on): Likewise.
15012
15013 2007-05-24  Eric Blake  <ebb9@byu.net>
15014
15015         Fix lseek on mingw.
15016         * modules/lseek: New module.
15017         * m4/lseek.m4: New file.
15018         * lib/lseek.c: New file.
15019         * modules/lseek-tests: New file.
15020         * tests/test-lseek.c: New file.
15021         * tests/test-lseek.sh: New file.
15022         * MODULES.html.sh: Document lseek module.
15023         * modules/fflush (Depends-on): Add lseek, fseeko.
15024         * modules/fseeko (Depends-on): Likewise.
15025         * modules/ftello (Depends-on): Likewise.
15026         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
15027         broken.
15028         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
15029         broken.
15030         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
15031         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
15032         * lib/ftello.c (rpl_ftello): Likewise.
15033         * tests/test-fseeko.c (main): Test this.
15034         * tests/test-fseeko.sh: Likewise.
15035         * tests/test-ftello.c (main): Likewise.
15036         * tests/test-ftello.sh: Likewise.
15037         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
15038         implies replacing fseek.
15039         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
15040         HAVE_FTELLO.
15041         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
15042         * modules/unistd (Makefile.am): Likewise.
15043         * lib/unistd_.h (lseek): Declare a replacement.
15044         * doc/functions/lseek.texi (lseek): Document this fix.
15045         * doc/functions/fseek.texi (fseek): Likewise.
15046         * doc/functions/ftell.texi (ftell): Likewise.
15047
15048 2007-05-24  Bruno Haible  <bruno@clisp.org>
15049
15050         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
15051         in the printed representation of a NaN.
15052         * tests/test-vasprintf-posix.c (test_function): Likewise.
15053         * tests/test-snprintf-posix.h (test_function): Likewise.
15054         * tests/test-sprintf-posix.h (test_function): Likewise.
15055         Reported by Eric Blake.
15056
15057 2007-05-23  Eric Blake  <ebb9@byu.net>
15058
15059         Fix fseeko/ftello on cygwin 1.5.24.
15060         * doc/functions/fseeko.texi (fseeko): Document the fix.
15061         * doc/functions/ftello.texi (ftello): Document the fix.
15062         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
15063         * doc/functions/stdout.text (stdout): New file.
15064         * doc/functions/stderr.text (stderr): New file.
15065         * doc/gnulib.texi (Function Substitutes): Use new files.
15066         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
15067         prior to 1.7.0.
15068         * tests/test-ftello.c (main): Likewise for ftello.
15069         * tests/test-fseeko.sh: New file.
15070         * tests/test-ftello.sh: New file.
15071         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
15072         with seekable stdin.
15073         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
15074         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
15075         (gl_REPLACE_FSEEKO): New macro.
15076         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
15077         * modules/fseeko (Files): Distribute fseeko.c.
15078         * modules/ftello (Files): Distribute ftello.c.
15079         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
15080         mode.
15081         * lib/ftello.c (rpl_ftello): New file.
15082         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
15083         fseeko, ftello.
15084         (gl_STDIN_LARGE_OFFSET): New macro.
15085         * modules/stdio (Makefile.am): Perform the replacement.
15086         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
15087
15088 2007-05-23  Bruno Haible  <bruno@clisp.org>
15089
15090         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
15091         GNULIB_POSIXCHECK is defined.
15092
15093 2007-05-21  Bruno Haible  <bruno@clisp.org>
15094
15095         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
15096         Check also the output for NaN arguments. When cross-compiling, guess
15097         no on IRIX.
15098         * lib/vasnprintf.c: Update comments.
15099         * tests/test-vasnprintf-posix.c (strisnan): New function.
15100         (test_function): Use it.
15101         * tests/test-vasprintf-posix.c (strisnan): New function.
15102         (test_function): Use it.
15103         * tests/test-snprintf-posix.h (strisnan): New function.
15104         (test_function): Use it.
15105         * tests/test-sprintf-posix.h (strisnan): New function.
15106         (test_function): Use it.
15107         Reported by Eric Blake.
15108
15109 2007-05-20  Bruno Haible  <bruno@clisp.org>
15110
15111         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
15112         numbers that fails on BeOS.
15113         * doc/functions/frexpl.texi: Update.
15114
15115 2007-05-20  Jim Meyering  <jim@meyering.net>
15116
15117         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
15118         forced upon us by glibc-2.6.
15119
15120 2007-05-20  Bruno Haible  <bruno@clisp.org>
15121
15122         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
15123         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
15124         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
15125         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
15126         NEED_PRINTF_INFINITE.
15127         (is_infinitel): New function.
15128         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
15129         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
15130         gl_PREREQ_VASNPRINTF_INFINITE.
15131         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
15132         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
15133         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
15134         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
15135         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
15136         gl_PREREQ_VASNPRINTF_INFINITE.
15137         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
15138         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
15139         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
15140         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
15141         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
15142         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
15143         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
15144         * doc/functions/fprintf.texi: Update.
15145         * doc/functions/printf.texi: Update.
15146         * doc/functions/snprintf.texi: Update.
15147         * doc/functions/sprintf.texi: Update.
15148         * doc/functions/vfprintf.texi: Update.
15149         * doc/functions/vprintf.texi: Update.
15150         * doc/functions/vsnprintf.texi: Update.
15151         * doc/functions/vsprintf.texi: Update.
15152
15153 2007-05-20  Bruno Haible  <bruno@clisp.org>
15154
15155         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
15156         was not found in libc.
15157         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
15158
15159 2007-05-20  Bruno Haible  <bruno@clisp.org>
15160
15161         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
15162         printed as "-nan" instead of "nan".
15163         * tests/test-vasprintf-posix.c (test_function): Likewise.
15164         * tests/test-snprintf-posix.h (test_function): Likewise.
15165         * tests/test-sprintf-posix.h (test_function): Likewise.
15166         Needed for HP-UX 11.
15167
15168 2007-05-20  Jim Meyering  <jim@meyering.net>
15169
15170         Fix buggy test for the fchownat-deref bug.
15171         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
15172         symlink required for the run-test.  Without it, this test would
15173         always declare that fchownat doesn't work, and client code would
15174         unnecessarily use the replacement function with fixed libc.
15175         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
15176         Reported by Greg Schafer.
15177
15178 2007-05-19  Bruno Haible  <bruno@clisp.org>
15179
15180         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
15181         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
15182         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
15183         Needed for IRIX 6.5 and Solaris 2.5.1.
15184
15185 2007-05-19  Bruno Haible  <bruno@clisp.org>
15186
15187         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
15188         (test_function): Skip tests involving -0.0 on platforms where
15189         -0.0 = 0.0.
15190         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
15191         (test_function): Skip tests involving -0.0 on platforms where
15192         -0.0 = 0.0.
15193         * tests/test-snprintf-posix.h (have_minus_zero): New function.
15194         (test_function): Skip tests involving -0.0 on platforms where
15195         -0.0 = 0.0.
15196         * tests/test-sprintf-posix.h (have_minus_zero): New function.
15197         (test_function): Skip tests involving -0.0 on platforms where
15198         -0.0 = 0.0.
15199         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
15200         tests.
15201         * tests/test-printf-posix.h (test_function): Likewise.
15202         * tests/test-printf-posix.output: Remove all -0.0 related results.
15203         Needed for IRIX 6.5.
15204
15205 2007-05-19  Bruno Haible  <bruno@clisp.org>
15206
15207         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
15208         printed as "nan0x7fffffff" instead of "nan".
15209         * tests/test-vasprintf-posix.c (test_function): Likewise.
15210         * tests/test-snprintf-posix.h (test_function): Likewise.
15211         * tests/test-sprintf-posix.h (test_function): Likewise.
15212         * tests/test-fprintf-posix.h (NaN): Remove macro.
15213         (test_function): Remove all NaN related tests.
15214         * tests/test-printf-posix.h (NaN): Remove macro.
15215         (test_function): Remove all NaN related tests.
15216         * tests/test-printf-posix.output: Remove all NaN related results.
15217         Needed for IRIX 6.5.
15218
15219 2007-05-19  Bruno Haible  <bruno@clisp.org>
15220
15221         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
15222         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
15223
15224 2007-05-19  Bruno Haible  <bruno@clisp.org>
15225
15226         * lib/float_.h: New file.
15227         * m4/float_h.m4: New file.
15228         * modules/float: New file.
15229         * modules/isnanl (Dependencies): Add float.
15230         * modules/isnanl-nolibm (Dependencies): Likewise.
15231         * modules/mathl (Dependencies): Likewise.
15232         * modules/printf-frexpl (Dependencies): Likewise.
15233         * modules/signbit (Dependencies): Likewise.
15234         * modules/vasnprintf (Dependencies): Likewise.
15235         * doc/headers/float.texi: Update.
15236
15237 2007-05-19  Jim Meyering  <jim@meyering.net>
15238
15239         * lib/utimens.c (gl_futimens): Rename from futimens,
15240         now that glibc-2.6 declares futimens.
15241         * lib/utimens.h: Likewise.
15242
15243 2007-05-19  Bruno Haible  <bruno@clisp.org>
15244
15245         Avoid test failures on mingw.
15246         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
15247         * tests/test-printf-posix.sh: Likewise.
15248         * tests/test-vfprintf-posix.sh: Likewise.
15249         * tests/test-vprintf-posix.sh: Likewise.
15250
15251 2007-05-19  Bruno Haible  <bruno@clisp.org>
15252
15253         Fix *printf result for NaN, Inf, -0.0 on mingw.
15254         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
15255         * lib/vasnprintf.c: Include math.h and isnan.h.
15256         (is_infinite_or_zero): New function.
15257         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
15258         values in the %f, %F, %e, %E, %g, %G directives.
15259         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
15260         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
15261         gl_PRINTF_INFINITE and test its result. Invoke
15262         gl_PREREQ_VASNPRINTF_INFINITE.
15263         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
15264         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
15265         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
15266         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
15267         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
15268         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
15269         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
15270         * doc/functions/fprintf.texi: Update.
15271         * doc/functions/printf.texi: Update.
15272         * doc/functions/snprintf.texi: Update.
15273         * doc/functions/sprintf.texi: Update.
15274         * doc/functions/vfprintf.texi: Update.
15275         * doc/functions/vprintf.texi: Update.
15276         * doc/functions/vsnprintf.texi: Update.
15277         * doc/functions/vsprintf.texi: Update.
15278
15279 2007-05-19  Bruno Haible  <bruno@clisp.org>
15280
15281         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
15282         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
15283         Instead of multiplying with 10^k, set extra_zeroes to k.
15284         (scale10_round_long_double): Remove function.
15285
15286 2007-05-18  Bruno Haible  <bruno@clisp.org>
15287
15288         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
15289         introduced on 2007-05-06.
15290
15291 2007-05-18  Bruno Haible  <bruno@clisp.org>
15292
15293         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
15294         %g directives.
15295         * tests/test-vasprintf-posix.c (test_function): Likewise.
15296         * tests/test-snprintf-posix.h (test_function): Likewise.
15297         * tests/test-sprintf-posix.h (test_function): Likewise.
15298
15299 2007-05-18  Bruno Haible  <bruno@clisp.org>
15300
15301         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
15302         (strmatch): New function.
15303         (test_function): Test the %f directive on numbers of various exponents.
15304         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
15305         (strmatch): New function.
15306         (test_function): Test the %f directive on numbers of various exponents.
15307         * tests/test-snprintf-posix.h (strmatch): New function.
15308         (test_function): Test the %f directive on numbers of various exponents.
15309         * tests/test-sprintf-posix.h (strmatch): New function.
15310         (test_function): Test the %f directive on numbers of various exponents.
15311         * tests/test-snprintf-posix.c (SIZEOF): New macro.
15312         * tests/test-sprintf-posix.c (SIZEOF): New macro.
15313         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
15314         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
15315
15316 2007-05-18  Bruno Haible  <bruno@clisp.org>
15317
15318         Add support for 'long double' number output.
15319         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
15320         * lib/vasnprintf.c: Include math.h and float+.h.
15321         (mp_limb_t): New type.
15322         (GMP_LIMB_BITS): New macro.
15323         (mp_twolimb_t): New type.
15324         (GMP_TWOLIMB_BITS): New macro.
15325         (mpn_t): New type.
15326         (multiply, divide, convert_to_decimal, decode_long_double,
15327         scale10_round_long_double, scale10_round_decimal_long_double,
15328         floorlog10l): New functions.
15329         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
15330         for the %f, %F, %e, %E, %g, %G directives.
15331         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
15332         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
15333         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
15334         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
15335         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
15336         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
15337         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
15338         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
15339         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
15340         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
15341         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
15342         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
15343         * modules/snprintf-posix (Depends-on): Likewise.
15344         * modules/sprintf-posix (Depends-on): Likewise.
15345         * modules/vasnprintf-posix (Depends-on): Likewise.
15346         * modules/vasprintf-posix (Depends-on): Likewise.
15347         * modules/vfprintf-posix (Depends-on): Likewise.
15348         * modules/vsnprintf-posix (Depends-on): Likewise.
15349         * modules/vsprintf-posix (Depends-on): Likewise.
15350         * modules/vasnprintf (Files): Add lib/float+.h.
15351         * doc/functions/fprintf.texi: Update.
15352         * doc/functions/printf.texi: Update.
15353         * doc/functions/snprintf.texi: Update.
15354         * doc/functions/sprintf.texi: Update.
15355         * doc/functions/vfprintf.texi: Update.
15356         * doc/functions/vprintf.texi: Update.
15357         * doc/functions/vsnprintf.texi: Update.
15358         * doc/functions/vsprintf.texi: Update.
15359
15360 2007-05-18  Bruno Haible  <bruno@clisp.org>
15361
15362         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
15363
15364 2007-05-18  Bruno Haible  <bruno@clisp.org>
15365
15366         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
15367         for printing 64-bit integers. Needed for mingw.
15368
15369 2007-05-18  Bruno Haible  <bruno@clisp.org>
15370
15371         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
15372         gl_FUNC_FREXPL_WORKS.
15373         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
15374
15375 2007-05-18  Bruno Haible  <bruno@clisp.org>
15376
15377         * modules/frexpl-nolibm-tests: New file.
15378
15379         * modules/frexpl-nolibm: New file.
15380         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
15381
15382 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
15383
15384         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
15385         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
15386         GCC 4.2, which otherwise issues a lot of warnings.
15387         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
15388         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
15389         Likewise.
15390         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
15391         * modules/iconv_open (iconv.h): Likewise.
15392         * modules/locale (locale.h): Likewise.
15393         * modules/netinet_in (netinet/in.h): Likewise.
15394         * modules/sys_select (sys_select.h): Likewise.
15395         * modules/sys_socket (sys/socket.h): Likewise.
15396         * modules/sys_stat (sys/stat.h): Likewise.
15397         * modules/sysexits (sysexits.h): Likewise.
15398         * modules/unistd (unistd.h): Likewise.
15399
15400 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15401
15402         * modules/closein-tests (Makefile.am): Distribute
15403         `test-closein.sh'.
15404
15405 2007-05-17  Bruno Haible  <bruno@clisp.org>
15406
15407         * tests/test-printf-posix.output: Renamed from
15408         tests/test-fprintf-posix.out.
15409         * modules/fprintf-posix-tests: Update.
15410         * modules/printf-posix-tests: Update.
15411         * modules/vfprintf-posix-tests: Update.
15412         * modules/vprintf-posix-tests: Update.
15413         * tests/test-fprintf-posix.sh: Update.
15414         * tests/test-printf-posix.sh: Update.
15415         * tests/test-vfprintf-posix.sh: Update.
15416         * tests/test-vprintf-posix.sh: Update.
15417         Reported by Ralf Wildenhues.
15418
15419 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
15420
15421         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
15422         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
15423         GCC 4.2, which otherwise issues a lot of warnings.
15424         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
15425         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
15426         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
15427         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
15428         it should no longer be needed.
15429         * lib/string_.h: Likewise.
15430         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
15431         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
15432         * modules/inttypes (inttypes.h): Likewise.
15433         * modules/math (math.h): Likewise.
15434         * modules/search (search.h): Likewise.
15435         * modules/signal (signal.h): Likewise.
15436         * modules/stdint (stdint.h): Likewise.
15437         * modules/stdio (stdio.h): Likewise.
15438         * modules/stdlib (stdlib.h): Likewise.
15439         * modules/string (string.h): Likewise.
15440         * modules/sys_time (sys/time.h): Likewise.
15441         * modules/time (time.h): Likewise.
15442         * modules/wchar (wchar.h): Likewise.
15443         * modules/wctype (wtype.h): Likewise.
15444
15445 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
15446
15447         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
15448
15449 2007-05-13  Bruno Haible  <bruno@clisp.org>
15450
15451         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
15452         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
15453         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
15454         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
15455         (gl_PREREQ_STRTOK_R): Don't require it here.
15456
15457 2007-05-13  Bruno Haible  <bruno@clisp.org>
15458
15459         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
15460         when used in C++ mode.
15461
15462 2007-05-12  Bruno Haible  <bruno@clisp.org>
15463
15464         * lib/linebuffer.h: Tweak doc.
15465         * lib/linebuffer.c: Likewise.
15466
15467 2007-05-12  James Youngman  <jay@gnu.org>
15468
15469         * lib/linebuffer.c (readlinebuffer_delim): New function,
15470         like readlinebuffer, but use a caller-specified delimiter.
15471         (readlinebuffer): Just call readlinebuffer_delim with '\n'
15472         as the delimiter.
15473         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
15474
15475 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
15476
15477         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
15478         * modules/openat (Files): Remove openat-die.c.
15479         (Depends-on): Add openat-die.
15480         * modules/openat-die: New module.
15481
15482 2007-05-06  Bruno Haible  <bruno@clisp.org>
15483
15484         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
15485         Update with info about Cygwin.
15486         * doc/functions/fprintf.texi: Update.
15487         * doc/functions/printf.texi: Update.
15488         * doc/functions/snprintf.texi: Update.
15489         * doc/functions/sprintf.texi: Update.
15490         * doc/functions/vfprintf.texi: Update.
15491         * doc/functions/vprintf.texi: Update.
15492         * doc/functions/vsnprintf.texi: Update.
15493         * doc/functions/vsprintf.texi: Update.
15494         Reported by Eric Blake.
15495
15496 2007-05-06  Bruno Haible  <bruno@clisp.org>
15497
15498         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
15499         padding ourselves for the floating-point directives.
15500         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
15501         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
15502         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
15503         gl_PRINTF_FLAG_ZERO and test its result. Invoke
15504         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
15505         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
15506         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
15507         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
15508         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
15509         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
15510         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
15511         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
15512         * tests/test-snprintf-posix.h (test_function): Also check the width
15513         and some flags in the %f directive.
15514         * tests/test-sprintf-posix.h (test_function): Likewise.
15515         * tests/test-vasnprintf-posix.c (test_function): Likewise.
15516         * tests/test-vasprintf-posix.c (test_function): Likewise.
15517         * doc/functions/fprintf.texi: Update.
15518         * doc/functions/printf.texi: Update.
15519         * doc/functions/snprintf.texi: Update.
15520         * doc/functions/sprintf.texi: Update.
15521         * doc/functions/vfprintf.texi: Update.
15522         * doc/functions/vprintf.texi: Update.
15523         * doc/functions/vsnprintf.texi: Update.
15524         * doc/functions/vsprintf.texi: Update.
15525
15526 2007-05-06  Bruno Haible  <bruno@clisp.org>
15527
15528         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
15529         pass the ' flag character to sprintf or snprintf.
15530         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
15531         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
15532         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
15533         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
15534         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
15535         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
15536         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
15537         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
15538         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
15539         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
15540         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
15541         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
15542         * tests/test-snprintf-posix.h (test_function): Also check the grouping
15543         flag.
15544         * tests/test-sprintf-posix.h (test_function): Likewise.
15545         * tests/test-vasnprintf-posix.c (test_function): Likewise.
15546         * tests/test-vasprintf-posix.c (test_function): Likewise.
15547         * doc/functions/fprintf.texi: Update.
15548         * doc/functions/printf.texi: Update.
15549         * doc/functions/snprintf.texi: Update.
15550         * doc/functions/sprintf.texi: Update.
15551         * doc/functions/vfprintf.texi: Update.
15552         * doc/functions/vprintf.texi: Update.
15553         * doc/functions/vsnprintf.texi: Update.
15554         * doc/functions/vsprintf.texi: Update.
15555
15556 2007-05-01  Bruno Haible  <bruno@clisp.org>
15557
15558         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
15559
15560 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
15561
15562         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
15563         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
15564
15565 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
15566
15567         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
15568         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
15569         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
15570
15571 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
15572
15573         * lib/argp-help.c (struct hol_entry): New member `ord'.
15574         (HOL_ENTRY_PTRCMP): Use ord for comparison
15575         (hol_sort): Initialize ord.
15576
15577 2007-05-01  Bruno Haible  <bruno@clisp.org>
15578
15579         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
15580         Reported by Eric Blake.
15581         * doc/gnulib.texi (Function Substitutes): Update.
15582
15583 2007-05-01  Bruno Haible  <bruno@clisp.org>
15584
15585         * doc/functions.texi: Remove file, now redundant through
15586         doc/functions/*.texi.
15587
15588 2007-05-01  Bruno Haible  <bruno@clisp.org>
15589
15590         * modules/argp (Depends-on): Add sleep.
15591
15592 2007-05-01  Bruno Haible  <bruno@clisp.org>
15593
15594         * modules/sleep-tests: New file.
15595         * tests/test-sleep.c: New file.
15596
15597         * modules/sleep: New file.
15598         * lib/sleep.c: New file.
15599         * m4/sleep.m4: New file.
15600         * lib/unistd_.h (sleep): New declaration.
15601         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
15602         HAVE_SLEEP.
15603         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
15604         * doc/functions/sleep.texi: Document the sleep module.
15605
15606 2007-05-01  Bruno Haible  <bruno@clisp.org>
15607
15608         * lib/sigprocmask.h: Remove file.
15609         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
15610         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
15611         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
15612         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
15613         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
15614         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
15615         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
15616         HAVE_SIGSET_T as a shell variable.
15617         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
15618         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
15619         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
15620         (Depends-on): Add signal. Remove verify.
15621         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
15622         (Include): Mention <signal.h> instead of sigprocmask.h.
15623         * NEWS: Mention the change.
15624         * lib/fatal-signal.c: Don't include sigprocmask.h.
15625
15626 2007-05-01  Bruno Haible  <bruno@clisp.org>
15627
15628         * modules/signal: New file.
15629         * lib/signal_.h: New file.
15630         * m4/signal_h.m4: New file.
15631
15632 2007-05-01  Bruno Haible  <bruno@clisp.org>
15633
15634         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
15635         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
15636         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
15637         HAVE_WCTYPE_CTMP_BUG into wctype.h.
15638
15639 2007-05-01  Bruno Haible  <bruno@clisp.org>
15640
15641         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
15642         configure time.
15643         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
15644         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
15645         * modules/sys_stat (Makefile.am): Substitute their values into
15646         sys/stat.h.
15647
15648 2007-05-01  Bruno Haible  <bruno@clisp.org>
15649
15650         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
15651         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
15652         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
15653
15654 2007-05-01  Bruno Haible  <bruno@clisp.org>
15655
15656         * doc/header/assert.texi: Undo last change: don't mention the gnulib
15657         'assert' module here.
15658
15659 2007-05-01  Bruno Haible  <bruno@clisp.org>
15660
15661         * doc/functions/*.texi: New files.
15662         * doc/functions/google-ranking.txt: New file.
15663         * doc/gnulib.texi (Function Substitutes): New chapter.
15664         (ctime, inet_ntoa): Remove sections.
15665         * doc/ctime.texi: Remove file.
15666         * doc/inet_ntoa.texi: Remove file.
15667         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
15668         dependencies.
15669         (%.info): New rule, specifying a --reference-limit.
15670
15671 2007-05-01  Bruno Haible  <bruno@clisp.org>
15672
15673         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
15674
15675 2007-05-01  Bruno Haible  <bruno@clisp.org>
15676
15677         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
15678         the portability of 'mkdir' to mingw systems.
15679
15680 2007-05-01  Bruno Haible  <bruno@clisp.org>
15681
15682         * doc/headers/google-ranking.txt: New file.
15683
15684 2007-04-30  Eric Blake  <ebb9@byu.net>
15685
15686         Prefer fseeko to fseek.
15687         * modules/getpass (Depends-on): Add fseeko.
15688         * lib/getpass.c (getpass): Use fseeko, not fseek.
15689
15690 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
15691
15692         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
15693         assumes the sorting is stable, while most qsort implementations
15694         are not.  Use argument addresses to ensure they never compare as
15695         equal.
15696
15697         * tests/test-argp-2.sh (usage-indent test): Fix output
15698         (func_compare): Restore diff options
15699         * tests/test-argp.c: Restore #include "progname.h"
15700
15701 2007-04-29  Bruno Haible  <bruno@clisp.org>
15702
15703         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
15704         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
15705         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
15706         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
15707         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
15708         (configure.ac): Define CHECK_SNPRINTF_POSIX.
15709         (TESTS, check_PROGRAMS): Add test-snprintf.
15710         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
15711         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
15712         (TESTS, check_PROGRAMS): Add test-vsnprintf.
15713         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
15714         assertions that fail on HP-UX, OSF/1, or IRIX.
15715         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
15716
15717 2007-04-29  Bruno Haible  <bruno@clisp.org>
15718
15719         * MODULES.html.sh (posix_functions): Remove 'contents'.
15720
15721 2007-04-29  Karl Berry  <karl@gnu.org>
15722
15723         * config/srclist.txt (gendocs_template_min): new entry.
15724
15725 2007-04-29  Bruno Haible  <bruno@clisp.org>
15726
15727         Work around fpurge bug on BSD systems.
15728         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
15729         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
15730         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
15731         fpurge to rpl_fpurge if the system already has this function.
15732         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
15733         the case where the system already has this function. Correct invariants
15734         on BSD systems.
15735         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
15736         BSD systems.
15737
15738 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
15739
15740         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
15741         proposed by Sven Verdoolaege.
15742
15743         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
15744         options.
15745         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
15746         (usage and help tests): Update
15747
15748 2007-04-29  Bruno Haible  <bruno@clisp.org>
15749
15750         * tests/test-fflush.c (main): Use a file of size 17, not 10.
15751         Print more information in case of failure. Disable a test on BeOS.
15752
15753 2007-04-29  Bruno Haible  <bruno@clisp.org>
15754
15755         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
15756         This helps debugging on systems on which no gdb is available.
15757
15758 2007-04-29  Bruno Haible  <bruno@clisp.org>
15759
15760         * lib/freading.h: Improve comments.
15761         * lib/fwriting.h: Likewise.
15762         * tests/test-freading.c (main): Don't check freading immediately after
15763         repositioning. Needed for glibc.
15764
15765 2007-04-29  Bruno Haible  <bruno@clisp.org>
15766
15767         * lib/freading.c (freading): Trivial simplification.
15768
15769 2007-04-28  Bruno Haible  <bruno@clisp.org>
15770
15771         * tests/test-fwriting.c (main): Also test the interaction between
15772         fflush and fwriting.
15773         * modules/fwriting-tests (Depends-on): Add fflush.
15774
15775         * tests/test-freading.c (main): Also test the interaction between
15776         fflush and freading.
15777         * modules/freading-tests (Depends-on): Add fflush.
15778
15779 2007-04-28  Bruno Haible  <bruno@clisp.org>
15780
15781         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
15782         fseeko and ftello.
15783         Suggested by Eric Blake.
15784
15785 2007-04-28  Jim Meyering  <jim@meyering.net>
15786
15787         Avoid false-negative in gl_STDINT_H's C99 conformance test.
15788         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
15789         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
15790
15791 2007-04-27  Eric Blake  <ebb9@byu.net>
15792
15793         * doc/headers/assert.texi (assert.h): Document assert module use.
15794
15795 2007-04-27  Bruno Haible  <bruno@clisp.org>
15796
15797         * doc/headers/*.texi: New files.
15798         * doc/gnulib.texi (Header File Substitutes): New chapter.
15799         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
15800         dependencies.
15801         (standards.info ,standards.html, standards.dvi): Update dependencies.
15802         (mostlyclean, clean): New targets.
15803
15804 2007-04-27  Bruno Haible  <bruno@clisp.org>
15805
15806         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
15807         * modules/sysexits (Files, Makefile.am): Update.
15808
15809         * lib/sys_socket_.h: Renamed from lib/socket_.h.
15810         * modules/sys_socket (Files, Makefile.am): Update.
15811
15812         * lib/sys_stat_.h: Renamed from lib/stat_.h.
15813         * modules/sys_stat (Files, Makefile.am): Update.
15814
15815 2007-04-27  Eric Blake  <ebb9@byu.net>
15816
15817         * lib/freading.h: Improve comments.
15818         * lib/fwriting.h: Likewise.
15819         * lib/fflush.c: Likewise.
15820
15821         Fix closein for mingw.
15822         * modules/closein-tests: Add tests for closein.
15823         * tests/test-closein.c: New file.
15824         * tests/test-closein.sh: Likewise.
15825         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
15826         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
15827
15828 2007-04-27  Bruno Haible  <bruno@clisp.org>
15829
15830         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
15831         version is < 6.
15832         * lib/math_.h [__DECC]: Likewise.
15833         * lib/stdio_.h [__DECC]: Likewise.
15834         * lib/stdlib_.h [__DECC]: Likewise.
15835         * lib/string_.h [__DECC]: Likewise.
15836         * lib/time_.h [__DECC]: Likewise.
15837         * lib/wchar_.h [__DECC]: Likewise.
15838         * lib/wctype_.h [__DECC]: Likewise.
15839
15840 2007-04-27  Bruno Haible  <bruno@clisp.org>
15841
15842         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
15843
15844 2007-04-27  Bruno Haible  <bruno@clisp.org>
15845
15846         * lib/fflush.c: Add comments.
15847         * modules/fpurge-tests (Depends-on): Add fflush.
15848         * modules/freadable-tests (Depends-on): Likewise.
15849         * modules/fwritable-tests (Depends-on): Likewise.
15850
15851 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
15852
15853         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
15854         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
15855         Report by Bruno Haible <bruno@clisp.org>.
15856
15857 2007-04-26  Eric Blake  <ebb9@byu.net>
15858
15859         Fix fflush on mingw.
15860         * modules/fflush (Depends-on): Add freading.
15861         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
15862         but unread data.
15863
15864 2007-04-26  Eric Blake  <ebb9@byu.net>
15865         and Bruno Haible  <bruno@clisp.org>
15866
15867         Implement freading and fwriting.
15868         * lib/freading.c: New file.
15869         * lib/freading.h: Likewise.
15870         * m4/freading.m4: Likewise.
15871         * modules/freading: Likewise.
15872         * modules/freading-tests: Likewise.
15873         * tests/test-freading.c: Likewise.
15874         * lib/fwriting.c: New file.
15875         * lib/fwriting.h: Likewise.
15876         * m4/fwriting.m4: Likewise.
15877         * modules/fwriting: Likewise.
15878         * modules/fwriting-tests: Likewise.
15879         * tests/test-fwriting.c: Likewise.
15880         * MODULES.html.sh (File stream based Input/Output): Mention them.
15881
15882 2007-04-26  Bruno Haible  <bruno@clisp.org>
15883
15884         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
15885         'long' when we assume it.
15886         Suggested by Eric Blake.
15887
15888 2007-04-26  Bruno Haible  <bruno@clisp.org>
15889
15890         Ensure fseeko, ftello are declared on glibc systems.
15891         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
15892         * modules/fseeko (configure.ac-early): Likewise.
15893         * modules/ftello (configure.ac-early): Likewise.
15894         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
15895         AC_FUNC_FSEEKO for this.
15896         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
15897         (gl_CHECK_FSEEKO): Remove macro.
15898
15899 2007-04-26  Bruno Haible  <bruno@clisp.org>
15900
15901         * tests/test-fflush.c (main): Also check the ftell result after
15902         fflush and fseek/fseeko.
15903         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
15904         file descriptor position cache in the stream.
15905         * lib/fseeko.c (rpl_fseeko): Likewise.
15906
15907 2007-04-26  Bruno Haible  <bruno@clisp.org>
15908
15909         * modules/fflush-tests (Depends-on): Add fseeko.
15910
15911 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
15912             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15913
15914         * lib/argz_.h: ensure error_t definition is obtained in same
15915         mechanism system argz.h would have.
15916         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
15917         argz facilities are known bad.  Err on the side of caution if
15918         cross-compiling.
15919
15920 2007-04-25  Eric Blake  <ebb9@byu.net>
15921
15922         * lib/fpurge.c (includes): Use stdlib.h for free.
15923         * tests/test-fflush.c (main): Also test fflush-fseeko.
15924
15925 2007-04-25  Bruno Haible  <bruno@clisp.org>
15926
15927         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
15928         * lib/fseeko.c: New file.
15929         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
15930         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
15931         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
15932         gl_FUNC_FSEEKO.
15933         (gl_FUNC_FSEEKO): Invoke it.
15934         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
15935         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
15936         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
15937
15938 2007-04-25  Bruno Haible  <bruno@clisp.org>
15939
15940         * modules/fflush (Depends-on): Add ftello.
15941
15942 2007-04-25  Bruno Haible  <bruno@clisp.org>
15943
15944         * modules/ftello-tests: New file.
15945         * tests/test-ftello.c: New file.
15946
15947         * modules/ftello: New file.
15948         * m4/ftello.m4: New file.
15949         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
15950         HAVE_FTELLO.
15951         * lib/stdio_.h (ftello): New declaration.
15952         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
15953         HAVE_FTELLO.
15954
15955 2007-04-25  Bruno Haible  <bruno@clisp.org>
15956
15957         * modules/fseeko-tests: New file.
15958         * tests/test-fseeko.c: New file.
15959
15960         * modules/fseeko: New file.
15961         * m4/fseeko.m4: New file.
15962         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
15963         HAVE_FSEEKO.
15964         * lib/stdio_.h (fseeko): New declaration.
15965         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
15966         HAVE_FSEEKO.
15967
15968 2007-04-25  Bruno Haible  <bruno@clisp.org>
15969
15970         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
15971
15972 2007-04-25  Bruno Haible  <bruno@clisp.org>
15973
15974         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
15975         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
15976         * tests/test-unistd.c: Likewise.
15977         * tests/test-fcntl.c: Likewise.
15978
15979 2007-04-23  Eric Blake  <ebb9@byu.net>
15980
15981         * lib/fflush.c: Fix missing include.
15982         Reported by Bruno Haible.
15983
15984 2007-04-23  Bruno Haible  <bruno@clisp.org>
15985
15986         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
15987         Reported by Eric Blake.
15988
15989 2007-04-23  Bruno Haible  <bruno@clisp.org>
15990
15991         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
15992
15993 2007-04-23  Bruno Haible  <bruno@clisp.org>
15994
15995         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
15996
15997 2007-04-23  Bruno Haible  <bruno@clisp.org>
15998
15999         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
16000         Needed on HP-UX 11.
16001
16002 2007-04-16  Eric Blake  <ebb9@byu.net>
16003
16004         Make fflush rely on fpurge.
16005         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
16006         open coding all variants.
16007         * modules/fflush (Depends-on): Add fpurge and unistd.
16008         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
16009         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
16010
16011         Fix --with-tests compilation on cygwin.
16012         * modules/argmatch-tests (Makefile.am): List gnulib library first
16013         in LDADD.
16014         * modules/argp-tests (Makefile.am): Likewise.
16015         * modules/array-list-tests (Makefile.am): Likewise.
16016         * modules/array-oset-tests (Makefile.am): Likewise.
16017         * modules/avltree-list-tests (Makefile.am): Likewise.
16018         * modules/avltree-oset-tests (Makefile.am): Likewise.
16019         * modules/avltreehash-list-tests (Makefile.am): Likewise.
16020         * modules/carray-list-tests (Makefile.am): Likewise.
16021         * modules/dirname-tests (Makefile.am): Likewise.
16022         * modules/frexp-tests (Makefile.am): Likewise.
16023         * modules/isnanl-tests (Makefile.am): Likewise.
16024         * modules/linked-list-tests (Makefile.am): Likewise.
16025         * modules/linkedhash-list-tests (Makefile.am): Likewise.
16026         * modules/lock-tests (Makefile.am): Likewise.
16027         * modules/rbtree-list-tests (Makefile.am): Likewise.
16028         * modules/rbtree-oset-tests (Makefile.am): Likewise.
16029         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
16030         * modules/tls-tests (Makefile.am): Likewise.
16031         * modules/tsearch-tests (Makefile.am): Likewise.
16032         * modules/xvasprintf-tests (Makefile.am): Likewise.
16033
16034         Fix fpurge for cygwin.
16035         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
16036         value.
16037         * modules/fpurge-tests (Depends-on): Clean up trash.
16038
16039 2007-04-16  Simon Josefsson  <simon@josefsson.org>
16040
16041         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
16042
16043         * m4/autobuild.m4: Re-indent.
16044
16045 2007-04-13  Bruno Haible  <bruno@clisp.org>
16046
16047         * modules/fpurge-tests: New file.
16048         * tests/test-fpurge.c: New file.
16049
16050         * modules/fpurge: New file.
16051         * lib/fpurge.h: New file.
16052         * lib/fpurge.c: New file.
16053         * m4/fpurge.m4: New file.
16054
16055 2007-04-13  Bruno Haible  <bruno@clisp.org>
16056
16057         * modules/fbufmode-tests: New file.
16058         * tests/test-fbufmode.c: New file.
16059
16060         * modules/fbufmode: New file.
16061         * lib/fbufmode.h: New file.
16062         * lib/fbufmode.c: New file.
16063         * m4/fbufmode.m4: New file.
16064
16065 2007-04-13  Bruno Haible  <bruno@clisp.org>
16066
16067         * modules/fwritable-tests: New file.
16068         * tests/test-fwritable.c: New file.
16069
16070         * modules/fwritable: New file.
16071         * lib/fwritable.h: New file.
16072         * lib/fwritable.c: New file.
16073         * m4/fwritable.m4: New file.
16074
16075 2007-04-13  Bruno Haible  <bruno@clisp.org>
16076
16077         * modules/freadable-tests: New file.
16078         * tests/test-freadable.c: New file.
16079
16080         * modules/freadable: New file.
16081         * lib/freadable.h: New file.
16082         * lib/freadable.c: New file.
16083         * m4/freadable.m4: New file.
16084
16085 2007-04-13  Bruno Haible  <bruno@clisp.org>
16086
16087         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
16088         MOSTLYCLEANFILES.
16089
16090 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
16091
16092         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
16093         gzip bootstrap.conf to avoid dragging in i18n machinery.
16094         (gnulib_tool_option): Use it.
16095
16096 2007-04-13  Bruno Haible  <bruno@clisp.org>
16097
16098         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
16099         %F directives.
16100         * tests/test-vasprintf-posix.c (test_function): Likewise.
16101         * tests/test-snprintf-posix.h (test_function): Likewise.
16102         * tests/test-sprintf-posix.h (test_function): Likewise.
16103         * tests/test-fprintf-posix.h (test_function): Likewise.
16104         * tests/test-printf-posix.h (test_function): Likewise.
16105         * tests/test-fprintf-posix.out: Likewise.
16106
16107 2007-04-13  Bruno Haible  <bruno@clisp.org>
16108
16109         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
16110         * modules/tls-tests (configure.ac): Likewise.
16111         Reported by Arto C. Nirkko <anirkko@insel.ch>.
16112
16113 2007-04-13  Bruno Haible  <bruno@clisp.org>
16114
16115         * lib/tls.c (glthread_tls_get): Fix return type.
16116         Patch by Arto C. Nirkko <anirkko@insel.ch>.
16117
16118 2007-04-12  Eric Blake  <ebb9@byu.net>
16119
16120         * modules/gettime (Depends-on): Remove gettime.
16121         Reported by Dmitry V. Levin.
16122
16123 2007-04-12  Bruno Haible  <bruno@clisp.org>
16124
16125         * modules/fflush (Include): Mention <stdio.h>.
16126         * modules/strtoimax (Include): Mention <inttypes.h>.
16127         * modules/strtoumax (Include): Likewise.
16128
16129 2007-04-12  Eric Blake  <ebb9@byu.net>
16130
16131         * .cvsignore: New file.
16132         * .gitignore: Likewise.
16133
16134 2007-04-12  Bruno Haible  <bruno@clisp.org>
16135
16136         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
16137         not before, since $(LDADD) often contains libgnu.a.
16138         * modules/striconv-tests (test_striconv_LDADD): Likewise.
16139         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
16140         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
16141         Needed on Cygwin.
16142
16143 2007-04-12  Eric Blake  <ebb9@byu.net>
16144
16145         Work around glibc's failure to flush stdin on fclose.
16146         * lib/closein.c (close_stdin): Flush stdin before closing.
16147
16148         Work around glibc's failure to reset seekable stdin on exit.
16149         * modules/closein: New module.
16150         * lib/closein.c: New file.
16151         * lib/closein.h: Likewise.
16152         * m4/closein.m4: Likewise.
16153         * MODULES.html.sh (File stream based Input/Output): Document it.
16154
16155 2007-04-12  Simon Josefsson  <simon@josefsson.org>
16156
16157         * gnulib-tool: Rename generated 'autobuild' script to
16158         'do-autobuild' in --create-megatestdir output.
16159
16160         * doc/gnulib.texi (Build robot for gnulib): Fix.
16161
16162 2007-04-12  Simon Josefsson  <simon@josefsson.org>
16163
16164         * modules/sysexits (Depends-on): Add absolute-header.
16165
16166 2007-04-12  Eric Blake  <ebb9@byu.net>
16167
16168         No need to preserve errno on success.
16169         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
16170         Reported by Bruno Haible.
16171
16172 2007-04-12  Simon Josefsson  <simon@josefsson.org>
16173
16174         * MODULES.html.sh (Support for maintaining and releasing
16175         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
16176
16177 2007-04-12  Simon Josefsson  <simon@josefsson.org>
16178
16179         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
16180
16181 2007-04-12  Simon Josefsson  <simon@josefsson.org>
16182
16183         * modules/autobuild: New module.
16184
16185         * m4/autobuild.m4: New file.
16186
16187 2007-04-11  Bruno Haible  <bruno@clisp.org>
16188
16189         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
16190         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
16191         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
16192         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
16193         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
16194         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
16195         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
16196         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
16197         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
16198         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
16199         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
16200         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
16201         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
16202         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
16203         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
16204         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
16205         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
16206         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
16207         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
16208         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
16209         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
16210         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
16211         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
16212         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
16213         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
16214         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
16215         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
16216         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
16217         Reported by Eric Blake.
16218
16219 2007-04-11  Bruno Haible  <bruno@clisp.org>
16220
16221         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
16222
16223 2007-04-10  Bruno Haible  <bruno@clisp.org>
16224
16225         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
16226         for NaN and Infinity. Needed on FreeBSD 6.1.
16227         * tests/test-vasnprintf-posix.c (test_function): Undo last change
16228         regarding results for "%010a" of Infinity and NaN.
16229         * tests/test-vasprintf-posix.c (test_function): Likewise.
16230         * tests/test-snprintf-posix.h (test_function): Likewise.
16231         * tests/test-sprintf-posix.h (test_function): Likewise.
16232         * tests/test-fprintf-posix.h (test_function): Likewise.
16233         * tests/test-printf-posix.h (test_function): Likewise.
16234         * tests/test-fprintf-posix.out: Likewise.
16235
16236 2007-04-10  Bruno Haible  <bruno@clisp.org>
16237
16238         * modules/locale-tests: New file.
16239         * tests/test-locale.c: New file.
16240
16241         * modules/locale: New file.
16242         * lib/locale_.h: New file.
16243         * m4/locale_h.m4: New file.
16244
16245 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
16246             Bruno Haible  <bruno@clisp.org>
16247
16248         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
16249         be determined, test for availability of the copysignf, copysign,
16250         copysignl functions.
16251         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
16252         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
16253         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
16254
16255 2007-04-09  Eric Blake  <ebb9@byu.net>
16256
16257         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
16258         * modules/stdio (Makefile.am): Support fflush.
16259         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
16260         * modules/fflush: New file.
16261         * lib/fflush.c: Likewise.
16262         * m4/fflush.m4: Likewise.
16263         * modules/fflush-tests: New test.
16264         * tests/test-fflush.c: Likewise.
16265         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
16266
16267 2007-04-06  Bruno Haible  <bruno@clisp.org>
16268
16269         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
16270         (VASNPRINTF): Use signbit for faster determination whether to print a
16271         minus sign.
16272         * modules/vasnprintf (Files): Remove lib/float+.h.
16273         * modules/fprintf-posix (Depends-on): Add signbit.
16274         * modules/snprintf-posix (Depends-on): Likewise.
16275         * modules/sprintf-posix (Depends-on): Likewise.
16276         * modules/vasnprintf-posix (Depends-on): Likewise.
16277         * modules/vasprintf-posix (Depends-on): Likewise.
16278         * modules/vfprintf-posix (Depends-on): Likewise.
16279         * modules/vsnprintf-posix (Depends-on): Likewise.
16280         * modules/vsprintf-posix (Depends-on): Likewise.
16281
16282 2007-04-06  Bruno Haible  <bruno@clisp.org>
16283
16284         * tests/test-frexp.c (main): Test also the sign bit of zero results.
16285         * tests/test-frexpl.c (main): Likewise.
16286         * tests/test-ldexpl.c (main): Likewise.
16287         * modules/frexp-tests (Depends-on): Add signbit.
16288         * modules/frexpl-tests (Depdends-on): Likewise.
16289         * modules/ldexpl-tests (Depdends-on): Likewise.
16290
16291 2007-04-06  Bruno Haible  <bruno@clisp.org>
16292
16293         * modules/signbit-tests: New file.
16294         * tests/test-signbit.c: New file.
16295
16296         * modules/signbit: New file.
16297         * lib/signbitf.c: New file.
16298         * lib/signbitd.c: New file.
16299         * lib/signbitl.c: New file.
16300         * m4/signbit.m4: New file.
16301         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
16302         (signbit): New macro.
16303         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
16304         REPLACE_SIGNBIT.
16305         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
16306         REPLACE_FREXPL into math.h.
16307
16308 2007-04-06  Bruno Haible  <bruno@clisp.org>
16309
16310         * modules/isnanf-nolibm-tests: New file.
16311         * tests/test-isnanf.c: New file.
16312
16313         * modules/isnanf-nolibm: New file.
16314         * lib/isnanf.h: New file.
16315         * lib/isnanf.c: New file.
16316         * lib/isnan.c: Consider the USE_FLOAT macro.
16317         * m4/isnanf.m4: New file.
16318
16319 2007-04-06  Bruno Haible  <bruno@clisp.org>
16320
16321         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
16322         (Link): New section.
16323
16324         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
16325
16326 2007-04-06  Bruno Haible  <bruno@clisp.org>
16327
16328         Assume the 'long double' type.
16329         * m4/longdouble.m4: Remove file.
16330         * config/srclist.txt: Don't mention longdouble.m4.
16331         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
16332         * lib/float+.h: Likewise.
16333         * lib/frexp.c: Likewise.
16334         * lib/printf-args.h: Likewise.
16335         * lib/printf-args.c: Likewise.
16336         * lib/printf-frexp.c: Likewise.
16337         * lib/printf-parse.c: Likewise.
16338         * lib/vasnprintf.c: Likewise.
16339         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
16340         * m4/intl.m4: Likewise.
16341         * m4/isnanl.m4: Likewise.
16342         * m4/printf.m4: Likewise.
16343         * m4/printf-frexpl.m4: Likewise.
16344         * m4/vasnprintf.m4: Likewise.
16345         * modules/allocsa (Files): Remove m4/longdouble.m4.
16346         * modules/gettext (Files): Likewise.
16347         * modules/relocatable-prog-wrapper (Files): Likewise.
16348         * modules/vasnprintf (Files): Likewise.
16349         * modules/isnanl (Files): Likewise.
16350         (Include): Simplify.
16351         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
16352         (Include): Simplify.
16353         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
16354         (Include): Simplify.
16355         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
16356         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
16357         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
16358         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
16359         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
16360         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
16361         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
16362         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
16363         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
16364         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
16365         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
16366         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
16367         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
16368         * tests/test-isnanl.c: Likewise.
16369         * tests/test-snprintf-posix.h: Likewise.
16370         * tests/test-sprintf-posix.h: Likewise.
16371         * tests/test-vasnprintf-posix.c: Likewise.
16372         * tests/test-vasnprintf-posix2.c: Likewise.
16373         * tests/test-vasprintf-posix.c: Likewise.
16374
16375 2007-04-06  Bruno Haible  <bruno@clisp.org>
16376
16377         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
16378         * lib/math_.h [__DECC]: Include the overridden include file through
16379         #include_next, outside the double-inclusion guard.
16380         * lib/stdio_.h [__DECC]: Likewise.
16381         * lib/stdlib_.h [__DECC]: Likewise.
16382         * lib/string_.h [__DECC]: Likewise.
16383         * lib/time_.h [__DECC]: Likewise.
16384         * lib/wchar_.h [__DECC]: Likewise.
16385         * lib/wctype_.h [__DECC]: Likewise.
16386         * lib/inttypes_.h [__DECC]: Likewise.
16387         Reported by Albert Chin <china@thewrittenword.com> in
16388         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
16389
16390 2007-04-04  Eric Blake  <ebb9@byu.net>
16391
16392         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
16393         1.5.x.
16394
16395 2007-04-04  Bruno Haible  <bruno@clisp.org>
16396
16397         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
16398         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
16399
16400 2007-04-04  Bruno Haible  <bruno@clisp.org>
16401
16402         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
16403         results for "%010a" of Infinity and NaN.
16404         * tests/test-vasprintf-posix.c (test_function): Likewise.
16405         * tests/test-snprintf-posix.h (test_function): Likewise.
16406         * tests/test-sprintf-posix.h (test_function): Likewise.
16407         * tests/test-fprintf-posix.h (test_function): Remove these tests.
16408         * tests/test-printf-posix.h (test_function): Likewise.
16409         * tests/test-fprintf-posix.out: Update.
16410         Needed for FreeBSD 6.1.
16411
16412 2007-04-04  Bruno Haible  <bruno@clisp.org>
16413
16414         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
16415         directly used by the gnulib modules nor by gnulib-tool.
16416
16417 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
16418
16419         * DEPENDENCIES: Give overall description of version dependency
16420         desirability.  Use more-typical names for apps.
16421         Add shell, coreutils, diffutils, grep, tar, gzip.
16422
16423 2007-04-04  Simon Josefsson  <simon@josefsson.org>
16424
16425         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
16426
16427 2007-04-04  Karl Berry  <karl@gnu.org>
16428
16429         * MODULES.html.sh (func_module): missing '.
16430
16431 2007-04-03  Bruno Haible  <bruno@clisp.org>
16432
16433         * modules/argmatch-tests (Makefile.am): New variable
16434         test_argmatch_LDADD.
16435         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
16436         * modules/array-list-tests (Makefile.am): New variable
16437         test_array_list_LDADD.
16438         * modules/array-oset-tests (Makefile.am): New variable
16439         test_array_oset_LDADD.
16440         * modules/avltree-list-tests (Makefile.am): New variable
16441         test_avltree_list_LDADD.
16442         * modules/avltree-oset-tests (Makefile.am): New variable
16443         test_avltree_oset_LDADD.
16444         * modules/avltreehash-list-tests (Makefile.am): New variable
16445         test_avltreehash_list_LDADD.
16446         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
16447         test_canonicalize_lgpl_LDADD.
16448         * modules/carray-list-tests (Makefile.am): New variable
16449         test_carray_list_LDADD.
16450         * modules/dirname-tests (Makefile.am): New variable
16451         test_dirname_LDADD.
16452         * modules/linked-list-tests (Makefile.am): New variable
16453         test_linked_list_LDADD.
16454         * modules/linkedhash-list-tests (Makefile.am): New variable
16455         test_linkedhash_list_LDADD.
16456         * modules/rbtree-list-tests (Makefile.am): New variable
16457         test_rbtree_list_LDADD.
16458         * modules/rbtree-oset-tests (Makefile.am): New variable
16459         test_rbtree_oset_LDADD.
16460         * modules/rbtreehash-list-tests (Makefile.am): New variable
16461         test_rbtreehash_list_LDADD.
16462         * modules/xvasprintf-tests (Makefile.am): New variable
16463         test_xvasprintf_LDADD.
16464         Reported by Eric Blake.
16465
16466 2007-04-03  Eric Blake  <ebb9@byu.net>
16467
16468         * DEPENDENCIES: Weaken m4 requirements.
16469
16470 2007-04-03  Bruno Haible  <bruno@clisp.org>
16471
16472         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
16473         * modules/isnanl-tests (configure.ac): Likewise.
16474
16475 2007-04-03  Ben Pfaff  <blp@gnu.org>
16476
16477         * modules/iconv_open: Add $(srcdir)/ to source directory
16478         references in Makefile fragments that call gperf, to fix VPATH
16479         builds.
16480
16481 2007-04-03  Bruno Haible  <bruno@clisp.org>
16482
16483         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
16484         * lib/ldexpl.c: Undo last change.
16485
16486 2007-04-03  Bruno Haible  <bruno@clisp.org>
16487
16488         * modules/printf-frexpl (Depends-on): Undo last change.
16489         (Files): Add m4/ldexpl.m4.
16490
16491 2007-04-03  Bruno Haible  <bruno@clisp.org>
16492
16493         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
16494         * modules/isnanl (Link): New section.
16495
16496         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
16497         * modules/frexp (Link): New section.
16498
16499         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
16500         * modules/frexpl (Link): New section.
16501
16502         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
16503         * modules/ldexpl (Link): New section.
16504
16505 2007-04-03  Bruno Haible  <bruno@clisp.org>
16506
16507         * modules/TEMPLATE-EXTENDED: New file.
16508         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
16509
16510 2007-04-03  Bruno Haible  <bruno@clisp.org>
16511
16512         * DEPENDENCIES: New file.
16513         Suggested by Simon Josefsson.
16514
16515 2007-04-03  Bruno Haible  <bruno@clisp.org>
16516
16517         * doc/gnulib.texi: Escape @.
16518
16519 2007-04-03  James Youngman  <jay@gnu.org>
16520         and Paul Eggert  <eggert@cs.ucla.edu>
16521
16522         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
16523         birthtime on all systems that have birthtime, not just those which
16524         use st_birthtimensec rather than st_birthtim.  Putting zero in
16525         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
16526         that the birth time is not available for files on an NFS mount.
16527
16528 2007-04-03  Simon Josefsson  <simon@josefsson.org>
16529
16530         * modules/memxor: Move back from crypto/, suggested by Bruno.
16531         * modules/crypto/hmac-sha1: Fix memxor dependency.
16532
16533         * modules/crypto/gc: Moved from ../.
16534
16535 2007-04-02  Eric Blake  <ebb9@byu.net>
16536
16537         * lib/ldexpl.c (includes): Avoid libm.
16538
16539         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
16540
16541 2007-04-02  Bruno Haible  <bruno@clisp.org>
16542
16543         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
16544         on IRIX.
16545
16546 2007-04-02  Bruno Haible  <bruno@clisp.org>
16547
16548         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
16549         x86 or x86_64 platforms running MacOS X.
16550         Reported by Ryan Schmidt <@ryandesign.com>.
16551
16552 2007-04-02  Bruno Haible  <bruno@clisp.org>
16553
16554         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
16555         i386.
16556
16557 2007-04-01  Simon Josefsson  <simon@josefsson.org>
16558
16559         * modules/crypto/arcfour: Moved from ../.
16560         * modules/crypto/arcfour-tests: Moved from ../.
16561         * modules/crypto/arctwo: Moved from ../.
16562         * modules/crypto/arctwo-tests: Moved from ../.
16563         * modules/crypto/des: Moved from ../.
16564         * modules/crypto/des-tests: Moved from ../.
16565         * modules/crypto/gc-arcfour: Moved from ../.
16566         * modules/crypto/gc-arcfour-tests: Moved from ../.
16567         * modules/crypto/gc-arctwo: Moved from ../.
16568         * modules/crypto/gc-arctwo-tests: Moved from ../.
16569         * modules/crypto/gc-des: Moved from ../.
16570         * modules/crypto/gc-des-tests: Moved from ../.
16571         * modules/crypto/gc-hmac-md5: Moved from ../.
16572         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
16573         * modules/crypto/gc-hmac-sha1: Moved from ../.
16574         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
16575         * modules/crypto/gc-md2: Moved from ../.
16576         * modules/crypto/gc-md2-tests: Moved from ../.
16577         * modules/crypto/gc-md4: Moved from ../.
16578         * modules/crypto/gc-md4-tests: Moved from ../.
16579         * modules/crypto/gc-md5: Moved from ../.
16580         * modules/crypto/gc-md5-tests: Moved from ../.
16581         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
16582         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
16583         * modules/crypto/gc-random: Moved from ../.
16584         * modules/crypto/gc-rijndael: Moved from ../.
16585         * modules/crypto/gc-rijndael-tests: Moved from ../.
16586         * modules/crypto/gc-sha1: Moved from ../.
16587         * modules/crypto/gc-sha1-tests: Moved from ../.
16588         * modules/crypto/gc-tests: Moved from ../.
16589         * modules/crypto/hmac-md5: Moved from ../.
16590         * modules/crypto/hmac-md5-tests: Moved from ../.
16591         * modules/crypto/hmac-sha1: Moved from ../.
16592         * modules/crypto/hmac-sha1-tests: Moved from ../.
16593         * modules/crypto/md2: Moved from ../.
16594         * modules/crypto/md2-tests: Moved from ../.
16595         * modules/crypto/md4: Moved from ../.
16596         * modules/crypto/md4-tests: Moved from ../.
16597         * modules/crypto/md5: Moved from ../.
16598         * modules/crypto/md5-tests: Moved from ../.
16599         * modules/crypto/memxor: Moved from ../.
16600         * modules/crypto/rijndael: Moved from ../.
16601         * modules/crypto/rijndael-tests: Moved from ../.
16602         * modules/crypto/sha1: Moved from ../.
16603
16604 2007-03-30  James Youngman  <jay@gnu.org>
16605
16606         * tests/test-stat-time.c (prepare_test): use chmod() rather than
16607         rename() to change the ctime of a file (because ctime is unaffected
16608         by rename on jfs2 on AIX 5.1).
16609         (main): Start by doing cleanup, in case a previous run failed leaving
16610         test files behind.
16611
16612 2007-03-31  Bruno Haible  <bruno@clisp.org>
16613
16614         Support old proprietary implementations of iconv.
16615         * modules/iconv_open: New file.
16616         * lib/iconv_.h: New file.
16617         * m4/iconv_h.m4: New file.
16618         * lib/iconv_open.c: New file.
16619         * lib/iconv_open-aix.gperf: New file.
16620         * lib/iconv_open-hpux.gperf: New file.
16621         * lib/iconv_open-irix.gperf: New file.
16622         * lib/iconv_open-osf.gperf: New file.
16623         * m4/iconv_open.m4: New file.
16624         * modules/linebreak (Depends-on): Add iconv_open.
16625         * modules/striconv (Depends-on): Likewise.
16626         * modules/striconveh (Depends-on): Likewise.
16627         * modules/unicodeio (Depends-on): Likewise.
16628         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
16629         (iconv_t)(-1).
16630         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
16631         conversion if cd is (iconv_t)(-1).
16632         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
16633         is not possible.
16634
16635 2007-03-31  Bruno Haible  <bruno@clisp.org>
16636
16637         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
16638         work on Solaris either. Protect also second use of "autodetect_jp".
16639
16640 2007-03-31  Bruno Haible  <bruno@clisp.org>
16641
16642         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
16643         the function is not present.
16644
16645 2007-03-31  Bruno Haible  <bruno@clisp.org>
16646
16647         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
16648         the function is not present.
16649
16650 2007-03-31  Bruno Haible  <bruno@clisp.org>
16651
16652         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
16653         a bug in HP-UX iconv_open().
16654
16655 2007-03-31  Bruno Haible  <bruno@clisp.org>
16656
16657         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
16658         (Mathematics <math.h>): New section, add fpieee.
16659         (Input/output <stdio.h>): Add fseterr.
16660         (Mathematics <math.h>): New section, add printf-frexp.
16661         (Container data structures): Add sublist.
16662         (Core language properties): Add fpucw, inline.
16663         (Functions for greatest-width integer types <inttypes.h>): Add
16664         imaxabs, imaxdiv, inttypes.
16665         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
16666         isnanl-nolibm, ldexp.
16667         (Mathematics <math.h>): New section, add printf-frexpl.
16668         (Support for systems lacking POSIX:2001): Add fprintf-posix,
16669         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
16670         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
16671         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
16672         (Unicode string functions): Add unistr/u*-mbtoucr.
16673         (Java): Add javacomp-script, javaexec-script.
16674         (C#): Add csharpcomp-script, csharpexec-script.
16675         (Support for building libraries and executables): Add havelib,
16676         relocatable-*.
16677         (Support for maintaining and releasing projects): Renamed from
16678         'Support for maintaining and release projects'. Add announce-gen.
16679
16680 2007-03-31  Bruno Haible  <bruno@clisp.org>
16681
16682         * README: Talk primarily about git.
16683         (git and CVS): Renamed from CVS.
16684         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
16685         gnulib is available through git.
16686         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
16687
16688 2007-03-30  Bruno Haible  <bruno@clisp.org>
16689
16690         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
16691         * lib/poll_.h: Likewise.
16692         * lib/stat_.h: Likewise.
16693         * lib/sys_time_.h: Likewise.
16694         * lib/sysexit_.h: Likewise.
16695         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
16696         * lib/stdbool_.h: Likewise.
16697         * lib/byteswap_.h: Add double-inclusion guard.
16698
16699 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
16700
16701         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
16702
16703 2007-03-30  Karl Berry  <karl@gnu.org>
16704
16705         * config/srclist-update: double space after USA in the license
16706         substitution, since that's how it's usually (?) written.
16707
16708 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
16709
16710         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
16711         reported by Bruno Haible.
16712
16713 2007-03-29  Bruno Haible  <bruno@clisp.org>
16714
16715         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
16716         a bug in AIX iconv().
16717
16718 2007-03-29  Bruno Haible  <bruno@clisp.org>
16719
16720         * modules/ldexpl-tests: New file.
16721         * tests/test-ldexpl.c: New file.
16722
16723 2007-03-29  Bruno Haible  <bruno@clisp.org>
16724
16725         * lib/ldexpl.c: Include fpucw.h.
16726         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
16727         multiplication.
16728         * modules/ldexpl (Depends-on): Add fpucw.
16729
16730 2007-03-29  Bruno Haible  <bruno@clisp.org>
16731
16732         * modules/ldexpl: New file.
16733         * m4/ldexpl.m4: New file.
16734         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
16735         set.
16736         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
16737         REPLACE_LDEXPL.
16738         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
16739         REPLACE_LDEXPL.
16740         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
16741         gl_FUNC_LDEXPL_WORKS.
16742         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
16743         * modules/mathl (Files): Remove lib/ldexpl.c.
16744         (Depends-on): Add ldexpl.
16745
16746 2007-03-29  Bruno Haible  <bruno@clisp.org>
16747
16748         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
16749
16750 2007-03-29  Bruno Haible  <bruno@clisp.org>
16751
16752         * tests/test-striconveh.c (main): Don't assume that a direct conversion
16753         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
16754         and possibly also HP-UX.
16755         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
16756         work on AIX, IRIX, HP-UX, OSF/1.
16757         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
16758         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
16759         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
16760         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
16761         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
16762         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
16763
16764 2007-03-29  Bruno Haible  <bruno@clisp.org>
16765
16766         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
16767
16768 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
16769
16770         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
16771         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
16772
16773 2007-03-29  Eric Blake  <ebb9@byu.net>
16774
16775         * lib/acl-internal.h: Remove redundant include.
16776         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
16777         Cygwin when a file is locked.
16778
16779 2007-03-29  Bruno Haible  <bruno@clisp.org>
16780
16781         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
16782         file.
16783         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
16784
16785 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
16786
16787         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
16788         try to remove a parent directory if the child couldn't be removed
16789         (except for the first rmdir, which could fail because the child
16790         doesn't exist).  Problem reported by Jeff Blaine in
16791         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
16792
16793 2007-03-28  Bruno Haible  <bruno@clisp.org>
16794
16795         * lib/striconveh.c (utf8conv_carefully): New function.
16796         (mem_cd_iconveh_internal): Invoke it.
16797
16798 2007-03-28  Bruno Haible  <bruno@clisp.org>
16799
16800         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
16801         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
16802         input.
16803         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
16804         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
16805         unistr/u8-uctomb.
16806
16807 2007-03-28  Bruno Haible  <bruno@clisp.org>
16808
16809         * modules/unistr/u8-mbtoucr: New file.
16810         * lib/unistr/u8-mbtoucr.c: New file.
16811         * modules/unistr/u16-mbtoucr: New file.
16812         * lib/unistr/u16-mbtoucr.c: New file.
16813         * modules/unistr/u16-mbtoucr: New file.
16814         * lib/unistr/u16-mbtoucr.c: New file.
16815         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
16816
16817 2007-03-27  Simon Josefsson  <simon@josefsson.org>
16818             Bruno Haible  <bruno@clisp.org>
16819
16820         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
16821         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
16822         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
16823
16824         * m4/stdio_h.m4: Add stubs for vasprintf too.
16825
16826         * modules/stdio: Support vasprintf in sed command.
16827
16828         * modules/vasprintf: Depend on stdio for prototypes.  Remove
16829         vasprintf.h.  Add stdio module indicator.
16830
16831         * lib/stdio_.h: Declare asprintf and vasprintf, based on
16832         vasprintf.h.
16833
16834         * lib/vasprintf.h: File removed.
16835
16836         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
16837         * lib/vasprintf.c: Ditto.
16838         * lib/xvasprintf.c: Ditto.
16839         * tests/test-vasprintf-posix.c: Ditto.
16840         * tests/test-vasprintf.c: Ditto.
16841
16842 2007-03-27  Bruno Haible  <bruno@clisp.org>
16843
16844         Make vasnprintf multithread-safe.
16845         * lib/vasnprintf.c (decimal_point_char): New function.
16846         (VASNPRINTF): Use it.
16847         Suggested by Simon Josefsson.
16848
16849 2007-03-27  Eric Blake  <ebb9@byu.net>
16850
16851         Support sub-second birthtime on cygwin.
16852         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
16853         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
16854         (get_stat_birthtime): Also work with st_birthtim.
16855
16856 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
16857
16858         * lib/stat-time.h (USE_BIRTHTIME): Remove.
16859         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
16860         (get_stat_birthtime_ns): Do not try to use "spare" fields.
16861         (get_stat_birthtime_ns): Simplify compile-time tests.
16862         (get_stat_birthtime): Change the API to look like
16863         get_stat_mtime etc., except return a negative tv_nsec on error.
16864         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
16865         Don't check for "spare" fields.
16866         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
16867         or for struct stat.st_birthtime, as these tests aren't used.
16868         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
16869
16870 2007-03-27  Bruno Haible  <bruno@clisp.org>
16871
16872         * lib/stat-time.h: Include <sys/stat.h>.
16873
16874 2007-03-27  James Youngman  <jay@gnu.org>
16875
16876         * lib/stat-time.h (get_stat_birthtime): New function for
16877           retrieving st_birthtime as provided by UFS2 (hence *BSD).
16878         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
16879           and its variants.
16880         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
16881         * modules/stat-time-test: New file.
16882         * tests/test-stat-time.c: New test, devised by Bruno Haible.
16883
16884 2007-03-26  Bruno Haible  <bruno@clisp.org>
16885
16886         Better support of signalling NaNs.
16887         * lib/atanl.c: Include isnanl.h.
16888         (atanl): Perform test for NaN at the beginning of the function and
16889         through a call to isnanl.
16890         * lib/cosl.c: Include isnanl.h.
16891         (cosl): Perform test for NaN at the beginning of the function and
16892         through a call to isnanl.
16893         * lib/ldexpl.c: Include isnanl.h.
16894         (ldexpl): Perform test for NaN through a call to isnanl.
16895         * lib/logl.c: Include isnanl.h.
16896         (logl): Perform test for NaN at the beginning of the function and
16897         through a call to isnanl.
16898         * lib/sinl.c: Include isnanl.h.
16899         (sinl): Perform test for NaN at the beginning of the function and
16900         through a call to isnanl.
16901         * lib/sqrtl.c: Include isnanl.h.
16902         (sqrtl): Perform test for NaN at the beginning of the function and
16903         through a call to isnanl.
16904         * lib/tanl.c: Include isnanl.h.
16905         (tanl): Perform test for NaN at the beginning of the function and
16906         through a call to isnanl.
16907         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
16908         * modules/mathl (Depends-on): Add isnanl.
16909
16910 2007-03-26  Eric Blake  <ebb9@byu.net>
16911
16912         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
16913         regression in logic sense of previous patch.
16914
16915 2007-03-26  Bruno Haible  <bruno@clisp.org>
16916
16917         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
16918         unportable shell command "if ! ...".
16919         Reported by Ralf Wildenhues.
16920
16921 2007-03-25  Bruno Haible  <bruno@clisp.org>
16922
16923         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
16924         <sysexits.h> file, and only add EX_CONFIG.
16925         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
16926         absolute file name and whether it is sufficient. Substitute also
16927         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
16928         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
16929         ABSOLUTE_SYSEXITS_H into sysexits.h.
16930
16931 2007-03-25  Bruno Haible  <bruno@clisp.org>
16932
16933         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
16934         hints is NULL.
16935
16936 2007-03-25  Bruno Haible  <bruno@clisp.org>
16937
16938         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
16939         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
16940
16941 2007-03-25  Bruno Haible  <bruno@clisp.org>
16942
16943         * lib/vasnprintf.c: Include langinfo.h.
16944         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
16945         multithread-safe.
16946         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
16947         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
16948         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
16949         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
16950         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
16951         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
16952         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
16953         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
16954         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
16955         Reported by Simon Josefsson.
16956
16957 2007-03-25  Bruno Haible  <bruno@clisp.org>
16958
16959         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
16960         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
16961         * modules/vasnprintf (Depends-on): Add stdint.
16962
16963 2007-03-25  Bruno Haible  <bruno@clisp.org>
16964
16965         * modules/fpieee: New file.
16966         * m4/fpieee.m4: New file.
16967         * modules/isnan-nolibm (Depends-on): Add fpieee.
16968         * modules/isnanl-nolibm (Depends-on): Add fpieee.
16969         * modules/isnanl (Depends-on): Add fpieee.
16970
16971 2007-03-25  Bruno Haible  <bruno@clisp.org>
16972
16973         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
16974
16975 2007-03-25  Bruno Haible  <bruno@clisp.org>
16976
16977         Avoid test failures on IRIX 6.5.
16978         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
16979         (main): Use it.
16980         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
16981         macros.
16982         (main): Use them.
16983
16984 2007-03-25  Bruno Haible  <bruno@clisp.org>
16985
16986         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
16987         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
16988         exists but doesn't work.
16989         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
16990         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
16991         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
16992         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
16993
16994 2007-03-25  Bruno Haible  <bruno@clisp.org>
16995
16996         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
16997         returns inf. Needed on IRIX 6.5.
16998
16999 2007-03-25  Bruno Haible  <bruno@clisp.org>
17000
17001         * tests/test-frexpl.c: Include isnanl-nolibm.h.
17002         (main): Use isnanl instead of x != x idiom.
17003         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
17004
17005         * tests/test-frexp.c: Include isnan.h.
17006         (main): Use isnan instead of x != x idiom.
17007         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
17008
17009 2007-03-25  Bruno Haible  <bruno@clisp.org>
17010
17011         * tests/test-frexp.c (NaN): New function/macro.
17012         (main): Use it instead of 0.0 / 0.0.
17013         * tests/test-isnan.c (NaN): New function/macro.
17014         (main): Use it instead of 0.0 / 0.0.
17015         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
17016         (test_function): Use it instead of 0.0 / 0.0.
17017         * tests/test-vasprintf-posix.c (NaN): New function/macro.
17018         (test_function): Use it instead of 0.0 / 0.0.
17019         * tests/test-snprintf-posix.h (NaN): New function/macro.
17020         (test_function): Use it instead of 0.0 / 0.0.
17021         * tests/test-sprintf-posix.h (NaN): New function/macro.
17022         (test_function): Use it instead of 0.0 / 0.0.
17023         * tests/test-fprintf-posix.h (NaN): New function/macro.
17024         (test_function): Use it instead of 0.0 / 0.0.
17025         * tests/test-printf-posix.h (NaN): New function/macro.
17026         (test_function): Use it instead of 0.0 / 0.0.
17027
17028         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
17029
17030 2007-03-25  Bruno Haible  <bruno@clisp.org>
17031
17032         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
17033
17034 2007-03-25  Bruno Haible  <bruno@clisp.org>
17035
17036         * lib/regexec.c (merge_state_with_log): Make static.
17037
17038 2007-03-25  Bruno Haible  <bruno@clisp.org>
17039
17040         * lib/trigl.c (kernel_rem_pio2): Make static.
17041
17042 2007-03-25  Bruno Haible  <bruno@clisp.org>
17043
17044         * lib/sincosl.c (sincosl_table): Make static.
17045
17046 2007-03-25  Bruno Haible  <bruno@clisp.org>
17047
17048         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
17049         if the compiler does not support C99.
17050
17051 2007-03-25  Bruno Haible  <bruno@clisp.org>
17052
17053         * modules/time (Makefile.am): Ensure all rule action lines start with a
17054         tab.
17055
17056 2007-03-24  Bruno Haible  <bruno@clisp.org>
17057
17058         * modules/tsearch-tests: New file.
17059         * tests/test-tsearch.sh: New file.
17060         * tests/test-tsearch.c: New file, mostly copied from glibc.
17061
17062         * modules/search-tests: New file.
17063         * tests/test-search.c: New file.
17064
17065         * modules/search: New file.
17066         * lib/search_.h: New file, incorporating lib/tsearch.h.
17067         * m4/search_h.m4: New file.
17068         * lib/tsearch.h: Remove file.
17069         * lib/tsearch.c: Include search.h instead of tsearch.h.
17070         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
17071         HAVE_TSEARCH.
17072         * modules/tsearch (Files): Remove lib/tsearch.h.
17073         (Depends-on): Add search.
17074         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
17075         (Include): Change tsearch.h into search.h.
17076
17077 2007-03-24  Bruno Haible  <bruno@clisp.org>
17078
17079         * modules/fpucw: New file.
17080         * lib/fpucw.h: New file.
17081         * lib/frexp.c: Include fpucw.h.
17082         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
17083         (FUNC): Use them.
17084         * lib/printf-frexp.c: Include fpucw.h.
17085         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
17086         (FUNC): Use them.
17087         * lib/vasnprintf.c: Include fpucw.h.
17088         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
17089         'long double' calculations.
17090         * tests/test-frexpl.c: Include fpucw.h.
17091         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
17092         * tests/test-printf-frexpl.c: Include fpucw.h.
17093         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
17094         * modules/frexpl (Depends-on): Add fpucw.
17095         * modules/printf-frexpl (Depends-on): Likewise.
17096         * modules/fprintf-posix (Depends-on): Likewise.
17097         * modules/snprintf-posix (Depends-on): Likewise.
17098         * modules/sprintf-posix (Depends-on): Likewise.
17099         * modules/vasnprintf-posix (Depends-on): Likewise.
17100         * modules/vasprintf-posix (Depends-on): Likewise.
17101         * modules/vfprintf-posix (Depends-on): Likewise.
17102         * modules/vsnprintf-posix (Depends-on): Likewise.
17103         * modules/vsprintf-posix (Depends-on): Likewise.
17104         * modules/frexpl-tests (Depends-on): Likewise.
17105         * modules/printf-frexpl-tests (Depends-on): Likewise.
17106
17107 2007-03-24  Bruno Haible  <bruno@clisp.org>
17108
17109         * lib/float+.h: New file.
17110         * lib/isnan.c: Include float+.h.
17111         (SIZE): New macro.
17112         (FUNC): Compare only SIZE bytes of the value.
17113         * lib/vasnprintf.c: Include float+.h.
17114         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
17115         SIZEOF_LDBL or SIZEOF_DBL bytes.
17116         * modules/isnan-nolibm (Files): Add lib/float+.h.
17117         * modules/isnanl-nolibm (Files): Add lib/float+.h.
17118         * modules/isnanl (Files): Add lib/float+.h.
17119         * modules/vasnprintf (Files): Add lib/float+.h.
17120
17121 2007-03-24  Bruno Haible  <bruno@clisp.org>
17122
17123         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
17124         include isnanl-nolibm.h.
17125
17126 2007-03-24  Bruno Haible  <bruno@clisp.org>
17127
17128         * tests/test-read-file.c (main): Don't produce spurious output for
17129         expected situations. Make the test fail if it encountered unexpected
17130         results.
17131
17132 2007-03-24  Bruno Haible  <bruno@clisp.org>
17133
17134         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
17135         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
17136
17137 2007-03-24  Bruno Haible  <bruno@clisp.org>
17138
17139         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
17140
17141 2007-03-24  Bruno Haible  <bruno@clisp.org>
17142
17143         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
17144         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
17145
17146         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
17147         * modules/utf8-ucs4: Turn into a symbolic link to module
17148         unistr/u8-mbtouc.
17149
17150         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
17151         utf8-ucs4-unsafe.
17152         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
17153         unistr/u8-mbtouc-unsafe.
17154
17155         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
17156         * modules/utf16-ucs4: Turn into a symbolic link to module
17157         unistr/u16-mbtouc.
17158
17159         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
17160         utf16-ucs4-unsafe.
17161         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
17162         unistr/u16-mbtouc-unsafe.
17163
17164         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
17165         * modules/ucs4-utf8: Turn into a symbolic link to module
17166         unistr/u8-ubtomb.
17167
17168         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
17169         * modules/ucs4-utf16: Turn into a symbolic link to module
17170         unistr/u16-ubtomb.
17171
17172 2007-03-24  Bruno Haible  <bruno@clisp.org>
17173
17174         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
17175         Enable the function only if HAVE_INLINE.
17176         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
17177         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
17178         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
17179         Enable the function only if HAVE_INLINE.
17180         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
17181         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
17182         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
17183         Enable the function only if HAVE_INLINE.
17184         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
17185         Enable the function only if HAVE_INLINE.
17186         * modules/utf8-ucs4: Update.
17187         * modules/utf8-ucs4-unsafe: Update.
17188         * modules/utf16-ucs4: Update.
17189         * modules/utf16-ucs4-unsafe: Update.
17190         * modules/ucs4-utf8: Update.
17191         * modules/ucs4-utf16: Update.
17192
17193 2007-03-24  Bruno Haible  <bruno@clisp.org>
17194
17195         * lib/utf8-ucs4.h: Remove file.
17196         * lib/utf8-ucs4-unsafe.h: Remove file.
17197         * lib/utf16-ucs4.h: Remove file.
17198         * lib/utf16-ucs4-unsafe.h: Remove file.
17199         * lib/ucs4-utf8.h: Remove file.
17200         * lib/ucs4-utf16.h: Remove file.
17201         * lib/unistr.h: Include their previous contents.
17202         * m4/utf-ucs4.m4: Remove file.
17203         * m4/ucs4-utf.m4: Remove file.
17204         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
17205         (Depends-on): Add unistr/base.
17206         (configure.ac): Remove gl_UTF_UCS4.
17207         (Makefile.am): Update.
17208         (Include): Change to unistr.h.
17209         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.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/utf16-ucs4 (Files): Remove lib/utf16-ucs4.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-unsafe (Files): Remove lib/utf16-ucs4-unsafe.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/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
17225         (Depends-on): Add unistr/base.
17226         (configure.ac): Remove gl_UCS4_UTF.
17227         (Makefile.am): Update.
17228         (Include): Change to unistr.h.
17229         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.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         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
17235         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
17236         utf8-ucs4-unsafe.h.
17237         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
17238         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
17239         utf16-ucs4-unsafe.h.
17240         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
17241         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
17242         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
17243         * lib/unistr/u8-strchr.c: Likewise.
17244         * lib/unistr/u8-strrchr.c: Likewise.
17245         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
17246         * lib/unistr/u16-strchr.c: Likewise.
17247         * lib/unistr/u16-strrchr.c: Likewise.
17248         * lib/striconveh.c: Update.
17249         * lib/linebreak.c: Update.
17250
17251 2007-03-24  Bruno Haible  <bruno@clisp.org>
17252
17253         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
17254         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
17255
17256 2007-03-22  Bruno Haible  <bruno@clisp.org>
17257
17258         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
17259
17260 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
17261
17262         * MODULES.html.sh (File system functions): New module write-any-file.
17263         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
17264         * m4/write-any-file.m4: New files.
17265
17266 2007-03-23  Eric Blake  <ebb9@byu.net>
17267
17268         * gnulib-tool: Rearrange space-tab sequences, since some editors
17269         like to eat them.
17270
17271 2007-03-23  Eric Blake  <ebb9@byu.net>
17272
17273         * lib/version-etc.c (version_etc_va): Update license wording to
17274         be more concise.  Recommended by Richard Stallman.
17275
17276 2007-03-22  Bruno Haible  <bruno@clisp.org>
17277
17278         * lib/poll.c (MSG_PEEK): New fallback definition.
17279
17280 2007-03-22  Bruno Haible  <bruno@clisp.org>
17281
17282         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
17283         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
17284         (main): Update.
17285         Fixes a compilation error on BeOS.
17286
17287 2007-03-22  Bruno Haible  <bruno@clisp.org>
17288
17289         * modules/frexpl-tests: New file.
17290         * tests/test-frexpl.c: New file.
17291
17292         * modules/frexpl: New file.
17293         * m4/frexpl.m4: New file.
17294         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
17295         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
17296         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
17297         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
17298         (Depends-on): Add frexpl. Remove isnanl-nolibm.
17299         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
17300
17301 2007-03-22  Bruno Haible  <bruno@clisp.org>
17302
17303         * lib/frexpl.c: Share code with lib/frexp.c.
17304         * modules/mathl (Files): Add lib/frexp.c.
17305         (Depends-on): Add isnanl-nolibm.
17306
17307 2007-03-22  Bruno Haible  <bruno@clisp.org>
17308
17309         * modules/printf-frexp (Files): Add m4/frexp.m4.
17310         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
17311         only if the found frexp function actually works.
17312
17313 2007-03-22  Bruno Haible  <bruno@clisp.org>
17314
17315         * lib/frexp.c: Remove older implementation that uses divisions.
17316
17317 2007-03-21  Bruno Haible  <bruno@clisp.org>
17318
17319         * modules/frexp-tests: New file.
17320         * tests/test-frexp.c: New file.
17321
17322         * modules/frexp: New file.
17323         * lib/frexp.c: New file.
17324         * m4/frexp.m4: New file.
17325         * lib/math_.h (frexp): New declaration.
17326         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
17327         REPLACE_FREXP.
17328         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
17329
17330 2007-03-21  Bruno Haible  <bruno@clisp.org>
17331
17332         * modules/isnanl-tests: New file.
17333         * tests/test-isnanl.c: New file.
17334
17335         * modules/isnanl: New file.
17336         * lib/isnanl.h: New file.
17337         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
17338         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
17339         gl_FUNC_ISNANL_WORKS.
17340         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
17341         New macros.
17342
17343 2007-03-21  Bruno Haible  <bruno@clisp.org>
17344
17345         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
17346         lib/isnanl.h.
17347         (Include): Update.
17348         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
17349         * lib/vasnprintf.c: Update.
17350         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
17351         tests/test-isnanl.h, remove tests/test-isnanl.c.
17352         (Makefile.am): Update.
17353         * tests/test-isnanl-nolibm.c: New file.
17354         * tests/test-isnanl.h: New file.
17355         * tests/test-isnanl.c: Remove file.
17356
17357 2007-03-21  Jim Meyering  <jim@meyering.net>
17358
17359         When trying to open ".", treat ESTALE like EACCES.
17360         * lib/savewd.c (savewd_save): Resort to forking not just upon
17361         failure with EACCES, but also when errno is ESTALE.
17362
17363 2007-03-20  Bruno Haible  <bruno@clisp.org>
17364
17365         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
17366         Needed on AIX 5.1. Reported by Matthew Woehlke.
17367
17368 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
17369
17370         Suggestions by Bruno Haible:
17371         * lib/acl-internal.h: Include "gettext.h" rather than rolling
17372         our own.
17373         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
17374         * modules/acl (Depends-on): Add gettext.
17375
17376 2007-03-19  Bruno Haible  <bruno@clisp.org>
17377
17378         * modules/iconvme: Remove file.
17379         * lib/iconvme.h: Remove file.
17380         * lib/iconvme.c: Remove file.
17381         * m4/iconvme.m4: Remove file.
17382
17383 2007-03-19  Bruno Haible  <bruno@clisp.org>
17384
17385         * doc/relocatable-maint.texi: Break long shell script line.
17386         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
17387
17388 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
17389
17390         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
17391         handle file_has_acl.
17392         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
17393         * lib/acl.c: Move header inclusions and related macro defns into
17394         lib/acl-internal.h.
17395         (S_ISLNK): Remove defn, since that's now done for us.
17396         (file_has_acl): Move to lib/file-has-acl.c.
17397         Call acl_trivial if available.  This is the crucial part of the fix.
17398         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
17399         shared within the library.  Rewrite a bit, partly to make it compatible
17400         with the GNU coding style.
17401         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
17402         Remove unnecessary double-quotes.
17403         Don't test for acl_to_text; the build will catch that.
17404         Replace acl_entries if it doesn't exist and it is needed.
17405         Check for -lsec and acl_trivial (as used on Solaris 10).
17406         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
17407         lib/file-has-acl.c.
17408         (Depends-on): Add sys_stat, for S_ISLNK.
17409
17410 2007-03-19  Ben Pfaff  <blp@gnu.org>
17411
17412         * doc/gnulib.texi: Fix typos.
17413         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
17414
17415 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
17416
17417         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
17418         If size is zero here, buf must be zero.
17419
17420 2007-03-19  Simon Josefsson  <simon@josefsson.org>
17421
17422         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
17423         <bruno@clisp.org>.
17424
17425 2007-03-18  Bruno Haible  <bruno@clisp.org>
17426
17427         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
17428         Suggested by Eric Blake.
17429
17430 2007-03-18  Ben Pfaff  <blp@gnu.org>
17431
17432         * doc/relocatable.texi: Recommend using as prefix a directory
17433         that does not exist and will never be created.  Based on
17434         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
17435         and others.
17436
17437 2007-03-17  Bruno Haible  <bruno@clisp.org>
17438
17439         * lib/fchownat.c: Include lchown.h.
17440
17441 2007-03-17  Bruno Haible  <bruno@clisp.org>
17442
17443         Fix endless loop when the given allocated size was > INT_MAX.
17444         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
17445         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
17446         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
17447         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
17448         * lib/sprintf.c (sprintf): Likewise.
17449
17450 2007-03-17  Bruno Haible  <bruno@clisp.org>
17451
17452         * tests/test-argp-2.sh (func_compare): Output a context diff.
17453
17454 2007-03-17  Bruno Haible  <bruno@clisp.org>
17455
17456         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
17457         locale's decimal-point character.
17458
17459 2007-03-17  Bruno Haible  <bruno@clisp.org>
17460
17461         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
17462         before comparing it. Needed because on some platforms (e.g. x86) a
17463         'long double' occupies less bytes than sizeof (long double).
17464
17465 2007-03-17  Bruno Haible  <bruno@clisp.org>
17466
17467         * tests/test-crc.c (main): Make printf statements 64-bit clean.
17468         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
17469         * tests/test-getaddrinfo.c (simple): Likewise.
17470         * tests/test-read-file.c (main): Likewise.
17471
17472 2007-03-17  Bruno Haible  <bruno@clisp.org>
17473
17474         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
17475
17476 2007-03-17  Bruno Haible  <bruno@clisp.org>
17477
17478         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
17479         unused variable.
17480
17481 2007-03-17  Bruno Haible  <bruno@clisp.org>
17482
17483         * tests/test-c-strcasecmp.c: Include c-strcase.h.
17484         * tests/test-c-strncasecmp.c: Likewise.
17485
17486 2007-03-17  Bruno Haible  <bruno@clisp.org>
17487
17488         * modules/stdlib (Depends-on): Add unistd.
17489         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
17490         Needed for MacOS X 10.3.
17491
17492 2007-03-17  Bruno Haible  <bruno@clisp.org>
17493
17494         * lib/unistr/u-strdup.h: Include <stdlib.h>.
17495
17496 2007-03-17  Bruno Haible  <bruno@clisp.org>
17497
17498         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
17499
17500 2007-03-17  Bruno Haible  <bruno@clisp.org>
17501
17502         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
17503         to reflect files copied from gnulib (with or without modifications).
17504         Suggested by Jim Meyering.
17505
17506 2007-03-17  Eric Blake  <ebb9@byu.net>
17507
17508         * NEWS: Document stdlib change from 2007-02-18.
17509
17510 2007-03-17  Jim Meyering  <jim@meyering.net>
17511
17512         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
17513         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
17514         someone uses a name containing shell meta-characters.
17515         Reported by Alfred M. Szmidt.
17516
17517         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
17518
17519 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
17520
17521         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
17522         and copy gettext configuration files only if configure.ac contains
17523         a use of AM_GNU_GETTEXT_VERSION.
17524
17525 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
17526
17527         * build-aux/bootstrap (gnulib_name): New variable.
17528         (gnulib_tool_options): Use it.
17529
17530 2007-03-13  Simon Josefsson  <simon@josefsson.org>
17531
17532         * tests/test-des.c: Use new namespace.
17533
17534 2007-03-15  Bruno Haible  <bruno@clisp.org>
17535
17536         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
17537         Reported by James Youngman <jay@gnu.org>.
17538
17539 2007-03-15  Bruno Haible  <bruno@clisp.org>
17540
17541         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
17542         declared prototype. Needed with cc on OSF/1 5.1.
17543
17544 2007-03-15  Bruno Haible  <bruno@clisp.org>
17545
17546         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
17547         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
17548         (struct gl_list_implementation): Add dispose_fn argument to the
17549         'create_empty', 'create' methods.
17550         (struct gl_list_impl_base): Add field 'dispose_fn'.
17551         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
17552         argument.
17553         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
17554         dispose_fn argument.
17555         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
17556         dispose_fn on the dropped values.
17557         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
17558         dispose_fn argument.
17559         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
17560         dropped values.
17561         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
17562         (gl_tree_remove_node): Call dispose_fn on the dropped value.
17563         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
17564         (gl_tree_remove_node): Call dispose_fn on the dropped value.
17565         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
17566         argument.
17567         (gl_tree_list_free): Call dispose_fn on the dropped values.
17568         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
17569         the dropped values.
17570         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
17571         Add dispose_fn argument.
17572         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
17573         Call dispose_fn on the dropped values.
17574         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
17575         Add dispose_fn argument.
17576         (gl_sublist_create): Initialize the 'dispose_fn' field.
17577         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
17578         * tests/test-array_list.c (main): Update.
17579         * tests/test-carray_list.c (main): Update.
17580         * tests/test-avltree_list.c (main): Update.
17581         * tests/test-rbtree_list.c (main): Update.
17582         * tests/test-avltreehash_list.c (main): Update.
17583         * tests/test-rbtreehash_list.c (main): Update.
17584         * tests/test-linked_list.c (main): Update.
17585         * tests/test-linkedhash_list.c (main): Update.
17586         * tests/test-array_oset.c (main): Update.
17587
17588 2007-03-15  Bruno Haible  <bruno@clisp.org>
17589
17590         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
17591         (gl_oset_create_empty): Add dispose_fn argument.
17592         (struct gl_oset_implementation): Add dispose_fn argument to
17593         'create_empty' method.
17594         (struct gl_oset_impl_base): Add dispose_fn field.
17595         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
17596         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
17597         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
17598         values.
17599         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
17600         (gl_tree_oset_free): Call dispose_fn on the dropped values.
17601         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
17602         dropped value.
17603         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
17604         dropped value.
17605         * tests/test-array_oset.c (main): Update.
17606         * tests/test-avltree_oset.c (main): Update.
17607         * tests/test-rbtree_oset.c (main): Update.
17608         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
17609
17610 2007-03-13  Bruno Haible  <bruno@clisp.org>
17611
17612         * tests/test-stdbool.c (i): Update after last patch.
17613
17614 2007-03-12  Bruno Haible  <bruno@clisp.org>
17615
17616         * lib/quotearg.c: Include <wctype.h> early, before the definition of
17617         the iswprint macro. Needed on Solaris 2.5.1.
17618
17619 2007-03-12  Bruno Haible  <bruno@clisp.org>
17620
17621         * tests/test-printf-frexp.c (main): Declare x as volatile.
17622
17623 2007-03-12  Simon Josefsson  <simon@josefsson.org>
17624
17625         * doc/gnulib.texi (Build robot for gnulib): New section.
17626
17627 2007-03-12  Jim Meyering  <jim@meyering.net>
17628
17629         * build-aux/bootstrap: New file.
17630         * build-aux/bootstrap.conf: New file, from coreutils.
17631
17632 2007-03-11  Bruno Haible  <bruno@clisp.org>
17633
17634         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
17635
17636 2007-03-12  Simon Josefsson  <simon@josefsson.org>
17637
17638         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
17639         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
17640         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
17641
17642 2007-03-11  Bruno Haible  <bruno@clisp.org>
17643
17644         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
17645         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
17646
17647 2007-03-11  Bruno Haible  <bruno@clisp.org>
17648
17649         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
17650         formula. Needed for SunPRO C 5.0.
17651
17652 2007-03-11  Bruno Haible  <bruno@clisp.org>
17653
17654         * modules/long-options (Depends-on): Add getopt.
17655
17656 2007-03-11  Bruno Haible  <bruno@clisp.org>
17657
17658         * modules/modechange (Depends-on): Add stdbool.
17659
17660 2007-03-11  Bruno Haible  <bruno@clisp.org>
17661
17662         * modules/i-ring (Depends-on): Add stdbool.
17663
17664 2007-03-11  Bruno Haible  <bruno@clisp.org>
17665
17666         * modules/gc-des (Depends-on): Add stdbool.
17667
17668 2007-03-11  Bruno Haible  <bruno@clisp.org>
17669
17670         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
17671
17672 2007-03-11  Bruno Haible  <bruno@clisp.org>
17673
17674         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
17675
17676 2007-03-11  Bruno Haible  <bruno@clisp.org>
17677
17678         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
17679
17680 2007-03-11  Bruno Haible  <bruno@clisp.org>
17681
17682         * lib/vasnprintf.c (sprintf): Undefine.
17683
17684 2007-03-11  Bruno Haible  <bruno@clisp.org>
17685
17686         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
17687         initializers in SunPRO C and Compaq C compilers.
17688
17689 2007-03-11  Bruno Haible  <bruno@clisp.org>
17690
17691         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
17692         decrementing code ANSI C compliant.
17693
17694 2007-03-11  Bruno Haible  <bruno@clisp.org>
17695
17696         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
17697         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
17698
17699 2007-03-11  Bruno Haible  <bruno@clisp.org>
17700
17701         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
17702         <stdbool.h> substitute doesn't pass.
17703
17704 2007-03-11  Bruno Haible  <bruno@clisp.org>
17705
17706         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
17707
17708 2007-03-11  Bruno Haible  <bruno@clisp.org>
17709
17710         * gnulib-tool (func_create_megatestdir): Create also an autobuild
17711         script, for submission to autobuild.josefsson.org.
17712
17713 2007-03-10  Bruno Haible  <bruno@clisp.org>
17714
17715         * modules/canonicalize-lgpl-tests: New file.
17716         * tests/test-canonicalize-lgpl.sh: New file.
17717         * tests/test-canonicalize-lgpl.c: New file.
17718
17719         * modules/c-strcase-tests: New file.
17720         * tests/test-c-strcase.sh: New file.
17721         * tests/test-c-strcasecmp.c: New file.
17722         * tests/test-c-strncasecmp.c: New file.
17723
17724         * modules/atexit-tests: New file.
17725         * tests/test-atexit.sh: New file.
17726         * tests/test-atexit.c: New file.
17727
17728 2007-03-10  Bruno Haible  <bruno@clisp.org>
17729
17730         * tests/test-binary-io.sh: Use temporary filenames that are not so
17731         likely to clash with those of other tests (in a parallel make).
17732         * tests/test-binary-io.c: Likewise.
17733
17734 2007-03-10  Bruno Haible  <bruno@clisp.org>
17735
17736         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
17737         fallback; use #error instead.
17738         Suggested by Simon Josefsson.
17739
17740 2007-03-10  Bruno Haible  <bruno@clisp.org>
17741
17742         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
17743         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
17744         first and the last.
17745
17746 2007-03-10  Bruno Haible  <bruno@clisp.org>
17747
17748         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
17749
17750 2007-03-10  Bruno Haible  <bruno@clisp.org>
17751
17752         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
17753         "make distcheck".
17754         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
17755         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
17756         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
17757
17758 2007-03-10  Bruno Haible  <bruno@clisp.org>
17759
17760         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
17761         variable.
17762         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
17763         variable.
17764
17765 2007-03-09  Eric Blake  <ebb9@byu.net>
17766         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
17767
17768         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
17769         types are not being provided by gnulib.
17770         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
17771         types are supported.
17772
17773 2007-03-10  Bruno Haible  <bruno@clisp.org>
17774
17775         * lib/stdio_.h (__attribute__): New macro.
17776         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
17777         vsprintf): Specify __attribute__ __format__ for GCC.
17778         Suggested by Eric Blake.
17779
17780 2007-03-09  Bruno Haible  <bruno@clisp.org>
17781
17782         * modules/printf-posix-tests: New file.
17783         * tests/test-printf-posix.sh: New file.
17784         * tests/test-printf-posix.c: New file.
17785
17786         * modules/printf-posix: New file.
17787         * lib/printf.c: New file.
17788         * m4/printf-posix-rpl.m4: New file.
17789         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
17790         REPLACE_PRINTF.
17791         * lib/stdio_.h (printf): New declaration.
17792         (format, __format__, ____printf____, ____scanf____, ____strftime____,
17793         ____strfmon____): New macros.
17794         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
17795         REPLACE_PRINTF.
17796
17797 2007-03-09  Bruno Haible  <bruno@clisp.org>
17798
17799         * tests/test-vasnprintf-posix2.sh: New file.
17800         * tests/test-vasnprintf-posix2.c: New file.
17801         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
17802         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
17803         (Makefile.am): Activate test-vasnprintf-posix2.sh.
17804
17805         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
17806         a locale dependent decimal point, rather than always '.'.
17807
17808 2007-03-09  Eric Blake  <ebb9@byu.net>
17809
17810         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
17811         spite of platforms like Tandem/NSK that define it to -1.
17812
17813 2007-03-08  Bruno Haible  <bruno@clisp.org>
17814
17815         * modules/vprintf-posix-tests: New file.
17816         * tests/test-vprintf-posix.sh: New file.
17817         * tests/test-vprintf-posix.c: New file.
17818         * tests/test-printf-posix.h: New file.
17819
17820         * modules/vprintf-posix: New file.
17821         * lib/vprintf.c: New file.
17822         * m4/vprintf-posix.m4: New file.
17823         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
17824         REPLACE_VPRINTF.
17825         * lib/stdio_.h (vprintf): New declaration.
17826         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
17827         REPLACE_VPRINTF.
17828
17829 2007-03-08  Bruno Haible  <bruno@clisp.org>
17830
17831         * modules/fprintf-posix-tests: New file.
17832         * tests/test-fprintf-posix.sh: New file.
17833         * tests/test-fprintf-posix.c: New file.
17834
17835         * modules/fprintf-posix: New file.
17836         * lib/fprintf.c: New file.
17837         * m4/fprintf-posix.m4: New file.
17838         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
17839         REPLACE_FPRINTF.
17840         * lib/stdio_.h (fprintf): New declaration.
17841         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
17842         REPLACE_FPRINTF.
17843
17844 2007-03-08  Bruno Haible  <bruno@clisp.org>
17845
17846         * modules/vfprintf-posix-tests: New file.
17847         * tests/test-vfprintf-posix.sh: New file.
17848         * tests/test-vfprintf-posix.c: New file.
17849         * tests/test-fprintf-posix.h: New file.
17850         * tests/test-fprintf-posix.out: New file.
17851
17852         * modules/vfprintf-posix: New file.
17853         * lib/vfprintf.c: New file.
17854         * m4/vfprintf-posix.m4: New file.
17855         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
17856         REPLACE_VFPRINTF.
17857         * lib/stdio_.h (vfprintf): New declaration.
17858         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
17859         REPLACE_VFPRINTF.
17860
17861 2007-03-08  Bruno Haible  <bruno@clisp.org>
17862
17863         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
17864
17865 2007-03-08  Bruno Haible  <bruno@clisp.org>
17866
17867         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
17868         instead of 'expr' invocations.
17869         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
17870         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
17871         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
17872         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
17873         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
17874         Suggested by Paul Eggert.
17875
17876 2007-03-08  Bruno Haible  <bruno@clisp.org>
17877
17878         * modules/fseterr-tests: New file.
17879         * tests/test-fseterr.c: New file.
17880
17881         * modules/fseterr: New file.
17882         * lib/fseterr.h: New file.
17883         * lib/fseterr.c: New file.
17884
17885 2007-03-08  Bruno Haible  <bruno@clisp.org>
17886
17887         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
17888         * lib/getopt_.h: Likewise.
17889         * lib/mbswidth.h: Likewise.
17890         * lib/setenv.h: Likewise.
17891         * lib/vasnprintf.h: Likewise.
17892         * lib/vasprintf.h: Likewise.
17893         * lib/verror.h: Likewise.
17894         * lib/xsetenv.h: Likewise.
17895         * lib/xvasprintf.h: Likewise.
17896
17897 2007-03-08  Jim Meyering  <jim@meyering.net>
17898
17899         * users.txt: Add parted.
17900
17901         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
17902
17903 2007-03-07  Bruno Haible  <bruno@clisp.org>
17904
17905         * m4/printf.m4: Make the shell script snippets copy&pastable.
17906
17907 2007-03-02  Bruno Haible  <bruno@clisp.org>
17908
17909         * lib/netinet_in_.h: New file.
17910         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
17911         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
17912         * modules/netinet_in (Files): Add lib/netinet_in_.h.
17913         (Depends-on): Add absolute-header.
17914         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
17915         into netinet/in.h.
17916
17917 2007-03-03  Bruno Haible  <bruno@clisp.org>
17918
17919         * lib/sys_select_.h: New file.
17920         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
17921         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
17922         * modules/sys_select (Files): Add lib/sys_select_.h.
17923         (Depends-on): Add absolute-header.
17924         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
17925         into sys/select.h.
17926
17927 2007-03-02  Bruno Haible  <bruno@clisp.org>
17928
17929         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
17930         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
17931         values.
17932         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
17933         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
17934         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
17935         * modules/sys_socket (Depends-on): Add absolute-header.
17936         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
17937         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
17938         (Include): Remove requirement of inclusion of <sys/types.h>.
17939
17940 2007-03-02  Bruno Haible  <bruno@clisp.org>
17941
17942         * lib/byteswap_.h (bswap_32): Fix formula.
17943
17944 2007-03-06  Bruno Haible  <bruno@clisp.org>
17945
17946         * modules/sprintf-posix-tests: New file.
17947         * tests/test-sprintf-posix.c: New file.
17948
17949         * modules/sprintf-posix: New file.
17950         * lib/sprintf.c: New file.
17951         * m4/sprintf-posix.m4: New file.
17952         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
17953         REPLACE_SPRINTF.
17954         * lib/stdio_.h (sprintf): New declaration.
17955         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
17956         REPLACE_SPRINTF.
17957
17958 2007-03-06  Bruno Haible  <bruno@clisp.org>
17959
17960         * modules/vsprintf-posix-tests: New file.
17961         * tests/test-vsprintf-posix.c: New file.
17962         * tests/test-sprintf-posix.h: New file.
17963
17964         * modules/vsprintf-posix: New file.
17965         * lib/vsprintf.c: New file.
17966         * m4/vsprintf-posix.m4: New file.
17967         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
17968         REPLACE_VSPRINTF.
17969         * lib/stdio_.h (vsprintf): New declaration.
17970         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
17971         REPLACE_VSPRINTF.
17972
17973 2007-03-06  Bruno Haible  <bruno@clisp.org>
17974
17975         * modules/vsnprintf (Depend-on): Remove minmax.
17976
17977 2007-03-06  Bruno Haible  <bruno@clisp.org>
17978
17979         * modules/snprintf-posix-tests: New file.
17980         * tests/test-snprintf-posix.c: New file.
17981
17982         * modules/snprintf-posix: New file.
17983         * m4/snprintf-posix.m4: New file.
17984         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
17985         gl_FUNC_SNPRINTF.
17986         (gl_FUNC_SNPRINTF): Invoke it.
17987         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
17988         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
17989         is set.
17990         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
17991
17992 2007-03-06  Bruno Haible  <bruno@clisp.org>
17993
17994         * modules/vsnprintf-posix-tests: New file.
17995         * tests/test-vsnprintf-posix.c: New file.
17996         * tests/test-snprintf-posix.h: New file.
17997
17998         * modules/vsnprintf-posix: New file.
17999         * m4/vsnprintf-posix.m4: New file.
18000         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
18001         gl_FUNC_VSNPRINTF.
18002         (gl_FUNC_VSNPRINTF): Invoke it.
18003         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
18004         * lib/stdio_.h (vsnprintf): Define as a replacement if
18005         REPLACE_VSNPRINTF is set.
18006         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
18007
18008 2007-03-06  Bruno Haible  <bruno@clisp.org>
18009
18010         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
18011         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
18012
18013 2007-03-06  Bruno Haible  <bruno@clisp.org>
18014
18015         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
18016         (asinl): Declare also if HAVE_DECL_ASINL is set.
18017         (atanl): Declare also if HAVE_DECL_ATANL is set.
18018         (ceill): Declare also if HAVE_DECL_CEILL is set.
18019         (cosl): Declare also if HAVE_DECL_COSL is set.
18020         (expl): Declare also if HAVE_DECL_EXPL is set.
18021         (floorl): Declare also if HAVE_DECL_FLOORL is set.
18022         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
18023         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
18024         (logl): Declare also if HAVE_DECL_LOGL is set.
18025         (sinl): Declare also if HAVE_DECL_SINL is set.
18026         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
18027         (tanl): Declare also if HAVE_DECL_TANL is set.
18028         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
18029         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
18030         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
18031         declaration of frexpl, ldexpl.
18032         * modules/printf-frexpl (Depends-on): Add math.
18033         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
18034
18035 2007-03-05  Bruno Haible  <bruno@clisp.org>
18036
18037         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
18038         frexpl and ldexpl are declared.
18039         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
18040
18041 2007-03-05  Bruno Haible  <bruno@clisp.org>
18042
18043         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
18044         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
18045
18046 2007-03-05  Bruno Haible  <bruno@clisp.org>
18047
18048         * lib/stdio_.h: Include <stddef.h>.
18049
18050 2007-03-05  Bruno Haible  <bruno@clisp.org>
18051
18052         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
18053
18054 2007-03-05  Bruno Haible  <bruno@clisp.org>
18055
18056         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
18057         NetBSD 4, from Ralf Wildenhues.
18058
18059 2007-03-04  Bruno Haible  <bruno@clisp.org>
18060
18061         * lib/vasprintf.h: Update #if logic for the case when the functions
18062         exist but are overridden.
18063
18064 2007-03-04  Bruno Haible  <bruno@clisp.org>
18065
18066         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
18067         implementations: glibc-2.4 and MacOS X 10.3.
18068         * tests/test-vasnprintf-posix.c (test_function): Test also the case
18069         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
18070         * tests/test-vasprintf-posix.c (test_function): Likewise.
18071
18072 2007-03-04  Bruno Haible  <bruno@clisp.org>
18073
18074         * modules/vasprintf-posix-tests: New file.
18075         * tests/test-vasprintf-posix.c: New file.
18076
18077         * modules/vasprintf-posix: New file.
18078         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
18079         defined.
18080         * m4/vasprintf-posix.m4: New file.
18081         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
18082         gl_FUNC_VASPRINTF.
18083         (gl_FUNC_VASPRINTF): Invoke it.
18084         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
18085         here.
18086         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
18087
18088 2007-03-04  Bruno Haible  <bruno@clisp.org>
18089
18090         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
18091         REPLACE_GETTIMEOFDAY.
18092         * modules/sys_time (Makefile.am): Likewise.
18093         * m4/sys_time_h.m4: Likewise.
18094         * m4/gettimeofday.m4: Likewise.
18095
18096 2007-03-04  Bruno Haible  <bruno@clisp.org>
18097
18098         * modules/vasnprintf-posix-tests: New file.
18099         * tests/test-vasnprintf-posix.c: New file.
18100
18101         * modules/vasnprintf-posix: New file.
18102         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
18103         printf-frexpl.h.
18104         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
18105         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
18106         REPLACE_VASNPRINTF is defined.
18107         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
18108         gl_FUNC_VASNPRINTF.
18109         (gl_FUNC_VASNPRINTF): Invoke it.
18110         * m4/vasnprintf-posix.m4: New file.
18111         * m4/printf.m4: New file.
18112
18113 2007-03-04  Bruno Haible  <bruno@clisp.org>
18114
18115         Compile progreloc.c only if --enable-relocatable is specified.
18116         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
18117         if --enable-relocatable was specified.
18118         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
18119         lib_SOURCES.
18120
18121 2007-03-04  Jim Meyering  <jim@meyering.net>
18122
18123         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
18124         Use it consistently, rather than enumerating errno constants.
18125
18126 2007-03-04  Bruno Haible  <bruno@clisp.org>
18127
18128         * modules/xvasprintf-tests: New file.
18129         * tests/test-xvasprintf.c: New file.
18130
18131         * modules/vasprintf-tests: New file.
18132         * tests/test-vasprintf.c: New file.
18133
18134         * modules/vasnprintf-tests: New file.
18135         * tests/test-vasnprintf.c: New file.
18136
18137         * modules/vsnprintf-tests: New file.
18138         * tests/test-vsnprintf.c: New file.
18139
18140         * modules/snprintf-tests: New file.
18141         * tests/test-snprintf.c: New file.
18142
18143 2007-03-04  Bruno Haible  <bruno@clisp.org>
18144
18145         Compile relocatable.c only if --enable-relocatable is specified.
18146         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
18147         gl_RELOCATABLE_LIBRARY.
18148         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
18149         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
18150         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
18151         gl_RELOCATABLE_LIBRARY.
18152         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
18153         (Makefile.am): Remove lib_SOURCES.
18154         * modules/relocatable-lib-lgpl (configure.ac): Invoke
18155         gl_RELOCATABLE_LIBRARY.
18156         (Makefile.am): Remove lib_SOURCES.
18157         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
18158         always.
18159         * modules/relocatable-prog-wrapper (configure.ac): Invoke
18160         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
18161
18162 2007-03-04  Bruno Haible  <bruno@clisp.org>
18163
18164         * modules/argmatch-tests: New file.
18165         * tests/test-argmatch.c: New file.
18166
18167         * tests/test-allocsa.c (main): Halve the number of loop runs.
18168
18169         * modules/alloca-opt-tests: New file.
18170         * tests/test-alloca-opt.c: New file.
18171
18172 2007-03-04  Jim Meyering  <jim@meyering.net>
18173
18174         Work around difference between Linux ACLs and Solaris 10 ZFS.
18175         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
18176         for EINVAL.
18177
18178 2007-03-03  Bruno Haible  <bruno@clisp.org>
18179
18180         * modules/relocatable-prog (Depends-on): Add back progreloc's
18181         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
18182
18183 2007-03-03  Bruno Haible  <bruno@clisp.org>
18184
18185         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
18186         * modules/relocatable-lib: New file.
18187
18188 2007-03-03  Bruno Haible  <bruno@clisp.org>
18189
18190         * modules/relocatable-prog: Renamed from modules/relocatable.
18191         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
18192
18193 2007-03-03  Bruno Haible  <bruno@clisp.org>
18194
18195         * modules/relocatable-script (Files): Add doc/relocatable.texi,
18196         m4/relocatable-lib.m4.
18197         (Depends-on): Remove 'relocatable'.
18198         (configure.ac): Add gl_RELOCATABLE_NOP.
18199
18200 2007-03-03  Bruno Haible  <bruno@clisp.org>
18201
18202         * modules/relocatable-prog-wrapper: New file.
18203         * modules/relocatable (Depends-on): Add it. Remove all other
18204         dependencies except progname.
18205         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
18206
18207         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
18208         (gl_FUNC_STRERROR): Nop.
18209         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
18210
18211         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
18212         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
18213
18214         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
18215         (gl_FUNC_READLINK): Update.
18216
18217         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
18218
18219 2007-03-03  Bruno Haible  <bruno@clisp.org>
18220
18221         * lib/xreadlink.c: Include <unistd.h> unconditionally.
18222         * modules/xreadlink (Depends-on): Add unistd.
18223         * modules/xreadlink-with-size (Depends-on): Likewise.
18224
18225 2007-03-03  Bruno Haible  <bruno@clisp.org>
18226
18227         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
18228         extracted from gt_FUNC_SETENV.
18229         (gt_FUNC_SETENV): Remove macro.
18230         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
18231         remove gt_FUNC_SETENV.
18232
18233 2007-03-03  Bruno Haible  <bruno@clisp.org>
18234
18235         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
18236         ENABLE_RELOCATABLE here.
18237         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
18238
18239 2007-03-03  Bruno Haible  <bruno@clisp.org>
18240
18241         * modules/rbtreehash-list-tests (Depends-on): Add progname.
18242         * tests/test-rbtreehash_list.c: Include progname.h.
18243         (main): Call set_program_name.
18244
18245         * modules/rbtree-oset-tests (Depends-on): Add progname.
18246         * tests/test-rbtree_oset.c: Include progname.h.
18247         (main): Call set_program_name.
18248
18249         * modules/rbtree-list-tests (Depends-on): Add progname.
18250         * tests/test-rbtree_list.c: Include progname.h.
18251         (main): Call set_program_name.
18252
18253         * modules/linked-list-tests (Depends-on): Add progname.
18254         * tests/test-linked_list.c: Include progname.h.
18255         (main): Call set_program_name.
18256
18257 2007-03-03  Bruno Haible  <bruno@clisp.org>
18258
18259         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
18260         All uses of __restrict changed to _Restrict_.
18261         * lib/glob_.h (__restrict): Remove macro.
18262
18263 2007-03-02  Bruno Haible  <bruno@clisp.org>
18264
18265         * modules/gettext (configure.ac): Require gettext infrastructure
18266         from version 0.16.1.
18267
18268 2007-03-02  Bruno Haible  <bruno@clisp.org>
18269
18270         * modules/linkedhash-list-tests (Depends-on): Add progname.
18271         * tests/test-linkedhash_list.c: Include progname.h.
18272         (main): Call set_program_name.
18273
18274         * modules/carray-list-tests (Depends-on): Add progname.
18275         * tests/test-carray_list.c: Include progname.h.
18276         (main): Call set_program_name.
18277
18278         * modules/avltreehash-list-tests (Depends-on): Add progname.
18279         * tests/test-avltreehash_list.c: Include progname.h.
18280         (main): Call set_program_name.
18281
18282         * modules/avltree-oset-tests (Depends-on): Add progname.
18283         * tests/test-avltree_oset.c: Include progname.h.
18284         (main): Call set_program_name.
18285
18286         * modules/avltree-list-tests (Depends-on): Add progname.
18287         * tests/test-avltree_list.c: Include progname.h.
18288         (main): Call set_program_name.
18289
18290         * modules/array-oset-tests (Depends-on): Add progname.
18291         * tests/test-array_oset.c: Include progname.h.
18292         (main): Call set_program_name.
18293
18294         * modules/array-list-tests (Depends-on): Add progname.
18295         * tests/test-array_list.c: Include progname.h.
18296         (main): Call set_program_name.
18297
18298         * modules/argp-tests (Depends-on): Add progname.
18299         * tests/test-argp.c: Include argp.h first. Include progname.h.
18300         (main): Call set_program_name.
18301
18302 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
18303
18304         * doc/gnulib-tool.texi (Initial import): Reword description of
18305         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
18306         limited effect even if defined after the first system include.
18307
18308 2007-03-01  Bruno Haible  <bruno@clisp.org>
18309
18310         * build-aux/config.libpath: Update to libtool-1.5.22.
18311         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
18312
18313 2007-03-01  Bruno Haible  <bruno@clisp.org>
18314
18315         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
18316         foo_CFLAGS.
18317         Reported by Ralf Wildenhues.
18318
18319 2007-03-01  Bruno Haible  <bruno@clisp.org>
18320
18321         * build-aux/install-reloc: Remove object files left over by some
18322         compilers.
18323         Reported by Ralf Wildenhues.
18324
18325 2007-03-01  Bruno Haible  <bruno@clisp.org>
18326
18327         * build-aux/install-reloc: Break long lines.
18328
18329 2007-03-01  Bruno Haible  <bruno@clisp.org>
18330
18331         * doc/relocatable.texi: Document that it may not work on OpenBSD.
18332         Reported by Ralf Wildenhues.
18333
18334 2007-03-01  Bruno Haible  <bruno@clisp.org>
18335
18336         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
18337         include ordering constraints.
18338
18339 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
18340
18341         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
18342         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
18343         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
18344         as another example.
18345         * lib/time_.h: Fix misspelling.
18346         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
18347         Require gl_HEADER_TIME_H_DEFAULTS.
18348         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
18349         * m4/time_r.m4 (gl_TIME_R): Likewise.
18350         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
18351
18352 2007-03-01  Bruno Haible  <bruno@clisp.org>
18353
18354         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
18355         * m4/utimens.m4 (gl_UTIMENS): Likewise.
18356
18357 2007-03-01  Jim Meyering  <jim@meyering.net>
18358
18359         * modules/xreadlink (Maintainer): Add my name.
18360         * modules/xreadlink-with-size (Depends-on): Alphabetize.
18361
18362 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
18363             Bruno Haible  <bruno@clisp.org>
18364
18365         * build-aux/install-reloc: Compile also c-ctype.c.
18366         * build-aux/relocatable.sh.in: New file.
18367         * doc/relocatable.texi: New file.
18368         * doc/relocatable-maint.texi: New file.
18369         * doc/gnulib.texi: Include relocatable-maint.texi.
18370         * lib/progreloc.c: Include unistd.h unconditionally.
18371         * lib/relocwrapper.c: Include unistd.h unconditionally.
18372         Include c-ctype.h.
18373         (add_dotbin): Use c_tolower.
18374         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
18375         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
18376         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
18377         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
18378         to m4/relocatable-lib.m4.
18379         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
18380         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
18381         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
18382         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
18383         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
18384         * modules/relocatable: New file.
18385         * modules/relocatable-lib: New file.
18386         * modules/relocatable-script: New file.
18387
18388 2007-02-28  Bruno Haible  <bruno@clisp.org>
18389
18390         Import --enable-relocatable infrastructure.
18391         * build-aux/config.libpath: New file, from GNU gettext.
18392         * build-aux/install-reloc: New file, from GNU gettext.
18393         * build-aux/reloc-ldflags: New file, from GNU gettext.
18394         * lib/relocatable.h: New file, from GNU gettext.
18395         * lib/relocatable.c: New file, from GNU gettext.
18396         * lib/relocwrapper.c: New file, from GNU gettext.
18397         * m4/relocatable.m4: New file, from GNU gettext.
18398
18399 2007-02-28  Bruno Haible  <bruno@clisp.org>
18400
18401         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
18402
18403         * modules/xreadlink: New file, from GNU gettext with modifications.
18404         * lib/xreadlink.c: New file, from GNU gettext.
18405         * lib/xreadlink.h: Add comments.
18406         (xreadlink): New declaration.
18407
18408         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
18409         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
18410         lib/xreadlink-with-size.c.
18411         (configure.ac): Remove gl_XREADLINK invocation.
18412         (Makefile.am): Augment lib_SOURCES.
18413         * m4/xreadlink.m4: Remove file.
18414         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
18415         (xreadlink_with_size): Renamed from xreadink.
18416         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
18417         * modules/canonicalize (Depends-on): Replace xreadlink with
18418         xreadlink-with-size.
18419         * lib/canonicalize.c (canonicalize_filename_mode): Update.
18420
18421 2007-02-25  Jim Meyering  <jim@meyering.net>
18422
18423         * build-aux/announce-gen: When complaining about excess arguments,
18424         list them.
18425
18426 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
18427
18428         * README: Document signed integer overflow situation more
18429         accurately.
18430
18431 2007-02-25  Bruno Haible  <bruno@clisp.org>
18432
18433         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
18434         'a' or 'A' conversion.
18435
18436 2007-02-25  Bruno Haible  <bruno@clisp.org>
18437
18438         * modules/filename: Renamed from modules/pathname.
18439         (Files): Replace lib/pathname.h with lib/filename.h. Replace
18440         lib/concatpath.c with lib/concat-filename.c.
18441         (Makefile.am): Update.
18442         (Include): Replace pathname.h with filename.h.
18443         * lib/filename.h: Renamed from lib/pathname.h.
18444         (concatenated_filename): Renamed from concatenated_pathname.
18445         * lib/concat-filename.c: Renamed from lib/concatpath.c.
18446         (concatenated_filename): Renamed from concatenated_pathname.
18447         * lib/findprog.c: Include filename.h instead of pathname.h.
18448         (find_in_path): Update.
18449         * lib/javacomp.c: Include filename.h instead of pathname.h.
18450         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
18451         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
18452         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
18453         is_oldgcj_14_13_usable, is_javac_usable): Update.
18454         * lib/javaexec.c: Include filename.h instead of pathname.h.
18455         (execute_java_class): Update.
18456         * modules/findprog: Update.
18457         * modules/javacomp: Update.
18458         * modules/javaexec: Update.
18459         * MODULES.html.sh (File system functions): Add 'filename', remove
18460         'pathname'.
18461
18462 2007-02-25  Bruno Haible  <bruno@clisp.org>
18463
18464         * modules/printf-frexpl-tests: New file.
18465         * tests/test-printf-frexpl.c: New file.
18466
18467         * modules/printf-frexpl: New file.
18468         * lib/printf-frexpl.h: New file.
18469         * lib/printf-frexpl.c: New file.
18470         * m4/printf-frexpl.m4: New file.
18471
18472 2007-02-25  Bruno Haible  <bruno@clisp.org>
18473
18474         * modules/printf-frexp-tests: New file.
18475         * tests/test-printf-frexp.c: New file.
18476
18477         * modules/printf-frexp: New file.
18478         * lib/printf-frexp.h: New file.
18479         * lib/printf-frexp.c: New file.
18480         * m4/printf-frexp.m4: New file.
18481
18482 2007-02-25  Bruno Haible  <bruno@clisp.org>
18483
18484         Assume automake >= 1.10 for the tests.
18485         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
18486         * modules/arctwo-tests: Likewise.
18487         * modules/argp-tests: Likewise.
18488         * modules/avltree-list-tests: Likewise.
18489         * modules/avltree-oset-tests: Likewise.
18490         * modules/avltreehash-list-tests: Likewise.
18491         * modules/carray-list-tests: Likewise.
18492         * modules/crc-tests: Likewise.
18493         * modules/des-tests: Likewise.
18494         * modules/gc-arcfour-tests: Likewise.
18495         * modules/gc-arctwo-tests: Likewise.
18496         * modules/gc-des-tests: Likewise.
18497         * modules/gc-hmac-md5-tests: Likewise.
18498         * modules/gc-hmac-sha1-tests: Likewise.
18499         * modules/gc-md2-tests: Likewise.
18500         * modules/gc-md4-tests: Likewise.
18501         * modules/gc-md5-tests: Likewise.
18502         * modules/gc-pbkdf2-sha1-tests: Likewise.
18503         * modules/gc-rijndael-tests: Likewise.
18504         * modules/gc-sha1-tests: Likewise.
18505         * modules/gc-tests: Likewise.
18506         * modules/getaddrinfo-tests: Likewise.
18507         * modules/hmac-md5-tests: Likewise.
18508         * modules/hmac-sha1-tests: Likewise.
18509         * modules/linked-list-tests: Likewise.
18510         * modules/linkedhash-list-tests: Likewise.
18511         * modules/lock-tests: Likewise.
18512         * modules/md2-tests: Likewise.
18513         * modules/md4-tests: Likewise.
18514         * modules/md5-tests: Likewise.
18515         * modules/rbtree-list-tests: Likewise.
18516         * modules/rbtree-oset-tests: Likewise.
18517         * modules/rbtreehash-list-tests: Likewise.
18518         * modules/read-file-tests: Likewise.
18519         * modules/rijndael-tests: Likewise.
18520         * modules/stdint-tests: Likewise.
18521         * modules/tls-tests: Likewise.
18522
18523 2007-02-24  Bruno Haible  <bruno@clisp.org>
18524
18525         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
18526         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
18527         function; instead check whether isnan with a double argument links.
18528         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
18529         function; instead check whether isnan with a 'long double' argument
18530         links.
18531         Reported by Eric Blake <ebb9@byu.net>.
18532
18533 2007-02-24  Bruno Haible  <bruno@clisp.org>
18534
18535         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
18536         defined.
18537         * lib/isnanl.c: Remove all code. Just include isnan.c.
18538         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
18539
18540 2007-02-25  Jim Meyering  <jim@meyering.net>
18541
18542         Avoid conflicting types for 'unsetenv' on FreeBSD.
18543         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
18544         conflicting with FreeBSD's (5.0 and 6.1) function declaration
18545         in stdlib.h.
18546
18547 2007-02-24  Bruno Haible  <bruno@clisp.org>
18548
18549         * modules/isnanl-nolibm-tests: New file.
18550         * tests/test-isnanl.c: New file.
18551
18552         * modules/isnanl-nolibm: New file.
18553         * lib/isnanl.h: New file.
18554         * lib/isnanl.c: New file.
18555         * m4/isnanl.m4: New file.
18556
18557 2007-02-24  Bruno Haible  <bruno@clisp.org>
18558
18559         * modules/isnan-nolibm-tests: New file.
18560         * tests/test-isnan.c: New file.
18561
18562         * modules/isnan-nolibm: New file.
18563         * lib/isnan.h: New file.
18564         * lib/isnan.c: New file.
18565         * m4/isnan.m4: New file.
18566
18567 2007-02-24  Bruno Haible  <bruno@clisp.org>
18568
18569         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
18570         assume that an exponent fits in 20 bits.
18571
18572 2007-02-24  Jim Meyering  <jim@meyering.net>
18573
18574         * m4/regex.m4: Update the description of the configure-time option,
18575         --without-included-regex, to state accurately what the defaults are,
18576         and perhaps to give people an idea why using this option is risky.
18577
18578 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
18579
18580         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
18581         loops on small arguments.  This attempts to avoid the problem
18582         Bruno Haible reported for AIX 4.3.2 in
18583         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
18584
18585 2007-02-23  Bruno Haible  <bruno@clisp.org>
18586
18587         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
18588         Needed for help2man.
18589
18590 2007-02-23  Karl Berry  <karl@gnu.org>
18591
18592         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
18593         exists, foo.h should be cvs-ignored, not committed.
18594
18595 2007-02-23  Eric Blake  <ebb9@byu.net>
18596
18597         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
18598         * lib/stat-time.h (includes): Likewise.
18599         * lib/utimecmp.c (includes): Likewise.
18600         * lib/utimens.h (includes): Likewise.
18601         * lib/getdate.y (includes): Also include "timespec.h" for use
18602         internal to the module.
18603         * modules/utimens (Depends-on): Revert yesterday's patch.
18604         * modules/nanosleep (Depends-on): Add missing dependency.
18605
18606 2007-02-22  Bruno Haible  <bruno@clisp.org>
18607
18608         * lib/glob.c: Don't include getlogin_r.h.
18609
18610 2007-02-22  Jim Meyering  <jim@meyering.net>
18611
18612         * modules/utimens (Depends-on): Add timespec, required for
18613         utimens.h's inclusion of timespec.h.
18614
18615 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
18616
18617         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
18618         long unreadable paths in GNU/Linux.  Problem reported by Andreas
18619         Schwab in
18620         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
18621         I'll try to think of a better way to fix the Solaris problem.
18622
18623         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
18624         like glibc; on Solaris 10, it fails with errno == EINVAL.
18625         POSIX says the behavior is unspecified if the first argument is NULL,
18626         so play it safe and never pass NULL to the system getcwd.
18627
18628 2007-02-21  Jim Meyering  <jim@meyering.net>
18629
18630         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
18631         of gettimeofday.  It would conflict with the one now always
18632         provided via sys_time_.h.  Reported by Matthew Woehlke, as
18633         an IRIX 6.5 build failure.
18634
18635 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
18636
18637         Minor fixups to port to Solaris 10 with Sun C 5.8.
18638         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
18639         * modules/getcwd (Depends-on): Add dirfd.
18640         * lib/putenv.c (putenv): #undef it.
18641         (rpl_putenv): New decl.
18642         (malloc, free): Include <stdlib.h> rather than prototyping separately.
18643
18644 2007-02-20  Bruno Haible  <bruno@clisp.org>
18645
18646         * modules/stdio-tests: New file.
18647         * tests/test-stdio.c: New file.
18648
18649         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
18650         (Depends-on): Add stdio.
18651         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
18652         (Include): Use <stdio.h> instead of vsnprintf.h.
18653         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
18654         HAVE_DECL_VSNPRINTF.
18655         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
18656
18657         * modules/snprintf (Files): Remove lib/snprintf.h.
18658         (Depends-on): Add stdio.
18659         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
18660         (Include): Use <stdio.h> instead of snprintf.h.
18661         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
18662         HAVE_DECL_SNPRINTF.
18663         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
18664         * lib/getaddrinfo.c: Likewise.
18665
18666         * modules/stdio: New file.
18667         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
18668         * lib/snprintf.h: Remove file.
18669         * lib/vsnprintf.h: Remove file.
18670         * lib/.cppi-disable: Remove snprintf.h.
18671         * m4/stdio_h.m4: New file.
18672         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
18673
18674 2007-02-20  Jim Meyering  <jim@meyering.net>
18675
18676         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
18677         used by e.g., mingw.  From Bruno Haible.
18678
18679 2007-02-19  Bruno Haible  <bruno@clisp.org>
18680
18681         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
18682         warnings.
18683         Reported by Ben Pfaff <blp@cs.stanford.edu>.
18684
18685 2007-02-19  Bruno Haible  <bruno@clisp.org>
18686
18687         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
18688         from mingw users.
18689
18690 2007-02-19  Bruno Haible  <bruno@clisp.org>
18691
18692         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
18693         warnings.
18694         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
18695
18696 2007-02-19  Jim Meyering  <jim@meyering.net>
18697
18698         Don't use FD after a successful "fdopendir (fd)".
18699         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
18700         Reset it by calling dirfd on the just-obtained DIR*.
18701
18702         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
18703         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
18704
18705 2007-02-18  Bruno Haible  <bruno@clisp.org>
18706
18707         * lib/readlink.c: Include <unistd.h>.
18708         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
18709         HAVE_READLINK.
18710         * modules/readlink (Depends-on): Add unistd.
18711         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
18712         (Include): Add <unistd.h>.
18713
18714         * lib/getlogin_r.h: Remove file.
18715         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
18716         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
18717         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
18718         HAVE_DECL_GETLOGIN_R.
18719         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
18720         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
18721         (Include): Use <unistd.h> instead of getlogin_r.h.
18722
18723         * lib/getcwd.h: Remove file.
18724         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
18725         * lib/xgetcwd.c: Likewise.
18726         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
18727         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
18728         * modules/getcwd (Files): Remove lib/getcwd.h.
18729         (Depends-on): Add unistd.
18730         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
18731         (Include): Use <unistd.h> instad of getcwd.h.
18732
18733         * lib/ftruncate.c: Include <unistd.h> first.
18734         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
18735         Set HAVE_FTRUNCATE.
18736         * modules/ftruncate (Depends-on): Add unistd.
18737         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
18738
18739         * lib/fchdir.c: Include <unistd.h> first.
18740         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
18741         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
18742         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
18743         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
18744         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
18745
18746         * lib/dup2.c: Include <unistd.h> first.
18747         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
18748         HAVE_DUP2.
18749         * modules/dup2 (Depends-on): Add unistd.
18750         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
18751
18752         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
18753         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
18754         REPLACE_CHOWN. Don't define chown as a macro here.
18755         * modules/chown (Depends-on): Add unistd.
18756         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
18757
18758         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
18759         Add definition for GL_LINK_WARNING.
18760         (chown, dup2): New declarations.
18761         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
18762         link warning.
18763         (ftruncate): New declaration.
18764         (getcwd): New declaration, taken from old getcwd.h.
18765         (getlogin_r): New declaration, taken from old getlogin_r.h.
18766         (readlink): New declaration.
18767         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
18768         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
18769         (gl_PREREQ_UNISTD): Remove macro.
18770         (gl_UNISTD_MODULE_INDICATOR): New macro.
18771         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
18772         many new variables. Don't set UNISTD_H.
18773         * modules/unistd (Description): Change.
18774         (Depends-on): Add link-warning.
18775         (configure.ac): Update.
18776         (Makefile.am): Create unistd.h always. Substitute many new variables
18777         into it.
18778
18779 2007-02-18  Bruno Haible  <bruno@clisp.org>
18780
18781         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
18782         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
18783         HAVE_GETSUBOPT.
18784         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
18785         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
18786         * lib/getsubopt.h: Remove file.
18787         * modules/getsubopt (Files): Remove lib/getsubopt.h.
18788         (Depends-on): Add stdlib.
18789         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
18790         (Includes): Use <stdlib.h> instead of getsubopt.h.
18791         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
18792         Set HAVE_GETSUBOPT.
18793         * lib/getsubopt.c: Don't include getsubopt.h.
18794
18795 2007-02-18  Bruno Haible  <bruno@clisp.org>
18796
18797         * modules/fchdir (Depends-on): Add dup2.
18798
18799 2007-02-18  Bruno Haible  <bruno@clisp.org>
18800
18801         * lib/stdlib_.h: Handle glibc's special invocation convention
18802         specially.
18803
18804 2007-02-18  Bruno Haible  <bruno@clisp.org>
18805
18806         * modules/stdlib-tests: New file.
18807         * tests/test-stdlib.c: New file.
18808
18809         * modules/mkstemp (Files): Remove lib/mkstemp.h.
18810         (Depends-on): Add stdlib.
18811         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
18812         (Includes): Use <stdlib.h> instead of mkstemp.h.
18813         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
18814         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
18815         * lib/mkstemp.c: Don't include mkstemp.h.
18816         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
18817         * lib/stdlib--.h: Don't include mkstemp.h.
18818
18819         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
18820         (Depends-on): Add stdlib.
18821         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
18822         (Includes): Use <stdlib.h> instead of mkdtemp.h.
18823         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
18824         HAVE_MKDTEMP.
18825         * lib/mkdtemp.c: Don't include mkdtemp.h.
18826         * lib/clean-temp.c: Don't include mkdtemp.h.
18827
18828         * modules/exit (Files): Remove lib/exit.h.
18829         (Depends-on): Add stdlib.
18830         (Makefile.am): Remove lib_SOURCES.
18831         (Include): Use <stdlib.h> instead of exit.h.
18832         * lib/argmatch.c: Don't include exit.h.
18833         * lib/execute.c: Likewise.
18834         * lib/pagealign_alloc.c: Likewise.
18835         * lib/pipe.c: Likewise.
18836         * lib/wait-process.c: Likewise.
18837         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
18838         * lib/exitfail.c: Likewise.
18839         * lib/savewd.c: Likewise.
18840         * lib/xsetenv.c: Likewise.
18841
18842         * modules/stdlib: New file.
18843         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
18844         and extra comments about mkstemp().
18845         * lib/exit.h: Remove file.
18846         * lib/mkdtemp.h: Remove file.
18847         * lib/mkstemp.h: Remove file.
18848         * m4/stdlib_h.m4: New file.
18849         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
18850
18851 2007-02-18  Bruno Haible  <bruno@clisp.org>
18852
18853         * modules/math-tests: New file.
18854         * tests/test-math.c: New file.
18855
18856         * modules/math: New file.
18857         * modules/mathl (Files): Remove lib/mathl.h.
18858         (Depends-on): Add math.
18859         (Makefile.am): Don't mention mathl.h.
18860         (Include): Use <math.h> instead of mathl.h.
18861         * lib/math_.h: New file.
18862         * lib/mathl.h: Remove file.
18863         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
18864         mathl.h.
18865         * lib/asinl.c: Likewise.
18866         * lib/atanl.c: Likewise.
18867         * lib/ceill.c: Likewise.
18868         * lib/cosl.c: Likewise.
18869         * lib/expl.c: Likewise.
18870         * lib/floorl.c: Likewise.
18871         * lib/frexpl.c: Likewise.
18872         * lib/ldexpl.c: Likewise.
18873         * lib/logl.c: Likewise.
18874         * lib/sincosl.c: Likewise.
18875         * lib/sinl.c: Likewise.
18876         * lib/sqrtl.c: Likewise.
18877         * lib/tanl.c: Likewise.
18878         * lib/trigl.c: Likewise.
18879         * m4/math_h.m4: New file.
18880         * MODULES.html.sh (Mathematics): Add math.
18881
18882 2007-02-17  Bruno Haible  <bruno@clisp.org>
18883
18884         * modules/wctype-tests: New file.
18885         * tests/test-wctype.c: New file.
18886
18887         * modules/wchar-tests: New file.
18888         * tests/test-wchar.c: New file.
18889
18890         * modules/unistd-tests: New file.
18891         * tests/test-unistd.c: New file.
18892
18893         * modules/time-tests: New file.
18894         * tests/test-time.c: New file.
18895
18896         * modules/sysexits-tests: New file.
18897         * tests/test-sysexits.c: New file.
18898
18899         * modules/sys_time-tests: New file.
18900         * tests/test-sys_time.c: New file.
18901
18902         * modules/sys_stat-tests: New file.
18903         * tests/test-sys_stat.c: New file.
18904
18905         * modules/sys_socket-tests: New file.
18906         * tests/test-sys_socket.c: New file.
18907
18908         * modules/sys_select-tests: New file.
18909         * tests/test-sys_select.c: New file.
18910
18911         * modules/string-tests: New file.
18912         * tests/test-string.c: New file.
18913
18914         * modules/stdbool-tests: New file.
18915         * tests/test-stdbool.c: New file.
18916
18917         * modules/netinet_in-tests: New file.
18918         * tests/test-netinet_in.c: New file.
18919
18920         * modules/inttypes-tests: New file.
18921         * tests/test-inttypes.c: New file.
18922
18923         * modules/fcntl-tests: New file.
18924         * tests/test-fcntl.c: New file.
18925
18926         * modules/byteswap-tests: New file.
18927         * tests/test-byteswap.c: New file.
18928
18929         * modules/arpa_inet-tests: New file.
18930         * tests/test-arpa_inet.c: New file.
18931
18932 2007-02-17  Bruno Haible  <bruno@clisp.org>
18933
18934         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
18935         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
18936         if the corresponding module is not enabled. Emit link warnings if
18937         the function is used nevertheless.
18938         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
18939         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
18940         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
18941         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
18942         * modules/inttypes (Depends-on): Add link-warning.
18943         (Makefile.am): Copy the contents of build-aux/link-warning.h into
18944         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
18945         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
18946         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
18947         * modules/imaxdiv (configure.ac): Likewise.
18948         * modules/strtoimax (configure.ac): Likewise.
18949         * modules/strtoumax (configure.ac): Likewise.
18950
18951 2007-02-17  Bruno Haible  <bruno@clisp.org>
18952
18953         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
18954         gl_STRING_MODULE_INDICATOR_DEFAULTS.
18955         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
18956         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
18957
18958 2007-02-17  Bruno Haible  <bruno@clisp.org>
18959
18960         * modules/link-warning: New file.
18961         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
18962         * lib/string_.h (GL_LINK_WARNING): Remove definition.
18963         * modules/string (Depends-on): Add link-warning.
18964         (Makefile.am): Copy the contents of build-aux/link-warning.h into
18965         string.h.
18966         * MODULES.html.sh (Support for building libraries and executables): Add
18967         link-warning.
18968
18969 2007-02-17  Bruno Haible  <bruno@clisp.org>
18970
18971         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
18972         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
18973         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
18974         long lines.
18975
18976 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
18977             Bruno Haible  <bruno@clisp.org>
18978
18979         * modules/tmpfile: New file.
18980         * lib/tmpfile.c: New file.
18981         * m4/tmpfile.m4: New file.
18982         * MODULES.html.sh (func_all_modules): New section "Input/output".
18983
18984 2007-02-15  Bruno Haible  <bruno@clisp.org>
18985
18986         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
18987         (supports_delete_on_close): New function.
18988         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
18989
18990 2007-02-14  Bruno Haible  <bruno@clisp.org>
18991
18992         * modules/mbspcasecmp-tests: New file.
18993         * tests/test-mbspcasecmp.sh: New file.
18994         * tests/test-mbspcasecmp.c: New file.
18995
18996         New module mbspcasecmp.
18997         * modules/mbspcasecmp: New file.
18998         * lib/mbspcasecmp.c: New file.
18999         * lib/string_.h (strncasecmp): Change warning message.
19000         (mbspcasecmp): New declaration.
19001         * m4/mbspcasecmp.m4: New file.
19002         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
19003         GNULIB_MBSPCASECMP.
19004         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
19005         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
19006
19007 2007-02-14  Bruno Haible  <bruno@clisp.org>
19008
19009         * modules/mbsncasecmp-tests: New file.
19010         * tests/test-mbsncasecmp.sh: New file.
19011         * tests/test-mbsncasecmp.c: New file.
19012
19013         New module mbsncasecmp.
19014         * modules/mbsncasecmp: New file.
19015         * lib/mbsncasecmp.c: New file.
19016         * lib/string_.h (mbsncasecmp): New declaration.
19017         * m4/mbsncasecmp.m4: New file.
19018         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
19019         GNULIB_MBSNCASECMP.
19020         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
19021         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
19022
19023 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
19024
19025         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
19026         Verify that it doesn't overlap with our flags.
19027         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
19028         do not have the desired effect in multibyte locales; instead, use
19029         mbscasecmp.
19030         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
19031         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
19032         we don't require GNU fnmatch ourselves (if our users require it, they
19033         should do so explicitly).
19034
19035         Fix regex code so it doesn't rely on strcasecmp.
19036         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
19037         Otherwise, include gnulib's langinfo.h.
19038         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
19039         undesirable behavior in non-C locales.  Instead, rely on localecharset.
19040         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
19041         * modules/regex (FILES): Remove m4/codeset.m4.
19042         (Depends-on): Add localcharset.  Remove strcase.
19043
19044 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19045
19046         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
19047         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
19048
19049 2007-02-13  Bruno Haible  <bruno@clisp.org>
19050
19051         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
19052         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19053
19054 2007-02-12  Bruno Haible  <bruno@clisp.org>
19055
19056         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
19057         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
19058         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
19059         time warning rather than a link error.
19060
19061 2007-02-12  Bruno Haible  <bruno@clisp.org>
19062
19063         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
19064         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
19065         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
19066
19067 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
19068
19069         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
19070         args, not 2.
19071
19072 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
19073
19074         New module 'time', so that apps can include <time.h> as per
19075         POSIX and GNU instead of separate include files like time_r.h
19076         and timegm.h.  This implementation tries out a simpler approach
19077         for replacing decls in standard include files (as compared to
19078         the string module), somewhat as an experiment.
19079
19080         * config/srclist.txt: Comment out mktime.c for now.
19081         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
19082         since it doesn't apply any more.  Use generic wording instead.
19083         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
19084         'time'.
19085         * lib/time_.h, m4/time_h.m4, modules/time: New files.
19086         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
19087         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
19088         Don't include <sys/types.h>; no longer needed since we assume C89.
19089         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
19090         * lib/strftime.c: Likewise.
19091         * lib/time_r.c: Likewise.
19092         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
19093         * lib/nanosleep.c: Include <time.h> first, to check interface.
19094         * lib/strptime.c: Likewise.
19095         * lib/time_r.c: Likewise.
19096         * lib/timegm.c: Likewise.
19097         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
19098         needed.
19099         * lib/timegm.c: Don't include timegm.h; no longer needed.
19100         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
19101         time.h now handles any problems in that area.
19102         (struct timespec, nanosleep): Remove; time.h now arranges for these.
19103         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
19104         that time.h defines struct timespec.
19105         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
19106         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
19107         handles that.
19108         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
19109         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
19110         needed.  Set REPLACE_LOCALTIME.
19111         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
19112         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
19113         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
19114         nanosleep; time_h.m4 now does that.  Don't require
19115         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
19116         module handles this now.
19117         * modules/getdate (Depends-on): Remove timespec.  Add time.
19118         * modules/nanosleep (Depends-on): Likewise.
19119         * modules/stat-time (Depends-on): Likewise.
19120         * modules/nanosleep (Include): Include time.h, not timespec.h.
19121         * modules/strptime (Files): Remove lib/strptime.h.
19122         (Depends-on): Add extensions, time.
19123         (Include): Include time.h, not strptime.h.
19124         * modules/time_r (Files): Remove lib/time_r.h.
19125         (Depends-on): Add time.
19126         (Include): Include time.h, not time_r.h.
19127         * modules/timegm: Likewise.
19128         * modules/timespec (Description): Now does timespec-related decls
19129         of our own, instead of struct timespec itself.
19130         (Depends-on): Add time; remove extensions.
19131         (Maintainer): Add self.
19132         * modules/utimecmp (Depends-on): Add time; remove timespec.
19133         * modules/utimens (Depends-on): Likewise.
19134         * modules/xnanosleep (Depends-on): Likewise.
19135
19136 2007-02-11  Bruno Haible  <bruno@clisp.org>
19137
19138         * lib/c-strstr.c: Include allocsa.h.
19139         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
19140         * lib/c-strcasestr.c: Include allocsa.h.
19141         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
19142         * lib/strcasestr.c: Include allocsa.h.
19143         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
19144         * lib/mbsstr.c: Include allocsa.h.
19145         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
19146         allocsa/freesa instead of malloc/free.
19147         * lib/mbscasestr.c: Include allocsa.h.
19148         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
19149         allocsa/freesa instead of malloc/free.
19150         * modules/c-strstr (Depends-on): Add allocsa.
19151         * modules/c-strcasestr (Depends-on): Likewise.
19152         * modules/strcasestr (Depends-on): Likewise.
19153         * modules/mbsstr (Depends-on): Likewise.
19154         * modules/mbscasestr (Depends-on): Likewise.
19155
19156 2007-02-11  Bruno Haible  <bruno@clisp.org>
19157
19158         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
19159
19160         * modules/mbsspn-tests: New file.
19161         * tests/test-mbsspn.sh: New file.
19162         * tests/test-mbsspn.c: New file.
19163
19164 2007-02-11  Bruno Haible  <bruno@clisp.org>
19165
19166         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
19167
19168         * modules/mbspbrk-tests: New file.
19169         * tests/test-mbspbrk.sh: New file.
19170         * tests/test-mbspbrk.c: New file.
19171
19172 2007-02-11  Bruno Haible  <bruno@clisp.org>
19173
19174         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
19175         unneeded cast.
19176
19177         * modules/mbscspn-tests: New file.
19178         * tests/test-mbscspn.sh: New file.
19179         * tests/test-mbscspn.c: New file.
19180
19181 2007-02-11  Bruno Haible  <bruno@clisp.org>
19182
19183         * modules/mbscasecmp-tests: New file.
19184         * tests/test-mbscasecmp.sh: New file.
19185         * tests/test-mbscasecmp.c: New file.
19186
19187 2007-02-11  Bruno Haible  <bruno@clisp.org>
19188
19189         Ensure O(n) worst-case complexity of mbscasestr.
19190         * lib/mbscasestr.c: Include stdbool.h.
19191         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
19192         functions.
19193         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
19194         the bookkeeping indicates that it's worth it.
19195         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
19196
19197         * modules/mbscasestr-tests: New file.
19198         * tests/test-mbscasestr1.c: New file.
19199         * tests/test-mbscasestr2.sh: New file.
19200         * tests/test-mbscasestr2.c: New file.
19201         * tests/test-mbscasestr3.sh: New file.
19202         * tests/test-mbscasestr3.c: New file.
19203         * tests/test-mbscasestr4.sh: New file.
19204         * tests/test-mbscasestr4.c: New file.
19205         * m4/locale-tr.m4: New file.
19206
19207 2007-02-11  Bruno Haible  <bruno@clisp.org>
19208
19209         Ensure O(n) worst-case complexity of mbsstr.
19210         * lib/mbsstr.c: Include stdbool.h.
19211         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
19212         functions.
19213         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
19214         bookkeeping indicates that it's worth it.
19215         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
19216
19217         * modules/mbsstr-tests: New file.
19218         * tests/test-mbsstr1.c: New file.
19219         * tests/test-mbsstr2.sh: New file.
19220         * tests/test-mbsstr2.c: New file.
19221         * tests/test-mbsstr3.sh: New file.
19222         * tests/test-mbsstr3.c: New file.
19223         * m4/locale-fr.m4: New file.
19224
19225 2007-02-11  Bruno Haible  <bruno@clisp.org>
19226
19227         * lib/mbsrchr.c (mbsrchr): Fix bug.
19228
19229         * modules/mbsrchr-tests: New file.
19230         * tests/test-mbsrchr.sh: New file.
19231         * tests/test-mbsrchr.c: New file.
19232
19233 2007-02-11  Bruno Haible  <bruno@clisp.org>
19234
19235         * lib/mbschr.c (mbschr): Fix bug.
19236
19237         * modules/mbschr-tests: New file.
19238         * tests/test-mbschr.sh: New file.
19239         * tests/test-mbschr.c: New file.
19240         * m4/locale-zh.m4: New file.
19241
19242 2007-02-11  Bruno Haible  <bruno@clisp.org>
19243
19244         Support for copying multibyte string iterators.
19245         * lib/mbiter.h: Include <string.h>.
19246         (mbiter_multi_copy): New function.
19247         (mbi_copy): New macro.
19248         * lib/mbuiter.h: Include <string.h>.
19249         (mbuiter_multi_copy): New function.
19250         (mbui_copy): New macro.
19251
19252 2007-02-11  Bruno Haible  <bruno@clisp.org>
19253
19254         New module mbslen.
19255         * modules/mbslen: New file.
19256         * lib/mbslen.c: New file.
19257         * lib/string_.h (mbslen): New declaration.
19258         * m4/mbslen.m4: New file.
19259         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
19260         GNULIB_MBSLEN.
19261         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
19262         * MODULES.html.sh (Internationalization functions): Add mbslen.
19263
19264 2007-02-11  Bruno Haible  <bruno@clisp.org>
19265
19266         Ensure O(n) worst-case complexity of strcasestr substitute.
19267         * lib/strcasestr.c: Include stdbool.h.
19268         (knuth_morris_pratt): New function.
19269         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
19270         bookkeeping indicates that it's worth it.
19271         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
19272
19273         * modules/strcasestr-tests: New file.
19274         * tests/test-strcasestr.c: New file.
19275
19276 2007-02-11  Bruno Haible  <bruno@clisp.org>
19277
19278         Ensure O(n) worst-case complexity of c_strcasestr.
19279         * lib/c-strcasestr.c: Include stdbool.h, string.h.
19280         (knuth_morris_pratt): New function.
19281         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
19282         the bookkeeping indicates that it's worth it.
19283         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
19284
19285         * modules/c-strcasestr-tests: New file.
19286         * tests/test-c-strcasestr.c: New file.
19287
19288 2007-02-11  Bruno Haible  <bruno@clisp.org>
19289
19290         Ensure O(n) worst-case complexity of c_strstr.
19291         * lib/c-strstr.c: Include stdbool.h, string.h.
19292         (knuth_morris_pratt): New function.
19293         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
19294         bookkeeping indicates that it's worth it.
19295         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
19296
19297         * lib/c-strstr.c: Complete rewrite for maintainability.
19298
19299         * modules/c-strstr-tests: New file.
19300         * tests/test-c-strstr.c: New file.
19301
19302 2007-02-11  Bruno Haible  <bruno@clisp.org>
19303
19304         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
19305         5.2.1 and earlier, whereby \055 was treated just like the range
19306         delimiter '-'.
19307         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
19308
19309 2007-02-08  Bruno Haible  <bruno@clisp.org>
19310
19311         * modules/regex (Depends-on): Add stdbool.
19312         Reported by Dalibor Topic <robilad@kaffe.org>.
19313
19314 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
19315
19316         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
19317         Prefer returning from main to exiting from it.
19318         Remove unnecessary parens after sizeof.
19319
19320 2007-02-05  Bruno Haible  <bruno@clisp.org>
19321
19322         New module mbssep.
19323         * modules/mbssep: New file.
19324         * lib/mbssep.c: New file.
19325         * lib/string_.h (strsep): Add a conditional link warning.
19326         (mbssep): New declaration.
19327         * m4/mbssep.m4: New file.
19328         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
19329         GNULIB_MBSSEP.
19330         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
19331         * MODULES.html.sh (Internationalization functions): Add mbssep.
19332
19333 2007-02-05  Bruno Haible  <bruno@clisp.org>
19334
19335         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
19336         Optimize search in case of 1 delimiter.
19337
19338 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
19339
19340         * lib/acl.h: Include sys/types.h before sys/acl.h.
19341
19342 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
19343
19344         Merge upstream fix for glibc bugzilla #3957:
19345
19346         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
19347
19348         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
19349         bit for RE_HAT_LISTS_NOT_NEWLINE.
19350         (build_charclass_op): Remove bogus comment.
19351
19352 2007-02-05  Simon Josefsson  <simon@josefsson.org>
19353
19354         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
19355
19356 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
19357
19358         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
19359         * lib/memmem.c [!defined _LIBC]: Include config.h.
19360
19361 2007-02-04  Bruno Haible  <bruno@clisp.org>
19362
19363         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
19364         warning message.
19365
19366 2007-02-04  Bruno Haible  <bruno@clisp.org>
19367
19368         New module mbstok_r.
19369         * modules/mbstok_r: New file.
19370         * lib/mbstok_r.c: New file.
19371         * lib/string_.h (strtok_r): Change argument names to match the
19372         comments. Add a conditional link warning.
19373         (mbstok_r): New declaration.
19374         * m4/mbstok_r.m4: New file.
19375         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
19376         GNULIB_MBSTOK_R.
19377         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
19378         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
19379
19380 2007-02-04  Bruno Haible  <bruno@clisp.org>
19381
19382         New module mbsspn.
19383         * modules/mbsspn: New file.
19384         * lib/mbsspn.c: New file.
19385         * lib/string_.h (strspn): Add a conditional link warning.
19386         (mbsspn): New declaration.
19387         * m4/mbsspn.m4: New file.
19388         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
19389         GNULIB_MBSSPN.
19390         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
19391         * MODULES.html.sh (Internationalization functions): Add mbsspn.
19392
19393 2007-02-04  Bruno Haible  <bruno@clisp.org>
19394
19395         New module mbspbrk.
19396         * modules/mbspbrk: New file.
19397         * lib/mbspbrk.c: New file.
19398         * lib/string_.h (strpbrk): Add a conditional link warning.
19399         (mbspbrk): New declaration.
19400         * m4/mbspbrk.m4: New file.
19401         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
19402         GNULIB_MBSPBRK.
19403         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
19404         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
19405
19406 2007-02-04  Bruno Haible  <bruno@clisp.org>
19407
19408         New module mbscspn.
19409         * modules/mbscspn: New file.
19410         * lib/mbscspn.c: New file.
19411         * lib/string_.h (strcspn): Add a conditional link warning.
19412         (mbscspn): New declaration.
19413         * m4/mbscspn.m4: New file.
19414         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
19415         GNULIB_MBSCSPN.
19416         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
19417         * MODULES.html.sh (Internationalization functions): Add mbscspn.
19418
19419 2007-02-04  Bruno Haible  <bruno@clisp.org>
19420
19421         New module mbscasestr, reduced goal of strcasestr.
19422         * modules/mbscasestr: New file.
19423         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
19424         (mbscasestr): Renamed from strcasestr.
19425         * lib/strcasestr.c: Don't include mbuiter.h.
19426         (strcasestr): Remove support for multibyte locales.
19427         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
19428         Change the conditional link warning.
19429         (mbscasestr): New declaration.
19430         * m4/mbscasestr.m4: New file.
19431         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
19432         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
19433         REPLACE_STRCASESTR.
19434         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
19435         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
19436         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
19437         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
19438         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
19439         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
19440         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
19441         (Depends-on): Remove mbuiter.
19442         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
19443
19444 2007-02-04  Bruno Haible  <bruno@clisp.org>
19445
19446         Simplify handling of strncasecmp.
19447         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
19448         the conditional link warning.
19449         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
19450         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
19451         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
19452         * modules/strcase (configure.ac): Don't invoke
19453         gl_STRING_MODULE_INDICATOR.
19454         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
19455
19456 2007-02-04  Bruno Haible  <bruno@clisp.org>
19457
19458         New module mbscasecmp, reduced goal of strcasecmp.
19459         * modules/mbscasecmp: New file.
19460         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
19461         (mbscasecmp): Renamed from strcasecmp.
19462         * lib/strcasecmp.c: Don't include mbuiter.h.
19463         (strcasecmp): Remove support for multibyte locales.
19464         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
19465         Change the conditional link warning.
19466         (mbscasecmp): New declaration.
19467         * m4/mbscasecmp.m4: New file.
19468         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
19469         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
19470         REPLACE_STRCASECMP.
19471         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
19472         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
19473         GNULIB_MBSCASECMP.
19474         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
19475         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
19476         * modules/strcase (Files): Remove m4/mbrtowc.m4.
19477         (Depends-on): Remove mbuiter.
19478         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
19479
19480 2007-02-04  Bruno Haible  <bruno@clisp.org>
19481
19482         New module mbsstr. Remove module strstr.
19483         * modules/mbsstr: New file.
19484         * modules/strstr: Remove file.
19485         * lib/mbsstr.c: Renamed from lib/strstr.c.
19486         (mbsstr): Renamed from strstr.
19487         * lib/string_.h (strstr): Remove declaration. Change the conditional
19488         link warning.
19489         (mbsstr): New declaration.
19490         * m4/mbsstr.m4: New file.
19491         * m4/strstr.m4: Remove file.
19492         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
19493         REPLACE_STRSTR.
19494         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
19495         Don't initialize GNULIB_STRSTR.
19496         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
19497         substitute GNULIB_STRSTR and REPLACE_STRSTR.
19498         * MODULES.html.sh (Internationalization functions): Add mbsstr.
19499         (Support for systems lacking ANSI C 89): Remove strstr.
19500
19501 2007-02-04  Bruno Haible  <bruno@clisp.org>
19502
19503         New module mbsrchr.
19504         * modules/mbsrchr: New file.
19505         * lib/mbsrchr.c: New file.
19506         * lib/string_.h (strrchr): Add a conditional link warning.
19507         (mbsrchr): New declaration.
19508         * m4/mbsrchr.m4: New file.
19509         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
19510         GNULIB_MBSRCHR.
19511         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
19512         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
19513
19514 2007-02-04  Bruno Haible  <bruno@clisp.org>
19515
19516         New module mbschr.
19517         * modules/mbschr: New file.
19518         * lib/mbschr.c: New file.
19519         * lib/string_.h (strchr): Add a conditional link warning.
19520         (mbschr): New declaration.
19521         * m4/mbschr.m4: New file.
19522         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
19523         GNULIB_MBSCHR.
19524         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
19525         * MODULES.html.sh (Internationalization functions): Add mbschr.
19526
19527 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
19528
19529         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
19530
19531         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
19532
19533 2007-02-04  Bruno Haible  <bruno@clisp.org>
19534
19535         New module description section 'configure.ac-early'.
19536         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
19537         (func_get_autoconf_early_snippet): New function.
19538         (func_import, func_create_testdir): Use it. Remove special cases for
19539         modules 'extensions' and 'lock'.
19540         * modules/extensions (configure.ac-early): Require
19541         gl_USE_SYSTEM_EXTENSIONS.
19542         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
19543
19544 2007-02-04  Bruno Haible  <bruno@clisp.org>
19545
19546         Make use of gcj-4.3's -fsource and -ftarget option.
19547         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
19548         and if so try the options -fsource and -ftarget.
19549         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
19550         source_version, ftarget_option, target_version arguments.
19551         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
19552         (is_envjavac_oldgcj_14_14_usable): Renamed from
19553         is_envjavac_gcj_14_14_usable.
19554         (is_envjavac_oldgcj_14_13_usable): Renamed from
19555         is_envjavac_gcj_14_13_usable.
19556         (is_gcj_present): Update.
19557         (is_gcj_43, is_gcj43_usable): New functions.
19558         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
19559         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
19560         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
19561         try the options -fsource and -ftarget.
19562
19563 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
19564
19565         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
19566         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
19567         larger value.
19568
19569 2007-02-03  Jim Meyering  <jim@meyering.net>
19570
19571         Give tools a better chance to allocate space for very large buffers.
19572         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
19573
19574         Make pwd and readlink work also when run with an unreadable parent dir
19575         on systems with openat support.
19576         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
19577         provided getcwd function, even when we have openat support.
19578         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
19579
19580 2007-02-02  Bruno Haible  <bruno@clisp.org>
19581
19582         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
19583         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
19584         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
19585         portability problems if one of these functions is only used on specific
19586         platforms.
19587         Reported by Paul Eggert.
19588
19589 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
19590
19591         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
19592         is causing more trouble than it's curing.
19593         * lib/regex_internal.h (__mempcpy): Remove.
19594         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
19595         (and make the code a tad smaller to boot).
19596         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
19597
19598 2007-02-02  Jim Meyering  <jim@meyering.net>
19599
19600         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
19601         section, not in the Makefile.am: one.
19602
19603 2007-02-02  Eric Blake  <ebb9@byu.net>
19604
19605         * lib/strchrnul.c: Always include config.h first.
19606
19607         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
19608         gnulib strstr is not necessary here.
19609
19610 2007-02-02  Simon Josefsson  <simon@josefsson.org>
19611
19612         * m4/socklen.m4: Fix typo.
19613
19614 2007-02-02  Eric Blake  <ebb9@byu.net>
19615
19616         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
19617         * modules/netinet_in (Makefile.am): Likewise.
19618
19619 2007-02-01  Bruno Haible  <bruno@clisp.org>
19620
19621         * lib/string_.h (GL_LINK_WARNING): New macro.
19622         (strcasecmp, strstr, strcasestr): If provided by the system,
19623         conditionally define as a macro that leads to a warning instead of to
19624         an error.
19625         (strncasecmp): Conditionally define as a macro that leads to a warning.
19626
19627 2007-02-01  Karl Berry  <karl@gnu.org>
19628
19629         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
19630
19631 2007-02-01  Bruno Haible  <bruno@clisp.org>
19632
19633         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
19634         renamings.
19635
19636 2007-02-01  Eric Blake  <ebb9@byu.net>
19637
19638         * modules/regex (Depends-on): Revert dependence on mempcpy.
19639         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
19640         module's definition of mempcpy.
19641         Reported by Paul Eggert.
19642
19643 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
19644
19645         * lib/string_.h: If the gnulib module XYZ is not present, undefine
19646         the symbol XYZ before redefining it.  This fixes a problem with
19647         programs that don't use XYZ, when compiled on systems that define
19648         XYZ to something else.
19649
19650 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
19651
19652         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
19653         occurs when "mkdir -m foo" creates a setgid directory that is (1)
19654         writeable to group or other and (2) is intended to have a special
19655         mode bit that is set or cleared.  In such a case, the directory
19656         should be neither group- nor other-writeable until the special
19657         mode bits are right.
19658
19659 2007-01-31  Eric Blake  <ebb9@byu.net>
19660
19661         * modules/mountlist (Depends-on): Add strstr.
19662
19663         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
19664         bug.
19665         * modules/string (Makefile.am): Remove redundant replacement.
19666         * modules/regex (Depends-on): Add mempcpy.
19667
19668 2007-01-31  Bruno Haible  <bruno@clisp.org>
19669
19670         New module description field 'Link'.
19671         * gnulib-tool (func_usage): Document --extract-link-directive.
19672         (sed_extract_prog): Recognize 'Link' directive.
19673         (func_get_link_directive): New function.
19674         (func_import): Show summary of link directives.
19675         Handle --extract-link-directive option.
19676         * modules/acl (Link): New section.
19677         * modules/clock-time (Link): New section.
19678         * modules/euidaccess (Link): New section.
19679         * modules/gettext (Link): New section.
19680         * modules/iconv (Link): New section.
19681         * modules/lock (Link): New section.
19682         * modules/nanosleep (Link): New section.
19683         * modules/readline (Link): New section.
19684
19685 2007-01-27  Bruno Haible  <bruno@clisp.org>
19686
19687         Enforce the use of gnulib modules for unportable <string.h> functions.
19688         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
19689         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
19690         (gl_HEADER_STRING_H_BODY): Require it.
19691         * lib/string_.h: If the gnulib module XYZ is not present, redefine
19692         the symbol XYZ to one that gives a link error.
19693         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
19694         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
19695         * modules/mempcpy (configure.ac): Likewise.
19696         * modules/memrchr (configure.ac): Likewise.
19697         * modules/stpcpy (configure.ac): Likewise.
19698         * modules/stpncpy (configure.ac): Likewise.
19699         * modules/strcase (configure.ac): Likewise.
19700         * modules/strcasestr (configure.ac): Likewise.
19701         * modules/strchrnul (configure.ac): Likewise.
19702         * modules/strdup (configure.ac): Likewise.
19703         * modules/strndup (configure.ac): Likewise.
19704         * modules/strnlen (configure.ac): Likewise.
19705         * modules/strpbrk (configure.ac): Likewise.
19706         * modules/strsep (configure.ac): Likewise.
19707         * modules/strstr (configure.ac): Likewise.
19708         * modules/strtok_r (configure.ac): Likewise.
19709
19710 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
19711
19712         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
19713
19714 2007-01-30  Jim Meyering  <jim@meyering.net>
19715
19716         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
19717
19718 2007-01-29  Bruno Haible  <bruno@clisp.org>
19719
19720         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
19721         * lib/execute.c: Likewise.
19722         * lib/pipe.c: Likewise.
19723         * lib/printf-args.h: Likewise.
19724         * lib/printf-args.c: Likewise.
19725         * lib/printf-parse.c: Likewise.
19726         * lib/vasnprintf.c: Likewise.
19727
19728 2007-01-29  Eric Blake  <ebb9@byu.net>
19729
19730         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
19731         declaration.
19732
19733 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
19734
19735         * lib/strptime.h (strptime): Use 'restrict' for args where
19736         POSIX requires this.
19737         * lib/strptime.c (strptime): Likewise.
19738         Change license notice from LGPL to GPL, since gnulib-tool will
19739         change this as needed.
19740         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
19741         defined.
19742         Include "strptime.h" first, to check interface.
19743         Do not #undef _LIBC and _NL_CURRENT.
19744         Do not include <stdlib.h>; no longer needed.
19745         Include "time_r.h" and declare ptime_locale_status
19746         only if _LIBC is not defined.
19747         (__P): Remove unused macro.
19748         (match_string): Bring back glibc version, but use it only if _LIBC
19749         is defined.
19750         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
19751         Remove unnecessary assertion and abort() call.
19752         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
19753         * m4/strptime.m4: Fix serial number comment.
19754         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
19755         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
19756         (Depends-on): Add time_r.
19757
19758 2007-01-29  Bruno Haible  <bruno@clisp.org>
19759
19760         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
19761         strptime.
19762         * modules/strptime (Depends-on): Add stdbool.
19763         * lib/strptime.h: Include <time.h> always. Add comments.
19764
19765 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
19766
19767         * modules/strptime: New file.
19768         * lib/strptime.h: New file.
19769         * lib/strptime.c: New file.
19770         * m4/strptime.m4: New file.
19771
19772 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
19773
19774         * MODULES.html.sh: New module mpsort.
19775         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
19776
19777         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
19778         a circularity problem with HP-UX ia64 reported by Bob Proulx in
19779         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
19780         All uses changed.
19781         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
19782         All uses changed.
19783         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
19784         to _Restrict_.
19785         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
19786         the parameter matches the prototype.
19787
19788 2007-01-28  Jim Meyering  <jim@meyering.net>
19789
19790         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
19791         sys/time.h here, reverting that part of the previous patch:
19792         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
19793
19794 2007-01-28  Bruno Haible  <bruno@clisp.org>
19795
19796         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
19797         value of $(SYS_TIME_H).
19798         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
19799         remove it conditionally, too. [added by Jim Meyering]
19800         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
19801         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
19802         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
19803         GETTIMEOFDAY_REPLACEMENT to 1.
19804
19805 2007-01-28  Bruno Haible  <bruno@clisp.org>
19806
19807         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
19808         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
19809         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
19810         Set UNISTD_H instead of UNISTD_H2.
19811         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
19812
19813 2007-01-28  Bruno Haible  <bruno@clisp.org>
19814
19815         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
19816         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
19817
19818 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19819
19820         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
19821         (func_create_testdir): Ensure C locale for `grep' and `tr'
19822         character ranges.
19823         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
19824         ACLOCAL_AMFLAGS parsing state machine.
19825
19826 2007-01-27  Bruno Haible  <bruno@clisp.org>
19827
19828         * modules/unistr/base: Update.
19829
19830 2007-01-27  Bruno Haible  <bruno@clisp.org>
19831
19832         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
19833         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
19834         * modules/unistr/u32-mbtouc-unsafe: Renamed from
19835         modules/unistr/u32-mbtouc.
19836         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
19837         * lib/unistr.h: Update.
19838         * lib/linebreak.c: Update.
19839         * modules/unistr/u32-mbtouc: Renamed from
19840         modules/unistr/u32-mbtouc-safe.
19841         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
19842         * lib/unistr.h: Update.
19843         * lib/unistr/u32-to-u8.c: Update.
19844         * lib/unistr/u32-to-u16.c: Update.
19845
19846 2007-01-27  Bruno Haible  <bruno@clisp.org>
19847
19848         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
19849         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
19850         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
19851         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
19852         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
19853         * modules/unistr/u16-mbtouc-unsafe: Renamed from
19854         modules/unistr/u16-mbtouc.
19855         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
19856         * lib/unistr.h: Update.
19857         * lib/linebreak.c: Update.
19858         * modules/linebreak: Update.
19859         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
19860         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
19861         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
19862         * modules/unistr/u16-mbtouc: Renamed from
19863         modules/unistr/u16-mbtouc-safe.
19864         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
19865         * lib/unistr.h: Update.
19866         * lib/unistr/u16-to-u8.c: Update.
19867         * modules/unistr/u16-to-u8: Update.
19868         * lib/unistr/u16-to-u32.c: Update.
19869         * modules/unistr/u16-to-u32: Update.
19870
19871 2007-01-27  Bruno Haible  <bruno@clisp.org>
19872
19873         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
19874         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
19875         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
19876         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
19877         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
19878         * modules/unistr/u8-mbtouc-unsafe: Renamed from
19879         modules/unistr/u8-mbtouc.
19880         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
19881         * lib/unistr.h: Update.
19882         * lib/striconveh.c: Update.
19883         * modules/striconveh: Update.
19884         * lib/linebreak.c: Update.
19885         * modules/linebreak: Update.
19886         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
19887         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
19888         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
19889         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
19890         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
19891         * lib/unistr.h: Update.
19892         * lib/striconveh.c: Update.
19893         * modules/striconveh: Update.
19894         * lib/unistr/u8-to-u16.c: Update.
19895         * modules/unistr/u8-to-u16: Update.
19896         * lib/unistr/u8-to-u32.c: Update.
19897         * modules/unistr/u8-to-u32: Update.
19898
19899 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19900
19901         Sync from Libtool.
19902         * lib/argz.c: Do not include strings.h nor memory.h, include
19903         string.h unconditionally.  Patch by Simon Josefsson.
19904
19905 2007-01-27  Bruno Haible  <bruno@clisp.org>
19906
19907         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
19908         from gl_HEADER_STRING_H_BODY.
19909         (gl_HEADER_STRING_H_BODY): Require it.
19910         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
19911         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
19912         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
19913         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
19914         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
19915         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
19916         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
19917         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
19918         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
19919         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
19920         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
19921         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
19922         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
19923         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
19924         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
19925
19926 2007-01-27  Bruno Haible  <bruno@clisp.org>
19927
19928         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
19929         check_PROGRAMS into noinst_PROGRAMS.
19930         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
19931         check_PROGRAMS in this case.
19932         (func_import): Set for_test to false.
19933         (func_create_testdir): Set for_test to true.
19934
19935 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
19936             Bruno Haible  <bruno@clisp.org>
19937
19938         * modules/strcasestr (Files): Remove lib/strcasestr.h.
19939         (Depends-on): Add string.
19940         (Includes): Use <string.h> instead of strcasestr.h.
19941         * modules/string (Makefile.am): Also substitute the value of
19942         REPLACE_STRCASESTR.
19943         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
19944         assume strcasestr is declared in <string.h> not <strings.h>. Also
19945         set REPLACE_STRCASESTR.
19946         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
19947         REPLACE_STRCASESTR.
19948         * lib/strcasestr.h: Remove file.
19949         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
19950         * lib/string_.h (strcasestr): New declaration.
19951
19952 2007-01-27  Bruno Haible  <bruno@clisp.org>
19953
19954         * lib/string_.h: Use 'extern'.
19955
19956 2007-01-27  Jim Meyering  <jim@meyering.net>
19957
19958         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
19959         of set-but-not-used local, "q".
19960
19961         * lib/mempcpy.c: Include <config.h> before <string.h>.
19962         This fixes a compilation error on HP-UX, due to the system's
19963         "restrict"-using mempcpy prototype.
19964
19965 2007-01-26  Bruno Haible  <bruno@clisp.org>
19966
19967         Small optimization.
19968         * lib/javacomp.c: Include c-strstr.h.
19969          (is_envjavac_gcj): Use c_strstr instead of strstr.
19970         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
19971
19972 2007-01-26  Bruno Haible  <bruno@clisp.org>
19973
19974         * MODULES.html.sh (Unicode string functions): Add the new modules.
19975
19976         * modules/uniconv/u32-strconv-to-locale: New file.
19977         * lib/uniconv/u32-strconv-to-locale.c: New file.
19978
19979         * modules/uniconv/u16-strconv-to-locale: New file.
19980         * lib/uniconv/u16-strconv-to-locale.c: New file.
19981
19982         * modules/uniconv/u8-strconv-to-locale: New file.
19983         * lib/uniconv/u8-strconv-to-locale.c: New file.
19984
19985         * modules/uniconv/u32-strconv-from-locale: New file.
19986         * lib/uniconv/u32-strconv-from-locale.c: New file.
19987
19988         * modules/uniconv/u16-strconv-from-locale: New file.
19989         * lib/uniconv/u16-strconv-from-locale.c: New file.
19990
19991         * modules/uniconv/u8-strconv-from-locale: New file.
19992         * lib/uniconv/u8-strconv-from-locale.c: New file.
19993
19994         * modules/uniconv/u32-strconv-to-enc: New file.
19995         * lib/uniconv/u32-strconv-to-enc.c: New file.
19996         * modules/uniconv/u32-strconv-to-enc-tests: New file.
19997         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
19998
19999         * modules/uniconv/u16-strconv-to-enc: New file.
20000         * lib/uniconv/u16-strconv-to-enc.c: New file.
20001         * lib/uniconv/u-strconv-to-enc.h: New file.
20002         * modules/uniconv/u16-strconv-to-enc-tests: New file.
20003         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
20004
20005         * modules/uniconv/u8-strconv-to-enc: New file.
20006         * lib/uniconv/u8-strconv-to-enc.c: New file.
20007         * modules/uniconv/u8-strconv-to-enc-tests: New file.
20008         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
20009
20010         * modules/uniconv/u32-strconv-from-enc: New file.
20011         * lib/uniconv/u32-strconv-from-enc.c: New file.
20012         * modules/uniconv/u32-strconv-from-enc-tests: New file.
20013         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
20014
20015         * modules/uniconv/u16-strconv-from-enc: New file.
20016         * lib/uniconv/u16-strconv-from-enc.c: New file.
20017         * modules/uniconv/u16-strconv-from-enc-tests: New file.
20018         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
20019
20020         * modules/uniconv/u8-strconv-from-enc: New file.
20021         * lib/uniconv/u8-strconv-from-enc.c: New file.
20022         * lib/uniconv/u-strconv-from-enc.h: New file.
20023         * modules/uniconv/u8-strconv-from-enc-tests: New file.
20024         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
20025
20026         * modules/uniconv/u32-conv-from-enc: New file.
20027         * lib/uniconv/u32-conv-from-enc.c: New file.
20028         * modules/uniconv/u32-conv-from-enc-tests: New file.
20029         * tests/uniconv/test-u32-conv-from-enc.c: New file.
20030
20031         * modules/uniconv/u16-conv-from-enc: New file.
20032         * lib/uniconv/u16-conv-from-enc.c: New file.
20033         * lib/uniconv/u-conv-from-enc.h: New file.
20034         * modules/uniconv/u16-conv-from-enc-tests: New file.
20035         * tests/uniconv/test-u16-conv-from-enc.c: New file.
20036
20037         * modules/uniconv/u8-conv-from-enc: New file.
20038         * lib/uniconv/u8-conv-from-enc.c: New file.
20039         * modules/uniconv/u8-conv-from-enc-tests: New file.
20040         * tests/uniconv/test-u8-conv-from-enc.c: New file.
20041
20042         * modules/uniconv/base: New file.
20043         * lib/uniconv.h: New file.
20044
20045 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
20046
20047         * doc/gnulib-tool.texi (Initial import): Update to match current
20048         behavior with strdup module.
20049         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
20050         * lib/memmem.h: Remove; all uses removed.  This is now done
20051         by <string.h>.
20052         * lib/mempcpy.h: Likewise.
20053         * lib/memrchr.h: Likewise.
20054         * lib/stpcpy.h: Likewise.
20055         * lib/stpncpy.h: Likewise.
20056         * lib/strcase.h: Likewise.
20057         * lib/strchrnul.h: Likewise.
20058         * lib/strdup.h: Likewise.
20059         * lib/strndup.h: Likewise.
20060         * lib/strnlen.h: Likewise.
20061         * lib/strpbrk.h: Likewise.
20062         * lib/strsep.h: Likewise.
20063         * lib/strstr.h: Likewise.
20064         * lib/strtok_r.h: Likewise.
20065         * lib/string_.h: New file.
20066         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
20067         Rely on <string.h> instead.
20068         * lib/canon-host.c: Likewise.
20069         * lib/chdir-long.c: Likewise.
20070         * lib/concatpath.c: Likewise.
20071         * lib/exclude.c: Likewise.
20072         * lib/fchdir.c: Likewise.
20073         * lib/getaddrinfo.c: Likewise.
20074         * lib/getcwd.c: Likewise.
20075         * lib/getsubopt.c: Likewise.
20076         * lib/glob.c: Likewise.
20077         * lib/hard-locale.c: Likewise.
20078         * lib/iconvme.c: Likewise.
20079         * lib/javacomp.c: Likewise.
20080         * lib/mempcpy.c: Likewise.
20081         * lib/memrchr.c: Likewise.
20082         * lib/regex_internal.h: Likewise.
20083         * lib/stpncpy.c: Likewise.
20084         * lib/strcasecmp.c: Likewise.
20085         * lib/strchrnul.c: Likewise.
20086         * lib/strdup.c: Likewise.
20087         * lib/striconv.c: Likewise.
20088         * lib/striconveh.c: Likewise.
20089         * lib/striconveha.c: Likewise.
20090         * lib/strncasecmp.c: Likewise.
20091         * lib/strndup.c: Likewise.
20092         * lib/strnlen.c: Likewise.
20093         * lib/strsep.c: Likewise.
20094         * lib/strstr.c: Likewise.
20095         * lib/strtok_r.c: Likewise.
20096         * lib/userspec.c: Likewise.
20097         * lib/w32spawn.h: Likewise.
20098         * lib/xstrndup.c: Likewise.
20099         * lib/mountlist.c (strstr): Remove decl.
20100         * m4/string_h.m4: New file.
20101         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
20102         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
20103         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
20104         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
20105         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
20106         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
20107         Set REPLACE_STRCASECMP if necessary.
20108         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
20109         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
20110         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
20111         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
20112         HAVE_DECL_STRDUP if necessary.
20113         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
20114         since gl_FUNC_STRNDUP does that now.
20115         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
20116         Check for decl here...
20117         (gl_PREREQ_STRNLEN): ... not here.
20118         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
20119         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
20120         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
20121         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
20122         necessary.
20123         * modules/string: New file.
20124         * modules/memmem (Files): Remove special-purpose include file.
20125         (Depends-on): Add string.
20126         (Include): Include <string.h>, not the removed file.
20127         * modules/mempcpy: Likewise.
20128         * modules/memrchr: Likewise.
20129         * modules/stpcpy: Likewise.
20130         * modules/stpncpy: Likewise.
20131         * modules/strcase: Likewise.
20132         * modules/strchrnul: Likewise.
20133         * modules/strdup: Likewise.
20134         * modules/strndup: Likewise.
20135         * modules/strnlen: Likewise.
20136         * modules/strpbrk: Likewise.
20137         * modules/strsep: Likewise.
20138         * modules/strstr: Likewise.
20139         * modules/strtok_r: Likewise.
20140         * tests/test-dirname.c: Don't include "strdup.h", since
20141         <string.h> now suffices.
20142         * tests/test-memmem.c: Don't include "memmem.h", since
20143         <string.h> now suffices.
20144
20145 2007-01-25  Bruno Haible  <bruno@clisp.org>
20146
20147         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
20148         *resultp is 0.
20149
20150         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
20151         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
20152         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
20153         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
20154
20155         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
20156         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
20157         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
20158         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
20159         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
20160         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
20161
20162 2007-01-24  Bruno Haible  <bruno@clisp.org>
20163
20164         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
20165         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
20166         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
20167         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
20168         gl_FUNC_FTS_CORE.
20169         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
20170         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
20171         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
20172         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
20173         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
20174         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
20175         gl_FUNC_FCHOWNAT.
20176         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
20177         gl_FUNC_STRFTIME.
20178         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
20179         Reported by Ralf Wildenhues.
20180
20181 2007-01-24  Bruno Haible  <bruno@clisp.org>
20182
20183         Drop AC_REQUIRE calls that are redundant with the module dependencies.
20184         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
20185         gl_GETADDRINFO.
20186         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
20187         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
20188         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
20189
20190 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
20191
20192         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
20193         Don't use 'exit'; just return from 'main'.
20194         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
20195
20196         * lib/fnmatch_.h: Readjust white space and comments to match
20197         glibc, to avoid spurious diffs.
20198
20199 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
20200
20201         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
20202         2004-12-01 change by Jakub Jelinek, since this code won't compile
20203         if !LIBC.  Problem reported by Bob Proulx.
20204
20205 2007-01-23  Bruno Haible  <bruno@clisp.org>
20206
20207         * lib/striconveh.c: Include c-strcaseeq.h.
20208         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
20209         * modules/striconveh (Depends-on): Add c-strcaseeq.
20210
20211 2007-01-23  Bruno Haible  <bruno@clisp.org>
20212
20213         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
20214
20215         * modules/c-strcaseeq: New file.
20216         * lib/c-strcaseeq.h: New file.
20217
20218         * modules/streq: New file.
20219         * lib/streq.h: New file.
20220
20221 2007-01-23  Bruno Haible  <bruno@clisp.org>
20222
20223         * modules/striconveha-tests: New file.
20224         * tests/test-striconveha.c: New file.
20225
20226         * lib/striconveha.h: Include <stdbool.h>.
20227         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
20228         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
20229         (mem_iconveha_notranslit): Renamed from mem_iconveha.
20230         (mem_iconveha): New function.
20231         (str_iconveha_notranslit): Renamed from str_iconveha.
20232         (str_iconveha): New function.
20233         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
20234         c-strcase.
20235
20236 2007-01-23  Bruno Haible  <bruno@clisp.org>
20237
20238         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
20239         encodings without forgiving before trying any encoding with handler.
20240         (str_iconveha): Try all encodings without forgiving before trying any
20241         encoding with handler.
20242
20243 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
20244
20245         Import the following changes from libc.
20246
20247         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
20248
20249         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
20250
20251         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
20252
20253         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
20254         normal_bracket label.
20255
20256         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
20257
20258         [BZ #361]
20259         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
20260         to normal_bracket after fetching the next character.
20261
20262 2007-01-22  Bruno Haible  <bruno@clisp.org>
20263
20264         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
20265         argument.
20266         * lib/striconveh.c (iconv_carefully_1): New function.
20267         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
20268         argument.
20269         (str_cd_iconveh): Update.
20270         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
20271         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
20272         * tests/test-striconveh.c (MAGIC): New macro.
20273         (new_offsets): New function.
20274         (main): Test call with and without offsets.
20275
20276 2007-01-22  Bruno Haible  <bruno@clisp.org>
20277
20278         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
20279         * modules/sys_select (Makefile.am): Likewise.
20280         * modules/sys_socket (Makefile.am): Likewise.
20281         * modules/sys_time (Makefile.am): Likewise.
20282
20283 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
20284
20285         * modules/gettimeofday (License): Change from GPL to LGPL, since
20286         gettimeofday is a library function.
20287
20288 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20289
20290         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
20291
20292 2007-01-21  Bruno Haible  <bruno@clisp.org>
20293
20294         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
20295
20296 2007-01-21  Bruno Haible  <bruno@clisp.org>
20297
20298         * modules/striconveha: New file.
20299         * lib/striconveha.h: New file.
20300         * lib/striconveha.c: New file.
20301         * MODULES.html.sh (Internationalization functions): Add striconveha.
20302         * lib/striconv.c (str_iconv): Optimize the case of an empty input
20303         string.
20304         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
20305
20306 2007-01-21  Bruno Haible  <bruno@clisp.org>
20307
20308         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
20309         * lib/striconveh.c (str_iconveh): Likewise.
20310
20311 2007-01-21  Bruno Haible  <bruno@clisp.org>
20312
20313         * lib/striconveh.h (mem_iconveh): New declaration.
20314         * lib/striconveh.c (mem_iconveh): New function.
20315         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
20316
20317 2007-01-21  Bruno Haible  <bruno@clisp.org>
20318
20319         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
20320
20321         * lib/striconveh.h (mem_cd_iconveh): Change specification.
20322         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
20323         original result buffer.
20324         (str_cd_iconveh): Update.
20325         * tests/test-striconveh.c (main): Update.
20326
20327         * lib/striconv.h (mem_cd_iconv): Change specification.
20328         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
20329         result buffer.
20330         (str_cd_iconv): Update.
20331         * tests/test-striconv.c (main): Update.
20332
20333 2007-01-21  Bruno Haible  <bruno@clisp.org>
20334
20335         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
20336
20337 2007-01-20  Jim Meyering  <jim@meyering.net>
20338
20339         * lib/userspec.c (parse_with_separator): If a user or group string
20340         starts with "+", skip the corresponding name-to-ID look-up, since
20341         such a look-up must fail: user and group names may not include "+".
20342
20343 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
20344
20345         * lib/poll.c: Include sys/time.h and time.h unconditionally,
20346         since we now assume the sys_time module.
20347         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
20348         check for sys/time.h; no longer needed.
20349         * modules/poll (Depends-on): Depend on sys_time.
20350
20351 2007-01-18  Bruno Haible  <bruno@clisp.org>
20352
20353         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
20354         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
20355
20356         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
20357         gettimeofday.
20358
20359         * tests/test-gettimeofday.c: Include <time.h>.
20360         (dummy): Remove variable.
20361
20362         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
20363         gl_HEADER_SYS_TIME_H.
20364         (gl_HEADER_SYS_TIME_H): New macro.
20365
20366         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
20367         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
20368         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
20369         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
20370         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
20371         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
20372         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
20373         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
20374         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
20375         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
20376         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
20377
20378         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
20379         last change; it caused a compilation error when cross-compiling to
20380         Cygwin.
20381
20382 2007-01-18  Jim Meyering  <jim@meyering.net>
20383
20384         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
20385         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
20386         than the race-prone "test -d sys || mkdir sys".
20387         (configure.ac): Use AC_PROG_MKDIR_P.
20388         * modules/sys_select: Likewise.
20389         * modules/sys_socket: Likewise.
20390         * modules/sys_time: Likewise.
20391
20392 2007-01-18  Eric Blake  <ebb9@byu.net>
20393
20394         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
20395         replace gettimeofday.
20396         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
20397         name, to avoid infinite recursion.
20398
20399 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
20400
20401         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
20402         module sys_time.
20403         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
20404         assume timespec.h defines struct timeval.
20405         * lib/settime.c: Likewise.
20406         * lib/utimens.c: Likewise.
20407         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
20408         since we now assume the gettimeofday module.
20409         * lib/tempname.c (__gen_tempname): Likewise.
20410         * lib/gettimeofday.h: Remove.
20411         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
20412         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
20413         Include <time.h>, for 'time()'.
20414         (localtime_buffer_addr): Also use this workaround if
20415         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
20416         to simplify the uses.  All uses changed.
20417         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
20418         that #undef is inside {}, and 'const' follows type name consistently.
20419         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
20420         (gettimeofday): Do not use the maximum possible value for
20421         tv->tv_usec, since that might break usages other than ls.c.
20422         Instead, we'll leave ls.c alone.  This undoes today's patch
20423         by Bruno.  Add a compile-time warning for 1s-clock resolution;
20424         we've never observed the problem but might as well keep the
20425         canary.
20426         * lib/nanosleep.c: Include timespec.h first, for interface check.
20427         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
20428         now assume the sys_time module.
20429         * lib/tempname.c: Likewise.
20430         * lib/timespec.h: Likewise.
20431         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
20432         needed.
20433         * lib/strftime.c: Likewise.
20434         * lib/timespec.h: Likewise.
20435         * lib/posixtm.c: Include posixtm.h first, for interface check.
20436         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
20437         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
20438         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
20439         * lib/sys_time_.h: New file.
20440         * lib/timespec.h (struct timespec): Use long int, not long.
20441         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
20442         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
20443         Remove obsolescent call to AC_HEADER_TIME.
20444         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
20445         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
20446         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
20447         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
20448         Likewise.
20449         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
20450         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
20451         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
20452         into the sys_time module.  Check for gettimeofday just once.
20453         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
20454         for gettimeofday signature to just check the signature.  Merely
20455         compile it, since linking doesn't test signature.  Improve test for
20456         whether gettimeofday.o is actually needed.
20457         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
20458         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
20459         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
20460         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
20461         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
20462         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
20463         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
20464         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
20465         than worrying about sys/time.h.
20466         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
20467         Don't bother worrying about TIME_WITH_SYS_TIME.
20468         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
20469         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
20470         * m4/sys_time_h.m4: New file.
20471         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
20472         Don't include sys/time.h.  Return from main rather than exiting.
20473         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
20474         all uses changed.
20475         * modules/gethrxtime (Depends-on): Add sys_time.
20476         * modules/gettime (Depends-on): Likewise.
20477         * modules/gettimeofday (Depends-on): Likewise.
20478         * modules/nanosleep (Depends-on): Likewise.
20479         * modules/settime (Depends-on): Likewise.
20480         * modules/tempname (Depends-on): Likewise.
20481         * modules/utimens (Depends-on): Likewise.
20482         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
20483         (Include:) Change back to <sys/time.h>.
20484         (Maintainer:) Add self.
20485         * modules/sys_time: New file.
20486         * modules/tempname (Depends-on): Add gettimeofday.
20487         * tests/test-gettimeofday.c: Include <sys/time.h>
20488         rather than gettimeofday.h.
20489
20490 2007-01-17  Bruno Haible  <bruno@clisp.org>
20491
20492         * gnulib-tool (func_get_license): Revert last patch. Instead, let
20493         the license default to GPL.
20494         (func_create_testdir): Don't complain if a module is LGPL and its
20495         tests module depends on GPLed modules.
20496
20497 2007-01-17  Bruno Haible  <bruno@clisp.org>
20498
20499         * lib/gettimeofday.c (gettimeofday): Add code for the case
20500         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
20501         maximum possible value for tv->tv_usec, rather than the minimum one.
20502
20503 2005-10-08  Martin Lambers  <marlam@marlam.de>
20504 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
20505 2007-01-16  Bruno Haible  <bruno@clisp.org>
20506
20507         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
20508         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
20509         gl_FUNC_GETTIMEOFDAY.
20510         (Include): Add gettimeofday.h.
20511         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
20512         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
20513         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
20514         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
20515         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
20516         * lib/gettimeofday.h: New file.
20517         * lib/gettimeofday.c: Include <sys/timeb.h>.
20518         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
20519         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
20520         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
20521         fall back on time().
20522
20523         * tests/test-gettimeofday.c: New file.
20524         * modules/gettimeofday-tests: New file.
20525
20526 2007-01-16  Eric Blake  <ebb9@byu.net>
20527
20528         * modules/fnmatch (Depends-on): Depend on wchar.
20529         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
20530         * m4/fnmatch.m4: Likewise.
20531         * modules/mbchar (Makefile.am): Assume <wchar.h>.
20532         * m4/mbchar.m4: Likewise.
20533         * modules/mbswidth (Depends-on): Depend on wchar.
20534         * lib/mbswidth.c: Assume <wchar.h>.
20535         * m4/mbswidth.m4: Likewise.
20536         * modules/quotearg (Depends-on): Depend on wchar.
20537         * lib/quotearg.c: Assume <wchar.h>.
20538         * m4/quotearg.m4: Likewise.
20539         * modules/regex (Depends-on): Depend on wchar.
20540         * lib/regex_internal.h: Assume <wchar.h>.
20541         * m4/regex.m4: Likewise.
20542         * modules/stdint (Depends-on): Depend on wchar.
20543         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
20544         * m4/stdint.m4: Likewise.
20545         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
20546         * modules/strftime (Depends-on): Depend on wchar.
20547         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
20548         * modules/strtol (Depends-on): Depend on wchar.
20549         * lib/strtol.c: Assume <wchar.h>.
20550         * modules/wcwidth (Depends-on): Depend on wchar.
20551         * lib/wcwidth.h: Assume <wchar.h>.
20552         * m4/wcwidth.m4: Likewise.
20553
20554 2007-01-16  Bruno Haible  <bruno@clisp.org>
20555
20556         * modules/csharpexec-script: New, created from...
20557         * modules/csharpexec: ... this.
20558
20559 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
20560
20561         * modules/javaexec-script: New, created from...
20562         * modules/javaexec: ... this.
20563
20564 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
20565
20566         * modules/poll (Dependencies): Add sys_select.
20567
20568 2007-01-15  Jim Meyering  <jim@meyering.net>
20569
20570         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
20571         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
20572         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
20573         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
20574
20575 2007-01-15  Bruno Haible  <bruno@clisp.org>
20576
20577         * modules/striconveh: New file.
20578         * lib/striconveh.h: New file.
20579         * lib/striconveh.c: New file.
20580         * MODULES.html.sh (Internationalization functions): Add striconveh.
20581
20582         * modules/striconveh-tests: New file.
20583         * tests/test-striconveh.c: New file.
20584
20585 2007-01-15  Bruno Haible  <bruno@clisp.org>
20586
20587         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
20588         not from GNU libiconv or GNU libc.
20589
20590 2007-01-15  Bruno Haible  <bruno@clisp.org>
20591
20592         * doc/gnulib-intro.texi (Copyright): Explain the different license
20593         terms for module descriptions, autoconf macros, tests, documentation.
20594
20595 2007-01-14  Bruno Haible  <bruno@clisp.org>
20596
20597         * modules/striconv-tests: New file.
20598         * tests/test-striconv.c: New file.
20599
20600 2007-01-14  Bruno Haible  <bruno@clisp.org>
20601
20602         * modules/iconv-tests: New file.
20603         * tests/test-iconv.c: New file.
20604
20605 2007-01-14  Bruno Haible  <bruno@clisp.org>
20606
20607         * gnulib-tool (func_get_license): For test modules, use the license of
20608         the main module.
20609
20610 2007-01-14  Bruno Haible  <bruno@clisp.org>
20611
20612         * modules/iconv (Include): Clarify that <iconv.h> can only be included
20613         if iconv is found to exist.
20614
20615 2007-01-14  Bruno Haible  <bruno@clisp.org>
20616
20617         * modules/c-ctype-tests: New file.
20618         * tests/test-c-ctype.c: New file.
20619
20620 2007-01-14  Bruno Haible  <bruno@clisp.org>
20621
20622         * modules/binary-io-tests: New file.
20623         * tests/test-binary-io.sh: New file.
20624         * tests/test-binary-io.c: New file.
20625
20626 2007-01-14  Bruno Haible  <bruno@clisp.org>
20627
20628         * modules/array-oset-tests: New file.
20629         * tests/test-array_oset.c: New file.
20630
20631 2007-01-14  Bruno Haible  <bruno@clisp.org>
20632
20633         * modules/array-list-tests: New file.
20634         * tests/test-array_list.c: New file.
20635
20636 2007-01-14  Bruno Haible  <bruno@clisp.org>
20637
20638         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
20639         and make.
20640         Reported by Simon Josefsson in
20641         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
20642
20643 2007-01-14  Bruno Haible  <bruno@clisp.org>
20644
20645         * modules/allocsa-tests: New file.
20646         * tests/test-allocsa.c: New file.
20647
20648 2007-01-14  Bruno Haible  <bruno@clisp.org>
20649
20650         * modules/fchdir (Depends-on): Add absolute-header.
20651         * modules/unistd (Depends-on): Likewise.
20652
20653 2006-12-30  Bruno Haible  <bruno@clisp.org>
20654
20655         * modules/fchdir: New file.
20656         * modules/unistd (Files): Add lib/unistd_.h.
20657         (Makefile.am): Generate unistd.h from unistd_.h.
20658         * lib/fchdir.c: New file.
20659         * lib/dirent_.h: New file.
20660         * lib/unistd_.h: New file.
20661         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
20662         * m4/fchdir.m4: New file.
20663         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
20664         (gl_HEADER_UNISTD): Invoke it.
20665         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
20666         function.
20667         * lib/backupfile.c (opendir, closedir): Undefine.
20668         * lib/chown.c (open, close): Undefine.
20669         * lib/clean-temp.c (open, close): Undefine.
20670         * lib/copy-file.c (open, close): Undefine.
20671         * lib/execute.c (open, close): Undefine.
20672         * lib/fsusage.c (open, close): Undefine.
20673         * lib/gc-gnulib.c (open, close): Undefine.
20674         * lib/getcwd.c (opendir, closedir): Undefine.
20675         * lib/glob.c (opendir, closedir): Undefine.
20676         * lib/javacomp.c (open, close): Undefine.
20677         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
20678         * lib/openat-proc.c (open, close): Undefine.
20679         * lib/pagealign_alloc.c (open, close): Undefine.
20680         * lib/pipe.c (open, close): Undefine.
20681         * lib/progreloc.c (open, close): Undefine.
20682         * lib/savedir.c (opendir, closedir): Undefine.
20683         * lib/utime.c (open, close): Undefine.
20684         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
20685
20686 2007-01-10  Bruno Haible  <bruno@clisp.org>
20687
20688         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
20689
20690 2007-01-12  Eric Blake  <ebb9@byu.net>
20691
20692         Provide a robust <wchar.h>.  Further simplifications are now
20693         possible in other modules, but not included here.
20694         * modules/wchar: New module.
20695         * m4/wchar.m4: New file.
20696         * lib/wchar_.h: Likewise.
20697         * modules/mbchar (Depends-on): Depend on wchar, as the first use
20698         of the new module.
20699         * MODULES.html.sh (Extended multibyte and wide character utilities):
20700         New section.
20701
20702 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
20703
20704         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
20705         to a reasonable default for memory allocation.
20706         (xreadlink): Don't allocate a huge buffer, to work around a buggy
20707         file system that reports garbage st_size values for symlinks.
20708         Problem reported by Liyang Hu.
20709
20710 2007-01-11  Simon Josefsson  <simon@josefsson.org>
20711
20712         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
20713         Emacs .#* auto-save files).
20714
20715 2007-01-11  Bruno Haible  <bruno@clisp.org>
20716
20717         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
20718         directory.
20719
20720 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
20721
20722         Use @...@ consistently in lib/wctype_.h.
20723         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
20724         on it being set to 1 or 0.
20725         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
20726         go back to AC_SUBSTing it.
20727         * modules/wctype (Makefile.am): Undo previous change.
20728
20729 2007-01-10  Eric Blake  <ebb9@byu.net>
20730
20731         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
20732         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
20733         * modules/wctype (Makefile.am): Likewise.
20734         Reported by Chris McGuire.
20735
20736 2007-01-10  Jim Meyering  <jim@meyering.net>
20737
20738         fts.c: a small readability/maintainability improvement
20739         * lib/fts.c (fts_read): Make this code slightly more readable and
20740         maintainable by hoisting the "sp->fts_cur = p" assignments to
20741         immediately follow the statements that set P.  Derived from
20742         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
20743
20744 2007-01-10  Eric Blake  <ebb9@byu.net>
20745
20746         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
20747         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
20748         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
20749         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
20750         Reported by Chris McGuire.
20751
20752 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20753
20754         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
20755         in sed script.
20756
20757 2007-01-09  Bruno Haible  <bruno@clisp.org>
20758
20759         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
20760         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
20761         variables.
20762         (func_module): Use them.
20763
20764 2007-01-09  Bruno Haible  <bruno@clisp.org>
20765
20766         * modules/unistr/base: New file.
20767         * lib/unistr.h: New file.
20768
20769         * modules/unistr/u8-to-u16: New file.
20770         * lib/unistr/u8-to-u16.c: New file.
20771
20772         * modules/unistr/u8-to-u32: New file.
20773         * lib/unistr/u8-to-u32.c: New file.
20774
20775         * modules/unistr/u16-to-u8: New file.
20776         * lib/unistr/u16-to-u8.c: New file.
20777
20778         * modules/unistr/u16-to-u32: New file.
20779         * lib/unistr/u16-to-u32.c: New file.
20780
20781         * modules/unistr/u32-to-u8: New file.
20782         * lib/unistr/u32-to-u8.c: New file.
20783
20784         * modules/unistr/u32-to-u16: New file.
20785         * lib/unistr/u32-to-u16.c: New file.
20786
20787         * modules/unistr/u8-check: New file.
20788         * modules/unistr/u16-check: New file.
20789         * modules/unistr/u32-check: New file.
20790         * lib/unistr/u8-check.c: New file.
20791         * lib/unistr/u16-check.c: New file.
20792         * lib/unistr/u32-check.c: New file.
20793
20794         * modules/unistr/u8-chr: New file.
20795         * modules/unistr/u16-chr: New file.
20796         * modules/unistr/u32-chr: New file.
20797         * lib/unistr/u8-chr.c: New file.
20798         * lib/unistr/u16-chr.c: New file.
20799         * lib/unistr/u32-chr.c: New file.
20800
20801         * modules/unistr/u8-cmp: New file.
20802         * modules/unistr/u16-cmp: New file.
20803         * modules/unistr/u32-cmp: New file.
20804         * lib/unistr/u8-cmp.c: New file.
20805         * lib/unistr/u16-cmp.c: New file.
20806         * lib/unistr/u32-cmp.c: New file.
20807
20808         * modules/unistr/u8-cpy: New file.
20809         * modules/unistr/u16-cpy: New file.
20810         * modules/unistr/u32-cpy: New file.
20811         * lib/unistr/u8-cpy.c: New file.
20812         * lib/unistr/u16-cpy.c: New file.
20813         * lib/unistr/u32-cpy.c: New file.
20814         * lib/unistr/u-cpy.h: New file.
20815
20816         * modules/unistr/u8-cpy-alloc: New file.
20817         * modules/unistr/u16-cpy-alloc: New file.
20818         * modules/unistr/u32-cpy-alloc: New file.
20819         * lib/unistr/u8-cpy-alloc.c: New file.
20820         * lib/unistr/u16-cpy-alloc.c: New file.
20821         * lib/unistr/u32-cpy-alloc.c: New file.
20822         * lib/unistr/u-cpy-alloc.h: New file.
20823
20824         * modules/unistr/u8-endswith: New file.
20825         * modules/unistr/u16-endswith: New file.
20826         * modules/unistr/u32-endswith: New file.
20827         * lib/unistr/u8-endswith.c: New file.
20828         * lib/unistr/u16-endswith.c: New file.
20829         * lib/unistr/u32-endswith.c: New file.
20830         * lib/unistr/u-endswith.h: New file.
20831
20832         * modules/unistr/u8-mblen: New file.
20833         * modules/unistr/u16-mblen: New file.
20834         * modules/unistr/u32-mblen: New file.
20835         * lib/unistr/u8-mblen.c: New file.
20836         * lib/unistr/u16-mblen.c: New file.
20837         * lib/unistr/u32-mblen.c: New file.
20838
20839         * modules/unistr/u8-mbtouc: New file.
20840         * modules/unistr/u16-mbtouc: New file.
20841         * modules/unistr/u32-mbtouc: New file.
20842         * lib/unistr/u8-mbtouc.c: New file.
20843         * lib/unistr/u16-mbtouc.c: New file.
20844         * lib/unistr/u32-mbtouc.c: New file.
20845
20846         * modules/unistr/u8-mbtouc-safe: New file.
20847         * modules/unistr/u16-mbtouc-safe: New file.
20848         * modules/unistr/u32-mbtouc-safe: New file.
20849         * lib/unistr/u8-mbtouc-safe.c: New file.
20850         * lib/unistr/u16-mbtouc-safe.c: New file.
20851         * lib/unistr/u32-mbtouc-safe.c: New file.
20852
20853         * modules/unistr/u8-move: New file.
20854         * modules/unistr/u16-move: New file.
20855         * modules/unistr/u32-move: New file.
20856         * lib/unistr/u8-move.c: New file.
20857         * lib/unistr/u16-move.c: New file.
20858         * lib/unistr/u32-move.c: New file.
20859         * lib/unistr/u-move.h: New file.
20860
20861         * modules/unistr/u8-next: New file.
20862         * modules/unistr/u16-next: New file.
20863         * modules/unistr/u32-next: New file.
20864         * lib/unistr/u8-next.c: New file.
20865         * lib/unistr/u16-next.c: New file.
20866         * lib/unistr/u32-next.c: New file.
20867
20868         * modules/unistr/u8-prev: New file.
20869         * modules/unistr/u16-prev: New file.
20870         * modules/unistr/u32-prev: New file.
20871         * lib/unistr/u8-prev.c: New file.
20872         * lib/unistr/u16-prev.c: New file.
20873         * lib/unistr/u32-prev.c: New file.
20874
20875         * modules/unistr/u8-set: New file.
20876         * modules/unistr/u16-set: New file.
20877         * modules/unistr/u32-set: New file.
20878         * lib/unistr/u8-set.c: New file.
20879         * lib/unistr/u16-set.c: New file.
20880         * lib/unistr/u32-set.c: New file.
20881         * lib/unistr/u-set.h: New file.
20882
20883         * modules/unistr/u8-startswith: New file.
20884         * modules/unistr/u16-startswith: New file.
20885         * modules/unistr/u32-startswith: New file.
20886         * lib/unistr/u8-startswith.c: New file.
20887         * lib/unistr/u16-startswith.c: New file.
20888         * lib/unistr/u32-startswith.c: New file.
20889         * lib/unistr/u-startswith.h: New file.
20890
20891         * modules/unistr/u8-stpcpy: New file.
20892         * modules/unistr/u16-stpcpy: New file.
20893         * modules/unistr/u32-stpcpy: New file.
20894         * lib/unistr/u8-stpcpy.c: New file.
20895         * lib/unistr/u16-stpcpy.c: New file.
20896         * lib/unistr/u32-stpcpy.c: New file.
20897         * lib/unistr/u-stpcpy.h: New file.
20898
20899         * modules/unistr/u8-stpncpy: New file.
20900         * modules/unistr/u16-stpncpy: New file.
20901         * modules/unistr/u32-stpncpy: New file.
20902         * lib/unistr/u8-stpncpy.c: New file.
20903         * lib/unistr/u16-stpncpy.c: New file.
20904         * lib/unistr/u32-stpncpy.c: New file.
20905         * lib/unistr/u-stpncpy.h: New file.
20906
20907         * modules/unistr/u8-strcat: New file.
20908         * modules/unistr/u16-strcat: New file.
20909         * modules/unistr/u32-strcat: New file.
20910         * lib/unistr/u8-strcat.c: New file.
20911         * lib/unistr/u16-strcat.c: New file.
20912         * lib/unistr/u32-strcat.c: New file.
20913         * lib/unistr/u-strcat.h: New file.
20914
20915         * modules/unistr/u8-strchr: New file.
20916         * modules/unistr/u16-strchr: New file.
20917         * modules/unistr/u32-strchr: New file.
20918         * lib/unistr/u8-strchr.c: New file.
20919         * lib/unistr/u16-strchr.c: New file.
20920         * lib/unistr/u32-strchr.c: New file.
20921
20922         * modules/unistr/u8-strcmp: New file.
20923         * modules/unistr/u16-strcmp: New file.
20924         * modules/unistr/u32-strcmp: New file.
20925         * lib/unistr/u8-strcmp.c: New file.
20926         * lib/unistr/u16-strcmp.c: New file.
20927         * lib/unistr/u32-strcmp.c: New file.
20928
20929         * modules/unistr/u8-strcpy: New file.
20930         * modules/unistr/u16-strcpy: New file.
20931         * modules/unistr/u32-strcpy: New file.
20932         * lib/unistr/u8-strcpy.c: New file.
20933         * lib/unistr/u16-strcpy.c: New file.
20934         * lib/unistr/u32-strcpy.c: New file.
20935         * lib/unistr/u-strcpy.h: New file.
20936
20937         * modules/unistr/u8-strcspn: New file.
20938         * modules/unistr/u16-strcspn: New file.
20939         * modules/unistr/u32-strcspn: New file.
20940         * lib/unistr/u8-strcspn.c: New file.
20941         * lib/unistr/u16-strcspn.c: New file.
20942         * lib/unistr/u32-strcspn.c: New file.
20943         * lib/unistr/u-strcspn.h: New file.
20944
20945         * modules/unistr/u8-strdup: New file.
20946         * modules/unistr/u16-strdup: New file.
20947         * modules/unistr/u32-strdup: New file.
20948         * lib/unistr/u8-strdup.c: New file.
20949         * lib/unistr/u16-strdup.c: New file.
20950         * lib/unistr/u32-strdup.c: New file.
20951         * lib/unistr/u-strdup.h: New file.
20952
20953         * modules/unistr/u8-strlen: New file.
20954         * modules/unistr/u16-strlen: New file.
20955         * modules/unistr/u32-strlen: New file.
20956         * lib/unistr/u8-strlen.c: New file.
20957         * lib/unistr/u16-strlen.c: New file.
20958         * lib/unistr/u32-strlen.c: New file.
20959         * lib/unistr/u-strlen.h: New file.
20960
20961         * modules/unistr/u8-strmblen: New file.
20962         * modules/unistr/u16-strmblen: New file.
20963         * modules/unistr/u32-strmblen: New file.
20964         * lib/unistr/u8-strmblen.c: New file.
20965         * lib/unistr/u16-strmblen.c: New file.
20966         * lib/unistr/u32-strmblen.c: New file.
20967
20968         * modules/unistr/u8-strmbtouc: New file.
20969         * modules/unistr/u16-strmbtouc: New file.
20970         * modules/unistr/u32-strmbtouc: New file.
20971         * lib/unistr/u8-strmbtouc.c: New file.
20972         * lib/unistr/u16-strmbtouc.c: New file.
20973         * lib/unistr/u32-strmbtouc.c: New file.
20974
20975         * modules/unistr/u8-strncat: New file.
20976         * modules/unistr/u16-strncat: New file.
20977         * modules/unistr/u32-strncat: New file.
20978         * lib/unistr/u8-strncat.c: New file.
20979         * lib/unistr/u16-strncat.c: New file.
20980         * lib/unistr/u32-strncat.c: New file.
20981         * lib/unistr/u-strncat.h: New file.
20982
20983         * modules/unistr/u8-strncmp: New file.
20984         * modules/unistr/u16-strncmp: New file.
20985         * modules/unistr/u32-strncmp: New file.
20986         * lib/unistr/u8-strncmp.c: New file.
20987         * lib/unistr/u16-strncmp.c: New file.
20988         * lib/unistr/u32-strncmp.c: New file.
20989
20990         * modules/unistr/u8-strncpy: New file.
20991         * modules/unistr/u16-strncpy: New file.
20992         * modules/unistr/u32-strncpy: New file.
20993         * lib/unistr/u8-strncpy.c: New file.
20994         * lib/unistr/u16-strncpy.c: New file.
20995         * lib/unistr/u32-strncpy.c: New file.
20996         * lib/unistr/u-strncpy.h: New file.
20997
20998         * modules/unistr/u8-strnlen: New file.
20999         * modules/unistr/u16-strnlen: New file.
21000         * modules/unistr/u32-strnlen: New file.
21001         * lib/unistr/u8-strnlen.c: New file.
21002         * lib/unistr/u16-strnlen.c: New file.
21003         * lib/unistr/u32-strnlen.c: New file.
21004         * lib/unistr/u-strnlen.h: New file.
21005
21006         * modules/unistr/u8-strpbrk: New file.
21007         * modules/unistr/u16-strpbrk: New file.
21008         * modules/unistr/u32-strpbrk: New file.
21009         * lib/unistr/u8-strpbrk.c: New file.
21010         * lib/unistr/u16-strpbrk.c: New file.
21011         * lib/unistr/u32-strpbrk.c: New file.
21012         * lib/unistr/u-strpbrk.h: New file.
21013
21014         * modules/unistr/u8-strrchr: New file.
21015         * modules/unistr/u16-strrchr: New file.
21016         * modules/unistr/u32-strrchr: New file.
21017         * lib/unistr/u8-strrchr.c: New file.
21018         * lib/unistr/u16-strrchr.c: New file.
21019         * lib/unistr/u32-strrchr.c: New file.
21020
21021         * modules/unistr/u8-strspn: New file.
21022         * modules/unistr/u16-strspn: New file.
21023         * modules/unistr/u32-strspn: New file.
21024         * lib/unistr/u8-strspn.c: New file.
21025         * lib/unistr/u16-strspn.c: New file.
21026         * lib/unistr/u32-strspn.c: New file.
21027         * lib/unistr/u-strspn.h: New file.
21028
21029         * modules/unistr/u8-strstr: New file.
21030         * modules/unistr/u16-strstr: New file.
21031         * modules/unistr/u32-strstr: New file.
21032         * lib/unistr/u8-strstr.c: New file.
21033         * lib/unistr/u16-strstr.c: New file.
21034         * lib/unistr/u32-strstr.c: New file.
21035         * lib/unistr/u-strstr.h: New file.
21036
21037         * modules/unistr/u8-strtok: New file.
21038         * modules/unistr/u16-strtok: New file.
21039         * modules/unistr/u32-strtok: New file.
21040         * lib/unistr/u8-strtok.c: New file.
21041         * lib/unistr/u16-strtok.c: New file.
21042         * lib/unistr/u32-strtok.c: New file.
21043         * lib/unistr/u-strtok.h: New file.
21044
21045         * modules/unistr/u8-uctomb: New file.
21046         * modules/unistr/u16-uctomb: New file.
21047         * modules/unistr/u32-uctomb: New file.
21048         * lib/unistr/u8-uctomb.c: New file.
21049         * lib/unistr/u16-uctomb.c: New file.
21050         * lib/unistr/u32-uctomb.c: New file.
21051
21052         * MODULES.html.sh (Unicode string functions): Add the new modules.
21053
21054 2007-01-08  Bruno Haible  <bruno@clisp.org>
21055
21056         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
21057         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
21058         subdirectories.
21059
21060 2007-01-08  Karl Berry  <karl@gnu.org>
21061
21062         * doc/error.texi: mention that main() fns must set program_name
21063         when progname is used.
21064
21065 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
21066
21067         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
21068         WCTYPE_H is empty, for the benefit of builds from non-distclean
21069         directories.  Problem reported by Eric Blake in
21070         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
21071
21072 2007-01-08  Bruno Haible  <bruno@clisp.org>
21073
21074         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
21075         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
21076         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
21077         PROVIDE_CANONICALIZE_FILENAME_MODE.
21078         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
21079
21080 2007-01-08  Bruno Haible  <bruno@clisp.org>
21081
21082         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
21083         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
21084         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
21085         * lib/fts.c: Likewise.
21086         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
21087
21088 2006-12-25  Bruno Haible  <bruno@clisp.org>
21089
21090         * modules/utf8-ucs4-safe: New file.
21091         * lib/utf8-ucs4-safe.h: New file.
21092         * lib/unistr/utf8-ucs4-safe.c: New file.
21093
21094         * modules/utf16-ucs4-safe: New file.
21095         * lib/utf16-ucs4-safe.h: New file.
21096         * lib/unistr/utf16-ucs4-safe.c: New file.
21097
21098         * MODULES.html.sh (Unicode string functions): Add the new modules.
21099
21100 2007-01-08  Bruno Haible  <bruno@clisp.org>
21101
21102         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
21103         (Depends-on): Add unitypes.
21104         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
21105         (u8_mbtouc_aux): Move out to separate file.
21106         (u8_mbtouc): Use ucs4_t, uint8_t types.
21107         * lib/unistr/utf8-ucs4.c: New file.
21108
21109         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
21110         (Depends-on): Add unitypes.
21111         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
21112         (u16_mbtouc_aux): Move out to separate file.
21113         (u16_mbtouc): Use ucs4_t, uint16_t types.
21114         * lib/unistr/utf16-ucs4.c: New file.
21115
21116         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
21117         (Depends-on): Add unitypes.
21118         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
21119         (u8_uctomb_aux): Move out to separate file.
21120         (u8_uctomb): Use ucs4_t, uint8_t types.
21121         * lib/unistr/ucs4-utf8.c: New file.
21122
21123         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
21124         (Depends-on): Add unitypes.
21125         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
21126         (u16_uctomb_aux): Move out to separate file.
21127         (u16_uctomb): Use ucs4_t, uint16_t types.
21128         * lib/unistr/ucs4-utf16.c: New file.
21129
21130 2006-12-25  Bruno Haible  <bruno@clisp.org>
21131
21132         * modules/unitypes: New file.
21133         * lib/unitypes.h: New file.
21134         * MODULES.html.sh (func_all_modules): New section "Unicode string
21135         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
21136         this section. Add unitypes.
21137
21138 2007-01-08  Bruno Haible  <bruno@clisp.org>
21139
21140         Avoid variable names that conflict with those from libtool.
21141         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
21142         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
21143         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
21144         library_names_spec to acl_library_names_spec, hardcode_* to
21145         acl_hardcode_*.
21146         Reported by Ralf Wildenhues.
21147
21148 2007-01-08  Bruno Haible  <bruno@clisp.org>
21149
21150         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
21151         definition.
21152         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
21153         definition.
21154         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
21155         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
21156         definition.
21157         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
21158         definition.
21159         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
21160         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
21161         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
21162         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
21163         definition.
21164         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
21165         definition.
21166         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
21167         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
21168         GC_USE_<algorithm>.
21169         * lib/gc-libgcrypt.c: Likewise.
21170         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
21171         * modules/gc-arctwo (configure.ac): Likewise.
21172         * modules/gc-des (configure.ac): Likewise.
21173         * modules/gc-hmac-md5 (configure.ac): Likewise.
21174         * modules/gc-hmac-sha1 (configure.ac): Likewise.
21175         * modules/gc-md2 (configure.ac): Likewise.
21176         * modules/gc-md4 (configure.ac): Likewise.
21177         * modules/gc-md5 (configure.ac): Likewise.
21178         * modules/gc-random (configure.ac): Likewise.
21179         * modules/gc-rijndael (configure.ac): Likewise.
21180         * modules/gc-sha1 (configure.ac): Likewise.
21181
21182 2007-01-08  Bruno Haible  <bruno@clisp.org>
21183
21184         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
21185         macro definition.
21186         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
21187         definition.
21188         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
21189         definition.
21190         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
21191         * modules/fcntl-safer (configure.ac): Likewise.
21192         * modules/fopen-safer (configure.ac): Likewise.
21193         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
21194         GNULIB_FWRITEERROR macro definition.
21195
21196 2007-01-08  Bruno Haible  <bruno@clisp.org>
21197
21198         * m4/gnulib-common.m4: New file.
21199         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
21200         (func_get_filelist): Add m4/gnulib-common.m4.
21201
21202 2007-01-08  Bruno Haible  <bruno@clisp.org>
21203
21204         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
21205         command.
21206
21207 2007-01-08  Jim Meyering  <jim@meyering.net>
21208
21209         Use a more robust test for a "can't happen" condition.
21210         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
21211         narrowed the st_size value.  Presuming the "can't happen" condition
21212         is true, that narrowing could conceivably convert an invalid st_size
21213         value into a valid one.  Instead, use a change based on Matthew
21214         Woehlke's original patch.
21215
21216         Slight readability improvement: use an assert-like macro
21217         in place of literal "abort ()" uses.
21218         * lib/fts.c (fts_assert): Define.
21219         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
21220         Use this macro instead of a bare 'abort'.
21221
21222 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
21223
21224         Don't worry about using IRIX 5.3's wctype.h broken definitions;
21225         simply work around them.
21226         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
21227         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
21228         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
21229         declaring.
21230         Don't bother to define as macros, since the standard doesn't require it.
21231         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
21232         longer worry about IRIX 5.3.
21233         (HAVE_WCTYPE_CTMP_BUG): Remove.
21234
21235 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
21236
21237         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
21238         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
21239         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
21240         Problems reported by Georg Schwarz for IRIX 5.3.
21241
21242         * gnulib-tool (autoconf_minversion): Take the maximum version number
21243         found, not the minimum.  Problem reported by James Youngman.
21244
21245 2007-01-03  Karl Berry  <karl@gnu.org>
21246
21247         * doc/error.texi: new file, explaining interaction with progname.
21248         * doc/gnulib.texi: include it.  Update copyright.
21249
21250 2007-01-03  Simon Josefsson  <simon@josefsson.org>
21251
21252         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
21253         AC_CANONICAL_HOST, to improve autobuild outputs.
21254
21255 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
21256             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
21257
21258         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
21259         sockets, server sockets, and other file descriptors.  Count errors
21260         to compute the return value.  Reorder the code a bit to be easier
21261         to follow.  Don't set event bits that were not requested (except
21262         POLLERR and POLLHUP).
21263
21264 2007-01-01  Bruno Haible  <bruno@clisp.org>
21265
21266         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
21267
21268 2007-01-03  Jim Meyering  <jim@meyering.net>
21269
21270         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
21271
21272 2007-01-02  Bruno Haible  <bruno@clisp.org>
21273
21274         * modules/settime (Include): Require timespec.h.
21275         * modules/nanosleep (Include): Likewise.
21276
21277 2007-01-01  Bruno Haible  <bruno@clisp.org>
21278
21279         * gnulib-tool (func_emit_copyright_notice): Bump year.
21280         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
21281
21282 2007-01-01  Bruno Haible  <bruno@clisp.org>
21283
21284         Improve support for OpenBSD.
21285         * build-aux/config.rpath (libname_spec): Export.
21286         (library_names_spec): New variable. Export.
21287         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
21288         library_names_spec from the config.rpath output. Locate shared library
21289         through the name pattern in library_names_spec.
21290
21291 2007-01-01  Eric Blake  <ebb9@byu.net>
21292
21293         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
21294
21295 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
21296
21297         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
21298         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
21299         assume the C locale, and avoid an "eval" that could cause trouble.
21300         Problem with SORT reported by Bob Proulx.
21301
21302         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
21303         Define.  Trivial patch from Henning Nielsen Lund, originally
21304         sent to bug-grep@gnu.org today.
21305
21306 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
21307
21308         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
21309         struct stat.  Problem reported by Henning Nielsen Lund.
21310         * lib/acl.c: Include acl.h first, to check interface.  Don't
21311         bother to include sys/types.h and sys/stat.h again.
21312
21313 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
21314
21315         Import the following change from libc; problem reported by
21316         Sven Verdoolaege.
21317
21318         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
21319
21320         [BZ #1373]
21321         * lib/argp.h: Remove __NTH for __argp_usage inline function.
21322
21323 2006-12-28  Jim Meyering  <jim@meyering.net>
21324
21325         * build-aux/announce-gen: Do not assume that the package
21326         builds any of tar.gz, tar.bz2, and .xdelta files.
21327         Suggestion from Simon Josefsson.
21328
21329 2006-12-28  Simon Josefsson  <simon@josefsson.org>
21330
21331         * modules/announce-gen: New file.
21332
21333 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
21334
21335         * lib/mbchar.h: Just include <wctype.h>; the wctype module
21336         handles its gotchas now.
21337         * lib/mbswidth.c: Likewise.
21338         * lib/wcwidth.h: Likewise.
21339         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
21340         and iswcntrl; the wctype module does this stuff now.
21341         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
21342         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
21343         * modules/mbchar (Depends-on): Add wctype.
21344         * modules/mbswidth (Depends-on): Likewise.
21345         * modules/wcwidth (Depends-on): Likewise.
21346
21347 2006-12-27  Eric Blake  <ebb9@byu.net>
21348
21349         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
21350         module uses more than what <wctype.h> is required to provide.
21351
21352 2006-12-26  Eric Blake  <ebb9@byu.net>
21353
21354         * gnulib-tool (sed_extract_prog): Avoid space-tab.
21355
21356 2006-12-26  Eric Blake  <ebb9@byu.net>
21357
21358         * modules/absolute-header: New module.
21359         * modules/fcntl (Depends-on): Depend on it.
21360         * modules/inttypes (Depends-on): Likewise.
21361         * modules/stdint (Depends-on): Likewise.
21362         * modules/sys_stat (Depends-on): Likewise.
21363         * modules/wctype (Depends-on): Likewise.
21364         * MODULES.html.sh (Support for building libraries and
21365         executables): Document it.
21366
21367 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
21368
21369         * gnulib-tool (SED): Remove, undoing previous change.
21370         The problem was that it broke coreutils on Solaris, because
21371         "sed --posix" leaked into a makefile.
21372         (sed): New alias, if 'alias' and GNU sed.
21373
21374 2006-12-24  Jim Meyering  <jim@meyering.net>
21375
21376         Work around an fchownat bug in glibc-2.4:
21377         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
21378         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
21379         in spite of the -P option.
21380         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
21381         New macros.
21382         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
21383         * modules/openat (Files): Add lib/fchownat.c.
21384         * lib/openat.c (fchownat): Don't define here.  Move to...
21385         * lib/fchownat.c: ...this new file.
21386
21387 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
21388
21389         Fix bug reported by Bruno Haible in
21390         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
21391         where quotearg.c didn't compile on Mac OS X 10.2 because it
21392         lacks <wchar.h> and wint_t.
21393         * lib/wctype_.h (__wctype_wint_t): New type.
21394         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
21395         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
21396         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
21397         Arg is now of type __wctype_wint_t, not wint_t.
21398         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
21399         substitute HAVE_WINT_T.
21400         * modules/wctype (Files): Add m4/wint_t.m4.
21401         (wctype.h): Substitute HAVE_WINT_T.
21402
21403 2006-12-23  Bruno Haible  <bruno@clisp.org>
21404
21405         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
21406
21407 2006-12-23  Bruno Haible  <bruno@clisp.org>
21408
21409         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
21410         S_ISLNK.
21411         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
21412         mingw.
21413
21414 2006-12-22  Bruno Haible  <bruno@clisp.org>
21415
21416         * lib/copy-file.c: Include acl.h.
21417         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
21418         Close the file descriptors only after being done with copy_acl.
21419         * modules/copy-file (Depends-on): Add acl.
21420
21421 2006-12-22  Bruno Haible  <bruno@clisp.org>
21422
21423         * gnulib-tool (SED): New variable.
21424         Use $SED instead of sed everywhere.
21425
21426 2006-12-22  Bruno Haible  <bruno@clisp.org>
21427
21428         * modules/no-c++: New file.
21429         * m4/no-c++.m4: New file.
21430         * MODULES.html.sh (Support for building libraries and executables):
21431         Add no-c++.
21432
21433 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
21434
21435         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
21436         Include <limits.h>, and use its INT_MAX to rewrite the
21437         j loop so that it does not overflow 'int'.  Problem reported by
21438         Ralf Wildenhues in
21439         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
21440         Play it safe by shifting left by 1 rather than multiplying by 2,
21441         as GCC is less likely to optimize this away when the value
21442         is signed (when it assumes overflow leads to undefined behavior).
21443         Also, don't assume time_t uses two's complement.
21444
21445 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
21446
21447         * MODULES.html.sh: New module wctype.
21448         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
21449         * lib/fnmatch.c: Don't bother to include <wchar.h> before
21450         <wctype.h>, since the new wctype module should fix this.
21451         * lib/quotearg.c: Include <wctype.h> unconditionally, since
21452         the wctype module should arrange for it.
21453         * lib/regex_internal.h: Likewise.
21454         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
21455         since the wctype module should handle this now.
21456         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
21457         * modules/fnmatch (Depends-on): Add wctype.
21458         * modules/quotearg (Depends-on): Likewise.
21459         * modules/regex (Depends-on): Likewise.
21460
21461 2006-12-19  Bruno Haible  <bruno@clisp.org>
21462
21463         * lib/strdup.h [C++]: Wrap definitions in extern "C".
21464         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
21465
21466 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21467
21468         * modules/savewd (Depends-on): Fix dependency on fcntl.
21469
21470 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
21471
21472         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
21473         conforms to C99, rather than relying on the user's environment
21474         setting of STDINT_H.
21475
21476 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
21477         and Eric Blake  <ebb9@byu.net>
21478
21479         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
21480         This is more consistent with the other defines here.
21481         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
21482         Port to z/OS.  Problem reported by Paul Gilmartin.
21483         Change local vars to use gl_ prefix rather than ac_.
21484         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
21485         with other defines.
21486         * modules/double-slash-root: New module.
21487         * modules/dirname (Files): Remove m4/double-slash-root.m4.
21488         (Depends-on): Add double-slash-root.
21489         * MODULES.html.sh (File system functions): Mention new module.
21490
21491 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
21492
21493         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
21494         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
21495         This is for the benefit of gzip, which doesn't do i18n.
21496
21497 2006-12-12  Jim Meyering  <jim@meyering.net>
21498
21499         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
21500         Reported by Andreas Schwab <schwab@suse.de>.
21501
21502 2006-12-12  Bruno Haible  <bruno@clisp.org>
21503
21504         Merge these changes.
21505         2006-09-05  Bruno Haible  <bruno@clisp.org>
21506         * lib/iconvme.c (iconv_string): No need to save and restore errno when
21507         iconv_alloc succeeded.
21508         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
21509         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
21510         test for " && dest " at the end - dest is always != NULL there. Call
21511         iconv with 4xNULL arguments initially, to reset the state. Call iconv
21512         with 2xNULL arguments, also to flush the state storage. Handle the
21513         IRIX iconv behaviour. Realloc the final result, to throw away unused
21514         memory.
21515
21516 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
21517
21518         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
21519         and fchmodat unconditionally, since glibc 2.4 has them.
21520         Problem reported by Arkadiusz Miskiewicz.
21521
21522 2006-12-10  Bruno Haible  <bruno@clisp.org>
21523
21524         * gnulib-tool (func_import): Show the include files only for those
21525         modules that are copied and specified.
21526         Reported by Karl Berry.
21527
21528 2006-12-08  Jim Meyering  <jim@meyering.net>
21529
21530         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
21531         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
21532
21533         * build-aux/announce-gen: Add two new options, both optional:
21534         --bootstrap-tools=TOOL_LIST
21535               a comma-separated list of tools, e.g.,
21536               autoconf,automake,bison,gnulib
21537         --gnulib-snapshot-date=DATE
21538               if gnulib is in the bootstrap tool list,
21539               then report this as the snapshot date.
21540               If not specified, use the current date/time.
21541               If you specify a date here, be sure it's UTC.
21542
21543 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21544
21545         * tests/test-argp-2.sh: Fix test to match actual output.
21546         (func_compare): Fix sed script to be portable.
21547
21548 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
21549
21550         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
21551         workaround for this case.  It is not autoconfigured now; offhand
21552         it's hard to see how to autoconfigure it.
21553
21554 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
21555
21556         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
21557         a directory that is about to be chowned.  Such a directory's
21558         initial file permissions should permit the owner only and this
21559         should not be changed until after the chown, since the group and
21560         other bits would be incorrect if they granted permission before
21561         the chown.
21562
21563         Fix porting problem for iswctype reported by Georg Schwarz in:
21564         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
21565         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
21566         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
21567         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
21568         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
21569
21570 2006-12-03  Jim Meyering  <jim@meyering.net>
21571
21572         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
21573         p->fts_statp may not yet be defined.
21574         (fts_read): Instead, set it in the caller, once p->fts_statp is
21575         sure to be defined, and corresponds to a top-level directory.
21576         This bug made du -x fail.  Here's the coreutils test case:
21577         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
21578         Reported by Mike Frysinger.
21579
21580 2006-12-01  Jim Meyering  <jim@meyering.net>
21581
21582         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
21583         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
21584         Reported by Simon Josefsson.
21585
21586 2006-11-30  Jim Meyering  <jim@meyering.net>
21587
21588         * m4/warning.m4: Use the all-permissive copyright notice
21589         recommended by RMS (rather than LGPL).
21590         * m4/vararrays.m4: Likewise.
21591         * m4/flexmember.m4: Likewise.
21592
21593 2006-11-29  Bruno Haible  <bruno@clisp.org>
21594
21595         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
21596         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
21597         using +=.
21598         Reported by Simon Josefsson <simon@josefsson.org>.
21599
21600 2006-11-28  James Youngman <jay@gnu.org>
21601
21602         * README: Advise users that they might find the bug-gnulib@gnu.org
21603         and autotools-announce@gnu.org mailing lists useful.
21604
21605 2006-11-28  Bruno Haible  <bruno@clisp.org>
21606
21607         * m4/ptrdiff_max.m4: Remove file.
21608
21609 2006-11-21  Bruno Haible  <bruno@clisp.org>
21610
21611         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
21612         _AC_COMPUTE_INT.
21613         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
21614         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
21615         _AC_COMPUTE_INT.
21616         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
21617         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
21618         _AC_COMPUTE_INT.
21619         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
21620
21621 2006-11-28  Jim Meyering  <jim@meyering.net>
21622
21623         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
21624         warning from "gcc -Wshadow" about shadowing the builtin.
21625
21626 2006-11-27  Bruno Haible  <bruno@clisp.org>
21627
21628         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
21629         _AC_COMPUTE_INT.
21630         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
21631
21632 2006-11-27  Bruno Haible  <bruno@clisp.org>
21633             Paul Eggert  <eggert@cs.ucla.edu>
21634
21635         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
21636
21637 2006-11-26  Bruno Haible  <bruno@clisp.org>
21638
21639         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
21640         noinst_LTLIBRARIES.
21641
21642 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
21643             Bruno Haible  <bruno@clisp.org>
21644
21645         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
21646         if compiling with "gcc -ansi".
21647
21648 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
21649
21650         Fix some incompatibilities with gcc -ansi -pedantic.
21651         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
21652         if compiling pedantically with GCC, unless it's C99 or later.
21653         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
21654         it mishandles gcc -ansi -pedantic as well.
21655         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
21656         if gcc -pedantic.
21657         * lib/regexec.c (check_node_accept_bytes): Don't use auto
21658         initializers for struct if -pedantic, unless it's C99 or later.
21659
21660 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
21661
21662         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
21663         Don't close an fd more than once. Identical atimes indicate
21664         success, not failure.
21665
21666 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
21667
21668         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
21669
21670 2006-11-23  Jim Meyering  <jim@meyering.net>
21671
21672         * build-aux/announce-gen: New file.  From coreutils.
21673
21674 2006-11-22  Jim Meyering  <jim@meyering.net>
21675
21676         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
21677         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
21678         (fts_read): Use a temporary to narrow the overused st_size member
21679         before using it in a switch statement.  Reported by Matthew Woehlke.
21680
21681         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
21682         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
21683
21684 2006-11-20  Bruno Haible  <bruno@clisp.org>
21685
21686         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
21687         changequote instead of pairs of brackets.
21688         Reported by Andreas Schwab <schwab@suse.de>.
21689
21690 2006-11-21  Jim Meyering  <jim@meyering.net>
21691
21692         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
21693         so as to remain compatible with older compilers.
21694         Patch from Michael Deutschmann.
21695
21696 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
21697
21698         * MODULES.html.sh (File system functions): Add openat.
21699
21700         * lib/openat.h (rpl_fstatat): New macro, if
21701         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
21702         (fstatat): Define to rpl_fstatat under the same conditions,
21703         unless COMPILING_FSTATAT.
21704         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
21705         seems to have the bug.
21706         * lib/fstatat.c: New file.
21707         * modules/openat (Files): Add it.
21708
21709 2006-11-20  Bruno Haible  <bruno@clisp.org>
21710
21711         * Makefile: New file.
21712
21713 2006-11-20  Jim Meyering  <jim@meyering.net>
21714
21715         The beginnings of syntax-related checks for gnulib.
21716         * lib/Makefile: New file.
21717         * lib/t-idcache: New script.  Ensure that the two halves of
21718         idcache.c stay in sync.
21719
21720         * lib/idcache.c: Adjust comments in user- and group- portions to
21721         be more accurate, and to be consistent with one another.
21722
21723 2006-11-20  Jim Meyering  <jim@meyering.net>
21724
21725         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
21726         continue using the flexible array member (thus, this module performs
21727         half as many malloc calls), with the addition that...
21728         (getgroup, getuser): Consistently record a non-match via an empty
21729         "name" string, and map an empty string match to a NULL return value.
21730         * modules/idcache (Depends-on): Re-add flexmember.
21731
21732         * lib/idcache.c (getuser): Remove all uses of the register keyword.
21733         (getuidbyname, getgroup, getgidbyname): Likewise.
21734
21735         Use cleaner syntax: NULL rather than 0.
21736         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
21737
21738 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
21739
21740         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
21741         It mishandled the case where the group was missing.
21742         Problem reported by Greg Schafer.
21743         * modules/idcache: Likewise.
21744
21745 2006-11-18  Jim Meyering  <jim@meyering.net>
21746
21747         * check-module (%exempt_header): Add exception for some
21748         conditionally-included headers.
21749
21750         * modules/i-ring (Depends-on): Add verify.
21751         (License): Change to LGPL.
21752
21753 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
21754
21755         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
21756         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
21757         and inttostr.h.  Use snprintf rather than uinttostr, so that
21758         LGPLed code doesn't depend on GPLed.
21759
21760 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
21761
21762         * modules/inline (License): Change from GPL to LGPL.
21763
21764 2006-11-17  Jim Meyering  <jim@meyering.net>
21765
21766         * modules/d-type (License): Switch to LGPL.
21767
21768 2006-11-15  Bruno Haible  <bruno@clisp.org>
21769
21770         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
21771
21772 2006-11-15  Eric Blake  <ebb9@byu.net>
21773
21774         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
21775         the module dependency.
21776
21777 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
21778             Bruno Haible  <bruno@clisp.org>
21779
21780         * gnulib-tool (func_create_testdir): Add license consistency check.
21781
21782 2006-11-15  Eric Blake  <ebb9@byu.net>
21783
21784         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
21785         random "(cached)" in configure output.
21786
21787 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21788
21789         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
21790         test for conforming inttypes.h is both announced and cached.
21791
21792         * MODULES.html.sh (seen_modules, seen_files): New variables.
21793         (func_module): Rewrite to use a few less gnulib-tool and sed
21794         invocations.  Avoid a couple of quadratic algorithms for ...
21795         (missed_modules, missed_files): ... these, with ...
21796         (func_append, func_tmpdir): ... these new functions, from
21797         gnulib-tool.  Analogously, install traps for cleanup.
21798
21799         * tests/test-gc.c (main): Remove unused variables.
21800         * tests/test-read-file.c: Include stdlib.h, for 'free'.
21801
21802 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
21803
21804         * modules/inttostr (License): Change to LGPL.
21805
21806 2006-11-14  Eric Blake  <ebb9@byu.net>
21807
21808         * modules/tempname (License): Change to LGPL.
21809
21810 2006-11-14  Eric Blake  <ebb9@byu.net>
21811
21812         * doc/functions.texi (Function Portability): *printf functions on
21813         Cygwin now understand all POSIX size specifiers.
21814
21815 2006-11-14  Bruno Haible  <bruno@clisp.org>
21816
21817         * modules/c-ctype (License): Change to LGPL.
21818
21819 2006-11-12  Bruno Haible  <bruno@clisp.org>
21820
21821         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
21822         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
21823         for GNOME libraries, for which the include files are installed in
21824         subdirectories of $prefix/include.
21825
21826 2006-11-12  Bruno Haible  <bruno@clisp.org>
21827
21828         * m4/lib-link.m4: Require at least autoconf-2.54.
21829         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
21830         name to underscores for the --with option.
21831
21832 2006-11-13  Bruno Haible  <bruno@clisp.org>
21833
21834         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
21835         the tests directory.
21836         Reported by Ralf Wildenhues.
21837
21838 2006-11-13  Bruno Haible  <bruno@clisp.org>
21839
21840         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
21841         (func_emit_initmacro_end): Undo the override here.
21842         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
21843         Works around the famous automake error in coreutils.
21844
21845 2006-11-13  Eric Blake  <ebb9@byu.net>
21846
21847         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
21848         element, not its node.
21849
21850 2006-11-12  Bruno Haible  <bruno@clisp.org>
21851
21852         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
21853         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
21854
21855 2006-11-12  Bruno Haible  <bruno@clisp.org>
21856
21857         * gnulib-tool: New option --local-symlink.
21858         (func_usage): Document it.
21859         (lsymbolic): New variable.
21860         (func_import, func_create_testdir): If --symlink was not specified,
21861         test whether --local-symlink was specified and the file comes from
21862         the local_gnulib_dir.
21863
21864 2006-11-12  Bruno Haible  <bruno@clisp.org>
21865
21866         * gnulib-tool (func_ln): New function.
21867         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
21868
21869 2006-11-12  Bruno Haible  <bruno@clisp.org>
21870
21871         Finish support for source files in subdirectories.
21872         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
21873         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
21874         AUTOMAKE_OPTIONS.
21875         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
21876
21877 2006-11-12  Bruno Haible  <bruno@clisp.org>
21878
21879         * gnulib-tool (func_get_automake_snippet): Synthesize also an
21880         EXTRA_lib_SOURCES augmentation.
21881         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
21882
21883 2006-11-12  Jim Meyering  <jim@meyering.net>
21884
21885         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
21886         file descriptors.  This also averts a failure on systems with
21887         native openat support when a traversed directory lacks "x" access.
21888         * lib/fts_.h: Include "i-ring.h"
21889         (struct FTS) [fts_fd_ring]: New member.
21890         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
21891         (FCHDIR): Add parentheses.
21892         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
21893         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
21894         When descending, rather than simply closing the previous
21895         fts_cwd_fd value, push that file descriptor onto the ring.
21896         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
21897         (fts_open): Initialize the new fd_ring member.
21898         (fts_close): Clear the ring.
21899         (fts_safe_changedir): When possible, use our new fd_ring to skip
21900         the diropen and fstat and dev/ino comparison that would normally
21901         accompany a virtual `chdir ("..")'.
21902
21903         * modules/fts (Depends-on): Add i-ring.
21904         * modules/i-ring: New module.
21905         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
21906         * m4/i-ring.m4: New file.
21907
21908 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21909
21910         * gnulib-tool (func_create_testdir): Fix replacement of
21911         `build-aux' in configure.ac.  Run autotools in gltests
21912         subdirectory.
21913         (func_create_testdir, func_create_megatestdir, test): There is
21914         no need for '--force' in most autotool invocations in a new
21915         tree.  Actually fail the whole test if any of the tools, or the
21916         configure or make stages fail.
21917
21918         Sync from Automake.
21919         * build-aux/gnupload: Revert last change.  Add pointer to upload
21920         instructions of the GNU Maintenance Instructions.
21921         Suggestion by Karl Berry.
21922
21923 2006-11-10  Jim Meyering  <jim@meyering.net>
21924
21925         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
21926
21927 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
21928
21929         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
21930         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
21931         (bind_textdomain_codeset) [! ENABLE_NLS]:
21932         Evaluate all the arguments.  That way, callers get compatible behavior
21933         if the arguments have side effects.  Also, it avoids some GCC
21934         diagnostics in some cases; Joel E. Denny reported problems when Bison
21935         was configured with --enable-gcc-warnigs.
21936
21937 2006-11-10  Jim Meyering  <jim@meyering.net>
21938
21939         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
21940         relevant options in CFLAGS (like -O, -fno-inline) are taken into
21941         account.
21942
21943 2006-11-10  Jim Meyering  <jim@meyering.net>
21944
21945         * modules/inline: New file/module.
21946         * modules/xalloc (Files): Remove m4/inline.m4.
21947         (Depends-on): Add inline, instead.
21948         * modules/oset: Likewise.
21949         * modules/list: Likewise.
21950
21951 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
21952
21953         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
21954         Problem reported by Matthew Woehlke.
21955
21956 2006-11-09  Bruno Haible  <bruno@clisp.org>
21957
21958         * lib/tempname.c (gen_tempname): Remove variant that invokes
21959         __gen_tempname.
21960         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
21961         __gen_tempname.
21962
21963 2006-11-08  Bruno Haible  <bruno@clisp.org>
21964
21965         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
21966         to 'yes' instead of 'cross-compiling'.
21967
21968 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
21969
21970         * lib/quotearg.h (quotearg_free): New decl.
21971         * lib/quotearg.c (quotearg_free): New function.
21972         (slot0, nslots, slotvec0, slotvec):
21973         Now file-scope so that quotearg_free can get at them.
21974
21975 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21976
21977         Sync from Automake.
21978         * build-aux/gnupload: Add missing 'gnu' to example URL.
21979         Report by Karl Berry.
21980
21981 2006-11-08  Bruno Haible  <bruno@clisp.org>
21982
21983         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
21984         Suggested by Paul Eggert.
21985
21986 2006-11-08  Jim Meyering  <jim@meyering.net>
21987
21988         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
21989         It's already included if !_LIBC.
21990         (fts_safe_changedir): Add a comment.
21991
21992 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
21993
21994         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
21995         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
21996         Matthew Woehlke.
21997
21998         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
21999         definitions up, to avoid colliding with change below.
22000         (static_inline) [HAVE_INLINE]: New macro.
22001         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
22002         Provide extern decls when !HAVE_INLINE.  Do not define unless
22003         static_inline is defined, either by us or by xmalloc.c.  Use
22004         static_inline rather than static inline.
22005         (XCALLOC): Optimize sizeof(T) = 1 case.
22006         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
22007
22008 2006-11-07  Bruno Haible  <bruno@clisp.org>
22009
22010         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
22011         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
22012         AC_C_INLINE.
22013         * modules/xalloc (Files): Add m4/inline.m4.
22014
22015 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22016
22017         * README: Fix typo.
22018         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
22019         (Miscellanous Notes): ...from this.
22020
22021 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
22022
22023         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
22024         Mention that offsetof should be used instead of sizeof.
22025         From Bruno Haible.
22026
22027 2006-11-07  Bruno Haible  <bruno@clisp.org>
22028
22029         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
22030
22031 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
22032
22033         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
22034         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
22035         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
22036         (gl_tree_add_before, gl_tree_add_after):
22037         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
22038         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
22039         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
22040         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
22041         (gl_linked_add_after, gl_linked_add_at): Likewise.
22042         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
22043         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
22044         (gl_tree_add_before, gl_tree_add_after): Likewise.
22045         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
22046         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
22047         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
22048
22049 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22050
22051         * lib/gl_oset.h: Use C comment style, not C++ comment style.
22052
22053 2006-11-06  Bruno Haible  <bruno@clisp.org>
22054
22055         * m4/inline.m4: New file.
22056         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
22057         * modules/list (Files): Add m4/inline.m4.
22058         * modules/oset (Files): Likewise.
22059
22060 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
22061
22062         * lib/idcache.c: Include <stddef.h>, for offsetof.
22063         (struct userid.name): Change from char * to a flexible array member.
22064         All uses changed.
22065         * modules/idcache (Depends-on): Add flexmember.
22066
22067         * MODULES.html.sh (Core language properties): New module flexmember.
22068         * modules/flexmember, m4/flexmember.m4: New files.
22069
22070         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
22071         inline functions that are identical with the old xnmalloc_inline,
22072         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
22073         that we can avoid some unnecessary integer multiplications and
22074         divisions in the common case where the element size is known at
22075         compile time.
22076         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
22077         needed.
22078         (xnboundedmalloc): Remove.
22079         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
22080         arguments, for consistency with rest of this header.
22081         (xcharalloc): Rewrite using XNMALLOC.
22082         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
22083         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
22084         versions have been moved to lib/xalloc.h and renamed to be the
22085         non-*_inline versions.
22086         (xmalloc, xrealloc): Implement without reference to the xnmalloc
22087         and xnrealloc functions, since those functions are now inline and
22088         now call us.
22089         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
22090         renaming described above.
22091         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
22092         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
22093         captures the dependency in AC_C_INLINE.
22094
22095         New module canonicalize-lgpl, proposed by Charles Wilson in
22096         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
22097         with a few small changes afterwards.
22098         * MODULES.html.sh (File system functions): New module
22099         canonicalize-lgpl.
22100         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
22101         and canonicalize_file_name.
22102         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
22103         * modules/canonicalize-lgpl: New files.
22104
22105 2006-11-05  Bruno Haible  <bruno@clisp.org>
22106
22107         * gnulib-tool (func_import, func_create_testdir): Create directories
22108         also for files in subdirectories of lib/.
22109
22110 2006-11-05  Bruno Haible  <bruno@clisp.org>
22111
22112         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
22113         ANSI C compliant.
22114
22115 2006-11-03  Bruno Haible  <bruno@clisp.org>
22116
22117         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
22118         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
22119         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
22120         (xnboundedmalloc): New inline function.
22121         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
22122         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
22123         xmalloc.
22124         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
22125         xmalloc.
22126         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
22127         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
22128         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
22129         xmalloc.
22130         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
22131         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
22132         xmalloc.
22133         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
22134         gl_tree_add_after): Use XMALLOC instead of xmalloc.
22135         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
22136         xmalloc.
22137         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
22138         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
22139         gl_tree_add_after): Use XMALLOC instead of xmalloc.
22140         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
22141         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
22142         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
22143         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
22144
22145 2006-11-03  Bruno Haible  <bruno@clisp.org>
22146
22147         * lib/c-ctype.h [C++]: Define functions without name mangling.
22148         * lib/fwriteerror.h [C++]: Likewise.
22149         * lib/gcd.h [C++]: Likewise.
22150         * lib/linebreak.h [C++]: Likewise.
22151
22152 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
22153
22154         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
22155         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
22156         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
22157         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
22158         Check for functions and headers just once.
22159         Check for declaration of canonicalize_file_name.
22160         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
22161
22162 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
22163
22164         * gnulib-tool (func_import): Fix typo in actioncmd.
22165
22166 2006-11-02  Bruno Haible  <bruno@clisp.org>
22167
22168         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
22169         newline sequence in the Makefile.am snippet as a space, like "make"
22170         does.
22171         Reported by Roger Persson <perrog@gmail.com>.
22172
22173 2006-11-01  Bruno Haible  <bruno@clisp.org>
22174
22175         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
22176         already declared in <string.h>.
22177         * lib/strcase.h (strncasecmp): Don't declare it if yes.
22178
22179 2006-11-01  Bruno Haible  <bruno@clisp.org>
22180
22181         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
22182         * lib/strcase.h: Include <string.h>.
22183         (strcasecmp): Define to rpl_strcasecmp here.
22184
22185 2006-11-01  Bruno Haible  <bruno@clisp.org>
22186
22187         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
22188
22189 2006-11-01  Eric Blake  <ebb9@byu.net>
22190
22191         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
22192
22193         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
22194
22195 2006-10-29  Bruno Haible  <bruno@clisp.org>
22196
22197         Make it compile in C++ mode.
22198         * lib/full-write.c (full_rw): Add a cast.
22199
22200 2006-11-01  Bruno Haible  <bruno@clisp.org>
22201
22202         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
22203         be POSIX compliant.
22204         Reported by Roger Persson <perrog@gmail.com>.
22205
22206 2006-11-01  Eric Blake  <ebb9@byu.net>
22207
22208         * lib/getopt_.h: Fix comments.
22209
22210 2006-10-31  Eric Blake  <ebb9@byu.net>
22211
22212         * modules/tmpdir (Depends-on): Add sys_stat.
22213         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
22214         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
22215         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
22216         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
22217         tempname.
22218
22219 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
22220
22221         Avoid some C++ diagnostics reported by Bruno Haible.
22222         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
22223         xmalloc.
22224         (quotearg_alloc): Use xcharalloc rather than xmalloc.
22225         (struct slotvec): Move to top level.
22226         (quotearg_n_options): Rewrite to avoid xmalloc.
22227         * lib/xalloc.h (xcharalloc): New function.
22228         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
22229         [defined __cplusplus]: Add function template that provides result
22230         type propagation.  This part of the change is from Bruno Haible.
22231
22232 2006-10-29  Bruno Haible  <bruno@clisp.org>
22233
22234         Make it compile in C++ mode.
22235         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
22236         * lib/strnlen1.c (strnlen1): Cast memchr result.
22237         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
22238         * lib/clean-temp.c (string_equals, string_hash): Add casts.
22239         (create_temp_dir): Rename local variable 'template'.
22240         (compile_csharp_using_sscli): Add cast.
22241         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
22242         * lib/findprog.c (find_in_path): Likewise.
22243         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
22244         * lib/wait-process.c (register_slave_subprocess): Likewise.
22245
22246 2006-10-22  Bruno Haible  <bruno@clisp.org>
22247
22248         * modules/tsearch: New file.
22249         * lib/tsearch.h: New file.
22250         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
22251         * m4/tsearch.m4: New file.
22252         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
22253
22254 2006-10-29  Eric Blake  <ebb9@byu.net>
22255
22256         * lib/arcfour.c: Assume config.h.
22257         * lib/arctwo.c: Likewise.
22258         * lib/base64.c: Likewise.
22259         * lib/check-version.c: Likewise.
22260         * lib/crc.c: Likewise.
22261         * lib/des.c: Likewise.
22262         * lib/gc-gnulib.c: Likewise.
22263         * lib/gc-libgcrypt.c: Likewise.
22264         * lib/gc-pbkdf2-sha1.c: Likewise.
22265         * lib/getaddrinfo.c: Likewise.
22266         * lib/getdelim.c: Likewise.
22267         * lib/getline.c: Likewise.
22268         * lib/hmac-md5.c: Likewise.
22269         * lib/hmac-sha1.c: Likewise.
22270         * lib/iconvme.c: Likewise.
22271         * lib/md2.c: Likewise.
22272         * lib/md4.c: Likewise.
22273         * lib/memxor.c: Likewise.
22274         * lib/read-file.c: Likewise.
22275         * lib/readline.c: Likewise.
22276         * lib/rijndael-alg-fst.c: Likewise.
22277         * lib/rijndael-api-fst.c: Likewise.
22278         * lib/xgetdomainname.c: Likewise.
22279
22280 2006-10-28  Eric Blake  <ebb9@byu.net>
22281
22282         * lib/xstrndup.c: Assume config.h.
22283
22284 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
22285
22286         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
22287         stat-macros.h is now for our own macros, whereas stat_h is for
22288         macros in the <sys/stat.h> name space.
22289         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
22290         (STAT_MACROS_H): Remove.
22291         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
22292         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
22293         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
22294         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
22295         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
22296         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
22297         Move these macros to ...
22298         * lib/stat_.h: here.  Don't include stat-macros.h.
22299         * lib/canonicalize.c: Don't include stat-macros.h.
22300         * lib/chown.c: Likewise.
22301         * lib/euidaccess.c: Likewise.
22302         * lib/file-type.c: Likewise.
22303         * lib/filemode.c: Likewise.
22304         * lib/glob.c: Likewise.
22305         * lib/isapipe.c: Likewise.
22306         * lib/lchown.c: Likewise.
22307         * lib/lstat.c: Likewise.
22308         * lib/mkdir-p.c: Likewise.
22309         * lib/rmdir.c: Likewise.
22310         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
22311         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
22312         unless mkdir isn't declared, to speed up 'configure'.
22313         Always create sys/stat.h, since it's unlikely any real sys/stat.h
22314         would define all the S_* symbols.
22315         * modules/canonicalize (Depends-on):
22316         Depend on sys_stat, not stat-macros.
22317         * modules/chown: Likewise.
22318         * modules/euidaccess: Likewise.
22319         * modules/filemode: Likewise.
22320         * modules/file-type: Likewise.
22321         * modules/glob: Likewise.
22322         * modules/isapipe: Likewise.
22323         * modules/lchown: Likewise.
22324         * modules/lstat: Likewise.
22325         * modules/mkancesdirs: Likewise.
22326         * modules/rmdir: Likewise.
22327         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
22328         * modules/modechange: Likewise.
22329         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
22330         (configure.ac): Remove gl_STAT_MACROS.
22331         * modules/sys_stat (Depends-on): Remove stat-macros.
22332
22333 2006-10-27  Bruno Haible  <bruno@clisp.org>
22334
22335         * m4/signed.m4: Remove file.
22336         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
22337         invocation.
22338         * modules/vasnprintf (Files): Remove m4/signed.m4.
22339
22340 2006-10-27  Bruno Haible  <bruno@clisp.org>
22341
22342         Update to GNU gettext 0.16.
22343         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
22344         m4/inttypes-h.m4, m4/signed.m4.
22345         * m4/gettext.m4: Update to GNU gettext 0.16.
22346         * m4/intl.m4: New file, from GNU gettext.
22347         * m4/intldir.m4: New file, from GNU gettext.
22348         * config/srclist.txt: Update
22349
22350 2006-10-27  Eric Blake  <ebb9@byu.net>
22351
22352         * MODULES.html.sh: Document tempname.
22353         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
22354         dependencies.
22355         (Files): Move lib/tempname.c...
22356         * modules/tempname: ...to this new module.
22357         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
22358         (gl_PREREQ_TEMPNAME): Move...
22359         * m4/tempname.m4: ...to this new file.
22360         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
22361         * modules/sys_stat (Depends-on): Add stat-macros.
22362         * lib/stat_.h (includes): Pick up stat macros.
22363         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
22364         if stat macros are broken.
22365         * lib/tempname.c (includes): No need to include "stat-macros.h".
22366         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
22367         (direxists, __path_search) [!_LIBC]: Don't compile these in
22368         gnulib; the tmpdir module covers that.
22369         * lib/tempname.h: New file.
22370
22371 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
22372
22373         * COPYING: Explain how gnulib-tool converts licence headers.
22374         Almost all wording by Eric Blake.
22375
22376 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
22377
22378         * lib/mbchar.h (is_basic_table): Make read-only.
22379         * lib/mbchar.c (is_basic_table): Likewise.
22380         Reported by John Darrington.
22381
22382 2006-10-25  Bruno Haible  <bruno@clisp.org>
22383
22384         * lib/progname.h (set_program_name): Undefine before defining.
22385
22386 2006-10-25  Bruno Haible  <bruno@clisp.org>
22387
22388         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
22389         false for non-gcc C++ compilers.
22390         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
22391
22392 2006-10-24  Bruno Haible  <bruno@clisp.org>
22393
22394         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
22395         iconv implementations like Irix iconv.
22396
22397 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
22398
22399         * modules/vararrays: New file.
22400         * m4/vararrays.m4: New file, taken from diffutils.
22401         * MODULES.html.sh: New module vararrays.
22402
22403 2006-10-24  Karl Berry  <karl@gnu.org>
22404
22405         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
22406         Don't call GNU Unix.
22407
22408 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22409
22410         * users.txt: Add Libtool.
22411
22412         Sync from Libtool:
22413
22414         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
22415
22416         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
22417         to gnulib's policy of including config.h unconditionally.
22418
22419 2006-10-24  Bruno Haible  <bruno@clisp.org>
22420
22421         * modules/wcwidth (Files): Add m4/wint_t.m4.
22422         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
22423         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
22424
22425 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
22426
22427         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
22428         to pacify GCC with some -W flags enabled.  Problem reported by
22429         Bruno Haible.
22430
22431 2006-10-24  Jim Meyering  <jim@meyering.net>
22432
22433         * MODULES.html.sh: Remove uinttostr.  It's not a module.
22434         Reported by Karl Berry.
22435
22436 2006-10-23  Bruno Haible  <bruno@clisp.org>
22437
22438         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
22439
22440 2006-10-24  Bruno Haible  <bruno@clisp.org>
22441
22442         * lib/gl_list.h: Use C comment style, not C++ comment style.
22443
22444 2006-10-23  Eric Blake  <ebb9@byu.net>
22445
22446         * lib/getaddrinfo.c (includes): Add missing include.
22447
22448 2006-10-23  Bruno Haible  <bruno@clisp.org>
22449             Paul Eggert  <eggert@cs.ucla.edu>
22450
22451         Ability to rename obstack_free.
22452         * lib/obstack.h (__obstack_free): New macro. Declare instead of
22453         obstack_free.
22454         (obstack_free): Invoke the __obstack_free macro.
22455         * lib/obstack.c (obstack_free): Use __obstack_free macro.
22456
22457 2006-10-23  Bruno Haible  <bruno@clisp.org>
22458             Paul Eggert  <eggert@cs.ucla.edu>
22459
22460         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
22461         __argc, __argv from the declaration. (They are defined as macros on
22462         mingw.)
22463
22464 2006-10-22  Bruno Haible  <bruno@clisp.org>
22465
22466         * doc/gnulib-intro.texi: New file.
22467         * doc/gnulib.texi: Include it.
22468
22469 2006-10-21  Bruno Haible  <bruno@clisp.org>
22470
22471         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
22472         "Introduction", "Miscellanous Notes", "Particular Modules".
22473
22474 2006-10-21  Bruno Haible  <bruno@clisp.org>
22475
22476         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
22477         Change mostlyclean-local rule to avoid sh syntax error from bash
22478         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
22479
22480 2006-10-23  Jim Meyering  <jim@meyering.net>
22481
22482         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
22483         in place of snprintf.
22484
22485         * modules/inttostr (Files): Add lib/uinttostr.c.
22486         * lib/uinttostr.c (inttostr): New file/function.
22487         * lib/inttostr.h (uinttostr): Declare.
22488         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
22489         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
22490         Add uinttostr.
22491         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
22492
22493 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
22494
22495         * lib/canonicalize.c (ELOOP): Define if not already defined.
22496         Problem reported by Bruno Haible in
22497         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
22498
22499 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
22500
22501         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
22502         Problem reported by Perry Smith and Ville Laurikari.
22503
22504         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
22505         uses.
22506
22507 2006-10-19  Bruno Haible  <bruno@clisp.org>
22508
22509         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
22510         for mingw.
22511
22512 2006-10-19  Bruno Haible  <bruno@clisp.org>
22513
22514         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
22515         Needed for mingw.
22516
22517 2006-10-19  Bruno Haible  <bruno@clisp.org>
22518
22519         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
22520
22521 2006-10-19  Bruno Haible  <bruno@clisp.org>
22522
22523         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
22524         it.
22525
22526 2006-10-19  Bruno Haible  <bruno@clisp.org>
22527
22528         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
22529         invocation.
22530
22531 2006-10-19  Bruno Haible  <bruno@clisp.org>
22532
22533         * gnulib-tool (func_create_testdir): Don't include ftruncate and
22534         mountlist by default.
22535
22536 2006-10-16  Bruno Haible  <bruno@clisp.org>
22537
22538         * lib/c-strstr.c: Include c-strstr.h.
22539
22540 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
22541
22542         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
22543         in a slash.
22544
22545 2006-10-18  Bruno Haible  <bruno@clisp.org>
22546
22547         * lib/lock.h [C++]: Wrap definitions in extern "C".
22548
22549 2006-10-18  Bruno Haible  <bruno@clisp.org>
22550
22551         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
22552         gl_LIBOBJS list.
22553
22554 2006-10-18  Bruno Haible  <bruno@clisp.org>
22555
22556         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
22557
22558 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
22559
22560         * lib/xstrtol.h: Include gettext.h.
22561         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
22562         Problem reported by Eric Blake.
22563         * modules/xstrtol (Depends-on): Add gettext-h.
22564
22565 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
22566
22567         * lib/strftime.c (advance): New macro.
22568         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
22569         incomplete type, so you can't add 0 to it.  Problem and patch
22570         reported by Eelco Dolstra for dietlibc.
22571
22572 2006-10-18  Jim Meyering  <jim@meyering.net>
22573
22574         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
22575         type for a local, and rename it: s/up/user_proc/.
22576
22577 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
22578
22579         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
22580         READ_UTMP_USER_PROCESS.
22581         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
22582
22583 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
22584
22585         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
22586         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
22587
22588 2006-10-17  Eric Blake  <ebb9@byu.net>
22589
22590         * lib/sigprocmask.c (sigprocmask): Fix typo.
22591
22592         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
22593
22594         * modules/clean-temp (Makefile.am): Don't add to make output...
22595         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
22596         config.h.
22597
22598 2006-10-17  Bruno Haible  <bruno@clisp.org>
22599
22600         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
22601         differently if DEFAULT_TEXT_DOMAIN is set.
22602
22603 2006-10-16  Bruno Haible  <bruno@clisp.org>
22604
22605         * lib/clean-temp.c: Include fwriteerror.h.
22606
22607 2006-10-16  Bruno Haible  <bruno@clisp.org>
22608
22609         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
22610
22611 2006-10-16  Bruno Haible  <bruno@clisp.org>
22612
22613         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
22614         * lib/sigprocmask.h: Include <sys/types.h>.
22615         (sigset_t): Use the system's definition if present.
22616
22617 2006-10-17  Eric Blake  <ebb9@byu.net>
22618
22619         * lib/xvasprintf.c (includes): Assume config.h.
22620         * lib/xasprintf.c (includes): Likewise.
22621
22622 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
22623
22624         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
22625         at least as wide as intmax_t.
22626
22627 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
22628
22629         (Imported from Automake.)
22630         * build-aux/gnupload: Update to version 1.1 of directive file.
22631
22632 2006-10-16  Eric Blake  <ebb9@byu.net>
22633
22634         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
22635         match Automake 1.10a.
22636
22637 2006-10-14  Bruno Haible  <bruno@clisp.org>
22638
22639         * modules/sigprocmask: New file.
22640         * lib/sigprocmask.h: New file.
22641         * lib/sigprocmask.c: New file.
22642         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
22643         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
22644         request sigprocmask.o.
22645         (gl_PREREQ_SIGPROCMASK): New macro.
22646         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
22647         (Depends-on): Add sigprocmask.
22648         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
22649         gt_SIGNALBLOCKING. Test for 'raise' only once.
22650         * lib/fatal-signal.c: Include sigprocmask.h.
22651         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
22652         unblock_fatal_signals): Define always.
22653         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
22654         sigprocmask.
22655
22656 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
22657
22658         Sync from Automake.
22659         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
22660         which incorrectly sets the mode of an existing destination
22661         directory.  In some cases the unpatched install-sh could do the
22662         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
22663         system.  We hope this is rare in practice, but it's clearly worth
22664         fixing.  Problem reported by Alex Unleashed in
22665         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
22666         Also, don't bother to check for -m bugs unless we're using -m;
22667         suggested by Stepan Kasal.
22668
22669 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22670
22671         Sync from Automake.
22672         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
22673         `-c' flag, so they appear at the same position as in %FASTDEP%
22674         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
22675         which ignores unknown options only after the first non-option.
22676         Bug report against M4 by Nelson H. F. Beebe.
22677
22678 2006-10-13  Jim Meyering  <jim@meyering.net>
22679
22680         Fix a bug in yesterday's change.
22681         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
22682         p->fts_statp->st_dev would be used uninitialized.
22683         Ensures that we always call fts_stat on the very first entry.
22684         Miklos Szeredi reported that find -xdev stopped working.
22685
22686 2006-10-12  Bruno Haible  <bruno@clisp.org>
22687
22688         * gnulib-tool (func_get_automake_snippet): Append an automatically
22689         computed EXTRA_DIST augmentation.
22690         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
22691         * modules/alloca-opt (Makefile.am): Likewise.
22692         * modules/allocsa (Makefile.am): Likewise.
22693         * modules/arcfour (Makefile.am): Likewise.
22694         * modules/arctwo (Makefile.am): Likewise.
22695         * modules/argmatch (Makefile.am): Likewise.
22696         * modules/argz (Makefile.am): Likewise.
22697         * modules/atexit (Makefile.am): Likewise.
22698         * modules/backupfile (Makefile.am): Likewise.
22699         * modules/byteswap (Makefile.am): Likewise.
22700         * modules/c-strtod (Makefile.am): Likewise.
22701         * modules/c-strtold (Makefile.am): Likewise.
22702         * modules/calloc (Makefile.am): Likewise.
22703         * modules/canon-host (Makefile.am): Likewise.
22704         * modules/canonicalize (Makefile.am): Likewise.
22705         * modules/chdir-long (Makefile.am): Likewise.
22706         * modules/chdir-safer (Makefile.am): Likewise.
22707         * modules/check-version (Makefile.am): Likewise.
22708         * modules/chown (Makefile.am): Likewise.
22709         * modules/cloexec (Makefile.am): Likewise.
22710         * modules/close-stream (Makefile.am): Likewise.
22711         * modules/closeout (Makefile.am): Likewise.
22712         * modules/crc (Makefile.am): Likewise.
22713         * modules/csharpexec (Makefile.am): Likewise.
22714         * modules/cycle-check (Makefile.am): Likewise.
22715         * modules/des (Makefile.am): Likewise.
22716         * modules/dev-ino (Makefile.am): Likewise.
22717         * modules/dirfd (Makefile.am): Likewise.
22718         * modules/dirname (Makefile.am): Likewise.
22719         * modules/dup2 (Makefile.am): Likewise.
22720         * modules/eealloc (Makefile.am): Likewise.
22721         * modules/error (Makefile.am): Likewise.
22722         * modules/euidaccess (Makefile.am): Likewise.
22723         * modules/exclude (Makefile.am): Likewise.
22724         * modules/exitfail (Makefile.am): Likewise.
22725         * modules/fcntl-safer (Makefile.am): Likewise.
22726         * modules/fcntl (Makefile.am): Likewise.
22727         * modules/file-type (Makefile.am): Likewise.
22728         * modules/fileblocks (Makefile.am): Likewise.
22729         * modules/filemode (Makefile.am): Likewise.
22730         * modules/filenamecat (Makefile.am): Likewise.
22731         * modules/fnmatch (Makefile.am): Likewise.
22732         * modules/fopen-safer (Makefile.am): Likewise.
22733         * modules/fpending (Makefile.am): Likewise.
22734         * modules/fprintftime (Makefile.am): Likewise.
22735         * modules/free (Makefile.am): Likewise.
22736         * modules/fsusage (Makefile.am): Likewise.
22737         * modules/ftruncate (Makefile.am): Likewise.
22738         * modules/fts (Makefile.am): Likewise.
22739         * modules/gc-arcfour (Makefile.am): Likewise.
22740         * modules/gc-des (Makefile.am): Likewise.
22741         * modules/gc-hmac-md5 (Makefile.am): Likewise.
22742         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
22743         * modules/gc-md4 (Makefile.am): Likewise.
22744         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
22745         * modules/gc-sha1 (Makefile.am): Likewise.
22746         * modules/gc (Makefile.am): Likewise.
22747         * modules/getaddrinfo (Makefile.am): Likewise.
22748         * modules/getcwd (Makefile.am): Likewise.
22749         * modules/getdelim (Makefile.am): Likewise.
22750         * modules/getdomainname (Makefile.am): Likewise.
22751         * modules/getgroups (Makefile.am): Likewise.
22752         * modules/gethostname (Makefile.am): Likewise.
22753         * modules/gethrxtime (Makefile.am): Likewise.
22754         * modules/getline (Makefile.am): Likewise.
22755         * modules/getloadavg (Makefile.am): Likewise.
22756         * modules/getlogin_r (Makefile.am): Likewise.
22757         * modules/getndelim2 (Makefile.am): Likewise.
22758         * modules/getopt (Makefile.am): Likewise.
22759         * modules/getpagesize (Makefile.am): Likewise.
22760         * modules/getpass-gnu (Makefile.am): Likewise.
22761         * modules/getpass (Makefile.am): Likewise.
22762         * modules/getsubopt (Makefile.am): Likewise.
22763         * modules/gettime (Makefile.am): Likewise.
22764         * modules/gettimeofday (Makefile.am): Likewise.
22765         * modules/getugroups (Makefile.am): Likewise.
22766         * modules/getusershell (Makefile.am): Likewise.
22767         * modules/glob (Makefile.am): Likewise.
22768         * modules/group-member (Makefile.am): Likewise.
22769         * modules/hard-locale (Makefile.am): Likewise.
22770         * modules/hash (Makefile.am): Likewise.
22771         * modules/hmac-md5 (Makefile.am): Likewise.
22772         * modules/hmac-sha1 (Makefile.am): Likewise.
22773         * modules/human (Makefile.am): Likewise.
22774         * modules/idcache (Makefile.am): Likewise.
22775         * modules/imaxabs (Makefile.am): Likewise.
22776         * modules/imaxdiv (Makefile.am): Likewise.
22777         * modules/inet_ntop (Makefile.am): Likewise.
22778         * modules/inet_pton (Makefile.am): Likewise.
22779         * modules/intprops (Makefile.am): Likewise.
22780         * modules/inttostr (Makefile.am): Likewise.
22781         * modules/inttypes (Makefile.am): Likewise.
22782         * modules/isapipe (Makefile.am): Likewise.
22783         * modules/javaversion (Makefile.am): Likewise.
22784         * modules/lchmod (Makefile.am): Likewise.
22785         * modules/lchown (Makefile.am): Likewise.
22786         * modules/localcharset (Makefile.am): Likewise.
22787         * modules/long-options (Makefile.am): Likewise.
22788         * modules/lstat (Makefile.am): Likewise.
22789         * modules/malloc (Makefile.am): Likewise.
22790         * modules/mathl (Makefile.am): Likewise.
22791         * modules/mbchar (Makefile.am): Likewise.
22792         * modules/md2 (Makefile.am): Likewise.
22793         * modules/md4 (Makefile.am): Likewise.
22794         * modules/md5 (Makefile.am): Likewise.
22795         * modules/memcasecmp (Makefile.am): Likewise.
22796         * modules/memchr (Makefile.am): Likewise.
22797         * modules/memcmp (Makefile.am): Likewise.
22798         * modules/memcoll (Makefile.am): Likewise.
22799         * modules/memcpy (Makefile.am): Likewise.
22800         * modules/memmem (Makefile.am): Likewise.
22801         * modules/memmove (Makefile.am): Likewise.
22802         * modules/mempcpy (Makefile.am): Likewise.
22803         * modules/memrchr (Makefile.am): Likewise.
22804         * modules/memset (Makefile.am): Likewise.
22805         * modules/memxor (Makefile.am): Likewise.
22806         * modules/mkancesdirs (Makefile.am): Likewise.
22807         * modules/mkdir-p (Makefile.am): Likewise.
22808         * modules/mkdir (Makefile.am): Likewise.
22809         * modules/mkdtemp (Makefile.am): Likewise.
22810         * modules/mkstemp (Makefile.am): Likewise.
22811         * modules/mktime (Makefile.am): Likewise.
22812         * modules/modechange (Makefile.am): Likewise.
22813         * modules/mountlist (Makefile.am): Likewise.
22814         * modules/nanosleep (Makefile.am): Likewise.
22815         * modules/obstack (Makefile.am): Likewise.
22816         * modules/openat (Makefile.am): Likewise.
22817         * modules/pagealign_alloc (Makefile.am): Likewise.
22818         * modules/pathmax (Makefile.am): Likewise.
22819         * modules/physmem (Makefile.am): Likewise.
22820         * modules/poll (Makefile.am): Likewise.
22821         * modules/posixtm (Makefile.am): Likewise.
22822         * modules/posixver (Makefile.am): Likewise.
22823         * modules/putenv (Makefile.am): Likewise.
22824         * modules/quote (Makefile.am): Likewise.
22825         * modules/quotearg (Makefile.am): Likewise.
22826         * modules/raise (Makefile.am): Likewise.
22827         * modules/read-file (Makefile.am): Likewise.
22828         * modules/readline (Makefile.am): Likewise.
22829         * modules/readlink (Makefile.am): Likewise.
22830         * modules/readtokens (Makefile.am): Likewise.
22831         * modules/readutmp (Makefile.am): Likewise.
22832         * modules/realloc (Makefile.am): Likewise.
22833         * modules/regex (Makefile.am): Likewise.
22834         * modules/rename-dest-slash (Makefile.am): Likewise.
22835         * modules/rename (Makefile.am): Likewise.
22836         * modules/rijndael (Makefile.am): Likewise.
22837         * modules/rmdir (Makefile.am): Likewise.
22838         * modules/rpmatch (Makefile.am): Likewise.
22839         * modules/safe-read (Makefile.am): Likewise.
22840         * modules/safe-write (Makefile.am): Likewise.
22841         * modules/same-inode (Makefile.am): Likewise.
22842         * modules/same (Makefile.am): Likewise.
22843         * modules/save-cwd (Makefile.am): Likewise.
22844         * modules/savedir (Makefile.am): Likewise.
22845         * modules/setenv (Makefile.am): Likewise.
22846         * modules/settime (Makefile.am): Likewise.
22847         * modules/sha1 (Makefile.am): Likewise.
22848         * modules/sig2str (Makefile.am): Likewise.
22849         * modules/snprintf (Makefile.am): Likewise.
22850         * modules/stat-macros (Makefile.am): Likewise.
22851         * modules/stat-time (Makefile.am): Likewise.
22852         * modules/stdbool (Makefile.am): Likewise.
22853         * modules/stdint (Makefile.am): Likewise.
22854         * modules/stdlib-safer (Makefile.am): Likewise.
22855         * modules/stpcpy (Makefile.am): Likewise.
22856         * modules/stpncpy (Makefile.am): Likewise.
22857         * modules/strcase (Makefile.am): Likewise.
22858         * modules/strcasestr (Makefile.am): Likewise.
22859         * modules/strchrnul (Makefile.am): Likewise.
22860         * modules/strcspn (Makefile.am): Likewise.
22861         * modules/strdup (Makefile.am): Likewise.
22862         * modules/strerror (Makefile.am): Likewise.
22863         * modules/strftime (Makefile.am): Likewise.
22864         * modules/strndup (Makefile.am): Likewise.
22865         * modules/strnlen (Makefile.am): Likewise.
22866         * modules/strpbrk (Makefile.am): Likewise.
22867         * modules/strsep (Makefile.am): Likewise.
22868         * modules/strstr (Makefile.am): Likewise.
22869         * modules/strtod (Makefile.am): Likewise.
22870         * modules/strtoimax (Makefile.am): Likewise.
22871         * modules/strtok_r (Makefile.am): Likewise.
22872         * modules/strtol (Makefile.am): Likewise.
22873         * modules/strtoll (Makefile.am): Likewise.
22874         * modules/strtoul (Makefile.am): Likewise.
22875         * modules/strtoull (Makefile.am): Likewise.
22876         * modules/strtoumax (Makefile.am): Likewise.
22877         * modules/strverscmp (Makefile.am): Likewise.
22878         * modules/sys_socket (Makefile.am): Likewise.
22879         * modules/sys_stat (Makefile.am): Likewise.
22880         * modules/sysexits (Makefile.am): Likewise.
22881         * modules/time_r (Makefile.am): Likewise.
22882         * modules/timegm (Makefile.am): Likewise.
22883         * modules/timespec (Makefile.am): Likewise.
22884         * modules/tmpfile-safer (Makefile.am): Likewise.
22885         * modules/trim (Makefile.am): Likewise.
22886         * modules/unistd-safer (Makefile.am): Likewise.
22887         * modules/unlinkdir (Makefile.am): Likewise.
22888         * modules/unlocked-io (Makefile.am): Likewise.
22889         * modules/userspec (Makefile.am): Likewise.
22890         * modules/utime (Makefile.am): Likewise.
22891         * modules/utimecmp (Makefile.am): Likewise.
22892         * modules/utimens (Makefile.am): Likewise.
22893         * modules/vasnprintf (Makefile.am): Likewise.
22894         * modules/vasprintf (Makefile.am): Likewise.
22895         * modules/vsnprintf (Makefile.am): Likewise.
22896         * modules/xalloc (Makefile.am): Likewise.
22897         * modules/xgetcwd (Makefile.am): Likewise.
22898         * modules/xnanosleep (Makefile.am): Likewise.
22899         * modules/xreadlink (Makefile.am): Likewise.
22900         * modules/xstrtod (Makefile.am): Likewise.
22901         * modules/xstrtol (Makefile.am): Likewise.
22902         * modules/xstrtold (Makefile.am): Likewise.
22903         * modules/yesno (Makefile.am): Likewise.
22904         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
22905
22906 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
22907
22908         * modules/error (Makefile.am): Distribute files through
22909         EXTRA_DIST, not lib_SOURCES.
22910
22911 2006-10-12  Eric Blake  <ebb9@byu.net>
22912
22913         * modules/error (Makefile.am): Distribute files in /lib.
22914         * modules/obstack (Makefile.am): Likewise.
22915
22916 2006-10-12  Bruno Haible  <bruno@clisp.org>
22917
22918         * modules/acl (Makefile.am): Distribute all files in lib/ through
22919         EXTRA_DIST.
22920         * modules/arcfour (Makefile.am): Likewise.
22921         * modules/arctwo (Makefile.am): Likewise.
22922         * modules/argmatch (Makefile.am): Likewise.
22923         * modules/argz (Makefile.am): Likewise.
22924         * modules/atexit (Makefile.am): Likewise.
22925         * modules/backupfile (Makefile.am): Likewise.
22926         * modules/c-strtod (Makefile.am): Likewise.
22927         * modules/c-strtold (Makefile.am): Likewise.
22928         * modules/calloc (Makefile.am): Likewise.
22929         * modules/canon-host (Makefile.am): Likewise.
22930         * modules/canonicalize (Makefile.am): Likewise.
22931         * modules/chdir-long (Makefile.am): Likewise.
22932         * modules/chdir-safer (Makefile.am): Likewise.
22933         * modules/check-version (Makefile.am): Likewise.
22934         * modules/chown (Makefile.am): Likewise.
22935         * modules/cloexec (Makefile.am): Likewise.
22936         * modules/close-stream (Makefile.am): Likewise.
22937         * modules/closeout (Makefile.am): Likewise.
22938         * modules/crc (Makefile.am): Likewise.
22939         * modules/cycle-check (Makefile.am): Likewise.
22940         * modules/des (Makefile.am): Likewise.
22941         * modules/dirfd (Makefile.am): Likewise.
22942         * modules/dirname (Makefile.am): Likewise.
22943         * modules/dup2 (Makefile.am): Likewise.
22944         * modules/euidaccess (Makefile.am): Likewise.
22945         * modules/exclude (Makefile.am): Likewise.
22946         * modules/exitfail (Makefile.am): Likewise.
22947         * modules/fcntl-safer (Makefile.am): Likewise.
22948         * modules/file-type (Makefile.am): Likewise.
22949         * modules/fileblocks (Makefile.am): Likewise.
22950         * modules/filemode (Makefile.am): Likewise.
22951         * modules/filenamecat (Makefile.am): Likewise.
22952         * modules/fnmatch (Makefile.am): Likewise.
22953         * modules/fopen-safer (Makefile.am): Likewise.
22954         * modules/fpending (Makefile.am): Likewise.
22955         * modules/fprintftime (Makefile.am): Likewise.
22956         * modules/free (Makefile.am): Likewise.
22957         * modules/fsusage (Makefile.am): Likewise.
22958         * modules/ftruncate (Makefile.am): Likewise.
22959         * modules/fts (Makefile.am): Likewise.
22960         * modules/gc (Makefile.am): Likewise.
22961         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
22962         * modules/getaddrinfo (Makefile.am): Likewise.
22963         * modules/getcwd (Makefile.am): Likewise.
22964         * modules/getdelim (Makefile.am): Likewise.
22965         * modules/getdomainname (Makefile.am): Likewise.
22966         * modules/getgroups (Makefile.am): Likewise.
22967         * modules/gethostname (Makefile.am): Likewise.
22968         * modules/gethrxtime (Makefile.am): Likewise.
22969         * modules/getline (Makefile.am): Likewise.
22970         * modules/getloadavg (Makefile.am): Likewise.
22971         * modules/getlogin_r (Makefile.am): Likewise.
22972         * modules/getopt (Makefile.am): Likewise.
22973         * modules/getpass (Makefile.am): Likewise.
22974         * modules/getpass-gnu (Makefile.am): Likewise.
22975         * modules/getsubopt (Makefile.am): Likewise.
22976         * modules/gettime (Makefile.am): Likewise.
22977         * modules/gettimeofday (Makefile.am): Likewise.
22978         * modules/getugroups (Makefile.am): Likewise.
22979         * modules/getusershell (Makefile.am): Likewise.
22980         * modules/glob (Makefile.am): Likewise.
22981         * modules/group-member (Makefile.am): Likewise.
22982         * modules/hard-locale (Makefile.am): Likewise.
22983         * modules/hash (Makefile.am): Likewise.
22984         * modules/hmac-md5 (Makefile.am): Likewise.
22985         * modules/hmac-sha1 (Makefile.am): Likewise.
22986         * modules/human (Makefile.am): Likewise.
22987         * modules/idcache (Makefile.am): Likewise.
22988         * modules/imaxabs (Makefile.am): Likewise.
22989         * modules/imaxdiv (Makefile.am): Likewise.
22990         * modules/inet_ntop (Makefile.am): Likewise.
22991         * modules/inet_pton (Makefile.am): Likewise.
22992         * modules/inttostr (Makefile.am): Likewise.
22993         * modules/isapipe (Makefile.am): Likewise.
22994         * modules/lchown (Makefile.am): Likewise.
22995         * modules/long-options (Makefile.am): Likewise.
22996         * modules/lstat (Makefile.am): Likewise.
22997         * modules/malloc (Makefile.am): Likewise.
22998         * modules/mathl (Makefile.am): Likewise.
22999         * modules/mbchar (Makefile.am): Likewise.
23000         * modules/md2 (Makefile.am): Likewise.
23001         * modules/md4 (Makefile.am): Likewise.
23002         * modules/md5 (Makefile.am): Likewise.
23003         * modules/memcasecmp (Makefile.am): Likewise.
23004         * modules/memchr (Makefile.am): Likewise.
23005         * modules/memcmp (Makefile.am): Likewise.
23006         * modules/memcoll (Makefile.am): Likewise.
23007         * modules/memcpy (Makefile.am): Likewise.
23008         * modules/memmem (Makefile.am): Likewise.
23009         * modules/memmove (Makefile.am): Likewise.
23010         * modules/mempcpy (Makefile.am): Likewise.
23011         * modules/memrchr (Makefile.am): Likewise.
23012         * modules/memset (Makefile.am): Likewise.
23013         * modules/memxor (Makefile.am): Likewise.
23014         * modules/mkancesdirs (Makefile.am): Likewise.
23015         * modules/mkdir (Makefile.am): Likewise.
23016         * modules/mkdir-p (Makefile.am): Likewise.
23017         * modules/mkdtemp (Makefile.am): Likewise.
23018         * modules/mkstemp (Makefile.am): Likewise.
23019         * modules/mktime (Makefile.am): Likewise.
23020         * modules/modechange (Makefile.am): Likewise.
23021         * modules/mountlist (Makefile.am): Likewise.
23022         * modules/nanosleep (Makefile.am): Likewise.
23023         * modules/openat (Makefile.am): Likewise.
23024         * modules/pagealign_alloc (Makefile.am): Likewise.
23025         * modules/physmem (Makefile.am): Likewise.
23026         * modules/poll (Makefile.am): Likewise.
23027         * modules/posixtm (Makefile.am): Likewise.
23028         * modules/posixver (Makefile.am): Likewise.
23029         * modules/putenv (Makefile.am): Likewise.
23030         * modules/quote (Makefile.am): Likewise.
23031         * modules/quotearg (Makefile.am): Likewise.
23032         * modules/raise (Makefile.am): Likewise.
23033         * modules/read-file (Makefile.am): Likewise.
23034         * modules/readline (Makefile.am): Likewise.
23035         * modules/readlink (Makefile.am): Likewise.
23036         * modules/readtokens (Makefile.am): Likewise.
23037         * modules/readutmp (Makefile.am): Likewise.
23038         * modules/realloc (Makefile.am): Likewise.
23039         * modules/regex (Makefile.am): Likewise.
23040         * modules/rename (Makefile.am): Likewise.
23041         * modules/rename-dest-slash (Makefile.am): Likewise.
23042         * modules/rijndael (Makefile.am): Likewise.
23043         * modules/rmdir (Makefile.am): Likewise.
23044         * modules/rpmatch (Makefile.am): Likewise.
23045         * modules/safe-read (Makefile.am): Likewise.
23046         * modules/safe-write (Makefile.am): Likewise.
23047         * modules/same (Makefile.am): Likewise.
23048         * modules/save-cwd (Makefile.am): Likewise.
23049         * modules/savedir (Makefile.am): Likewise.
23050         * modules/setenv (Makefile.am): Likewise.
23051         * modules/settime (Makefile.am): Likewise.
23052         * modules/sha1 (Makefile.am): Likewise.
23053         * modules/sig2str (Makefile.am): Likewise.
23054         * modules/snprintf (Makefile.am): Likewise.
23055         * modules/stdlib-safer (Makefile.am): Likewise.
23056         * modules/stpcpy (Makefile.am): Likewise.
23057         * modules/stpncpy (Makefile.am): Likewise.
23058         * modules/strcase (Makefile.am): Likewise.
23059         * modules/strcasestr (Makefile.am): Likewise.
23060         * modules/strchrnul (Makefile.am): Likewise.
23061         * modules/strcspn (Makefile.am): Likewise.
23062         * modules/strdup (Makefile.am): Likewise.
23063         * modules/strerror (Makefile.am): Likewise.
23064         * modules/strftime (Makefile.am): Likewise.
23065         * modules/strndup (Makefile.am): Likewise.
23066         * modules/strnlen (Makefile.am): Likewise.
23067         * modules/strpbrk (Makefile.am): Likewise.
23068         * modules/strsep (Makefile.am): Likewise.
23069         * modules/strstr (Makefile.am): Likewise.
23070         * modules/strtod (Makefile.am): Likewise.
23071         * modules/strtoimax (Makefile.am): Likewise.
23072         * modules/strtok_r (Makefile.am): Likewise.
23073         * modules/strtol (Makefile.am): Likewise.
23074         * modules/strtoll (Makefile.am): Likewise.
23075         * modules/strtoul (Makefile.am): Likewise.
23076         * modules/strtoull (Makefile.am): Likewise.
23077         * modules/strtoumax (Makefile.am): Likewise.
23078         * modules/strverscmp (Makefile.am): Likewise.
23079         * modules/time_r (Makefile.am): Likewise.
23080         * modules/timegm (Makefile.am): Likewise.
23081         * modules/tmpfile-safer (Makefile.am): Likewise.
23082         * modules/unistd-safer (Makefile.am): Likewise.
23083         * modules/unlinkdir (Makefile.am): Likewise.
23084         * modules/userspec (Makefile.am): Likewise.
23085         * modules/utime (Makefile.am): Likewise.
23086         * modules/utimecmp (Makefile.am): Likewise.
23087         * modules/utimens (Makefile.am): Likewise.
23088         * modules/vasnprintf (Makefile.am): Likewise.
23089         * modules/vasprintf (Makefile.am): Likewise.
23090         * modules/vsnprintf (Makefile.am): Likewise.
23091         * modules/xalloc (Makefile.am): Likewise.
23092         * modules/xgetcwd (Makefile.am): Likewise.
23093         * modules/xnanosleep (Makefile.am): Likewise.
23094         * modules/xreadlink (Makefile.am): Likewise.
23095         * modules/xstrtod (Makefile.am): Likewise.
23096         * modules/xstrtol (Makefile.am): Likewise.
23097         * modules/xstrtold (Makefile.am): Likewise.
23098         * modules/yesno (Makefile.am): Likewise.
23099
23100 2006-10-12  Jim Meyering  <jim@meyering.net>
23101
23102         * m4/getloadavg.m4: Revert the change below.
23103
23104         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
23105         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
23106         fail with a symlink, which is what coreutils' ./bootstrap now
23107         creates by default.
23108
23109 2006-10-12  Bruno Haible  <bruno@clisp.org>
23110
23111         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
23112         mingw.
23113         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
23114         MSVC and mingw explicitly.
23115
23116 2006-10-11  Simon Josefsson  <jas@extundo.com>
23117             Bruno Haible  <bruno@clisp.org>
23118
23119         Add support for multiple gnulib-tool invocations in the scope of a
23120         single configure.ac file.
23121         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
23122         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
23123         with the same contents as the _LIBADD variable.
23124         (func_emit_initmacro_start, func_emit_initmacro_end,
23125         func_emit_initmacro_done): New functions.
23126         (func_import, func_create_testdir): Invoke them. Allow the identifiers
23127         gl_LIBOBJS and gl_LTLIBOBJS.
23128
23129 2006-10-11  Bruno Haible  <bruno@clisp.org>
23130
23131         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
23132         (func_create_testdir): Don't create po/Makefile.am, don't invoke
23133         autoreconf. Instead, invoke autopoint explicitly but move back the
23134         *.m4 files from gnulib.
23135
23136 2006-10-11  Bruno Haible  <bruno@clisp.org>
23137
23138         * gnulib-tool (func_usage): Make module names after --create-testdir
23139         optional.
23140         (func_create_testdir): If no module was specified, use nearly all
23141         modules.
23142
23143 2006-10-12  Jim Meyering  <jim@meyering.net>
23144
23145         Big performance improvement for fts-based tools that use FTS_NOSTAT.
23146         Avoid spurious inode-mismatch problems on non-POSIX file systems.
23147         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
23148         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
23149         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
23150         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
23151         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
23152         (fts_set_stat_required): New function.
23153         (fts_open): Defer the calls to fts_stat, if possible or requested.
23154         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
23155         into fts_stat itself.
23156         (fts_read): Perform any required (deferred) fts_stat call.
23157         (fts_build): Likewise, for the directory we're about to open and read.
23158         In the readdir loop, carefully decide whether each entry will require
23159         an eventual call to fts_stat, using dirent.d_type info if available.
23160         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
23161         a command line argument into this function.  Update all callers.
23162         Map a return value of FTS_DOT to FTS_D for a command line argument.
23163         * modules/fts (Depends-on): Add d-type.  Alphabetize.
23164         Thanks to Miklos Szeredi for his tenacity and for the initial
23165         bug report about "find" failing on a FUSE-based file system.
23166
23167         * lib/fts.c (fts_open): Use consistent indentation.
23168
23169 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
23170
23171         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
23172         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
23173         reported by Jim Meyering.  All uses of cache variables renamed
23174         to match Autoconf's.
23175         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
23176         the other one.
23177
23178         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
23179         Fix misspelling in diagnostic.
23180
23181 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
23182
23183         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
23184         defined.  Problem reported by Matthew Woehlke.
23185
23186         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
23187         Add support for Tandem NonStop R series.
23188         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
23189         Use new macro.
23190
23191         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
23192         (has_trailing_slash): Omit size arg; all callers changed.
23193         Omit 'inline', since it doesn't help performance and we'd
23194         need to configure it.
23195         Don't count //, ///, etc. as having a trailing slash.
23196         As a side effect, this removes a C99ism reported by Matthew Woehlke.
23197         (rpl_rename_dest_slash): On failure, use rename's errno rather
23198         than (in some cases) an incorrect or junk errno.
23199         Simplify code by removing need to compute length; this does
23200         cause it to make two passes instead of one over the file name,
23201         but it's worth it.
23202
23203         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
23204         change, since Autoconf's version may no longer be appropriate now
23205         that we are using CVS Autoconf's version.  Add support for Tandem.
23206
23207 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
23208             Bruno Haible  <bruno@clisp.org>
23209
23210         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
23211         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
23212         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
23213         gl_AC_TYPE_LONG_LONG.
23214
23215         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
23216         instead of HAVE_LONG_LONG.
23217         * lib/printf-args.c (printf_fetchargs): Likewise.
23218         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
23219         * lib/vasnprintf.c (VASNPRINTF): Likewise.
23220         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
23221         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
23222         gl_AC_TYPE_LONG_LONG.
23223
23224 2006-10-11  Bruno Haible  <bruno@clisp.org>
23225
23226         * m4/longlong.m4: Add comments.
23227         * m4/ulonglong.m4: Likewise.
23228
23229 2006-10-10  Bruno Haible  <bruno@clisp.org>
23230
23231         Make it possible to #define stpcpy, strdup to aliases.
23232         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
23233         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
23234
23235 2006-10-10  Bruno Haible  <bruno@clisp.org>
23236
23237         Make it possible to #define gcd to an alias.
23238         * lib/gcd.c: Include config.h.
23239
23240 2006-10-10  Bruno Haible  <bruno@clisp.org>
23241
23242         Make it possible to #define c_isascii to an alias.
23243         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
23244         defined. Undefine the macros before defining them, to avoid gcc
23245         warnings.
23246         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
23247         define NO_C_CTYPE_MACROS early.
23248
23249 2006-10-10  Bruno Haible  <bruno@clisp.org>
23250
23251         Make it possible to #define set_program_name to an alias.
23252         * lib/progname.c: Don't undefine set_program_name; instead, undefine
23253         ENABLE_RELOCATABLE early.
23254
23255 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
23256
23257         Port to Tandem NSK OSS, which has 64-bit signed int but at most
23258         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
23259         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
23260         More generally, don't assume that 64-bit signed int is available
23261         if unsigned int is, and vice versa.
23262         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
23263         unsigned symbols, not on their signed counterparts.
23264         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
23265         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
23266         (UINT64_C, UINTMAX_C):
23267         Likewise.
23268         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
23269         unsigned counterparts.
23270         (Have_long_long, Unsigned): New macros.
23271         (Int): Renamed from INT.
23272         (strtoimax): Use the new macros.
23273         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
23274         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
23275         * modules/inttypes (inttypes.h): Substitute
23276         HAVE_UNSIGNED_LONG_LONG_INT.
23277         * modules/stdint (stdint.h): Likewise.
23278         (Files): Add m4/ulonglong.m4.
23279
23280 2006-10-10  Bruno Haible  <bruno@clisp.org>
23281
23282         Fix a gcc -Wshadow warning.
23283         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
23284         to 'bucket'.
23285         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
23286         gl_linked_indexof_from_to): Likewise.
23287         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
23288         Likewise.
23289         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
23290         Likewise.
23291         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
23292         Reported by Eric Blake.
23293
23294 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
23295
23296         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
23297         for NetBSD.  Problem reported by Bruno Haible.
23298
23299 2006-10-09  Jim Meyering  <jim@meyering.net>
23300
23301         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
23302         Patch from Bruno Haible.
23303
23304 2006-10-09  Jim Meyering  <jim@meyering.net>
23305
23306         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
23307         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
23308         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
23309
23310 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
23311
23312         Don't include <config.h> twice; this doesn't work in some cases,
23313         e.g., when config.h has "#define intmax_t long long int" and
23314         we include <config.h>, <inttypes.h>, <config.h> in that order.
23315         Problem reported by Matthew Woehlke in:
23316         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
23317         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
23318         * lib/fts-cycle.c: Don't include config.h.
23319         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
23320         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
23321         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
23322         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
23323         inttypes.h.
23324         * lib/xstrtoumax.c: Likewise.
23325         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
23326         __strtol and the like, so that this module is more like its siblings.
23327         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
23328         Remove; no longer needed now that we assume gnulib inttypes.h.
23329
23330 2006-10-08  Bruno Haible  <bruno@clisp.org>
23331
23332         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
23333         option.
23334
23335 2006-10-07  Jim Meyering  <jim@meyering.net>
23336
23337         * modules/inttypes (inttypes.h): Revert what seems to have been
23338         an inadvertent part of today's change: use "|", not "/" in the
23339         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
23340
23341 2006-10-07  Bruno Haible  <bruno@clisp.org>
23342
23343         * modules/sublist: New file.
23344
23345 2006-10-07  Bruno Haible  <bruno@clisp.org>
23346
23347         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
23348         * modules/argz (argz.h): Likewise.
23349         * modules/arpa_inet (arpa/inet.h): Likewise.
23350         * modules/byteswap (byteswap.h): Likewise.
23351         * modules/configmake (configmake.h): Likewise.
23352         * modules/fcntl (fcntl.h): Likewise.
23353         * modules/fnmatch (fnmatch.h): Likewise.
23354         * modules/getopt (getopt.h): Likewise.
23355         * modules/glob (glob.h): Likewise.
23356         * modules/inttypes (inttypes.h): Likewise.
23357         * modules/netinet_in (netinet/in.h): Likewise.
23358         * modules/poll (poll.h): Likewise.
23359         * modules/stdbool (stdbool.h): Likewise.
23360         * modules/stdint (stdint.h): Likewise.
23361         * modules/sys_select (sys/select.h): Likewise.
23362         * modules/sys_socket (sys/socket.h): Likewise.
23363         * modules/sys_stat (sys/stat.h): Likewise.
23364         * modules/sysexits (sysexits.h): Likewise.
23365         * modules/unistd (unistd.h): Likewise.
23366         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
23367         Add a "DO NOT EDIT" comment to the generated file.
23368         (func_import): Likewise for gnulib-comp.m4.
23369
23370 2006-10-07  Bruno Haible  <bruno@clisp.org>
23371
23372         * lib/gl_sublist.h: New file.
23373         * lib/gl_sublist.c: New file.
23374
23375 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
23376
23377         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
23378         name (relative to the original working directory) and the file
23379         name component (relative to the temporary working directory).  All
23380         callers changed.
23381         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
23382         * lib/mkdir-p.c (make_dir_parents): Likewise.
23383         * lib/mkdir-p.h (make_dir_parents): Likewise.
23384
23385 2006-10-06  Eric Blake  <ebb9@byu.net>
23386
23387         Define several macros for use by the clean-temp module.
23388         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
23389         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
23390         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
23391
23392         * lib/clean-temp.h (close_stream_temp): New declaration.
23393         * lib/clean-temp.c (includes): Pull in headers according to what
23394         other modules are in use.
23395         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
23396
23397 2006-10-06  Bruno Haible  <bruno@clisp.org>
23398
23399         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
23400         instead of fopen, fwriteerror.
23401
23402 2006-10-06  Bruno Haible  <bruno@clisp.org>
23403
23404         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
23405         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
23406         int.
23407         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
23408         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
23409         Return an error indicator.
23410         Suggested by Eric Blake.
23411
23412 2006-10-06  Bruno Haible  <bruno@clisp.org>
23413
23414         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
23415         Reported by Eric Blake.
23416
23417 2006-10-06  Bruno Haible  <bruno@clisp.org>
23418
23419         * modules/closeout (Description): Mention stderr too.
23420
23421 2006-10-06  Bruno Haible  <bruno@clisp.org>
23422         and Paul Eggert  <eggert@cs.ucla.edu>
23423
23424         * lib/closeout.c (close_stdout): Also close stderr.
23425         * lib/closeout.h: Update comment.
23426
23427 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
23428
23429         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
23430         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
23431         * lib/dirchownmod.c: Include lchown.h.
23432         * lib/lchown.c: Don't include files that lchown.h now includes.
23433         Don't declare chown, since lchown.h now does that.
23434         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
23435         (lchown): Define to rpl_chown if lchown is declared but
23436         does not exist.  Declare using a prototype if lchown is not
23437         declared.  Add a copyright notice.
23438         * lib/mkstemp.h: Include <unistd.h>.
23439         * lib/openat.c: Include lchown.h.
23440
23441         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
23442         we now test for that separately.
23443         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
23444         rather than O_NOFOLLOW, when testing whether it's possible to
23445         avoid a race condition reliably.
23446         * lib/savewd.c (savewd_chdir): Likewise.
23447
23448         Remove macros that are no longer needed now that stdint.h is
23449         reliable.
23450         * lib/fsusage.c (UINTMAX_MAX): Remove.
23451         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
23452         * lib/utimecmp.c (SIZE_MAX): Remove.
23453
23454         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
23455
23456         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
23457         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
23458         O_NOATIME works.
23459
23460 2006-10-05  Bruno Haible  <bruno@clisp.org>
23461
23462         * lib/gl_list.h (gl_sortedlist_search_from_to,
23463         gl_sortedlist_indexof_from_to): New declarations.
23464         (gl_list_implementation): New fields sortedlist_search_from_to,
23465         sortedlist_indexof_from_to.
23466         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
23467         inline functions.
23468         * lib/gl_list.c (gl_sortedlist_search_from_to,
23469         gl_sortedlist_indexof_from_to): New functions.
23470         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
23471         function.
23472         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
23473         (gl_array_sortedlist_search_from_to): New function.
23474         (gl_array_list_implementation): Update.
23475         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
23476         function.
23477         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
23478         (gl_carray_sortedlist_search_from_to): New function.
23479         (gl_carray_list_implementation): Update.
23480         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
23481         gl_linked_sortedlist_indexof_from_to): New functions.
23482         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
23483         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
23484         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
23485         gl_tree_sortedlist_indexof_from_to): New functions.
23486         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
23487         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
23488         Update.
23489         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
23490         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
23491         Update.
23492
23493 2006-10-05  Bruno Haible  <bruno@clisp.org>
23494
23495         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
23496         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
23497         (struct gl_list_implementation): Add fields search_from_to,
23498         indexof_from_to. Remove fields search, indexof.
23499         (gl_list_search): Use the search_from_to method.
23500         (gl_list_search_from, gl_list_search_from_to): New functions.
23501         (gl_list_indexof): Use the indexof_from_to method.
23502         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
23503         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
23504         (gl_list_search_from, gl_list_search_from_to): New functions.
23505         (gl_list_indexof): Use the indexof_from_to method.
23506         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
23507         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
23508         gl_array_indexof. Add start_index, end_index arguments.
23509         (gl_array_search_from_to): Renamed from gl_array_search. Add
23510         start_index, end_index arguments.
23511         (gl_array_remove, gl_array_list_implementation): Update.
23512         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
23513         gl_carray_indexof. Add start_index, end_index arguments.
23514         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
23515         start_index, end_index arguments.
23516         (gl_carray_remove, gl_carray_list_implementation): Update.
23517         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
23518         gl_linked_search. Add start_index, end_index arguments.
23519         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
23520         start_index, end_index arguments.
23521         (gl_linked_remove): Update.
23522         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
23523         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
23524         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
23525         field to 'size_t'.
23526         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
23527         gl_tree_search. Add start_index, end_index arguments.
23528         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
23529         start_index, end_index arguments.
23530         (gl_tree_remove): Update.
23531         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
23532         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
23533         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
23534         function.
23535         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
23536         gl_tree_search. Add start_index, end_index arguments.
23537         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
23538         start_index, end_index arguments.
23539         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
23540         Update.
23541         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
23542
23543 2006-10-05  Bruno Haible  <bruno@clisp.org>
23544
23545         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
23546
23547         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
23548         fwriteerror_temp): New declarations.
23549         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
23550         (descriptors): New variable.
23551         (cleanup): First, close the descriptors.
23552         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
23553         fclose_temp, fwriteerror_temp): New functions.
23554
23555 2006-10-04  Jim Meyering  <jim@meyering.net>
23556
23557         * lib/fts.c (fts_open): Tiny comment change.
23558
23559 2006-10-04  Bruno Haible  <bruno@clisp.org>
23560
23561         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
23562         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
23563         gl_LOCK_BODY.
23564         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
23565         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
23566         gl_LOCK_EARLY_BODY.
23567         (gl_LOCK): Require gl_LOCK_BODY.
23568
23569 2006-10-04  Bruno Haible  <bruno@clisp.org>
23570
23571         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
23572         (gl_oset_search_atleast): New declaration.
23573         (struct gl_oset_implementation): Add field 'search_atleast'.
23574         (gl_oset_search_atleast): New inline function.
23575         * lib/gl_oset.c (gl_oset_search_atleast): New function.
23576         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
23577         (gl_array_oset_implementation): Update.
23578         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
23579         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
23580         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
23581
23582 2006-10-04  Bruno Haible  <bruno@clisp.org>
23583
23584         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
23585
23586 2006-10-03  Bruno Haible  <bruno@clisp.org>
23587
23588         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
23589         from gl_avltreehash_list_implementation.
23590
23591 2006-10-03  Bruno Haible  <bruno@clisp.org>
23592
23593         * lib/gl_oset.c (gl_oset_add): Fix return type.
23594
23595 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
23596
23597         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
23598
23599 2006-10-02  Eric Blake  <ebb9@byu.net>
23600
23601         * modules/strnlen (Depends-on): Add extensions.
23602
23603 2006-10-02  Eric Blake  <ebb9@byu.net>
23604
23605         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
23606         definition in 2.60+.
23607
23608 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
23609
23610         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
23611         checks.
23612
23613 2006-10-02  Bruno Haible  <bruno@clisp.org>
23614
23615         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
23616         to the AUTOMAKE_OPTIONS.
23617         Reported by Jim Meyering.
23618
23619 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
23620
23621         Work around bug in Solaris 10 /proc file system:
23622         /proc/self/fd/NNN/.. isn't the parent directory of
23623         the directory whose file descriptor is NNN.  This needs to
23624         be worked around at run time, not compile time, since a
23625         program might be built on Solaris 8, where things work, and
23626         run on Solaris 10.
23627         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
23628         to use the following interface instead:
23629         (OPENAT_BUFFER_SIZE): New macro.
23630         (openat_proc_name): New function.
23631         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
23632         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
23633         Likewise.
23634         * lib/openat-proc.c: New file.
23635         * modules/openat (Files): Add lib/openat-proc.c.
23636         (Depends-on): Add same-inode, stdbool.
23637         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
23638
23639 2006-09-29  Bruno Haible  <bruno@clisp.org>
23640
23641         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
23642         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
23643         argument. Set stdout_closed before testing for ferror, not after.
23644         (fwriteerror, fwriteerror_no_ebadf): New functions.
23645
23646 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23647
23648         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
23649
23650 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
23651
23652         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
23653         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
23654
23655 2006-09-28  Jim Meyering  <jim@meyering.net>
23656
23657         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
23658         Include <unistd.h>.
23659
23660 2006-09-28  Bruno Haible  <bruno@clisp.org>
23661
23662         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
23663         * modules/linkedhash-list (Depends-on): Likewise.
23664         * modules/rbtreehash-list (Depends-on): Likewise.
23665
23666 2006-09-28  Bruno Haible  <bruno@clisp.org>
23667
23668         * lib/strndup.h: Simplify the redefinition of strndup.
23669         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
23670         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
23671
23672 2006-09-28  Bruno Haible  <bruno@clisp.org>
23673
23674         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
23675         * lib/gl_linkedhash_list.c: Likewise.
23676         * lib/gl_rbtreehash_list.c: Likewise.
23677
23678 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
23679
23680         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
23681         getaddrinfo.
23682
23683         * lib/__fpending.h: Don't include <stdio_ext.h> unless
23684         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
23685         it causes <stdio_ext.h> to cause a compile-time error.
23686         Problem reported by Nelson H. F. Beebe.
23687         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
23688         of HAVE_DECL___PENDING.
23689
23690         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
23691         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
23692         declaration.
23693
23694 2006-09-27  Jim Meyering  <jim@meyering.net>
23695
23696         This file could end up with a definition for a function
23697         named __strndup, rather than rpl_strndup on a system with
23698         incomplete weak_alias support.
23699         * lib/strndup.c (strndup): Rename from __strndup.
23700         Remove #defines that used to map __strndup to strndup.
23701         Don't use K&R prototypes.
23702         Remove LIBC-related code, since this file is not sync'd with glibc.
23703         * lib/strndup.h: Revamp, accordingly.
23704         * m4/strndup.m4: Modernize.
23705
23706 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
23707
23708         * modules/savewd (Depends-on): Add 'raise'.
23709         * lib/savewd.c: Include <signal.h>, for 'raise'.
23710
23711 2006-09-26  Jim Meyering  <jim@meyering.net>
23712
23713         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
23714         when we detect Darwin 8.7.0's acl_get_file bug.
23715         Rearrange to perform the new (below) run-test while $LIBS
23716         contains any acl-related library.  Set USE_ACL at the end.
23717         (gl_ACL_GET_FILE): New function.
23718
23719 2006-09-26  Eric Blake  <ebb9@byu.net>
23720
23721         * lib/verror.c: Include <config.h> unconditionally.
23722
23723 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
23724
23725         * modules/clock-time (Maintainer): Add self.
23726         * modules/getlogin_r (Depends-on): Add extensions.
23727
23728 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23729
23730         * modules/clock-time: New module.
23731         * modules/nanosleep (Depends-on): Add clock-time.
23732         * modules/gethrxtime (Depends-on): Likewise.
23733         * modules/gettime (Depends-on): Likewise.
23734         * modules/settime (Depends-on): Likewise.
23735
23736         * modules/fts-lgpl: Depend on openat.
23737         * modules/mkancesdirs: Depend on savewd.
23738         * modules/mkdir-p: Likewise.
23739
23740 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23741
23742         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
23743
23744         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
23745         `gl_have_arbitrary_file_name_length_limit' to
23746         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
23747         actually works between configure runs.
23748
23749 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23750             Bruno Haible  <bruno@clisp.org>
23751
23752         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
23753
23754 2006-09-25  Jim Meyering  <jim@meyering.net>
23755
23756         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
23757         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
23758
23759 2006-09-25  Eric Blake  <ebb9@byu.net>
23760
23761         * gnulib-tool (func_import, func_create_testdir): Fix typos in
23762         exec's in 2006-09-18 patch when shuffling fds.
23763
23764 2006-09-25  Bruno Haible  <bruno@clisp.org>
23765
23766         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
23767         Reported by Jim Meyering.
23768
23769 2006-09-24  Jim Meyering  <jim@meyering.net>
23770
23771         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
23772         compare a pointer against a literal "0".  That caused failures with
23773         at least HP-UX's hpcc.
23774
23775 2006-09-22  Simon Josefsson  <jas@extundo.com>
23776
23777         * modules/gc-sha1:
23778         * modules/gc-md4:
23779         * modules/gc-hmac-sha1:
23780         * modules/gc-hmac-md5:
23781         * modules/gc-des:
23782         * modules/gc-arcfour: Distribute more files.
23783
23784 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23785
23786         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
23787         (gl_linked_iterator_from_to): Initialize struct completely.
23788         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
23789         (gl_tree_iterator_from_to): Likewise
23790         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
23791         * lib/gl_array_list.c [lint] (gl_array_iterator)
23792         (gl_array_iterator_from_to): Likewise.
23793         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
23794         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
23795         (gl_carray_iterator_from_to): Likewise.
23796
23797         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
23798         * lib/md4.c (md4_process_block): Remove unused variable.
23799         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
23800         parentheses for clarity.
23801
23802 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23803
23804         * modules/bison-i18n (Depends-on): Add gettext.
23805
23806 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23807
23808         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
23809         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
23810         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
23811         also add missing comma that caused broken test.
23812         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
23813         stdlib.h, for `abort'.
23814         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
23815         variables.
23816         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
23817         include unistd.h if present, for `rmdir'.
23818         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
23819         variables.
23820         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
23821         in the process include standard headers for prototypes.
23822         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
23823         gets declared on GNU/Linux.
23824         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
23825         unistd.h, for `rmdir'.
23826         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
23827
23828         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
23829         always true.
23830         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
23831
23832         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
23833
23834 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23835
23836         * gnulib-tool (func_version): Create output all at once.  This
23837         may help avoid triggering unnecessary SIGPIPEs, and at any
23838         rate it doesn't hurt.
23839
23840 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23841             Bruno Haible  <bruno@clisp.org>
23842
23843         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
23844         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
23845         * m4/signed.m4 (bh_C_SIGNED): Likewise.
23846
23847         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
23848         (gl_FUNC_VASPRINTF): Invoke it.
23849
23850 2006-09-22  Bruno Haible  <bruno@clisp.org>
23851
23852         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
23853         getloadavg.c as first argument.
23854
23855 2006-09-22  Bruno Haible  <bruno@clisp.org>
23856
23857         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
23858         at the beginning of the gl_INIT macro.
23859         * modules/getloadavg (configure.ac): Pass $gl_source_base to
23860         gl_GETLOADAVG.
23861
23862 2006-09-22  Bruno Haible  <bruno@clisp.org>
23863
23864         * gnulib-tool (func_create_megatestdir): Don't include the config-h
23865         module.
23866         Suggested by Ralf Wildenhues.
23867
23868 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
23869
23870         Import this patch from libc:
23871
23872         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
23873
23874         * lib/regex_internal.c (re_string_reconstruct): Handle
23875         offset < pstr->valid_raw_len && pstr->offsets_needed case.
23876         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
23877         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
23878         re_string_context_at.
23879
23880         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
23881         now requires it.
23882         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
23883         gl_REGEX now does it for us.
23884         (gl_REGEX): Add test taken from
23885         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
23886
23887         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
23888         Check that large offsets work.  Modernize Autoconf usages.
23889         Prefer "yes" to mean a good thing rather than a bad.
23890         Don't put "#define mkstemp" in config.h, as this might interfere
23891         with standard system headers that "#define mkstemp mkstemp64".
23892
23893         * modules/mkstemp (Depends-on): Add extensions, so that
23894         mkstemp is visible on some platforms.
23895         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
23896         (Include): Change to "mkstemp.h" from <stdlib.h>.
23897         (Files): Add mkstemp.h.
23898
23899         * lib/mkstemp.h: New file, since some standard headers
23900         #define mkstemp.
23901         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
23902         Include "mkstemp.h".
23903         Make the _LIBC code resemble glibc original more,
23904         e.g., use K&R style.
23905         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
23906         (mkstemp): Remove, since mkstemp.h does this for us.
23907         * lib/stdlib--.h: Include mkstemp.h.
23908
23909         Import this patch from libc:
23910
23911         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
23912
23913         * lib/tempname.c (__gen_tempname): Change attempts_min
23914         into a macro.  Use preprocessor to decide how to initialize
23915         attempts [Coverity CID 67].
23916
23917 2006-09-20  Bruno Haible  <bruno@clisp.org>
23918
23919         * lib/mkdtemp.c: Import from libc.
23920         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
23921                 * sysdeps/posix/tempname.c (__gen_tempname): Change
23922                 attempts_min into a macro.  Use preprocessor to decide how to
23923                 initialize attempts [Coverity CID 67].
23924         2001-11-27  Paul Eggert  <eggert@twinsun.com>
23925                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
23926                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
23927
23928 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23929
23930         * gnulib-tool (func_exit): New function, to allow to pass the
23931         exit status portably through the trap.  Use everywhere.
23932         (--help, --version): Signal a write error.
23933         (trap): catch SIGPIPE, for write errors.
23934         Exit at the end of the trap, with the correct exit status.
23935
23936 2006-09-19  Karl Berry  <karl@gnu.org>
23937
23938         * doc/gnulib.texi: note about the license texinfo files.
23939
23940 2006-09-19  Eric Blake  <ebb9@byu.net>
23941
23942         * gnulib-tool: Avoid space-tab.
23943
23944 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
23945
23946         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
23947         that prevented coreutils 6.1 from building.  Problem reported
23948         by Petter Reinholdtsen.
23949
23950 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
23951
23952         * gnulib-tool (avoidlist): Fix typo that broke options like
23953         --avoid=lock that are used by coreutils bootstrap.
23954
23955 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
23956
23957         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
23958         more systematically.
23959
23960 2006-09-18  Jim Meyering  <jim@meyering.net>
23961
23962         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
23963
23964 2006-09-18  Bruno Haible  <bruno@clisp.org>
23965
23966         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
23967
23968 2006-09-18  Bruno Haible  <bruno@clisp.org>
23969
23970         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
23971         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
23972         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
23973         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
23974         * m4/gettext.m4: Require autoconf >= 2.52.
23975         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
23976         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
23977         of gl_cv_header_inttypes_h.
23978
23979 2006-09-18  Bruno Haible  <bruno@clisp.org>
23980
23981         * lib/javaversion.c: Include configmake.h.
23982
23983 2006-09-18  Bruno Haible  <bruno@clisp.org>
23984
23985         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
23986         avoid that the while loops be executed in a subshell.
23987
23988 2006-09-18  Bruno Haible  <bruno@clisp.org>
23989
23990         * MODULES.html.sh (func_module): Break long lines.
23991         Suggested by Bruce Korb <bkorb@gnu.org>.
23992
23993 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
23994
23995         Speed up by a factor of 1.12.
23996         * gnulib-tool (nl): New variable.
23997         (func_import): Rewrite include directive extraction to only read each
23998         directive once.
23999
24000 2006-09-17  Bruno Haible  <bruno@clisp.org>
24001
24002         * modules/javaversion (Makefile.am): Remove DEFS setting.
24003         (Depends-on): Add configmake, for PKGDATADIR definition.
24004
24005 2006-09-17  Bruno Haible  <bruno@clisp.org>
24006
24007         * gnulib-tool (func_create_testdir): Rewrite all files at once.
24008
24009 2006-09-17  Bruno Haible  <bruno@clisp.org>
24010
24011         * gnulib-tool (func_append): New function, stolen from libtool.m4.
24012         (func_modules_transitive_closure, func_modules_add_dummy,
24013         func_modules_to_filelist, func_import, func_create_testdir,
24014         func_create_megatestdir, ...): Use it wherever possible.
24015         Suggested by Ralf Wildenhues.
24016
24017 2006-09-16  Karl Berry  <karl@gnu.org>
24018
24019         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
24020         to avoid sectioning errors.
24021         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
24022         [ifinfo]: blank line after @center-ed titles.
24023         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
24024         Spell FSF address consistently with others.
24025         (These changes approved by rms.)
24026
24027 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24028
24029         Speed up by a factor of 1.61.
24030         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
24031         already checked module names again.
24032
24033 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24034
24035         Speed up by a factor of 1.13.
24036         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
24037         for new_files, and the input to func_add_or_update.
24038
24039 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24040
24041         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
24042         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
24043
24044 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
24045
24046         * modules/mkancesdirs (Depends-on): Add fcntl.
24047         * modules/savewd: New file.
24048         * MODULES.html.sh (File system functions): Add savewd.
24049
24050         * modules/configmake (Makefile.am): Add support for the
24051         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
24052
24053 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
24054
24055         * m4/savewd.m4: New file.
24056
24057 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
24058
24059         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
24060         (dirchownmod): New arg FD.  All callers changed.
24061         Use FD rather than opening the directory ourself, as opening is
24062         now the caller's responsibility.
24063         * lib/dirchownmod.h: Likewise.
24064         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
24065         hosts that require <sys/types.h> before <sys/stat.h>.  Include
24066         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
24067         (test_dir): Remove.
24068         (mkancesdirs): Return length of prefix of FILE that has already
24069         been made, or -2 if there is a child doing the work.  Redo
24070         algorithm so that it is O(N) rather than O(N**2).  Optimize away
24071         ".", and treat ".." specially since it might stray back into
24072         already-created areas.  Use a subprocess if necessary.  New arg
24073         WD; all users changed.  MAKE_DIR function should now return 1
24074         if it creates a directory that is not readable.  Return -2 if
24075         a child process is spun off.
24076         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
24077         Adjust signature to match code.
24078         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
24079         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
24080         all users changed.
24081         * lib/savewd.c, lib/savewd.h: New files.
24082
24083 2006-09-15  Jim Meyering  <jim@meyering.net>
24084
24085         * modules/rename-dest-slash: New module.
24086         * MODULES.html.sh (posix_compat): Add it here.
24087
24088         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
24089
24090 2006-09-15  Jim Meyering  <jim@meyering.net>
24091
24092         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
24093         file.
24094
24095         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
24096
24097 2006-09-15  Jim Meyering  <jim@meyering.net>
24098
24099         * lib/rename-dest-slash.c (has_trailing_slash): Use
24100         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
24101         (rpl_rename_dest_slash): Perform the cheaper trailing slash
24102         test before testing whether SRC is a directory.
24103         Suggestions from Bruno Haible.
24104
24105         Avoid a warning about an unused variable.
24106         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
24107         into the #ifdef block where it's used.
24108
24109         * lib/rename-dest-slash.c: New file.
24110
24111 2006-09-14  Bruno Haible  <bruno@clisp.org>
24112
24113         * lib/allocsa.c: Include <config.h> unconditionally.
24114         * lib/asnprintf.c: Likewise.
24115         * lib/asprintf.c: Likewise.
24116         * lib/c-strcasecmp.c: Likewise.
24117         * lib/c-strcasestr.c: Likewise.
24118         * lib/c-strncasecmp.c: Likewise.
24119         * lib/c-strstr.c: Likewise.
24120         * lib/classpath.c: Likewise.
24121         * lib/clean-temp.c: Likewise.
24122         * lib/concatpath.c: Likewise.
24123         * lib/copy-file.c: Likewise.
24124         * lib/csharpcomp.c: Likewise.
24125         * lib/csharpexec.c: Likewise.
24126         * lib/execute.c: Likewise.
24127         * lib/fatal-signal.c: Likewise.
24128         * lib/findprog.c: Likewise.
24129         * lib/fwriteerror.c: Likewise.
24130         * lib/gl_array_list.c: Likewise.
24131         * lib/gl_array_oset.c: Likewise.
24132         * lib/gl_avltree_list.c: Likewise.
24133         * lib/gl_avltree_oset.c: Likewise.
24134         * lib/gl_avltreehash_list.c: Likewise.
24135         * lib/gl_carray_list.c: Likewise.
24136         * lib/gl_linked_list.c: Likewise.
24137         * lib/gl_linkedhash_list.c: Likewise.
24138         * lib/gl_list.c: Likewise.
24139         * lib/gl_oset.c: Likewise.
24140         * lib/gl_rbtree_list.c: Likewise.
24141         * lib/gl_rbtree_oset.c: Likewise.
24142         * lib/gl_rbtreehash_list.c: Likewise.
24143         * lib/imaxabs.c: Likewise.
24144         * lib/imaxdiv.c: Likewise.
24145         * lib/javacomp.c: Likewise.
24146         * lib/javaexec.c: Likewise.
24147         * lib/javaversion.c: Likewise.
24148         * lib/linebreak.c: Likewise.
24149         * lib/localcharset.c: Likewise.
24150         * lib/lock.c: Likewise.
24151         * lib/mbchar.c: Likewise.
24152         * lib/mbswidth.c: Likewise.
24153         * lib/mkdtemp.c: Likewise.
24154         * lib/pipe.c: Likewise.
24155         * lib/printf-args.c: Likewise.
24156         * lib/printf-parse.c: Likewise.
24157         * lib/progname.c: Likewise.
24158         * lib/progreloc.c: Likewise.
24159         * lib/readlink.c: Likewise.
24160         * lib/sh-quote.c: Likewise.
24161         * lib/stpcpy.c: Likewise.
24162         * lib/stpncpy.c: Likewise.
24163         * lib/strcasecmp.c: Likewise.
24164         * lib/strcasestr.c: Likewise.
24165         * lib/strcspn.c: Likewise.
24166         * lib/striconv.c: Likewise.
24167         * lib/strncasecmp.c: Likewise.
24168         * lib/strnlen1.c: Likewise.
24169         * lib/strstr.c: Likewise.
24170         * lib/strtok_r.c: Likewise.
24171         * lib/tls.c: Likewise.
24172         * lib/tmpdir.c: Likewise.
24173         * lib/unicodeio.c: Likewise.
24174         * lib/unsetenv.c: Likewise.
24175         * lib/vasnprintf.c: Likewise.
24176         * lib/vasprintf.c: Likewise.
24177         * lib/wait-process.c: Likewise.
24178         * lib/xallocsa.c: Likewise.
24179         * lib/xsetenv.c: Likewise.
24180         * lib/xstriconv.c: Likewise.
24181
24182 2006-09-13  Simon Josefsson  <jas@extundo.com>
24183
24184         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
24185         that internally, suggested by Ralf Wildenhues
24186         <Ralf.Wildenhues@gmx.de>.
24187
24188 2006-09-13  Simon Josefsson  <jas@extundo.com>
24189
24190         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
24191         @LIBOBJS@.
24192         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
24193
24194 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
24195
24196         * lib/_fpending.c: Include <config.h> unconditionally, since we no
24197         longer worry about uses that don't define HAVE_CONFIG_H.
24198         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
24199         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
24200         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
24201         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
24202         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
24203         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
24204         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
24205         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
24206         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
24207         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
24208         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
24209         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
24210         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
24211         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
24212         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
24213         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
24214         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
24215         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
24216         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
24217         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
24218         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
24219         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
24220         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
24221         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
24222         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
24223         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
24224         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
24225         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
24226         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
24227         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
24228         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
24229         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
24230         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
24231         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
24232         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
24233         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
24234         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
24235         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
24236         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
24237         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
24238         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
24239         Likewise.
24240
24241 2006-09-13  Eric Blake  <ebb9@byu.net>
24242
24243         * lib/getopt.c: Fix typo in last commit.
24244
24245 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
24246
24247         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
24248         dgettext.
24249
24250 2006-09-12  Jim Meyering  <jim@meyering.net>
24251
24252         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
24253         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
24254         Reported by Nelson H. F. Beebe.
24255
24256 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
24257
24258         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
24259         program_invocation_name and program_invocation_short_name are
24260         initialized.
24261         * lib/argp-namefrob.h: Move declarations of program_invocation_name
24262         and program_invocation_short_name to argp.h, so they are visible
24263         to user programs.
24264         * lib/argp.h: Likewise
24265
24266 2006-09-10  Bruno Haible  <bruno@clisp.org>
24267
24268         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
24269         m4/inttypes_h.m4, m4/uintmax_t.m4.
24270
24271 2006-09-10  Bruno Haible  <bruno@clisp.org>
24272
24273         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
24274         gl_AC_TYPE_UINTMAX_T.
24275
24276 2006-09-10  Bruno Haible  <bruno@clisp.org>
24277
24278         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
24279
24280 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
24281
24282         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
24283         convention.  Text proposed by Bruno Haible.
24284         (struct argp_option): Document the use of N_() wrappers.
24285
24286         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
24287         '\v', and translate the two parts separately, instead of feeding
24288         the whole string to gettext.  This allows to exclude
24289         '\v' from the strings visible to the translator by writing doc
24290         strings as N_("..") "\v" N_("..").
24291
24292 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
24293
24294         * config/srclist.txt: Undo latest change; the bug was fixed.
24295
24296 2006-09-09  Bruno Haible  <bruno@clisp.org>
24297
24298         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
24299         assignments if building a library without libtool.
24300         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
24301         in func_emit_lib_Makefile_am.
24302         (func_import): When building a static library libfoo.a, arrange to
24303         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
24304         (func_create_testdir): Likewise.
24305         * modules/gc (configure.ac, Makefile.am): If building statically,
24306         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
24307         * modules/iconvme (configure.ac, Makefile.am): Likewise.
24308         * modules/striconv (configure.ac, Makefile.am): Likewise.
24309         Based on a suggestion by Ralf Wildenhues.
24310
24311 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
24312
24313         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
24314         Check for unistd.h too, since Autoconf doesn't assume POSIX.
24315         Also:
24316
24317         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
24318         Add year_2050_test to catch glibc bug 2821
24319         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
24320
24321         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
24322         Prefer #ifdef to #if.
24323
24324         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
24325         Return from 'main' instead of calling 'exit'.
24326
24327 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
24328
24329         * lib/mktime.c (guess_time_tm): Fix bug where mktime
24330         returned the maximum time_t value rather than (time_t) -1.
24331         Problem originally reported by William Bardwell
24332         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
24333
24334         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
24335         Moved to here ...
24336         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
24337         ... from here.
24338
24339 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
24340
24341         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
24342         2821 is fixed.
24343
24344 2006-09-08  Jim Meyering  <jim@meyering.net>
24345
24346         Don't make generated files read-only.  That would bother too many
24347         people.  However, do retain the ability to work when targets are
24348         read-only: remove the destination and temporary files before writing
24349         them (when generated via sed or echo), or by using the -f option for
24350         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
24351         * modules/alloca-opt, modules/argz, modules/arpa_inet:
24352         * modules/byteswap, modules/configmake, modules/fcntl:
24353         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
24354         * modules/localcharset, modules/netinet_in, modules/poll:
24355         * modules/stdbool, modules/stdint, modules/sys_select:
24356         * modules/sys_socket, modules/sys_stat, modules/sysexits:
24357
24358 2006-09-08  Jim Meyering  <jim@meyering.net>
24359
24360         Avoid new build failure on FreeBSD 6.0.
24361         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
24362         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
24363         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
24364
24365 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24366
24367         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
24368
24369 2006-09-07  Jim Meyering  <jim@meyering.net>
24370
24371         Fix global typo in last change: use chmod u-w, not chmod u-x.
24372         Spotted by Paul Eggert and Bruce Korb.
24373         * modules/alloca-opt, modules/argz, modules/arpa_inet:
24374         * modules/byteswap, modules/configmake, modules/fcntl:
24375         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
24376         * modules/localcharset, modules/netinet_in, modules/poll:
24377         * modules/stdbool, modules/stdint, modules/sys_select:
24378         * modules/sys_socket, modules/sys_stat, modules/sysexits:
24379
24380 2006-09-06  Jim Meyering  <jim@meyering.net>
24381
24382         Make generated files be read-only.
24383         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
24384         Ensure that each generated file is now read-only.
24385         * modules/argz: Likewise.
24386         * modules/arpa_inet: Likewise.
24387         * modules/byteswap: Likewise.
24388         * modules/configmake: Likewise.
24389         * modules/fcntl: Likewise.
24390         * modules/fnmatch: Likewise.
24391         * modules/getopt: Likewise.
24392         * modules/glob: Likewise.
24393         * modules/inttypes: Likewise.
24394         * modules/netinet_in: Likewise.
24395         * modules/poll: Likewise.
24396         * modules/stdbool: Likewise.
24397         * modules/stdint: Likewise.
24398         * modules/sys_select: Likewise.
24399         * modules/sys_socket: Likewise.
24400         * modules/sys_stat: Likewise.
24401         * modules/sysexits: Likewise.
24402         * modules/localcharset: Same as above, but continue using temporary
24403         file named "t-$@" (why different?) rather than the "$@-t" used
24404         everywhere else.
24405
24406         * modules/sysexits (Makefile.am): Replace literal occurrences
24407         of "sysexit.h" more readable, and more consistent, "$@".
24408
24409 2006-09-06  Bruno Haible  <bruno@clisp.org>
24410
24411         * modules/striconv: New file.
24412         * modules/xstriconv: New file.
24413         * MODULES.html.sh (Internationalization functions): Add striconv,
24414         xstriconv.
24415
24416 2006-09-06  Bruno Haible  <bruno@clisp.org>
24417
24418         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
24419         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
24420         not using libtool correctly.
24421
24422 2006-09-06  Bruno Haible  <bruno@clisp.org>
24423
24424         * lib/striconv.h: New file.
24425         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
24426         iconvstring.c.
24427         * lib/xstriconv.h: New file.
24428         * lib/xstriconv.c: New file.
24429
24430 2006-09-06  Bruno Haible  <bruno@clisp.org>
24431
24432         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
24433         lib_..._LDFLAGS.
24434
24435 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24436
24437         * lib/argz_.h: Sync from Libtool.
24438
24439         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
24440                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
24441
24442         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
24443
24444 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
24445
24446         * modules/trim: New file.
24447
24448 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
24449
24450         * lib/trim.h: New file.
24451         * lib/trim.c: New file.
24452
24453 2006-09-05  Bruno Haible  <bruno@clisp.org>
24454
24455         * MODULES.html.sh (String handling): Add trim.
24456
24457 2006-09-04  Karl Berry  <karl@gnu.org>
24458
24459         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
24460         until next release.
24461
24462 2006-09-03  Bruno Haible  <bruno@clisp.org>
24463
24464         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
24465         correctly.
24466
24467 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
24468
24469         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
24470         not gl_GETLOADAVG.  Omit unneeded semicolons.
24471         Problems reported by Ralf Wildenhues in
24472         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
24473         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
24474         at the end, which is the usual gnulib style.
24475
24476         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
24477         of doing all the work ourselves.
24478         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
24479         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
24480
24481 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
24482
24483         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
24484         Problem reported by Ralf Wildenhues in
24485         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
24486
24487         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
24488         HAVE_STRUCT_STATFS_F_FSTYPENAME.
24489
24490 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
24491
24492         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
24493         yesterday's patch by changing test -n to test -z.
24494
24495 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
24496
24497         * modules/getloadavg (Files): Add m4/getloadavg.m4.
24498         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
24499         the former is now obsolescent.
24500
24501         * modules/chdir-long (Depends-on): Add fcntl.
24502
24503 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
24504
24505         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
24506         obsolescent, and programs should use gnulib instead.
24507         * m4/getloadavg.m4: New file, with contents taken from Autoconf
24508         but with prefixes changed.
24509
24510 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
24511
24512         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
24513         or stdbool.h, because they might not exist while configuring.
24514
24515         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
24516         Don't include unistd.h or limits.h; not needed, since chdir-long.h
24517         does that for us.
24518         (O_DIRECTORY): Remove.
24519
24520 2006-08-31  Eric Blake  <ebb9@byu.net>
24521
24522         * gnulib-tool: Don't let emacs change spaces to TAB.
24523
24524 2006-08-31  Bruno Haible  <bruno@clisp.org>
24525
24526         * gnulib-tool: When calling func_import more than once, do it in a
24527         subshell.
24528         Reported by Eric Blake <ebb9@byu.net>.
24529
24530 2006-08-31  Bruno Haible  <bruno@clisp.org>
24531
24532         * gnulib-tool (nl): Remove variable.
24533         (sed_transform_lib_file): Use more robust test for config-h module.
24534         (func_import): Fix typo in 2006-08-25 patch.
24535
24536 2006-08-31  Bruno Haible  <bruno@clisp.org>
24537
24538         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
24539         specified, augment Makefile.am variables instead of assigning them.
24540
24541 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
24542
24543         Work around a bug in both the Linux and SunOS 64-bit kernels:
24544         nanosleep mishandles sleeps for longer than 2**31 seconds.
24545         Problem reported by Frank v Waveren in
24546         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
24547         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
24548         Check for nanosleep bug.
24549         (LIB_NANOSLEEP): Append clock_gettime library if needed.
24550
24551 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
24552
24553         Work around a bug in both the Linux and SunOS 64-bit kernels:
24554         nanosleep mishandles sleeps for longer than 2**31 seconds.
24555         Problem reported by Frank v Waveren in
24556         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
24557         * lib/nanosleep.c (BILLION): New constant.
24558         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
24559         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
24560         implementation.
24561
24562 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
24563
24564         * modules/nanosleep (Depends-on): Add gettime.
24565
24566 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
24567         and Simon Josefsson  <jas@extundo.com>
24568         and Oskar Liljeblad  <oskar@osk.mine.nu>
24569
24570         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
24571         * gnulib-tool (func_import): New license type 'unmodifiable license
24572         text'.
24573         * modules/fdl: Use it.  Longer description.
24574         * module/gpl, module/lgpl: New files.
24575
24576 2006-08-30  Jim Meyering  <jim@meyering.net>
24577
24578         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
24579         shadowing the parameter.
24580
24581 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24582
24583         Sync from Libtool:
24584
24585         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24586
24587         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
24588         sharing with gnulib.  Report by Eric Blake.
24589
24590 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
24591
24592         * modules/isapipe: New file.
24593         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
24594
24595 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
24596
24597         * modules/configmake (Makefile.am): Add a comment, and omit
24598         the CONFIGMAKE_ prefix from generated macro names.  Suggested
24599         by Bruno Haible.
24600
24601 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
24602
24603         * m4/isapipe.m4: New file.
24604
24605 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
24606
24607         * lib/isapipe.c, lib/isapipe.h: New files.
24608
24609 2006-08-29  Jim Meyering  <jim@meyering.net>
24610
24611         * modules/configmake (Makefile.am): Make configmake.h depend on
24612         Makefile.  Otherwise, a stale configmake.h could hang around.
24613
24614 2006-08-29  Eric Blake  <ebb9@byu.net>
24615
24616         * lib/error.c (error_at_line, print_errno_message): Match libc, after
24617         resolution of upstream bug 3044.
24618
24619 2006-08-29  Bruno Haible  <bruno@clisp.org>
24620
24621         * modules/localcharset (Depends-on): Add configmake.
24622         (Makefile.am): Remove setting of LIBDIR through DEFS.
24623
24624 2006-08-29  Bruno Haible  <bruno@clisp.org>
24625
24626         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
24627         defined.
24628
24629 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
24630
24631         * modules/fcntl: New file.
24632         * modules/chdir-safer (Depends-on): Add fcntl.
24633         * modules/fts: Likewise.
24634         * modules/mkdir-p: Likewise.
24635
24636         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
24637         This undoes the most recent change, since we're now addressing the
24638         problem in a different way.
24639
24640         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
24641         into output, since the output might be called Makefile.am even
24642         if $makefile_name is something different.
24643         (func_import): Use $makefile_am rather than
24644         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
24645         empty.
24646
24647         * modules/inttypes (Files): Add m4/inttypes-h.m4.
24648
24649 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
24650
24651         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
24652         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
24653         recent change to stdint.m4, since we're now addressing the problem in a
24654         different way.
24655
24656 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
24657
24658         * m4/fcntl_h.m4: New file.
24659
24660 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
24661
24662         * lib/fcntl_.h: New file.
24663         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
24664         the fcntl module.
24665         * lib/dirchownmod.c: Likewise.
24666         * lib/fts.c: Likewise.
24667
24668         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
24669         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
24670         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
24671         just before including <inttypes.h>, to avoid circular inclusion.
24672
24673 2006-08-28  Jim Meyering  <jim@meyering.net>
24674
24675         * doc/visibility.texi: Actually read and correct the grammar of the
24676         sentence affected by yesterday's change.
24677
24678 2006-08-28  Eric Blake  <ebb9@byu.net>
24679
24680         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
24681         needs wrapper.
24682
24683 2006-08-28  Eric Blake  <ebb9@byu.net>
24684
24685         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
24686
24687 2006-08-28  Eric Blake  <ebb9@byu.net>
24688
24689         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
24690
24691 2006-08-28  Bruno Haible  <bruno@clisp.org>
24692
24693         * modules/c-strstr: New file, from GNU gettext.
24694         * MODULES.html.sh (String handling): Add c-strstr.
24695
24696 2006-08-28  Bruno Haible  <bruno@clisp.org>
24697
24698         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
24699         macros.
24700         Reported by Eric Blake.
24701
24702 2006-08-28  Bruno Haible  <bruno@clisp.org>
24703
24704         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
24705         (VASNPRINTF): Return a string of length > INT_MAX without failing.
24706         * lib/vasprintf.c: Include errno.h, limits.h.
24707         (EOVERFLOW): New fallback definition.
24708         (vasprintf): Test here whether the string length is > INT_MAX.
24709         * lib/vsnprintf.c: Include errno.h, limits.h.
24710         (EOVERFLOW): New fallback definition.
24711         (vsnprintf): Fix bug when generated string was too long for the buffer.
24712         Test here whether the string length is > INT_MAX.
24713
24714 2006-08-28  Bruno Haible  <bruno@clisp.org>
24715
24716         * lib/inttypes_.h (SCNX*): Remove definitions.
24717         Reported by Eric Blake.
24718
24719 2006-08-28  Bruno Haible  <bruno@clisp.org>
24720
24721         * lib/c-strstr.h: New file, from GNU gettext.
24722         * lib/c-strstr.c: New file, from GNU gettext.
24723
24724 2006-08-28  Bruno Haible  <bruno@clisp.org>
24725
24726         * gnulib-tool: Reorder some statements.
24727
24728 2006-08-28  Bruno Haible  <bruno@clisp.org>
24729
24730         * gnulib-tool: New option --makefile-name.
24731         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
24732         $makefile_name.
24733         (func_import): Write $makefile_name to the cache file, and read it from
24734         there unless explicitly specified. Use $makefile_name as file name
24735         instead of Makefile.am. Adjust the recommendations accordingly.
24736
24737 2006-08-28  Bruno Haible  <bruno@clisp.org>
24738
24739         * gnulib-tool (func_verify_module): Check against misapplying patch.
24740
24741 2006-08-28  Bruno Haible  <bruno@clisp.org>
24742
24743         * gnulib-tool (func_relativize, func_relconcat): New functions.
24744         Give an error if --local-dir is given with --update.
24745         Remove trailing slashes from $local_gnulib_dir.
24746         (func_import): Store the relativized $local_gnulib_dir in
24747         gnulib-cache.m4, and read it from there if not specified explicitly.
24748
24749 2006-08-28  Bruno Haible  <bruno@clisp.org>
24750
24751         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
24752         is the current directory. Respect also $local_gnulib_dir.
24753
24754 2006-08-28  Bruno Haible  <bruno@clisp.org>
24755             Simon Josefsson  <jas@extundo.com>
24756
24757         BeOS portability.
24758         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
24759
24760 2006-08-27  Jim Meyering  <jim@meyering.net>
24761
24762         * doc/visibility.texi: Remove duplicate word: "pointer".
24763
24764 2006-08-26  Bruno Haible  <bruno@clisp.org>
24765
24766         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
24767         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
24768         (Makefile.am): Create inttypes.h from inttypes_.h.
24769         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
24770
24771         * modules/imaxabs: New file.
24772
24773         * modules/imaxdiv: New file.
24774
24775 2006-08-26  Bruno Haible  <bruno@clisp.org>
24776
24777         * m4/inttypes.m4: New file.
24778         * m4/_inttypes_h.m4: Remove file.
24779         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
24780         PRI_MACROS_BROKEN.
24781         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
24782
24783         * m4/imaxabs.m4: New file.
24784
24785         * m4/imaxdiv.m4: New file.
24786
24787 2006-08-26  Bruno Haible  <bruno@clisp.org>
24788
24789         * lib/inttypes_.h: New file.
24790         * lib/inttypes.h: Remove file.
24791         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
24792
24793         * lib/imaxabs.c: New file.
24794
24795         * lib/imaxdiv.c: New file.
24796
24797 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
24798
24799         New config-h module, so that "make" output needn't be cluttered
24800         by -DHAVE_CONFIG_H.
24801         * MODULES.html.sh (Support for building libraries and executables):
24802         Add config-h.
24803         * modules/config-h: New file.
24804         * gnulib-tool (nl, sed_transform_lib_file): New vars.
24805         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
24806         the config-h module is used.
24807
24808         New configmake module, so that "make" output needn't be cluttered
24809         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
24810         * MODULES.html.sh (Support for building libraries and executables):
24811         Add configmake.
24812         * modules/configmake: New file.
24813
24814 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
24815
24816         * m4/config-h.m4: New file.
24817
24818 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
24819
24820         * config/srclist.txt: Add elisp-comp.
24821
24822 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
24823
24824         * MODULES.html.sh (Support for building libraries and executables):
24825         Add elisp-comp.
24826         * build-aux/elisp-comp: New file.
24827         * modules/elisp-comp: New file.
24828
24829 2006-08-24  Bruno Haible  <bruno@clisp.org>
24830
24831         * gnulib-tool (func_create_testdir): Use non-default values of
24832         sourcebase and m4base.
24833
24834 2006-08-24  Bruno Haible  <bruno@clisp.org>
24835
24836         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
24837         HTML structure.
24838
24839 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
24840
24841         * modules/openat (Depends-on): Add lchown.
24842
24843 2006-08-23  Bruno Haible  <bruno@clisp.org>
24844
24845         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
24846         of gl_LOCK_EARLY instead of gl_LOCK.
24847
24848 2006-08-23  Bruno Haible  <bruno@clisp.org>
24849
24850         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
24851         on OSF/1 to no.
24852         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
24853
24854 2006-08-23  Bruno Haible  <bruno@clisp.org>
24855
24856         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
24857         as unusable.
24858
24859         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
24860         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
24861         (gl_LOCK): New macro.
24862
24863 2006-08-22  Simon Josefsson  <jas@extundo.com>
24864
24865         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
24866         to md5 module.
24867
24868 2006-08-22  Simon Josefsson  <jas@extundo.com>
24869
24870         * MODULES.html.sh: Add "Support for maintaining and release
24871         projects".
24872
24873         * build-aux/gnupload: New file, from coreutils.
24874
24875 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
24876
24877         Avoid the need for AC_LIBSOURCES in m4 macros.
24878         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
24879         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
24880         * modules/check-version (EXTRA_DIST): Add check-version.h.
24881         * modules/crc (EXTRA_DIST): Add crc.h.
24882         * modules/des (EXTRA_DIST): Add des.h.
24883         * modules/gc (EXTRA_DIST): Add gc.h.
24884         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
24885         * modules/getline (EXTRA_DIST): Add getline.h.
24886         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
24887         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
24888         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
24889         * modules/md2 (EXTRA_DIST): Add md2.h.
24890         * modules/md4 (EXTRA_DIST): Add md4.h.
24891         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
24892         * modules/read-file (EXTRA_DIST): Add read-file.h.
24893         * modules/readline (EXTRA_DIST): Add readline.h.
24894         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
24895         rijndael-api-fst.h.
24896
24897 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
24898
24899         * m4/rijndael.m4 (gl_ARCFOUR):
24900         * m4/arctwo.m4 (gl_ARCTWO):
24901         * m4/check-version.m4 (gl_CHECK_VERSION):
24902         * m4/crc.m4 (gl_CRC):
24903         * m4/des.m4 (gl_DES):
24904         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
24905         * m4/gc.m4 (gl_GC):
24906         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
24907         * m4/getline.m4 (gl_FUNC_GETLINE):
24908         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
24909         * m4/hmac-md5.m4 (gl_HMAC_MD5):
24910         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
24911         * m4/md2.m4 (gl_MD2):
24912         * m4/md4.m4 (gl_MD4):
24913         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
24914         * m4/read-file.m4 (gl_FUNC_READ_FILE):
24915         * m4/readline.m4 (gl_FUNC_READLINE):
24916         * m4/rijndael.m4 (gl_RIJNDAEL):
24917         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
24918         to get the necessary .h files and whatnot.
24919
24920 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
24921
24922         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
24923         gnulib rather than the other way around.
24924         * config/srclistvars.sh (COREUTILS): Remove.
24925
24926 2006-08-22  Jim Meyering  <jim@meyering.net>
24927
24928         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
24929
24930         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
24931
24932 2006-08-22  Eric Blake  <ebb9@byu.net>
24933
24934         * modules/regexprops-generic: New file.
24935         * MODULES.html.sh (Support for building documentation): List it.
24936
24937 2006-08-22  Eric Blake  <ebb9@byu.net>
24938
24939         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
24940         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
24941         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
24942         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
24943
24944 2006-08-22  Bruno Haible  <bruno@clisp.org>
24945
24946         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
24947         and lib_LTLIBRARIES like the other lib_* variables.
24948
24949 2006-08-22  Bruno Haible  <bruno@clisp.org>
24950
24951         * build-aux/x-to-1.in: New file, from GNU gettext.
24952
24953 2006-08-22  Bruno Haible  <bruno@clisp.org>
24954
24955         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
24956         <utmpx.h> exists.
24957
24958 2006-08-22  Bruno Haible  <bruno@clisp.org>
24959
24960         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
24961         <utmpx.h> exists.
24962
24963 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
24964
24965         BeOS portability.
24966         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
24967         exist.
24968         Problem reported by Bruno Haible.
24969
24970 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
24971
24972         Avoid the need for AC_LIBSOURCES in m4 macros.
24973         * modules/acl (EXTRA_DIST): Add acl.h.
24974         * modules/argmatch (Files): Add m4/argmatch.m4.
24975         (configure.ac): Add gl_ARGMATCH.
24976         (EXTRA_DIST): Renamed from lib_SOURCES, for
24977         consistency with the other modules.  Remove argmatch.c.
24978         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
24979         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
24980         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
24981         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
24982         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
24983         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
24984         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
24985         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
24986         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
24987         * modules/closeout (EXTRA_DIST): Add closeout.h.
24988         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
24989         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
24990         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
24991         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
24992         dirname.h; remove basename.c and stripslash.c.
24993         * modules/exclude (EXTRA_DIST): Add exclude.h.
24994         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
24995         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
24996         * modules/file-type (EXTRA_DIST): Add file-type.h.
24997         * modules/filemode (EXTRA_DIST): Add filemode.h.
24998         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
24999         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
25000         * modules/fpending (EXTRA_DIST): Add __fpending.h.
25001         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
25002         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
25003         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
25004         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
25005         * modules/getdate (EXTRA_DIST): Add getdate.c.
25006         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
25007         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
25008         * modules/getpass (EXTRA_DIST): Add getpass.h.
25009         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
25010         * modules/group-member (EXTRA_DIST): Add group-member.h.
25011         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
25012         * modules/hash (EXTRA_DIST): Add hash.h.
25013         * modules/human (EXTRA_DIST): Add human.h.
25014         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
25015         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
25016         * modules/lchown (EXTRA_DIST): Add lchown.h.
25017         * modules/long-options (EXTRA_DIST): Add long-options.h.
25018         * modules/lstat (EXTRA_DIST): Add lstat.h.
25019         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
25020         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
25021         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
25022         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
25023         * modules/memxor (EXTRA_DIST): Add memxor.h.
25024         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
25025         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
25026         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
25027         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
25028         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
25029         * modules/physmem (EXTRA_DIST): Add physmem.h.
25030         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
25031         * modules/posixver (EXTRA_DIST): Add posixver.h.
25032         * modules/quote (EXTRA_DIST): Add quote.h.
25033         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
25034         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
25035         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
25036         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
25037         regex_internal.h regexec.c.
25038         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
25039         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
25040         * modules/same (EXTRA_DIST): Add same.h.
25041         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
25042         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
25043         * modules/savedir (EXTRA_DIST): Add savedir.h.
25044         * modules/sha1 (EXTRA_DIST): Add sha1.h.
25045         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
25046         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
25047         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
25048         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
25049         * modules/strdup (EXTRA_DIST): Add strdup.h.
25050         * modules/strftime (EXTRA_DIST): Add strftime.h.
25051         * modules/strndup (EXTRA_DIST): Add strndup.h.
25052         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
25053         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
25054         * modules/time_r (EXTRA_DIST): Add time_r.h.
25055         * modules/timespec (EXTRA_DIST): Add timespec.h.
25056         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
25057         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
25058         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
25059         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
25060         * modules/userspec (EXTRA_DIST): Add userspec.h.
25061         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
25062         * modules/utimens (EXTRA_DIST): Add utimens.h.
25063         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
25064         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
25065         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
25066         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
25067         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
25068         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
25069         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
25070         * modules/yesno (EXTRA_DIST): Add yesno.h.
25071
25072 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
25073
25074         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
25075
25076         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
25077         * m4/dev-ino.m4, same-inode.m4: Remove.
25078
25079         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
25080         * m4/acl.m4 (AC_FUNC_ACL):
25081         * m4/backupfile.m4 (gl_BACKUPFILE):
25082         * m4/c-strtod.m4 (gl_C99_STRTOLD):
25083         * m4/canon-host.m4 (gl_CANON_HOST):
25084         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
25085         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
25086         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
25087         * m4/cloexec.m4 (gl_CLOEXEC):
25088         * m4/close-stream.m4 (gl_CLOSE_STREAM):
25089         * m4/closeout.m4 (gl_CLOSEOUT):
25090         * m4/dirfd.m4 (gl_FUNC_DIRFD):
25091         * m4/dirname.m4 (gl_DIRNAME):
25092         * m4/exclude.m4 (gl_EXCLUDE):
25093         * m4/exitfail.m4 (gl_EXITFAIL):
25094         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
25095         * m4/file-type.m4 (gl_FILE_TYPE):
25096         * m4/filemode.m4 (gl_FILEMODE):
25097         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
25098         * m4/fpending.m4 (gl_FUNC_FPENDING):
25099         * m4/fprintftime.m4 (gl_FPRINTFTIME):
25100         * m4/fts.m4 (gl_FUNC_FTS):
25101         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
25102         * m4/getdate.m4 (gl_GETDATE):
25103         * m4/gethrxtime.m4 (gl_GETHRXTIME):
25104         * m4/getpagesize.m4 (gl_GETPAGESIZE):
25105         * m4/getpass.m4 (gl_FUNC_GETPASS):
25106         * m4/gettime.m4 (gl_GETTIME):
25107         * m4/getugroups.m4 (gl_GETUGROUPS):
25108         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
25109         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
25110         * m4/hard-locale.m4 (gl_HARD_LOCALE):
25111         * m4/hash.m4 (gl_HASH):
25112         * m4/idcache.m4 (gl_IDCACHE):
25113         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
25114         * m4/lchown.m4 (gl_FUNC_LCHOWN):
25115         * m4/long-options.m4 (gl_LONG_OPTIONS):
25116         * m4/lstat.m4 (gl_FUNC_LSTAT):
25117         * m4/md5.m4 (gl_MD5):
25118         * m4/memcasecmp.m4 (gl_MEMCASECMP):
25119         * m4/memcoll.m4 (gl_MEMCOLL):
25120         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
25121         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
25122         * m4/memxor.m4 (gl_MEMXOR):
25123         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
25124         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
25125         * m4/modechange.m4 (gl_MODECHANGE):
25126         * m4/mountlist.m4 (gl_MOUNTLIST):
25127         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
25128         * m4/openat.m4 (gl_FUNC_OPENAT):
25129         * m4/pathmax.m4 (gl_PATHMAX):
25130         * m4/physmem.m4 (gl_PHYSMEM):
25131         * m4/posixtm.m4 (gl_POSIXTM):
25132         * m4/posixver.m4 (gl_POSIXVER):
25133         * m4/quote.m4 (gl_QUOTE):
25134         * m4/quotearg.m4 (gl_QUOTEARG):
25135         * m4/readtokens.m4 (gl_READTOKENS):
25136         * m4/readutmp.m4 (gl_READUTMP):
25137         * m4/regex.m4 (gl_REGEX):
25138         * m4/safe-read.m4 (gl_SAFE_READ):
25139         * m4/safe-write.m4 (gl_SAFE_WRITE):
25140         * m4/same.m4 (gl_SAME):
25141         * m4/save-cwd.m4 (gl_SAVE_CWD):
25142         * m4/savedir.m4 (gl_SAVEDIR):
25143         * m4/settime.m4 (gl_SETTIME):
25144         * m4/sha1.m4 (gl_SHA1):
25145         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
25146         * m4/stat-macros.m4 (gl_STAT_MACROS):
25147         * m4/stat-time.m4 (gl_STAT_TIME):
25148         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
25149         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
25150         * m4/strdup.m4 (gl_FUNC_STRDUP):
25151         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
25152         * m4/strndup.m4 (gl_FUNC_STRNDUP):
25153         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
25154         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
25155         * m4/time_r.m4 (gl_TIME_R):
25156         * m4/timespec.m4 (gl_TIMESPEC):
25157         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
25158         * m4/unlinkdir.m4 (gl_UNLINKDIR):
25159         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
25160         * m4/userspec.m4 (gl_USERSPEC):
25161         * m4/utimecmp.m4 (gl_UTIMECMP):
25162         * m4/utimens.m4 (gl_UTIMENS):
25163         * m4/xalloc.m4 (gl_XALLOC):
25164         * m4/xgetcwd.m4 (gl_XGETCWD):
25165         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
25166         * m4/xreadlink.m4 (gl_XREADLINK):
25167         * m4/xstrtod.m4 (gl_XSTRTOD):
25168         * m4/yesno.m4 (gl_YESNO):
25169         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
25170         to get the necessary .h files and whatnot.
25171
25172 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
25173             Bruno Haible  <bruno@clisp.org>
25174
25175         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
25176         /bin/sh understanding of '!' conditional negation.
25177
25178 2006-08-21  Jim Meyering  <jim@meyering.net>
25179
25180         * modules/openat (Depends-on): Really alphabetize.
25181
25182         * modules/acl (Depends-on): Add error and quote.
25183
25184         * check-module (find_included_lib_files): Add at-func.c to the
25185         ok-to-include-more-than-once white list.
25186
25187         * modules/openat (Depends-on): Add lstat.  Alphabetize.
25188
25189 2006-08-21  Bruno Haible  <bruno@clisp.org>
25190
25191         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
25192         Emit a pkgdata_DATA variable only if some snippets add contents to it.
25193         Reported by Martin Lambers <marlam@marlam.de>.
25194
25195 2006-08-21  Bruno Haible  <bruno@clisp.org>
25196
25197         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
25198         specify an installation location, don't emit a noinst_LIBRARIES or
25199         noinst_LTLIBRARIES assignment.
25200
25201 2006-08-21  Bruno Haible  <bruno@clisp.org>
25202
25203         BeOS portability.
25204         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
25205         BeOS has mbrtowc() but no <wctype.h>.
25206
25207 2006-08-21  Bruno Haible  <bruno@clisp.org>
25208
25209         BeOS portability.
25210         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
25211         exist.
25212
25213 2006-08-21  Bruno Haible  <bruno@clisp.org>
25214
25215         BeOS portability.
25216         * lib/mbchar.h: Include <wctype.h> only if it exists.
25217
25218 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
25219
25220         Remove files that are no longer needed by their respective modules.
25221         * m4/obstack.m4: Remove.
25222         * m4/strerror_r.m4: Remove.
25223         * m4/uint32_t.m4: Remove.
25224         * m4/uintptr_t.m4: Remove.
25225         * m4/ullong_max.m4: Remove.
25226         * m4/xstrtoimax.m4: Remove.
25227         * m4/xstrtoumax.m4: Remove.
25228
25229         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
25230         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
25231         dependencies now capture this.
25232
25233         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
25234         Do not use AC_LIBSOURCES, since gnulib modules now do this.
25235         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
25236         * m4/human.m4 (gl_HUMAN): Likewise.
25237         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
25238         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
25239
25240         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
25241
25242         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
25243         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
25244         stdint.
25245         * m4/human.m4 (gl_HUMAN): Likewise.
25246         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
25247         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
25248         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
25249         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
25250         * m4/xstrtol (gl_XSTRTOL): Likewise.
25251
25252         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
25253         AC_TYPE_LONG_LONG_INT.
25254         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
25255         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
25256         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
25257         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
25258
25259         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
25260         on stdbool.
25261
25262         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
25263         (gl_PREREQ_XSTRTOUL): Remove.
25264
25265         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
25266
25267         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
25268         mode.
25269
25270 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
25271
25272         Add and change modules to make it easier for coreutils to use
25273         gnulib-tool.
25274         * modules/backupfile (Files): Remove m4/d-ino.m4.
25275         (Depends-on): Add d-ino.
25276         * modules/cycle-check (Depends-on): Add stdint.
25277         (lib_SOURCES): Add cycle-check.h.
25278         * modules/d-ino: New module.
25279         * modules/d-type: New module.
25280         * modules/error (Files): Remove m4/strerror_r.m4.
25281         * modules/filemode (Files): Add m4/st_dm_mode.m4.
25282         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
25283         m4/inttypes_h.m4, m4/uintmax_t.m4.
25284         (Depends-on): Add stdint.
25285         (lib_SOURCES): Add fsusage.h.
25286         * modules/getcwd (Files): Remove d-ino.m4.
25287         (Depends-on): Add d-ino.
25288         * modules/getndelim2 (Depends-on): Add stdint.
25289         * modules/glob (Files): Remove m4/d-type.m4.
25290         (Depends-on): Add d-type.
25291         * modules/host-os: New module.
25292         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
25293         m4/inttypes_h.m4, m4/uintmax_t.m4.
25294         * Depends-on: Add stdint.
25295         (lib_SOURCES): Add human.h.
25296         * modules/inttostr (Files): Remove m4/intmax_t.m4,
25297         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
25298         m4/uintmax_t.m4, m4/ulonglong.m4.
25299         (Depends-on): Add stdint.
25300         (EXTRA_DIST): Add inttostr.h.
25301         * modules/lchmod: New module.
25302         * modules/link-follow: New module.
25303         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
25304         (Depends-on): Add lchmod.
25305         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
25306         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
25307         (Depends-on): Add stdint.
25308         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
25309         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
25310         (Depends-on): Add stdint.
25311         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
25312         * modules/perl: New module.
25313         * modules/regex (Depends-on): Add stdint.
25314         * modules/rmdir-errno: New module.
25315         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
25316         m4/intmax_t.m4.
25317         (Depends-on): Add stdint.
25318         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
25319         m4/uintmax_t.m4.
25320         (Depends-on): Add stdint.
25321         * modules/unlink-busy: New module.
25322         * modules/utimecmp (Depends-on): Add stdint.
25323         * modules/uptime: New module.
25324         * modules/winsz-ioctl: New module.
25325         * modules/winsz-termios: New module.
25326         * modules/xnanosleep (Depends-on): Add nanosleep.
25327         * modules/ullong_max: Remove.
25328         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
25329         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
25330         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
25331         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
25332         (Depends-on): Add inttypes.
25333         (lib_SOURCES): Add xstrtol.h.
25334         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
25335         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
25336         * MODULES.html.sh: Move 'assert' into the assert section.
25337         Move 'dummy' into the linking section.
25338         Remove ullong_max.
25339         Add section for compatibility checks for POSIX:2001 functions,
25340         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
25341         winsz-ioctl, and winsz-termios into it.
25342         Add lchmod.
25343         Add top-level Misc section and put host-os, perl, and uptime
25344         into it.
25345
25346 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
25347
25348         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
25349         now assume the stdint module.  Do not include inttypes.h.
25350         * lib/fsusage.h: Likewise.
25351         * lib/getndelim2.c: Likewise.
25352         * lib/human.h: Likewise.
25353         * lib/inttostr.h: Likewise.
25354         * lib/obstack.c: Likewise.
25355         * lib/regex_internal.h: Likewise.
25356         * lib/tempname.c: Likewise.
25357         * lib/utimecmp.c: Likewise.
25358         * lib/xstrtol.h: Likewise.
25359
25360         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
25361
25362         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
25363         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
25364         * lib/xtime.h: Likewise.
25365
25366 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
25367
25368         * modules/openat (Files): Add lib/fchmodat.c.
25369         Fixes problem reported by Jay Youngman.
25370
25371 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
25372
25373         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
25374         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
25375
25376 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
25377             Bruno Haible  <bruno@clisp.org>
25378
25379         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
25380         and is a script that invokes bison. Tighten the code. Add comments.
25381
25382 2006-08-18  Jim Meyering  <jim@meyering.net>
25383
25384         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
25385         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
25386         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
25387         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
25388
25389 2006-08-18  Bruno Haible  <bruno@clisp.org>
25390
25391         * modules/bison-i18n: New file.
25392         * MODULES.html.sh (Internationalization functions): Add it.
25393
25394 2006-08-18  Bruno Haible  <bruno@clisp.org>
25395
25396         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
25397         sys/statvfs.h. When getmntinfo was found, check its declaration and
25398         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
25399
25400 2006-08-18  Bruno Haible  <bruno@clisp.org>
25401
25402         * m4/bison-i18n.m4: New file, from bison.
25403
25404 2006-08-18  Bruno Haible  <bruno@clisp.org>
25405
25406         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
25407         (ME_DUMMY): Treat "kernfs" as a dummy.
25408         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
25409
25410 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
25411
25412         Update from coreutils.
25413
25414         2006-08-15  Jim Meyering  <jim@meyering.net>
25415
25416         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
25417
25418         2006-01-17  Jim Meyering  <jim@meyering.net>
25419
25420         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
25421
25422         2006-01-11  Jim Meyering  <jim@meyering.net>
25423
25424         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
25425         Check for the lchmod function.
25426
25427 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
25428
25429         Update from coreutils.
25430
25431         * lib/__fpending.h: Add copyright notice.
25432         * lib/fprintftime.h: Likewise.
25433         * lib/savedir.c: Use (C) in copyright notice.
25434         * lib/savedir.h: Likewise.
25435
25436         2006-08-15  Jim Meyering  <jim@meyering.net>
25437
25438         * lib/at-func.c: New file, with the logic of all emulated at-functions.
25439         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
25440         in support of the EXPECTED_ERRNO macro.
25441         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
25442         definitions.  Instead, define the appropriate symbols and include
25443         "at-func.c".
25444         * lib/mkdirat.c (mkdirat): Likewise.
25445         * lib/fchmodat.c (fchmodat): Likewise.
25446         (ENOSYS): Remove definition.
25447         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
25448         it.  Don't include "unistd--.h" -- it wasn't ever used.
25449
25450         2006-01-17  Jim Meyering  <jim@meyering.net>
25451
25452         Rewrite fts.c not to change the current working directory,
25453         by using openat, fstatat, fdopendir, etc..
25454
25455         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
25456         (HAVE_OPENAT_SUPPORT): Define.
25457         [_LIBC] (fchdir): Don't undef or define; no longer used.
25458         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
25459         Now, this `function' always succeeds, and consumes its file descriptor
25460         parameter -- so callers must not close such FDs.  Update callers.
25461         (diropen_fd, opendirat, cwd_advance_fd): New functions.
25462         (diropen): Add parameter, SP.  Adjust all callers.
25463         Implement using diropen_fd, rather than open.
25464         (fts_open): Initialize new member, fts_cwd_fd.
25465         Remove fts_rft-setting code.
25466         (fts_close): Close fts_cwd_fd, if necessary.
25467         (__opendir2): Define in terms of opendir or opendirat,
25468         depending on whether the FST_NOCHDIR flag is set.
25469         (fts_build): Since fts_safe_changedir consumes its FD, and since
25470         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
25471         and close the dup'd file descriptor upon failure.
25472         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
25473         (fts_safe_changedir): Tweak semantics to reflect that this function
25474         now calls cwd_advance_fd and hence consumes its FD argument.
25475         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
25476         [struct FTS] (fts_rft): Remove now-unused member.
25477         [struct FTS] (fts_cycle.state): Improve comment.
25478
25479         * lib/openat.c (openat_needs_fchdir): New function.
25480         * lib/openat.h (openat_needs_fchdir): Declare it.
25481
25482 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
25483
25484         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
25485         Problem and fix reported by Pádraig Brady in
25486         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
25487
25488 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
25489
25490         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
25491
25492 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
25493
25494         * lib/memcoll.c (memcoll): Optimize for the common case where the
25495         arguments are bytewise equal.
25496
25497 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
25498
25499         * doc/regexprops-generic.texi: Add a copyright notice.
25500
25501 2006-08-15  Bruno Haible  <bruno@clisp.org>
25502
25503         * modules/tmpdir (License): Change to LGPL.
25504
25505 2006-08-15  Bruno Haible  <bruno@clisp.org>
25506
25507         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
25508         module.
25509
25510 2006-08-14  Simon Josefsson  <jas@extundo.com>
25511
25512         * config/srclist.txt: Add gnupload.
25513
25514 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
25515
25516         Change copyright notice from LGPL 2 to GPL 2, since that's the
25517         standard form used in the gnulib repository.
25518         * tests/test-lock.c: Likewise.
25519         * tests/test-stdint.c: Likewise.
25520         * tests/test-tls.c: Likewise.
25521
25522         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
25523         prelude-manager.  User shorter URLs for GNU projects, without '?'.
25524         Add copyright notice.
25525
25526         * check-module: Add copyright notice.  Output a copyright
25527         notice if "--version" is specified.
25528         * modules/COPYING: New file.
25529         * tests/test-getaddrinfo.c: Add copyright notice.
25530         * tests/test-verify.c: Likewise.
25531
25532 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
25533
25534         Change copyright notice from LGPL 2 to GPL 2, since that's the
25535         standard form used in the gnulib repository.
25536         * lib/lock.c: LGPL -> GPL.
25537         * lib/lock.h: Likewise.
25538         * lib/strnlen1.c: Likewise.
25539         * lib/strnlen1.h: Likewise.
25540         * lib/tls.c: Likewise.
25541         * lib/tls.h: Likewise.
25542         * lib/tmpdir.c: Likewise.
25543
25544         * lib/TODO: Remove; this belongs only in coreutils.
25545
25546 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
25547
25548         Add copyright notices to long-enough files that lack them, since
25549         otherwise the files aren't clearly free.  Use the same notice that
25550         getdate.texi already uses.
25551         * doc/alloca-opt.texi: Add copyright notice.
25552         * doc/alloca.texi: Likewise.
25553         * doc/ctime.texi: Likewise.
25554         * doc/functions.texi: Likewise.
25555         * doc/gcd.texi: Likewise.
25556         * doc/gnulib-tool.texi: Likewise.
25557         * doc/inet_ntoa.texi: Likewise.
25558         * doc/visibility.texi: Likewise.
25559
25560         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
25561         * doc/quote.texi: Add copyright notice.
25562
25563         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
25564         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
25565         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
25566         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
25567         is now obsolete, and give a pointer to the Sun list.
25568         Add copyright notice.
25569
25570 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
25571
25572         * config/srclistvars.sh: Add copyright notice.
25573
25574 2006-08-14  Eric Blake  <ebb9@byu.net>
25575
25576         Import the following change from libc:
25577
25578         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
25579
25580         Upstream bug 2997.
25581         * lib/misc/error.c: Add space between program name and message if file
25582         name is missing.
25583
25584 2006-08-12  Karl Berry  <karl@gnu.org>
25585
25586         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
25587         remove, these originate in gnulib now.
25588
25589 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25590
25591         * doc/Makefile (standards.info standards.html standards.dvi):
25592         Also depend on make-stds.texi.
25593
25594 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
25595
25596         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
25597         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
25598
25599         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
25600         in wchar_t.  Problem reported by Eric Blake.
25601
25602         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
25603         LEN is smaller than SIZE.  Suggested by Bruno Haible.
25604         Also, help the compiler to keep LEN in a register.
25605
25606 2006-08-11  Eric Blake  <ebb9@byu.net>
25607
25608         * users.txt: Sort.  Add tar.
25609
25610 2006-08-11  Bruno Haible  <bruno@clisp.org>
25611
25612         * users.txt: New file.
25613
25614 2006-08-11  Bruno Haible  <bruno@clisp.org>
25615
25616         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
25617         before <wchar.h>. Needed for OSF/1 and BSD/OS.
25618
25619 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
25620
25621         * modules/snprintf (Depends-on): Remove minmax.
25622         (Maintainer): Add self and Bruno.
25623
25624 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
25625
25626         * lib/.cppi-disable: Add snprintf.h, socket_.h.
25627         * lib/snprintf.c: Include <errno.h> and <limits.h>.
25628         (EOVERFLOW): Define if the system does not.
25629         Do not include "minmax.h"; it wasn't used.
25630         (snprintf): Don't assume size_t promotes to an unsigned type.
25631         Fix bug when generated string was too long for the buffer: the
25632         buffer's contents are supposed to be the initial prefix of the
25633         output.  Don't assume vasnprintf returns EOVERFLOW if the size
25634         exceeds INT_MAX; do the check ourselves.
25635
25636         Import the following changes from libc:
25637
25638         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
25639
25640         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
25641         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
25642         set wc to the byte which couldn't be converted.
25643         (re_string_reconstruct): Don't clear valid_raw_len before calling
25644         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
25645         tip_context using re_string_context_at.
25646
25647         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
25648
25649         * lib/posix/regex.h: g++ still cannot handled [restrict].
25650
25651         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
25652
25653         * lib/posix/regex.h: Remove special handling for VMS.
25654
25655 2006-08-10  Jim Meyering  <jim@meyering.net>
25656
25657         * modules/same-inode: New module.
25658         * modules/dev-ino: New module.
25659         * modules/cycle-check: Depend on these modules, rather than simply
25660         including their .h files.
25661         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
25662         required via m4/cycle-check.m4.
25663         * modules/same: Depend on new same-inode module, rather than
25664         including same-inode.h.
25665         * modules/chdir-safer: New file.
25666
25667         * modules/chown (Depends-on): Add stat-macros.
25668
25669 2006-08-10  Jim Meyering  <jim@meyering.net>
25670
25671         * m4/cycle-check.m4: New file.
25672         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
25673         * m4/dev-ino.m4, m4/same-inode.m4: New files.
25674
25675 2006-08-10  Eric Blake  <ebb9@byu.net>
25676
25677         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
25678         in from original proposal.
25679
25680 2006-08-10  Eric Blake  <ebb9@byu.net>
25681         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
25682
25683         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
25684         namespace.
25685
25686 2006-08-10  Bruno Haible  <bruno@clisp.org>
25687
25688         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
25689         as well.
25690
25691 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
25692
25693         Sync from coreutils.
25694
25695         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
25696
25697         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
25698         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
25699
25700 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
25701
25702         * modules/restrict: Remove; no longer needed now that we assume
25703         Autoconf 2.59 or later.
25704         * MODULES.html.sh: Remove 'restrict'.
25705         * modules/argp (Depends-on): Remove 'restrict'.
25706         * modules/base64 (Depends-on): Likewise.
25707         * modules/gc (Depends-on): Likewise.
25708         * modules/getaddrinfo (Depends-on): Likewise.
25709         * modules/glob (Depends-on): Likewise.
25710         * modules/inet_ntop (Depends-on): Likewise.
25711         * modules/inet_pton (Depends-on): Likewise.
25712         * modules/memxor (Depends-on): Likewise.
25713         * modules/regex (Depends-on): Likewise.
25714         * modules/strtok_r (Depends-on): Likewise.
25715         * modules/time_r (Depends-on): Likewise.
25716
25717 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
25718
25719         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
25720         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
25721         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
25722         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
25723         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
25724         * m4/memxor.m4 (gl_MEMXOR): Likewise.
25725         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
25726         gl_C_RESTRICT replaced by AC_C_RESTRICT.
25727
25728         Merge from coreutils.
25729         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
25730         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
25731         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
25732         * m4/time_r.m4 (gl_TIME_R): Likewise.
25733
25734 2006-08-09  Karl Berry  <karl@gnu.org>
25735
25736         * config/srclist.txt: no more gettext-tools, per Bruno.
25737
25738 2006-08-08  Eric Blake  <ebb9@byu.net>
25739
25740         * modules/verror: New module.
25741         * MODULES.html.sh: Document it.
25742
25743 2006-08-08  Eric Blake  <ebb9@byu.net>
25744
25745         * lib/verror.h, lib/verror.c: New files.
25746
25747 2006-08-08  Eric Blake  <ebb9@byu.net>
25748
25749         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
25750         verror_at_line output complies with GNU Coding Standards even when
25751         file is NULL.
25752
25753 2006-08-07  Bruno Haible  <bruno@clisp.org>
25754
25755         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
25756         versions of AIX.
25757         Reported by Ralf Wildenhues.
25758
25759 2006-08-07  Bruno Haible  <bruno@clisp.org>
25760
25761         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
25762         in an AC_DEFUN. Needed so that the autoconf snippets can use
25763         AC_REQUIRE.
25764
25765 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25766
25767         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
25768         Initialize pkgdata_DATA.
25769         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
25770         overriding it.
25771
25772 2006-08-06  Eric Blake  <ebb9@byu.net>
25773
25774         * lib/error.h: Fold in some upstream changes from glibc.
25775         * lib/error.c: Likewise.
25776
25777 2006-08-04  Bruno Haible  <bruno@clisp.org>
25778
25779         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
25780         Make the mostlyclean-local rule depend on mostlyclean-generic.
25781         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
25782
25783 2006-07-31  Bruno Haible  <bruno@clisp.org>
25784
25785         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
25786         <stdlib.h>, <string.h>.
25787
25788 2006-07-30  Bruno Haible  <bruno@clisp.org>
25789
25790         * modules/readlink (License): Change to LGPL.
25791
25792 2006-07-30  Bruno Haible  <bruno@clisp.org>
25793
25794         * modules/javaversion (Makefile.am): Distribute javaversion.java and
25795         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
25796         set PKGDATADIR to point to it.
25797
25798 2006-07-30  Bruno Haible  <bruno@clisp.org>
25799
25800         * modules/csharpexec (configure.ac): Comment out macro invocation.
25801         * modules/javaexec (configure.ac): Likewise.
25802         * modules/javacomp-script (configure.ac): Likewise.
25803
25804         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
25805
25806 2006-07-30  Bruno Haible  <bruno@clisp.org>
25807
25808         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
25809         linked-list.
25810
25811 2006-07-30  Bruno Haible  <bruno@clisp.org>
25812
25813         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
25814
25815 2006-07-30  Bruno Haible  <bruno@clisp.org>
25816
25817         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
25818         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
25819         get removed.
25820
25821 2006-07-29  Bruno Haible  <bruno@clisp.org>
25822
25823         Make it possible for gnulib-tool to work with locally modified or
25824         augmented gnulib repositories.
25825         * gnulib-tool (func_usage): Document --local-dir option.
25826         (local_gnulib_dir): New variable.
25827         Handle --local-dir option.
25828         (func_lookup_file): New function.
25829         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
25830         (func_get_description, func_get_filelist, func_get_description,
25831         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
25832         func_get_automake_snippet, func_get_include_directive,
25833         func_get_license, func_get_maintainer): Use func_lookup_file.
25834         (func_import, func_create_testdir): Use func_lookup_file.
25835
25836 2006-07-29  Bruno Haible  <bruno@clisp.org>
25837
25838         * modules/setenv (Depends-on): Add unistd.
25839
25840 2006-07-29  Bruno Haible  <bruno@clisp.org>
25841
25842         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
25843
25844 2006-07-29  Bruno Haible  <bruno@clisp.org>
25845
25846         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
25847
25848 2006-07-29  Bruno Haible  <bruno@clisp.org>
25849
25850         * gnulib-tool (import, update): If there is no Makefile.am, look at
25851         aclocal.m4, instead of bailing out.
25852
25853 2006-07-29  Bruno Haible  <bruno@clisp.org>
25854
25855         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
25856         Categorize the options by when they are useful.
25857
25858 2006-07-29  Bruno Haible  <bruno@clisp.org>
25859
25860         * gnulib-tool (func_usage): Document option --no-libtool.
25861         Handle option --no-libtool.
25862         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
25863         for changed semantics of $libtool variable.
25864         (func_import): Likewise. If libtool is not used, show this through
25865         an option --no-libtool.
25866         (func_create_testdir): Update.
25867
25868 2006-07-29  Bruno Haible  <bruno@clisp.org>
25869
25870         * gnulib-tool (func_import): Extend error message about missing
25871         --doc-base.
25872
25873 2006-07-29  Bruno Haible  <bruno@clisp.org>
25874
25875         * gnulib-tool (func_import): Don't create the $docbase directory if
25876         there is no file to store there.
25877
25878 2006-07-29  Bruno Haible  <bruno@clisp.org>
25879
25880         * gnulib-tool (autoconf_minversion): If a --dir option is given and
25881         relevant, look for configure.ac there, not in the current directory.
25882         Also use a simple search for AC_PREREQ, not "autoconf --trace".
25883
25884 2006-07-29  Bruno Haible  <bruno@clisp.org>
25885
25886         * gnulib-tool (SORT): New variable.
25887         (func_usage): Undocument --assume-autoconf option.
25888         Remove --assume-autoconf option handling.
25889         (autoconf_minversion): Determine from the contents of configure.ac.
25890         (func_import): Remove autoconf_minversion handling.
25891         Suggested by Eric Blake.
25892
25893 2006-07-29  Bruno Haible  <bruno@clisp.org>
25894
25895         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
25896
25897 2006-07-29  Bruno Haible  <bruno@clisp.org>
25898
25899         * config/srclist.txt (*setenv.[ch]): Remove rules.
25900
25901 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25902
25903         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
25904
25905 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
25906
25907         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
25908         arpa/inet.h.
25909
25910 2006-07-28  Simon Josefsson  <jas@extundo.com>
25911
25912         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
25913         * modules/inet_pton (Depends-on): Likewise.
25914
25915 2006-07-28  Simon Josefsson  <jas@extundo.com>
25916
25917         * m4/netinet_in_h.m4: New file.
25918
25919 2006-07-28  Simon Josefsson  <jas@extundo.com>
25920
25921         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
25922         #include's.
25923
25924 2006-07-28  Simon Josefsson  <jas@extundo.com>
25925
25926         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
25927         #include's.
25928
25929 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
25930
25931         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
25932         setgid on directories only if they set these bits.
25933         * lib/modechange.h: Remove obsolete comment about masks.
25934
25935 2006-07-28  Eric Blake  <ebb9@byu.net>
25936
25937         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
25938         macro expansion.
25939
25940 2006-07-28  Bruno Haible  <bruno@clisp.org>
25941
25942         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
25943
25944 2006-07-28  Bruno Haible  <bruno@clisp.org>
25945
25946         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
25947
25948 2006-07-28  Bruno Haible  <bruno@clisp.org>
25949
25950         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
25951         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
25952         Define fallbacks.
25953         Avoids link error on FreeBSD 4.x.
25954         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
25955
25956         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
25957         encoding.
25958         * lib/mbswidth.c (iswcntrl): Likewise.
25959
25960 2006-07-27  Bruno Haible  <bruno@clisp.org>
25961
25962         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
25963         test.
25964
25965 2006-07-27  Bruno Haible  <bruno@clisp.org>
25966
25967         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
25968         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
25969         defined.
25970
25971 2006-07-26  Eric Blake  <ebb9@byu.net>
25972
25973         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
25974
25975 2006-07-26  Eric Blake  <ebb9@byu.net>
25976
25977         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
25978         like mingw that lack mkstemp.
25979         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
25980         avoid compilation warning on mingw.
25981
25982 2006-07-26  Bruno Haible  <bruno@clisp.org>
25983
25984         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
25985         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
25986         INT_FAST*_MIN, INTPTR_MIN.
25987
25988 2006-07-25  Bruno Haible  <bruno@clisp.org>
25989
25990         * modules/version-etc (Depends-on): Add stdarg.
25991
25992 2006-07-25  Bruno Haible  <bruno@clisp.org>
25993
25994         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
25995         complex commands.
25996
25997 2006-07-25  Bruno Haible  <bruno@clisp.org>
25998
25999         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
26000         defined in <stdarg.h> or config.h.
26001
26002 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
26003
26004         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
26005         (gl_STDIO_SAFER): Remove.
26006
26007 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
26008
26009         * MODULES.html.sh (File stream based Input/Output):
26010         Add fopen-safer, tmpfile-safer; remove stdio-safer.
26011         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
26012         * modules/fopen-safer, modules/tmpfile-safer: New files.
26013         * modules/stdio-safer: Remove.
26014
26015 2006-07-24  Bruno Haible  <bruno@clisp.org>
26016
26017         * modules/tmpdir: New file.
26018         * MODULES.html.sh (File system functions): Add it.
26019
26020 2006-07-24  Bruno Haible  <bruno@clisp.org>
26021
26022         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
26023         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
26024
26025 2006-07-24  Bruno Haible  <bruno@clisp.org>
26026
26027         * modules/clean-temp: New file.
26028
26029 2006-07-24  Bruno Haible  <bruno@clisp.org>
26030
26031         * m4/tmpdir.m4: New file, from GNU gettext.
26032
26033 2006-07-24  Bruno Haible  <bruno@clisp.org>
26034
26035         * lib/tmpdir.h: New file, from GNU gettext.
26036         * lib/tmpdir.c: New file, from GNU gettext.
26037
26038 2006-07-24  Bruno Haible  <bruno@clisp.org>
26039
26040         * lib/clean-temp.h: New file, from GNU gettext.
26041         * lib/clean-temp.c: New file, from GNU gettext.
26042
26043 2006-07-23  Eric Blake  <ebb9@byu.net>
26044
26045         * modules/stdio-safer (Files): Add tmpfile-safer.c.
26046         (Depends-on): Add binary-io.
26047
26048 2006-07-23  Eric Blake  <ebb9@byu.net>
26049
26050         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
26051
26052 2006-07-23  Eric Blake  <ebb9@byu.net>
26053
26054         * lib/tmpfile-safer.c: New file.
26055         * lib/stdio-safer.h (fopen_safer): Add prototype.
26056         * lib/stdio--.h (tmpfile): Make safer.
26057
26058 2006-07-23  Bruno Haible  <bruno@clisp.org>
26059
26060         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
26061         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
26062         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
26063         gl_linked_remove_at): Use it.
26064
26065 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
26066         and Simon Josefsson <jas@extundo.com>
26067
26068         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
26069
26070         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
26071
26072 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
26073
26074         * modules/close-stream: New file.
26075         * modules/closeout (Description): Make it clear that it exits
26076         with a diagnostic on error.
26077         (Depends-on): Add close-stream.  Remove fpending, stdbool.
26078         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
26079
26080 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
26081
26082         * m4/close-stream.m4: New file.
26083
26084 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
26085
26086         * lib/close-stream.c, lib/close-stream.h: New files.
26087
26088 2006-07-22  Bruno Haible  <bruno@clisp.org>
26089
26090         Merge from GNU gettext 0.15.
26091
26092         2006-05-01  Bruno Haible  <bruno@clisp.org>
26093
26094                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
26095
26096         2006-07-22  Bruno Haible  <bruno@clisp.org>
26097
26098                 * modules/javaversion: New file.
26099                 * MODULES.html.sh (Java): Add javaversion.
26100
26101         2006-03-12  Bruno Haible  <bruno@clisp.org>
26102
26103                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
26104
26105         2005-12-04  Bruno Haible  <bruno@clisp.org>
26106
26107                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
26108                 (untested).
26109
26110         2006-06-21  Bruno Haible  <bruno@clisp.org>
26111
26112                 Avoid warnings from recent versions of mcs.
26113                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
26114                 -o, -L, -r any more. Use options documented since mcs-1.0
26115                 instead. Similarly for -g.
26116
26117         2005-12-04  Bruno Haible  <bruno@clisp.org>
26118
26119                 * build-aux/csharpcomp.sh.in: Suffix for resources is
26120                 .resources, not .resource.
26121
26122         2005-07-09  Bruno Haible  <bruno@clisp.org>
26123
26124                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
26125                 add a .dll suffix.
26126                 Reported by Mark Junker <mjscod@gmx.de>.
26127
26128         2006-07-22  Bruno Haible  <bruno@clisp.org>
26129
26130                 * modules/gettext: Upgrade to gettext-0.15.
26131                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
26132                 m4/visibility.m4.
26133                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
26134
26135 2006-07-22  Bruno Haible  <bruno@clisp.org>
26136
26137         Merge from GNU gettext 0.15.
26138
26139         2006-03-25  Bruno Haible  <bruno@clisp.org>
26140
26141                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
26142
26143         2006-07-21  Bruno Haible  <bruno@clisp.org>
26144
26145                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
26146                 "1.1".
26147
26148         2006-05-09  Bruno Haible  <bruno@clisp.org>
26149
26150                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
26151                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
26152                 for the conftestver execution.
26153
26154         2006-05-01  Bruno Haible  <bruno@clisp.org>
26155
26156                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
26157                 optional target-version argument. Verify that the compiler
26158                 groks source of the specified source-version, or add -source
26159                 option as necessary. Verify that the compiler produces
26160                 bytecode in the specified target-version, or add -target and
26161                 -source options as necessary. Make the result of the test
26162                 available as variable CONF_JAVAC. Also log error output in
26163                 config.log.
26164
26165         2006-03-11  Bruno Haible  <bruno@clisp.org>
26166
26167                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
26168
26169         2006-05-09  Bruno Haible  <bruno@clisp.org>
26170
26171                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
26172                 CLASSPATH_SEPARATOR to a semicolon.
26173
26174         2006-03-12  Bruno Haible  <bruno@clisp.org>
26175
26176                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
26177                 available as variable CONF_JAVA, for subsequent autoconf
26178                 tests. Also log error output in config.log.
26179
26180         2006-07-19  Bruno Haible  <bruno@clisp.org>
26181
26182                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
26183                 that getline works on glibc2 systems. Needed to avoid trouble
26184                 in relocatable.c.
26185                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
26186
26187         2005-12-04  Bruno Haible  <bruno@clisp.org>
26188
26189                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
26190                 launcher (untested).
26191
26192         2005-12-04  Bruno Haible  <bruno@clisp.org>
26193
26194                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
26195
26196         2006-07-22  Bruno Haible  <bruno@clisp.org>
26197
26198                 * gettext.m4: Update from GNU gettext-0.15.
26199                 * nls.m4: Likewise.
26200                 * po.m4: Likewise.
26201                 * inttypes-pri.m4: Likewise.
26202                 * inttypes-h.m4: Renamed from inttypes.m4.
26203                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
26204
26205 2006-07-22  Bruno Haible  <bruno@clisp.org>
26206
26207         Merge from GNU gettext 0.15.
26208
26209         2005-07-05  Bruno Haible  <bruno@clisp.org>
26210
26211                 * printf-args.c (printf_fetchargs): Work around broken
26212                 definition of wint_t on mingw.
26213
26214         2005-02-12  Bruno Haible  <bruno@clisp.org>
26215
26216                 * xallocsa.h: Add extern "C" for C++.
26217
26218         2006-05-17  Bruno Haible  <bruno@clisp.org>
26219
26220                 Cygwin portability.
26221                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
26222
26223         2006-04-30  Bruno Haible  <bruno@clisp.org>
26224
26225                 * progreloc.c: Include <mach-o/dyld.h> if available.
26226                 (find_executable): Use _NSGetExecutablePath when possible.
26227
26228         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
26229
26230                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
26231                 function.
26232
26233         2005-12-29  Bruno Haible  <bruno@clisp.org>
26234
26235                 * progreloc.c (set_program_name_and_installdir): Fix
26236                 compilation error.
26237
26238         2005-12-04  Bruno Haible  <bruno@clisp.org>
26239
26240                 Cygwin portability.
26241                 * progreloc.c: Include <windows.h> also on Cygwin.
26242                 (find_executable): Add support for Cygwin.
26243                 (set_program_name_and_installdir): Handle also platforms with
26244                 nonempty EXEEXT.
26245
26246         2006-07-11  Bruno Haible  <bruno@clisp.org>
26247
26248                 * javacomp.c: Fix a comment.
26249                 Reported by Jim Meyering.
26250
26251         2006-04-30  Bruno Haible  <bruno@clisp.org>
26252
26253                 * javacomp.h (compile_java_class): Add source_version,
26254                 target_version arguments.
26255                 * javacomp.c: Rewritten to choose only a compiler that
26256                 respects the specified source_version and target_version.
26257
26258         2006-06-27  Bruno Haible  <bruno@clisp.org>
26259
26260                 Assume correct S_ISDIR macro.
26261                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
26262
26263         2006-07-22  Bruno Haible  <bruno@clisp.org>
26264
26265                 * javaversion.h: New file, from GNU gettext.
26266                 * javaversion.c: New file, from GNU gettext.
26267                 * javaversion.java: New file, from GNU gettext.
26268                 * javaversion.class: New file, from GNU gettext.
26269
26270         2006-05-17  Bruno Haible  <bruno@clisp.org>
26271
26272                 Cygwin portability.
26273                 * javaexec.c (execute_java_class): Test for jview program
26274                 also on Cygwin.
26275
26276         2006-04-09  Bruno Haible  <bruno@clisp.org>
26277
26278                 * fatal-signal.c: Don't include string.h.
26279                 (at_fatal_signal): Use a copying loop instead of memcpy.
26280
26281         2005-12-04  Bruno Haible  <bruno@clisp.org>
26282
26283                 * csharpexec.c: Add support for 'clix' launcher (untested).
26284                 (execute_csharp_using_sscli): New function.
26285                 (execute_csharp_program): Call it.
26286
26287         2006-06-21  Bruno Haible  <bruno@clisp.org>
26288
26289                 Avoid warnings from recent versions of mcs.
26290                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
26291                 -o, -L, -r any more. Use options documented since mcs-1.0
26292                 instead. Similarly for -g.
26293
26294         2005-07-09  Bruno Haible  <bruno@clisp.org>
26295
26296                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
26297                 add a .dll suffix.
26298                 Reported by Mark Junker <mjscod@gmx.de>.
26299
26300         2006-06-17  Bruno Haible  <bruno@clisp.org>
26301
26302                 * config.charset: Update for NetBSD 3.0.
26303
26304         2006-05-17  Bruno Haible  <bruno@clisp.org>
26305
26306                 Cygwin portability.
26307                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
26308
26309         2006-05-16  Bruno Haible  <bruno@clisp.org>
26310
26311                 * localcharset.c [CYGWIN]: Include <windows.h>.
26312                 (get_charset_aliases): For Cygwin, return the same CPxxx
26313                 aliases list as under WIN32.
26314                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
26315                 the environment variables. Fall back to GetACP().
26316
26317         2006-04-05  Bruno Haible  <bruno@clisp.org>
26318
26319                 * config.charset: Update Juan Manuel Guerrero's address.
26320
26321         2005-02-12  Bruno Haible  <bruno@clisp.org>
26322
26323                 * allocsa.h: Add extern "C" for C++.
26324
26325         2005-02-10  Bruno Haible  <bruno@clisp.org>
26326
26327                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
26328                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
26329
26330         2006-07-22  Bruno Haible  <bruno@clisp.org>
26331
26332                 * gettext.h: Update to GNU gettext-0.15.
26333
26334 2006-07-22  Bruno Haible  <bruno@clisp.org>
26335
26336         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
26337         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
26338         lib-prefix.m4, longdouble.m4, ssize_t.m4.
26339
26340 2006-07-21  Eric Blake  <ebb9@byu.net>
26341
26342         * modules/stdlib-safer: New file.
26343         * MODULES.html.sh (File stream based Input/Output): Add
26344         stdlib-safer.
26345
26346 2006-07-21  Eric Blake  <ebb9@byu.net>
26347
26348         * lib/stdlib-safer.h: New file from coreutils, required by
26349         stdlib--.h.
26350
26351 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
26352
26353         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
26354
26355 2006-07-20  Bruno Haible  <bruno@clisp.org>
26356
26357         * gnulib-tool: Recognize new option --assume-autoconf.
26358         (autoconf_minversion): New variable.
26359         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
26360
26361 2006-07-20  Bruno Haible  <bruno@clisp.org>
26362
26363         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
26364
26365 2006-07-19  Derek R. Price  <derek@ximbiot.com>
26366
26367         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
26368         Reindent and repaginate.
26369
26370 2006-07-19  Derek Price  <derek@ximbiot.com>
26371
26372         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
26373         Correct grammar.
26374
26375 2006-07-17  Bruno Haible  <bruno@clisp.org>
26376
26377         * modules/list: New file.
26378         * modules/array-list: New file.
26379         * modules/carray-list, modules/carray-list-tests: New files.
26380         * modules/linked-list, modules/linked-list-tests: New files.
26381         * modules/avltree-list, modules/avltree-list-tests: New files.
26382         * modules/rbtree-list, modules/rbtree-list-tests: New files.
26383         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
26384         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
26385         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
26386         * modules/oset: New file.
26387         * modules/array-oset: New file.
26388         * modules/avltree-oset, modules/avltree-oset-tests: New files.
26389         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
26390         * tests/test-carray_list.c: New file.
26391         * tests/test-linked_list.c: New file.
26392         * tests/test-avltree_list.c: New file.
26393         * tests/test-rbtree_list.c: New file.
26394         * tests/test-linkedhash_list.c: New file.
26395         * tests/test-avltreehash_list.c: New file.
26396         * tests/test-rbtreehash_list.c: New file.
26397         * tests/test-avltree_oset.c: New file.
26398         * tests/test-rbtree_oset.c: New file.
26399         * MODULES.html.sh (Container data structures): New section.
26400
26401 2006-07-17  Bruno Haible  <bruno@clisp.org>
26402
26403         * m4/gl_list.m4: New file.
26404
26405 2006-07-17  Bruno Haible  <bruno@clisp.org>
26406
26407         * lib/gl_list.h: New file.
26408         * lib/gl_list.c: New file.
26409         * lib/gl_array_list.h: New file.
26410         * lib/gl_array_list.c: New file.
26411         * lib/gl_carray_list.h: New file.
26412         * lib/gl_carray_list.c: New file.
26413         * lib/gl_linked_list.h: New file.
26414         * lib/gl_linked_list.c: New file.
26415         * lib/gl_anylinked_list1.h: New file.
26416         * lib/gl_anylinked_list2.h: New file.
26417         * lib/gl_avltree_list.h: New file.
26418         * lib/gl_avltree_list.c: New file.
26419         * lib/gl_anyavltree_list1.h: New file.
26420         * lib/gl_anyavltree_list2.h: New file.
26421         * lib/gl_rbtree_list.h: New file.
26422         * lib/gl_rbtree_list.c: New file.
26423         * lib/gl_anyrbtree_list1.h: New file.
26424         * lib/gl_anyrbtree_list2.h: New file.
26425         * lib/gl_anytree_list1.h: New file.
26426         * lib/gl_anytree_list2.h: New file.
26427         * lib/gl_linkedhash_list.h: New file.
26428         * lib/gl_linkedhash_list.c: New file.
26429         * lib/gl_anyhash_list1.h: New file.
26430         * lib/gl_anyhash_list2.h: New file.
26431         * lib/gl_avltreehash_list.h: New file.
26432         * lib/gl_avltreehash_list.c: New file.
26433         * lib/gl_rbtreehash_list.h: New file.
26434         * lib/gl_rbtreehash_list.c: New file.
26435         * lib/gl_anytreehash_list1.h: New file.
26436         * lib/gl_anytreehash_list2.h: New file.
26437
26438         * lib/gl_oset.h: New file.
26439         * lib/gl_oset.c: New file.
26440         * lib/gl_array_oset.h: New file.
26441         * lib/gl_array_oset.c: New file.
26442         * lib/gl_avltree_oset.h: New file.
26443         * lib/gl_avltree_oset.c: New file.
26444         * lib/gl_rbtree_oset.h: New file.
26445         * lib/gl_rbtree_oset.c: New file.
26446         * lib/gl_anytree_oset.h: New file.
26447
26448 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
26449
26450         * m4/mkancesdirs.m4: New file.
26451         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
26452         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
26453         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
26454         it.
26455
26456 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
26457
26458         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
26459         * lib/mkancesdirs.h: New files.
26460         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
26461         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
26462         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
26463         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
26464         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
26465         callers changed.  Revamp internals significantly, by not
26466         attempting to create directories that are temporarily more
26467         permissive than the final results.  Do not attempt to use
26468         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
26469         This removes some race conditions, fixes some bugs, and simplifies
26470         things.  Use new dirchownmod function to do owner and mode changes.
26471         * lib/mkdir-p.h: Likewise.
26472         * lib/modechange.c (octal_to_mode): New function.
26473         (struct mode_change): New member mentioned.
26474         (make_node_op_equals): New arg mentioned.  All callers changed.
26475         (mode_compile): Keep track of which mode bits the user has explicitly
26476         mentioned.
26477         (mode_adjust): New arg DIR, so that we implement the X op correctly.
26478         New arg PMODE_BITS, to keep track of which mode bits the user
26479         mentioned; it treats S_ISUID and S_ISGID speciall.
26480         All callers changed.
26481         * lib/modechange.h: Likewise.
26482
26483 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
26484
26485         * MODULES.html.sh: Add mkancestors.
26486         * modules/mkancesdirs: New module.
26487         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
26488         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
26489         The chdir-safer and afs files are now orphans; I'll remove them
26490         unless someone speaks up.
26491         Add lib/dirchownmod.c, lib/dirchownmod.h.
26492         (Depends-on): Remove alloca, chown, save-cwd, dirname.
26493         Add lchown, mkancesdirs.
26494         (Maintainer): Add self.
26495
26496 2006-07-15  Karl Berry  <karl@gnu.org>
26497
26498         * gnulib-tool: help message wording/arrangement.
26499
26500 2006-07-14  Simon Josefsson  <jas@extundo.com>
26501
26502         * doc/gnulib.texi (Libtool and Windows): New section.
26503
26504 2006-07-12  Simon Josefsson  <jas@extundo.com>
26505
26506         * modules/gendocs (License): Fix license, approved by Karl.
26507
26508 2006-07-12  Eric Blake  <ebb9@byu.net>
26509
26510         * MODULES.html.sh: Add gendocs.
26511
26512 2006-07-11  Eric Blake  <ebb9@byu.net>
26513
26514         * modules/fdl: New module, to install doc/fdl.texi.
26515         * MODULES.html.sh: Add new section for documentation modules.
26516         * gnulib-tool: Avoid space-tab.
26517         (--doc-base): New option, to manage files from doc.
26518
26519 2006-07-11  Eric Blake  <ebb9@byu.net>
26520
26521         * m4/absolute-header.m4: Fix comments to match recent change.
26522
26523 2006-07-11  Eric Blake  <ebb9@byu.net>
26524
26525         * gnulib-tool: List --doc-base before --tests-base.
26526
26527 2006-07-11  Derek R. Price  <derek@ximbiot.com>
26528
26529         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
26530
26531 2006-07-11  Bruno Haible  <bruno@clisp.org>
26532
26533         * README: Mention where to put documentation.
26534
26535 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26536
26537         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
26538
26539 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
26540
26541         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
26542         to stdint.m4.
26543
26544 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
26545
26546         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
26547         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
26548         "no/such/file/stdint.h" when there is no such file, so that
26549         the resulting C code can be parsed by dodgy compilers.
26550         Problems reported by Bob Proulx.
26551
26552 2006-07-10  Derek R. Price  <derek@ximbiot.com>
26553
26554         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
26555         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
26556         macros into the GNU _D_EXACT_NAMLEN.
26557         * lib/savedir.c:  Likewise.
26558         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
26559
26560 2006-07-10  Derek R. Price  <derek@ximbiot.com>
26561         and Paul Eggert  <eggert@cs.ucla.edu>
26562
26563         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
26564         * m4/savedir.m4:
26565         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
26566         macros into the GNU _D_EXACT_NAMLEN.
26567
26568 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
26569
26570         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
26571         around the absolute name, to work around a problem with the HP-UX
26572         11.23 native C compiler, reported by Bob Proulx.
26573
26574 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
26575
26576         * doc/maintain.texi, make-stds.texi: Sync from
26577         <http://savannah.gnu.org/projects/gnustandards>.
26578
26579 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
26580
26581         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
26582
26583 2006-07-09  Jim Meyering  <jim@meyering.net>
26584
26585         * m4/glob.m4: Remove a doubled word in a comment.
26586
26587 2006-07-09  Jim Meyering  <jim@meyering.net>
26588
26589         * lib/argp-pv.c: Remove a doubled word in a comment.
26590         * lib/check-version.c (check_version): Likewise.
26591         * lib/javacomp.c (compile_java_class): Likewise.
26592
26593 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
26594
26595         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
26596         for the benefit of people using Autoconf 2.60.  If you want to
26597         support older Autoconf versions you can copy m4/onceonly_2_57.m4
26598         (or m4/onceonly.m4, if pre-2.57) manually.
26599
26600 2006-07-08  Jim Meyering  <jim@meyering.net>
26601
26602         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
26603         comment.
26604         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
26605         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
26606         comment.
26607
26608 2006-07-08  Jim Meyering  <jim@meyering.net>
26609
26610         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
26611
26612 2006-07-07  Simon Josefsson  <jas@extundo.com>
26613
26614         * tests/test-crc.c: Change expected crc value, the test vector
26615         were probably computed using the old broken crc.c?
26616
26617 2006-07-06  Simon Josefsson  <jas@extundo.com>
26618
26619         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
26620         now the canonical place for the M4 file).
26621
26622         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
26623         from the sys_socket dependency now.
26624
26625         * modules/inet_pton (Files): Ditto.
26626
26627         * modules/inet_ntop (Files): Ditto.
26628
26629 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
26630
26631         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
26632         not gl_PREREQ_GETUSERSHELL.
26633
26634 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26635
26636         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
26637         with only one argument, for Autoconf 2.60.
26638         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
26639         expand to nothing, so add a shell command to avoid syntax error.
26640         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
26641
26642 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26643
26644         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
26645
26646 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
26647
26648         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
26649         no longer needed.  Check for isblank decl.
26650         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
26651         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
26652         of existence.
26653
26654 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
26655
26656         * lib/getloadavg.c: Use __VMS, not VMS.
26657         * lib/getopt.c: Likewise.
26658         * lib/getpagesize.h: Likewise.
26659         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
26660         and probably does not work.
26661
26662 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
26663
26664         * lib/.cppi-disable: Add wcwidth.
26665         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
26666         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
26667         (ISGRAPH): Remove.  All uses changed to isgraph.
26668         (FOLD) [!defined _LIBC]: Remove special case.
26669         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
26670         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
26671         HAVE_ISBLANK.
26672         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
26673         case.
26674
26675 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
26676
26677         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
26678         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
26679         brackets.  Other minor changes to suppress some compiler
26680         warnings.
26681
26682 2006-07-06  Derek R. Price  <derek@ximbiot.com>
26683         and Paul Eggert  <eggert@cs.ucla.edu>
26684
26685         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
26686         of invoking obsolescent AC_HEADER_DIRENT macro.
26687         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
26688         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
26689         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
26690         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
26691         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
26692         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
26693         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
26694         * m4/readdir.m4: Remove; no longer needed.
26695
26696 2006-07-06  Derek R. Price  <derek@ximbiot.com>
26697         and Paul Eggert  <eggert@cs.ucla.edu>
26698
26699         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
26700         Don't worry about this obsolete case any more.
26701         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
26702         directories.
26703         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
26704         worry about this obsolete case any more.
26705         * lib/fts.c: Likewise.
26706         * lib/getcwd.c: Likewise.
26707         * lib/glob.h: Likewise.
26708         * lib/savedir.c: Likewise.
26709
26710 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
26711
26712         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
26713         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
26714         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
26715         needed.
26716         All uses removed.
26717         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
26718         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
26719         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
26720         needed.
26721         * m4/getdate.m4 (gl_GETDATE): Likewise.
26722         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
26723         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
26724         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
26725         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
26726         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
26727         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
26728         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
26729         needed.
26730
26731 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
26732
26733         * lib/memcasecmp.c: Include <limits.h>.
26734         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
26735         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
26736         Don't assume isdigit succeeds only on '0' through '9'.
26737
26738 2006-07-05  Eric Blake  <ebb9@byu.net>
26739
26740         * modules/getaddrinfo (Depends-on): Add snprintf.
26741
26742 2006-07-05  Eric Blake  <ebb9@byu.net>
26743
26744         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
26745         to avoid 'header present but could not be compiled' on cygwin.
26746
26747 2006-07-05  Eric Blake  <ebb9@byu.net>
26748
26749         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
26750         missing from netdb.h.
26751         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
26752
26753 2006-07-05  Derek R. Price  <derek@ximbiot.com>
26754
26755         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
26756         no longer needed.
26757         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
26758         * m4/getdate.m4 (gl_GETDATE): Likewise.
26759         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
26760         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
26761         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
26762         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
26763         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
26764
26765 2006-07-05  Derek R. Price  <derek@ximbiot.com>
26766
26767         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
26768         All uses of is_space replaced by isspace.
26769         * lib/exit.h: Don't talk about STDC_HEADERS.
26770         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
26771         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
26772         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
26773         replaced by isprint etc.
26774         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
26775         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
26776         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
26777         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
26778         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
26779         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
26780
26781 2006-07-05  Bruno Haible  <bruno@clisp.org>
26782
26783         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
26784         the function exists, before testing against AIX.
26785         Reported by Martin Lambers <marlam@marlam.de>.
26786
26787 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
26788
26789         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
26790         From Mark D. Baushke.
26791
26792 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
26793
26794         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
26795         to the absolute name, not just one, to bypass Sun C 5.8's
26796         "warning: #include of /usr/include/... may be non-portable".
26797
26798 2006-07-04  Eric Blake  <ebb9@byu.net>
26799
26800         * modules/dirname-tests: New test module.
26801         * tests/test-dirname.c: New file, replacing dirname.c
26802         TEST_DIRNAME section that was recently deleted.
26803
26804 2006-07-04  Bruno Haible  <bruno@clisp.org>
26805
26806         Assume ANSI C header files and <ctype.h> functions.
26807         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
26808         (mbsnwidth): Use isprint, iscntrl instead.
26809
26810 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
26811
26812         Merge from coreutils.
26813         * MODULES.html.sh: Add xstrtold.
26814         * modules/xstrtold: New file.
26815         * modules/cycle-check (Files): Add lib/same-inode.h.
26816         * modules/dirname (Files): Add m4/double-slash-root.m4.
26817         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
26818         * modules/mkdir-p (Files): Add lib/same-inode.h.
26819         * modules/same (Files): Add lib/same-inode.h.
26820
26821 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
26822
26823         * m4/absolute-header.m4: Renamed from full-header-path.m4.
26824         This is to keep the terminology clean; POSIX talks about
26825         "absolute pathnames", not "full pathnames", but the GNU
26826         Coding Standards say to use "path" for something else;
26827         so use "absolute" to keep both sides happy.
26828         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
26829         Set gl_absolute_header, not gl_full_header_path.
26830         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
26831         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
26832         All uses changed.
26833
26834         Merge from coreutils.
26835
26836         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
26837
26838         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
26839         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
26840         want to require the building of c-strtod.o.
26841         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
26842         needs -lm directly.
26843         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
26844
26845         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
26846
26847         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
26848         --as-needed option if available.  Problem reported by Albert Chin in
26849         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
26850         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
26851         cc merely issues a bunch of annoying warnings for --as-needed
26852         (this problem was reported by Bob Proulx).  Also, try linking with
26853         -lm to detect a bug in binutils 2.16 (this problem was reported
26854         by Ralf Wildenhues).
26855
26856         2006-06-18  Jim Meyering  <jim@meyering.net>
26857
26858         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
26859         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
26860         macro.
26861         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
26862         also check for glibc-2.4's abort-inducing bug.
26863
26864         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
26865         Low-probability clean-up should be to use rmdir to get rid of
26866         the just-created directory, not unlink.
26867
26868         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
26869         configure fail, and request a bug report to inform us about it.
26870         Add a comment that, barring reports to the contrary, in 2007 we'll
26871         assume ftruncate is universally available.
26872
26873         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
26874
26875         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
26876
26877         2006-03-12  Jim Meyering  <jim@meyering.net>
26878
26879         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
26880         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
26881         * m4/same.m4 (gl_SAME): Likewise.
26882         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
26883
26884         2006-03-11  Eric Blake  <ebb9@byu.net>
26885
26886         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
26887         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
26888         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
26889         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
26890
26891 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
26892
26893         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
26894         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
26895         reported by Mark D. Baushke, one in
26896         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
26897
26898         Merge from coreutils.
26899
26900         * lib/.cppi-disable: Add stdint_.h.
26901         * lib/.cvsignore: Add stdint.h.
26902
26903         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
26904
26905         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
26906         both double and long double versions.
26907         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
26908         * lib/xstrtold.c: New file.
26909         * lib/xstrtod.h (xstrtold): New decl.
26910
26911         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
26912
26913         * lib/filemode.c (setst): Remove.
26914         (strmode): Rewrite to avoid setst.  This makes the code shorter,
26915         (arguably) clearer, and the generated code is a bit smaller on my
26916         Debian GNU/Linux stable x86 host.
26917
26918         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
26919
26920         * lib/filemode.c: Include "filemode.h" first, to test the interface.
26921         Assume that filemode.h includes sys/types.h and sys/stat.h.
26922         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
26923         (ftypelet): Reorder to put common cases first, for efficiency.
26924         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
26925         to do 'M'.
26926         (strmode): Renamed from mode_string, and now stores 12 bytes instead
26927         of 10, for compatibility with FreeBSD.  All callers changed.
26928         (filemodestring): Now stores 12 bytes instead of 10, and sets file
26929         types that can't be deduced solely from st_mode.  First arg is now a
26930         const pointer.
26931         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
26932         (strmode): Renamed from mode_string.
26933         (filemodestring): New decl.
26934         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
26935         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
26936         needed.
26937         (S_ISPORT, S_ISWHT): New macros, if not already defined.
26938
26939         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
26940
26941         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
26942         fsusage.h now does that.  Include fsusage.h first, to test interface.
26943         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
26944         at most one method (the old code could have generated decls that
26945         didn't conform to C89, not that this was ever exercised).
26946         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
26947
26948         2006-03-19  Jim Meyering  <jim@meyering.net>
26949
26950         Work even in a chroot where d_ino values for entries in "/"
26951         don't match the stat.st_ino values for the same names.
26952         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
26953         number, iterate through all entries again, using lstat instead.
26954         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
26955         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
26956
26957         * lib/getcwd.c (__getcwd): Clarify a comment.
26958         Use memcpy in place of a call to strcpy.
26959
26960         2006-03-12  Jim Meyering  <jim@meyering.net>
26961
26962         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
26963         matches that of the current directory (which we're about to chdir ".."
26964         out of), then save the dev-ino of the parent, instead.
26965
26966         * lib/same-inode.h (SAME_INODE): New file/macro.
26967         * lib/chdir-safer.c (SAME_INODE): Remove definition.
26968         Include "same-inode.h", instead.
26969         * lib/same.c: Likewise.
26970         * lib/cycle-check.h: Include "same-inode.h".
26971         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
26972         * lib/cycle-check.c (SAME_INODE): Remove definition.
26973         * lib/root-dev-ino.h: Include "same-inode.h".
26974
26975         2006-03-11  Eric Blake  <ebb9@byu.net>
26976
26977         * lib/same.c (same_name): s/base_name/last_component/
26978         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
26979         * lib/filenamecat.c (file_name_concat): Likewise.
26980
26981         2006-03-11  Eric Blake  <ebb9@byu.net>,
26982                     Paul Eggert  <eggert@cs.ucla.edu>
26983
26984         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
26985         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
26986         drive prefix.
26987         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
26988         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
26989         (last_component): New method.
26990         * lib/dirname.c (dir_len): Determine when drive letters need a
26991         subsequent slash.  Preserve // when it is special.
26992         (dir_name): Don't append dot when drive letter is absolute.
26993         [TEST_DIRNAME]: Move into a full-blown gnulib test.
26994         * lib/basename.c (base_name): New semantics - malloc the result.
26995         Preserve // when it is special.  Preserve relative files that look
26996         like drive letters.
26997         (base_len): Preserve // when it is special.
26998         (last_component): New method, similar to old base_name semantics.
26999         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
27000         base_name.  Strip redundant slashes from ///.
27001
27002 2006-07-03  Jim Meyering  <jim@meyering.net>
27003
27004         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
27005         macro is used before the first cycle_check call.
27006
27007 2006-07-03  Eric Blake  <ebb9@byu.net>
27008
27009         * modules/dirname (Depends-on): Add xstrndup.
27010
27011 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
27012
27013         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
27014         test cases, so that config.log is a bit easier to follow.
27015
27016 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
27017
27018         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
27019         both are 64 bits, since this seems to be the tradition, and this
27020         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
27021         we ever run into a host that prefers long long to long in this
27022         case, we'll need another configure-time test.  Problem reported by
27023         Jim Meyering.
27024
27025 2006-07-02  Eric Blake  <ebb9@byu.net>
27026
27027         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
27028
27029 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
27030
27031         * modules/inttypes (Depends-on): No longer depends on stdint.
27032         * modules/stdint (Description): Say more about assumptions.
27033         Say that the fast types might differ.  Say macros are used.
27034         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
27035         (Makefile.am): Revise list of substituted symbols to match
27036         new stdint.m4.
27037         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
27038         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
27039         * tests/test-stdint.c (verify_same_types)
27040         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
27041         the code conforms to C99/C89.
27042         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
27043         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
27044
27045 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
27046
27047         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
27048         but fix a bug, by requiring at least 64 bits.
27049         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
27050         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
27051         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
27052         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
27053
27054         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
27055         changes.  Make 2.59 a prerequisite.  Check and substitute for
27056         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
27057         inttypes.h.  Do not use special include files; just use the
27058         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
27059         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
27060         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
27061         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
27062         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
27063         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
27064         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
27065         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
27066         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
27067         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
27068         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
27069         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
27070         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
27071         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
27072         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
27073         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
27074         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
27075         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
27076         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
27077         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
27078         WINT_MAX.  Check for C99 conformance more strictly, by detecting
27079         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
27080         not check for things that C99 does not require, e.g., int8_t.  If
27081         a test isn't needed unless <stdint.h> isn't working, and is
27082         unlikely to be needed for any other reason, then don't do it
27083         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
27084         size_t, since we assume C89 freestanding at least.  Do not check
27085         for sig_atomic_t, wchar_t, or wint_t, since the code now does
27086         the right thing even if the types are not defined.  Instead use:
27087         (gl_STDINT_TYPE_PROPERTIES): New macro.
27088         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
27089         testing whether <sys/types.h> clashes, as Autoconf does this for
27090         us now.  All uses removed.
27091         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
27092         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
27093         (gl_CHECK_TYPE_SAME):
27094         Remove; no longer needed.
27095         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
27096         exists, since we'll return 0 anyway in that case.
27097         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
27098
27099 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
27100
27101         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
27102         possible collision with system files.
27103         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
27104         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
27105         WCHAR_MIN and WCHAR_MAX in this case.
27106         (<stddef.h>): Do not include; no longer needed.
27107         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
27108         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
27109         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
27110         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
27111         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
27112         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
27113         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
27114         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
27115         !defined(__c99))]: Include in this case too, since it's harmless
27116         now.
27117         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
27118         dangerous to do so.
27119         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
27120         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
27121         (_STDINT_MIN, _STDINT_MAX): New macros.
27122         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
27123         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
27124         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
27125         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
27126         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
27127         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
27128         macros, not typedefs; this simplifies things quite a bit.
27129         Use long int for all types narrower than int64_t.
27130         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
27131         Define in terms of long long int or int64_t or long int,
27132         not int64_t or int32_t.  This saves some compile-time testing.
27133         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
27134         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
27135         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
27136         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
27137         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
27138         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
27139         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
27140         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
27141         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
27142         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
27143         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
27144         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
27145         undef any previous version and define our own version, for
27146         simplicity and consistency with the new macros for types.
27147         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
27148         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
27149         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
27150         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
27151         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
27152         @WINT_T_SUFFIX@ to keep things simple here.
27153         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
27154         Simplify by assuming typical 8/16/32/64 host, since we're
27155         already doing that elsewhere anyway.
27156         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
27157         and assume long long int is 64 bits if available.  This
27158         speeds up 'configure'.
27159
27160 2006-07-01  Eric Blake  <ebb9@byu.net>
27161
27162         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
27163         Reported by Andreas Buening.
27164
27165 2006-07-01  Eric Blake  <ebb9@byu.net>
27166
27167         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
27168
27169 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
27170
27171         * lib/getaddrinfo.c: fixed typo
27172
27173 2006-06-29  Jim Meyering  <jim@meyering.net>
27174
27175         * modules/strftime (Maintainer): Add my name, since with the
27176         FPRINTFTIME changes strftime.c has forked from glibc.
27177
27178 2006-06-29  Eric Blake  <ebb9@byu.net>
27179
27180         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
27181
27182 2006-06-29  Eric Blake  <ebb9@byu.net>
27183
27184         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
27185
27186 2006-06-29  Eric Blake  <ebb9@byu.net>
27187
27188         * lib/stat_.h: New file.
27189
27190 2006-06-29  Eric Blake  <ebb9@byu.net>
27191
27192         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
27193         unused static function.
27194
27195 2006-06-29  Eric Blake  <ebb9@byu.net>
27196
27197         * doc/functions.texi (Function Portability): Document missing lstat
27198         on mingw.
27199
27200 2006-06-29  Eric Blake  <ebb9@byu.net>
27201
27202         * MODULES.html.sh: Add sys_stat.
27203         * modules/sys_stat: New module.
27204         * modules/mkstemp (Depends-on): Add sys_stat.
27205
27206 2006-06-29  Derek R. Price  <derek@ximbiot.com>
27207
27208         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
27209
27210 2006-06-29  Derek R. Price  <derek@ximbiot.com>
27211
27212         * m4/c-bs-a.m4: Removed.
27213
27214 2006-06-29  Derek R. Price  <derek@ximbiot.com>
27215
27216         * lib/strftime.c: Assume strftime() exists.
27217
27218 2006-06-29  Derek Price  <derek@ximbiot.com>
27219
27220         * modules/c-bs-a: Removed - \a is C89.
27221         * MODULES.html.sh: Remove c-bs-a.
27222
27223 2006-06-29  Bruno Haible  <bruno@clisp.org>
27224
27225         * modules/wcwidth (License): Change to LGPL.
27226
27227 2006-06-28  Simon Josefsson  <jas@extundo.com>
27228
27229         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
27230         on _WIN32.
27231
27232         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
27233         getnameinfo.
27234
27235 2006-06-28  Simon Josefsson  <jas@extundo.com>
27236
27237         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
27238
27239 2006-06-28  Simon Josefsson  <jas@extundo.com>
27240
27241         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
27242         functions there.  It will succeed on Windows XP, but on Windows
27243         2000 and (presumably) earlier, it will fail, and use the internal
27244         re-implementation.
27245         (use_win32_p): New function.
27246         (getaddrinfo): Use strtoul on servname, to support numeric ports.
27247         Support AI_NUMERICSERV to disable getservbyname.
27248         (getnameinfo): New function, only supports
27249         NI_NUMERICHOST|NI_NUMERICSERV for now.
27250
27251         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
27252         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
27253         getnameinfo.
27254
27255 2006-06-28  Eric Blake  <ebb9@byu.net>
27256
27257         * modules/wcwidth: New file.
27258         * modules/mbchar (Depends-on): Add wcwidth.
27259         * modules/mbswidth (Depends-on): Add wcwidth.
27260         * MODULES.html.sh: Add wcwidth.
27261
27262 2006-06-28  Eric Blake  <ebb9@byu.net>
27263
27264         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
27265         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
27266
27267 2006-06-28  Eric Blake  <ebb9@byu.net>
27268
27269         * lib/xvasprintf.h: Fix comments.
27270
27271 2006-06-28  Eric Blake  <ebb9@byu.net>
27272
27273         * lib/mbchar.h (wcwidth): Include wcwidth.h.
27274         * lib/mbswidth.c (wcwidth): Move from here...
27275         * lib/wcwidth.h: ...to this new file.
27276
27277 2006-06-28  Derek R. Price  <derek@ximbiot.com>
27278
27279         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
27280
27281         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
27282         it's obsolete.
27283         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
27284
27285 2006-06-28  Derek R. Price  <derek@ximbiot.com>
27286
27287         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
27288         Autoconf 2.60 says this stuff was obsolete.
27289
27290 2006-06-28  Bruno Haible  <bruno@clisp.org>
27291
27292         * modules/wcwidth (Files): Add m4/wchar_t.m4.
27293
27294 2006-06-28  Bruno Haible  <bruno@clisp.org>
27295
27296         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
27297         gt_TYPE_WCHAR_T.
27298
27299 2006-06-28  Bruno Haible  <bruno@clisp.org>
27300
27301         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
27302         declaration for wcwidth.
27303         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
27304
27305 2006-06-28  Bruno Haible  <bruno@clisp.org>
27306
27307         * lib/mkdtemp.c [MINGW]: Include <io.h>.
27308         (mkdir): Define using _mkdir.
27309
27310 2006-06-28  Bruno Haible  <bruno@clisp.org>
27311
27312         * lib/getaddrinfo.h: Fix POSIX URL.
27313         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
27314         _WIN32.
27315         (use_win32_p): Make static.
27316         (getaddrinfo): Reject service name if it is empty or does not consist
27317         solely of decimal digits, or if its value is > 65535.
27318         (getnameinfo): Remove useless casts.
27319
27320 2006-06-27  Simon Josefsson  <jas@extundo.com>
27321
27322         * modules/sys_select: New file, suggested by Bruno Haible, Paul
27323         Eggert and Martin Lambers.
27324
27325 2006-06-27  Simon Josefsson  <jas@extundo.com>
27326
27327         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
27328         Eggert and Martin Lambers.
27329
27330 2006-06-27  Bruno Haible  <bruno@clisp.org>
27331
27332         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
27333         result to 0, not to empty.
27334         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
27335
27336 2006-06-27  Bruno Haible  <bruno@clisp.org>
27337
27338         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
27339
27340 2006-06-26  Simon Josefsson  <jas@extundo.com>
27341
27342         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
27343         present.
27344
27345 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
27346
27347         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
27348         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
27349         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
27350
27351 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
27352
27353         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
27354
27355 2006-06-26  Bruno Haible  <bruno@clisp.org>
27356
27357         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
27358
27359 2006-06-26  Bruno Haible  <bruno@clisp.org>
27360
27361         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
27362
27363 2006-06-26  Bruno Haible  <bruno@clisp.org>
27364
27365         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
27366         SGI C compiler in pre-C99 mode.
27367         Suggested by Mark D. Baushke and Larry Jones.
27368
27369 2006-06-26  Bruno Haible  <bruno@clisp.org>
27370
27371         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
27372         WCHAR_MAX.
27373         Reported by Mark D. Baushke and Larry Jones.
27374
27375 2006-06-26  Bruno Haible  <bruno@clisp.org>
27376
27377         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
27378         in pre-C99 mode.
27379         Suggested by Mark D. Baushke and Larry Jones.
27380
27381 2006-06-23  Simon Josefsson  <jas@extundo.com>
27382             Bruno Haible  <bruno@clisp.org>
27383
27384         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
27385         Emit mostlyclean-local rule.
27386         (func_emit_tests_Makefile_am): Likewise.
27387         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
27388
27389 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
27390
27391         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
27392
27393 2006-06-23  Bruno Haible  <bruno@clisp.org>
27394
27395         * tests/test-stdint.c: Update to match ISO C 99 Technical
27396         Corrigendum 1.
27397
27398 2006-06-23  Bruno Haible  <bruno@clisp.org>
27399
27400         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
27401
27402 2006-06-23  Bruno Haible  <bruno@clisp.org>
27403
27404         * lib/stdint_.h: Treat IRIX like OpenBSD.
27405
27406 2006-06-23  Bruno Haible  <bruno@clisp.org>
27407
27408         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
27409         ISO C 99 Technical Corrigendum 1.
27410
27411 2006-06-22  Simon Josefsson  <jas@extundo.com>
27412
27413         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
27414         MinGW.
27415
27416 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
27417
27418         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
27419         needed.  Some compiler complained about some of them.  Problem reported
27420         by Larry Jones in
27421         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
27422
27423 2006-06-21  Simon Josefsson  <jas@extundo.com>
27424
27425         * tests/test-getaddrinfo.c: New file.
27426
27427         * modules/getaddrinfo-tests: New file.
27428
27429         * MODULES.html.sh: Add inet_pton.
27430
27431         * modules/inet_pton: New file.
27432
27433 2006-06-21  Simon Josefsson  <jas@extundo.com>
27434
27435         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
27436         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
27437         of using the (limited) gnulib implementation on Windows XP.
27438
27439         * m4/inet_pton.m4: New file.
27440
27441 2006-06-21  Simon Josefsson  <jas@extundo.com>
27442
27443         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
27444         variable.
27445
27446         * lib/socket_.h: Don't define WINVER.
27447
27448         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
27449         slightly modified to work in gnulib.
27450
27451 2006-06-21  Simon Josefsson  <jas@extundo.com>
27452
27453         * doc/gnulib.texi (Windows sockets): Add.
27454
27455 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
27456
27457         * lib/read-file.c (fread_file): Start with buffer allocation of
27458         0 bytes rather than 1 byte; this simplifies the code.
27459         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
27460         code to free buffer and save/restore errno.
27461         (internal_read_file): Remove unused local.
27462
27463 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
27464
27465         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
27466         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
27467         Problem reported by Denis Excoffier in
27468         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
27469
27470 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
27471
27472         * modules/sys_socket, modules/socklen: Include sys/types since
27473         FreeBSD 4.x's sys/socket.h needs it.
27474
27475 2006-06-19  Simon Josefsson  <jas@extundo.com>
27476
27477         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
27478
27479 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
27480
27481         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
27482
27483 2006-06-19  Bruno Haible  <bruno@clisp.org>
27484
27485         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
27486         and FULL_PATH_INTTYPES_H in angle brackets.
27487         Reported by Mark D. Baushke <mdb@gnu.org>.
27488
27489 2006-06-17  Eric Blake  <ebb9@byu.net>
27490
27491         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
27492         errno.
27493
27494 2006-06-17  Bruno Haible  <bruno@clisp.org>
27495
27496         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
27497         <sys/inttypes.h>.
27498
27499 2006-06-17  Bruno Haible  <bruno@clisp.org>
27500
27501         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
27502         whether errno is declared. Assume <errno.h> declares errno.
27503
27504 2006-06-17  Bruno Haible  <bruno@clisp.org>
27505
27506         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
27507
27508 2006-06-17  Bruno Haible  <bruno@clisp.org>
27509
27510         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
27511         problem on Solaris 2.5.1.
27512
27513 2006-06-16  Eric Blake  <ebb9@byu.net>
27514
27515         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
27516         * lib/unicodeio.c [!defined errno]: Likewise.
27517         * lib/strtol.c [!defined errno]: Likewise.
27518         * lib/strtod.c [!defined errno]: Likewise.
27519
27520 2006-06-15  Eric Blake  <ebb9@byu.net>
27521
27522         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
27523
27524 2006-06-15  Eric Blake  <ebb9@byu.net>
27525
27526         * config/srclist.txt (ssize_t.m4): Lose sync.
27527
27528 2006-06-15  Bruno Haible  <bruno@clisp.org>
27529
27530         * modules/stdint (Files): Include m4/full-header-path.m4,
27531         m4/size_max.m4, m4/wchar_t.m4.
27532         (Makefile.am): Many more substitutions.
27533         * modules/stdint-tests: New file.
27534         * tests/test-stdint.c: New file.
27535
27536 2006-06-15  Bruno Haible  <bruno@clisp.org>
27537
27538         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
27539         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
27540         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
27541         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
27542         gl_CHECK_TYPE_SAME): New macros.
27543
27544 2006-06-15  Bruno Haible  <bruno@clisp.org>
27545
27546         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
27547
27548 2006-06-15  Bruno Haible  <bruno@clisp.org>
27549
27550         * lib/stdint_.h: Rewritten to be fully auto-configured.
27551         Fixes bug on HP-UX/IA64.
27552
27553 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
27554
27555         * lib/getdate.y (__attribute__): Don't define if already defined.
27556         Problem reported by Larry Jones.
27557         * lib/utimens.c (__attribute__): Likewise.
27558
27559 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
27560
27561         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
27562         reported by Andreas Schwab.
27563
27564 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27565             Bruno Haible  <bruno@clisp.org>
27566
27567         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
27568         check for the declaration of strnlen and a run test that exposes the
27569         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
27570         rpl_strndup.
27571
27572 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27573             Bruno Haible  <bruno@clisp.org>
27574
27575         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
27576
27577 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27578
27579         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
27580         compile test, for Tru64 4.0D.
27581
27582 2006-05-28  Karl Berry  <karl@gnu.org>
27583
27584         * config/srclist.txt (printf-args.c): lose sync.
27585
27586 2006-05-26  Martin Lambers  <marlam@marlam.de>
27587
27588         * lib/getpass.c: Updates the test for the native W32 API, and adds
27589         missing includes, thus fixing compilation warnings.
27590
27591 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
27592
27593         * lib/exclude.c (exclude_fnmatch): New function.
27594         (excluded_file_name): Call exclude_fnmatch.
27595         * lib/exclude.h (excluded_file_name): New prototype
27596
27597 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
27598
27599         * lib/tempname.c (small_open, large_open): New macros.
27600         (__open, __open64) [!_LIBC]: Remove.
27601         (__gen_tempname): Use small_open and large_open instead of __open
27602         and __open64.  This fixes a portability bug on HP-UX 11.11i
27603         reported by Simon Wing-Tang in
27604         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
27605
27606 2006-05-24  Bruno Haible  <bruno@clisp.org>
27607
27608         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
27609         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
27610         Reported by Thorsten Maerz <torte@netztorte.de> via
27611         Aaron Stone <aaron@serendipity.cx>.
27612
27613 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
27614
27615         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
27616         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
27617         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
27618         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
27619         not really conditional on the cache.
27620         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
27621
27622 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
27623
27624         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
27625         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
27626         (my_usleep): Don't mishandle maximum value.
27627
27628 2006-05-19  Jim Meyering  <jim@meyering.net>
27629
27630         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
27631
27632 2006-05-17  Bruno Haible  <bruno@clisp.org>
27633
27634         Cygwin portability.
27635         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
27636
27637 2006-05-17  Bruno Haible  <bruno@clisp.org>
27638
27639         * lib/stdint_.h: Fix recognition of Cygwin.
27640
27641 2006-05-15  Bruno Haible  <bruno@clisp.org>
27642
27643         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
27644         on libtool patch by Ralf Wildenhues.
27645
27646 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
27647
27648         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
27649         test for C99 conformance; (bool) 0.5 is an integer constant
27650         expression, but (bool) -0.5 is not.  Problem reported by Fedor
27651         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
27652
27653 2006-05-11  Simon Josefsson  <jas@extundo.com>
27654
27655         * m4/xvasprintf.m4: Fix obvious typo.
27656
27657 2006-05-11  Jim Meyering  <jim@meyering.net>
27658
27659         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
27660         James Lemley.
27661
27662 2006-05-10  Simon Josefsson  <jas@extundo.com>
27663
27664         * lib/md4.c: Typo fix, update copyright years.
27665         (K1, K2): Don't use L because it turn computations into 64-bit on
27666         64-bit platforms.
27667
27668 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
27669
27670         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
27671         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
27672         unwanted sign propagation, e.g., on hosts with 64-bit int.
27673         There still are some problems with reeelly weird theoretical hosts
27674         (e.g., 33-bit int) but it's not worth worrying about now.
27675         * lib/sha1.c (rol): Likewise.
27676         (K1, K2, K3, K4): Remove unnecessary L suffix.
27677
27678 2006-05-10  Bruno Haible  <bruno@clisp.org>
27679
27680         * lib/des.c: Cast to avoid warnings.
27681
27682 2006-05-09  Bruno Haible  <bruno@clisp.org>
27683
27684         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
27685         (Depends-on): Depend also on xsize, stdarg.
27686         (configure.ac): Add gl_XVASPRINTF.
27687
27688 2006-05-09  Bruno Haible  <bruno@clisp.org>
27689
27690         * m4/xvasprintf.m4: New file.
27691
27692 2006-05-09  Bruno Haible  <bruno@clisp.org>
27693
27694         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
27695         (EOVERFLOW): Define fallback value.
27696         (xstrcat): New function.
27697         (xvasprintf): Recognize the special case of a string concatenation.
27698
27699 2006-05-08  Eric Blake  <ebb9@byu.net>
27700
27701         * gnulib-tool (func_version): Base copyright year on CVS date.
27702         (func_emit_copyright_notice): New function.
27703         (func_emit_lib_Makefile_am): Use it.
27704         (func_emit_tests_Makefile_am): Likewise.
27705         (func_import): Likewise.
27706
27707 2006-05-08  Bruno Haible  <bruno@clisp.org>
27708
27709         * modules/stdarg: New file.
27710         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
27711
27712 2006-05-08  Bruno Haible  <bruno@clisp.org>
27713
27714         * m4/stdarg.m4: New file, from GNU gettext.
27715
27716 2006-05-08  Bruno Haible  <bruno@clisp.org>
27717
27718         * config/srclist.txt (build-aux/config.rpath): different from latest
27719         release.
27720
27721 2006-05-08  Bruno Haible  <bruno@clisp.org>
27722
27723         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
27724
27725 2006-05-05  Jim Meyering  <jim@meyering.net>
27726
27727         * m4/warning.m4: New file, derived from bison's file by the same name.
27728
27729 2006-05-03  Bruno Haible  <bruno@clisp.org>
27730
27731         * lib/stdint_.h: Shorter URL.
27732         * lib/inttypes.h: Likewise.
27733
27734 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
27735
27736         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
27737
27738 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
27739
27740         * lib/verify.h: Document the internals better.  Most of this change
27741         was written by Bruno Haible.
27742
27743 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
27744
27745         * doc/verify.texi: New file, partly based on a proposal by
27746         Bruno Haible.
27747
27748 2006-05-02  Bruno Haible  <bruno@clisp.org>
27749
27750         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
27751         test from here...
27752         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
27753
27754 2006-04-29  Bruno Haible  <bruno@clisp.org>
27755
27756         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
27757         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
27758
27759 2006-04-29  Bruno Haible  <bruno@clisp.org>
27760
27761         * gnulib-tool: Make --update option actually work.
27762
27763 2006-04-29  Bruno Haible  <bruno@clisp.org>
27764
27765         * doc/gcd.texi: New file.
27766         * doc/gnulib.texi: Include it.
27767
27768 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
27769
27770         * lib/getdate.y (get_date): When adding relative date, start with the
27771         initial time, not with the result of the first mktime call.
27772
27773 2006-04-25  Bruno Haible  <bruno@clisp.org>
27774
27775         * gnulib-tool (func_import): Output the include directives in three
27776         blocks, sorted separately.
27777         Reported by Ben Pfaff <blp@cs.stanford.edu>.
27778
27779 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
27780
27781         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
27782         to define main with arguments, for C++.  Reported by Eric Blake.
27783         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
27784         Prefer 'int main ()' to 'int main (void)', for C++.
27785         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
27786         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
27787         for 'main', for C99 and C++.
27788
27789 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
27790
27791         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
27792         Don't assume that exit status -1 is valid.
27793         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
27794         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
27795         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
27796         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
27797         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
27798         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
27799         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
27800         functions can be used without declaring them, or that you can
27801         exit with status -1.
27802         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
27803
27804 2006-04-24  Karl Berry  <karl@gnu.org>
27805
27806         * config/srclist.txt (longdouble.m4): sync lost.
27807
27808 2006-04-24  Eric Blake  <ebb9@byu.net>
27809
27810         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
27811
27812 2006-04-24  Bruno Haible  <bruno@clisp.org>
27813
27814         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
27815         poll() implementation in AIX.
27816         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
27817
27818 2006-04-24  Bruno Haible  <bruno@clisp.org>
27819
27820         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
27821         assigned exactly once.
27822
27823 2006-04-23  Claudio Fontana  <claudio@gnu.org>
27824             Bruno Haible  <bruno@clisp.org>
27825
27826         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
27827         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
27828         for AM_CPPFLAGS.
27829
27830 2006-04-23  Bruno Haible  <bruno@clisp.org>
27831
27832         * modules/copy-file: Depend on unistd.
27833         * modules/execute: Likewise.
27834         * modules/fatal-signal: Likewise.
27835         * modules/findprog: Likewise.
27836         * modules/mkdtemp : Likewise.
27837         * modules/pipe: Likewise.
27838         * modules/wait-process: Likewise.
27839
27840 2006-04-23  Bruno Haible  <bruno@clisp.org>
27841
27842         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
27843         condition was already detected.
27844         Reported by Ben Pfaff <blp@cs.stanford.edu>.
27845
27846 2006-04-23  Bruno Haible  <bruno@clisp.org>
27847
27848         * lib/copy-file.c: Include <unistd.h> unconditionally.
27849         * lib/execute.c: Likewise.
27850         * lib/fatal-signal.c: Likewise.
27851         * lib/findprog.c: Likewise.
27852         * lib/mkdtemp.c: Likewise.
27853         * lib/pipe.h: Likewise.
27854         * lib/pipe.c: Likewise.
27855         * lib/wait-process.h: Likewise.
27856
27857 2006-04-23  Bruno Haible  <bruno@clisp.org>
27858
27859         * gnulib-tool (func_usage): Fix --import description. Document
27860         --update.
27861         (func_import): Create temporary file in a temporary directory, if
27862         --dry-run is specified. Silence errors from 'grep' when there are no
27863         m4 files in $m4dir.
27864         (func_create_testdir): Silence errors from 'grep' when there are no
27865         m4 files in $m4dir.
27866         Reported by Karl Berry <karl@freefriends.org>.
27867
27868 2006-04-20  Bruno Haible  <bruno@clisp.org>
27869
27870         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
27871         one argument, so that the code will be portable to Autoconf 2.60.
27872         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
27873         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
27874         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
27875
27876 2006-04-19  Derek Price  <derek@ximbiot.com>
27877             Eric Blake  <ebb9@byu.net>
27878
27879         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
27880         rather than "/full/path.h".  Update comment to match.  Shorten &
27881         generalize m4_translit call via AS_TR_CPP.
27882
27883 2006-04-19  Derek Price  <derek@ximbiot.com>
27884             Eric Blake  <ebb9@byu.net>
27885
27886         * lib/inttypes.h: Correct grammar in comment.
27887
27888 2006-04-18  Derek Price  <derek@ximbiot.com>
27889             Paul Eggert  <eggert@cs.ucla.edu>
27890
27891         * modules/inttypes: New file.
27892         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
27893
27894 2006-04-18  Derek Price  <derek@ximbiot.com>
27895             Paul Eggert  <eggert@cs.ucla.edu>
27896
27897         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
27898         New files.
27899
27900 2006-04-18  Derek Price  <derek@ximbiot.com>
27901             Paul Eggert  <eggert@cs.ucla.edu>
27902
27903         * lib/inttypes.h: New file.
27904         * lib/strtoimax.c: Assume <inttypes.h>.
27905
27906 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
27907
27908         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
27909         isn't mounted.  Problem reported by Kir Kolyshkin.
27910
27911 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
27912
27913         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
27914         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
27915         Derek R. Price.
27916         * lib/regex.h (RE_DUP_MAX): Update comment to match current
27917         implementation.
27918
27919 2006-04-12  Eric Blake  <ebb9@byu.net>
27920
27921         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
27922         is now done automatically by the corresponding Autoconf macro.
27923
27924 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
27925
27926         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
27927         time_r.h.
27928
27929 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
27930
27931         Merge regex changes from libc, removing some of our
27932         POSIX-conformance changes that were rejected and redoing them in a
27933         less-intrusive way.
27934
27935         * lib/regcomp.c (re_compile_internal, init_dfa):
27936         Length arg is now size_t, not Idx.  All uses changed.
27937         (peek_token): Forward decl now says internal_function.
27938         (__re_error_msgid, __re_error_msgid_idx):
27939         Now static rather than extern with attribute_hidden.
27940         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
27941         For some reason libc prefers K&R style defns for external functions.
27942         (regerror) [!defined _LIBC]: Likewise.
27943         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
27944         (seek_collating_symbol_entry, lookup_collation_sequence_value):
27945         (build_range_exp, build_collating_symbol):
27946         Use K&R-style defn.
27947         (re_compile_fastmap): Use '\0' to memset, not 0.
27948         (utf8_sb_map): Make the calculations more obvious.
27949         (init_dfa, parse_bracket_exp, build_charclass_op):
27950         Call calloc and cast result, as glibc does.
27951         (init_word_char, fetch_token, peek_token, peek_token_bracket):
27952         (build_range_exp, build_collating_symbol):
27953         Now internal functions.
27954
27955         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
27956
27957         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
27958         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
27959         Don't depend on VMS; depend on __VMS instead, for POSIX
27960         namespace cleanness.
27961         (regoff_t): Define to ssize_t, not long int.
27962
27963         Remove the REG_ macros named below.  Instead, make the old names
27964         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
27965         __USE_GNU_REGEX.
27966         (REG_BACKSLASH_ESCAPE_IN_LISTS):
27967         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
27968         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
27969         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
27970         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
27971         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
27972         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
27973         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
27974         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
27975         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
27976         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
27977         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
27978         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
27979         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
27980         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
27981         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
27982         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
27983         (REG_NREGS):
27984         Remove.  All uses replaced by the old RE_* names.
27985         (RE_BACKSLASH_ESCAPE_IN_LISTS):
27986         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
27987         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
27988         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
27989         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
27990         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
27991         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
27992         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
27993         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
27994         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
27995         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
27996         Don't bother having these macros be independent of each others'
27997         values, since they no longer exist in the POSIX name space.
27998
27999         Rename the following member names back to their old names,
28000         unless !__USE_GNU_REGEX.  All uses changed back.
28001         (buffer): Renamed from re_buffer.
28002         (allocated): Renamed from re_allocated.
28003         (used): Renamed from re_used.
28004         (syntax): Renamed from re_syntax.
28005         (fastmap): Renamed from re_fastmap.
28006         (translate): Renamed from re_translate.
28007         (can_be_null): Renamed from re_can_be_null.
28008         (regs_allocated): Renamed from re_regs_allocated.
28009         (fastmap_accurate): Renamed from re_fastmap_accurate.
28010         (no_sub): Renamed from re_no_sub.
28011         (not_bol): Renamed from re_not_bol.
28012         (not_eol): Renamed from re_not_eol.
28013         (newline_anchor): Renamed from re_newline_anchor.
28014         (num_regs): Renamed from rm_num_regs.
28015         (start): Renamed from rm_start.
28016         (end): Renamed from rm_end.
28017
28018         (free_state): Move up a bit.
28019
28020         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
28021         #define to be empty.
28022         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
28023         when that is what is intended.
28024         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
28025         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
28026         (MAX): New macro.
28027         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
28028         All uses changed back to re_malloc, etc.  It's now the caller's
28029         responsibility to check for overflow; all callers changed.
28030         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
28031         (re_x2nrealloc): Remove.
28032         (free_state): Remove decl.
28033
28034         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
28035         (re_set_registers, re_exec):
28036         Use K&R-style defn.
28037
28038         2006-01-31  Roland McGrath  <roland@redhat.com>
28039
28040         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
28041         Reported by Mike Frysinger <vapier@gentoo.org>.
28042
28043         2006-01-15  Andreas Jaeger  <aj@suse.de>
28044
28045         [BZ #1950]
28046         * lib/regex_internal.c (re_string_reconstruct): Adjust for
28047         build_wcs_upper_buffer change.
28048         (build_wcs_upper_buffer): Change return type.
28049
28050         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
28051
28052         * lib/regex_internal.h: Include <stdint.h> if available.
28053
28054         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
28055
28056         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
28057
28058         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
28059
28060         * lib/regcomp.c: Adjust for changed secondary hash function.
28061
28062         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
28063
28064         * lib/regex.h: Pretty printing.
28065         Clean up namespace a bit.
28066
28067         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
28068
28069         * lib/regexec.c (update_cur_sifted_state, check_arrival,
28070         check_arrival_add_next_nodes): Avoid using uninitialized variable.
28071
28072         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
28073                     Ulrich Drepper  <drepper@redhat.com>
28074
28075         [BZ #1302]
28076         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
28077         changed.
28078         (bitset_word_t): Renamed from bitset_word.  All uses changed.
28079
28080         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
28081
28082         [BZ #281]
28083         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
28084         * lib/regcomp.c: Remove unnecessary uses of
28085         unsigned RE_TRANSLATE_TYPE.
28086         * lib/regex_internal.h: Likewise.
28087         * lib/regex_internal.c: Likewise.
28088         * lib/regexec.c: Likewise.
28089         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
28090
28091         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
28092
28093         * lib/regexec.c (find_recover_state): Remove unnecessary
28094         initialization.
28095         (transit_state_bkref): Make DFA a const pointer.
28096         (get_subexp): Likewise.
28097         (check_arrival): Likewise.
28098         (update_cur_sifted_state): Likewise.
28099         (re_search_internal): Likewise.
28100         (prune_impossible_nodes): Likewise.
28101         (acquire_init_state_context): Likewise.
28102         (proceed_next_node): Likewise.
28103         (set_regs): Likewise.
28104         (free_fail_stack_return): Likewise.
28105         (check_arrival_expand_ecl): Mark DFA parameter as const.
28106         (check_arrival_expand_ecl_sub): Likewise.
28107         (check_subexp_limits): Likewise.
28108         (sub_epsilon_src_nodes):  Likewise.
28109         (add_epsilon_src_nodes):  Likewise.
28110         (merge_state_array): Likewise.
28111         (update_regs): Likewise.
28112         (build_trtable): Likewise.
28113         (sift_states_backward): Mark MCTX parameter as const.
28114         (build_sifted_states): Likewise.
28115         (update_cur_sifted_state): Likewise.
28116         (sift_states_mkref): Likewise.
28117         (check_arrival_expand_ecl): Mark eclosure as const.
28118         (check_dst_limits_calc_pos_1): Likewise.
28119         * lib/regex_internal.h (re_match_context_t): Make dfa a const
28120         pointer.
28121
28122         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
28123
28124         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
28125         (transit_state_sb): Likewise.
28126         (transit_state_mb): Likewise.
28127         (sift_states_iter_mb): Likewise.
28128         (check_arrival_add_next_nodes): Likewise.
28129         (check_node_accept_bytes): Change first parameter to pointer-to-const.
28130         [_LIBC] (re_search_2_stub): Use mempcpy.
28131
28132         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
28133         mbrtowc for very simple UTF-8 case.
28134
28135         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
28136         a pointer-to-const.
28137         (re_acquire_state_context): Likewise.
28138         * lib/regex_internal.h: Adjust prototypes.
28139
28140         * lib/regex.c: Prevent using C++ compilers.
28141
28142         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
28143         (re_acquire_state_context): Likewise.
28144
28145 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
28146
28147         * modules/regex (Depends-on): Add ssize_t.
28148
28149 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
28150
28151         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
28152         translation table.
28153
28154 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
28155
28156         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
28157
28158 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
28159             Bruno Haible  <bruno@clisp.org>
28160
28161         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
28162         <sys/types.h> and <inttypes.h>.
28163
28164 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28165
28166         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
28167         `__error_t_defined', so argp.h will not typedef the former.
28168
28169 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
28170
28171         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
28172         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
28173         glibc names.  Even if glibc is changed to conform to POSIX, the
28174         traditional names will be available anyway, since regex depends on
28175         the extensions module.  Also, fix a longstanding typo in the
28176         implementation of Spencer ERE test #75 from grep 2.3.  Problems
28177         reported by Emanuele Giaquinta.  Also, change sense of cached
28178         variable, so that the message makes sense.
28179
28180 2006-03-24  Simon Josefsson  <jas@extundo.com>
28181
28182         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
28183         including some doc fixes.
28184         (base64_encode_alloc): Fix +1 bug on allocation failures.
28185
28186 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28187
28188         * lib/base64.c (base64_encode): Do not read past end of array with
28189         unsanitized input on systems with CHAR_BIT > 8.
28190
28191 2006-03-24  Eric Blake  <ebb9@byu.net>
28192
28193         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
28194
28195 2006-03-22  Karl Berry  <karl@gnu.org>
28196
28197         * config/srclist.txt (*setenv.[ch]): get from coreutils.
28198         * config/srclistvars.sh (COREUTILS): new var.
28199
28200 2006-03-17  Jim Meyering  <jim@meyering.net>
28201
28202         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
28203         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
28204
28205 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
28206
28207         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
28208         no longer needs it.  Instead, check that regoff_t is as least
28209         as wide as ptrdiff_t.
28210
28211         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
28212         so that our regex.h stays compatible with the installed regex.
28213         This is helpful for installers who configure --without-included-regex.
28214         Problem reported by Emanuele Giaquinta.
28215
28216 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
28217
28218         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
28219         Typedef to long int, not to off_, as POSIX will likely change
28220         in that direction.
28221
28222 2006-03-15  Eric Blake  <ebb9@byu.net>
28223
28224         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
28225
28226 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
28227
28228         * lib/argp-help.c (validate_uparams): Fix typo
28229         * lib/argp-parse.c (argp_default_options): Consistently begin help
28230         messages with a lowercase letter.
28231
28232 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
28233
28234         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
28235         overrun buffers and shouldn't be used (much as gets shouldn't be
28236         used).
28237         * lib/time_r.c (asctime_r, ctime_r): Likewise.
28238
28239 2006-03-08  Simon Josefsson  <jas@extundo.com>
28240
28241         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
28242         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28243
28244 2006-03-08  Simon Josefsson  <jas@extundo.com>
28245
28246         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
28247         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28248
28249 2006-03-08  Simon Josefsson  <jas@extundo.com>
28250
28251         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
28252         signal that configure disabled the device.
28253
28254 2006-03-08  Simon Josefsson  <jas@extundo.com>
28255
28256         * build-aux/maint.mk: Fix refresh-po, to handle no translated
28257         languages.
28258
28259 2006-03-07  Simon Josefsson  <jas@extundo.com>
28260
28261         * modules/getopt (Depends-on): Add unistd.
28262
28263         * modules/unistd: New file.
28264
28265 2006-03-07  Simon Josefsson  <jas@extundo.com>
28266
28267         * modules/gc-random: New file.
28268
28269 2006-03-07  Simon Josefsson  <jas@extundo.com>
28270
28271         * m4/unistd_h.m4: New file.
28272
28273 2006-03-07  Simon Josefsson  <jas@extundo.com>
28274
28275         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
28276         test to be side-effect free by storing the result in the cache
28277         variable gl_cv_lib_readline, and moving the assignment of
28278         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
28279         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28280
28281 2006-03-07  Simon Josefsson  <jas@extundo.com>
28282
28283         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
28284         error on missing devices (the functions will return an error).
28285
28286         * m4/gc.m4: Move random stuff to gc-random.m4
28287
28288 2006-03-07  Simon Josefsson  <jas@extundo.com>
28289
28290         * lib/unistd_.h: New file.
28291
28292 2006-03-07  Simon Josefsson  <jas@extundo.com>
28293
28294         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
28295
28296 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
28297
28298         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
28299         Problem reported by Juan Manuel Guerrero.
28300
28301 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
28302
28303         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
28304         the unistd module.
28305         * lib/getlogin_r.c: Likewise.
28306         * lib/getlogin_r.h: Likewise.
28307         * lib/glob.c: Likewise.
28308         * lib/pagealign_alloc.c: Likewise.
28309         * lib/unistd_.h: Remove; no longer needed.
28310
28311 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
28312
28313         * MODULES.html.sh (Support for systems lacking POSIX:2001):
28314         Add unistd.
28315         * modules/c-stack (Depends-on): Add unistd.
28316         * modules/getlogin_r: Likewise.
28317         * modules/glob: Likewise.
28318         * modules/pagealign_alloc: Likewise.
28319         * modules/unistd (Files): Remove lib/unistd_.h.
28320         (EXTRA_DIST): Remove.
28321         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
28322         need unistd_.h.
28323         (MOSTLYCLEANFILES): Remove unistd.h-t.
28324
28325 2006-03-03  Simon Josefsson  <jas@extundo.com>
28326
28327         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
28328
28329 2006-03-03  Simon Josefsson  <jas@extundo.com>
28330
28331         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
28332         libidn and bison.
28333
28334 2006-03-03  Simon Josefsson  <jas@extundo.com>
28335
28336         * build-aux/maint.mk: Add indent target.
28337
28338 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
28339
28340         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
28341         our replacement poll.h in any case, to avoid a differing
28342         declaration from a system header.  Seen on AIX.
28343
28344 2006-03-01  Simon Josefsson  <jas@extundo.com>
28345
28346         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
28347         <kasal@ucw.cz>.
28348
28349 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
28350
28351         * modules/gettime (Depends-on): Add extensions module.
28352         * modules/nanosleep (Depends-on): Likewise.
28353         * modules/settime (Depends-on): Likewise.
28354
28355 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
28356
28357         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
28358         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
28359         pedantically.
28360         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
28361         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
28362
28363         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
28364         not "==".  Reported by Ralf Wildenhues.
28365
28366 2006-03-01  Karl Berry  <karl@gnu.org>
28367
28368         * doc/Copyright/request-*: new files, synced from gnuorg.
28369
28370 2006-03-01  Karl Berry  <karl@gnu.org>
28371
28372         * config/srclist.txt (Copyright/*): new entries.
28373
28374 2006-02-28  Simon Josefsson  <jas@extundo.com>
28375
28376         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
28377
28378 2006-02-27  Simon Josefsson  <jas@extundo.com>
28379
28380         * lib/base64.h: Indent #define's.  From Jim Meyering
28381         <jim@meyering.net>.
28382
28383 2006-02-27  Jim Meyering  <jim@meyering.net>
28384
28385         Revert the change of 2006-02-24, so these files can continue
28386         to be sync'd from gettext.
28387         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
28388         of `config.h'.
28389
28390 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
28391
28392         * modules/intprops: New file.
28393         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
28394         Add intprops.
28395         * modules/getloadavg (Files): Remove lib/intprops.h.
28396         (Depends-on): Add intprops.
28397         * modules/human: Likewise.
28398         * modules/inttostr: Likewise.
28399         * modules/openat: Likewise.
28400         * modules/sig2str: Likewise.
28401         * modules/userspec: Likewise.
28402         * modules/utimecmp: Likewise.
28403         * modules/xnanosleep: Likewise.
28404         * modules/xstrtol: Likewise.
28405
28406 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
28407
28408         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
28409         * modules/lock-tests (TESTS): Use $(EXEEXT).
28410         * modules/tls-tests: Likewise.
28411         * modules/argp-tests: Likewise.
28412         (check_PROGRAMS): New var, replacing...
28413         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
28414
28415 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28416
28417         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
28418         `config.h'.
28419
28420 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
28421
28422         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
28423
28424 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28425
28426         Sync from coreutils.
28427         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
28428         gl_CHDIR_SAFER.
28429
28430 2006-02-22  Jim Meyering  <jim@meyering.net>
28431
28432         Sync from coreutils.
28433         * m4/chdir-safer.m4: New file.
28434
28435 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
28436
28437         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
28438         AT_FDCWD exceeds INT_MAX.
28439         * lib/openat.h (AT_FDCWD): Likewise.
28440
28441 2006-02-17  Eric Blake  <address@hidden>
28442
28443         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
28444
28445 2006-02-16  Simon Josefsson  <jas@extundo.com>
28446
28447         * modules/getaddrinfo (Depends-on): Add sys_socket.
28448
28449 2006-02-15  Simon Josefsson  <jas@extundo.com>
28450
28451         * build-aux/maint.mk: Add dsyntax-check rule.
28452
28453 2006-02-15  Eric Blake  <ebb9@byu.net>
28454
28455         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
28456         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
28457         'present but cannot compile' warnings on cygwin.
28458         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
28459         use ws2tcpip.h if sys/socket.h works.
28460         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
28461         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
28462
28463 2006-02-14  Simon Josefsson  <jas@extundo.com>
28464
28465         * modules/maintainer-makefile (Files): Rename.
28466
28467         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
28468         and (the local) Makefile.cfg to maint-cfg.mk.
28469
28470         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
28471         to the latter.
28472
28473         * modules/maintainer-makefile: New module.
28474
28475         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
28476         severaly stripped to make it possible to build it up from scratch
28477         with reliable tests.
28478
28479         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
28480         fixes to permit overriding the default actions when configure and
28481         makefile are not available.
28482
28483 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
28484
28485         Sync from coreutils.
28486         * modules/lstat (Depends-on): Don't depend on xalloc.
28487         (License): Change from GPL to LGPL, since this is now simply a
28488         replacement for a libc function.
28489
28490 2006-02-14  Jim Meyering  <jim@meyering.net>
28491
28492         Sync from coreutils.
28493
28494         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
28495         failure on deficient systems, and simplify gnulib lgpl dependencies.
28496         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
28497         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
28498
28499         * lib/xalloc-die.c: Remove unused definition of N_.
28500
28501 2006-02-14  Jim Meyering  <jim@meyering.net>
28502
28503         Sync from coreutils.
28504         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
28505         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
28506         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
28507         double-quote uses of that variable, to accommodate the rare case in
28508         which getmntent is available in none of the libraries checked.  This
28509         happens at least on FreeBSD 5.0.
28510
28511 2006-02-13  Simon Josefsson  <jas@extundo.com>
28512
28513         * gnulib-tool (Usage): Fix --import, from
28514         karl@freefriends.org (Karl Berry).
28515
28516 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
28517
28518         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
28519
28520 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
28521
28522         * lib/argp-namefrob.h: Restore changes accidentally lost during the
28523         "autoupdate" on 2005-12-12.
28524
28525 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
28526
28527         * modules/closeout (Depends-on): Remove atexit.
28528
28529 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
28530
28531         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
28532         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
28533
28534 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
28535
28536         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
28537         __EXTENSIONS__ if this causes compilation to fail.  Problem
28538         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
28539         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
28540
28541 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
28542
28543         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
28544         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
28545         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
28546         All uses changed.
28547
28548 2006-01-26  Simon Josefsson  <jas@extundo.com>
28549
28550         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
28551         prototype is visible on mingw32.
28552
28553         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
28554         for mingw32.
28555
28556         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
28557         mingw32).
28558
28559 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
28560
28561         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
28562         attempt to open for write; this always fails, at least on POSIX
28563         hosts.  This reinstates the 2006-01-09 change, which was
28564         inadvertently removed.
28565
28566 2006-01-26  Bruno Haible  <bruno@clisp.org>
28567
28568         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
28569         Reported by Paul Eggert.
28570
28571 2006-01-26  Bruno Haible  <bruno@clisp.org>
28572             Paul Eggert  <eggert@cs.ucla.edu>
28573
28574         * lib/stdbool_.h (_Bool)
28575         [(! (defined __cplusplus || defined __BEOS__)
28576           && !defined __GNUC__
28577           && !(defined __HP_cc || defined __xlc__
28578                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
28579                || defined __sgi))]:
28580         #define to signed char in these cases too; this simplifies
28581         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
28582         etc., separately) and makes it more conservative.
28583
28584 2006-01-25  Simon Josefsson  <jas@extundo.com>
28585
28586         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
28587         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
28588         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
28589
28590 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
28591
28592         * lib/argp-namefrob.h: Bugfix. Remove stray #
28593
28594 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
28595
28596         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
28597         so that we test the test.
28598         Check for yet another HP-UX cc bug involving *bool |= bool.
28599
28600 2006-01-25  Karl Berry  <karl@gnu.org>
28601
28602         * config/srclist.txt (vasnprintf.c): sync lost.
28603
28604 2006-01-25  Jim Meyering  <jim@meyering.net>
28605
28606         Sync from the stable (b5) branch of coreutils:
28607
28608         * lib/fts.c (fts_children): Don't let close() clobber errno from
28609         failed fchdir().
28610
28611         * lib/fts.c (fts_stat): When following a symlink-to-directory,
28612         don't necessarily interpret stat-fails+lstat-succeeds as indicating
28613         a dangling symlink.  That can also happen at least for ELOOP.
28614         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
28615         FYI, this bug predates the inclusion of fts.c in coreutils.
28616
28617         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
28618         in their own block, so pre-c99 compilers don't object.
28619
28620         Avoid the double-free (first in fts_read, second in fts_close) that
28621         would occur when an `active' directory is made inaccessible (e.g.,
28622         via chmod a-x) during a traversal.
28623         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
28624         before returning.  Reproduce this failure by
28625         mkdir -p a/b; cd a; chmod a-x . b
28626         Reported by Stavros Passas.
28627
28628 2006-01-25  Jim Meyering  <jim@meyering.net>
28629
28630         * lib/fileblocks.c: Remove more useless parentheses.
28631         * lib/readutmp.h: Likewise.
28632
28633 2006-01-25  Bruno Haible  <bruno@clisp.org>
28634
28635         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
28636         warnings.
28637         Reported by Paul Eggert.
28638
28639 2006-01-25  Bruno Haible  <bruno@clisp.org>
28640
28641         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
28642         rid of a trap command. For Solaris sh.
28643         Reported by Mark D. Baushke <mdb@gnu.org>.
28644
28645 2006-01-24  Simon Josefsson  <jas@extundo.com>
28646
28647         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
28648         Bruno.
28649
28650 2006-01-24  Karl Berry  <karl@gnu.org>
28651
28652         * config/srclist.txt (argp-namefrob.h): sync lost.
28653
28654 2006-01-24  Jim Meyering  <jim@meyering.net>
28655
28656         * modules/openat (Files): Add lib/intprops.h.
28657         From Mark D. Baushke.
28658
28659 2006-01-24  Jim Meyering  <jim@meyering.net>
28660
28661         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
28662         Reported by Mark D. Baushke.
28663
28664 2006-01-24  Jim Meyering  <jim@meyering.net>
28665
28666         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
28667
28668 2006-01-24  Bruno Haible  <bruno@clisp.org>
28669
28670         * modules/strnlen (Maintainer): Change from glibc to all.
28671
28672 2006-01-24  Bruno Haible  <bruno@clisp.org>
28673
28674         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
28675         Patch by Paul Eggert.
28676
28677 2006-01-24  Bruno Haible  <bruno@clisp.org>
28678
28679         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
28680         already has it.
28681         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
28682         2005-11-26.
28683
28684         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
28685         'signed char' to avoid problems with the built-in _Bool type.
28686         Reported by Paul Eggert on 2005-11-26.
28687
28688 2006-01-24  Bruno Haible  <bruno@clisp.org>
28689
28690         * gnulib-tool (func_import): Avoid constructing complicated sed
28691         expressions inside backquote.
28692         Report and solution by Mark D. Baushke <mdb@gnu.org>.
28693
28694 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
28695
28696         These changes imported from libc.
28697         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
28698         test and two separate function calls.
28699         * lib/strndup.c (__strndup): Add libc_hidden_def.
28700
28701 2006-01-23  Simon Josefsson  <jas@extundo.com>
28702
28703         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
28704         Remove the test_*_SOURCES variable: automake infers it by default.
28705         * modules/tls-tests: Likewise.
28706
28707 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
28708
28709         Work around porting bugs reported by Dieter in
28710         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
28711         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
28712         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
28713         Include "getopt.h" first, to check interface.
28714         (getenv): Declare only if defined HAVE_DECL_GETENV &&
28715         !HAVE_DECL_GETENV.
28716         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
28717         (__strndup): Revert to K&R-style function dfns, the glibc style.
28718         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
28719         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
28720         Include strnlen.h first, to get prototype properly.
28721         (strnlen): Renamed from __strnlen.
28722         Remove weak alias.
28723
28724 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
28725
28726         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
28727
28728 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
28729
28730         * config/srclist.txt: Adjust to reflect glibc reorganization.
28731         This affects only comments.
28732
28733 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
28734
28735          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
28736          Reported by Bruce Korb <bkorb@gnu.org>.
28737
28738 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
28739
28740         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
28741         to pacify gcc -Wswitch-default.
28742
28743 2006-01-22  Bruno Haible  <bruno@clisp.org>
28744
28745         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
28746         temporary buffer for sprintf, take into account the precision also
28747         for 'd', 'i', 'u', 'o', 'x', 'X'.
28748
28749 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
28750
28751         * modules/argp-tests: New module
28752         * tests/test-argp.c: New file
28753         * tests/test-argp-2.sh: New file
28754
28755 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
28756
28757         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
28758         (__argp_base_name): Removed
28759         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
28760         typo.
28761         (__argp_base_name): Provide macro definition or extern declaration
28762         depending on the configuration
28763
28764 2006-01-20  Simon Josefsson  <jas@extundo.com>
28765
28766         * modules/inet_ntop (Depends-on): Depend on sys_socket.
28767
28768 2006-01-20  Simon Josefsson  <jas@extundo.com>
28769
28770         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
28771
28772 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
28773
28774         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
28775         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
28776         Suggested by Bruno Haible.
28777
28778 2006-01-20  Karl Berry  <karl@gnu.org>
28779
28780         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
28781         until changes propagate, I guess.
28782
28783 2006-01-19  Simon Josefsson  <jas@extundo.com>
28784
28785         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
28786
28787 2006-01-19  Simon Josefsson  <jas@extundo.com>
28788
28789         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
28790
28791 2006-01-19  Simon Josefsson  <jas@extundo.com>
28792
28793         * gnulib-tool: Set check_PROGRAMS.
28794
28795         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
28796         modules/des-tests, modules/gc-arcfour-tests,
28797         modules/gc-arctwo-tests, modules/gc-des-tests,
28798         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
28799         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
28800         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
28801         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
28802         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
28803         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
28804         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
28805         test_*_SOURCES.
28806
28807 2006-01-18  Simon Josefsson  <jas@extundo.com>
28808
28809         * modules/socklen (Depends-on): Depend on sys_socket.
28810
28811 2006-01-18  Simon Josefsson  <jas@extundo.com>
28812
28813         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
28814         modules/des-tests, modules/gc-arcfour-tests,
28815         modules/gc-arctwo-tests, modules/gc-des-tests,
28816         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
28817         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
28818         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
28819         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
28820         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
28821         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
28822         $(EXEEXT) to automake TESTS variable, for mingw32.
28823
28824 2006-01-17  Simon Josefsson  <jas@extundo.com>
28825
28826         * modules/socklen (Include): Need sys/socket.h.
28827
28828 2006-01-17  Bruno Haible  <bruno@clisp.org>
28829
28830         * modules/ssize_t (Include): Add <sys/types.h>.
28831
28832 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
28833
28834         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
28835         it's not portable and it doesn't work with cross-compiles.
28836         Problem reported by Bruno Haible.  Fix missing-$ typo in
28837         'test "gl_cv_ignore_unused_libraries" ...' that prevented
28838         -zignore from being used with Sun's C compiler.
28839
28840 2006-01-12  Simon Josefsson  <jas@extundo.com>
28841
28842         * lib/base64.c: Fix warning, reported by Bruno Haible
28843         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
28844
28845 2006-01-12  Bruno Haible  <bruno@clisp.org>
28846
28847         * modules/ldd: New file.
28848         * build-aux/ldd.sh.in: New file.
28849         * MODULES.html.sh (Support for building libraries and executables): Add
28850         ldd.
28851
28852 2006-01-12  Bruno Haible  <bruno@clisp.org>
28853
28854         * m4/ldd.m4: New file.
28855
28856 2006-01-12  Bruno Haible  <bruno@clisp.org>
28857
28858         * gnulib-tool (func_import, func_create_testdir): Don't go into an
28859         endless loop while replacing $auxdir with build-aux.
28860
28861 2006-01-11  Simon Josefsson  <jas@extundo.com>
28862
28863         * lib/stdint_.h (SIZE_MAX): Add missing (.
28864
28865 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
28866
28867         Sync from coreutils.
28868         * lib/md5.c: Fix commentary typos.
28869         (alignof, UNALIGNED_P): No need for a GCC-specific version.
28870         * lib/md5.h (__attribute__): Remove; unused.
28871         * lib/sha1.c: Fix commentary to match md5 better.
28872         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
28873         so that we don't need to worry about alignment.  All uses changed.
28874         This merges the 2005-10-28 md5 change into sha1.
28875
28876 2006-01-11  Jim Meyering  <jim@meyering.net>
28877
28878         Sync from coreutils.
28879         * lib/md5.c (OP): Fix spacing.
28880
28881 2006-01-11  Bruno Haible  <bruno@clisp.org>
28882
28883         Ensure automatic ordering between gl_LOCK and gl_ARGP.
28884         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
28885         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
28886
28887 2006-01-11  Bruno Haible  <bruno@clisp.org>
28888
28889         Ensure automatic ordering between gl_LOCK and gl_ARGP.
28890         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
28891         the "early" section as well.
28892
28893 2006-01-11  Bruno Haible  <bruno@clisp.org>
28894
28895         Avoid "ar: no archive members specified" error on MacOS X.
28896         * gnulib-tool (func_modules_add_dummy): New function.
28897         (func_import, func_create_testdir): Invoke it.
28898
28899 2006-01-11  Bruno Haible  <bruno@clisp.org>
28900
28901         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
28902         with $auxdir in AC_CONFIG_FILES statements.
28903
28904 2006-01-11  Bruno Haible  <bruno@clisp.org>
28905
28906         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
28907         Initialize also noinst_HEADERS to empty.
28908
28909 2006-01-11  Bruno Haible  <bruno@clisp.org>
28910
28911         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
28912         variables.
28913         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
28914         autoreconf.
28915
28916 2006-01-11  Bruno Haible  <bruno@clisp.org>
28917
28918         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
28919         overridable by the user.
28920         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28921
28922 2006-01-10  Simon Josefsson  <jas@extundo.com>
28923
28924         * modules/sys_socket: New file.
28925
28926 2006-01-10  Simon Josefsson  <jas@extundo.com>
28927
28928         * m4/sys_socket_h.m4: New file.
28929
28930 2006-01-10  Simon Josefsson  <jas@extundo.com>
28931
28932         * lib/socket_.h: New file.
28933
28934 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
28935
28936         * modules/readutmp (Maintainer): Add myself.
28937
28938 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
28939
28940         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
28941         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
28942         People who are still concerned with buggy memcmp implementations
28943         can invoke gl_FUNC_MEMCMP themselves.
28944
28945 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
28946
28947         * lib/regex_internal.h (BITSET_WORD_BITS):
28948         Work around a bug in 64-bit PGC (before version 6.1-2), where the
28949         preprocessor mishandles large unsigned values as if they were signed.
28950         Problem reported by Claudio Fontana in
28951         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
28952
28953 2006-01-10  Jim Meyering  <jim@meyering.net>
28954
28955         Avoid the double-free (first in fts_read, second in fts_close) that
28956         would occur when an `active' directory is made inaccessible (e.g.,
28957         via chmod a-x) during a traversal.
28958         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
28959         before returning.  Reproduce this failure by
28960         mkdir -p a/b; cd a; chmod a-x . b
28961         Reported by Stavros Passas.
28962
28963         Sync from coreutils.
28964         * lib/sha1.c: Tweak grammar in a comment.
28965
28966 2006-01-10  Jim Meyering  <jim@meyering.net>
28967
28968         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
28969         Patch by Joerg Sonnenberger.
28970
28971 2006-01-10  Bruno Haible  <bruno@clisp.org>
28972
28973         * modules/readutmp: Depend on module free.
28974         * modules/strtok_r: Depend on module restrict.
28975
28976 2006-01-10  Bruno Haible  <bruno@clisp.org>
28977
28978         * modules/gettext (configure.ac): Add an invocation of
28979         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
28980
28981 2006-01-10  Bruno Haible  <bruno@clisp.org>
28982
28983         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
28984         Reported by Werner Lemberg <wl@gnu.org>.
28985
28986 2006-01-10  Bruno Haible  <bruno@clisp.org>
28987
28988         * lib/localcharset.c: Update from GNU gettext.
28989
28990 2006-01-10  Bruno Haible  <bruno@clisp.org>
28991
28992         * lib/argp.h (__const): Remove macro. Use const instead.
28993         * lib/argp-fmtstream.h (__const): Likewise.
28994         * lib/glob_.h (__const): Remove macro.
28995         * lib/glob-libc.h: Use const instead of __const.
28996
28997 2006-01-10  Bruno Haible  <bruno@clisp.org>
28998
28999         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
29000         variable.
29001         Needed to avoid an automake error regarding the 'gettext' module.
29002
29003 2006-01-09  Simon Josefsson  <jas@extundo.com>
29004
29005         * modules/inet_ntop (Depends-on): Add restrict.
29006
29007 2006-01-09  Simon Josefsson  <jas@extundo.com>
29008
29009         * modules/gc-rijndael-tests (License): Put under LGPL.
29010
29011         * modules/gc-des-tests (License): Likewise.
29012
29013         * modules/gc-arcfour-tests (License): Likewise.
29014
29015         * modules/gc-arctwo-tests (License): Likewise.
29016
29017         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
29018
29019         * modules/gc-hmac-sha1-tests (Files): Likewise.
29020
29021         * modules/gc-hmac-md5-tests (License): Likewise.
29022
29023         * modules/gc-sha1-tests (License): Likewise.
29024
29025         * modules/gc-md5-tests (License): Likewise.
29026
29027         * modules/gc-md4-tests (License): Likewise.
29028
29029         * modules/gc-md2-tests (License): Likewise.
29030
29031         * modules/gc-tests (License): Likewise.
29032
29033         * modules/des-tests (License): Likewise.
29034
29035         * modules/md4-tests (License): Likewise.
29036
29037         * modules/md2-tests (License): Likewise.
29038
29039 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
29040
29041         Sync from coreutils:
29042
29043         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
29044         * modules/lib-ignore: New file.
29045         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
29046         chdir-safer.m4, lchmod.m4.
29047         * modules/openat: Add mkdirat.c, openat-priv.h.
29048
29049 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
29050
29051         Sync from coreutils.
29052         * m4/lib-ignore.m4: New file.
29053         * m4/lchmod.m4: New file.
29054
29055 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
29056
29057         Sync from coreutils.
29058         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
29059         for write access: POSIX says that must fail.
29060         * lib/fts.c (diropen): Likewise.
29061         * lib/save-cwd.c (save_cwd): Likewise.
29062         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
29063         well, for minor improvements on hosts that lack O_DIRECTORY.
29064         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
29065         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
29066         Fall back on chown if open failed with EACCES.
29067
29068         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
29069         Report an error at compile-time if only a 1-second nominal clock
29070         resolution is found.
29071
29072         * lib/lchmod.h: New file.
29073         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
29074         (make_dir_parents): Use lchown rather than chown, and
29075         lchmod rather than chmod.
29076
29077         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
29078         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
29079         "proc" reported by n0dalus.
29080
29081         * lib/mountlist.c: Include <limits.h>.
29082         (dev_from_mount_options)
29083         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
29084         New function.  It no longer assumes "dev=" has the System V meaning
29085         on Linux (since it doesn't).  It also parses "dev=" more carefully.
29086         (read_file_system_list)
29087         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
29088         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
29089         dev= in that case.
29090
29091         * lib/posixtm.h (PDS_PRE_2000): New macro.
29092         * lib/posixtm.c (year): Arg is now syntax_bits rather than
29093         allow_century.  All usages changed.  Reject dates outside the range
29094         1969-1999 if PDS_PRE_2000 is used.
29095
29096 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
29097
29098         Sync from coreutils.
29099         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
29100         (Time of day items): Mention the possibility of leap seconds.
29101         Problem reported by Dr. David Alan Gilbert.
29102
29103 2006-01-09  Jim Meyering  <jim@meyering.net>
29104
29105         Sync from coreutils.
29106
29107         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
29108
29109         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
29110
29111         * lib/modechange.c (mode_compile): Reject an invalid mode string
29112         that starts with an octal digit.  From Andreas Gruenbacher.
29113
29114         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
29115         and dup to open_safer and dup_safer, respectively.
29116         (openat_permissive): Fix typo in comment.
29117
29118         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
29119         "gettext.h"; either no longer needed or are guaranteed by openat.h.
29120         (_): Remove; no longer needed.
29121         (openat): Renamed from rpl_openat; no need for rpl_openat
29122         since openat.h renames openat for us.
29123         Replace most of the body with a call to openat_permissive,
29124         to avoid duplicate code.
29125         Port to (probably hypothetical) environments were mode_t is
29126         wider than int.
29127         (openat_permissive): Require mode arg, so that we can check
29128         types better.  Put it just after flags.  Change cwd failure
29129         indicator from pointer-to-bool to pointer-to-errno-value.
29130         All callers changed.
29131         Invoke openat_save_fail and/or openat_restore_fail if
29132         cwd_errno is null, so that openat can call us.
29133         (openat_permissive, fdopendir, fstatat, unlinkat):
29134         Simplify errno handling to avoid some duplicate code,
29135         as it's OK to set errno on success.
29136         * lib/openat.h: Revamp code so that function macros depend on
29137         __OPENAT_PREFIX only, not also on AT_FDCWD.
29138         (openat_ro): Remove.  Caller changed to use openat_permissive.
29139         (openat_permissive): Now a macro, if not a function.
29140         (openat_restore_fail, openat_save_fail): Now always functions,
29141         since mkdirat needs them even if __OPENAT_PREFIX is defined.
29142
29143         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
29144         and openat.c.
29145         * lib/mkdirat.c: Include openat-priv.h.
29146         Remove definitions of macros defined therein.
29147         * lib/openat.c: Likewise.
29148
29149         * lib/mkdirat.c (mkdirat): New file and function.
29150         * lib/openat.h (mkdirat): Declare.
29151
29152         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
29153
29154         * lib/openat.h (openat_permissive): Declare.
29155         (openat_ro): Define.
29156
29157         * lib/openat.c (EXPECTED_ERRNO): New macro.
29158         (openat_permissive): New function -- used in remove.c rewrite.
29159         (all functions): Set errno just before returning, only if there
29160         was an actual failure.
29161         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
29162
29163         Emulate openat-family functions using Linux's procfs, if possible.
29164         Idea and some code based on Ulrich Drepper's glibc changes.
29165
29166         * lib/openat.c: (BUILD_PROC_NAME): New macro.
29167         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
29168         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
29169         before falling back on save_cwd and restore_cwd.
29170         (fdopendir, fstatat, unlinkat): Likewise.
29171
29172         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
29173         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
29174
29175         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
29176         as second argument to va_arg.  Otherwise, some versions of gcc
29177         warn that `if this code is reached, the program will abort'.
29178
29179 2006-01-09  Jim Meyering  <jim@meyering.net>
29180
29181         Sync from coreutils.
29182         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
29183         Require openat-priv.h.
29184
29185 2006-01-09  Bruno Haible  <bruno@clisp.org>
29186
29187         * modules/strnlen (Include): Use strnlen.h.
29188
29189 2006-01-09  Bruno Haible  <bruno@clisp.org>
29190
29191         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
29192
29193 2006-01-09  Bruno Haible  <bruno@clisp.org>
29194
29195         * lib/sysexit_.h (EX_OK): New macro.
29196         Suggested by Martin Lambers <marlam@marlam.de>.
29197
29198 2006-01-09  Bruno Haible  <bruno@clisp.org>
29199
29200         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
29201         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
29202
29203 2006-01-09  Bruno Haible  <bruno@clisp.org>
29204
29205         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
29206         numbers.
29207
29208 2006-01-09  Bruno Haible  <bruno@clisp.org>
29209
29210         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
29211         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
29212         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
29213         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
29214
29215 2006-01-09  Bruno Haible  <bruno@clisp.org>
29216
29217         * build-aux/javacomp.sh.in: New file, moved from lib/.
29218         * modules/javacomp-script (Files): Update.
29219         (configure.ac): Add AC_CONFIG_FILES invocation.
29220         (EXTRA_DIST): Remove variable.
29221
29222         * build-aux/javaexec.sh.in: New file, moved from lib/.
29223         * modules/javaexec (Files): Update.
29224         (configure.ac): Add AC_CONFIG_FILES invocation.
29225         (EXTRA_DIST): Remove javaexec.sh.in.
29226
29227         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
29228         * modules/csharpcomp-script (Files): Update.
29229         (configure.ac): Add AC_CONFIG_FILES invocation.
29230         (EXTRA_DIST): Remove variable.
29231
29232         * build-aux/csharpexec.sh.in: New file, moved from lib/.
29233         * modules/csharpexec (Files): Update.
29234         (configure.ac): Add AC_CONFIG_FILES invocation.
29235         (EXTRA_DIST): Remove csharpexec.sh.in.
29236
29237 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
29238
29239         Sync from coreutils.
29240
29241         Add POSIX ACL support
29242         * lib/acl.h (copy_acl, set_acl): Add declarations.
29243         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
29244         systems other than Linux.
29245         (chmod_or_fchmod): New function: use fchmod when possible,
29246         and chmod otherwise.
29247         (file_has_acl): Add a POSIX ACL implementation, with a
29248         Linux-specific subcase.
29249         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
29250         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
29251         acls are unsupported.
29252         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
29253         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
29254         are unsupported.
29255
29256 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
29257
29258         Sync from coreutils.
29259         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
29260
29261 2006-01-07  Bruno Haible  <bruno@clisp.org>
29262
29263         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
29264         gl_EARLY.
29265
29266 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
29267
29268         * lib/strftime.c (tzname): Don't declare if it is already #defined.
29269         Problem reported for Mingw by Mark Junker.
29270
29271 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
29272
29273         * README: Gnulib normally doesn't generate a tarball.
29274
29275 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
29276
29277         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
29278         long int, not int, for nanosecond counts, so that people who are
29279         used to POSIX struct timespec won't be surprised.  Reported by Jim
29280         Meyering.
29281
29282 2005-12-28  Bruno Haible  <bruno@clisp.org>
29283
29284         * build-aux/config.rpath: Update from GNU gettext.
29285
29286 2005-12-16  Jim Meyering  <jim@meyering.net>
29287
29288         * modules/fprintftime: New module.
29289         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
29290
29291 2005-12-16  Jim Meyering  <jim@meyering.net>
29292
29293         * m4/fprintftime.m4: New file.
29294
29295 2005-12-16  Jim Meyering  <jim@meyering.net>
29296
29297         * lib/fprintftime.c, lib/fprintftime.h: New files.
29298
29299 2005-12-15  Simon Josefsson  <jas@extundo.com>
29300
29301         * modules/socklen (configure.ac): Fix M4 macro name, to align with
29302         new m4/socklen.m4.
29303
29304 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
29305
29306         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
29307         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
29308
29309 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
29310
29311         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
29312         * lib/argp-help.c (fill_in_uparams): Check if the constructed
29313         struct uparams is valid. Fall back to the default values if it is
29314         not.
29315
29316 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
29317
29318         * modules/argp (Files): Add argp-pin.c
29319         (Depends-on): dirname
29320         (lib_SOURCES): Add argp-pin.c
29321
29322 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
29323
29324         * m4/argp.m4:  Check if program_invocation_name and
29325         program_invocation_short_name are declared and define appropriate
29326         macros if they are not.
29327
29328 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
29329
29330         * lib/argp-help.c (__argp_base_name): New function
29331         (__argp_short_program_name): Rewrite using __argp_base_name
29332         * lib/argp-namefrob.h: Define program_invocation_name and
29333         program_invocation_short_name if requested
29334         (__argp_base_name): Add prototype
29335         * lib/argp-parse.c (argp_def): Use gettext wrappers
29336         (argp_default_parser): Use __argp_base_name
29337         * lib/argp-pin.c: New file. Defines program_invocation_name and
29338         program_invocation_short_name on systems that lack them.
29339
29340 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
29341
29342         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
29343         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
29344         porting problem reported by Georg Schwarz in
29345         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
29346
29347 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
29348
29349         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
29350         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
29351         porting problem reported by Georg Schwarz in
29352         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
29353
29354 2005-12-05  Bruno Haible  <bruno@clisp.org>
29355
29356         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
29357         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
29358         Reported by Mark Junker <mjscod@gmx.de>.
29359
29360 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
29361
29362         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
29363         Use implementation from Albert Chin, with some
29364         comments/corrections by Stepan Kasal and myself.
29365
29366 2005-12-02  Bruno Haible  <bruno@clisp.org>
29367
29368         * gnulib-tool (func_import): Accept GPLed build tool modules when
29369         --lgpl is given.
29370         * modules/csharpcomp-script: New file.
29371         * modules/csharpcomp: Depend on it.
29372         * modules/javacomp-script: New file.
29373         * modules/javacomp: Depend on it.
29374         Suggested by Simon Josefsson.
29375
29376 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
29377
29378         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
29379         statement, to work around an HP-UX 10.20 compiler bug reported by
29380         Peter O'Gorman.
29381
29382 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
29383
29384         * modules/savedir (Depends-on): Add openat.
29385
29386 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
29387
29388         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
29389         (uintmax_t) [defined uintmax_t]: Do not declare.
29390         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
29391         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
29392         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
29393         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
29394         sake of portability to weird hosts that C allows (though we don't
29395         know of any practical examples).
29396
29397         * lib/savedir.h (fdsavedir): New decl.
29398         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
29399         contains most of the former guts of savedir.
29400         (savedir): Use savedirstream.
29401         Include "openat.h".
29402
29403 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
29404
29405         * modules/obstack (Files): Add m4/ulonglong.m4.
29406         Problem reported by Davide Angelocola.
29407
29408 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
29409
29410         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
29411         coreutils no longer futzes with rounding modes.
29412
29413 2005-11-14  Jim Meyering  <jim@meyering.net>
29414
29415         * lib/mkstemp-safer.c: Include <config.h>, required for possible
29416         replacement of mkstemp.
29417
29418 2005-11-10  Simon Josefsson  <jas@extundo.com>
29419
29420         * lib/readline.c: Remove EOL.
29421
29422 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
29423
29424         * modules/gethrxtime (Depends-on): Add gettime.
29425
29426 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
29427
29428         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
29429         or gettimeofday; no longer needed.
29430
29431 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
29432
29433         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
29434         time business.
29435         (gethrxtime) [! (HAVE_NANOUPTIME
29436         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
29437         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
29438         our own approximation.
29439
29440 2005-11-08  Eric Blake  <ebb9@byu.net>
29441
29442         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
29443
29444 2005-11-08  Eric Blake  <ebb9@byu.net>
29445
29446         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
29447
29448 2005-11-04  Bruno Haible  <bruno@clisp.org>
29449
29450         * gnulib-tool: Implement --update mode.
29451
29452 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
29453
29454         Fix porting problem reported by Theodoros V. Kalamatianos.
29455         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
29456         Don't assume that futimes failing means we must fail.
29457
29458 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
29459
29460         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
29461         variables to suggest the intended function of the PATH_MAX check.
29462
29463 2005-10-30  Kean Johnston  <jkj@sco.com>
29464
29465         Trivial changes to support SCO systems.
29466         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
29467         as PATH_MAX.
29468         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
29469         where __ptr is null when no I/O is pending.
29470
29471 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
29472
29473         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
29474         leave errno alone.  Problem reported by Dmitry V. Levin.
29475
29476 2005-10-28  Simon Josefsson  <jas@extundo.com>
29477
29478         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
29479         Test more.
29480
29481         * tests/test-gc-md2.c, tests/test-md2.c: New files.
29482
29483         * modules/md2, modules/md2-tests: New files.
29484
29485 2005-10-28  Simon Josefsson  <jas@extundo.com>
29486
29487         * m4/inet_ntop.m4: More tests.
29488
29489         * m4/gc-md2.m4, md2.m4: New file.
29490
29491 2005-10-28  Simon Josefsson  <jas@extundo.com>
29492
29493         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
29494         "restrict" keywords, as per POSIX.  Protect the function
29495         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
29496         Don't use K&R prototypes.  Check the sprintf return values.
29497         Re-define EAFNOSUPPORT if not present.  Indent.
29498
29499         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
29500         suggested by Bruno Haible <bruno@clisp.org>.
29501
29502         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
29503
29504         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
29505
29506         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
29507         libgcrypt).
29508
29509         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
29510
29511         * lib/md2.h, lib/md2.c: New files.
29512
29513 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
29514
29515         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
29516         errno alone.  Problem reported by Frederic Jolliton.
29517
29518 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
29519
29520         * modules/verify (License): Change from GPL to LGPL.  This is a
29521         tiny module and there are apparently near-equivalents that are
29522         under the BSD license.
29523
29524 2005-10-24  Simon Josefsson  <jas@extundo.com>
29525
29526         * modules/sha1: Relicense to LGPL.
29527
29528 2005-10-24  Simon Josefsson  <jas@extundo.com>
29529
29530         * lib/md4.h: Shrink buffer size, now that we changed the type.
29531
29532 2005-10-23  Simon Josefsson  <jas@extundo.com>
29533
29534         * gnulib-tool (func_import): Fix --tests-base.
29535
29536 2005-10-22  Simon Josefsson  <jas@extundo.com>
29537
29538         * modules/arcfour (Depends-on): Need stdint.
29539
29540 2005-10-22  Simon Josefsson  <jas@extundo.com>
29541
29542         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
29543         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
29544
29545 2005-10-22  Simon Josefsson  <jas@extundo.com>
29546
29547         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
29548         suggested by Bruno Haible <bruno@clisp.org>.
29549
29550 2005-10-22  Simon Josefsson  <jas@extundo.com>
29551
29552         * lib/crc.h: Include stddef.h, for size_t.
29553
29554 2005-10-22  Simon Josefsson  <jas@extundo.com>
29555
29556         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
29557         arcfour_context struct (simplify test vector testing in GNU
29558         Shishi).
29559
29560 2005-10-21  Simon Josefsson  <jas@extundo.com>
29561
29562         * modules/des, modules/des-tests: New files.
29563
29564         * modules/gc-des, modules/gc-des-tests: New files.
29565
29566         * tests/test-des.c, tests/test-gc-des.c: New file.
29567
29568 2005-10-21  Simon Josefsson  <jas@extundo.com>
29569
29570         * modules/arctwo, modules/arctwo-tests: New files.
29571
29572         * tests/test-arctwo.c: New file.
29573
29574         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
29575
29576         * tests/test-gc-arctwo.c: New file.
29577
29578 2005-10-21  Simon Josefsson  <jas@extundo.com>
29579
29580         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
29581         Bruno Haible <bruno@clisp.org>.
29582
29583         * m4/gc-des.m4: New file.
29584
29585 2005-10-21  Simon Josefsson  <jas@extundo.com>
29586
29587         * m4/arctwo.m4: New file.
29588
29589         * m4/gc-arctwo.m4: New file.
29590
29591 2005-10-21  Simon Josefsson  <jas@extundo.com>
29592
29593         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
29594         block.
29595
29596 2005-10-21  Simon Josefsson  <jas@extundo.com>
29597
29598         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
29599         <bruno@clisp.org>.
29600
29601         * lib/hmac-sha1.c (hmac_sha1): Likewise.
29602
29603         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
29604         Bruno Haible <bruno@clisp.org>.
29605
29606         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
29607         <bruno@clisp.org>.
29608
29609 2005-10-21  Simon Josefsson  <jas@extundo.com>
29610
29611         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
29612
29613 2005-10-21  Simon Josefsson  <jas@extundo.com>
29614
29615         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
29616
29617 2005-10-21  Simon Josefsson  <jas@extundo.com>
29618
29619         * lib/des.h, lib/des.c: New files.
29620
29621         * lib/gc-gnulib.c: Support DES.c
29622
29623 2005-10-21  Simon Josefsson  <jas@extundo.com>
29624
29625         * lib/arctwo.h, lib/arctwo.c: New files.
29626
29627         * lib/gc-gnulib.c: Support ARCTWO.
29628
29629 2005-10-21  Simon Josefsson  <jas@extundo.com>
29630
29631         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
29632         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29633
29634 2005-10-21  Simon Josefsson  <jas@extundo.com>
29635
29636         * gnulib-tool (func_import, func_create_testdir): Define automake
29637         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
29638         Makefile.am snippet),
29639         suggested by Bruno Haible <bruno@clisp.org>.
29640
29641         * modules/gc (Makefile.am): Use it.
29642
29643 2005-10-21  Bruno Haible  <bruno@clisp.org>
29644
29645         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
29646         patch.
29647
29648 2005-10-19  Simon Josefsson  <jas@extundo.com>
29649
29650         * tests/test-gc-rijndael.c: New file.
29651
29652         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
29653
29654 2005-10-19  Simon Josefsson  <jas@extundo.com>
29655
29656         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
29657         interface too.
29658
29659 2005-10-19  Simon Josefsson  <jas@extundo.com>
29660
29661         * tests/test-gc-arcfour.c: New file.
29662
29663         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
29664
29665 2005-10-19  Simon Josefsson  <jas@extundo.com>
29666
29667         * modules/gc-md4, modules/gc-md4-tests: New file.
29668
29669         * tests/test-gc-md4.c: New file.
29670
29671 2005-10-19  Simon Josefsson  <jas@extundo.com>
29672
29673         * m4/gc-md4.m4: New file.
29674
29675 2005-10-19  Simon Josefsson  <jas@extundo.com>
29676
29677         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
29678         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
29679         <kasal@ucw.cz>.
29680
29681 2005-10-19  Simon Josefsson  <jas@extundo.com>
29682
29683         * m4/gc-arcfour.m4: New file.
29684
29685         * m4/gc-rijndael.m4: New file.
29686
29687 2005-10-19  Simon Josefsson  <jas@extundo.com>
29688
29689         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
29690
29691 2005-10-19  Simon Josefsson  <jas@extundo.com>
29692
29693         * lib/gc-gnulib.c: Support ARCFOUR.
29694
29695 2005-10-19  Simon Josefsson  <jas@extundo.com>
29696
29697         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
29698         support.
29699
29700         * lib/gc.h: Add ECB enum type.
29701
29702         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
29703
29704 2005-10-18  Simon Josefsson  <jas@extundo.com>
29705
29706         * tests/test-md5.c: New file.
29707
29708         * modules/md5-tests: New file.
29709
29710 2005-10-18  Simon Josefsson  <jas@extundo.com>
29711
29712         * tests/test-md4.c: New file.
29713
29714         * modules/md4, modules/md4-tests: New files.
29715
29716 2005-10-18  Simon Josefsson  <jas@extundo.com>
29717
29718         * m4/md4.m4: New file.
29719
29720 2005-10-18  Simon Josefsson  <jas@extundo.com>
29721
29722         * lib/md4.h, lib/md4.c: New files, based on md5.?.
29723
29724 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
29725
29726         * gnulib-tool (func_create_testdir): Omit the second check whether
29727         BUILT_SOURCES in nonempty.
29728
29729 2005-10-17  Simon Josefsson  <jas@extundo.com>
29730
29731         * tests/test-rijndael.c: New file.
29732
29733 2005-10-17  Simon Josefsson  <jas@extundo.com>
29734
29735         * modules/sha1: Depend on stdint instead of md5.
29736
29737         * modules/md5: Depend on stdint, remove uint32_t.
29738
29739 2005-10-17  Simon Josefsson  <jas@extundo.com>
29740
29741         * modules/gc-sha1-tests: New file.
29742
29743         * tests/test-gc-sha1.c: New file.
29744
29745 2005-10-17  Simon Josefsson  <jas@extundo.com>
29746
29747         * m4/md5.m4: Remove call to uint32_t.m4.
29748
29749 2005-10-17  Simon Josefsson  <jas@extundo.com>
29750
29751         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
29752
29753         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
29754         md5.h.
29755
29756         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
29757
29758         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
29759
29760 2005-10-17  Simon Josefsson  <jas@extundo.com>
29761
29762         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
29763
29764 2005-10-17  Simon Josefsson  <jas@extundo.com>
29765
29766         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
29767
29768 2005-10-17  Simon Josefsson  <jas@extundo.com>
29769
29770         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
29771
29772         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
29773
29774 2005-10-17  Bruno Haible  <bruno@clisp.org>
29775
29776         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
29777         that it can also be used in a test.
29778
29779 2005-10-16  Bruno Haible  <bruno@clisp.org>
29780
29781         * gnulib-tool (func_emit_tests_Makefile_am): Also define
29782         TESTS_ENVIRONMENT, so that individual tests can augment it.
29783
29784         * gnulib-tool (func_create_testdir): Use an intermediate target for
29785         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
29786         macros, like $(ALLOCA_H), which cannot be passed through the command
29787         line.
29788
29789 2005-10-15  Simon Josefsson  <jas@extundo.com>
29790
29791         * modules/rijndael-tests: New file.
29792
29793         * modules/rijndael: New file.
29794
29795 2005-10-15  Simon Josefsson  <jas@extundo.com>
29796
29797         * m4/rijndael.m4: New file.
29798
29799 2005-10-15  Simon Josefsson  <jas@extundo.com>
29800
29801         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
29802
29803         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
29804
29805 2005-10-14  Simon Josefsson  <jas@extundo.com>
29806
29807         * tests/test-arcfour.c: New file.
29808
29809         * modules/arcfour, modules/arcfour-tests: New files.
29810
29811 2005-10-14  Simon Josefsson  <jas@extundo.com>
29812
29813         * m4/arcfour.m4: New file.
29814
29815 2005-10-14  Simon Josefsson  <jas@extundo.com>
29816
29817         * lib/arcfour.h, lib/arcfour.c: New files.
29818
29819 2005-10-14  Roland McGrath  <roland@redhat.com>
29820
29821         Import from libc.  [BZ #1331]
29822         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
29823         macro argument.
29824         Reported by Matej Vela <vela@debian.org>.
29825
29826 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
29827
29828         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
29829         include <wchar.h>; no longer needed.
29830
29831 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
29832
29833         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
29834
29835 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
29836         and  Ulrich Drepper  <drepper@redhat.com>
29837
29838         Import from libc.
29839         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
29840         instead of inline stream orientation test and two separate
29841         function calls.  Pay no attention to USE_IN_LIBIO.
29842
29843 2005-10-13  Simon Josefsson  <jas@extundo.com>
29844
29845         * modules/gc-hmac-md5-tests: New file.
29846
29847         * tests/test-gc-hmac-sha1.c: New file.
29848
29849         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
29850
29851         * modules/gc-hmac-md5-tests: New file.
29852
29853         * tests/test-gc-md5.c: New file.
29854
29855         * modules/gc-md5-tests: New file.
29856
29857 2005-10-13  Simon Josefsson  <jas@extundo.com>
29858
29859         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
29860         Move memory allocation outside of loop.
29861
29862 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
29863
29864         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
29865         intermediate directory is in a read-only file system.  Problem
29866         reported by Eric Blake.
29867
29868 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
29869
29870         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
29871
29872 2005-10-12  Simon Josefsson  <jas@extundo.com>
29873
29874         * tests/test-hmac-sha1.c: New file.
29875
29876         * modules/hmac-sha1-tests: New file.
29877
29878         * modules/hmac-sha1: New file.
29879
29880 2005-10-12  Simon Josefsson  <jas@extundo.com>
29881
29882         * modules/gc-sha1: New file.
29883
29884 2005-10-12  Simon Josefsson  <jas@extundo.com>
29885
29886         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
29887
29888         * tests/test-gc-pbkdf2-sha1.c: New file.
29889
29890 2005-10-12  Simon Josefsson  <jas@extundo.com>
29891
29892         * modules/gc-md5, modules/gc-hmac-md5: New files.
29893
29894         * modules/gc (Files): Remove md5, memxor and hmac files.
29895
29896 2005-10-12  Simon Josefsson  <jas@extundo.com>
29897
29898         * m4/gc-pbkdf2-sha1.m4: New file.
29899
29900         * m4/gc-hmac-sha1.m4: New file.
29901
29902         * m4/gc-sha1: New file.
29903
29904         * m4/hmac-sha1.m4: New file.
29905
29906 2005-10-12  Simon Josefsson  <jas@extundo.com>
29907
29908         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
29909
29910         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
29911
29912 2005-10-12  Simon Josefsson  <jas@extundo.com>
29913
29914         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
29915         suggested by Bruno Haible <bruno@clisp.org>.
29916
29917 2005-10-12  Simon Josefsson  <jas@extundo.com>
29918
29919         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
29920
29921 2005-10-12  Simon Josefsson  <jas@extundo.com>
29922
29923         * lib/gc-pbkdf2-sha1.c: New file.
29924
29925         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
29926
29927 2005-10-12  Simon Josefsson  <jas@extundo.com>
29928
29929         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
29930
29931         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
29932
29933 2005-10-12  Simon Josefsson  <jas@extundo.com>
29934
29935         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
29936         GC_USE_HMAC_MD5, respectively.
29937
29938         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
29939         (gc_md5): Fix typo.
29940
29941         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
29942
29943         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
29944
29945         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
29946
29947 2005-10-12  Bruno Haible  <bruno@clisp.org>
29948
29949         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
29950         Reported by Stepan Kasal <kasal@ucw.cz>.
29951
29952 2005-10-11  Simon Josefsson  <jas@extundo.com>
29953
29954         * tests/test-crc.c: New file.
29955
29956         * modules/crc, modules/crc-tests: New files.
29957
29958 2005-10-11  Simon Josefsson  <jas@extundo.com>
29959
29960         * m4/crc.m4: New file.
29961
29962 2005-10-11  Simon Josefsson  <jas@extundo.com>
29963
29964         * lib/gc.h: Add gc_hash and gc_hash_buffer.
29965
29966         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
29967
29968         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
29969
29970 2005-10-11  Simon Josefsson  <jas@extundo.com>
29971
29972         * lib/crc.h, lib/crc.c: New files.
29973
29974         * lib/gc.h (gc_hash_buffer): Add doc.
29975
29976 2005-10-11  Bruno Haible  <bruno@clisp.org>
29977
29978         * modules/c-strcasestr: New file.
29979         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
29980
29981 2005-10-11  Bruno Haible  <bruno@clisp.org>
29982
29983         * modules/c-strcase: New file.
29984         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
29985
29986 2005-10-11  Bruno Haible  <bruno@clisp.org>
29987
29988         * lib/strcasecmp.c: Include limits.h.
29989         (strcasecmp): Avoid integer overflow on exotic platforms.
29990         * lib/strncasecmp.c: Include limits.h.
29991         (strncasecmp): Avoid integer overflow on exotic platforms.
29992         Reported by Paul Eggert.
29993
29994 2005-10-11  Bruno Haible  <bruno@clisp.org>
29995
29996         * lib/c-strcasestr.h: New file, from GNU gettext.
29997         * lib/c-strcasestr.c: New file, from GNU gettext.
29998
29999 2005-10-11  Bruno Haible  <bruno@clisp.org>
30000
30001         * lib/c-strcase.h: New file, from GNU gettext.
30002         * lib/c-strcasecmp.c: New file, from GNU gettext.
30003         * lib/c-strncasecmp.c: New file, from GNU gettext.
30004
30005 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
30006
30007         * modules/mempcpy (License): GPL -> LGPL.
30008         * modules/strchrnul (License): Likewise.
30009         * modules/sysexits (License): Likewise.
30010
30011 2005-10-08  Simon Josefsson  <jas@extundo.com>
30012
30013         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
30014
30015 2005-10-07  Simon Josefsson  <jas@extundo.com>
30016
30017         * m4/memxor.m4: Remove gl_C_RESTRICT call.
30018
30019 2005-10-06  Simon Josefsson  <jas@extundo.com>
30020
30021         * tests/test-hmac-md5.c: New file.
30022
30023         * modules/hmac-md5-tests: New file.
30024
30025         * modules/hmac-md5: New file.
30026
30027 2005-10-06  Simon Josefsson  <jas@extundo.com>
30028
30029         * m4/hmac-md5.m4: New file.
30030
30031         * m4/memxor.m4: Require gl_C_RESTRICT.
30032
30033 2005-10-06  Simon Josefsson  <jas@extundo.com>
30034
30035         * lib/memxor.c (memxor): Avoid casts and warnings.
30036
30037 2005-10-06  Simon Josefsson  <jas@extundo.com>
30038
30039         * lib/hmac-md5.c: New file.
30040
30041         * lib/hmac.h: New file.
30042
30043 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
30044
30045         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
30046         promotes to int, not unsigned int, to catch the AIX 5.3
30047         compiler bug.
30048
30049 2005-10-05  Simon Josefsson  <jas@extundo.com>
30050
30051         * modules/memxor: New file.
30052
30053         * modules/iconv (Files): Move config.rpath to havelib, it is used
30054         there.
30055
30056         * modules/havelib (Files): Add config.rpath.
30057
30058 2005-10-05  Simon Josefsson  <jas@extundo.com>
30059
30060         * m4/memxor.m4: New file.
30061
30062 2005-10-05  Simon Josefsson  <jas@extundo.com>
30063
30064         * lib/memxor.c (memxor): Fix compiler error.
30065
30066         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
30067         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
30068
30069         * lib/memxor.h, lib/memxor.c: New files.
30070
30071         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
30072         we assume all systems have it, suggested by Jim Meyering
30073         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
30074         any systems lack sys/socket.h; mingw32 is known to lack it, but we
30075         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
30076         same reasons.
30077
30078 2005-10-05  Simon Josefsson  <jas@extundo.com>
30079
30080         * config/srclist.txt: Add glibc bug 1423 for md5.h.
30081
30082 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
30083
30084         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
30085         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
30086         needed, since the source code now assumes these .h files.
30087
30088 2005-10-05  Derek Price  <derek@ximbiot.com>
30089
30090         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
30091
30092 2005-10-05  Bruno Haible  <bruno@clisp.org>
30093
30094         * modules/stdint (License): Change to LGPL.
30095
30096 2005-10-04  Simon Josefsson  <jas@extundo.com>
30097
30098         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
30099         D. Baushke" <mdb@gnu.org>.
30100
30101 2005-10-04  Bruno Haible  <bruno@clisp.org>
30102
30103         * lib/verify.h (verify_true): Provide alternative definition for C++.
30104
30105 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
30106
30107         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
30108         (SSIZE_MAX): New macro, if not already defined.
30109         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
30110         than 2 GiB.
30111
30112 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
30113
30114         Sync from coreutils.
30115         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
30116         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
30117         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
30118         ULLONG_MAX doesn't work with 2.7.2.1.
30119
30120 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
30121
30122         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
30123         From Ben Pfaff.
30124
30125         * modules/exclude (Depends-on): Depend on verify.
30126         * modules/strtoimax (Depends-on): Likewise.
30127         * modules/utimecmp (Depends-on): Likewise.
30128
30129 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
30130
30131         * lib/exclude.c: Include verify.h.
30132         (verify): Remove.  All callers changed to use verify.h's version.
30133         * lib/strtoimax.c: Likewise.
30134         * lib/utimecmp.c: Likewis.e
30135
30136         Sync from coreutils.
30137         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
30138         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
30139         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
30140         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
30141         bother returning ENOSYS if settimeofday or stime fails; just let
30142         them return whatever errno they want to return.
30143         * lib/utimens.c: Include unistd.h, for dup2.
30144         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
30145         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
30146
30147 2005-10-02  Jim Meyering  <jim@meyering.net>
30148
30149         Sync from coreutils.
30150         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
30151         from glibc-2.2.5 that fails for read-only files.
30152
30153 2005-10-02  Jim Meyering  <jim@meyering.net>
30154
30155         Sync from coreutils.
30156         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
30157         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
30158         `#if HAVE_CONFIG_H'.
30159         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
30160         Remove AT_FDCWD test.
30161         Do not consume the fd unless successful.
30162         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
30163         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
30164         block, so that we don't even try to compile it if settimeofday is
30165         available.  This works around a compilation failure on OSF1 V5.1,
30166         due to stime requiring a `long int*' while tv_sec is `int'.
30167
30168 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
30169
30170         Sync from coreutils.
30171         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
30172         against `yes', rather than just testing for nonempty.
30173
30174 2005-10-01  Simon Josefsson  <jas@extundo.com>
30175
30176         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
30177         and Darwin.
30178
30179         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
30180         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
30181         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
30182         freeaddrinfo and gai_strerror are declared by the POSIX headers.
30183         Check if struct addrinfo is declared.
30184
30185 2005-10-01  Simon Josefsson  <jas@extundo.com>
30186
30187         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
30188         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
30189         AI_* and EAI_* definitions.  Protect function declarations.
30190
30191 2005-10-01  Jim Meyering  <jim@meyering.net>
30192
30193         Sync from coreutils.
30194
30195         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
30196         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
30197         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
30198         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
30199         in the inet and nsl libraries.  Required on Solaris 5.7.
30200
30201 2005-10-01  Jim Meyering  <jim@meyering.net>
30202
30203         Sync from coreutils.
30204         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
30205         in the inet and nsl libraries.  Required on Solaris 5.7.
30206
30207 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
30208
30209         * lib/getdelim.c (getdelim): Remove unused variables.
30210
30211 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
30212
30213         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
30214         so that the code works even with ancient cpp.  Portability problem
30215         with GCC 2.7.2.1 reported by Thomas M.Ott.
30216
30217 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
30218
30219         * modules/regex (Depends-on): Add strcase.
30220
30221         * modules/gethostname (Licence): Change from GPL to LGPL, since
30222         gethostname.c is a trivial implementation of a standard library
30223         function.
30224         * modules/poll (License): Change from GPL to LGPL, since it's
30225         derived from LGPL code.
30226
30227 2005-09-27  Jim Meyering  <jim@meyering.net>
30228
30229         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
30230         HAVE_CONFIG_H.
30231
30232         * lib/intprops.h (signed_type_or_expr__): Define.
30233         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
30234         for unsigned types.
30235
30236 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
30237
30238         * lib/verify.h (verify_expr): Remove, replacing with:
30239         (verify_true): New macro that returns true instead of void.
30240         (verify_type__): Remove.
30241         (verify): Use verify_true rather than verify_type__.
30242
30243 2005-09-26  Bruno Haible  <bruno@clisp.org>
30244
30245         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
30246         is necessary.
30247         (lib_SOURCES): Remove mbchar.c.
30248         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
30249         (Files): Add m4/mbrtowc.m4.
30250         * modules/mbiter: Likewise.
30251         * modules/mbuiter: Likewise.
30252
30253 2005-09-26  Bruno Haible  <bruno@clisp.org>
30254
30255         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
30256         compile mbchar.c if they are not both present.
30257         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
30258         * m4/mbiter.m4 (gl_MBITER): Likewise.
30259         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
30260         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
30261         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
30262
30263 2005-09-25  Jim Meyering  <jim@meyering.net>
30264
30265         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
30266         also uses socklen_t.
30267
30268 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
30269
30270         * lib/utimens.c (ENOSYS): Define if not already defined.
30271         (futimens): Support having a null PATH if the file descriptor
30272         is nonnegative.
30273
30274         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
30275         Remove.
30276         (__attribute): Define to empty unless GCC 3.1 or later.
30277         This works around a core dump on OpenBSD 3.4, which has GCC
30278         2.95.3, which dumps core when given __attribute__(()).  It also
30279         simplifies other tests, since we really don't want to bother with
30280         worrying about which ancient version of GCC supported what.
30281         Original problem reported by Yoann Vandoorselaere, with part of
30282         the fix suggested by Derek Price.
30283
30284 2005-09-24  Jim Meyering  <jim@meyering.net>
30285
30286         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
30287         so we can once again use a positive bitfield width of 1 -- now we
30288         don't have to explain why we were using a bitfield width of 2.
30289
30290 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
30291
30292         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
30293         and similarly for the other external symbols.  Problem reported
30294         by James Gallager.
30295
30296         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
30297         bug reported by Jim Meyering.
30298
30299         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
30300         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
30301         not needed, since socklen is a prerequisite module.
30302
30303 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
30304
30305         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
30306         Problem reported by Eric Blake.
30307         (getaddrinfo): Initialize se so that it's not garbage.
30308         Redo internal storage allocation so that it doesn't make unportable
30309         assumptions about alignment.
30310         Fix a memory leak.
30311
30312         * lib/utimens.c (futimens): Use futimesat if available.
30313         Prefer it to futimes since it doesn't have the futimes bug.
30314
30315         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
30316         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
30317         Instead, declare a function that returns a pointer to an array,
30318         and use verify_type__ to declare the size of the array.
30319         Problem and germ of a solution reported by Bruno Haible.
30320         (verify_type__): Use 2, not 1, for bitfield size, to avoid
30321         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
30322
30323 2005-09-23  Jim Meyering  <jim@meyering.net>
30324
30325         Sync from coreutils.
30326         Correct build failure (socklen_t not defined) on at least
30327         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
30328         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
30329
30330 2005-09-23  Jim Meyering  <jim@meyering.net>
30331
30332         * modules/getaddrinfo (Depends-on): Add socklen.
30333
30334 2005-09-23  Bruno Haible  <bruno@clisp.org>
30335
30336         * tests/test-verify.c: New file.
30337
30338 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
30339
30340         Sync from coreutils.
30341
30342         * modules/argmatch (Depends-on): Add verify.
30343         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
30344         unistd-safer.
30345         * modules/save-cwd (Depends-on): Likewise.
30346
30347         * modules/openat (Files): Add lib/openat-die.c.
30348         (Depends-on): Remove error, exitfail.
30349         Add dirname.
30350
30351         * modules/verify: New file.
30352         * MODULES.html.sh (Diagnostics <assert.h>): New section,
30353         with "verify" module.
30354
30355 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
30356
30357         Sync from coreutils.
30358
30359         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
30360         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
30361         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
30362         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
30363         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
30364         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
30365         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
30366         Don't bother checking for string.h, stdlib.h, unistd.h.
30367         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
30368         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
30369         module's job.
30370         * m4/jm-macros.m4 (gl_MACROS): Likewise.
30371         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
30372
30373         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
30374         (gl_GETDATE): Use it.
30375
30376         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
30377
30378 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
30379
30380         Sync from coreutils.
30381
30382         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
30383         stat-time.h.
30384         * lib/argmatch.h: Include verify.h
30385         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
30386         (ARGMATCH_ASSERT): Remove; unused.
30387         * lib/canonicalize.c: Assume STDC_HEADERS.
30388         * lib/exclude.c: Include "strcase.h".
30389         * lib/regex_internal.h [!defined _LIBC]: Likewise.
30390         * lib/getusershell.c: Include stdio--.h rather than stdio.h
30391         and stdio-safer.h.
30392         (getusershell): Call fopen, not fopen_safer.
30393         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
30394         Do not include unistd-safer.h.
30395         (save_cwd): Don't call fd_safer; no longer needed
30396         now that we include fcntl--.h.
30397
30398         * lib/getdate.y (relative_time): New type.
30399         (RELATIVE_TIME_0): New constant.
30400         (parser_control): Use relative_time instead of doing it ourselves.
30401         (%union): Add new relative_time rel member.
30402         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
30403         Now typeless.
30404         (relunit, relunit_snumber): Now of type rel.
30405         (zone, rel, relunit, get_date): Adjust to above changes.
30406
30407         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
30408         Do not include unistd-safer.h.
30409         (getloadavg): Don't call fd_safer; no longer needed
30410         now that we include fcntl--.h.
30411
30412         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
30413         (make_dir_parents): Treat ENOSYS like EEXIST.
30414
30415         Improve quality of diagnostics on restore_cwd failure.
30416         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
30417         (make_dir_parents): Last arg is now int * (for errno), not bool *.
30418         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
30419         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
30420         each time through the loop.  Do not diagnose restore_cwd failure;
30421         that is the caller's job (and perhaps the caller does not care).
30422
30423         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
30424         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
30425         If the file already exists but is not a directory, don't bother
30426         to try to make its parents.
30427         Close potential file descriptor leak if we can't chdir("/") (!).
30428         Don't always return true if chdir($PWD) fails; return true only
30429         if the requested action was done successfully (except for the
30430         chdir($PWD)).
30431         Don't log final directory unless we actually made it.
30432         Refactor to avoid duplicate code to fix up permissions.
30433         Don't attempt to fix up parent permissions if chdir($PWD) fails.
30434
30435         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
30436         to make it a bit faster and (I hope) clearer.
30437         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
30438         Fix bug in formats like %2N.
30439
30440         * lib/verify.h: New file.
30441
30442 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
30443
30444         Sync from coreutils.
30445         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
30446
30447 2005-09-22  Jim Meyering  <jim@meyering.net>
30448
30449         Sync from coreutils.
30450
30451         * m4/lstat.m4 (gl_FUNC_LSTAT):
30452         Use AC_LIBSOURCES to require lstat.c and lstat.h.
30453         Remove obsolete comment.
30454         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
30455         * m4/xstrtod.m4: Likewise.
30456
30457         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
30458
30459 2005-09-22  Jim Meyering  <jim@meyering.net>
30460
30461         Sync from coreutils.
30462
30463         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
30464
30465         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
30466         the .tm_year member, since otherwise gcc-4.0 would now warn about
30467         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
30468
30469         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
30470         order to avoid an unsuppressible warning from gcc on 64-bit systems.
30471
30472         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
30473         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
30474         when run in a time zone for which daylight savings time is in effect
30475         for the starting date.
30476
30477         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
30478         stop us from restricting permissions of just-created absolute-named
30479         directories.
30480         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
30481         to restore initial working directory.
30482         * lib/mkdir-p.c (make_dir_parents): New parameter:
30483         different_working_dir, to tell caller if/when we change the working
30484         directory and are unable to return to the initial one.
30485         * lib/mkdir-p.h (make_dir_parents): Update prototype.
30486         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
30487         `return false'.  This fixes a bug introduced on 2004-07-30.
30488
30489         * lib/openat.c (fdopendir): Be sure to close the supplied
30490         file descriptor before returning.  This makes our replacement
30491         implementation a little closer to Solaris's, where fdopendir
30492         ties the file descriptor to the returned DIR* pointer.
30493         * lib/openat.c (unlinkat): New function.
30494         * lib/openat.h (unlinkat): Add prototype.
30495         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
30496         (openat_restore_fail): Rename from openat_restore_die.
30497         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
30498
30499         Provide an alternative to exiting immediately upon save_cwd or
30500         restore_cwd failure.  Now, an application can arrange e.g.,
30501         to perform a longjump in that case.
30502         * lib/openat.c: Include dirname.h.
30503         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
30504         (rpl_openat, fdopendir, fstatat): Call openat_save_die
30505         and openat_restore_die rather than calling error directly.
30506         Don't include "error.h" or "exitfail.h"; they're no longer needed.
30507
30508         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
30509         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
30510         define.
30511
30512         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
30513         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
30514                             int utc, int nanoseconds);
30515         Background:
30516         date should not have to allocate a megabyte of virtual memory to
30517         handle a format argument like +%1048575T.  When implemented with
30518         strftime, it must allocate such a buffer, use strftime to fill it
30519         in, print it, then free it.
30520         With fprintftime, it simply prints everything and exits.
30521         With no need for memory allocation, that's one fewer way to fail.
30522         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
30523         optional field width, not before, so we accept %9:z, not %:9z.
30524         (my_strftime): Be sure to use L_('x') for literals.
30525
30526         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
30527         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
30528         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
30529         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
30530         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
30531         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
30532         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
30533         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
30534         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
30535         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
30536         * lib/xgethostname.c, lib/xreadlink.c:
30537         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
30538
30539         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
30540         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
30541         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
30542         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
30543         and don't include <sys/file.h>).
30544
30545 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
30546
30547         Sync from coreutils.
30548
30549         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
30550         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
30551         [!LDAV_DONE]: Avoid unused variable warning.
30552
30553 2005-09-21  Bruno Haible  <bruno@clisp.org>
30554
30555         * lib/unicodeio.h (unicode_to_mb): New declaration.
30556
30557 2005-09-20  Derek Price  <derek@ximbiot.com>
30558
30559         * lib/getaddrinfo.c: Don't include <netdb.h> included from
30560         getaddrinfo.h.
30561
30562 2005-09-20  Bruno Haible  <bruno@clisp.org>
30563
30564         * gnulib-tool: Remove trailing slashes from the values specified for
30565         --source-base, --m4-base, --tests-base, --aux-dir.
30566         Suggested by Simon Josefsson <jas@extundo.com>.
30567
30568 2005-09-20  Bruno Haible  <bruno@clisp.org>
30569
30570         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
30571         func_modules_to_filelist, func_import, func_create_testdir): Make all
30572         sorting results locale-independent, so that gnulib-cache.m4 doesn't
30573         change when gnulib-tool is invoked in a different locale.
30574
30575 2005-09-19  Simon Josefsson  <jas@extundo.com>
30576
30577         * m4/socklen.m4: Fix typo.
30578
30579 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30580
30581         Use a consistent style for including <config.h>.
30582         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
30583         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
30584         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
30585         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
30586         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
30587         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
30588         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
30589         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
30590         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
30591         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
30592         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
30593         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
30594         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
30595         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
30596         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
30597         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
30598         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
30599         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
30600         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
30601         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
30602         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
30603         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
30604         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
30605         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
30606         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
30607         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
30608         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
30609         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
30610         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
30611         lib/xstrtoumax.c, lib/yesno.c:
30612         Standardize inclusion of config.h.
30613         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
30614         lib/inttostr.h:  Removed inclusion of config.h from header files.
30615         * lib/inttostr.c:  Adjusted in-tree users.
30616         * lib/timespec.h: Remove superfluous warning to include config.h.
30617         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
30618         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
30619         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
30620         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
30621         config.h with HAVE_CONFIG_H.
30622
30623 2005-09-19  Jim Meyering  <jim@meyering.net>
30624
30625         * modules/pathmax (License): Change to LGPL.
30626
30627 2005-09-19  Derek Price  <derek@ximbiot.com>
30628
30629         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
30630
30631 2005-09-19  Bruno Haible  <bruno@clisp.org>
30632
30633         * gnulib-tool (import): Provide default for --tests-base.
30634
30635 2005-09-19  Bruno Haible  <bruno@clisp.org>
30636
30637         * doc/quote.texi: New file, extracted from gnulib.texi.
30638         * doc/ctime.texi: New file, extracted from gnulib.texi.
30639         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
30640         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
30641         * doc/gnulib.texi: Include them.
30642
30643 2005-09-18  Bruno Haible  <bruno@clisp.org>
30644
30645         Portability fix.
30646         * gnulib-tool (func_readlink): New function.
30647         (func_ln_if_changed): Use it.
30648
30649 2005-09-18  Bruno Haible  <bruno@clisp.org>
30650
30651         * gnulib-tool: Support --with-tests also with --import.
30652         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
30653         (func_import): Use variables $testsbase and $inctests. Emit a
30654         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
30655         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
30656         SUBDIRS += $testsdir.
30657         (func_create_testdir): Update.
30658
30659 2005-09-18  Bruno Haible  <bruno@clisp.org>
30660
30661         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
30662         instead of $dry_run.
30663         (func_cp_if_changed, func_mv_if_changed): Remove functions.
30664         (func_ln_if_changed): Don't handle dry-run here.
30665         (func_import): In dry-run mode, detect more precisely which actions
30666         would be performed, and don't use "...ing" verbs.
30667
30668 2005-09-18  Bruno Haible  <bruno@clisp.org>
30669
30670         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
30671         (func_import): Use join on two temporary files instead of three nested
30672         loops, in order to determine which files are new or old.
30673
30674 2005-09-18  Bruno Haible  <bruno@clisp.org>
30675
30676         * gnulib-tool (func_import): Comment out code that spits out the
30677         new files with --dry-run.
30678
30679 2005-09-18  Bruno Haible  <bruno@clisp.org>
30680
30681         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
30682
30683 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
30684
30685         * lib/stat-time.h: New file.
30686         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
30687         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
30688         in a different way.
30689         (timespec_cmp): New function.
30690         * lib/utimecmp.c: Include stat-time.h.
30691         (SYSCALL_RESOLUTION): Depend on whether various struct stat
30692         members exist, not on the obsolescent ST_MTIM_NSEC.
30693         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
30694
30695 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
30696
30697         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
30698
30699 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
30700
30701         * MODULES.html.sh (File system functions): Add stat-time.
30702         * modules/stat-time: New file.
30703         * modules/timespec (Files): Remove m4/st_mtim.m4; this
30704         is now done in a different way, by the stat-time module.
30705         * modules/utimecmp (Depends-on): Add stat-time.
30706
30707 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
30708
30709         * m4/st_mtim.m4: Remove.  Superseded by...
30710         * m4/stat-time.m4: New file.
30711         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
30712         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
30713
30714 2005-09-15  Derek Price  <derek@ximbiot.com>
30715
30716         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
30717
30718 2005-09-15  Derek Price  <derek@ximbiot.com>
30719
30720         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
30721         * lib/regex_internal.c: Ditto, using this...
30722         (__GNUC_PREREQ): ...new macro.
30723         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
30724         using...
30725         (__GNUC_PREREQ): ...this new macro.
30726
30727         * lib/strstr.h: Include string.h. Define strstr as a macro here.
30728
30729 2005-09-15  Derek Price  <derek@ximbiot.com>
30730             Paul Eggert  <eggert@cs.ucla.edu>
30731
30732         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
30733         changes, consolidating in...
30734         * lib/regex_internal.h: ...this file.
30735
30736 2005-09-13  Jim Meyering  <jim@meyering.net>
30737
30738         * lib/canon-host.c: Filter through gnu indent and reword comments
30739         slightly.
30740         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
30741
30742 2005-09-13  Derek Price  <derek@ximbiot.com>
30743
30744         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
30745         failure.
30746         Reported by Jim Meyering  <jim@meyering.net>.
30747
30748 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
30749
30750         * lib/base64.c: Typo.
30751         (base64_encode): Put b64str in initialized data section.
30752
30753 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
30754
30755         Merge glibc and coreutils changes into gnulib, plus a few
30756         extra fixes.
30757         * lib/md5.c: Use #error rather than a string.
30758         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
30759         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
30760         (__attribute__): Define to empty for non recent-GCC.
30761         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
30762         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
30763         Renamed from their non-__ counterparts, with new macros replacing
30764         them if not _LIBC.  Add __THROW attribute.
30765         (rol): Remove.
30766         (struct md5_ctx): Align buffer if using GCC.
30767         * lib/sha1.h (struct sha1_ctx): Likewise.
30768         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
30769         The old name was backwards.
30770         (NOTSWAP): Remove; not used.
30771         (rol): New macro, moved here from md5.h.
30772         (sha1_process_block): Remove a FIXME that doesn't make sense.
30773
30774 2005-09-12  Derek Price  <derek@ximbiot.com>
30775
30776         Return usable errors from canon-host.
30777         * lib/canon-host.h: New file.
30778         * lib/canon-host.c (canon_host): Wrap...
30779         (canon_host_r): ...this new function, which now relies exclusively on
30780         getaddrinfo.
30781         (ch_strerror): New function.
30782         (last_cherror): New global.
30783         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
30784         interface.
30785         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
30786         void *.
30787         (freeaddrinfo): Free ai->ai_canonname when set.
30788
30789 2005-09-12  Derek Price  <derek@ximbiot.com>
30790
30791         Make canon-host require getaddrinfo.
30792         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
30793         AC_LIBSOURCE canon-host.h.  Call...
30794         (gl_PREREQ_CANON_HOST): ...this new function, which requires
30795         gl_GETADDRINFO.
30796         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
30797
30798 2005-09-12  Derek Price  <derek@ximbiot.com>
30799
30800         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
30801         LGPL.
30802         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
30803
30804 2005-09-12  Derek Price  <derek@ximbiot.com>
30805
30806         * lib/gai_strerror.c: Include config.h when available.  Include
30807         getaddrinfo.h before other headers to test interface.
30808         Reported by Larry Jones <lawrence.jones@ugs.com>.
30809
30810 2005-09-12  Derek Price  <derek@ximbiot.com>
30811             Paul Eggert  <eggert@cs.ucla.edu>
30812
30813         * modules/glob (Files): Add glob-libc.h.
30814
30815 2005-09-12  Derek Price  <derek@ximbiot.com>
30816             Paul Eggert  <eggert@cs.ucla.edu>
30817
30818         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
30819         glob_.h, glob-libc.h.
30820         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
30821
30822 2005-09-12  Derek Price  <derek@ximbiot.com>
30823             Paul Eggert  <eggert@cs.ucla.edu>
30824
30825         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
30826         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
30827         protecting things that should be done only in gnulib contexts.
30828         * lib/glob_.h: New file, containing only the glob things needed for
30829         gnulib.
30830         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
30831         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
30832         (glob, globfree, glob_pattern_p): Now defined simply in terms of
30833         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
30834         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
30835         and to respect the namespace rules better.
30836
30837 2005-09-08  Simon Josefsson  <jas@extundo.com>
30838
30839         * modules/socklen: New file.
30840
30841 2005-09-08  Simon Josefsson  <jas@extundo.com>
30842
30843         * m4/socklen.m4: New file.
30844
30845 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
30846
30847         * modules/utimens (Files): Add m4/utimbuf.m4, since
30848         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
30849         Reported by Sergey Poznyakoff.
30850
30851 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
30852
30853         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
30854         definitions, since that's the preferred style in glibc.
30855         Fix a minor spacing issue, and update copyright notice to match
30856         glibc's.
30857
30858 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
30859
30860         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
30861
30862 2005-09-06  Simon Josefsson  <jas@extundo.com>
30863
30864         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
30865         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
30866
30867 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
30868
30869         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
30870         warning.
30871
30872 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
30873
30874         * config/srclist.txt: Add glibc bug 1302.
30875
30876 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
30877
30878         Change bitset word type from unsigned int to unsigned long int,
30879         as this has better performance on typical 64-bit hosts.
30880         Port bitset code to hosts with unusual word sizes.
30881         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
30882         (build_collating_symbol):
30883         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
30884         argument is a bitset.  This is merely a style issue, but it makes
30885         it clearer that an entire array is expected.
30886         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
30887         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
30888         Port to the case where bitset_word is not the same as unsigned int.
30889         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
30890         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
30891         Likewise.
30892         * lib/regexec.c (check_dst_limits_calc_pos_1,
30893         check_subexp_matching_top):
30894         (build_trtable, group_nodes_into_DFAstates):
30895         Likewise.
30896         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
30897         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
30898         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
30899         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
30900         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
30901         * lib/regcomp.c (optimize_subexps, lower_subexp):
30902         Work even if bitset_word has holes in its bitwise representation.
30903         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
30904         * lib/regexec.c (check_dst_limits_calc_pos_1,
30905         check_subexp_matching_top):
30906         Likewise.
30907         * lib/regex_internal.c (re_string_reconstruct):
30908         Don't assume UCHAR_MAX == 255.
30909         * lib/regex_internal.h (bitset_set_all): Likewise.
30910         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
30911         All uses changed.
30912         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
30913         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
30914         All uses changed.
30915         (BITSET_WORD_MAX): New macro.
30916         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
30917         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
30918         (bitset_empty, bitset_copy):
30919         Prefer sizeof (bitset) to multiplying it out ourselves.
30920         (bitset_not_merge): Remove; unused.
30921         (bitset_contain): Return bool, not unsigned int with one bit on.
30922         All callers changed.
30923         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
30924         alignment than re_node_set; do this by defining a new internal
30925         type struct dests_alloc and using it to allocate memory.
30926
30927 2005-09-05  Bruno Haible  <bruno@clisp.org>
30928
30929         * gnulib-tool (func_import): Fix comparison in handling of symbolic
30930         links.
30931
30932 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
30933
30934         * modules/size_max (Makefile.am): Add size_max.h
30935
30936 2005-09-04  Derek Price  <derek@ximbiot.com>
30937
30938         * gnulib-tool (func_import): Fix reversed $symbolic logic.
30939
30940 2005-09-03  Simon Josefsson  <jas@extundo.com>
30941
30942         * gnulib-tool: Fix typo.
30943
30944 2005-09-03  Simon Josefsson  <jas@extundo.com>
30945
30946         * config/srclist.txt: Add glibc bug 1293.
30947
30948 2005-09-03  Derek Price  <derek@ximbiot.com>
30949
30950         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
30951         From Larry Jones <lawrence.jones@ugs.com>.
30952
30953 2005-09-02  Simon Josefsson  <jas@extundo.com>
30954
30955         * modules/socklen: New file.
30956
30957 2005-09-02  Simon Josefsson  <jas@extundo.com>
30958
30959         * modules/havelib: New module.
30960
30961         * modules/gettext, modules/iconv, modules/lock, modules/readline:
30962         Use havelib.
30963
30964 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
30965
30966         Check for arithmetic overflow when calculating sizes, to prevent
30967         some buffer-overflow issues.  These patches are conservative, in the
30968         sense that when I couldn't determine whether an overflow was possible,
30969         I inserted a run-time check.
30970         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
30971         macros.
30972         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
30973         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
30974         (re_xnrealloc, re_x2nrealloc): New inline functions.
30975         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
30976         parse_bracket_exp):
30977         (build_equiv_class, build_charclass): Check for arithmetic overflow
30978         in size expression calculations.
30979         * lib/regex_internal.c (re_string_realloc_buffers):
30980         (build_wcs_upper_buffer, re_node_set_add_intersect):
30981         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
30982         (re_dfa_add_node, register_state): Likewise.
30983         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
30984         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
30985         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
30986         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
30987
30988 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
30989
30990         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
30991         m4/ulonglong.m4.  Problem reported by Martin Lambers.
30992
30993 2005-09-02  Bruno Haible  <bruno@clisp.org>
30994
30995         Support for lib vs. lib64 distinction on biarch platforms.
30996         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
30997         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
30998         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
30999
31000 2005-09-02  Bruno Haible  <bruno@clisp.org>
31001
31002         * gnulib-tool (import): In the other first-use case, provide defaults
31003         as well.
31004
31005 2005-09-02  Bruno Haible  <bruno@clisp.org>
31006
31007         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
31008         patches not yet found in the latest gettext release.
31009
31010 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
31011
31012         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
31013         to avoid a collision with bits/local_lim.h in glibc.
31014         All uses changed.  Problem reported by Dmitry V. Levin in
31015         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
31016
31017         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
31018         bugs in int versus size_t comparisons.
31019         (re_string_context_at): Fix bug where the code assumed that
31020         Idx is signed.
31021
31022         Use bool where appropriate.
31023         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
31024         All callers changed.
31025         (calc_eclosure_iter): Likewise, for ROOT arg.
31026         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
31027         (build_charclass_op): Likewise, for NON_MATCH arg.
31028         * lib/regex_internal.c (re_string_allocate, re_string_construct):
31029         (re_string_construct_common): Likewise, for ICASE arg.
31030         * lib/regexec.c (re_search_2_stub, re_search_stub):
31031         Likewise, for RET_LEN arg.
31032         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
31033         (set_regs): Likewise, for FL_BACKTRACK arg.
31034         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
31035         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
31036         (calc_eclosure_iter, parse_bracket_exp):
31037         Use bool for internal variables that are booleans.
31038         * lib/regexec.c (re_search_internal, check_matching,
31039         proceed_next_node):
31040         (set_regs, build_sifted_states, sift_states_bkref):
31041         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
31042         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
31043         (find_collation_sequence_value):
31044         Likewise.
31045         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
31046         (re_node_set_compare):
31047         Return bool, not int. All callers changed.
31048         * lib/regexec.c (check_halt_node_context, check_dst_limits):
31049         (build_trtable, check_node_accept): Likewise.
31050         * lib/regex_internal.h: Include stdbool.h.
31051
31052         Fix bugs uncovered when converting to bool.
31053         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
31054         failure instead of charging ahead blindly.
31055         * lib/regex_internal.c (register_state): Likewise.
31056         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
31057         for freeing internal storage.
31058         (group_nodes_into_DFA_states): Use unsigned int, not int, for
31059         bitset pieces used as boolean, to avoid undefined behavior
31060         on hosts that do int overflow checking.
31061
31062 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
31063
31064         * config/srclist.txt: Add glibc bugs 1285-1287.
31065
31066 2005-09-01  Jim Meyering  <jim@meyering.net>
31067
31068         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
31069         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
31070         Require gl_STAT_MACROS, too.
31071
31072 2005-09-01  Bruno Haible  <bruno@clisp.org>
31073
31074         * gnulib-tool (import): In the first-use case, provide defaults.
31075
31076 2005-09-01  Bruno Haible  <bruno@clisp.org>
31077
31078         * gnulib-tool (func_import): Remove the .tmp files.
31079
31080 2005-09-01  Bruno Haible  <bruno@clisp.org>
31081
31082         * gnulib-tool (func_import): Fix handling of symbolic links.
31083
31084 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
31085
31086         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
31087         old glibc regex code mishandles strings longer than 2**31 bytes.
31088         This patch fixes this when the regex code is used in gnulib
31089         (i.e., outside glibc).
31090
31091         This patch should not affect the use of the regex code inside
31092         glibc.  No doubt this problem also needs to be handled for glibc
31093         as well, but the result will be an incompatible change to the
31094         glibc ABI, and the old ABI will have to be supported too.  That
31095         can be the the subject for another patch.
31096
31097         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
31098         governing whether the rest of this patch is active.  By default,
31099         the macro is disabled and the patch has no effect.
31100         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
31101         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
31102         (struct re_pattern_buffer, re_search, re_search_2, re_match):
31103         (re_match_2, re_set_registers): Use the new types.
31104         * lib/regex_internal.h (Idx, re_hashval_t): New types.
31105         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
31106         New macros.
31107         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
31108         (re_string_context_at, bin_tree_t, re_dfastate_t):
31109         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
31110         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
31111         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
31112         (re_string_char_size_at, re_string_wchar_at):
31113         (re_string_elem_size_at):
31114         Use the new types and macros to port to 64-bit hosts.
31115         Use unsigned types for internal values, so that the code
31116         mostly works even for arrays larger than SSIZE_MAX.
31117         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
31118         (search_duplicated_node, calc_eclosure_iter, fetch_number):
31119         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
31120         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
31121         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
31122         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
31123         (calc_inveclosure, parse_dup_op, build_range_exp):
31124         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
31125         (fetch_number, create_token_tree, mark_opt_subexp):
31126         Likewise.
31127         * lib/regex_internal.c (re_string_construct_common,
31128         create_ci_newstate):
31129         (create_cd_newstate, re_string_allocate, re_string_construct):
31130         (re_string_realloc_buffers, build_wcs_upper_buffer):
31131         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
31132         (re_string_reconstruct, re_string_peek_byte_case):
31133         (re_string_fetch_byte_case, re_string_context_at):
31134         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
31135         (re_node_set_init_copy, re_node_set_add_intersect):
31136         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
31137         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
31138         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
31139         (re_acquire_state, re_acquire_state_context, register_state):
31140         Likewise.
31141         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
31142         search_cur_bkref_entry):
31143         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
31144         (re_search_internal, re_search_2_stub, re_search_stub)
31145         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
31146         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
31147         (update_cur_sifted_state, check_dst_limits):
31148         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
31149         (check_subexp_limits, sift_states_bkref, merge_state_array):
31150         (check_subexp_matching_top, get_subexp, get_subexp_sub):
31151         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
31152         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
31153         (expand_bkref_cache, check_node_accept_bytes):
31154         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
31155         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
31156         (acquire_init_state_context, check_halt_node_context):
31157         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
31158         (sift_states_backward, clean_state_log_if_needed):
31159         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
31160         (find_recover_state, transit_state_sb, transit_state_mb):
31161         (transit_state_bkref, build_trtable, match_ctx_clean):
31162         Likewise.
31163         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
31164         to work around an assumption that REG_MISSING is negative.
31165
31166         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
31167         (seek_collating_symbol_entry) [defined _LIBC]:
31168         (lookup_collation_sequence_value) [defined _LIBC]:
31169         (build_range_exp, build_collating_symbol) [defined _LIBC]:
31170         Use prototypes rather than old-style function definitions.
31171         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
31172         (transit_state_sb) [0]:
31173         (find_collation_sequence_value) [defined _LIBC]: Likewise.
31174
31175         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
31176         rm_eo.
31177
31178         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
31179         (optimize_subexps, lower_subexp):
31180         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
31181         since the signed shift might overflow.  Use 1u<<31 instead.
31182         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
31183         Likewise.
31184         * lib/regexec.c (check_dst_limits_calc_pos_1,
31185         check_subexp_matching_top): Likewise.
31186
31187         * lib/regcomp.c (optimize_subexps, lower_subexp):
31188         Use CHAR_BIT rather than 8, for clarity.
31189         * lib/regexec.c (check_dst_limits_calc_pos_1):
31190         (check_subexp_matching_top): Likewise.
31191         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
31192         have to worry about portability issues when shifting it left.
31193         Remove no-longer-needed test for table_size > 0.
31194         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
31195         in a word, as the resulting behavior is undefined.
31196         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
31197         in one case, a <= should have been an <, and in another case the
31198         whole test was missing.
31199         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
31200         the standard name CHAR_BIT.
31201         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
31202         this is not true on one's complement and signed-magnitude hosts.
31203
31204         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
31205         next_last_offset.
31206         (struct re_dfa_t): Remove unused member states_alloc.
31207         * lib/regcomp.c (init_dfa): Don't initialize unused members.
31208
31209 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
31210
31211         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
31212         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
31213         and large-file glibc and in 32-bit large-file Solaris.
31214
31215 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
31216
31217         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
31218         lengths fit in regoff_t; this isn't true if regoff_t is the same
31219         width as size_t.
31220         * lib/regex.c (re_search_internal): 5th arg is LAST_START
31221         (= START + RANGE) instead of RANGE.  This avoids overflow
31222         problems when regoff_t is the same width as size_t.
31223         All callers changed.
31224         (re_search_2_stub): Check for overflow when adding the
31225         sizes of the two strings.
31226         (re_search_stub): Check for overflow when adding START
31227         to RANGE; if it occurs, substitute the extreme value.
31228
31229 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
31230
31231         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
31232
31233 2005-08-31  Jim Meyering  <jim@meyering.net>
31234
31235         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
31236         a pointer-to-const.
31237         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
31238         (register_state): Likewise.
31239         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
31240         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
31241         (group_nodes_into_DFAstates): Likewise.
31242
31243 2005-08-31  Jim Meyering  <jim@meyering.net>
31244
31245         * check-module: Add a FIXME comment.
31246
31247 2005-08-31  Eric Blake  <ebb9@byu.net>
31248
31249         * modules/unistd-safer (Files): Add unistd--.h.
31250         * modules/stdio-safer (Files): Add stdio--.h.
31251
31252 2005-08-31  Derek Price  <derek@ximbiot.com>
31253
31254         * lib/getdelim.c (getdelim): Return EOF on EOF.
31255         Reported by Larry Jones <lawrence.jones@ugs.com>.
31256
31257 2005-08-31  Bruno Haible  <bruno@clisp.org>
31258
31259         Avoid unnecessary diffs in the generated lib/Makefile.am.
31260         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
31261         the generated files.
31262         (func_import): Don't set cmd.
31263
31264 2005-08-31  Bruno Haible  <bruno@clisp.org>
31265
31266         * lib/strstr.c: Include <stddef.h>, for NULL.
31267         * lib/strcasestr.c: Likewise.
31268         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
31269
31270 2005-08-31  Bruno Haible  <bruno@clisp.org>
31271
31272         * gnulib-tool: New option --macro-prefix.
31273         (func_import): Use macro_prefix.
31274         (import): Handle option --macro-prefix.
31275
31276 2005-08-31  Bruno Haible  <bruno@clisp.org>
31277
31278         * gnulib-tool (import): Rename most ac_* variables to cached_*.
31279         Also use new variables cached_lgpl, cached_libtool.
31280
31281 2005-08-31  Bruno Haible  <bruno@clisp.org>
31282
31283         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
31284         always instantiating them.
31285
31286 2005-08-31  Bruno Haible  <bruno@clisp.org>
31287
31288         * gnulib-tool (func_import): Read the previous cached settings
31289         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
31290         earlier added by gnulib but are now dropped. Warn when a gnulib file
31291         overwrites a non-gnulib file.
31292
31293 2005-08-31  Bruno Haible  <bruno@clisp.org>
31294
31295         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
31296         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
31297         projects that don't keep autogenerated files in CVS. Put into
31298         actioncmd only the specified modules, not the transitive closure.
31299
31300 2005-08-31  Bruno Haible  <bruno@clisp.org>
31301
31302         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
31303         Create directories that shall be filled.
31304         (import): Don't look for gl_* macros in configure.ac. Recurse across
31305         all directories containing a gnulib-cache.m4 files, if meaningful.
31306
31307 2005-08-31  Bruno Haible  <bruno@clisp.org>
31308
31309         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
31310         (import): Set seen_libtool when we see gl_LIBTOOL.
31311
31312 2005-08-31  Bruno Haible  <bruno@clisp.org>
31313
31314         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
31315         declaration macro definitions from generated gnulib.m4.
31316
31317 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
31318
31319         * lib/iconvme.h: Add prototype for iconv_alloc.
31320
31321 2005-08-29  Simon Josefsson  <jas@extundo.com>
31322
31323         * lib/iconvme.c: Fix errno.
31324
31325 2005-08-29  Bruno Haible  <bruno@clisp.org>
31326
31327         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
31328         that it works when the directory contains spaces.
31329
31330 2005-08-29  Bruno Haible  <bruno@clisp.org>
31331
31332         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
31333
31334 2005-08-29  Bruno Haible  <bruno@clisp.org>
31335
31336         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
31337         Emit more advice.
31338
31339 2005-08-29  Bruno Haible  <bruno@clisp.org>
31340         and Stepan Kasal  <kasal@ucw.cz>
31341
31342         * check-module: If more parameters are given, check each of them
31343         separately; add more exceptions, as noted by Jim Meyering.
31344         (check_module): New procedure.
31345         (%exempt_header): Now contains all exceptions.
31346
31347 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
31348
31349         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
31350
31351 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
31352
31353         * lib/iconvme.c: Split iconv_string into iconv_alloc.
31354
31355 2005-08-28  Bruno Haible  <bruno@clisp.org>
31356
31357         * m4/gnulib-tool.m4: New file.
31358
31359 2005-08-27  Jim Meyering  <jim@meyering.net>
31360
31361         * modules/unistd-safer (Files): Add pipe-safer.c.
31362         * modules/fcntl-safer (Files): Add creat-safer.c.
31363
31364 2005-08-27  Jim Meyering  <jim@meyering.net>
31365
31366         * m4/stdlib-safer.m4: New file.  From coreutils.
31367         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
31368         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
31369         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
31370         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
31371         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
31372
31373 2005-08-27  Jim Meyering  <jim@meyering.net>
31374
31375         * lib/fopen-safer.c: Merge minor changes from coreutils.
31376         * lib/dup-safer.c: Likewise.
31377         * lib/fd-safer.c: Likewise.
31378
31379         Merge from coreutils.
31380         * lib/stdio--.h: New file.
31381         * lib/stdlib--.h: New file.
31382         * lib/mkstemp-safer.c: New file.
31383
31384         GNU tar needs these.
31385         * lib/pipe-safer.c: New file.
31386         * lib/creat-safer.c: New file.
31387         * lib/fcntl--.h (creat): Define to creat_safer.
31388         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
31389         * lib/unistd--.h (pipe): Define to pipe_safer.
31390         * lib/unistd-safer.h: Declare pipe_safer.
31391
31392 2005-08-26  Simon Josefsson  <jas@extundo.com>
31393
31394         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
31395         Haible <bruno@clisp.org>.
31396
31397 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
31398
31399         * lib/regex_internal.h: Remove all references to
31400         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
31401         or better.
31402         (bitset_not, bitset_merge, bitset_not_merge):
31403         (bitset_mask, re_string_allocate, re_string_construct):
31404         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
31405         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
31406         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
31407         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
31408         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
31409         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
31410         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
31411         (re_acquire_state_context):
31412         Remove unnecessary forward decls.
31413         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
31414         Put __attribute at function definition,
31415         now that the function decl has been removed.
31416         * lib/regex_internal.c (re_string_peek_byte_case):
31417         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
31418         Likewise.
31419
31420 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
31421
31422         * m4/regex.m4: Add AC_PREREQ(2.50).
31423         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
31424
31425 2005-08-25  Simon Josefsson  <jas@extundo.com>
31426
31427         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
31428         __fsetlocking.
31429
31430 2005-08-25  Simon Josefsson  <jas@extundo.com>
31431
31432         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
31433         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
31434         GLIBC specific code.
31435
31436 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
31437
31438         Make regex safe for g++.  This fixes one real bug (an "err"
31439         that should have been "*err").  g++ problem reported by
31440         Sam Steingold.
31441         * lib/regex_internal.h (re_calloc): New macro, consistent with
31442         re_malloc etc.  All callers of calloc changed to use re_calloc.
31443         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
31444         not int.  All callers changed.
31445         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
31446         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
31447         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
31448         (find_recover_state): Change "err" to "*err"; this fixes what
31449         appears to be a real bug.
31450         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
31451         versus int.
31452
31453 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
31454
31455         * modules/regex (Depends-on): Add malloc, since the code
31456         assumes that !malloc(0) means failure.
31457
31458 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
31459
31460         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
31461
31462         alloca modernization/simplification for regex.
31463         * lib/regex.c: Remove portability cruft for alloca.  This no longer
31464         needs to be at the start of the file, and can be moved into
31465         regex_internal.h and simplified.
31466         * lib/regex_internal.h: Include <alloca.h>.
31467         (__libc_use_alloca) [!defined _LIBC]: New macro.
31468         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
31469         now works outside glibc.
31470
31471 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
31472
31473         * config/srclist.txt: Add glibc bugs 1241, 1245.
31474
31475 2005-08-25  Jim Meyering  <jim@meyering.net>
31476
31477         * lib/open-safer.c: Include <config.h>.
31478         Otherwise, we'd lose LARGEFILE support in any file using
31479         e.g. "fcntl--.h"
31480
31481 2005-08-25  Bruno Haible  <bruno@clisp.org>
31482
31483         * m4/minmax.m4: Require autoconf 2.52.
31484         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
31485         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
31486         alternatives of translit over the alphabet.
31487         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
31488
31489 2005-08-24  Simon Josefsson  <jas@extundo.com>
31490
31491         * tests/test-getpass.c: New file.
31492
31493 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
31494
31495         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
31496         for GNU regex features.
31497
31498 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
31499
31500         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
31501         * lib/regex.h (regerror): Likewise.
31502
31503         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
31504         requires this.  (The code never needed it.)
31505
31506         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
31507         All uses of recently-renamed identifiers changed to use the new,
31508         POSIX-compliant names.  The code will build and run just fine
31509         without these changes, but it's better to eat our own dog food
31510         and use the standard-conforming names.
31511
31512         * lib/regex.h: Fix a multitude of POSIX name space violations.
31513         These changes have an effect only for programs that define
31514         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
31515         do not change anything for programs compiled in the normal way.
31516         Also, there is no effect on the ABI.
31517
31518         (_REGEX_SOURCE): New macro.
31519         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
31520         defined and _GNU_SOURCE is not; this fixes a name space violation.
31521
31522         Rename the following macros to obey POSIX requirements.
31523         The old names are still visible as macros if _REGEX_SOURCE is defined.
31524         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
31525         RE_BACKSLASH_ESCAPE_IN_LISTS.
31526         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
31527         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
31528         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
31529         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
31530         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
31531         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
31532         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
31533         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
31534         (REG_INTERVALS): renamed from RE_INTERVALS.
31535         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
31536         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
31537         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
31538         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
31539         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
31540         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
31541         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
31542         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
31543         RE_UNMATCHED_RIGHT_PAREN_ORD.
31544         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
31545         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
31546         (REG_DEBUG): renamed from RE_DEBUG.
31547         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
31548         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
31549         unusual, since we can't clash with the POSIX REG_ICASE.
31550         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
31551         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
31552         (REG_NO_SUB): renamed from RE_NO_SUB.
31553         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
31554         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
31555         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
31556         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
31557         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
31558         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
31559         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
31560         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
31561         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
31562         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
31563         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
31564         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
31565         RE_SYNTAX_POSIX_MINIMAL_BASIC.
31566         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
31567         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
31568         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
31569         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
31570         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
31571         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
31572         (REG_FIXED): Renamed from REGS_FIXED.
31573         (REG_NREGS): Renamed from RE_NREGS.
31574
31575         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
31576         of other REG_* macros, since POSIX says the user is allowed to
31577         #undef these macros selectively.
31578
31579         (reg_errcode_t): Update comment stating what other tables need
31580         to be consistent.
31581
31582         Rename the following enum values to obey POSIX requirements.
31583         The old names are still visible as macros.
31584         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
31585         is not defined, since GNU is supposed to be a superset of POSIX as
31586         much as possible, and since we want reg_errcode_t to be a signed
31587         type for implementation consistency.
31588         (_REG_NOERROR): Renamed from REG_NOERROR.
31589         (_REG_NOMATCH): Renamed from REG_NOMATCH.
31590         (_REG_BADPAT): Renamed from REG_BADPAT.
31591         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
31592         (_REG_ECTYPE): Renamed from REG_ECTYPE.
31593         (_REG_EESCAPE): Renamed from REG_EESCAPE.
31594         (_REG_ESUBREG): Renamed from REG_ESUBREG.
31595         (_REG_EBRACK): Renamed from REG_EBRACK.
31596         (_REG_EPAREN): Renamed from REG_EPAREN.
31597         (_REG_EBRACE): Renamed from REG_EBRACE.
31598         (_REG_BADBR): Renamed from REG_BADBR.
31599         (_REG_ERANGE): Renamed from REG_ERANGE.
31600         (_REG_ESPACE): Renamed from REG_ESPACE.
31601         (_REG_BADRPT): Renamed from REG_BADRPT.
31602         (_REG_EEND): Renamed from REG_EEND.
31603         (_REG_ESIZE): Renamed from REG_ESIZE.
31604         (_REG_ERPAREN): Renamed from REG_ERPAREN.
31605         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
31606         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
31607         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
31608         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
31609
31610         (_REG_RE_NAME, _REG_RM_NAME): New macros.
31611         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
31612         changed.  But support the old name if the new one is not defined
31613         and if _REGEX_SOURCE.
31614
31615         Change the following member names in struct re_pattern_buffer.
31616         The old names are still supported if !_REGEX_SOURCE.
31617         The new names are always supported, regardless of _REGEX_SOURCE.
31618         (re_buffer): Renamed from buffer.
31619         (re_allocated): Renamed from allocated.
31620         (re_used): Renamed from used.
31621         (re_syntax): Renamed from syntax.
31622         (re_fastmap): Renamed from fastmap.
31623         (re_translate): Renamed from translate.
31624         (re_can_be_null): Renamed from can_be_null.
31625         (re_regs_allocated): Renamed from regs_allocated.
31626         (re_fastmap_accurate): Renamed from fastmap_accurate.
31627         (re_no_sub): Renamed from no_sub.
31628         (re_not_bol): Renamed from not_bol.
31629         (re_not_eol): Renamed from not_eol.
31630         (re_newline_anchor): Renamed from newline_anchor.
31631
31632         Change the following member names in struct re_registers.
31633         The old names are still supported if !_REGEX_SOURCE.
31634         The new names are always supported, regardless of _REGEX_SOURCE.
31635         (rm_num_regs): Renamed from num_regs.
31636         (rm_start): Renamed from start.
31637         (rm_end): Renamed from end.
31638
31639         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
31640         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
31641         Prepend __ to parameter names.
31642
31643         Undo yesterday's changes.
31644
31645 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
31646
31647         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
31648         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
31649         lib/regex.c.
31650
31651 2005-08-24  Jim Meyering  <jim@meyering.net>
31652
31653         Sync from coreutils.
31654         * m4/fcntl-safer.m4: New file.
31655
31656         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
31657         and object files for this module.
31658
31659 2005-08-24  Jim Meyering  <jim@meyering.net>
31660
31661         Sync from coreutils.
31662         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
31663
31664 2005-08-24  Jim Meyering  <jim@meyering.net>
31665
31666         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
31667         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
31668
31669 2005-08-24  Jim Meyering  <jim@meyering.net>
31670
31671         * modules/fcntl-safer: New module.
31672         * modules/fts (Depends-on): Add fcntl-safer.
31673         * MODULES.html.sh (File descriptor based Input/Output):
31674         Add fcntl-safer.
31675
31676 2005-08-24  Bruno Haible  <bruno@clisp.org>
31677
31678         Support for unit test modules.
31679         * modules/README: Mention tests modules.
31680         * modules/TEMPLATE-TESTS: New file.
31681         * gnulib-tool: New options --extract-tests-module, --with-tests and
31682         --tests-base (unused for the moment).
31683         (testsbase, inctests): New variables.
31684         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
31685         (func_verify_module): Exclude TEMPLATE-TESTS.
31686         (func_verify_nontests_module, func_verify_tests_module): New functions.
31687         (func_get_dependencies): Add implicit dependency for tests modules.
31688         (func_get_tests_module): New function.
31689         (func_modules_transitive_closure): When --with-tests was specified,
31690         include the unit tests as well, unless explicitly avoided.
31691         (func_emit_lib_Makefile_am): Ignore the tests modules here.
31692         (func_emit_tests_Makefile_am): New function.
31693         (func_create_testdir): When --with-tests was specified, emit a
31694         tests/ directory.
31695         * MODULES.html.sh (Future developments): Update.
31696
31697 2005-08-24  Bruno Haible  <bruno@clisp.org>
31698
31699         * modules/tls-tests: New file.
31700         * tests/test-tls.c: New file, from GNU gettext.
31701
31702 2005-08-24  Bruno Haible  <bruno@clisp.org>
31703
31704         * modules/lock-tests: New file.
31705         * tests/test-lock.c: New file, from GNU gettext.
31706
31707 2005-08-24  Bruno Haible  <bruno@clisp.org>
31708
31709         * lib/lock.h: Add multiple inclusion guard.
31710         * lib/tls.h: Add multiple inclusion guard.
31711
31712 2005-08-24  Bruno Haible  <bruno@clisp.org>
31713
31714         * gnulib-tool: Add support for the --aux-dir option to
31715         --create-testdir, --create-megatestdir, --test, --megatest.
31716         (func_create_testdir, func_create_megatestdir): Optionally emit a
31717         AC_CONFIG_AUX_DIR directive.
31718         (create-testdir, create-megatestdir, test, megatest): Provide a
31719         default value for $auxdir.
31720
31721 2005-08-24  Bruno Haible  <bruno@clisp.org>
31722
31723         * gnulib-tool (import): Use compound statement instead of subshell
31724         where possible.
31725
31726 2005-08-24  Bruno Haible  <bruno@clisp.org>
31727
31728         * gnulib-tool (import): Change --aux-dir default to "build-aux".
31729
31730 2005-08-24  Bruno Haible  <bruno@clisp.org>
31731
31732         * gnulib-tool (func_version): Update.
31733
31734 2005-08-24  Bruno Haible  <bruno@clisp.org>
31735
31736         * gnulib-tool (func_import, func_create_testdir,
31737         func_create_megatestdir): Quote all autoconf macro arguments.
31738
31739 2005-08-24  Bruno Haible  <bruno@clisp.org>
31740
31741         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
31742         option --force, because --force causes the aclocal.m4 of each
31743         subdirectory to be newer than the corresponding config.h.in.
31744
31745 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
31746
31747         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
31748         All contents moved to gl_REGEX.
31749         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
31750         assume that it does.
31751
31752 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
31753
31754         * lib/regex.h (REG_NOSYS)
31755         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
31756         Define, since POSIX requires it as of 2001.
31757         (_REG_ENOSYS)
31758         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
31759         New private symbol, used to keep the enum signed in all cases.
31760         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
31761         Youngman in
31762         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
31763
31764         * lib/regex_internal.c (re_string_skip_chars, register_state):
31765         (calc_state_hash):
31766         Remove forward decls; no longer needed now that we use prototypes.
31767         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
31768         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
31769         (clean_state_log_if_needed): Likewise.
31770
31771 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
31772
31773         * config/srclist.txt: Add glibc bugs 1231-1233.
31774
31775 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
31776
31777         Fix problems reported by Sam Steingold in
31778         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
31779         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
31780         assumed that reg_errcode_t is a signed type, which is not
31781         necessarily true if _XOPEN_SOURCE is not defined.
31782         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
31783         since some compilers warn about it otherwise.
31784
31785 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
31786
31787         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
31788         (init_word_char, create_initial_state, duplicate_node_closure):
31789         (fetch_token, peek_token_bracket, build_range_exp):
31790         (build_collating_symbol): Remove forward decls; no longer needed
31791         now that we use prototypes.
31792
31793         * lib/regcomp.c:
31794         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
31795         (re_compile_fastmap_iter, regcomp, regerror, regfree):
31796         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
31797         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
31798         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
31799         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
31800         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
31801         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
31802         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
31803         (build_range_exp, build_collating_symbol, parse_bracket_exp):
31804         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
31805         (build_charclass, build_charclass_op, fetch_number, create_tree):
31806         (create_token_tree, mark_opt_subexp, duplicate_tree):
31807         Use prototypes rather than old-style definitions.
31808
31809         * lib/regex_internal.c:
31810         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
31811         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
31812         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
31813         (re_string_reconstruct, re_string_peek_byte_case):
31814         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
31815         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
31816         (re_node_set_init_copy, re_node_set_add_intersect):
31817         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
31818         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
31819         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
31820         (re_acquire_state, re_acquire_state_context, register_state):
31821         (create_ci_newstate, create_cd_newstate, free_state):
31822         Likewise.
31823         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
31824         re_search_2):
31825         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
31826         (re_search_internal, prune_impossible_nodes):
31827         (acquire_init_state_context, check_matching, static):
31828         (check_halt_node_context, check_halt_state_context, proceed_next_node):
31829         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
31830         (update_regs, sift_states_backward, build_sifted_states):
31831         (clean_state_log_if_needed, merge_state_array):
31832         (update_cur_sifted_state, add_epsilon_src_nodes):
31833         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
31834         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
31835         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
31836         (find_recover_state, check_subexp_matching_top, transit_state_mb):
31837         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
31838         (check_arrival, check_arrival_add_next_nodes):
31839         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
31840         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
31841         (check_node_accept_bytes, check_node_accept, extend_buffers):
31842         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
31843         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
31844         (sift_ctx_init):
31845         Likewise.
31846
31847         * lib/regex_internal.h:
31848         (re_string_allocate, re_string_construct, re_string_reconstruct):
31849         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
31850         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
31851         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
31852         (re_string_context_at, re_string_peek_byte_case):
31853         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
31854         is defined, since we now use prototypes always.
31855
31856         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
31857         C89 or better.  All uses removed.
31858
31859 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
31860
31861         * config/srclist.txt: Add glibc bugs 1220-1227.
31862
31863 2005-08-20  Jim Meyering  <jim@meyering.net>
31864
31865         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
31866         of unused local, dfa.
31867
31868 2005-08-20  Bruno Haible  <bruno@clisp.org>
31869
31870         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
31871
31872 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
31873
31874         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
31875         (re_node_set_insert_last, re_dfa_add_node):
31876         Rename local variables to avoid GCC shadowing warnings.
31877
31878 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
31879
31880         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
31881         [defined lint]: Suppress bogus uninitialized-variable warnings.
31882
31883         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
31884         and let the caller return REG_ESPACE if out of space.  This
31885         removes an uninitialied-variable warning with GCC 4.0.1, and also
31886         avoids taking the address of a local variable.  All callers
31887         changed.
31888
31889 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
31890
31891         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
31892         $LIBCSRC/posix/regexec.c.
31893         Add glibc bug 1217 for regcomp.c.
31894
31895 2005-08-19  Jim Meyering  <jim@meyering.net>
31896
31897         * lib/regexec.c (proceed_next_node): Redo local variables to
31898         avoid GCC shadowing warnings.
31899
31900 2005-08-18  Bruno Haible  <bruno@clisp.org>
31901
31902         * lib/strstr.c (strstr): Fix return value in multibyte case.
31903         * lib/strcasestr.c (strcasestr): Likewise.
31904
31905 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
31906
31907         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
31908
31909 2005-08-17  Jim Meyering  <jim@meyering.net>
31910
31911         Make the %s format (seconds since the epoch) work for a negative
31912         number and when used with a zero-padded field width, e.g. %015s.
31913
31914         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
31915         label so that it precedes the code to set `digits'.  Otherwise,
31916         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
31917         print `00-22'.  Now, it prints `-0022', as it should.
31918
31919 2005-08-17  Bruno Haible  <bruno@clisp.org>
31920
31921         * modules/strstr (Files): Add m4/mbrtowc.m4.
31922         (Depends-on): Add mbuiter.
31923
31924 2005-08-17  Bruno Haible  <bruno@clisp.org>
31925
31926         * modules/strcasestr: New file.
31927         * MODULES.html.sh (String handling, based on ANSI C 89): Add
31928         strcasestr.
31929
31930 2005-08-17  Bruno Haible  <bruno@clisp.org>
31931
31932         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
31933
31934 2005-08-17  Bruno Haible  <bruno@clisp.org>
31935
31936         * modules/mbuiter: New file.
31937         * MODULES.html.sh (Extended multibyte and wide character utilities):
31938         Add mbuiter.
31939
31940 2005-08-17  Bruno Haible  <bruno@clisp.org>
31941
31942         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
31943         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
31944
31945 2005-08-17  Bruno Haible  <bruno@clisp.org>
31946
31947         * m4/strcasestr.m4: New file.
31948
31949 2005-08-17  Bruno Haible  <bruno@clisp.org>
31950
31951         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
31952         * lib/strstr.c: Completely rewritten, with multibyte locale support.
31953
31954 2005-08-17  Bruno Haible  <bruno@clisp.org>
31955
31956         * lib/strcasestr.h: New file.
31957         * lib/strcasestr.c: New file.
31958
31959 2005-08-17  Bruno Haible  <bruno@clisp.org>
31960
31961         * lib/strcasecmp.c: Use mbuiter.h.
31962
31963 2005-08-17  Bruno Haible  <bruno@clisp.org>
31964
31965         * lib/mbuiter.h: New file.
31966
31967 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
31968
31969         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
31970         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
31971         and gl_GETOPT are both invoked via different paths (as happens
31972         with GNU tar CVS because it uses both argp and getopt), the former
31973         wins.
31974
31975 2005-08-16  Bruno Haible  <bruno@clisp.org>
31976
31977         * modules/tls: New file.
31978         * MODULES.html.sh (Multithreading): Add tls.
31979
31980 2005-08-16  Bruno Haible  <bruno@clisp.org>
31981
31982         * modules/strnlen1: New file.
31983         * MODULES.html.sh (String handling): Add strnlen1.
31984
31985 2005-08-16  Bruno Haible  <bruno@clisp.org>
31986
31987         * modules/strcase (Files): Add m4/mbrtowc.m4.
31988         (Depends-on): Add strnlen1, mbchar.
31989
31990 2005-08-16  Bruno Haible  <bruno@clisp.org>
31991
31992         * modules/mbiter: New file.
31993         * MODULES.html.sh (Extended multibyte and wide character utilities):
31994         Add mbiter.
31995
31996 2005-08-16  Bruno Haible  <bruno@clisp.org>
31997
31998         * modules/mbfile: New file.
31999         * MODULES.html.sh (Extended multibyte and wide character utilities):
32000         Add mbfile.
32001
32002 2005-08-16  Bruno Haible  <bruno@clisp.org>
32003
32004         * modules/mbchar: New file.
32005         * MODULES.html.sh (Extended multibyte and wide character utilities):
32006         New section.
32007
32008 2005-08-16  Bruno Haible  <bruno@clisp.org>
32009
32010         * m4/tls.m4: New file, from GNU gettext.
32011
32012 2005-08-16  Bruno Haible  <bruno@clisp.org>
32013
32014         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
32015         always.
32016         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
32017
32018 2005-08-16  Bruno Haible  <bruno@clisp.org>
32019
32020         * m4/mbiter.m4: New file.
32021
32022 2005-08-16  Bruno Haible  <bruno@clisp.org>
32023
32024         * m4/mbfile.m4: New file.
32025
32026 2005-08-16  Bruno Haible  <bruno@clisp.org>
32027
32028         * m4/mbchar.m4: New file.
32029
32030 2005-08-16  Bruno Haible  <bruno@clisp.org>
32031
32032         * lib/tls.h: New file, from GNU gettext.
32033         * lib/tls.c: New file, from GNU gettext.
32034
32035 2005-08-16  Bruno Haible  <bruno@clisp.org>
32036
32037         * lib/strnlen1.h: New file.
32038         * lib/strnlen1.c: New file.
32039
32040 2005-08-16  Bruno Haible  <bruno@clisp.org>
32041
32042         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
32043         (mbi_init): Update.
32044         (mbi_avail, mbi_advance): Let the iteration end before the terminating
32045         NUL byte, not after it.
32046
32047 2005-08-16  Bruno Haible  <bruno@clisp.org>
32048
32049         * lib/strcase.h (strcasecmp): Add note in comments.
32050         * lib/strncasecmp.c: Use code from strcasecmp.c.
32051         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
32052         (strcasecmp): Work correctly in multibyte locales.
32053
32054 2005-08-16  Bruno Haible  <bruno@clisp.org>
32055
32056         * lib/mbiter.h: New file.
32057
32058 2005-08-16  Bruno Haible  <bruno@clisp.org>
32059
32060         * lib/mbfile.h: New file.
32061
32062 2005-08-16  Bruno Haible  <bruno@clisp.org>
32063
32064         * lib/mbchar.h: New file.
32065         * lib/mbchar.c: New file.
32066
32067 2005-08-16  Bruno Haible  <bruno@clisp.org>
32068
32069         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
32070         the valid ones. Makes the comparison operations transitive:
32071         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
32072         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
32073
32074 2005-08-15  Simon Josefsson  <jas@extundo.com>
32075
32076         * modules/ssize_t (License): Change to 'unlimited'.
32077
32078         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
32079
32080 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
32081
32082         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
32083         Add comments for each pending glibc patch.
32084
32085 2005-08-15  Bruno Haible  <bruno@clisp.org>
32086
32087         * lib/regex.h (__restrict_arr): Don't define to __restrict if
32088         __cplusplus is defined.
32089
32090 2005-08-14  Jim Meyering  <jim@meyering.net>
32091
32092         Sync from coreutils.
32093
32094         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
32095         Use the hash-table-based cycle-detection code not just when
32096         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
32097         Reported by James Youngman in
32098         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
32099         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
32100         FTS_TIGHT_CYCLE_CHECK.
32101         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
32102         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
32103         once again.
32104         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
32105         * lib/fts.c (fd_safer): Remove decl.
32106         Include fcntl--.h rather than unistd-safer.h
32107         (fts_safe_changedir): Don't call fd_safer; no longer needed
32108         now that we include fcntl--.h.
32109
32110 2005-08-12  Simon Josefsson  <jas@extundo.com>
32111
32112         * modules/getndelim2: Use ssize_t module.
32113         * modules/getnline: Likewise.
32114         * modules/safe-read: Likewise.
32115         * modules/xreadlink: Likewise.
32116
32117         * modules/ssize_t: New file.
32118
32119 2005-08-12  Simon Josefsson  <jas@extundo.com>
32120
32121         * m4/readline.m4: Look for termcap, curses or ncurses if required.
32122
32123 2005-08-12  Simon Josefsson  <jas@extundo.com>
32124
32125         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
32126         ssize_t.
32127
32128 2005-08-12  Simon Josefsson  <jas@extundo.com>
32129
32130         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
32131         readline, getdelim and check_version.
32132         (Support for systems lacking ISO C 99: Sizes of integer types):
32133         Add size_max.
32134
32135 2005-08-12  Bruno Haible  <bruno@clisp.org>
32136
32137         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
32138
32139 2005-08-11  Simon Josefsson  <jas@extundo.com>
32140
32141         * modules/readline: New file.
32142
32143         * modules/strnlen (Files): Add strnlen.h.
32144
32145 2005-08-11  Simon Josefsson  <jas@extundo.com>
32146
32147         * m4/readline.m4: New file.
32148
32149 2005-08-11  Simon Josefsson  <jas@extundo.com>
32150
32151         * lib/readline.h, readline.c: New file.
32152
32153 2005-08-11  Simon Josefsson  <jas@extundo.com>
32154
32155         * doc/gnulib.texi (Initial import, Finishing touches): Mention
32156         gl_AVOID.
32157
32158 2005-08-11  Bruno Haible  <bruno@clisp.org>
32159
32160         * lib/strnlen.h (strnlen): Change parameter name to match comment.
32161
32162 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
32163
32164         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
32165
32166 2005-08-10  Simon Josefsson  <jas@extundo.com>
32167
32168         * tests/test-iconvme.c: New file.
32169
32170 2005-08-10  Simon Josefsson  <jas@extundo.com>
32171
32172         * m4/strnlen.m4: New file.
32173
32174         * m4/strndup.m4: Don't check for strnlen declaration, done in
32175         strnlen.m4.
32176
32177 2005-08-10  Simon Josefsson  <jas@extundo.com>
32178
32179         * lib/strndup.c: Use strnlen.h.
32180
32181         * lib/strnlen.h: New file.
32182
32183 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
32184
32185         * README: Typos.
32186
32187 2005-08-02  Simon Josefsson  <jas@extundo.com>
32188
32189         * modules/readline: New file.
32190
32191 2005-08-02  Simon Josefsson  <jas@extundo.com>
32192
32193         * modules/getdelim: New file.
32194
32195         * modules/getline: Rewrite, don't use getndelim2.
32196
32197 2005-08-02  Simon Josefsson  <jas@extundo.com>
32198
32199         * m4/getline.m4: Separate out getdelim stuff into separate module.
32200
32201         * m4/getdelim.m4: New file.
32202
32203 2005-08-02  Simon Josefsson  <jas@extundo.com>
32204
32205         * lib/getline.h, getline.c: Rewrite.
32206
32207         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
32208
32209 2005-07-31  Bruno Haible  <bruno@clisp.org>
32210
32211         * lib/lock.h (gl_lock_initializer): New macro.
32212         (gl_lock_define_initialized): Use it.
32213         (gl_rwlock_initializer): New macro.
32214         (gl_rwlock_define_initialized): Use it.
32215         (gl_recursive_lock_initializer): New macro.
32216         (gl_recursive_lock_define_initialized): Use it.
32217
32218 2005-07-30  Karl Berry  <karl@gnu.org>
32219
32220         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
32221         Report from Ben Pfaff, regarding getopt.
32222
32223 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
32224
32225         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
32226         normal way.
32227         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
32228         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
32229         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
32230         (gl_GETOPT): Use the new macros.  Most of the implementation
32231         is moved to the new macros.  This is for programs like Emacs
32232         that don't want all the functionality of gl_GETOPT.
32233
32234 2005-07-26  Bruno Haible  <bruno@clisp.org>
32235
32236         * m4/lock.m4: Update from GNU gettext.
32237
32238 2005-07-26  Bruno Haible  <bruno@clisp.org>
32239
32240         * lib/lock.h: Update from GNU gettext.
32241         * lib/lock.c: Update from GNU gettext.
32242
32243 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
32244
32245         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
32246         obsolescent AC_TRY_RUN.  Include the default includes files, for
32247         'exit'.
32248
32249 2005-07-24  Bruno Haible  <bruno@clisp.org>
32250
32251         * modules/visibility: New file.
32252         * MODULES.html.sh (Misc): Add visibility.
32253
32254 2005-07-24  Bruno Haible  <bruno@clisp.org>
32255
32256         * m4/visibility.m4: New file.
32257
32258 2005-07-24  Bruno Haible  <bruno@clisp.org>
32259
32260         * doc/visibility.texi: New file.
32261
32262 2005-07-22  Bruno Haible  <bruno@clisp.org>
32263
32264         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
32265         $(ALLOCA_H), redundant through BUILT_SOURCES.
32266         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
32267         redundant through BUILT_SOURCES.
32268         * modules/byteswap (Makefile.am): Remove explicit dependency on
32269         $(BYTESWAP_H), redundant through BUILT_SOURCES.
32270         * modules/fnmatch (Makefile.am): Remove explicit dependency on
32271         $(FNMATCH_H), redundant through BUILT_SOURCES.
32272         * modules/getopt (Makefile.am): Remove explicit dependency on
32273         $(GETOPT_H), redundant through BUILT_SOURCES.
32274         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
32275         redundant through BUILT_SOURCES.
32276         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
32277         redundant through BUILT_SOURCES.
32278         * modules/stdbool (Makefile.am): Remove explicit dependency on
32279         $(STDBOOL_H), redundant through BUILT_SOURCES.
32280         * modules/stdint (Makefile.am): Remove explicit dependency on
32281         $(STDINT_H), redundant through BUILT_SOURCES.
32282         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
32283         Remove explicit dependency on $(SYSEXITS_H).
32284         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
32285
32286 2005-07-18  Simon Josefsson  <jas@extundo.com>
32287
32288         * lib/check-version.c (check_version): Accept identical versions too.
32289
32290 2005-07-18  Bruno Haible  <bruno@clisp.org>
32291
32292         * modules/lock: New file.
32293         * MODULES.html.sh (Multithreading): New section.
32294
32295 2005-07-18  Bruno Haible  <bruno@clisp.org>
32296
32297         * m4/lock.m4: New file, from GNU gettext.
32298
32299 2005-07-18  Bruno Haible  <bruno@clisp.org>
32300
32301         * lib/lock.h: New file, from GNU gettext.
32302         * lib/lock.c: New file, from GNU gettext.
32303
32304 2005-07-18  Bruno Haible  <bruno@clisp.org>
32305
32306         * lib/lock.h (gl_once_t): New type.
32307         (gl_once_define, gl_once): New macros.
32308         * lib/lock.c (fresh_once): New variable.
32309         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
32310         functions.
32311
32312 2005-07-16  Simon Josefsson  <jas@extundo.com>
32313
32314         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
32315         workaround, suggested by Bruno.
32316
32317 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
32318
32319         * modules/xalloc (Depends-on): Add xalloc-die.
32320         * modules/xvasprintf (Depends-on): Add xalloc-die.
32321
32322 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
32323
32324         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
32325         with a minor change.
32326
32327 2005-07-15  Bruno Haible  <bruno@clisp.org>
32328
32329         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
32330         When using lib/poll.c, define poll as rpl_poll.
32331
32332 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
32333
32334         * modules/argp (Depends-on): Remove unlocked-io.
32335
32336 2005-07-14  Derek Price  <derek@ximbiot.com>
32337
32338         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
32339         for glob symlink bug.
32340
32341 2005-07-14  Bruno Haible  <bruno@clisp.org>
32342
32343         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
32344         Instead, test for *_unlocked function declarations directly.
32345
32346 2005-07-11  Simon Josefsson  <jas@extundo.com>
32347
32348         * modules/size_max: New file.
32349
32350         * modules/xsize: Depend on size_max module for size_max.m4.
32351
32352 2005-07-11  Simon Josefsson  <jas@extundo.com>
32353
32354         * lib/size_max.h: New file.
32355
32356 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
32357
32358         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
32359         copyright symbol and the year.
32360         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
32361         (version_etc_va): Use parameterized copyright notice.
32362         Reword to conform to the current GNU coding standards.
32363
32364 2005-07-11  Karl Berry  <karl@gnu.org>
32365
32366         * doc/gnulib.texi (Quoting): new node.
32367         (Initial import): more info, from Patrice.
32368
32369 2005-07-11  Bruno Haible  <bruno@clisp.org>
32370
32371         * gnulib-tool (func_usage): Document option --avoid.
32372         (Command line options): Handle --avoid.
32373         (func_acceptable): New function.
32374         (func_modules_transitive_closure): Use it.
32375
32376 2005-07-11  Bruno Haible  <bruno@clisp.org>
32377
32378         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
32379         Reported by Jim Meyering.
32380
32381 2005-07-10  Bruno Haible  <bruno@clisp.org>
32382
32383         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
32384         Needed when size_t is smaller than 'unsigned int'.
32385         Reported by Paul Eggert.
32386
32387 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
32388
32389         * modules/argp (Depends-on): Add unlocked-io
32390
32391 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
32392
32393         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
32394         block of defines.
32395
32396 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
32397
32398         * config/srclist.txt: Comment out regcomp.c, since we have a porting
32399         fix now.
32400
32401 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
32402         and Paul Eggert  <eggert@cs.ucla.edu>
32403
32404         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
32405         in wint_t, not wchar_t.  Remove now-unnecessary cast.
32406
32407 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
32408
32409         * modules/regex (Files): Add lib/regex_internal.c,
32410         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
32411         (Depends-on): Add extensions.
32412         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
32413
32414 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
32415
32416         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
32417         pathconf.
32418         * m4/same.m4 (gl_SAME): Likewise.
32419         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
32420
32421         * m4/regex.m4: Adjust to new libc regex implementation.
32422         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
32423         all the .c and .h parts of (the new) regex.
32424         Quote the m4 stuff better.
32425         Check for RE_ICASE bug of old gnulib.
32426         Check for REG_STARTEND of recent libc.
32427         Rename local variables from jm_* to gl_*.
32428         Quote operand of "test -f".
32429         Say "recent enough" version of libc, not "version 2".
32430         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
32431         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
32432         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
32433         Remove check for btowc, isascii.
32434         Require AM_LANGINFO_CODESET.
32435
32436 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
32437
32438         * lib/regex.c, regex.h: Sync from libc.
32439         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
32440         * lib/regexec.c:
32441         New files, synced from libc, except that regex_internal.h
32442         currently has a small porting fix.
32443
32444 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
32445
32446         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
32447         regex_internal.c, regexec.c.
32448         Add regex_internal.h too, but as a comment, since the libc version
32449         is currently broken in gnulib mode.
32450
32451 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
32452
32453         Support programs like Emacs that use gnulib but not gettext.
32454         * MODULES.html.sh (Internationalization functions): Add gettext-h.
32455         * modules/gettext-h: New file.
32456         * modules/gettext (Files): Remove lib/gettext.h.
32457         (Depends-on): Add gettext-h.
32458         (Makefile.am): Remove lib_SOURCES.
32459         * modules/argmatch, modules/c-stack, modules/closeout:
32460         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
32461         * modules/execute, modules/file-type, modules/getaddrinfo:
32462         * modules/getopt, modules/human, modules/javacomp:
32463         * modules/javaexec, modules/mkdir-p, modules/obstack:
32464         * modules/openat, modules/pagealign_alloc, modules/pipe:
32465         * modules/quotearg, modules/regex, modules/rpmatch:
32466         * modules/unicodeio, modules/userspec, modules/version-etc:
32467         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
32468         * modules/xsetenv:
32469         Depend on gettext-h, not gettext.
32470
32471 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
32472
32473         * gnulib-tool (func_import): Add support for 'public domain' license.
32474         * modules/alloca, modules/atexit, modules/memmove:
32475         Now public domain, not GPL.
32476         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
32477         * modules/realloc, modules/strerror, modules/strtod:
32478         Now LGPL, not GPL.
32479
32480 2005-07-05  Bruno Haible  <bruno@clisp.org>
32481
32482         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
32483         autoconf CVS. Needed for mingw.
32484
32485 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
32486
32487         Remove the dependency of the strftime module on the tzset module.
32488         * modules/strftime (Depends-on): Remove dependency on tzset.
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         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
32494         gl_FUNC_TZSET_CLOBBER.
32495
32496 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
32497
32498         Remove the dependency of the strftime module on the tzset module.
32499         * lib/strftime.c (my_strftime)
32500         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
32501         Copy the input structure, to work around some of the bug with
32502         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
32503         Solaris releases, you should also use the tzset module, but we won't
32504         require it as a dependency any more since we don't want LGPLed code
32505         to depend on GPLed code.
32506
32507 2005-07-02  Jim Meyering  <jim@meyering.net>
32508
32509         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
32510         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
32511         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
32512         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
32513
32514 2005-07-02  Jim Meyering  <jim@meyering.net>
32515
32516         * lib/backupfile.c (backup_args): Change a `0' to NULL.
32517
32518 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
32519
32520         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
32521         declares only 'struct timespec;' (!).
32522
32523 2005-07-01  Jim Meyering  <jim@meyering.net>
32524
32525         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
32526         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
32527         * lib/save-cwd.c, tempname.c:
32528         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
32529         and don't include <sys/file.h>).
32530
32531 2005-06-29  Jim Meyering  <jim@meyering.net>
32532
32533         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
32534         type name.  Use the variable name instead.
32535         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
32536         Likewise.
32537
32538 2005-06-28  Simon Josefsson  <jas@extundo.com>
32539
32540         * modules/check-version (Files): Add check-version.m4.
32541
32542 2005-06-28  Simon Josefsson  <jas@extundo.com>
32543
32544         * m4/check-version.m4: New file, suggested by Jim Meyering
32545         <jim@meyering.net>.
32546
32547 2005-06-28  Simon Josefsson  <jas@extundo.com>
32548
32549         * lib/check-version.h, lib/check-version.c: New files.
32550
32551 2005-06-28  Simon Josefsson  <jas@extundo.com>
32552
32553         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
32554         collision with global variable.  Better indentation.  Don't
32555         increment buffer pointer beyond buffer end.  Based on comments
32556         from Paul Eggert <eggert@cs.ucla.edu>.
32557
32558         * lib/base64.h: Indent.
32559
32560 2005-06-28  Simon Josefsson  <jas@extundo.com>
32561
32562         * doc/gnulib.texi (Library version handling): New section.
32563
32564 2005-06-28  Jim Meyering  <jim@meyering.net>
32565
32566         * check-module (find_included_lib_files): Hard-code another
32567         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
32568         but modules/fts-lgpl (correctly) does not list those files.
32569
32570         * modules/canonicalize (Files): Add lib/pathmax.h.
32571
32572 2005-06-25  Simon Josefsson  <jas@extundo.com>
32573
32574         * modules/check-version: New file.
32575
32576 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
32577
32578         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
32579         initializer of struct addrinfo, as an indication that we don't
32580         care how many members the structure has.
32581
32582 2005-06-24  Derek Price  <derek@ximbiot.com>
32583         and Bruno Haible  <bruno@clisp.org>
32584
32585         Remove stat module & update lstat.
32586         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
32587         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
32588         * m4/stat.m4: Remove this file.
32589
32590 2005-06-24  Derek Price  <derek@ximbiot.com>
32591         and Bruno Haible  <bruno@clisp.org>
32592
32593         Remove stat module & update lstat.
32594         * lib/stat.c: Remove this file...
32595         (slash_aware_lstat): ...moving this content and its support...
32596         * lib/lstat.c (rpl_lstat): ...into here.
32597         * lib/lstat.h: New file.
32598
32599 2005-06-24  Derek Price  <derek@ximbiot.com>
32600         and Bruno Haible  <bruno@clisp.org>
32601
32602         Remove stat module & update lstat.
32603         * config/srclist.txt (libc sources): Remove stat.
32604
32605 2005-06-24  Derek Price  <derek@ximbiot.com>
32606         and Bruno Haible  <bruno@clisp.org>
32607
32608         Remove stat module & update lstat.
32609         * MODULES.html.sh (stat): Remove.
32610         * MODULES.html: Regenerated.
32611         * modules/lstat (Description): Correct function name.
32612         (Files): Add "lstat.h".
32613         (Depends-on): Remove stat, add xalloc, stat-macros.
32614         * modules/stat: Remove this file.
32615         (Include): Add "lstat.h", remove <sys/stat.h>.
32616
32617 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
32618
32619         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
32620         (ranged_convert): Don't save conversion in a temporary struct.
32621         This causes a warning with GCC 4.0.0, and anyway in the typical
32622         case it's not worth the extra 100 bytes or so of code.
32623         (ranged_convert, __mktime_internal): When calling a function via a
32624         pointer P, use P () rather than (*P) (), as we now assume C89 or
32625         better.
32626
32627 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
32628
32629         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
32630         "who -r" failed to give output.  Problem reported by Tim Waugh.
32631
32632         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
32633         (xcalloc): Use it to avoid needless tests.
32634         Problem reported by Jim Meyering.
32635
32636 2005-06-20  Derek Price  <derek@ximbiot.com>
32637
32638         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
32639         unnecessary for Autoconfs > 2.59c.
32640
32641 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
32642
32643         * lib/argp.h (__option_is_short): Check upper limit of
32644         __key. Isprint() requires its argument to have the value
32645         of an unsigned char or EOF.
32646
32647 2005-06-16  Jim Meyering  <jim@meyering.net>
32648
32649         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
32650         when either N or S is zero.
32651
32652 2005-06-16  Derek Price  <derek@ximbiot.com>
32653
32654         * m4/bison.m4: Declare YACC & YFLAGS precious.
32655
32656 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
32657
32658         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
32659         multibyte string or pattern, fall back on unibyte matching.
32660         Problem reported by James Youngman.
32661
32662 2005-06-08  Bruno Haible  <bruno@clisp.org>
32663
32664         * modules/csharpcomp: New file.
32665         * MODULES.html.sh (C#): Add csharpcomp.
32666
32667 2005-06-08  Bruno Haible  <bruno@clisp.org>
32668
32669         * m4/csharpcomp.m4: New file, from GNU gettext.
32670
32671 2005-06-08  Bruno Haible  <bruno@clisp.org>
32672
32673         * lib/csharpcomp.h: New file, from GNU gettext.
32674         * lib/csharpcomp.c: New file, from GNU gettext.
32675         * lib/csharpcomp.sh.in: New file, from GNU gettext.
32676
32677 2005-06-08  Bruno Haible  <bruno@clisp.org>
32678
32679         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
32680         warning on mingw.
32681
32682 2005-06-07  Derek Price  <derek@ximbiot.com>
32683
32684         Sync from CVS.
32685         * lib/glob_.h: Indent nested #ifdef.
32686
32687 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
32688
32689         Sync from coreutils.
32690         Use "file name" when talking about file names, instead of "filename"
32691         or "path", as per the GNU coding standards.
32692         * lib/mkdir-p.c: Renamed from makepath.c.
32693         (make_dir_parents): Renamed from make_path.  All callers changed.
32694         * lib/mkdir-p.h: Likewise.  All includers changed.
32695         * lib/filenamecat.c: Renamed from path-concat.c.
32696         (file_name_concat): Renamed from path_concat.  All callers changed.
32697         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
32698         * lib/filenamecat.h: Likewise.  All includers changed.
32699         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
32700         in comments or local variable names.
32701         * lib/basename.c: Likewise.
32702         * lib/canonicalize.c, canonicalize.h: Likewise.
32703         * lib/dirname.c, dirname.h: Likewise.
32704         * lib/euidaccess.c: Likewise.
32705         * lib/exclude.c: Likewise
32706         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
32707         * lib/fsusage.c, fsuage.h: Likewise.
32708         * lib/fts.c, fts_.h: Likewise.
32709         * lib/getcwd.c: Likewise.
32710         * lib/getloadavg.c: Likewise.
32711         * lib/mkstemp.c: Likewise.
32712         * lib/mountlist.c, mountlist.h: Likewise.
32713         * lib/openat.c, openat.h: Likewise.
32714         * lib/readlink-stub.c: Likewise.
32715         * lib/readutmp.c, readutmp.h: Likewise.
32716         * lib/rename.c: Likewise.
32717         * lib/rmdir.c: Likewise.
32718         * lib/same.c: Likewise.
32719         * lib/savedir.c: Likewise.
32720         * lib/stripslash.c: Likewise.
32721         * lib/tempname.c: Likewise.
32722         * lib/xreadlink.c: Likewise.
32723         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
32724         All uses changed.
32725         * lib/exclude.h: Likewise.
32726
32727         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
32728         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
32729         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
32730         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
32731         * lib/pathmax.h: Include <limits.h> unconditionally, since other
32732         files have been getting away with it for years (MORE/BSD 4.3
32733         is extinct now).
32734         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
32735         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
32736
32737         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
32738         Define to 256, not 255, as per modern POSIX.
32739
32740 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
32741
32742         Sync from coreutils.
32743         Use "file name" when talking about file names, instead of "filename"
32744         or "path", as per the GNU coding standards.
32745         * MODULES.html.sh: mkdir-p renamed from makepath.
32746         filenamecat renamed from path-concat.
32747         * modules/filenamecat: Renamed from modules/path-concat.
32748         (Files): filenamecat.h and filenamecat.c renamed from
32749         path-concat.h and path-concat.c.
32750         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
32751         (Include): filenamecat.h, not path-concat.h.
32752         * modules/mkdir-p: Renamed from modules/makepath.
32753         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
32754         makepath.c.
32755         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
32756         (Include): mkdir-p.h, not makepath.h.
32757
32758 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
32759
32760         Sync from coreutils.
32761         * m4/mkdir-p.m4: Renamed from makepath.m4.
32762         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
32763         Rename files from makepath.c to mkdir-p.c, and from
32764         makepath.h to mkdir-p.h.
32765         * m4/filenamecat.m4: Renamed from path-concat.m4.
32766         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
32767         Rename files from path-concat.c to filenamecat.c,
32768         and from path-concat.h to filenamecat.h.
32769         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
32770         "file name" in local variables or comments.
32771         * m4/rename.m4: Likewise.
32772
32773 2005-06-01  Bruno Haible  <bruno@clisp.org>
32774
32775         * modules/csharpexec: New file.
32776         * MODULES.html.sh (C#): New section.
32777
32778 2005-06-01  Bruno Haible  <bruno@clisp.org>
32779
32780         * m4/csharp.m4: New file, from GNU gettext.
32781         * m4/csharpexec.m4: New file, from GNU gettext.
32782
32783 2005-06-01  Bruno Haible  <bruno@clisp.org>
32784
32785         * lib/csharpexec.h: New file, from GNU gettext.
32786         * lib/csharpexec.c: New file, from GNU gettext.
32787         * lib/csharpexec.sh.in: New file, from GNU gettext.
32788
32789 2005-05-31  Derek Price  <derek@ximbiot.com>
32790             Paul Eggert  <eggert@cs.ucla.edu>
32791
32792         Sync from cvs.
32793         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
32794
32795 2005-05-31  Derek Price  <derek@ximbiot.com>
32796             Paul Eggert  <eggert@cs.ucla.edu>
32797
32798         Sync from cvs.
32799         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
32800
32801 2005-05-29  Derek Price  <derek@ximbiot.com>
32802
32803         * config/srclist.txt (glob_.h, glob.c): Add these files.
32804
32805 2005-05-29  Derek Price  <derek@ximbiot.com>
32806
32807         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
32808         * modules/glob: New file.
32809         * modules/getlogin_r: Add link to POSIX spec in description.
32810
32811 2005-05-29  Derek Price  <derek@ximbiot.com>
32812             Paul Eggert  <eggert@cs.ucla.edu>
32813
32814         * m4/glob.m4: New file.
32815
32816 2005-05-29  Derek Price  <derek@ximbiot.com>
32817             Paul Eggert  <eggert@cs.ucla.edu>
32818
32819         * lib/glob_.h, lib/glob.c: New files.
32820
32821 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
32822
32823         * modules/fts (Files): Remove m4/inttypes-pri.m4.
32824         * modules/fts-lgpl (Depends-on): Remove gettext.
32825
32826 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
32827
32828         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
32829         and don't require gt_INTTYPES_PRI.
32830
32831 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
32832
32833         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
32834
32835         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
32836         the configuration hassle isn't worth it.
32837         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
32838         (LONGEST_MODIFIER, PRIuMAX): Remove.
32839
32840 2005-05-27  Bruno Haible  <bruno@clisp.org>
32841
32842         * lib/getlogin_r.h: Remove second include of <stddef.h>.
32843
32844 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
32845
32846         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
32847         _POSIX_PTHREAD_SEMANTICS for Solaris.
32848
32849 2005-05-25  Derek Price  <derek@ximbiot.com>
32850
32851         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
32852
32853 2005-05-25  Derek Price  <derek@ximbiot.com>
32854             Paul Eggert  <eggert@cs.ucla.edu>
32855
32856         * modules/getlogin_r, m4/getlogin_r.m4: New files.
32857         * lib/getlogin_r.c, getlogin_r.h: New files.
32858
32859 2005-05-25  Bruno Haible  <bruno@clisp.org>
32860             Derek Price  <derek@ximbiot.com>
32861
32862         * lib/getlogin_r.h: Simplify API documentation.
32863
32864 2005-05-23  Derek Price  <derek@ximbiot.com>
32865
32866         * modules/minmax (Files): Add m4/minmax.m4.
32867         (configure.ac): Add gl_MINMAX.
32868
32869 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
32870
32871         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
32872         so that unistd-safer.h (GPL'ed code) need not be included.
32873
32874 2005-05-22  Bruno Haible  <bruno@clisp.org>
32875
32876         * m4/minmax.m4: New file.
32877         Based on a patch by Derek Price <derek@ximbiot.com>.
32878
32879 2005-05-22  Bruno Haible  <bruno@clisp.org>
32880
32881         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
32882         (INT64_MIN): Fix definition.
32883         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
32884
32885         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
32886         NEED_SIGNED_INT_TYPES.
32887
32888         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
32889         HAVE_SYSTEM_INTTYPES.
32890
32891 2005-05-22  Bruno Haible  <bruno@clisp.org>
32892
32893         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
32894         Also include <sys/param.h> if it defines MIN, MAX.
32895         Based on a patch by Derek Price <derek@ximbiot.com>.
32896
32897 2005-05-21  Jim Meyering  <jim@meyering.net>
32898
32899         * modules/fts (Files): Add m4/inttypes-pri.m4.
32900         (Depends-on): Add lstat and remove gettext.  Alphabetize.
32901
32902 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
32903
32904         New fts module.
32905         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
32906         (setup_dir, free_dir): New functions.
32907         (enter_dir, leave_dir): Define trivial
32908         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
32909         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
32910         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
32911         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
32912         Move to fts-cycle.c.
32913         (fts_open): Use setup_dir.
32914         (fts_close): Use free_dir.
32915         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
32916         This adds a label and some gotos, but the alternatives were messier.
32917         Check for memory allocation failure when entering a dir.
32918         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
32919         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
32920         (FTS): New member fts_cycle, that is a union that contains the
32921         old active_dir_ht and cycle_state.  All uses changed to mention
32922         fts_cycle.ht and fts_cycle.state.
32923         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
32924         fts.c, with the following changes:
32925         (setup_dir, free_dir): New functions.
32926         (enter_dir): Now returns bool.  Return true if successful, false
32927         if memory exhausted.  All callers changed.
32928         Do not bother partly cleaning up on
32929         memory allocation failure; that is free_dir's job.
32930         However, free ad if hash_insert fails, to avoid memory leak.
32931         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
32932         fts->fts_options to see which union member to use.
32933
32934 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
32935
32936         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
32937         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
32938
32939 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
32940
32941         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
32942
32943 2005-05-20  Jim Meyering  <jim@meyering.net>
32944
32945         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
32946         Now a macro, to pacify GCC.
32947
32948 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
32949
32950         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
32951         of -1.
32952
32953 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
32954
32955         * lib/chown.c (rpl_chown): Return -1 on failure.
32956
32957 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
32958
32959         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
32960         Don't check for stddef.h.
32961         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
32962         don't use its results.
32963         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
32964         since we include them unconditionally.  Don't require
32965         AM_STDBOOL_H, since stdbool is a prerequisite.
32966         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
32967         since we assume C89 or better.
32968         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
32969         as we don't use their results.
32970         Don't check for fchdir, memmove, memset, strrchr, as we use
32971         them unconditionally.
32972         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
32973         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
32974
32975 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
32976
32977         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
32978         Include <stddef.h> unconditionally, since we assume C89 now.
32979         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
32980         * lib/fts.c: Include fts_.h first, to check interface.
32981         Do not include intprops.h; no longer needed.
32982         Include cycle-check.h and hash.h, since fts_.h no longer does.
32983         Remove unnecessary casts of closedir to void.
32984         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
32985         decide whether to decrement nlinks.
32986         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
32987         (FTS): Use struct hash_table * instead of Hash_table, so that
32988         we no longer need to include hash.h here.
32989
32990 2005-05-18  Jim Meyering  <jim@meyering.net>
32991
32992         * modules/dirfd (License): Change to LGPL.  Most of the code
32993         is already in the public domain.
32994
32995 2005-05-18  Jim Meyering  <jim@meyering.net>
32996
32997         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
32998         Reported by Yoann Vandoorselaere.
32999
33000 2005-05-17  Jim Meyering  <jim@meyering.net>
33001
33002         * m4/fts.m4: New file, from coreutils.
33003
33004 2005-05-17  Jim Meyering  <jim@meyering.net>
33005
33006         * lib/fts.c, lib/fts_.h: New files, from coreutils.
33007
33008 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
33009
33010         Sync from coreutils.
33011         * m4/unlinkdir.m4: New file.
33012
33013 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
33014
33015         Sync from coreutils.
33016         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
33017         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
33018         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
33019         White space changes only.
33020         * lib/makepath.c (make_path): Port to hosts where leading "//" is
33021         special.
33022         * lib/yesno.c: Include getline.h, not ctype.h.
33023         (yesno): Don't remove leading white space; POSIX doesn't allow it.
33024         Use getline to remove arbitrary restriction on response length.
33025
33026 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
33027
33028         * config/srclist-update: Spell out "Street" in FSF postal
33029         mail address; this is the style the FSF seems to prefer.
33030
33031         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
33032         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
33033         this updates FSF postal mail address.
33034
33035         Sync from coreutils.
33036         * modules/unlinkdir: New file.
33037         * modules/yesno (Depends-on): Add getline.
33038         * MODULES.html.sh (File system functions): Add unlinkdir.
33039
33040 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
33041
33042         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
33043         lib/strsep.h:
33044         Change the initial comment to refer to GPL, not LGPL.
33045         gnulib-tool will change it to LGPL as needed.
33046
33047         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
33048         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
33049         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
33050         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
33051         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
33052         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
33053         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
33054         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
33055         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
33056         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
33057         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
33058         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
33059         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
33060         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
33061         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
33062         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
33063         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
33064         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
33065         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
33066         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
33067         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
33068         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
33069         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
33070         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
33071         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
33072         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
33073         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
33074         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
33075         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
33076         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
33077         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
33078         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
33079         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
33080         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
33081         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
33082         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
33083         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
33084         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
33085         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
33086         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
33087         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
33088         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
33089         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
33090         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
33091         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
33092         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
33093         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
33094         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
33095         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
33096         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
33097         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
33098         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
33099         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
33100         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
33101         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
33102         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
33103         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
33104         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
33105         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
33106         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
33107         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
33108         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
33109         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
33110         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
33111         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
33112         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
33113         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
33114         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
33115         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
33116         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
33117         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
33118         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
33119         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
33120         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
33121         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
33122         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
33123         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
33124         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
33125         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
33126         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
33127         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
33128         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
33129         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
33130         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
33131         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
33132         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
33133         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
33134         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
33135         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
33136         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
33137         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
33138         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
33139         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
33140         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
33141         lib/yesno.c, lib/yesno.h:
33142         Update FSF postal mail address.
33143
33144 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
33145
33146         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
33147         tests/test-memmem.c, tests/test-stpncpy.c:
33148         Update FSF postal mail address.
33149
33150 2005-05-13  Bruno Haible  <bruno@clisp.org>
33151
33152         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
33153         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
33154         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
33155         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
33156         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
33157         Add support for 64-bit integers in the MSVC compiler.
33158
33159 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
33160
33161         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
33162
33163 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
33164
33165         * gnulib-tool (func_import): Sort and uniquify recommended includes.
33166
33167 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
33168
33169         * doc/getdate.texi (General date syntax): Don't say that date
33170         date --iso-8601=ns generates acceptable dates; it doesn't yet.
33171         Problem reported by Nic Ferrier.
33172
33173 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33174
33175         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
33176         specified in ai_socktype. Fix invalid ai_protocol
33177         check. ai_protocol is usually set to 0 or depending on
33178         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
33179         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
33180         ai_socktype / ai_protocol in the returned addrinfo structure.
33181
33182 2005-05-10  Simon Josefsson  <jas@extundo.com>
33183
33184         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
33185         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
33186
33187 2005-05-10  Karl Berry  <karl@gnu.org>
33188
33189         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
33190         (from http://www.gnu.org/licenses).
33191         * doc/COPYING.LIB: also rename to COPYING.LESSER.
33192         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
33193         fdl.texi suffices.
33194
33195 2005-05-10  Karl Berry  <karl@gnu.org>
33196
33197         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
33198         (COPYING.DOC): remove.
33199
33200         * config/srclist-update: new FSF address.
33201
33202 2005-05-10  Derek Price  <derek@ximbiot.com>
33203
33204         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
33205         possible.
33206
33207 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33208             Bruno Haible  <bruno@clisp.org>
33209
33210         * modules/inet_ntop: New file.
33211         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
33212         inet_ntop.
33213
33214 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33215             Bruno Haible  <bruno@clisp.org>
33216
33217         * m4/inet_ntop.m4: New file.
33218
33219 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
33220             Bruno Haible  <bruno@clisp.org>
33221
33222         * lib/inet_ntop.h: New file.
33223         * lib/inet_ntop.c: New file, from glibc with modifications.
33224
33225 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
33226
33227         * modules/time_r (License): Change to LGPL.
33228         * modules/extensions (License): Change to LGPL.  Actually,
33229         the license is more permissive than that, but currently gnulib-tool
33230         doesn't know how to handle more-permissive licenses.
33231
33232         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
33233         Problem reported by Dave Love.
33234
33235 2005-05-08  Jim Meyering  <jim@meyering.net>
33236
33237         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
33238         blank.
33239
33240 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
33241
33242         * modules/argmatch (Depends-on): Add stdbool.
33243         * modules/backupfile (Depends-on): Likewise.
33244         * modules/chdir-long (Depends-on): Likewise.
33245         * modules/closeout (Depends-on): Likewise.
33246         * modules/cycle-check (Depends-on): Likewise.
33247         * modules/dirname (Depends-on): Likewise.
33248         * modules/fnmatch (Depends-on): Likewise.
33249         * modules/fsusage (Depends-on): Likewise.
33250         * modules/fwriteerror (Depends-on): Likewise.
33251         * modules/getcwd (Depends-on): Likewise.
33252         * modules/getloadavg (Depends-on): Likewise.
33253         * modules/hard-locale (Depends-on): Likewise.
33254         * modules/makepath (Depends-on): Likewise.
33255         * modules/mountlist (Depends-on): Likewise.
33256         * modules/nanosleep (Depends-on): Likewise.
33257         * modules/posixtm (Depends-on): Likewise.
33258         * modules/quotearg (Depends-on): Likewise.
33259         * modules/readtokens (Depends-on): Likewise.
33260         * modules/readtokens0 (Depends-on): Likewise.
33261         * modules/readutmp (Depends-on): Likewise.
33262         * modules/save-cwd (Depends-on): Likewise.
33263         * modules/strftime (Depends-on): Likewise.
33264         * modules/userspec (Depends-on): Likewise.
33265         * modules/utimecmp (Depends-on): Likewise.
33266         * modules/xgetcwd (Depends-on): Likewise.
33267         * modules/xnanosleep (Depends-on): Likewise.
33268         * modules/xstrtod (Depends-on): Likewise.
33269         * modules/yesno (Depends-on): Likewise.
33270
33271 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
33272
33273         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
33274         needless checks.
33275
33276 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
33277
33278         Merge from coreutils.  Among other things,
33279         add bulletproofing for cases where stdin, stdout, or stderr are closed.
33280         * lib/fd-safer.c: New file.
33281         * lib/fcntl-safer.h, open-safer.c: Remove.
33282         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
33283         * lib/dup-safer.c: Include unistd-safer.h first.
33284         Don't include errno.h.
33285         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
33286         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
33287         * lib/file-type.c: Rely on file-type.h change.
33288         * lib/getloadavg.c: Include unistd-safer.h.
33289         (getloadavg): Use safer open.
33290         * lib/getusershell.c: Include "stdio-safer.h".
33291         (getusershell): Use safer fopen.
33292         * lib/long-options.c (long_options): Use NULL rather than 0.
33293         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
33294         'free'.
33295         * lib/modechange.c: Likewise.
33296         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
33297         (MODE_DONE): New constant.
33298         (struct mode_change): Remove 'next' member.
33299         (make_node_op_equals): New function; like the old one of the
33300         same name, except it allocates an array.
33301         (mode_compile, mode_create_from_ref): Use it.
33302         (mode_compile): Allocate result as an array, not a linked list.
33303         Parse octal string ourself, so that we catch mistakes like "+0".
33304         (mode_adjust): Arg is an array, not a linked list.
33305         * lib/modechange.c: Include stat-macros.h, xalloc.h.
33306         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
33307         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
33308         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
33309         Remove.  This is now stat-macros.h's job.
33310         (talloc): Remove.  All callers replaced by xalloc, so that
33311         our invokers don't have to worry about reporting memory failures.
33312         (make_node_op_equals): Remove.
33313         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
33314         New constants.
33315         (struct mode_change): Moved here from modechange.h.
33316         (mode_append_entry): Remove.
33317         (mode_compile): Remove MASKED_OPS arg, since it encouraged
33318         apps to have incorrect behavior.  Use simpler algorithm for head
33319         and tail.  Don't futz with umask; that's now the job of mode_adjust.
33320         Detect more invalid usages rather than having somewhat-random behavior.
33321         Don't insert an "a=" action, as that leads to incorrect behavior.
33322         (mode_compile, mode_create_from_ref): Return NULL on error instead
33323         of an enum, since now there's only one way to have an error.  All
33324         callers changed.
33325         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
33326         at the correct time.  Simplify calculation of "+u" and its ilk.
33327         Don't mishandle "+X".
33328         (mode_free): Remove "register" and localize decls.
33329         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
33330         (struct mode_change): Move to modechange.c; callers don't
33331         need to see this stuff.
33332         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
33333         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
33334         (mode_change, mode_adjust): Reflect the new signatures noted above.
33335         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
33336         that might redefine system include files.
33337         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
33338         (my_usleep): Use NULL rather than (void *) 0.
33339         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
33340         Use siginterrupt to specify that system calls should be interrupted.
33341         (rpl_nanosleep): Move initialization of suspended closer to call of
33342         my_usleep.
33343         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
33344         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
33345         (desirable_utmp_entry): New function.
33346         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
33347         using x2nrealloc, to simplify logic.
33348         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
33349         size calculation.  Do not assume utmp file is a regular file.
33350         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
33351         (READ_UTMP_CHECK_PIDS): New constant.
33352         * lib/save-cwd.c: Include unistd-safer.h.
33353         (save_cwd): Use fd_safer.
33354         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
33355         [!_LIBC] Include "stat-macros.h" instead.
33356         * lib/unistd-safer.h (fd_safer): New decl.
33357
33358 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
33359
33360         * modules/getloadavg (Depends-on): Add unistd-safer.
33361         * modules/getusershell (Depends-on): Add stdio-safer.
33362         * modules/lstat (Depends-on): Remove xalloc.
33363         * modules/mkstemp (Depends-on): Add stat-macros.
33364         * modules/modechange (Depends-on): Remove xstrtol.
33365         Add stat-macros, xalloc.
33366         * modules/save-cwd (Depends-on): Add unistd-safer.
33367         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
33368         * modules/unistd-safer (Files): Add lib/fd-safer.c
33369         (Makefile.am): Remove lib_SOURCES.
33370
33371         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
33372         Remove fcntl-safer; unistd-safer supersedes it.
33373
33374 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
33375
33376         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
33377         AC_HEADER_STAT.
33378         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
33379         (gl_PREREQ_CHOWN): Remove.
33380         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
33381         it.  Don't require AC_HEADER_STAT.
33382         (gl_PREREQ_LSTAT): Remove.
33383         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
33384         Don't require AC_HEADER_STAT.
33385         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
33386         (gl_PREREQ_RMDIR): Remove.
33387         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
33388         mention stat-macros.h or AC_HEADER_STAT, since we'll make
33389         the stat-macros module a prerequisite.
33390         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
33391         * m4/filemode.m4 (gl_FILEMODE): Likewise.
33392         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
33393         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
33394         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
33395         variable names.
33396         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
33397         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
33398         variable prefixes.
33399         * m4/fcntl-safer.m4: Remove.
33400         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
33401         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
33402         Invoke gl_PREREQ_FD_SAFER.
33403         (gl_PREREQ_FD_SAFER): New macro.
33404         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
33405         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
33406         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
33407         Remove duplicate call to AC_LIBOBJ(readutmp).
33408         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
33409
33410         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
33411         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
33412
33413 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
33414
33415         * MODULES.html.sh (Misc): Add byteswap.
33416
33417 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
33418
33419         * modules/getcwd (Depends-on): Add extensions.
33420         * modules/openat (Depends-on): Likewise.
33421
33422 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
33423
33424         * modules/byteswap: New file.
33425
33426 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
33427
33428         * m4/byteswap.m4: New file.
33429
33430 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
33431
33432         * lib/byteswap_.h: New file.
33433
33434 2005-04-25  Karl Berry  <karl@gnu.org>
33435
33436         * m4/gettext.m4: Update from GNU gettext 0.14.4.
33437
33438 2005-04-25  Albert Chin  <china@thewrittenword.com>
33439
33440         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
33441         Toolkit C bug.
33442
33443 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
33444
33445         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
33446         (func_ln_if_changed) Remove forcibly for no error message
33447         in case file does not exist.
33448
33449 2005-04-19  Simon Josefsson  <jas@extundo.com>
33450
33451         * gnulib-tool (Options): Make --symlink mean --symbolic.
33452
33453 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
33454
33455         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
33456
33457 2005-04-16  Simon Josefsson  <jas@extundo.com>
33458
33459         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
33460
33461 2005-04-15  Simon Josefsson  <jas@extundo.com>
33462
33463         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
33464
33465 2005-04-15  Simon Josefsson  <jas@extundo.com>
33466
33467         * gnulib-tool: Rename --symlink to --symbolic.
33468
33469 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
33470
33471         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
33472         symbolic links to files instead of copying/moving.  Add --aux-dir,
33473         specifying directory relative --dir where auxiliary build tools
33474         are placed.
33475
33476 2005-04-14  Bruno Haible  <bruno@clisp.org>
33477
33478         * modules/allocsa (License): Change to LGPL.
33479         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
33480
33481 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
33482
33483         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
33484         that "UTC +1 second" continues to work.  Problem reported
33485         by Dmitry V. Levin.
33486         (relunit_snumber): New rule.
33487         (relunit): Use it.
33488
33489 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
33490
33491         * lib/getdate.y (universal_time_zone_table): New constant.
33492         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
33493         universal_time_zone_table.
33494         (lookup_zone): Prefer universal_time_zone_table to
33495         local_time_zone_table, so that "GMT" time stamps are allowed in
33496         London during the summer.  Problem reported by Ian Abbott.
33497
33498 2005-04-12  Jim Meyering  <jim@meyering.net>
33499
33500         * lib/human.c (humblock): Set *options even when returning due to
33501         xstrtoumax conversion failure.  Thanks to a used-uninitialized
33502         warning from gcc-4.
33503
33504 2005-04-09  Jim Meyering  <jim@meyering.net>
33505
33506         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
33507         -Wuninitialized: initialize tm0.tm_year.
33508
33509 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
33510
33511         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
33512         count, since there's no maximum.  All uses changed.
33513         Add member dsts_seen.
33514         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
33515         not being INT_MAX.
33516         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
33517         Use pc_rels_seen to decide whther a date is absolute.
33518
33519         * lib/getdate.y (number): Don't overwrite year.
33520         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
33521         check.
33522
33523 2005-04-02  Simon Josefsson  <jas@extundo.com>
33524
33525         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
33526         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
33527
33528 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
33529
33530         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
33531         where no absolute path name can be longer than PATH_MAX.
33532
33533 2005-03-27  Jim Meyering  <jim@meyering.net>
33534
33535         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
33536
33537 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
33538
33539         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
33540         "one's complement" -> "ones' complement" in comment, as per Knuth.
33541         "value of type" -> "type or expression" in comment.
33542         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
33543
33544 2005-03-26  Jim Meyering  <jim@meyering.net>
33545
33546         Comment nits.
33547         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
33548         Correct typos: s/or/of/.
33549
33550 2005-03-26  Jim Meyering  <jim@meyering.net>
33551
33552         * modules/check-include-files: Move to ../ and rename to...
33553         * check-module: ...this.
33554
33555 2005-03-25  Jim Meyering  <jim@meyering.net>
33556
33557         * modules/xvasprintf (Files): Add xalloc.h.
33558
33559 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
33560
33561         * modules/gettext (Files): config/config.rpath ->
33562         build-aux/config.rpath
33563         * modules/iconv (Files): Likewise.
33564         Problem reported by Oskar Liljeblad.
33565
33566 2005-03-23  Jim Meyering  <jim@meyering.net>
33567
33568         * modules/check-include-files: New script to check for
33569         missing dependencies, multiple includes, etc.
33570
33571         * modules/c-strtold (Depends-on): Add xalloc.
33572         * modules/c-strtod (Depends-on): Add xalloc.
33573         * modules/hash (Depends-on): Add xalloc.
33574         (Files): Remove lib/xalloc.h.
33575
33576         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
33577         * modules/userspec (Files): Add lib/inttostr.h.
33578
33579 2005-03-23  Jim Meyering  <jim@meyering.net>
33580
33581         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
33582
33583 2005-03-22  Jim Meyering  <jim@meyering.net>
33584
33585         * modules/stat-macros: New module.
33586         * modules/canonicalize, modules/euidaccess, modules/file-type,
33587         * modules/filemode, modules/lchown, modules/makepath,
33588         * modules/rmdir, modules/stat: Depend on new stat-macros module
33589         rather than listing lib/stat-macros.h manually.
33590         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
33591
33592 2005-03-22  Jim Meyering  <jim@meyering.net>
33593
33594         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
33595
33596 2005-03-22  Bruno Haible  <bruno@clisp.org>
33597
33598         * config/srclist.txt: Replace target directory 'config' with
33599         'build-aux'.
33600         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
33601         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
33602         ../build-aux/.
33603
33604 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
33605
33606         * modules/chdir-long (Depends-on): Add mempcpy.
33607
33608         * modules/acl, modules/backupfile, modules/c-strtod,
33609         modules/c-strtold, modules/canon-host, modules/canonicalize,
33610         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
33611         modules/exclude, modules/exitfail, modules/file-type,
33612         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
33613         modules/getdate, modules/getline, modules/getpagesize,
33614         modules/getpass, modules/getugroups, modules/group-member,
33615         modules/hard-locale, modules/hash, modules/human, modules/idcache,
33616         modules/inttostr, modules/long-options, modules/makepath,
33617         modules/md5, modules/memcasecmp, modules/memcoll,
33618         modules/modechange, modules/mountlist, modules/path-concat,
33619         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
33620         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
33621         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
33622         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
33623         modules/strftime, modules/strndup, modules/strverscmp,
33624         modules/timespec, modules/unlocked-io, modules/userspec,
33625         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
33626         modules/yesno:
33627         Remove lib_SOURCES line from Makefile.am section, as this is now
33628         done automatically by the corresponding Autoconf macro.
33629
33630 2005-03-21  Jim Meyering  <jim@meyering.net>
33631
33632         Changes imported from coreutils.
33633
33634         * lib/cycle-check.c: Don't include xalloc.h.
33635
33636         * lib/path-concat.c: Don't include assert.h.
33637         (path_concat): Remove assertion that would have triggered
33638         for ABASE starting with more than one slash.
33639         Reported by Andreas Schwab.
33640
33641         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
33642         properly when ABASE is an absolute file name.
33643         Correct the description of this function.
33644         Include <assert.h>.
33645         Add an assertion and a test driver.
33646         This fixes a bug introduced on 2004-07-02.
33647         Andreas Schwab reported the resulting failure of cp --parents:
33648         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
33649
33650 2005-03-21  Jim Meyering  <jim@meyering.net>
33651
33652         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
33653         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
33654
33655 2005-03-21  Jim Meyering  <jim@meyering.net>
33656         and  Paul Eggert  <eggert@cs.ucla.edu>
33657
33658         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
33659         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
33660         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
33661         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
33662         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
33663         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
33664         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
33665         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
33666         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
33667         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
33668         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
33669         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
33670         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
33671         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
33672         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
33673         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
33674         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
33675         for these modules.
33676
33677 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
33678
33679         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
33680         (which shouldn't happen), generate nothing instead of returning 0
33681         immediately, so that nstrftime (NULL, ...) doesn't return 0.
33682
33683 2005-03-16  Bruno Haible  <bruno@clisp.org>
33684
33685         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
33686         HAVE_LONGLONG_64BIT.
33687
33688 2005-03-16  Bruno Haible  <bruno@clisp.org>
33689
33690         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
33691         HAVE_LONGLONG_64BIT.
33692
33693 2005-03-16  Bruno Haible  <bruno@clisp.org>
33694
33695         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
33696         HAVE_LONGLONG_64BIT.
33697
33698 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
33699
33700         * lib/strftime.c (my_strftime): Prepend space to format so that we can
33701         reliably distinguish strftime failure from empty output on POSIX
33702         hosts.
33703
33704 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
33705
33706         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
33707         (iconv_string): Don't guess a size-zero buffer, as that might cause
33708         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
33709         result would be 'too large', where 'too large' is (heuristically)
33710         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
33711         overflow concerns.  This will prevent some unwanted malloc failures
33712         when the inputs are very large.
33713
33714 2005-03-15  Karl Berry  <karl@gnu.org>
33715
33716         * config/srclist.txt (config.rpath): from gettext.
33717         * config/config.rpath: update.
33718
33719 2005-03-15  Bruno Haible  <bruno@clisp.org>
33720
33721         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
33722         to 'negate'.
33723
33724         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
33725         variable.
33726
33727         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
33728         results.
33729
33730 2005-03-14  Simon Josefsson  <jas@extundo.com>
33731
33732         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
33733         <fx@gnu.org>.
33734
33735 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
33736
33737         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
33738         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
33739         intprops.h.
33740         * lib/strtol.c: Likewise.
33741
33742 2005-03-14  Jim Meyering  <jim@meyering.net>
33743
33744         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
33745         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
33746         to be nonzero so that we (and caller) can detect the difference
33747         between a valid zero-length expansion and an error return, even
33748         when the underlying strftime fails before writing anything into
33749         that location.
33750
33751 2005-03-14  Bruno Haible  <bruno@clisp.org>
33752
33753         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
33754         Update from GNU gettext 0.14.3.
33755
33756 2005-03-10  Jim Meyering  <jim@meyering.net>
33757
33758         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
33759
33760 2005-03-10  Jim Meyering  <jim@meyering.net>
33761
33762         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
33763         so that this module works on systems without fchdir.
33764
33765 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
33766
33767         Factor int-properties macros into a single file, except for
33768         glibc-related files.
33769         * lib/intprops.h: New file.
33770         * lib/getloadavg.c: Include it instead of limits.h.
33771         (INT_STRLEN_BOUND): Remove.
33772         * lib/human.c: Include intprops.h.
33773         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
33774         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
33775         302/1000.
33776         * lib/inttostr.h: Include intprops.h instead of limits.h.
33777         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
33778         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
33779         for consistency with intprops.h.
33780         (time_t_is_integer, twos_complement_arithmetic): Use them.
33781         * lib/sig2str.h: Include <signal.h>, intprops.h.
33782         (INT_STRLEN_BOUND): Remove.
33783         * lib/strftime.c (TYPE_SIGNED): Remove.
33784         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
33785         * lib/strtol.c: Adjust comments to match intprops.h.
33786         * lib/userspec.c: Include intprops.h.
33787         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
33788         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
33789         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
33790         instead of rolling our own expressions.
33791         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
33792
33793         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
33794         instead of int.
33795         (my_strftime): Do not mishandle years close to INT_MAX, by doing
33796         the right thing even if adding 1900 would overflow.  Similarly
33797         for tm_mon + 1 and tm_yday + 1.
33798         Make %Y always equivalent to %C%y, and similarly for %G and %g.
33799         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
33800         (DO_SIGNED_NUMBER): New macro.
33801         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
33802
33803 2005-03-07  Bruno Haible  <bruno@clisp.org>
33804
33805         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
33806
33807 2005-03-07  Bruno Haible  <bruno@clisp.org>
33808
33809         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
33810
33811 2005-03-04  Derek R. Price  <derek@ximbiot.com>
33812
33813         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
33814         (func_import): Only replace files via --import when they have actually
33815         changed.
33816
33817 2005-03-03  Derek R. Price  <derek@ximbiot.com>
33818
33819         * m4/mmap-anon.m4: New file.
33820         * m4/pagealign_alloc.m4: New file.
33821
33822 2005-03-03  Derek R. Price  <derek@ximbiot.com>
33823             Bruno Haible  <bruno@clisp.org>
33824
33825         * modules/pagealign_alloc: New file.
33826         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
33827
33828 2005-03-03  Derek R. Price  <derek@ximbiot.com>
33829             Bruno Haible  <bruno@clisp.org>
33830
33831         * lib/pagealign_alloc.h: New file.
33832         * lib/pagealign_alloc.c: New file.
33833
33834 2005-03-03  Bruno Haible  <bruno@clisp.org>
33835
33836         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
33837         Use an all-permissive copyright notice, recommended by RMS.
33838
33839 2005-03-02  Bruno Haible  <bruno@clisp.org>
33840
33841         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
33842         of AIX, the replacement has to be done only after <string.h> is
33843         included, therefore not in config.h. stpncpy.h does the replacement,
33844         and stpncpy.c uses it.
33845
33846 2005-03-02  Bruno Haible  <bruno@clisp.org>
33847
33848         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
33849         stpncpy.c uses it.
33850
33851 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
33852
33853         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
33854         The workaround isn't strictly needed for POSIX conformance, and
33855         it's too much of a pain to configure and maintain.  We'll ask
33856         people to fix their kernels instead.
33857         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
33858         (NANOSLEEP_BUG_WORKAROUND): Remove.
33859         (xnanosleep): Remove the workaround.
33860
33861 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
33862
33863         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
33864         Reported by Derek Price.
33865         (Include): Add "timespec.h".
33866
33867         * modules/xnanosleep (Depends-on): Remove gethrxtime.
33868
33869 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
33870
33871         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
33872         to detect nanosleep bug.
33873
33874 2005-03-01  Bruno Haible  <bruno@clisp.org>
33875
33876         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
33877
33878 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
33879
33880         * modules/gethrxtime: New file.
33881         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
33882         (Depends-on): Add gethrxtime.
33883         (configure.ac): Add gl_XNANOSLEEP.
33884         (Makefile.am): Remove lib_SOURCES line.
33885
33886 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
33887
33888         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
33889         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
33890
33891 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
33892
33893         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
33894         * lib/timespec.h (gettime): Return void, since it always
33895         succeeds now.  All uses changed.
33896         * lib/gettime.c (gettime) Likewise.
33897         [HAVE_NANOTIME]: Prefer nanotime.
33898         Assume gettimeofday succeeds, as POSIX requires.
33899         Assime time () succeeds, since other code already does.
33900         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
33901         (timespec_subtract): Remove.
33902         (NANOSLEEP_BUG_WORKAROUND): New constant.
33903         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
33904         things considerably.  Use it only on GNU/Linux hosts, since the
33905         workaround shouldn't be needed elsewhere.
33906
33907 2005-02-24  Bruno Haible  <bruno@clisp.org>
33908
33909         * modules/gettext (Files): Add m4/glibc2.m4.
33910
33911 2005-02-24  Bruno Haible  <bruno@clisp.org>
33912
33913         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
33914         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
33915         * m4/progtest.m4:
33916         Update from GNU gettext 0.14.2.
33917         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
33918
33919 2005-02-24  Bruno Haible  <bruno@clisp.org>
33920
33921         * lib/localcharset.c: Update from GNU gettext 0.14.2.
33922         * lib/config.charset: Update from GNU gettext 0.14.2.
33923
33924 2005-02-24  Bruno Haible  <bruno@clisp.org>
33925
33926         * lib/gettext.h: Update from GNU gettext 0.14.2.
33927
33928 2005-02-23  Simon Josefsson  <jas@extundo.com>
33929
33930         * m4/iconvme.m4: New file.
33931
33932 2005-02-23  Jim Meyering  <jim@meyering.net>
33933
33934         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
33935         change.
33936         Thanks to Bruno Haible for catching it.
33937
33938 2005-02-22  Simon Josefsson  <jas@extundo.com>
33939
33940         * modules/iconvme: New file.
33941
33942         * MODULES.html.sh: Add iconvme.
33943
33944 2005-02-22  Simon Josefsson  <jas@extundo.com>
33945
33946         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
33947
33948 2005-02-22  Simon Josefsson  <jas@extundo.com>
33949
33950         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
33951
33952 2005-02-22  Jim Meyering  <jim@meyering.net>
33953
33954         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
33955         s/ifndef/ifdef/.
33956
33957 2005-02-20  Neil Conway  <neilc@samurai.com>
33958
33959         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
33960         returned by OSX/Darwin if the specified buffer is not large
33961         enough for the hostname.
33962
33963 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
33964
33965         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
33966         pass it to _help, otherwise the latter coredumps trying to
33967         dereference state.root_argp.
33968
33969 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
33970
33971         * modules/chdir-long (Depends-on): Add memrchr.
33972         * modules/memrchr (Files): Add lib/memrchr.h.
33973         (Include): "memrchr.h".
33974
33975 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
33976
33977         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
33978
33979 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
33980
33981         * lib/memrchr.h: New file.
33982         * lib/chdir-long.c: Include it.
33983         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
33984         Don't bother including stddef.h.
33985
33986 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
33987
33988         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
33989         inclusion.
33990         Include <sys/types.h>, for dev_t.
33991         (ME_DUMMY, ME_REMOTE): Move from here....
33992         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
33993         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
33994         Dmitry V. Levin.
33995         Include mountlist.h first, to test the interface.
33996
33997 2005-01-29  Bruno Haible  <bruno@clisp.org>
33998
33999         * lib/progname.c (program_name): Initialize.
34000         Needed when linking statically on MacOS X.
34001
34002 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
34003
34004         Sync from coreutils.
34005         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
34006         (Depends-on): Add c-strtod.
34007         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
34008
34009 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
34010
34011         Sync from coreutils.
34012         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
34013
34014         Remove files that are specific to coreutils.
34015         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
34016
34017 2005-01-28  Bruno Haible  <bruno@clisp.org>
34018
34019         * modules/javacomp: New file.
34020         * MODULES.html.sh (Java): Add javacomp.
34021
34022 2005-01-28  Bruno Haible  <bruno@clisp.org>
34023
34024         * m4/javacomp.m4: New file, from GNU gettext.
34025
34026 2005-01-28  Bruno Haible  <bruno@clisp.org>
34027
34028         * lib/javacomp.sh.in: New file, from GNU gettext.
34029         * lib/javacomp.h: New file, from GNU gettext.
34030         * lib/javacomp.c: New file, from GNU gettext.
34031
34032 2005-01-26  Simon Josefsson  <jas@extundo.com>
34033
34034         * lib/gai_strerror.c: Use GPL in header.
34035
34036 2005-01-26  Bruno Haible  <bruno@clisp.org>
34037
34038         * modules/javaexec: New file.
34039         * MODULES.html.sh (Java): Add javaexec.
34040
34041 2005-01-26  Bruno Haible  <bruno@clisp.org>
34042
34043         * m4/javaexec.m4: New file, from GNU gettext.
34044
34045 2005-01-26  Bruno Haible  <bruno@clisp.org>
34046
34047         * lib/javaexec.sh.in: New file, from GNU gettext.
34048         * lib/javaexec.h: New file, from GNU gettext.
34049         * lib/javaexec.c: New file, from GNU gettext.
34050
34051 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
34052
34053         * modules/lchown (Depends-on): Remove lchown.h
34054
34055 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
34056
34057         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
34058         must be defined if the header file was not found, in order
34059         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
34060
34061 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
34062
34063         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
34064         initializers for struct pentry_state.
34065         (__argp_error): Check return value of __asprintf
34066         (__argp_failure): Translate error message
34067
34068         * lib/argp-parse.c: Removed braces around the expansion of N_()
34069
34070 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
34071
34072         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
34073         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
34074         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
34075         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
34076         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
34077         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
34078         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
34079         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
34080         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
34081         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
34082         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
34083         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
34084         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
34085         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
34086         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
34087         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
34088         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
34089         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
34090         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
34091         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
34092         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
34093         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
34094         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
34095         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
34096         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
34097         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
34098         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
34099         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
34100         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
34101         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
34102         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
34103         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
34104         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
34105         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
34106         xstrtol.m4, xstrtoumax.m4, yesno.m4:
34107         Use an all-permissive copyright notice, recommended by RMS.
34108
34109 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
34110
34111         * modules/chdir-long (Depends-on): Remove mempcpy.
34112
34113 2005-01-21  Jim Meyering  <jim@meyering.net>
34114
34115         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
34116         same value as for Solaris 9.
34117
34118         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
34119         component length.  This included changing the parameter to be
34120         of type `char *' rather than `char const *'.
34121         * lib/chdir-long.h (chdir_long): Update prototype.
34122
34123         * lib/openat.c (fdopendir, fstatat): New functions.
34124         * lib/openat.h: Include headers required for use of DIR and struct
34125         stat.
34126         [AT_SYMLINK_NOFOLLOW]: Define.
34127         (fdopendir, fstatat): Add prototypes.
34128
34129 2005-01-21  Bruno Haible  <bruno@clisp.org>
34130
34131         * modules/classpath: New file.
34132         * MODULES.html.sh (Java): Add classpath.
34133
34134 2005-01-21  Bruno Haible  <bruno@clisp.org>
34135
34136         * lib/classpath.h: New file, from GNU gettext.
34137         * lib/classpath.c: New file, from GNU gettext.
34138
34139 2005-01-20  Simon Josefsson  <jas@extundo.com>
34140
34141         * modules/version-etc-fsf: New file.
34142
34143 2005-01-20  Simon Josefsson  <jas@extundo.com>
34144
34145         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
34146         * lib/version-etc.c: Remove version_etc_copyright.
34147         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
34148         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
34149
34150 2005-01-20  Simon Josefsson  <jas@extundo.com>
34151
34152         * lib/base64.h (isbase64): Add.
34153
34154         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
34155         using a unsigned prototype, don't inline.
34156         (base64_decode): Use it.
34157
34158 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
34159
34160         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
34161         it.
34162
34163 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
34164
34165         * lib/save-cwd.c (save_cwd): Remove code to support the case
34166         where fchdir is missing or flaky.
34167
34168 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
34169
34170         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
34171
34172 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
34173
34174         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
34175         AC_LIBSOURCES now does this.
34176         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
34177         with new ullong_max module.
34178
34179 2005-01-19  Bruno Haible  <bruno@clisp.org>
34180
34181         * modules/sh-quote: New file.
34182         * MODULES.html.sh (Executing programs): Add sh-quote.
34183
34184 2005-01-19  Bruno Haible  <bruno@clisp.org>
34185
34186         * lib/sh-quote.h: New file, from GNU gettext.
34187         * lib/sh-quote.c: New file, from GNU gettext.
34188
34189 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
34190
34191         Merge from coreutils.
34192         * m4/ullong_max.m4: New file.
34193         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
34194         (gl_MACROS): Assume localeconv exists.
34195
34196 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
34197
34198         Merge changes from coreutils, as described below in several
34199         changelogs dated today.
34200
34201         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
34202         (O_DIRECTORY): Remove; not needed here, since "." must be
34203         a directory.  All uses removed.
34204         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
34205         universal on Suns, and we also need to test for IRIX.
34206         Revamp code to use 'if' rather than '#if'.
34207         Avoid unnecessary comparison of cwd->desc to 0.
34208
34209         * lib/utimens.c (futimens): Robustify the previous patch, by checking
34210         for known valid error numbers rather than observed invalid ones.
34211
34212 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
34213
34214         * modules/ullong_max: New file.
34215
34216         * modules/chdir-long, modules/openat: New files.
34217         * modules/save-cwd (Depends-on): Depend on chdir-long.
34218         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
34219
34220 2005-01-18  Jim Meyering  <jim@meyering.net>
34221
34222         Merge from coreutils.
34223         * m4/chdir-long.m4, m4/openat.m4: New files.
34224         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
34225         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
34226         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
34227         is sane and DOES follow symlinks.  Besides, testing 20 different
34228         systems found no broken chown implementations.
34229         Prompted by a change in rsync's copy of this macro.
34230         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
34231
34232         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
34233
34234         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
34235         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
34236         NULL-means-set-to-current-time semantics.
34237         Remove temporary file immediately, rather than waiting
34238         for configure's at-exit trap code to do it.
34239
34240 2005-01-18  Jim Meyering  <jim@meyering.net>
34241
34242         * lib/version-etc.c (version_etc_copyright): Update copyright date.
34243
34244         * lib/utimens.c (futimens): Account for the fact that futimes
34245         can also fail with errno == ENOSYS or errno == ENOENT.
34246         Patch from Dmitry V. Levin.
34247
34248         Change the name of the robust chdir function from chdir to chdir_long.
34249         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
34250         (restore_cwd): Use chdir_long, not chdir.
34251         * lib/chdir-long.c: Renamed from chdir.c.
34252         * lib/chdir-long.h: Renamed from chdir.h.
34253         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
34254         Hurd.
34255
34256 2005-01-18  Bruno Haible  <bruno@clisp.org>
34257
34258         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
34259         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
34260         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
34261         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
34262         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
34263         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
34264         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
34265         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
34266         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
34267         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
34268         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
34269         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
34270         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
34271         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
34272         Use an all-permissive copyright notice, recommended by RMS.
34273
34274 2005-01-18  Bob Proulx  <bob@proulx.com>
34275
34276         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
34277         simplify offsetof() macro construct to avoid compile failure with
34278         native HP-UX 11.0 ANSI C compiler.
34279
34280 2005-01-17  Bruno Haible  <bruno@clisp.org>
34281
34282         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
34283         redundant because stpncpy.m4 takes care of it.
34284
34285 2005-01-17  Bruno Haible  <bruno@clisp.org>
34286
34287         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
34288
34289 2005-01-17  Bruno Haible  <bruno@clisp.org>
34290
34291         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
34292         used.
34293
34294 2005-01-17  Bruno Haible  <bruno@clisp.org>
34295
34296         * lib/fwriteerror.h (fwriteerror): Change specification to include
34297         fclose.
34298         * lib/fwriteerror.c: Include <stdbool.h>.
34299         (fwriteerror): At the end, close the file stream. Record whether
34300         stdout was already closed.
34301
34302 2005-01-17  Bruno Haible  <bruno@clisp.org>
34303
34304         * lib/execute.c (environ): Declare if needed.
34305         * lib/pipe.c (environ): Likewise.
34306         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
34307
34308 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
34309
34310         * modules/argp: Depend on vsnprintf
34311
34312 2005-01-10  Jim Meyering  <jim@meyering.net>
34313
34314         * modules/closeout (Depends-on): Add atexit.
34315
34316 2005-01-06  Bruno Haible  <bruno@clisp.org>
34317
34318         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
34319
34320 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
34321
34322         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
34323         definitions to be after all include files, to avoid collisions.
34324         Problem reported by Bob Proulx.
34325
34326 2005-01-04  Jim Meyering  <jim@meyering.net>
34327
34328         Changes imported from coreutils.
34329         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
34330         as the mkstemp template, use a temporary directory and an
34331         8.3-friendly template to avoid trouble on systems like DJGPP.
34332         Reported by Juan M. Guerrero via Stepan Kasal.
34333         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
34334         close. Remove the temporary directory right away, rather than waiting
34335         for configure's at-exit trap code to do it.
34336         Suggestion from Stepan Kasal.
34337
34338 2005-01-01  Simon Josefsson  <jas@extundo.com>
34339
34340         * gnulib-tool: Print #include directives when --import'ing.
34341
34342 2004-12-28  Simon Josefsson  <jas@extundo.com>
34343
34344         * tests/test-base64.c: Include required header files.  Remove
34345         unused variables.
34346
34347 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
34348
34349         * modules/error (Depends-on): Remove gettext.
34350
34351 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
34352
34353         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
34354         not needed.  This removes a dependency on the gettext module.
34355         [defined _LIBC]: Do not include <libintl.h>; not needed.
34356
34357 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
34358
34359         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
34360         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
34361
34362 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
34363
34364         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
34365         HAVE_DECL_STRTOLD.
34366
34367 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
34368
34369         * modules/getdate (Depends-on): Remove alloca-opt.
34370
34371 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
34372
34373         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
34374
34375 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
34376
34377         * lib/argp-parse.c: Include <stddef.h>.
34378         (alignof, alignto): New macros.
34379         (parser_init): Don't assume that void * is aligned sufficiently
34380         for struct option.
34381
34382         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
34383         need to extend the stack.
34384         (YYINITDEPTH): New macro, so that the initial stack isn't overly
34385         large.
34386
34387 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
34388
34389         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
34390
34391 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
34392
34393         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
34394         (2004-10-24) change.  Apparently this was a false alarm.
34395
34396         * modules/getdate: Depend on alloca-opt, not alloca.
34397
34398 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
34399
34400         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
34401         Remove now-obsolete comment about AIX.
34402         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
34403         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
34404         (YYMAXDEPTH): New macro.
34405
34406 2004-12-18  Simon Josefsson  <jas@extundo.com>
34407
34408         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
34409
34410 2004-12-18  Bruno Haible  <bruno@clisp.org>
34411
34412         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
34413
34414 2004-12-18  Bruno Haible  <bruno@clisp.org>
34415
34416         * lib/fatal-signal.c (fatal_signals): Make non-const.
34417         (init_fatal_signals): New function.
34418         (uninstall_handlers, install_handlers): Ignore signals that were set to
34419         SIG_IGN.
34420         (at_fatal_signal): Call init_fatal_signals.
34421         (init_fatal_signal_set): Likewise. Ignore signals that were set to
34422         SIG_IGN.
34423         Reported by Paul Eggert.
34424
34425 2004-12-18  Bruno Haible  <bruno@clisp.org>
34426
34427         * doc/alloca.texi: New file.
34428         * doc/alloca-opt.texi: New file.
34429
34430 2004-12-17  Jim Meyering  <jim@meyering.net>
34431
34432         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
34433         Otherwise, install-sh could exit with improper exit status when
34434         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
34435
34436 2004-12-16  Simon Josefsson  <jas@extundo.com>
34437
34438         * tests/test-base64.c: Add license.
34439
34440 2004-12-15  Stepan Kasal  <address@hidden>
34441
34442         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
34443
34444 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
34445
34446         * modules/getcwd (Files): Add m4/d-ino.m4.
34447         Suggested by Mark D. Baushke.
34448
34449 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
34450
34451         * lib/getdate.y (textint): New member "negative".
34452         (time_zone_hhmm): New function.
34453         Expect 14 shift-reduce conflicts, not 13.
34454         (o_colon_minutes): New rule.
34455         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
34456         (yylex): Set the "negative" member of signed numbers.
34457
34458 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
34459
34460         * doc/getdate.texi (Time of day items, Time zone items):
34461         Describe new formats +00:00, UTC+00:00.
34462
34463 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
34464
34465         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
34466         spurious "-l"s.  Problem reported by Stepan Kasal.
34467
34468 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
34469
34470         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
34471         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
34472
34473 2004-12-04  Simon Josefsson  <jas@extundo.com>
34474
34475         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
34476         Vandoorselaere <yoann@prelude-ids.org>.
34477
34478 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
34479
34480         Changes imported from coreutils.
34481         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
34482         exist.
34483         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
34484
34485 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
34486
34487         Changes imported from coreutils.
34488         * lib/hard-locale.c: Assume <locale.h> exists.
34489         Include "strdup.h".
34490         (GLIBC_VERSION): New macro.
34491         (hard_locale): Assume setlocale exists.
34492         Rewrite to avoid #ifdef.
34493         Use strdup rather than malloc + strcpy.
34494         * lib/human.c: Assume <locale.h> exists.
34495         (human_readable): Assume localeconv exists.
34496
34497 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
34498
34499         * modules/hard-locale (Depends-on): Add strdup.
34500
34501 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
34502
34503         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
34504         convert T2, not T.  (Imported from libc.)
34505
34506 2004-11-30  Simon Josefsson  <jas@extundo.com>
34507
34508         * modules/restrict (License): Change to LGPL.
34509
34510 2004-11-30  Simon Josefsson  <jas@extundo.com>
34511
34512         * m4/restrict.m4: Add copyright and copying conditions.
34513
34514 2004-11-30  Simon Josefsson  <jas@extundo.com>
34515
34516         * m4/base64.m4: New file.
34517
34518 2004-11-30  Simon Josefsson  <jas@extundo.com>
34519
34520         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
34521         base64.
34522
34523         * tests/test-base64.c: New file.
34524
34525         * modules/base64: New file.
34526
34527 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
34528
34529         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
34530         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
34531
34532         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
34533
34534 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
34535
34536         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
34537         (__getcwd.c): Don't restore errno; glibc doesn't.
34538         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
34539         first, falling back to our code only if its results look suspicious.
34540         Ensure that the resulting buffer is only as large as necessary.
34541
34542         * lib/readutmp.c: Include readutmp.h first.
34543         Include <errno.h>, since readutmp.h no longer does that.
34544         * lib/readutmp.h: Don't include <errno.h>,
34545         <sys/param.h>, <time.h>; not needed to establish interface.
34546         (errno): Remove decl.
34547         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
34548         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
34549         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
34550
34551 2004-11-28  Simon Josefsson  <jas@extundo.com>
34552
34553         * lib/base64.h, base64.c: New file.
34554
34555 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
34556
34557         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
34558
34559 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
34560
34561         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
34562         (Depends-on): Remove pathmax, same.  Add mempcpy.
34563         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
34564         (Makefile.am): Append getcwd.h to lib_SOURCES.
34565         (Include): Add getcwd.h.
34566         (Maintainer): Change from Jim Meyering to "all, glibc",
34567         since getdate now uses intended-for-glibc code.
34568         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
34569         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
34570
34571 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
34572
34573         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
34574         HP's ANSI C compiler.
34575         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
34576         Declaring int functions causes warnings on some modern systems and
34577         shouldn't be needed to compile on ancient ones.
34578         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
34579         defined.
34580
34581         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
34582         with the following changes.
34583         (__set_errno): Parenthesize properly.
34584         Include <stdbool.h>.
34585         (MIN, MAX, MATCHING_INO): New macros.
34586         (__getcwd): Define with prototype, not K&R form.
34587         Use heuristics to allocate default buffer on stack if possible.
34588         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
34589         behavior, and to avoid the PATH_MAX limit when computing
34590         ../../../../...
34591         Use MATCHING_INO to compare inode number to file.
34592         Check for arithmetic overflow in size calculations.
34593         Fix bug in reallocation of dot array that caused getcwd to fail
34594         on directories nested deeper than 75.
34595         Be more careful about saving errno on error.
34596         Do not use realloc; use only free+malloc, as this is a bit
34597         more flexible and avoids a needless copy operation.
34598         Do not inspect st_dev and st_ino for symbolic links; POSIX
34599         doesn't specify the latter.
34600         Check for closedir errors.
34601         Avoid needless casts.
34602         Use "#ifdef weak_alias" around weak_alias, to be like other
34603         glibc code.
34604         The following changes to getcwd.c have effect only when used in
34605         gnulib; they have no effect inside glibc proper.
34606         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
34607         as alloca isn't used.
34608         (alloca, __alloca): Likewise.
34609         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
34610         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
34611         unconditionally, as gnulib assumes C89 or better.
34612         Do not include <sys/param.h>.
34613         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
34614         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
34615         better.
34616         (NULL) [!defined NULL]: Remove; we assume C89 or better.
34617         Include <dirent.h> in a way that is compatible with modern Autoconf.
34618         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
34619         New macros, if not already defined.
34620         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
34621         Use "_LIBC", not "defined _LIBC", for consistency.
34622         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
34623         a mempcpy module.
34624         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
34625         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
34626         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
34627         credit only to Jim Meyering and adjust the copyright dates.
34628         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
34629         <stdlib.h>, <unistd.h>, "pathmax.h".
34630         Instead, include "xgetcwd.h" (first) and "getcwd.h".
34631         (INITIAL_BUFFER_SIZE): Remove.
34632         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
34633
34634 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
34635
34636         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
34637         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
34638         Use the _ONCE methods, for efficiency.
34639         Check for fcntl.h.  In test program, include <errno.h>
34640         and <fcntl.h> if available.  Remove old K&R cruft from
34641         test program.  Check for common errors in GNU/Linux,
34642         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
34643         don't do AC_LIBOBJ, as that's getcwd.m4's job.
34644         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
34645         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
34646         name accordingly.
34647         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
34648         accommodate new getcwd.c.
34649         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
34650         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
34651         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
34652         that's all we need now.
34653
34654 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
34655
34656         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
34657         argp-parse.c depends on getopt internals, that means we should
34658         always use our getopt, to be on the safe side.
34659         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
34660         order not to spoil the result of an eventual previous invocation
34661         of gl_GETOPT_SUBSTITUTE.
34662
34663 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
34664
34665         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
34666         redefinition warnings. To avoid them, include the defines
34667         in `#if !defined __need_getopt ... #endif'. The only place
34668         where __getopt_argv_const is used is in definitions
34669         of getopt_long and getopt_long_only below, which are as well
34670         protected by `#ifndef __need_getopt'.
34671         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
34672         __need_getopt after including <stdio.h> and <unistd.h> These
34673         headers might have defined it.
34674
34675 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
34676
34677         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
34678
34679 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
34680
34681         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
34682         (futimens): New function, which uses futimes if available.
34683         (futimens, utimens): Support timespec==NULL, with same semantics
34684         as utime and utimens.
34685         * lib/utimens.h (futimens): New decl.
34686
34687 2004-11-23  Jim Meyering  <jim@meyering.net>
34688
34689         * lib/getopt_.h: Remove trailing blanks.
34690
34691 2004-11-23  Jim Meyering  <jim@meyering.net>
34692
34693         * lib/__fpending.c: Add comment.
34694
34695 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
34696
34697         * modules/canonicalize (Depends-on): Add xreadlink.
34698         Problem reported by James Youngman.
34699
34700 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
34701
34702         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
34703         New macros.
34704         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
34705         optopt): Use them instead of invoking ## directly; otherwise, the
34706         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
34707
34708 2004-11-19  Bruno Haible  <bruno@clisp.org>
34709
34710         * lib/strtok_r.c: Move comments from here...
34711         * lib/strtok_r.h: ... to here.
34712
34713 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
34714
34715         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
34716         implementations that mishandle size_t overflow.
34717
34718 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
34719
34720         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
34721         might fail.  Problem reported by Yoann Vandoorselaere.
34722         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
34723         implementations that mishandle size_t overflow.
34724
34725 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
34726
34727         * modules/canon-host (Depends-on): Add strdup.
34728
34729 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
34730
34731         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
34732
34733 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
34734
34735         * lib/canon-host.c: Include "strdup.h".
34736         (canon_host): Use getaddrinfo if available, so that IPv6 works.
34737         Use strdup instead of malloc/strcpy to duplicate strings.
34738
34739         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
34740         (human_space_before_unit): New constant.
34741         * lib/human.c (human_readable): Support it.
34742
34743         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
34744         (xgetcwd): Set errno correctly when failing.
34745         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
34746         the failure is actually due to a PATH_MAX problem.
34747
34748         Further getopt changes to make it more likely that glibc will
34749         buy the changes back.
34750         * lib/getopt.c (POSIXLY_CORRECT): New constant.
34751         (getopt): Use it, so to preserve glibc semantic
34752         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
34753         when compiling for libc.
34754         * lib/getopt_.h (__getopt_argv_const): Bring it back.
34755         (getopt_long, getopt_long_only): Use it.
34756
34757         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
34758         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
34759         (getopt): Argv is now char * const *, as per standard.
34760         (_getopt_internal_r, _getopt_internal): Argv is now char **,
34761         not char *__getopt_argv_const *.
34762         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
34763         _getopt_long_only_r): Likewise.
34764         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
34765         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
34766         _getopt_long_r, _getopt_long_only_r): Likewise.
34767         * lib/getopt_.h (__getopt_argv_const): Remove.
34768         (getopt): Argv is now char * const *, as per standard.
34769
34770         * lib/getdate.y (tORDINAL): New token.
34771         (day, relunit): Allow it for relative times.
34772         (relative_time_table): Use tORDINAL for ordinals.
34773
34774 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
34775
34776         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
34777         Document that "second" isn't allowed as an ordinal number.
34778
34779 2004-11-16  Jim Meyering  <jim@meyering.net>
34780
34781         * modules/closeout (Depends-on): Add fpending.
34782
34783 2004-11-15  Jim Meyering  <jim@meyering.net>
34784
34785         * lib/closeout.c: Include "__fpending.h" once again.
34786         Include <stdbool.h>.
34787         (close_stdout): Don't fail just because stdout was closed initially,
34788         since some programs don't write to stdout in the normal course of
34789         operation (other than --version and --help), and we don't want this
34790         function to make e.g. `touch file >&-' fail.
34791         But do fail if it was closed and someone has tried to write to it.
34792         E.g., `printf foo >&-' must fail.
34793
34794 2004-11-13  Jim Meyering  <jim@meyering.net>
34795
34796         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
34797
34798 2004-11-12  Simon Josefsson  <jas@extundo.com>
34799
34800         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
34801         small doc fix is still pending.
34802
34803 2004-11-11  Simon Josefsson  <jas@extundo.com>
34804
34805         * modules/strtok_r: New file.
34806
34807         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
34808         strtok_r.
34809
34810 2004-11-11  Simon Josefsson  <jas@extundo.com>
34811
34812         * m4/strtok_r.m4: New file.
34813
34814         * m4/getopt.m4: Replace opterr.
34815
34816 2004-11-11  Simon Josefsson  <jas@extundo.com>
34817
34818         * lib/strtok_r.h, strtok_r.c: New file.
34819
34820 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
34821
34822         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
34823         of replacing opterr, getopt, etc.  This should handle the
34824         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
34825
34826 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
34827
34828         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
34829         we can stop lying to compilers about the constness of argv when we
34830         are compiled outside glibc.
34831         (getopt, getopt_long, getopt_long_only): Use it.
34832         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
34833         _getopt_internal, getopt): Likewise.
34834         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
34835         _getopt_long_only_r): Likewise.
34836         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
34837         _getopt_long_r, _getopt_long_only_r): Likewise.
34838
34839         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
34840         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
34841         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
34842         the other external symbols.
34843         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
34844         declaration, since the above renaming now works around collisions.
34845
34846 2004-11-11  Jim Meyering  <jim@meyering.net>
34847
34848         * lib/linebreak.c: Remove trailing blanks.
34849         * lib/alloca_.h: Likewise.
34850         * lib/acosl.c: Likewise.
34851         * lib/euidaccess.c: Likewise.
34852         * lib/allocsa.h: Likewise.
34853
34854 2004-11-10  Simon Josefsson  <jas@extundo.com>
34855
34856         * m4/getaddrinfo.m4: New file.
34857
34858 2004-11-10  Simon Josefsson  <jas@extundo.com>
34859
34860         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
34861
34862 2004-11-10  Simon Josefsson  <jas@extundo.com>
34863
34864         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
34865         getaddrinfo.
34866
34867         * modules/getaddrinfo: New file.
34868
34869 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
34870
34871         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
34872
34873 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
34874
34875         * lib/mktime.c (SHR): New macro, which is a portable
34876         substitute for >> that should work even on Crays.
34877         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
34878         Problem reported by Mark D. Baushke in
34879         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
34880         * lib/getdate.y (SHR): Likewise.
34881         (tm_diff): Use it.
34882         * lib/strftime.c (SHR): Likewise.
34883         (tm_diff): Use it.
34884         * lib/quotearg.c (struct quoting_options): Use unsigned int for
34885         quote_these_too, so that right shifts are well defined.  All uses
34886         changed.
34887
34888 2004-11-10  Jim Meyering  <jim@meyering.net>
34889
34890         Ensure that no close failure goes unreported.
34891         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
34892         return early when it seems there's nothing to flush.
34893         Don't include __fpending.h.
34894
34895 2004-11-10  Jim Meyering  <jim@meyering.net>
34896
34897         * modules/closeout (Depends-on): Remove fpending.
34898
34899 2004-11-10  Jim Meyering  <jim@meyering.net>
34900
34901         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
34902
34903 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
34904
34905         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
34906         gl_FUNC_STRFTIME.
34907         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
34908         and AC_REQUIRE when possible, to avoid duplicate checks.
34909         Check for <wchar.h>.
34910
34911 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
34912
34913         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
34914
34915 2004-11-09  Bruno Haible  <bruno@clisp.org>
34916
34917         * m4/sockpfaf.m4: New file.
34918
34919 2004-11-05  Bruno Haible  <bruno@clisp.org>
34920
34921         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
34922         Reported by Mark D. Baushke <mdb@cvshome.org>.
34923
34924 2004-11-04  Bruno Haible  <bruno@clisp.org>
34925
34926         2004-09-11  Bruno Haible  <bruno@clisp.org>
34927                 * allocsa.valgrind: New file.
34928         2004-02-06  Bruno Haible  <bruno@clisp.org>
34929                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
34930                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
34931                 Reported by Christopher Seip <chris.seip@hp.com>.
34932
34933 2004-11-04  Bruno Haible  <bruno@clisp.org>
34934
34935         * modules/allocsa (Files): Add lib/allocsa.valgrind.
34936         (Makefile.am): Distribute it.
34937
34938 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
34939
34940         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
34941         with errno == ERANGE if the buffer is too small.
34942         Problem reported by Mark D. Baushke.
34943
34944 2004-11-03  Albert Chin  <china@thewrittenword.com>
34945             Paul Eggert  <eggert@cs.ucla.edu>
34946
34947         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
34948         equivalent, substitute $ac_type for equivalent type rather than
34949         blindly using uint32_t *always* which won't work if uint32_t is not
34950         available.  Define _UINT32_T to work around typedef of uint32_t if
34951         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
34952         2.5.1.
34953
34954 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
34955
34956         * m4/jm-macros.m4: Sync from coreutils.
34957         (gl_MACROS): Check for mbrlen, for pathchk.
34958         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
34959
34960 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
34961
34962         * lib/xreadlink.c (MAXSIZE): New macro.
34963         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
34964         size does not exceed MAXSIZE.  Avoid cast.
34965         As suggested by Mark D. Baushke in
34966         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
34967         if readlink fails with buffer size just under MAXSIZE, try again
34968         with MAXSIZE.
34969
34970 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
34971
34972         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
34973
34974 2004-11-02  Derek R. Price  <derek@ximbiot.com>
34975         and  Paul Eggert  <eggert@cs.ucla.edu>
34976
34977         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
34978         (get_date): Overparenthesize to avoid GCC warning.
34979
34980 2004-11-02  Bruno Haible  <bruno@clisp.org>
34981
34982         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
34983         returns void.
34984
34985 2004-11-02  Bruno Haible  <bruno@clisp.org>
34986
34987         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
34988         function returns void.
34989
34990 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
34991
34992         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
34993         fflush_unlocked, flockfile, funlockfile, funlockfile,
34994         fputs_unlocked, putc_unlocked.
34995
34996 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
34997
34998         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
34999         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
35000         already declared.
35001
35002 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
35003
35004         * modules/getdate (Files): Add doc/getdate.texi.
35005         (Depends-on): Add setenv, xalloc.
35006
35007 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
35008
35009         * lib/getdate.y: Add support for TZ="foo" within a date string.
35010         Fix some bugs near time_t boundaries.  Reject dates with
35011         out-of-range components, e.g., "Sept 31".
35012         Include <stdlib.h>, "setenv.h", "xalloc.h".
35013         (ISDIGIT_LOCALE): Remove; unused.
35014         Note that the TZ and time functions used here are not reentrant.
35015         (mktime_ok, get_tz): New functions.
35016         (TZBUFSIZE): New constant.
35017         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
35018         This requires that we sometimes generate our own TZ="XXX..." setting.
35019
35020 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
35021
35022         * doc/getdate.texi: New file, from coreutils with modifications for
35023         the new TZ parsing.
35024
35025 2004-10-27  Derek R. Price  <derek@ximbiot.com>
35026
35027         * lib/mktime.c (not_equal_tm): Remove redundant check.
35028
35029 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
35030
35031         * modules/regex (lib_SOURCES): Add regex.c.
35032         Reported by James Youngman in
35033         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
35034
35035 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
35036
35037         * lib/getdate.y: Use Bison 1.875 features, and some minor
35038         code cleanups.  This change does not affect semantics.
35039         Don't include <stdlib.h>; no longer needed.
35040         Don't include unlocked-io.h; only the "#if TEST" code uses
35041         stdio, and performance isn't crucial there.
35042         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
35043         Bison 1.875 features as described below.
35044         All uses of "PC." replaced by "pc->".
35045         (YYSTYPE): Add a forward declaration.
35046         (yylex, yyerror): Use full prototypes in forward decls.
35047         Use "%pure-parser" rather than obsolescent "%pure_parser".
35048         Use %parse-param and %lex-param instead of obsolescent
35049         YYPARSE_PARAM and YYLEX_PARAM.
35050         (meridian_table, month_and_day_table, time_units_table,
35051         relative_time_table, time_zone_table, military_table,
35052         lookup_zone, lookup_word, get_date):
35053         Use NULL instead of 0 where appropriate.
35054         (to_hour): Avoid abort (), to avoid a dependency on
35055         stdlib.h.
35056         (yyerror, yylex): Now accepts parser_control * arg.
35057         (main) [TEST]: Use '\0' rather than 0 for char.
35058
35059 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
35060
35061         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
35062
35063 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
35064
35065         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
35066         It's now the caller's responsibility to handle the case where
35067         !HAVE_GETPAGESIZE && !defined getpagesize.
35068
35069         * lib/mktime.c (leapyear): Arg is long int, not int.
35070
35071 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
35072
35073         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
35074
35075 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
35076
35077         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
35078         missing.  Problem reported by James Youngman.
35079
35080 2004-10-16  Simon Josefsson  <jas@extundo.com>
35081
35082         * gnulib-tool: Fix comments.  Fix parse problem.
35083         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
35084
35085 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
35086
35087         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
35088         implementation of getopt_long.  Problem reported by Alexander Taler in:
35089         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
35090
35091 2004-10-15  Bruno Haible  <bruno@clisp.org>
35092
35093         * gnulib-tool: Untabify. Initialize supplied_libname.
35094         (func_usage): More homogenous output.
35095         (func_modules_transitive_closure, func_modules_to_filelist,
35096         func_emit_lib_Makefile_am): New functions.
35097         (func_import): New function, extracted from big case statement. Use
35098         func_get_license, func_modules_transitive_closure,
35099         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
35100         opt_lgpl. Don't use test -a, as it's not portable.
35101         (func_create_testdir): Use func_modules_transitive_closure,
35102         func_modules_to_filelist, func_emit_lib_Makefile_am.
35103
35104 2004-10-15  Bruno Haible  <bruno@clisp.org>
35105
35106         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
35107
35108 2004-10-15  Bruno Haible  <bruno@clisp.org>
35109
35110         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
35111         the portions belonging to each module.
35112         Suggested by Derek Robert Price <derek@ximbiot.com>.
35113
35114 2004-10-12  Simon Josefsson  <jas@extundo.com>
35115
35116         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
35117         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
35118         to real functions.
35119
35120 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
35121
35122         * modules/vsnprintf: New file.
35123
35124 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
35125
35126         * m4/vsnprintf.m4: New file.
35127
35128 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
35129
35130         * lib/vsnprintf.h: New file.
35131         * lib/vsnprintf.c: New file.
35132
35133 2004-10-11  Bruno Haible  <bruno@clisp.org>
35134
35135         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
35136         vsnprintf.
35137
35138 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
35139
35140         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
35141
35142 2004-10-07  Bruno Haible  <bruno@clisp.org>
35143
35144         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
35145         fits into the provided buffer.
35146
35147 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
35148
35149         * lib/diacrit.c, diacrit.h: Add GPL notice.
35150
35151         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
35152         notice.
35153         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
35154         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
35155         This avoids a potential constant-folding bug.
35156
35157 2004-10-05  Bruno Haible  <bruno@clisp.org>
35158
35159         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
35160         for the declaration of strsep.
35161
35162 2004-10-05  Bruno Haible  <bruno@clisp.org>
35163
35164         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
35165
35166 2004-10-04  Simon Josefsson  <jas@extundo.com>
35167
35168         * modules/memmem: New file.
35169         * tests/test-memmem.c: New file.
35170         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
35171
35172 2004-10-04  Simon Josefsson  <jas@extundo.com>
35173
35174         * m4/memmem.m4: New file.
35175
35176 2004-10-04  Simon Josefsson  <jas@extundo.com>
35177
35178         * lib/memmem.h: New file.
35179         * lib/memmem.c: New file, taken from glibc.
35180
35181 2004-10-04  Simon Josefsson  <jas@extundo.com>
35182
35183         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
35184         '#ifdef USE_UNLOCKED_IO'.
35185
35186 2004-10-04  Simon Josefsson  <jas@extundo.com>
35187
35188         * config/srclist.txt: Add memmem from glibc.
35189
35190 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
35191
35192         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
35193
35194         * modules/argmatch, modules/argp, modules/closeout, modules/error,
35195         modules/exclude, modules/getdate, modules/getline,
35196         modules/getndelim2, modules/getpass, modules/getpass-gnu,
35197         modules/getusershell, modules/linebuffer, modules/md5,
35198         modules/mountlist, modules/posixtm, modules/readtokens,
35199         modules/readutmp, modules/regex, modules/sha1,
35200         modules/version-etc, modules/yesno:
35201         Remove dependency on unlocked-io.
35202
35203 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
35204
35205         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
35206
35207         * m4/unlocked-io.m4: Add copyright notice.
35208         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
35209
35210 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
35211
35212         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
35213         * lib/xmalloc.c (xmemdup): Likewise.
35214         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
35215         XFREE): Remove these long-obsolescent macros.
35216         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
35217         * lib/xstrdup.c: Remove.
35218
35219         * lib/regex.c (re_comp): Cast gettext return value to char *,
35220         Problem reported by Martin Neitzel via Mark D. Baushke.
35221
35222 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
35223
35224         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
35225         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
35226         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
35227         regex.c, sha1.c, version-etc.c, yesno.c:
35228         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
35229         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
35230         the includer's responsibility.
35231
35232         Sync from coreutils.
35233
35234         * lib/modechange.c (mode_compile): Don't decrement a pointer that
35235         points to the start of a string, as the C Standard says the
35236         resulting behavior is undefined.
35237
35238         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
35239         simple -> simple_backups, numbered_existing ->
35240         numbered_existing_backups, numbered -> numbered_backups
35241         to avoid shadowing problems.  All uses changed.
35242         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
35243         * lib/backupfile.c (check_extension, numbered_backup):
35244         Rename locals to avoid shadowing 'basename'.
35245         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
35246         once.
35247
35248         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
35249         * lib/.cvsignore: Add getopt.h.
35250
35251 2004-10-04  Bruno Haible  <bruno@clisp.org>
35252
35253         * modules/README: New file.
35254         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
35255         not a module.
35256
35257 2004-10-02  Jim Meyering  <jim@meyering.net>
35258
35259         * lib/dirfd.h, getpagesize.h: Add copyright notice.
35260
35261 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
35262
35263         * modules/strsep: New file.
35264
35265 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
35266
35267         * m4/strsep.m4: New file.
35268
35269 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
35270
35271         * lib/strsep.h: New file.
35272         * lib/strsep.c: New file.
35273
35274 2004-10-01  Simon Josefsson  <jas@extundo.com>
35275
35276         * lib/snprintf.c (snprintf): Handle size==0.
35277
35278 2004-10-01  Simon Josefsson  <jas@extundo.com>
35279             Bruno Haible  <bruno@clisp.org>
35280
35281         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
35282         (snprintf): Declare 'args'.
35283
35284 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
35285
35286         * lib/snprintf.c: Remove comments as to why each header is needed.
35287
35288 2004-10-01  Bruno Haible  <bruno@clisp.org>
35289
35290         * MODULES.html.sh: Add strsep.
35291
35292 2004-09-30  Simon Josefsson  <jas@extundo.com>
35293
35294         * modules/snprintf: New file.
35295
35296 2004-09-30  Simon Josefsson  <jas@extundo.com>
35297
35298         * m4/snprintf.m4: New file.
35299
35300 2004-09-30  Simon Josefsson  <jas@extundo.com>
35301
35302         * lib/snprintf.h, lib/snprintf.c: New files.
35303
35304 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
35305
35306         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
35307         (hol_entry_help): Never translate an empty string.
35308         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
35309         * lib/argp.h (OPTION_NO_TRANS): New option.
35310
35311 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
35312
35313         * modules/argp (Maintainer): Replace Simon Josefsson
35314         by Sergey Poznyakoff.
35315
35316 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
35317
35318         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
35319         changes merged back into glibc.
35320
35321 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
35322
35323         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
35324
35325 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
35326
35327         * lib/xvasprintf.c: Include xalloc.h.
35328         (xvasprintf): Use xalloc_die, not xmalloc_die.
35329
35330 2004-09-29  Bruno Haible  <bruno@clisp.org>
35331
35332         * modules/alloca-opt: New file, derived from modules/alloca.
35333         * modules/allocsa: Depend on alloca-opt instead of alloca.
35334         * modules/setenv: Likewise.
35335         * modules/vasnprintf: Likewise.
35336         * MODULES.html.sh: Add alloca-opt.
35337
35338 2004-09-28  Simon Josefsson  <jas@extundo.com>
35339
35340         * gnulib-tool: New parameter --lgpl, to asseert that modules are
35341         LGPL, and to replace license template from GPL to LGPL.
35342
35343 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
35344
35345         * modules/dummy: Change license to LGPL.
35346
35347 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
35348
35349         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
35350
35351 2004-09-24  Simon Josefsson  <jas@extundo.com>
35352
35353         * modules/minmax (License): Change from GPL to LGPL.
35354
35355 2004-09-23  Simon Josefsson  <jas@extundo.com>
35356
35357         * gnulib-tool (--import): Typo.
35358
35359 2004-09-23  Simon Josefsson  <jas@extundo.com>
35360
35361         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
35362
35363 2004-09-22  Bruno Haible  <bruno@clisp.org>
35364
35365         * modules/*: Add 'License' field.
35366         * gnulib-tool: Accept --extract-license option.
35367         (func_get_license): New function.
35368
35369 2004-09-21  Bruno Haible  <bruno@clisp.org>
35370
35371         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
35372         Reported by Simon Josefsson.
35373
35374 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
35375
35376         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
35377         gl_AC_TYPE_LONG_LONG.
35378
35379 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
35380
35381         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
35382
35383 2004-09-18  Simon Josefsson  <jas@extundo.com>
35384         and  Paul Eggert  <eggert@cs.ucla.edu>
35385
35386         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
35387         calls with autoreconf.  Define GL_LIB.
35388
35389 2004-09-14  Karl Berry  <karl@gnu.org>
35390
35391         * config/srclist.txt: unsync setenv.c, sigh.
35392
35393 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
35394
35395         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
35396         Problem reported by Bruno Haible in:
35397         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
35398
35399 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
35400
35401         * config/srclist.txt: Comment out argp-pvh.c.
35402
35403 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
35404
35405         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
35406         in case some system header has #define'd it.  Problem reported by
35407         Soeren D. Schulze in
35408         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
35409
35410 2004-09-09  Karl Berry  <karl@gnu.org>
35411
35412         * regex.[ch]: delete from the root.  These were supposed to be
35413                 synced with emacs cvs, but this has not happened for about
35414                 a year, and anyway nothing else uses emacs regex.[ch].
35415                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
35416                 lib/regex[.ch] is untouched.
35417
35418 2004-09-09  Bruno Haible  <bruno@clisp.org>
35419
35420         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
35421
35422 2004-09-09  Bruno Haible  <bruno@clisp.org>
35423
35424         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
35425         modifications.
35426         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
35427
35428 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
35429
35430         * modules/xvasprintf: New file.
35431         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
35432
35433 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
35434
35435         * lib/xvasprintf.h: New file.
35436         * lib/xvasprintf.c: New file.
35437         * lib/xasprintf.c: New file.
35438
35439 2004-09-08  Bruno Haible  <bruno@clisp.org>
35440
35441         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
35442
35443 2004-09-08  Bruno Haible  <bruno@clisp.org>
35444
35445         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
35446         length is > INT_MAX.
35447         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
35448         more.
35449
35450 2004-09-08  Bruno Haible  <bruno@clisp.org>
35451
35452         * lib/stdint_.h: New file, taken from GNU clisp.
35453
35454 2004-09-08  Bruno Haible  <bruno@clisp.org>
35455             Oskar Liljeblad  <oskar@osk.mine.nu>
35456
35457         * modules/stdint: New file.
35458         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
35459
35460 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
35461
35462         Import from coreutils.
35463         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
35464         strings on unbounded length.  alloca's performance benefits aren't
35465         that important here.
35466         (V_STRDUP): Remove.
35467         (parse_with_separator): New function, with most of the internals
35468         of the old parse_user_spec.  Allow user to omit both user and group,
35469         for compatibility with FreeBSD.
35470         Clone only the user name, not the entire spec.
35471         Do not set *uid, *gid unless entirely successful.
35472         Avoid memory leak in some failing cases.
35473         Fix regression for USER.GROUP reported by Dmitry V. Levin in
35474         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
35475         (parse_user_spec): Rewrite to use parse_with_separator.
35476
35477 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
35478
35479         * modules/userspec: Don't depend on alloca.
35480
35481 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
35482
35483         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
35484
35485 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
35486
35487         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
35488         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
35489         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
35490
35491 2004-08-16  Simon Josefsson  <jas@extundo.com>
35492
35493         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
35494         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
35495         Add --dry-run for --import.
35496         Let user provided command line parameters override configure.ac
35497         settings.
35498
35499 2004-08-12  Simon Josefsson  <jas@extundo.com>
35500
35501         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
35502         as discussed with Paul Eggert in threads rooted at
35503         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
35504         and
35505         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
35506         Before, the test was empty, and relied on ELIDE_CODE in source
35507         code.)
35508         (gl_PREREQ_GETOPT): New macro.
35509         (gl_GETOPT): Use them.
35510
35511 2004-08-12  Simon Josefsson  <jas@extundo.com>
35512
35513         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
35514         * lib/getopt_.h: Renamed from getopt.h.
35515
35516 2004-08-12  Simon Josefsson  <jas@extundo.com>
35517
35518         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
35519         Change default library name from libfoo to libgnu.
35520         Now, if you have a configure.ac that says:
35521                 gl_SOURCE_BASE(gl)
35522                 gl_M4_BASE(gl/m4)
35523                 gl_MODULES(error getopt etcetera)
35524                 gl_INIT
35525         you can import all you need by running:
35526                 ../gnulib/gnulib-tool --import
35527
35528         * modules/getopt (Files): Rename getopt.h to getopt_.h.
35529         (Makefile.am): Rewrite, use logic from argz.
35530         (Include): Use <getopt.h> instead of "getopt.h".
35531
35532 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
35533
35534         * modules/argp (Files): Add m4/unlocked-io.m4.
35535         (Depends-on): Add extensions.
35536
35537 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
35538
35539         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
35540         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
35541         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
35542         Check for program_invocation_name, program_invocation_short_name,
35543         flockfile, funlockfile, features.h, _getopt_long_only_r.
35544
35545 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
35546
35547         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
35548         its complicated substitute.
35549         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
35550         and program_invocation_name.
35551         (__argp_basename) [!_LIBC]: Remove; the only use was
35552         replaced by its body.
35553         (__argp_short_program_name): Change condition from
35554         !defined __argp_short_program_name to
35555         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
35556         to match argp-namefrob.h.
35557         (__argp_failure): Don't assume strerror_r returns char *.
35558         * lib/argp-parse.c (N_): Define unconditionally.
35559         (argp_default_options): Fill out initializers with 0 to avoid
35560         gcc warnings.
35561
35562 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
35563
35564         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
35565         getopt1.c.
35566
35567 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
35568
35569         Merge from coreutils.
35570
35571         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
35572
35573         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
35574         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
35575
35576 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
35577
35578         Merge from coreutils.
35579
35580         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
35581         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
35582         for Reliant Unix 5.43.
35583
35584         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
35585         (union fooround): Use uintmax_t, not long int.
35586         The rest is a merge from libc:
35587         [defined _LIBC]: Include <shlib-compat.h>.
35588         (_obstack) [defined _LIBC]: Remove after 2.3.4.
35589
35590         * lib/settime.c (settime): Recode to avoid warning with
35591         Sun Forte C 6U2.
35592
35593         * lib/strverscmp.c: Convert to UTF-8.
35594
35595 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
35596
35597         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
35598         m4/uintmax_t.m4.
35599
35600 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
35601
35602         * modules/xalloc-die: New file.
35603         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
35604
35605         * modules/md5 (Files): Add m4/uint32_t.m4.
35606         * modules/sha1: Renamed from modules/sha.
35607         (Files):
35608         Rename lib/sha.h to lib/sha1.h.
35609         Rename lib/sha.c to lib/sha1.c.
35610         Rename m4/sha.m4 to m4/sha1.m4.
35611         (lib_SOURCES): Likewise.
35612         (configure.ac): Rename gl_SHA to gl_SHA1.
35613         (Include): sha.h -> sha1.h.
35614
35615 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
35616
35617         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
35618         * m4/sha1.m4: Renamed from sha.m4.
35619         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
35620
35621 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
35622
35623         * lib/obstack.h (obstack_empty_p):
35624         Don't assume that chunk->contents is suitably aligned.
35625         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
35626         Likewise. Problem reported by Benno in
35627         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
35628
35629         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
35630         readable.  This could be improved further but it'd take some work.
35631
35632 2004-08-08  Simon Josefsson  <jas@extundo.com>
35633
35634         * modules/xgethostname (Depends-on): Remove exit and error (not
35635         used).
35636
35637         * modules/getpass-gnu: Add getpass.h.
35638         (Depends-on): Add stdbool.
35639         * modules/getpass: Add getpass.h.
35640
35641 2004-08-08  Simon Josefsson  <jas@extundo.com>
35642
35643         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
35644         Check getpass declaration.
35645
35646 2004-08-08  Simon Josefsson  <jas@extundo.com>
35647
35648         * lib/xgethostname.c: Don't include error.h (not used).
35649
35650         * lib/getpass.h: Add.
35651         * lib/getpass.c: Include getpass.h first.
35652
35653 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
35654
35655         * lib/xalloc-die.c: New file.
35656         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
35657         All uses removed.
35658         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
35659         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
35660         xalloc-die.c.
35661         (_, N_, xalloc_die): Move to xalloc-die.c.
35662         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
35663         so that we needn't mess with xalloc_msg_memory_exhausted.
35664
35665         * lib/sha1.h: Renamed from sha.h.
35666         (SHA1_H): Renamed from _SHA_H.
35667         (sha1_ctx): Renamed from sha_ctx.
35668         (sha1_init_ctx): Renamed from sha_init_ctx.
35669         (sha1_process_block): Renamed from sha_process_block.
35670         (sha1_process_bytes): Renamed from sha_process_bytes.
35671         (sha1_finish_ctx): Renamed from sha_finish_ctx.
35672         (sha1_read_ctx): Renamed from sha_read_ctx.
35673         (sha1_stream): Renamed from sha_stream.
35674         (sha1_buffer): Renamed from sha_buffer.
35675         * lib/sha1.c: Likewise; renamed from sha.c.
35676         Do not include <sys/types.h>.
35677         Include <stddef.h> rather than <stdlib.h>.
35678
35679 2004-08-08  Bruno Haible  <bruno@clisp.org>
35680
35681         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
35682         FILESYSTEM_PREFIX_LEN.
35683         * lib/progreloc.c: Likewise.
35684         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
35685
35686 2004-08-06  Simon Josefsson  <jas@extundo.com>
35687
35688         * modules/progname (Depends-on): Don't depend on stdbool.
35689
35690 2004-08-06  Simon Josefsson  <jas@extundo.com>
35691
35692         * modules/getsubopt: New file.
35693         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
35694         getsubopt.
35695
35696 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
35697
35698         More merge from coreutils.
35699
35700         * m4/utimens.m4, m4/utimecmp.m4: New files.
35701         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
35702         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
35703         prereq.m4, sha.m4: Import changes from coreutils.
35704
35705 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
35706
35707         More merge from coreutils.
35708         * modules/raise, modules/readtokens0, modules/utimens:
35709         * modules/utimecmp, module/xnanosleep: New files.
35710         * modules/strftime: Add lib/strftime.h.
35711         Change include from <time.h> to "strftime.h".
35712         * modules/yesno: Add lib/yesno.h.
35713         * modules/backupfile: Remove lib/addext.c.
35714         * modules/euidaccess: Add stat-macros.h.
35715         * modules/canonicalize, modules/euidaccess,
35716         modules/filemode, modules/lchown, modules/makepath,
35717         modules/rmdir, modules/stat: Likewise.
35718
35719 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
35720
35721         Merge from tar.
35722         * lib/argp-help.c (make_hol, hol_append): Don't assume that
35723         SIZE_MAX is a valid preprocessor constant.
35724         (__argp_basename): Change from "#ifndef _LIBC"
35725         to "#ifndef __argp_short_program_name", so that
35726         we don't compile these functions for tar.
35727
35728         More merges from coreutils.
35729         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
35730         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
35731         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
35732         * lib/addext.c: Remove; no longer needed.
35733         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
35734         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
35735         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
35736         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
35737         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
35738         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
35739         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
35740         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
35741         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
35742         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
35743         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
35744         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
35745         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
35746         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
35747         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
35748         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
35749         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
35750         Import changes from coreutils.
35751
35752 2004-08-05  Simon Josefsson  <jas@extundo.com>
35753
35754         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
35755
35756 2004-08-05  Simon Josefsson  <jas@extundo.com>
35757
35758         * m4/getsubopt.m4: New file.
35759
35760 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
35761
35762         Merge from coreutils.
35763
35764         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
35765         * m4/getcwd-path-max.m4: New files.
35766
35767         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
35768         FILESYSTEM_PREFIX_LEN ->
35769         FILE_SYSTEM_PREFIX_LEN.
35770         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
35771         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
35772         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
35773         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
35774
35775         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
35776         prerequisite modules now handle the DOS stuff.
35777         Don't check for unistd.h.
35778
35779 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
35780
35781         Merge from coreutils.
35782
35783         * lib/.gdb-history: Remove; this doesn't belong here.
35784
35785         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
35786         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
35787         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
35788         * lib/getcwd.c: New files.
35789
35790         * lib/dirname.h: Include <stdbool.h>.
35791         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
35792         for consistency with POSIX terminology.  All uses changed.
35793         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
35794         (strip_trailing_slashes): Use bool for booleans.
35795         * lib/stripslash.c (strip_trailing_slashes): Likewise.
35796
35797         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
35798         sometimes returns a positive errno value even when it succeeds.
35799         (print_errno_message) [!LIBC]: Fall back on strerror if
35800         __strerror_r fails.
35801
35802         * lib/path-concat.c (mempcpy): Don't define if a system header defines
35803         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
35804         (longest_relative_suffix): New function.
35805         (path_concat): Use it.  Assume first argument is not NULL.
35806         Port to DOS.  Omit redundant separators.
35807         Report an error instead of returning NULL.
35808         Use mempcpy instead of memcpy.
35809         (xpath_concat): Remove: not declared or used.
35810
35811         * lib/same.h: Include <stdbool.h>
35812         (same_name): Return bool, not int.
35813         * lib/same.c (same_name): Likewise.
35814         (errno): Don't declare; we assume C89 or better now.
35815
35816         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
35817         if not already defined.
35818
35819         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
35820         * lib/dup-safer.c (errno): Likewise.
35821
35822 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
35823
35824         Merge from coreutils.
35825         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
35826         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
35827         * modules/path-concat: Don't depend on strdup.
35828
35829 2004-08-03  Simon Josefsson  <jas@extundo.com>
35830
35831         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
35832         * lib/progname.h: Don't include stdbool.h.
35833
35834 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
35835
35836         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
35837         * MODULES.html.sh (func_all_modules): Remove fatal.
35838
35839 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
35840
35841         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
35842
35843 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
35844
35845         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
35846         working.
35847
35848 2004-08-02  Simon Josefsson  <jas@extundo.com>
35849
35850         * lib/getsubopt.h: New file, with comments from Bruno Haible.
35851         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
35852         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
35853
35854 2004-08-01  Simon Josefsson  <jas@extundo.com>
35855
35856         * lib/xgetdomainname.c: Include stdlib.h, for free().
35857
35858 2004-07-19  Bruno Haible  <bruno@clisp.org>
35859
35860         * MODULES.html.sh (func_all_modules): Add dummy.
35861
35862 2004-07-16  Simon Josefsson  <jas@extundo.com>
35863
35864         * modules/dummy: New file.
35865
35866 2004-07-16  Simon Josefsson  <jas@extundo.com>
35867
35868         * lib/dummy.c: New file.
35869
35870 2004-07-16  Bruno Haible  <bruno@clisp.org>
35871
35872         * lib/backupfile.h: Add extern "C" for C++.
35873         * lib/closeout.h: Likewise.
35874         * lib/copy-file.h: Likewise.
35875         * lib/findprog.h: Likewise.
35876         * lib/full-write.h: Likewise.
35877         * lib/pathname.h: Likewise.
35878         * lib/progname.h: Likewise.
35879         * lib/stpcpy.h: Likewise.
35880         * lib/stpncpy.h: Likewise.
35881         * lib/strcase.h: Likewise.
35882         * lib/strstr.h: Likewise.
35883         * lib/xalloc.h: Likewise.
35884
35885         * lib/mbswidth.h: Add extern "C" for C++.
35886         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
35887
35888 2004-07-13  Robert Millan  <robertmh@gnu.org>
35889
35890         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
35891
35892 2004-07-09  Simon Josefsson  <jas@extundo.com>
35893
35894         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
35895         failed without this.)
35896
35897 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
35898
35899         * modules/chown (Files): Add lib/fchown-stub.c, since
35900         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
35901
35902 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
35903
35904         * lib/fchown-stub.c: New file.
35905
35906 2004-06-24  Jim Meyering  <jim@meyering.net>
35907
35908         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
35909
35910 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
35911
35912         * modules/argz: Omit "#include".
35913
35914         * MODULES.html.sh (func_all_modules): Add calloc, to match
35915         2004-06-01 addition of calloc module.
35916
35917 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
35918
35919         * m4/argz.m4: New file, which is autoupdated from libtool.
35920
35921 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
35922
35923         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
35924         libtool.
35925
35926 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
35927
35928         * config/srclist-update: Don't insist on "USA." before the
35929         close-comment, as libtool omits the period and puts the */ on a
35930         separate line.
35931         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
35932         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
35933
35934 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
35935
35936         * modules/argz: New file.
35937         * MODULES.html.sh (func_all_modules): Add argz.
35938
35939 2004-06-12  Jim Meyering  <jim@meyering.net>
35940         and  Paul Eggert  <eggert@cs.ucla.edu>
35941
35942         * modules/hash (Files): Add lib/xalloc.h.
35943         * modules/pipe (Depends-on): Add wait-process.
35944         * modules/stat (Depends-on): Add xalloc.
35945         * modules/userspec (Files): Add lib/userspec.h.
35946         * modules/xstrto
35947
35948         Upgrade from gettext-0.13.
35949         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
35950         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
35951         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
35952
35953 2004-06-10  Jim Meyering  <jim@meyering.net>
35954
35955         * lib/calloc.c: New file.
35956
35957 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
35958
35959         * lib/getdate.y (yylex): Allow space between sign and number.
35960         Problem reported by Dan Jacobson.
35961
35962 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
35963
35964         Merge from coreutils CVS.
35965
35966         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
35967         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
35968         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
35969         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
35970         xstrtol.m4: Fix copyright date and/or serial number.
35971
35972         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
35973         See if we need an fchown replacement.
35974         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
35975         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
35976         and use the replacement function if we detect either defect.
35977
35978         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
35979         gl_UTIMECMP.
35980
35981 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
35982         and  Jim Meyering  <jim@meyering.net>
35983
35984         Merge from coreutils CVS.
35985
35986         * lib/stat-macros.h: New file, with contents from file-type.h
35987         and coreutils' system.h.
35988         * lib/file-type.c: Include "stat-macros.h".
35989         * lib/file-type.h (file_type): Move all macro definitions to new file,
35990         stat-macros.h.
35991
35992         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
35993         Wrap old code with this conditional.
35994         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
35995         function that does not dereference symlinks.
35996         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
35997
35998         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
35999         dependency problems.
36000         (xreadlink): Accept new arg SIZE, for efficiency.
36001         All decls and uses changed.
36002         * lib/xreadlink.h: Include <stddef.h>, for size_t.
36003
36004         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
36005         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
36006
36007         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
36008         sysexits.h.
36009
36010 2004-06-01  Jim Meyering  <jim@meyering.net>
36011
36012         * m4/calloc.m4: New file.
36013
36014 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
36015
36016         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
36017         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
36018         Also, fix a typo in a diagnostic.
36019
36020 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
36021
36022         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
36023         or AC_FUNC_REALLOC.
36024
36025 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
36026
36027         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
36028         macros to be defined.
36029         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
36030         the allocator returns NULL because the requested size is zero.
36031
36032 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
36033
36034         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
36035         var.  Add comment explaining why libc still defines it.  This
36036         merges the following patch from glibc:
36037         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
36038
36039 2004-05-20  Andreas Schwab  <schwab@suse.de>
36040
36041         * m4/free.m4: Replace free if it not known to work, not the other
36042         way round.
36043
36044 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
36045
36046         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
36047         present in glibc since revision 1.1 of this file.
36048         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
36049         obstack_alignment_mask, obstack_alloc, obstack_base,
36050         obstack_blank, obstack_blank_fast, obstack_chunk_size,
36051         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
36052         obstack_grow0, obstack_init, obstack_int_grow,
36053         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
36054         obstack_next_free, obstack_object_size, obstack_ptr_grow,
36055         obstack_ptr_grow_fast, obstack_room): Remove declarations of
36056         nonexistent functions.
36057
36058 2004-05-18  Karl Berry  <karl@gnu.org>
36059
36060         * config/srclist.txt: break link for vasnprintf.c.
36061
36062 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
36063
36064         Port obstack to the AS/400, where pointers are 16 bytes wide and
36065         you cannot cast an integer to a valid pointer.  This patch is
36066         currently waiting to be integrated into glibc; see
36067         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
36068
36069         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
36070         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
36071         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
36072         (struct obstack): temp member is now a union of a pointer and
36073         an integer, instead of an integer.  All integer uses changed.
36074         This does not affect the physical layout of struct obstack,
36075         except on hosts (like the AS/400) where the size or alignment of
36076         void * is greater than that of ptrdiff_t.
36077         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
36078         __STDC__)]: Store temporary in pointer member of union, not
36079         integer member.
36080         * lib/obstack.c: Include <stddef.h>, for offsetof.
36081         (struct fooalign): Remove; it doesn't need a name.
36082         (union fooround): Change double to long double, and add void *.
36083         (DEFAULT_ALIGNMENT): Use offsetof to compute.
36084         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
36085         not a macro.  Hence the values are always int; so remove all
36086         casts-to-int in uses.
36087
36088 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
36089
36090         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
36091         we can get this patch merged into glibc.
36092
36093 2004-05-17  Derek R. Price  <derek@ximbiot.com>
36094             Paul Eggert  <eggert@cs.ucla.edu>
36095
36096         * m4/argp: Depend on alloca.
36097
36098 2004-05-17  Derek R. Price  <derek@ximbiot.com>
36099             Paul Eggert  <eggert@cs.ucla.edu>
36100
36101         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
36102         freecoding.
36103
36104 2004-05-17  Bruno Haible  <bruno@clisp.org>
36105
36106         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
36107         precision that consists of a '.' followed by an empty digit string.
36108         Patch by Tor Lillqvist <tml@iki.fi>.
36109
36110 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
36111
36112         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
36113         for backward compatibility with older code.  We need our own
36114         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
36115         it under some other name, and our alloca.h will define it.
36116
36117 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
36118             Derek Price  <derek@ximbiot.com>
36119
36120         * lib/alloca.c: Include <alloca.h>, to get our interface.
36121         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
36122         include <alloca.h> first.  Use C89 prototype for alloca; this
36123         requires including <stddef.h> for size_t.  Use extern "C" if C++.
36124         Use #elif for simplicity, since we can assume C89 now.
36125         Don't try to source the system alloca.h since it will not be found
36126         and to prevent recursively including its replacement.
36127         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
36128         * lib/regex.c: Likewise.
36129
36130 2004-05-16  Derek Price  <derek@ximbiot.com>
36131             Paul Eggert  <eggert@cs.ucla.edu>
36132
36133         getline cleanup.  This changes the getndelim2 API: both order of
36134         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
36135         no delimiter).
36136
36137         * lib/getline.c: Don't include stddef.h or stdio.h, since our
36138         interface does that.
36139         (getline): Always use getdelim, so that we don't have two
36140         copies of this code.
36141         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
36142         if available.
36143         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
36144         (GETNDELIM2_MAXIMUM): New macro.
36145         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
36146         instead of the old practice of delim2==0.  All callers changed.
36147         Return -1 on overflow, instead of returning junk.
36148         Do not set *linesize unless allocation succeeds.
36149         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
36150         that we include sys/types.h.
36151         * lib/getnline.h: Likewise.
36152         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
36153         (getndelim2): Reorder arguments.
36154         * lib/getnline.c (getnline, getndelim):
36155         Don't discard the NMAX argument.
36156         (getnline): Invoke getndelim, to avoid code duplication.
36157         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
36158         of (size_t) -1 by callers of the getnline family.
36159
36160 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
36161
36162         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
36163         Check for gettimeofday.
36164         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
36165         Check for settimeofday, stime.
36166
36167 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
36168
36169         * lib/nanosleep.c (suspended): Change its type from int to
36170         sig_atomic_t volatile.
36171         (first_call): Make it private to rpl_nanosleep, and have it
36172         be zero initially as that's a bit faster.
36173         (my_usleep): Round up fractional times instead of truncating them,
36174         as this is the usual meaning for 'sleep'.
36175
36176         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
36177         doesn't work.
36178         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
36179         (ENOSYS): Define if not defined.
36180         (settime): Fall back on stime if it exists and settimeofday fails.
36181         But don't bother with fallbacks if a method fails with errno == EPERM.
36182
36183 2004-05-11  Jim Meyering  <jim@meyering.net>
36184
36185         Prior to this change, the save_cwd caller required read access to the
36186         current directory on most systems (ones with the fchdir function).
36187
36188         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
36189         fails, try write-only, and finally, resort to using xgetcwd.
36190
36191 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
36192
36193         * lib/obstack.c, obstack.h: Import changes from libc.
36194
36195 2004-04-28  Bruno Haible  <bruno@clisp.org>
36196
36197         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
36198         also implicitly appends .exe to executables.
36199         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
36200         accepts Windows pathnames.
36201         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
36202         Treat Cygwin like Windows, since it now accepts Windows pathnames.
36203         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
36204         Treat Cygwin like Windows, since it now accepts Windows pathnames.
36205         Reported by Derek Robert Price <derek@ximbiot.com>.
36206
36207 2004-04-21  Karl Berry  <karl@gnu.org>
36208
36209         * config/srclist.txt (localcharset.c): break sync.
36210
36211 2004-04-20  Paul Eggert  <eggert@twinsun.com>
36212
36213         * m4/host-os.m4: Add a copyright notice.
36214
36215 2004-04-20  Jim Meyering  <jim@meyering.net>
36216
36217         Change UTILS_ to gl_ in AC_DEFINE'd names.
36218         Change utils_- and jm_-prefixed variables, too.
36219         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
36220         UTILS_FUNC_MKDIR_TRAILING_SLASH.
36221         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
36222
36223         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
36224         Don't emit trailing blanks.
36225         Also rename jm_-prefixed variables to have gl_ prefix.
36226
36227         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
36228         Also rename jm_-prefixed variables to have gl_ prefix.
36229
36230         * m4/jm-macros.m4: Reflect the renamings.
36231         * m4/prereq.m4: Likewise.
36232
36233 2004-04-20  Jim Meyering  <jim@meyering.net>
36234
36235         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
36236         memory.
36237
36238 2004-04-20  Jim Meyering  <jim@meyering.net>
36239             Bruno Haible  <bruno@clisp.org>
36240
36241         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
36242         memory when realloc fails.
36243
36244 2004-04-19  Jim Meyering  <jim@meyering.net>
36245
36246         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
36247         now that readutmp.c may call `free (0)'.
36248
36249 2004-04-19  Bruno Haible  <bruno@clisp.org>
36250
36251         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
36252         * m4/inttypes_h.m4: Likewise.
36253         * m4/stdint_h.m4: Likewise.
36254         * m4/intmax_t.m4: Likewise.
36255         * m4/uintmax_t.m4: Likewise.
36256
36257 2004-04-18  Jim Meyering  <jim@meyering.net>
36258
36259         * m4/prereq.m4: Don't forbid jm_ prefix.
36260
36261         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
36262         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
36263         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
36264         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
36265         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
36266         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
36267         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
36268         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
36269         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
36270         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
36271         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
36272         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
36273         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
36274         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
36275         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
36276         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
36277         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
36278         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
36279         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
36280
36281 2004-04-18  Jim Meyering  <jim@meyering.net>
36282
36283         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
36284         failure, don't leak memory and do call END_UTMP_ENT.
36285
36286 2004-04-16  Jim Meyering  <jim@meyering.net>
36287
36288         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
36289         coreutils' stat program.
36290         (gl_PREREQ): Don't require jm_PREREQ_STAT.
36291
36292 2004-04-11  Paul Eggert  <eggert@twinsun.com>
36293
36294         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
36295         C89.
36296         (CHAR_BIT): Remove, since we assume C89.
36297         Include <stdint.h> if available, as per current Autoconf CVS advice.
36298
36299 2004-03-31  Jim Meyering  <jim@meyering.net>
36300
36301         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
36302         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
36303         * m4/xalloc.m4: Likewise.
36304
36305 2004-03-30  Paul Eggert  <eggert@twinsun.com>
36306
36307         Merge from coreutils.
36308
36309         * m4/inttostr.m4: New file.
36310         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
36311         Require AM_STDBOOL_H and gl_TIMESPEC instead.
36312         Require gl_CLOCK_TIME.
36313         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
36314
36315 2004-03-30  Paul Eggert  <eggert@twinsun.com>
36316
36317         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
36318         not bool, to be more consistent with Unix conventions.
36319         Suggested by Bruno Haible.
36320
36321         Merge from coreutils.
36322
36323         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
36324         * lib/umaxtostr.c: New files.
36325
36326         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
36327         the usual <time.h> dance.
36328         (get_date): Change signature to support fractional time stamps.
36329         All callers changed.
36330         * lib/getdate.y: Include "getdate.h" first, as we can now
36331         assume C89 and don't need to worry about 'const'.
36332         Similarly, include "unlocked-io.h" near start, not in middle.
36333         Include <limits.h>.
36334         (textint.value): Use long int rather than int.
36335         (textint.digits): Use size_t rather than int.
36336         (BILLION, LOG10_BILLION): New constants.
36337         (parser_control): New member rel_ns.  Members day_ordinal,
36338         time_zone, month, day, hour, minutes, rel_year, rel_month,
36339         rel_day, rel_hour, rel_minutes, rel_seconds
36340         are now long int, not int.  Member seconds is now struct timespec,
36341         not int.  New member timespec_seen.  Members dates_seen, days_seen,
36342         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
36343         not int.
36344         (%union.intval): Now long int, not int.
36345         New member timespec.
36346         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
36347         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
36348         (spec): Now is a timespec or an item list.
36349         (timespec, items): New nonterminals.
36350         (time, rel, relunit, number, get_date):
36351         Add support for fractional seconds.
36352         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
36353         (gmtime, localtime, mktime): Remove decls; not needed with C89.
36354         (to_hour): First arg is now long int, not int.
36355         (to_year): Returns long int, not int.
36356         Don't treat year -70 like 70.
36357         (tm_diff): Returns long int, not int.
36358         (lookup_word): Use bool instead of int when appropriate.
36359         (yylex): Use size_t for count, not int.
36360         Detect overflow when parsing large integer constants.
36361         Add support for fractions.
36362         (get_date): Make pointers 'const' if possible.
36363         Use more-portable code to detect integer overflow.
36364         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
36365         Don't use ctime; it's not reliable if the year has >4 digits.
36366
36367         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
36368         This is for compatibility with BSD.
36369
36370         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
36371         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
36372         From coreutils' system.h.
36373
36374         * lib/userspec.c: Don't include "posixver.h".
36375         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
36376         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
36377         compatible extension.  Simplify code by removing a boolean int
36378         that was always nonzero if a string was nonnull.
36379
36380 2004-03-30  Jim Meyering  <jim@meyering.net>
36381
36382         Merge from coreutils.
36383
36384         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
36385         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
36386         on some systems one must include <grp.h> before it.
36387         Reported by Christian Krackowizer.
36388
36389 2004-03-30  Jim Meyering  <jim@meyering.net>
36390
36391         Merge from coreutils.
36392
36393         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
36394
36395         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
36396         an empty input stream.
36397
36398         * lib/readtokens.c: Include <stdbool.h>.
36399         (readtoken): Use `size_t' rather than int/long.
36400         All callers adjusted.
36401         Use `bool' rather than `int' where appropriate.
36402         Use memset rather than an explicit loop.
36403         Use x2nrealloc rather than xrealloc.
36404         Allow the use of `\0' as a delimiter.
36405         (readtokens): Likewise.
36406         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
36407
36408 2004-03-30  Jim Meyering  <jim@meyering.net>
36409
36410         * m4/realloc.m4: Remove file, since now it does no more than
36411         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
36412         the `configure.ac' section of module/realloc.
36413         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
36414
36415 2004-03-30  Bruno Haible  <bruno@clisp.org>
36416
36417         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
36418         nonnull.
36419
36420 2004-03-29  Paul Eggert  <eggert@twinsun.com>
36421
36422         Merge changes to getloadavg.c from coreutils and Emacs.
36423
36424         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
36425         Define to an expression, not to the empty string.
36426         Include cloexec.h and xalloc.h.
36427         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
36428         Use set_cloexec_flag rather than rolling our own.
36429         * lib/cloexec.c, lib/cloexec.h: New files.
36430
36431 2004-03-29  Paul Eggert  <eggert@twinsun.com>
36432
36433         * m4/cloexec.m4: New file.
36434
36435 2004-03-18  Paul Eggert  <eggert@twinsun.com>
36436
36437         * lib/getopt.h: Sync with libc CVS.
36438
36439 2004-03-18  Paul Eggert  <eggert@twinsun.com>
36440             Bruno Haible  <bruno@clisp.org>
36441
36442         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
36443         mbswidth.
36444
36445 2004-03-18  Paul Eggert  <eggert@twinsun.com>
36446             Bruno Haible  <bruno@clisp.org>
36447
36448         * lib/mbswidth.h: Include <wchar.h> only if
36449         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
36450         <wchar.h>.
36451         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
36452
36453 2004-03-09  Paul Eggert  <eggert@twinsun.com>
36454
36455         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
36456         Sync with libc CVS.
36457         * lib/getopt_int.h: New file, also synced from libc.
36458
36459 2004-03-09  Paul Eggert  <eggert@twinsun.com>
36460
36461         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
36462         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
36463         Bring back getopt.c, getopt.h, getopt1.c.
36464
36465 2004-03-07  Paul Eggert  <eggert@twinsun.com>
36466
36467         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
36468         All uses changed.  Check for sa_sigaction member; this fixes
36469         a bug first reported by Jason Andrade in
36470         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
36471
36472 2004-03-07  Paul Eggert  <eggert@twinsun.com>
36473
36474         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
36475         '#if' expressions.  Unlike the code it replaces, it does not
36476         depend on (defined _SC_PAGESIZE).  However, it does depend on
36477         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
36478         first reported by Jason Andrade in
36479         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
36480
36481 2004-02-25  Simon Josefsson  <jas@extundo.com>
36482
36483         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
36484
36485 2004-02-25  Simon Josefsson  <jas@extundo.com>
36486
36487         * lib/strdup.h: New file.
36488         * lib/strdup.c: Include it.
36489         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
36490         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
36491
36492 2004-02-23  Karl Berry  <karl@gnu.org>
36493
36494         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
36495         (from fencepost.gnu.org:/gd/gnuorg).
36496
36497 2004-02-23  Karl Berry  <karl@gnu.org>
36498
36499         * config/srclistvars.sh (GNUORG) [karl]: redefine.
36500         * config/srclist.txt: add maintain/standards documents.
36501
36502 2004-02-18  Bruno Haible  <bruno@clisp.org>
36503
36504         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
36505         Reported by Derek Robert Price <derek@ximbiot.com>.
36506
36507 2004-02-16  Karl Berry  <karl@gnu.org>
36508
36509         * config/mkinstalldirs, install-sh: update from automake.
36510
36511 2004-02-06  Karl Berry  <karl@gnu.org>
36512
36513         * m4/po.m4: update from gettext 0.14.1.
36514
36515 2004-02-06  Karl Berry  <karl@gnu.org>
36516
36517         * lib/config.charset: update from gettext 0.14.1.
36518
36519 2004-02-05  Paul Eggert  <eggert@twinsun.com>
36520
36521         Add comments and code, prompted by suggestions from Bruno Haible
36522         for sh-quote.
36523         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
36524         describing the enum quoting_style values.
36525         * lib/quotearg.c (quotearg_alloc): New function.
36526         (quotearg_buffer_restyled): Treat lone { and } as special.
36527         Treat = as special.  Work around bug with older shells
36528         that "see" a '\' that is really the 2nd byte of a multibyte char.
36529         Quote empty string with shell_quoting_style.
36530
36531 2004-02-03  Bruno Haible  <bruno@clisp.org>
36532
36533         * m4/pipe.m4: New file, from GNU gettext.
36534
36535 2004-02-03  Bruno Haible  <bruno@clisp.org>
36536
36537         * lib/pipe.h: New file, from GNU gettext.
36538         * lib/pipe.c: New file, from GNU gettext.
36539
36540 2004-01-27  Bruno Haible  <bruno@clisp.org>
36541
36542         * m4/execute.m4: New file, from GNU gettext.
36543
36544 2004-01-27  Bruno Haible  <bruno@clisp.org>
36545
36546         * lib/execute.h: New file, from GNU gettext.
36547         * lib/execute.c: New file, from GNU gettext.
36548         * lib/w32spawn.h: New file, from GNU gettext.
36549
36550 2004-01-24  Paul Eggert  <eggert@twinsun.com>
36551
36552         Merge from diffutils.
36553
36554         * lib/file-type.c (file_type): Add typed memory objects.
36555         * lib/file-type.h (S_TYPEISTMO): New macro.
36556
36557         * lib/c-stack.h (c_stack_action): Remove argv argument.
36558         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
36559         (die): Don't calculate message unless segv_action returns.
36560         (get_stack_location, min_address_from_argv, max_address_from_argv,
36561         volatile stack_base, volatile_stack_size): Remove.
36562         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
36563         that every segmentation violation is a stack overflow.  (Ouch!)
36564         See Debian bug 136249 (still outstanding) for more info about why
36565         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
36566
36567 2004-01-24  Paul Eggert  <eggert@twinsun.com>
36568
36569         Exit-status fix from coreutils.
36570
36571         Use exit_failure consistently in place of EXIT_FAILURE,
36572         so that program exit statuses are consistent on failure.
36573
36574         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
36575         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
36576         * lib/argmatch.h: Comment fix to match the above.
36577         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
36578         Now a macro referring to exit_failure, instead of a separate
36579         variable.  Include "exitfail.h" to get it.
36580         * lib/xstrtol.h: Include "exitfail.h".
36581         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
36582
36583         * lib/long-options.c (parse_long_options): Use prototype
36584         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
36585         for clarity.
36586
36587 2004-01-21  Jim Meyering  <jim@meyering.net>
36588
36589         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
36590         so as not to conflict with a different-sized __mktime_internal
36591         function in GNU libc.
36592         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
36593         Problem building statically-linked `ls' reported by Michael Brunnbauer.
36594
36595 2004-01-20  Karl Berry  <karl@gnu.org>
36596
36597         * config/config.guess: update from config.
36598
36599         * config/srclistvars.sh: GNUWWWLICENSES for karl.
36600
36601 2004-01-20  Bruno Haible  <bruno@clisp.org>
36602
36603         Safer stack allocation.
36604         * lib/setenv.c: Include allocsa.h.
36605         (alloca): Remove fallback definition.
36606         (freea): Remove macro.
36607         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
36608         instead of freea.
36609
36610 2004-01-20  Bruno Haible  <bruno@clisp.org>
36611
36612         * m4/eealloc.m4: New file, from GNU gettext.
36613
36614 2004-01-20  Bruno Haible  <bruno@clisp.org>
36615
36616         * m4/allocsa.m4: New file, from GNU gettext.
36617
36618 2004-01-20  Bruno Haible  <bruno@clisp.org>
36619
36620         * lib/xallocsa.h: New file, from GNU gettext.
36621         * lib/xallocsa.c: New file, from GNU gettext.
36622
36623 2004-01-20  Bruno Haible  <bruno@clisp.org>
36624
36625         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
36626
36627 2004-01-20  Bruno Haible  <bruno@clisp.org>
36628
36629         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
36630         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
36631         specially.
36632
36633 2004-01-20  Bruno Haible  <bruno@clisp.org>
36634
36635         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
36636         patch.
36637
36638 2004-01-20  Bruno Haible  <bruno@clisp.org>
36639
36640         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
36641
36642 2004-01-20  Bruno Haible  <bruno@clisp.org>
36643
36644         * lib/eealloc.h: New file.
36645
36646 2004-01-20  Bruno Haible  <bruno@clisp.org>
36647
36648         * lib/binary-io.h: Avoid warnings on Cygwin.
36649
36650 2004-01-20  Bruno Haible  <bruno@clisp.org>
36651
36652         * lib/allocsa.h: New file, from GNU gettext.
36653         * lib/allocsa.c: New file, from GNU gettext.
36654
36655 2004-01-18  Karl Berry  <karl@gnu.org>
36656
36657         * doc/gpl.texi, doc/lgpl.texi: new files.
36658
36659 2004-01-18  Karl Berry  <karl@gnu.org>
36660
36661         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
36662         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
36663
36664 2004-01-15  Paul Eggert  <eggert@twinsun.com>
36665
36666         Merge from coreutils.
36667
36668         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
36669         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
36670         (gl_DEFAULT_POSIX2_VERSION): Move
36671         the documentation from 'configure' into 'config.hin',
36672         so that 'configure --help' isn't burdened by it and
36673         we don't have to worry about its formatting there.
36674         Reword the documentation so that it's more succinct
36675         and can be run together into a single paragraph.
36676         * m4/same.m4 (gl_SAME): Check for pathconf.
36677
36678 2004-01-15  Paul Eggert  <eggert@twinsun.com>
36679
36680         Merge from coreutils.
36681
36682         * lib/posixver.c: Include posixver.h.
36683
36684         * lib/same.c: Include <stdbool.h>, <limits.h>.
36685         (_POSIX_NAME_MAX): Define if not defined.
36686         (MIN): New macro.
36687         (same_name): If file names are silently truncated, report
36688         that the file names are the same if they are the same after
36689         the silent truncation.
36690
36691         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
36692         conversion function.
36693         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
36694         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
36695         longer needed.
36696
36697 2004-01-15  Jim Meyering  <jim@meyering.net>
36698
36699         Merge from coreutils.
36700
36701         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
36702         if no library is required.
36703         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
36704         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
36705         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
36706         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
36707         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
36708         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
36709         value, $ac_cv_search_crypt, if it's "none required".
36710         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
36711         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
36712         not gl_FUNC_GETLOADAVG.
36713         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
36714         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
36715
36716 2004-01-15  Jim Meyering  <jim@meyering.net>
36717
36718         Merge from coreutils.
36719
36720         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
36721         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
36722         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
36723
36724         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
36725         optional configure-time default.
36726
36727         * lib/version-etc.c (version_etc_copyright): Update copyright date.
36728
36729         * lib/xreadlink.c (xreadlink): Correct outdated comment.
36730
36731 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
36732
36733         Merge from coreutils.
36734
36735         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
36736         value, $ac_cv_search_nanosleep, if it's "none required".
36737
36738 2004-01-14  Paul Eggert  <eggert@twinsun.com>
36739
36740         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
36741         with like-named macro in fnmatch.c.
36742         (EXT): Use an internal constant instead.
36743
36744         Merge fnmatch patches from glibc.
36745         * lib/fnmatch.c (mbsinit): Remove define.
36746         Add libc_hidden_ver (__fnmatch, fnmatch).
36747         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
36748         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
36749
36750 2004-01-14  Karl Berry  <karl@gnu.org>
36751
36752         * config/install-sh: update from automake.
36753
36754 2004-01-13  Karl Berry  <karl@gnu.org>
36755
36756         * config/install-sh: update from automake.
36757
36758 2004-01-09  Karl Berry  <karl@gnu.org>
36759
36760         * config/install-sh: update from automake.
36761
36762 2004-01-05  Karl Berry  <karl@gnu.org>
36763
36764         * config/config.{sub,guess}: update from config.
36765
36766 2003-12-31  Karl Berry  <karl@gnu.org>
36767
36768         * config/depcomp: update from automake.
36769
36770 2003-12-14  Karl Berry  <karl@gnu.org>
36771
36772         * lib/config.charset: update from gettext-runtime.
36773
36774 2003-12-03  Paul Eggert  <eggert@twinsun.com>
36775
36776         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
36777         Bug reported by Alfred M. Szmidt.
36778
36779 2003-12-03  Bruno Haible  <bruno@clisp.org>
36780
36781         * m4/gettext.m4: Upgrade from gettext-0.13.
36782         * m4/po.m4: Upgrade from gettext-0.13.
36783         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
36784         * m4/intmax.m4: New file, from gettext-0.13.
36785         * m4/printf-posix.m4: New file, from gettext-0.13.
36786
36787 2003-11-29  Karl Berry  <karl@gnu.org>
36788
36789         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
36790
36791 2003-11-25  Paul Eggert  <eggert@twinsun.com>
36792             Bruno Haible  <bruno@clisp.org>
36793
36794         * lib/printf-parse.h: Don't include sys/types.h.
36795         (ARG_NONE): New macro.
36796         (char_directive): Change type of *arg_index fields to size_t.
36797         * lib/printf-parse.c: Don't include sys/types.h.
36798         (SSIZE_MAX): Remove macro.
36799         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
36800         Remove unnecessary overflow check.
36801         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
36802         fields.
36803
36804 2003-11-25  Bruno Haible  <bruno@clisp.org>
36805
36806         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
36807
36808 2003-11-25  Bruno Haible  <bruno@clisp.org>
36809
36810         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
36811         gt_TYPE_SSIZE_T.
36812
36813 2003-11-24  Paul Eggert  <eggert@twinsun.com>
36814
36815         * modules/alloca: Remove dependency on xalloc.
36816
36817 2003-11-24  Paul Eggert  <eggert@twinsun.com>
36818
36819         * lib/alloca.c: Remove dependency on xalloc module.
36820         (xalloc_die): Remove.
36821         (memory_full) [!defined emacs]: New macro.
36822         [!defined emacs]: Don't include xalloc.h.
36823         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
36824         address arithmetic overflows.  Change datatypes a bit to avoid
36825         unnecessary casts.
36826
36827 2003-11-22  Jim Meyering  <jim@meyering.net>
36828
36829         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
36830         s/size/size_t/.
36831
36832 2003-11-21  Karl Berry  <karl@gnu.org>
36833
36834         * config/config.{sub,guess}: update from config.
36835
36836 2003-11-18  Karl Berry  <karl@gnu.org>
36837
36838         * config/config.{sub,guess}: update from config.
36839
36840         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
36841
36842 2003-11-17  Paul Eggert  <eggert@twinsun.com>
36843
36844         * README: Mention that S+T cannot overflow if S is the size of
36845         an existing object and T is sufficiently small.
36846
36847 2003-11-17  Jim Meyering  <jim@meyering.net>
36848
36849         On systems without utime and without a utimes function capable of
36850         dealing with a NULL struct utimbuf* argument, this utime replacement
36851         could -- in unusual circumstances -- leak a file descriptor.
36852         * lib/utime.c: Include <unistd.h> and <errno.h>.
36853         (utime_null): Be sure to close `fd' and to preserve errno.
36854         Reported by Geoff Collyer via Arnold Robbins.
36855
36856 2003-11-17  Bruno Haible  <bruno@clisp.org>
36857
36858         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
36859         (Depends-on): Add xsize.
36860
36861 2003-11-17  Bruno Haible  <bruno@clisp.org>
36862
36863         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
36864
36865 2003-11-17  Bruno Haible  <bruno@clisp.org>
36866
36867         * lib/vasnprintf.c (alloca): Remove fallback definition.
36868         (freea): Remove definition.
36869         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
36870         Reported by Paul Eggert.
36871
36872 2003-11-16  Paul Eggert  <eggert@twinsun.com>
36873             Bruno Haible  <bruno@clisp.org>
36874
36875         Protect against address arithmetic overflow.
36876         * lib/printf-args.h: Include stddef.h.
36877         (arguments): Change type of field 'count' to size_t.
36878         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
36879         'unsigned int' where appropriate.
36880         * lib/printf-parse.h: Include sys/types.h.
36881         (char_directive): Change type of *arg_index fields to ssize_t.
36882         (char_directives): Change type of fields 'count', max_*_length to
36883         size_t.
36884         * lib/printf-parse.c: Include sys/types.h and xsize.h.
36885         (SSIZE_MAX): Define fallback value.
36886         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
36887         instead of 'int' where appropriate. Check a_allocated, d_allocated
36888         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
36889         * lib/vasnprintf.c: Include xsize.h.
36890         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
36891         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
36892         overflow. Avoid wraparound when converting a width or precision from
36893         decimal to binary.
36894
36895 2003-11-16  Bruno Haible  <bruno@clisp.org>
36896
36897         Update from GNU gettext.
36898         * lib/printf-parse.c: Generalize to it can be compiled for wide
36899         strings.
36900         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
36901         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
36902         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
36903         SNPRINTF): New macros.
36904         Don't include <alloca.h> if the file is used inside libintl.
36905         (local_wcslen): New function, for Solaris 2.5.1.
36906         (VASNPRINTF): Use it instead of wcslen.
36907
36908 2003-11-16  Bruno Haible  <bruno@clisp.org>
36909
36910         * lib/xsize.h (xmax): New function.
36911         (xsum, xsum3, xsum4): Declare as "pure" functions.
36912
36913 2003-11-12  Paul Eggert  <eggert@twinsun.com>
36914
36915         * modules/xalloc (Files): Undo latest change, since xalloc.h
36916         no longer needs SIZE_MAX or PTRDIFF_MAX.
36917
36918 2003-11-12  Paul Eggert  <eggert@twinsun.com>
36919
36920         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
36921         gl_PTRDIFF_MAX.
36922
36923 2003-11-12  Paul Eggert  <eggert@twinsun.com>
36924
36925         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
36926         "return", to pacify some unknown compiler.  Problem reported
36927         by Joerg Schilling.
36928
36929 2003-11-12  Paul Eggert  <eggert@twinsun.com>
36930
36931         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
36932         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
36933         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
36934         heuristic is just as accurate as far as we know, and it removes a
36935         dependency on size_max.m4 and ptrdiff_max.m4.
36936
36937 2003-11-11  Bruno Haible  <bruno@clisp.org>
36938
36939         * modules/xsize (Files): Add m4/size_max.m4.
36940         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
36941
36942 2003-11-11  Bruno Haible  <bruno@clisp.org>
36943
36944         * m4/size_max.m4: New file.
36945         * m4/ptrdiff_max.m4: New file.
36946         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
36947         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
36948         (gl_XALLOC): Invoke it.
36949
36950 2003-11-11  Bruno Haible  <bruno@clisp.org>
36951
36952         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
36953         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
36954         defined.
36955
36956 2003-11-10  Paul Eggert  <eggert@twinsun.com>
36957
36958         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
36959         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
36960         rejected some allocations of exactly SIZE_MAX - 2 bytes.
36961         From Bruno Haible.
36962         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
36963         not (size_t) -1, since it's defined here.
36964
36965 2003-11-09  Karl Berry  <karl@gnu.org>
36966
36967         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
36968
36969 2003-11-06  Paul Eggert  <eggert@twinsun.com>
36970
36971         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
36972         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
36973         Reject sizes of exactly SIZE_MAX bytes.
36974         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
36975         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
36976
36977 2003-11-05  Bruno Haible  <bruno@clisp.org>
36978
36979         * lib/xsize.h: Include limits.h, to avoid a possible collision with
36980         SIZE_MAX defined in <limits.h> on Solaris.
36981
36982 2003-11-04  Jim Meyering  <jim@meyering.net>
36983
36984         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
36985         variable names, rather than @VAR@.
36986         * modules/poll: Likewise.
36987
36988 2003-11-04  Bruno Haible  <bruno@clisp.org>
36989
36990         * modules/xsize: New file.
36991         * modules/linebreak: Depend on xsize.
36992         * MODULES.html.sh (func_all_modules): Add xsize.
36993
36994 2003-11-04  Bruno Haible  <bruno@clisp.org>
36995
36996         * m4/xsize.m4: New file.
36997
36998 2003-11-04  Bruno Haible  <bruno@clisp.org>
36999
37000         * lib/xsize.h: New file.
37001         * lib/linebreak.c: Include xsize.h.
37002         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
37003         argument for overflow.
37004         Suggested by Paul Eggert.
37005
37006 2003-11-03  Karl Berry  <karl@gnu.org>
37007
37008         * config/config.{guess,sub}: update from config.
37009
37010 2003-11-03  Jim Meyering  <jim@meyering.net>
37011
37012         * modules/userspec (lib_SOURCES): Add userspec.h.
37013         (Include): Add "userspec.h".
37014         Improve description.
37015
37016 2003-11-03  Jim Meyering  <jim@meyering.net>
37017
37018         * lib/userspec.c: Include "userspec.h".
37019         * lib/userspec.h: New file.
37020
37021 2003-11-03  Bruno Haible  <bruno@clisp.org>
37022
37023         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
37024
37025 2003-11-03  Bruno Haible  <bruno@clisp.org>
37026
37027         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
37028         available, to avoid (extremely rare) race condition.
37029         Suggested by Paul Eggert.
37030
37031 2003-11-02  Karl Berry  <karl@gnu.org>
37032
37033         * config/srclist.txt (vasprintf.c): sync broken, sigh.
37034
37035 2003-10-31  Paul Eggert  <eggert@twinsun.com>
37036
37037         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
37038         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
37039         (read_filesystem_list): Set and use me_type_malloced.
37040         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
37041         whatever the type happens to be), for brevity and consistency.
37042         Check for size calculation overflow on Alphas running OSF/1.
37043
37044 2003-10-31  Jim Meyering  <jim@meyering.net>
37045
37046         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
37047
37048         * lib/linebuffer.c: Include <string.h> for declaration of memset.
37049
37050 2003-10-30  Paul Eggert  <eggert@twinsun.com>
37051             Bruno Haible  <bruno@clisp.org>
37052
37053         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
37054         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
37055
37056 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
37057
37058         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
37059         netbsd*-gnu*.  Suggested by Robert Millan.
37060
37061 2003-10-29  Paul Eggert  <eggert@twinsun.com>
37062
37063         * modules/group-member: Depend on stdbool.
37064
37065 2003-10-29  Paul Eggert  <eggert@twinsun.com>
37066
37067         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
37068
37069 2003-10-29  Paul Eggert  <eggert@twinsun.com>
37070
37071         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
37072         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
37073         after the 'gnu' in these cases.  This fixes some bugs in the
37074         previous change, and is based on suggestions by Robert Millan.
37075
37076 2003-10-29  Paul Eggert  <eggert@twinsun.com>
37077
37078         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
37079         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
37080         no longer needed.
37081         * lib/quotearg.c (quotearg_n_options): Use it.
37082         * lib/group-member.c: Include <stdbool.h>.
37083         (free_group_info): Arg is now const *; don't free arg.
37084         (get_group_info): Now returns bool and accepts struct group_info *,
37085         rather than returning a malloc'ed struct group_info *.
37086         All uses changed.  Check for overflow in internal size calculation.
37087
37088         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
37089         rather than xmalloc/xrealloc.
37090         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
37091         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
37092         conformance bug: the old code used a pointer after freeing the
37093         storage that it addressed.
37094         * lib/hash.c (hash_initialize): Simplify the code by using
37095         xalloc_oversized rather than doing it by hand.
37096         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
37097         the buffer preserved.  Use free and xmalloc instead.
37098         * lib/quotearg.c (quotearg_n_options): Likewise.
37099         Use a simpler test for size overflow.  Don't use xalloc_oversized
37100         because unsigned int might be wider than size_t (!); this suggests
37101         that we should switch from unsigned int to size_t for slot numbers.
37102
37103 2003-10-28  Paul Eggert  <eggert@twinsun.com>
37104
37105         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
37106         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
37107         NetBSD kernels.  Requested by Richard Stallman.
37108
37109 2003-10-27  Paul Eggert  <eggert@twinsun.com>
37110
37111         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
37112         to allocate the returned structure.  Do not allocate a subarray,
37113         as x2nrealloc will do that.
37114         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
37115         instead of xnrealloc.
37116         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
37117
37118 2003-10-27  Bruno Haible  <bruno@clisp.org>
37119
37120         * lib/stdbool_.h: Better support for BeOS.
37121
37122 2003-10-26  Paul Eggert  <eggert@twinsun.com>
37123
37124         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
37125         now uses inline.
37126
37127 2003-10-26  Paul Eggert  <eggert@twinsun.com>
37128
37129         * lib/xalloc.h (xalloc_oversized): New static inline function, for
37130         callers that want to do their own size-overflow checking.  Include
37131         <stdbool.h>, since xalloc_oversized returns bool.
37132         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
37133         to use xalloc_oversized.
37134
37135         Add two functions x2realloc, x2nrealloc, for programs that grow
37136         arrays dynamically by doubling their sizes.
37137         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
37138         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
37139         New functions.
37140
37141         Port to C99 semantics for 'inline' of external functions.
37142         Bug reported by Bruno Haible.
37143         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
37144         with the old contents of xnmalloc.
37145         (xnmalloc, xmalloc): Use it.
37146         (xnrealloc_inline): New static inline function,
37147         with the old contents of xnrealloc.
37148         (xnrealloc, xrealloc): Use it.
37149
37150         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
37151         that.
37152
37153 2003-10-26  Karl Berry  <karl@gnu.org>
37154
37155         * config/srclist.txt (COPYING.DOC): no longer available from
37156         /gd/gnuorg; don't know where the ultimate source is.
37157
37158 2003-10-25  Paul Eggert  <eggert@twinsun.com>
37159
37160         Fix several address-calculation bugs in the hash modules,
37161         plus some minor code cleanup.
37162
37163         * lib/hash.h: Include <stdbool.h>, for bool.
37164         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
37165         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
37166         hash_get_n_entries, hash_get_max_bucket_length,
37167         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
37168         hash_rehash): Use size_t rather than unsigned.
37169         * lib/hash.c (struct hash_table, hash_get_n_buckets,
37170         hash_get_n_buckets_used, hash_get_n_entries,
37171         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
37172         hash_get_entries, hash_do_for_each, hash_string, is_prime,
37173         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
37174         Likewise.
37175         (SIZE_MAX): Define if not defined.
37176         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
37177         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
37178         hash_print):
37179         Use const * when possible.
37180         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
37181         (check_tuning): Fix bug: if tuning parameters were very close to
37182         0 or 1, rounding errors could have caused subscript violations.
37183         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
37184         (hash_initialize): Add 'fail:' label
37185         to free table and return NULL, and use it to simplify code.
37186         Use calloc rather than clearing the storage ourself.
37187         (hash_initialize, hash_rehash): Check for arithmetic overflow in
37188         buffer size calculations.
37189         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
37190         Include <stddef.h>, for size_t.
37191         * lib/hash-pjw.c (hash_pjw): Likewise.
37192         Switch to method described by Bruno Haible.
37193         Include <limits.h>, for CHAR_BIT.
37194         (SIZE_BITS): New macro.
37195
37196 2003-10-23  Paul Eggert  <eggert@twinsun.com>
37197
37198         * m4/getline.m4 (AM_FUNC_GETLINE):
37199         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
37200         hosts.  Problem reported by Derek Robert Price in
37201         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
37202         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
37203         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
37204
37205 2003-10-21  Paul Eggert  <eggert@twinsun.com>
37206
37207         * lib/getndelim2.c (getndelim2): When size calculation overflows,
37208         ceiling the allocation at NMAX bytes rather than silently
37209         discarding input bytes before NMAX is reached.  This makes
37210         a difference only if NMAX exceeds SIZE_MAX / 2.
37211
37212         * lib/obstack.c: Merge from glibc.
37213         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
37214         Add libc_hidden_def (_obstack_newchunk).
37215         (_obstack_free) [! defined _LIBC]: Remove.
37216         [defined _LIBC]: Make a strong alias from obstack_free, rather than
37217         a clone of the function body.
37218         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
37219         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
37220
37221         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
37222         glibc.
37223         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
37224         arg to memcpy.
37225
37226         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
37227         (obstack_ptr_grow_fast, obstack_int_grow_fast):
37228         Don't use lvalue casts, as GCC plans to remove support for them
37229         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
37230         was also present in the non-GCC version, indicating that this
37231         code had always been buggy and had never been widely used.
37232         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
37233         Use the fast variant of each macro, rather than copying the
37234         definiens of the fast variant; that way, we'll be more likely to
37235         catch future bugs in the fast variants.
37236
37237 2003-10-20  Bruno Haible  <bruno@clisp.org>
37238
37239         * modules/wait-process: New file.
37240         * MODULES.html.sh (func_all_modules): Add wait-process.
37241
37242 2003-10-20  Bruno Haible  <bruno@clisp.org>
37243
37244         * m4/wait-process.m4: New file.
37245
37246 2003-10-20  Bruno Haible  <bruno@clisp.org>
37247
37248         * lib/wait-process.h: New file, from GNU gettext.
37249         * lib/wait-process.c: New file, from GNU gettext.
37250
37251 2003-10-19  Jim Meyering  <jim@meyering.net>
37252
37253         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
37254         HPUX 10.20.
37255
37256 2003-10-18  Karl Berry  <karl@gnu.org>
37257
37258         * config/config.guess: update from config.
37259
37260 2003-10-16  Paul Eggert  <eggert@twinsun.com>
37261
37262         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
37263         (getgroups): First arg is int, not size_t.
37264         Don't let 'free' mangle errno.
37265
37266 2003-10-16  Paul Eggert  <eggert@twinsun.com>
37267
37268         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
37269
37270 2003-10-16  Karl Berry  <karl@gnu.org>
37271
37272         * config/config.{guess,sub}: update from config.
37273
37274 2003-10-16  Jim Meyering  <jim@meyering.net>
37275
37276         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
37277         memcpy.
37278
37279 2003-10-15  Paul Eggert  <eggert@twinsun.com>
37280
37281         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
37282         (SIZE_MAX): Remove.
37283         (new_exclude, add_exclude_file): Initial size no longer needs to
37284         be a power of 2.
37285         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
37286         our own address arithmetic overflow checking.
37287
37288         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
37289         (fnmatch): Do not alloca more than 2000 wide characters;
37290         instead, use malloc for large buffers.
37291         Check for address arithmetic overflow, and return -1
37292         with errno set to ENOMEM in that case.
37293         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
37294         (NEW_PATTERN): Do not alloca more than 8000 bytes;
37295         instead, return -1.  Check for address arithmetic overflow.
37296
37297 2003-10-14  Paul Eggert  <eggert@twinsun.com>
37298
37299         Handle invalid suffixes and overflow independently, so that
37300         callers can treat them independently as needed.  Fix some bugs in
37301         suffix handling, e.g., "100k@" was not diagnosed as an invalid
37302         suffix for a human-readable blocksize.  The major caller-visible
37303         change is the addition of a new
37304         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
37305         that both overflow and suffix chars were found.
37306
37307         * lib/human.c (humblock): Don't check separately for invalid suffix
37308         char; that is xstrtoumax's job (now that its bug is fixed).
37309         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
37310         INTMAX_MAX]: New macros.
37311         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
37312         TYPE_MAXIMUM): New macros.
37313         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
37314         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
37315         if overflow occurs, as it's what __strtol does and it's more useful
37316         in practice.
37317         (__xstrtol): If __strtol reports some error other than ERANGE,
37318         reflect it to the caller as LONGINT_INVALID.  If it reports
37319         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
37320         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
37321         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
37322         value.
37323         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
37324         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
37325         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
37326         [defined UINTMAX_MAX]: New macros.
37327
37328 2003-10-14  Bruno Haible  <bruno@clisp.org>
37329
37330         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
37331
37332 2003-10-14  Bruno Haible  <bruno@clisp.org>
37333
37334         * m4/sig_atomic_t: New file, from GNU gettext.
37335         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
37336
37337 2003-10-14  Bruno Haible  <bruno@clisp.org>
37338
37339         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
37340         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
37341         Also use volatile where needed.
37342
37343 2003-10-12  Paul Eggert  <eggert@twinsun.com>
37344
37345         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
37346         Change maintainer from Bruno Haible to 'all'.
37347
37348 2003-10-12  Paul Eggert  <eggert@twinsun.com>
37349
37350         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
37351
37352 2003-10-12  Paul Eggert  <eggert@twinsun.com>
37353
37354         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
37355         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
37356         and define in terms of the other primitives.
37357         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
37358         (SIZE_MAX): Define if not already defined.
37359         (array_size_overflow): New function.
37360         (xalloc_die): Abort instead of exiting if 'error' returns.
37361         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
37362         (xmalloc, xrealloc): Use them.
37363         (xcalloc): Check for address arithmetic overflow.
37364         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
37365         a bit faster than strcpy.
37366
37367 2003-10-10  Simon Josefsson  <jas@extundo.com>
37368
37369         * modules/argp (Depends-on): Add restrict and strcase.
37370
37371 2003-10-10  Simon Josefsson  <jas@extundo.com>
37372
37373         * m4/argp.m4: Add AC_C_INLINE.
37374
37375 2003-10-08  Paul Eggert  <eggert@twinsun.com>
37376
37377         Merge getpass from libc, plus a few fixes.
37378
37379         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
37380         Include <stdbool.h>.
37381         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
37382         __fsetlocking to empty.
37383         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
37384         do include <bits/libc-lock.h>.
37385         Do not include <fcntl.h>; not needed.
37386         [_LIBC]: Include <wchar.h>.
37387         (NOTCANCEL_MODE): New macro.
37388         (flockfile, funlockfile) [_LIBC]: New macros.
37389         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
37390         [!_LIBC]: New macros.
37391         (call_fclose): New function.
37392         (getpass): Use it.  Save tty stream separately; this simplifies the
37393         code and makes it more reliable if stdin happens to equal stdout.
37394         Invoke __fsetlocking on tty.
37395         Handle thread cancellation if needed.
37396         Namespace cleanup (use __tcgetattr, __getline).
37397         Use bool for Booleans.
37398         [USE_IN_LIBIO]: Handle wide streams.
37399         [!_LIBC]: Unconditionally do the fseek, since we don't know what
37400         stream might go where.
37401
37402         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
37403         doesn't have to include <stdio.h> before us.
37404         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
37405         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
37406         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
37407         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
37408         if not declared, so that we can use getpass.c code from libc without
37409         rewriting it.
37410         (flockfile, ftrylockfile, funlockfile): New macros.
37411
37412 2003-10-08  Paul Eggert  <eggert@twinsun.com>
37413
37414         * modules/getpass: Depend on stdbool.
37415
37416 2003-10-08  Paul Eggert  <eggert@twinsun.com>
37417
37418         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
37419
37420 2003-10-07  Karl Berry  <karl@gnu.org>
37421
37422         * config/config.{guess,sub}: update from config.
37423
37424 2003-10-06  Jim Meyering  <jim@meyering.net>
37425             Bruno Haible  <bruno@clisp.org>
37426
37427         This lets translators provide better translations for the
37428         "Written by ..." part of --version output.
37429         * lib/version-etc.h: Include stdarg.h.
37430         (version_etc_copyright): Declare as readonly.
37431         (version_etc): Make this function variadic with a NULL-terminated list
37432         of author name strings.
37433         (version_etc_va): New declaration.
37434         * lib/version-etc.c: Include stdarg.h, stdlib.h.
37435         (version_etc_copyright): Declare as readonly.
37436         (version_etc_va): New function. Provide a different translatable string
37437         for each possible number of authors < 10. Abbreviate when there are 10
37438         authors or more.
37439         (version_etc): Make this function variadic. Call version_etc_va.
37440         Suggestion from Gary V. Vaughan.
37441
37442         * lib/long-options.h (parse_long_options): Change prototype: the
37443         authors string is moved to the end and becomes variadic.
37444         * lib/long-options.c: Include stdarg.h.
37445         (parse_long_options): Make this function variadic, too.
37446         Call version_etc_va, not version_etc.
37447
37448 2003-10-06  Bruno Haible  <bruno@clisp.org>
37449
37450         * modules/version-etc-2: Remove file.
37451         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
37452
37453 2003-10-06  Bruno Haible  <bruno@clisp.org>
37454
37455         * modules/fatal-signal: New file.
37456         * MODULES.html.sh (func_all_modules): Add fatal-signal.
37457
37458 2003-10-06  Bruno Haible  <bruno@clisp.org>
37459
37460         * m4/fatal-signal.m4: New file.
37461         * m4/signalblocking.m4: New file, from GNU gettext.
37462
37463 2003-10-06  Bruno Haible  <bruno@clisp.org>
37464
37465         * lib/version-etc-2.h: Remove file.
37466         * lib/version-etc-2.c: Remove file.
37467
37468 2003-10-06  Bruno Haible  <bruno@clisp.org>
37469
37470         * lib/fatal-signal.h: New file, from GNU gettext.
37471         * lib/fatal-signal.c: New file, from GNU gettext.
37472
37473 2003-10-05  Paul Eggert  <eggert@twinsun.com>
37474
37475         * README: Rework advice for preventing empty .o files.
37476         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
37477         not <sys/types.h>.
37478
37479 2003-10-04  Karl Berry  <karl@gnu.org>
37480
37481         * lib/argp*: update from libc.
37482
37483 2003-10-04  Karl Berry  <karl@gnu.org>
37484
37485         * config/config.{guess,sub}: update from config.
37486
37487 2003-10-02  Bruno Haible  <bruno@clisp.org>
37488
37489         * modules/lchown (Include): Add lchown.h.
37490         * modules/time_r (Include): Use "..." syntax.
37491         * modules/xgetdomainname (Include): Add xgetdomainname.h.
37492
37493 2003-10-01  Simon Josefsson  <jas@extundo.com>
37494
37495         * MODULES.html.sh (func_all_modules): Move gethostname from section
37496         'based on' to section 'lacking' POSIX:2001.
37497
37498 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
37499
37500         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
37501         to output mode on the same stream.
37502
37503 2003-09-29  Paul Eggert  <eggert@twinsun.com>
37504
37505         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
37506         Fix arg typo in previous patch.
37507
37508 2003-09-28  Jim Meyering  <jim@meyering.net>
37509
37510         * lib/error.c: Correct cpp indentation.
37511
37512 2003-09-27  Paul Eggert  <eggert@twinsun.com>
37513
37514         * modules/free: New file.
37515
37516 2003-09-27  Paul Eggert  <eggert@twinsun.com>
37517
37518         * m4/free.m4: New file.
37519
37520 2003-09-27  Paul Eggert  <eggert@twinsun.com>
37521
37522         * lib/minmax.h (MIN, MAX)
37523         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
37524         Omit the special code that used __typeof__, since we worry that
37525         it could be more trouble than it's worth.  See:
37526         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
37527         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
37528
37529         * lib/free.c: New file.
37530
37531 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
37532
37533         Trivial fixes to Makefile.am parts of module listings.
37534         * modules/strstr: Append strstr.h to lib_SOURCES.
37535         * modules/strcase: Likewise, for strcase.h.
37536
37537 2003-09-27  Karl Berry  <karl@gnu.org>
37538
37539         * config/mkinstalldirs: update from automake.
37540
37541 2003-09-26  Paul Eggert  <eggert@twinsun.com>
37542
37543         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
37544         (error_tail): Do not loop, reallocating temporary buffer, since
37545         the output cannot contain more wide characters than the input
37546         contains bytes, the size must be big enough already.  This avoids
37547         one potential size overflow calculation.  Check for size overflow
37548         when calculating temporary buffer size.  Free temporary buffer
37549         when done, if it was allocated with malloc; this plugs a memory
37550         leak.  Remove casts from void * to pointers, that are no longer
37551         needed now that we're assuming C89 or better.
37552
37553         Merge error changes from glibc.
37554
37555         * lib/error.c, error.h: Update copyright notice header to match glibc.
37556         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
37557         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
37558         Disable cancellation while printing error.
37559         * lib/error.h: Prepend __ to parameter names.
37560
37561 2003-09-26  Jim Meyering  <jim@meyering.net>
37562
37563         * lib/error.c (error_tail): Move some declarations
37564         into inner scope where the local variables are used.
37565
37566 2003-09-26  Bruno Haible  <bruno@clisp.org>
37567
37568         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
37569         stpncpy().
37570         Don't define stpncpy through config.h; it's now done through stpncpy.h.
37571
37572 2003-09-26  Bruno Haible  <bruno@clisp.org>
37573
37574         * lib/stpncpy.h (gnu_stpncpy): New declaration.
37575         (stpncpy): Define as alias for gnu_stpncpy.
37576         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
37577
37578 2003-09-25  Simon Josefsson  <jas@extundo.com>
37579
37580         * lib/xgetdomainname.h: New file.
37581         * lib/xgetdomainname.c: New file.
37582
37583 2003-09-25  Simon Josefsson  <jas@extundo.com>
37584             Bruno Haible  <bruno@clisp.org>
37585
37586         * modules/getdomainname: New file.
37587         * modules/xgetdomainname: New file.
37588         * MODULES.html.sh (func_all_modules): Add getdomainname,
37589         xgetdomainname.
37590
37591 2003-09-25  Simon Josefsson  <jas@extundo.com>
37592             Bruno Haible  <bruno@clisp.org>
37593
37594         * m4/getdomainname.m4: New file.
37595
37596 2003-09-25  Simon Josefsson  <jas@extundo.com>
37597             Bruno Haible  <bruno@clisp.org>
37598
37599         * lib/getdomainname.h: New file.
37600         * lib/getdomainname.c: New file.
37601
37602 2003-09-25  Karl Berry  <karl@gnu.org>
37603
37604         * lib/argp-fmtstream.c, argp-help.c: update from libc.
37605
37606 2003-09-25  Karl Berry  <karl@gnu.org>
37607
37608         * config/install-sh: update from automake.
37609
37610 2003-09-25  Bruno Haible  <bruno@clisp.org>
37611
37612         * modules/version-etc-2: New file, from modules/version-etc with
37613         modifications.
37614         * MODULES.html.sh (func_all_modules): Add version-etc-2.
37615
37616 2003-09-25  Bruno Haible  <bruno@clisp.org>
37617
37618         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
37619         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
37620
37621 2003-09-24  Simon Josefsson  <jas@extundo.com>
37622
37623         * modules/xgethostname: Add xgethostname.h.
37624
37625 2003-09-24  Paul Eggert  <eggert@twinsun.com>
37626
37627         * lib/linebuffer.c (freebuffer): Don't free the argument, just
37628         the buffer associated with the argument.  Bug reported by
37629         Simon Josefsson.
37630
37631 2003-09-24  Paul Eggert  <eggert@twinsun.com>
37632
37633         * README: Document assumptions that 'int' is at least 32 bits
37634         wide, that integer arithmetic is 2's complement without overflow,
37635         that there are no holes in integer values, that adding sizes of
37636         two nonoverlapping objects can't overflow, and that all-bits-zero
37637         yields scalar zero.  Fix spelling and capitalization typos.
37638
37639 2003-09-19  Karl Berry  <karl@gnu.org>
37640
37641         * lib/argp.h: update from libc.
37642
37643 2003-09-17  Paul Eggert  <eggert@twinsun.com>
37644
37645         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
37646         to avoid spurious warnings like "AC_RUN_IFELSE was called before
37647         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
37648
37649 2003-09-17  Paul Eggert  <eggert@twinsun.com>
37650
37651         * gnulib-tool: Use "test -h", not "test -L", for portability
37652         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
37653         (tags_regexp): Remove, since \| doesn't conform to POSIX.
37654         (sed_extract_prog): Issue s commands one-by-one, rather than
37655         using \| in one s command.
37656
37657 2003-09-16  Paul Eggert  <eggert@twinsun.com>
37658
37659         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
37660         input error, instead of returning NULL the next time we are called
37661         (and therefore losing track of errno).
37662
37663 2003-09-16  Bruno Haible  <bruno@clisp.org>
37664
37665         * gnulib-tool (func_create_testdir): Warn about duplicated
37666         dependencies.
37667
37668 2003-09-15  Paul Eggert  <eggert@twinsun.com>
37669
37670         * modules/argmatch, modules/fatal, modules/obstack,
37671         modules/xalloc, modules/xgethostname: Sort dependencies by
37672         importance, not alphabetically.
37673
37674 2003-09-15  Paul Eggert  <eggert@twinsun.com>
37675
37676         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
37677         fails, so that the caller gets the proper errno.
37678
37679         * lib/readutmp.c (read_utmp): Likewise.
37680         Check for fstat error.  Close stream and free storage
37681         when failing.
37682
37683 2003-09-14  Karl Berry  <karl@gnu.org>
37684
37685         * config/srclist.txt (strdup.c): disable for c89 changes.
37686
37687 2003-09-14  Jim Meyering  <jim@meyering.net>
37688
37689         * lib/getloadavg.c: Correct cpp indentation.
37690         * lib/strdup.c: Likewise.
37691         * lib/vasnprintf.c: Likewise.
37692
37693 2003-09-14  Bruno Haible  <bruno@clisp.org>
37694
37695         * modules/fwriteerror: New file.
37696         * MODULES.html.sh (func_all_modules): Add fwriteerror.
37697
37698 2003-09-14  Bruno Haible  <bruno@clisp.org>
37699
37700         * lib/fwriteerror.h: New file.
37701         * lib/fwriteerror.c: New file.
37702
37703 2003-09-12  Paul Eggert  <eggert@twinsun.com>
37704
37705         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
37706         modules/xgethostname, modules/xalloc: Depend on exit.
37707
37708 2003-09-12  Paul Eggert  <eggert@twinsun.com>
37709
37710         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
37711
37712         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
37713         and AC_MINIX, too, so that their extensions are available.
37714
37715         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
37716         This macro has been superseded by gl_BACKUPFILE.
37717
37718         More patches to assume C89 or better.
37719
37720         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
37721
37722         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
37723         unconditionally.
37724         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
37725         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
37726         Include <string.h>, <stdlib.h> unconditionally.
37727         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
37728         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
37729         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
37730         headers or for string.h.
37731         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
37732         or strtoul.
37733
37734         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
37735         headers.
37736         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
37737         * m4/userspec.m4 (gl_USERSPEC): Likewise.
37738         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
37739         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
37740         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
37741         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
37742         memcpy, memset.
37743         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
37744         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
37745         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
37746         strtol.
37747         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
37748         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
37749         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
37750         strtoul.
37751
37752 2003-09-12  Paul Eggert  <eggert@twinsun.com>
37753
37754         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
37755         * lib/obstack.c [!defined _LIBC]: Likewise.
37756         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
37757         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
37758         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
37759
37760         More changes to assume C89 or better.
37761
37762         * lib/error.c (error_tail): Assume vprintf.
37763
37764         * lib/argmatch.c (getenv): Remove decl.
37765         * lib/progreloc.c (get_full_program_name): Define via prototype.
37766         * lib/setenv.c (clearenv): Likewise.
37767         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
37768         needed.
37769         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
37770         (malloc, memcpy): Remove decls.
37771         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
37772         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
37773         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
37774         (memcpy): Remove macro.
37775         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
37776         (__P): Remove.  All uses removed.
37777         (PTR): Remove.  All uses changed to void *.
37778         (CHAR_BIT, NULL): Remove.
37779         (spaces, zeros, memset_space, memset_zero)
37780         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
37781         Remove.
37782         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
37783         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
37784         Define with prototype.
37785         Remove now-unnecessary prototype decl.
37786         (extra_args_spec): Assume ANSI C.  All uses changed.
37787         (extra_args_spec_iso): Remove.
37788         (my_strftime, emacs_strftimeu): Define via prototype.
37789         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
37790         unconditionally.
37791         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
37792         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
37793         (strtoul, strtol): Remove decls.
37794         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
37795         LONG_MAX): Remove.
37796         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
37797         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
37798         (LOCALE_PARAM_PROTO): New macro.
37799         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
37800         (INTERNAL (strtol), strtol): Define with a prototype.
37801         (PARAMS): Remove.  All uses removed.
37802         * lib/tempname.c: Include <string.h> unconditionally.
37803         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
37804         * lib/xgethostname.c (main): Define with a prototype.
37805         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
37806         Include <stdlib.h> unconditionally.
37807         (calloc, malloc, realloc, free): Remove decls.
37808         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
37809         Include <stdlib.h> unconditionally.  Sort include file names.
37810         (strtod): Remove.
37811         (xstrtod): Define with a prototype.
37812         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
37813         (strtol, strtoul): Remove decls.
37814
37815 2003-09-11  Paul Eggert  <eggert@twinsun.com>
37816
37817         More patches to assume C89 or better.
37818         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
37819         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
37820         string.h, memchr, STDC_HEADERS.
37821
37822 2003-09-11  Paul Eggert  <eggert@twinsun.com>
37823
37824         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
37825         Include <stdlib.h>, <string.h> unconditionally.
37826         Remove now-unnecessary cast to char *.
37827         * lib/strnlen.c: Include <string.h> unconditionally.
37828         * lib/yesno.c (yesno): Define with a prototype.
37829
37830 2003-09-11  Bruno Haible  <bruno@clisp.org>
37831
37832         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
37833
37834 2003-09-10  Jim Meyering  <jim@meyering.net>
37835
37836         * lib/error.c: Correct indentation of cpp directives.
37837
37838 2003-09-10  Bruno Haible  <bruno@clisp.org>
37839
37840         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
37841         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
37842         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
37843         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
37844         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
37845         <stdlib.h> and <string.h> checks.
37846         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
37847         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
37848
37849 2003-09-10  Bruno Haible  <bruno@clisp.org>
37850
37851         * lib/strcspn.c: Include <string.h> unconditionally.
37852         * lib/strpbrk.c: Include <string.h> unconditionally.
37853         * lib/strstr.c: Include <string.h> unconditionally.
37854         * lib/unicodeio.c: Include <string.h> unconditionally.
37855         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
37856         * lib/unsetenv.c: Likewise.
37857         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
37858         * lib/yesno.c: Include <stdlib.h> unconditionally.
37859         (rpmatch): Add prototype.
37860
37861 2003-09-09  Paul Eggert  <eggert@twinsun.com>
37862
37863         More patches to assume C89 or better.
37864         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
37865         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
37866         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
37867         or for string.h.
37868         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
37869         stdlib.h.
37870         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
37871         C headers.
37872         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
37873         string.h.
37874         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
37875         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
37876         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
37877         or for string.h.
37878         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
37879         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
37880         C headers.
37881         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
37882         memcpy.
37883         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
37884         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
37885         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
37886         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
37887         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
37888         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
37889         string.h, free.
37890         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
37891         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
37892         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
37893         C headers, or for string.h.
37894         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
37895         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
37896         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
37897         headers, memory.h, stdlib.h, string.h, strings.h.
37898         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
37899         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
37900         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
37901         strchr.
37902         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
37903         headers, memory.h, string.h.
37904         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
37905         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
37906         free.
37907         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
37908         headers.
37909         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
37910         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
37911         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
37912         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
37913         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
37914
37915 2003-09-09  Paul Eggert  <eggert@twinsun.com>
37916
37917         More K&R removal.
37918
37919         * lib/acosl.c (main): Use a prototype.
37920         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
37921         tanl.c: Likewise.
37922
37923         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
37924
37925         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
37926         (getopt, etopt_long, getopt_long_only, _getopt_internal)
37927         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
37928         with a prototype.
37929         * lib/getopt.c (const): Remove macro.
37930         Include <string.h> unconditionally.
37931         (my_index): Remove; all uses changed to strchr.
37932         (strlen): Remove decl.
37933         (exchange): Remove forward decl; no longer needed.
37934         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
37935         Define with prototype.
37936         * lib/getopt1.c (const): Remove macro.
37937         (getopt_long, getopt_long_only, main): Define with prototype.
37938
37939         * lib/getugroups.c: Include <string.h> unconditionally.
37940
37941         * lib/getusershell.c: Include <stdlib.h> unconditionally.
37942         (getusershell, setusershell, endusershell, readname, main):
37943         Define with prototypes.
37944
37945         * lib/group-member.c: Include group-member.h first.
37946         Include <stdlib.h> unconditionally.
37947
37948         * lib/hard-locale.c: Include hard-locale.h first.
37949         Include <stdlib.h>, <string.h> unconditionally.
37950
37951         * lib/hash.c (free, malloc): Remove decls.
37952         Include <stdlib.h> unconditionally.
37953
37954         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
37955         (getenv): Do not declare.
37956
37957         * lib/idcache.c: Include <string.h> unconditionally.
37958
37959         * lib/long-options.c: Include long-options.h first, to test interface.
37960         Include <stdlib.h> unconditionally.
37961
37962         * lib/makepath.c: Include makepath.h first, to test interface.
37963         Include <stdlib.h> and <string.h> unconditionally.
37964
37965         * lib/linebuffer.c: Include <stdlib.h>.
37966         (free): Remove decl.
37967
37968         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
37969         stddef.h. rpl_malloc returns void *, not char *.
37970         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
37971         prototype.
37972
37973         * lib/md5.h: Include <limits.h> unconditionally.
37974         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
37975         (__P): Remove; all uses removed.
37976         * lib/md5.c: Include "md5.h" first.
37977         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
37978         md5_buffer, md5_process_bytes, md5_process_block):
37979         Define with prototypes.
37980         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
37981         * lib/sha.c: Include "sha.h" first.
37982         Include <stdlib.h>, <string.h> unconditionally.
37983
37984         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
37985         * lib/memcmp.c (__ptr_t): Likewise.
37986         * lib/memrchr.c (__ptr_t): Likewise.
37987         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
37988         Include <string.h> unconditionally.
37989         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
37990         * lib/memchr.c: Include <stdlib.h> unconditionally.
37991         * lib/memchr.c (LONG_MAX): Remove.
37992         * lib/memrchr.c (LONG_MAX): Likewise.
37993         * lib/memchr.c (__memchr): Define via a prototype.
37994         * lib/memrchr.c (__memrchr): Likewise.
37995         * lib/memcmp.c (__P): Remove, and remove all uses.
37996         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
37997         Remove forward decls; no longer needed.
37998         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
37999         Use types required by C89 in prototype.
38000
38001         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
38002         * lib/savedir.c: Likewise.
38003         * lib/mkdir.c (free): Remove decl.
38004         * lib/rmdir.c (rmdir): Define with a prototype.
38005         * lib/savedir.c: Include savedir.h first, to test interface.
38006
38007         * lib/mktime.c (STDC_HEADERS): Remove.
38008         Include <stdlib.h>, <string.h> unconditionally.
38009
38010         * lib/modechange.c: Include <stdlib.h> unconditionally.
38011         (malloc): Remove decl.
38012
38013         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
38014         (free): Remove decl.
38015
38016         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
38017         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
38018         (This type really should be intptr_t, but that's a C99ism.)
38019         (_obstack_memcpy): Remove: all uses changed to memcpy.
38020         Include <string.h> unconditionally.
38021         (struct obstack): Assume __STDC__ for types of members
38022         chunkfun, freefun, extra_arg.
38023         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
38024         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
38025         obstack_begin, obstack_specify_allocation,
38026         obstack_specify_allocation_with_arg, obstack_chunkfun,
38027         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
38028         Remove unprototyped decls and the macros that use them.
38029         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
38030         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
38031         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
38032         (defined __STDC__ && __STDC__)]:
38033         Remove nonprototyped code.
38034         Include <stdlib.h> unconditionally.
38035         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
38036         _obstack_allocated_p, _obstack_free, obstack_free,
38037         _obstack_memory_used, print_and_abort):
38038         Define using prototypes.
38039         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
38040         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
38041         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
38042         obstack_next_free, obstack_object_size, obstack_room) [0]:
38043         Remove unused, unprototyped code.
38044
38045         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
38046
38047         * lib/physmem.c (physmem_total, physmem_available, main): Define
38048         with prototypes.
38049
38050         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
38051         (main): Define with a prototype.
38052
38053         * lib/posixver.c (getenv): Remove decl.
38054
38055         * lib/putenv.c (malloc): Returns void *, not char *.
38056         Include <string.h> unconditionally.
38057         (strchr, memcpy, NULL): Do not define.
38058
38059         * lib/readtokens.c: Include readtokens.h first, to test interface.
38060         Include <stdlib.h>, <string.h> unconditionally.
38061         (init_tokenbuffer): Define with a prototype.
38062
38063         * lib/regex.c (PARAMS): Remove.  All uses removed.
38064         All uses of _RE_ARGS removed, too.
38065         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
38066         unconditionally.
38067         (bzero): Assume memset exists.
38068         (memcmp, memcpy, NULL): Remove.
38069         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
38070         char, or assignments to local vars of type signed char.
38071         (init_syntax_once, PREFIX(extract_number_and_incr),
38072         PREFIX(print_partial_compiled_pattern),
38073         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
38074         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
38075         PREFIX(regex_grow_registers), PREFIX(regex_compile),
38076         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
38077         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
38078         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
38079         wcs_compile_range, byte_compile_range, truncate_wchar,
38080         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
38081         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
38082         count_mbs_length, wcs_re_match_2_internal,
38083         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
38084         PREFIX(alt_match_null_string_p),
38085         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
38086         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
38087         regfree, PREFIX(extract_number)): Define with prototype.  Remove
38088         now-unnecessary declaration, if any.
38089         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
38090         regcomp, regexec):
38091         Remove now-unnecessary casts among pointer types.
38092         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
38093
38094         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
38095         (free): Remove decl.
38096
38097         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
38098
38099         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
38100         (free): Remove decl.
38101
38102         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
38103         * lib/xgetcwd.c: Likewise.
38104
38105         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
38106         (free): Remove decl.
38107
38108         * lib/strchrnul.c (strchrnul): Define with a prototype.
38109         Fix bug: c_in was not converted to char before searching.
38110
38111         The following changes are not K&R related:
38112
38113         * lib/group-member.h: Include <sys/types.h>, so that this file is
38114         self-contained.
38115         * lib/makepath.h: Likewise.
38116
38117         * lib/getusershell.c (readname, default_index, line_size, readname):
38118         Use size_t, not int, for sizes.
38119         (readname): If the size overflows, report an error instead of
38120         looping forever.
38121
38122 2003-09-09  Paul Eggert  <eggert@twinsun.com>
38123
38124         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
38125         libc.
38126
38127 2003-09-09  Paul Eggert  <eggert@twinsun.com>
38128
38129         * README: New section: portability guidelines.
38130
38131 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
38132
38133         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
38134         C89 spec.
38135
38136 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
38137
38138         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
38139
38140 2003-09-08  Paul Eggert  <eggert@twinsun.com>
38141
38142         Assume C89 or better; remove K&R cruft.
38143         A few of these changes were first proposed by Derek Robert Price
38144         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
38145
38146         * lib/addext.c: Include <string.h> unconditionally.
38147         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
38148         Don't declare getenv or malloc.
38149
38150         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
38151         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
38152         (NULL): Remove.
38153         (find_stack_direction, alloca): Use prototypes.
38154
38155         * lib/atexit.c (atexit): Define using a prototype.
38156
38157         * lib/basename.c, dirname.c, stripslash.c:
38158         Include <string.h> unconditionally.
38159
38160         * lib/bcopy.c: Include <stddef.h>.
38161         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
38162
38163         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
38164
38165         * lib/error.h (error, error_at_line, error_print_progname)
38166         [! (defined (__STDC__) && __STDC__)]: Remove decls.
38167         * lib/error.c: Include error.h first, to check interface.
38168         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
38169         (VA_START): Remove; all uses changeed to va_start.
38170         (exit, strerror): Remove decls.
38171         (error_print_progname): Prototype uncondionally.
38172         Don't include <errno.h>; no longer needed.
38173         (private_strerror): Remove.
38174         (error_tail): Always define.
38175         (error, error_at_line): Assume C89 or better; always use prototypes.
38176         * lib/fatal.c: Include "fatal.h" first, to test interface.
38177         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
38178         (VA_START): Remove; all uses changed to va_start.
38179         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
38180         this case.
38181         (exit): Remove decl.
38182         (fatal): Prototype unconditionally.  Assume va_start works.
38183         Abort at end, to pacify gcc.
38184
38185         * lib/euidaccess.c (main): Define with a prototype.
38186
38187         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
38188
38189         * lib/exitfail.c: Include <stdlib.h> unconditionally.
38190
38191         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
38192         prototypes.
38193         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
38194         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
38195         (getenv): Remove decl.
38196         (fnmatch): Define using a prototype.
38197         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
38198         (FCT): Define using a prototype.
38199
38200         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
38201
38202         * lib/gethostname.c: Include <stddef.h>.
38203         (gethostname): Define with prototype.  Length is size_t, not int.
38204
38205 2003-09-08  Paul Eggert  <eggert@twinsun.com>
38206
38207         Assume C89 or better; remove K&R cruft.
38208         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
38209         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
38210         string.h, getenv, malloc.
38211         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
38212         headers.
38213         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
38214         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
38215         do not check for strerror.
38216         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
38217         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
38218         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
38219         do not check for doprnt or vprintf.
38220         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
38221         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
38222
38223 2003-09-08  Paul Eggert  <eggert@twinsun.com>
38224
38225         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
38226         getversion.c should have been removed then, but was accidentally
38227         preserved.
38228
38229         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
38230         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
38231
38232 2003-09-08  Karl Berry  <karl@gnu.org>
38233
38234         * config/config.sub, config.guess, srclistvars.sh: update from savannah
38235                 config, forget about prep.
38236
38237         * config/depcomp, missing: update from automake.
38238
38239 2003-09-07  Paul Eggert  <eggert@twinsun.com>
38240
38241         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
38242         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
38243
38244 2003-09-07  Paul Eggert  <eggert@twinsun.com>
38245
38246         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
38247         copy_tm_result.  Bug reported by Simon Josefsson in
38248         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
38249
38250 2003-09-06  Paul Eggert  <eggert@twinsun.com>
38251
38252         * m4/time_r.m4: New file.
38253         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
38254         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
38255         is. Check for timegm declaration.
38256         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
38257         Do not check for gmtime_r.
38258         Replace mktime if __mktime_internal does not exist and if mktime
38259         hasn't been replaced already.
38260
38261 2003-09-06  Paul Eggert  <eggert@twinsun.com>
38262
38263         * lib/time_r.c, lib/time_r.h: New files.
38264
38265         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
38266         __localtime_r.
38267         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
38268         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
38269
38270         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
38271         __gmtime_r.
38272         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
38273         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
38274         Include <time_r.h>.
38275
38276         * lib/timegm.c: Switch to glibc implementation, with the following
38277         changes:
38278         [defined HAVE_CONFIG_H]: Include <config.h>.
38279         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
38280         (__mktime_internal) [!defined _LIBC]: New decl.
38281         (__gmtime_r) [!defined _LIBC]: New macro and function.
38282         (timegm): Use a prototype, since gnulib assumes C89.
38283         Do not bother declaring tmp to be const, as it's not really usefu.
38284         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
38285         (timegm): Declare only if HAVE_DECL_TIMEGM.
38286
38287 2003-09-06  Paul Eggert  <eggert@twinsun.com>
38288
38289         * MODULES.html.sh (func_all_modules): Add time_r.
38290         * modules/time_r: New file.
38291         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
38292         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
38293
38294 2003-09-03  Paul Eggert  <eggert@twinsun.com>
38295
38296         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
38297         Bug reported by Lute Kamstra in
38298         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
38299
38300         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
38301         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
38302         course with correspondingly smaller numbers for tomorrow and
38303         yesterday.  From Tadayoshi Funaba.  Originally installed into
38304         sh-utils on 1999-08-07, but the patch got lost (I guess during the
38305         coreutils merge?).
38306
38307 2003-08-31  Simon Josefsson  <jas@extundo.com>
38308
38309         * modules/timegm: New file.
38310         * MODULES.html.sh (func_all_modules): Add timegm.
38311
38312 2003-08-31  Simon Josefsson  <jas@extundo.com>
38313
38314         * m4/timegm.m4: New file.
38315
38316 2003-08-31  Simon Josefsson  <jas@extundo.com>
38317
38318         * lib/timegm.h: New file.
38319         * lib/timegm.c: New file.  Based on
38320         wget-1.8.2/src/http.c:mktime_from_utc.
38321
38322 2003-08-31  Karl Berry  <karl@gnu.org>
38323
38324         * lib/argp.h: update from libc.
38325
38326 2003-08-28  Bruno Haible  <bruno@clisp.org>
38327
38328         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
38329         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
38330         followed by '#define fnmatch fnmatch_posix' gives an error.
38331
38332 2003-08-28  Bruno Haible  <bruno@clisp.org>
38333
38334         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
38335         warning on QNX, which defines O_BINARY to 000000.
38336
38337 2003-08-27  Jim Meyering  <jim@meyering.net>
38338
38339         * m4/mkstemp.m4: Require that the system mkstemp be able to create
38340         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
38341         would fail after 32.  Reported by Danny Levinson.  Details here:
38342         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
38343
38344 2003-08-24  Bruno Haible  <bruno@clisp.org>
38345
38346         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
38347         MSVC7 <stdio.h> is included later.
38348
38349 2003-08-22  Simon Josefsson  <jas@extundo.com>
38350
38351         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
38352
38353 2003-08-20  Karl Berry  <karl@gnu.org>
38354
38355         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
38356
38357 2003-08-20  Bruno Haible  <bruno@clisp.org>
38358
38359         * modules/progname: New file.
38360         * MODULES.html.sh (func_all_modules): Add progname.
38361
38362 2003-08-20  Bruno Haible  <bruno@clisp.org>
38363
38364         * lib/progname.h: New file, from GNU gettext.
38365         * lib/progname.c: New file, from GNU gettext.
38366         * lib/progreloc.c: New file, from GNU gettext.
38367
38368 2003-08-19  Jim Meyering  <jim@meyering.net>
38369
38370         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
38371         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
38372
38373 2003-08-19  Bruno Haible  <bruno@clisp.org>
38374
38375         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
38376         more.
38377
38378 2003-08-19  Bruno Haible  <bruno@clisp.org>
38379
38380         * lib/xstrdup.c: Assume <string.h> exists.
38381
38382 2003-08-18  Paul Eggert  <eggert@twinsun.com>
38383
38384         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
38385         in makefile rules.
38386
38387 2003-08-18  Jim Meyering  <jim@meyering.net>
38388
38389         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
38390         * m4/lib-ld.m4: Likewise.
38391
38392 2003-08-18  Jim Meyering  <jim@meyering.net>
38393
38394         * lib/setenv.h: Indent nested cpp directive.
38395         * lib/vasnprintf.c: Remove trailing blanks.
38396
38397 2003-08-17  Simon Josefsson  <jas@extundo.com>
38398
38399         * modules/xstrndup: New file.
38400         * MODULES.html.sh (func_all_modules): Add xstrndup.
38401
38402 2003-08-17  Simon Josefsson  <jas@extundo.com>
38403
38404         * modules/argp: Fix autoconf macro name. Add more dependencies.
38405
38406 2003-08-17  Simon Josefsson  <jas@extundo.com>
38407
38408         * m4/xstrndup.m4: New file.
38409
38410 2003-08-17  Simon Josefsson  <jas@extundo.com>
38411
38412         * m4/argp.m4: New file.
38413
38414 2003-08-17  Simon Josefsson  <jas@extundo.com>
38415             Bruno Haible  <bruno@clisp.org>
38416
38417         * lib/xstrndup.h: New file.
38418         * lib/xstrndup.c: New file.
38419
38420 2003-08-17  Bruno Haible  <bruno@clisp.org>
38421
38422         * modules/strndup (Files, Include): Add lib/strndup.h.
38423
38424 2003-08-17  Bruno Haible  <bruno@clisp.org>
38425
38426         * modules/euidaccess (Files): Add lib/euidaccess.h.
38427
38428 2003-08-17  Bruno Haible  <bruno@clisp.org>
38429
38430         * lib/strndup.h: New file.
38431
38432 2003-08-17  Bruno Haible  <bruno@clisp.org>
38433
38434         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
38435         like AC_GNU_SOURCE.
38436         * modules/extensions (configure.ac): Comment out the invocation of
38437         gl_USE_SYSTEM_EXTENSIONS.
38438
38439 2003-08-16  Paul Eggert  <eggert@twinsun.com>
38440
38441         Merges from coreutils, etc.
38442         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
38443         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
38444         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
38445         fixing a typo.
38446         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
38447         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
38448
38449 2003-08-16  Paul Eggert  <eggert@twinsun.com>
38450
38451         Document merge from coreutils.
38452         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
38453         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
38454         * modules/utime: Add m4/utimes-null.m4.
38455
38456 2003-08-16  Paul Eggert  <eggert@twinsun.com>
38457
38458         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
38459         space, undoing this 2003-08-12 change:
38460         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
38461
38462 2003-08-16  Paul Eggert  <eggert@twinsun.com>
38463
38464         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
38465         strtoul.c from libc, undoing this 2003-08-12 change:
38466         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
38467
38468 2003-08-16  Jim Meyering  <jim@meyering.net>
38469
38470         Merges from coreutils.
38471         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
38472         prefix.  Adjust cache variables similarly.  Create 500 rather than
38473         just 300 files, to exercise bug on Darwin6.5, too.
38474         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
38475         $missing_dir.
38476         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
38477         AM_SYS_POSIX_TERMIOS.
38478         Reported by mkc@mathdogs.com.
38479         Also change use of $am_cv_sys_posix_termios
38480         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
38481         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
38482         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
38483         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
38484         in /proc/mounts until it finds one with matching device number.  This
38485         is unnecessary when the FILE argument *is* a mount point.  No stat call
38486         is necessary in that case.  So, disable the statvfs-testing code on
38487         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
38488         as RedHat bug# 84846.
38489         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
38490         to 1MB, so as not to render systems with no stack size limit (e.g.,
38491         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
38492         Include <unistd.h>.  On some systems,
38493         it is required for the definition of _SC_PAGESIZE.
38494
38495 2003-08-16  Jim Meyering  <jim@meyering.net>
38496
38497         Merge from coreutils.
38498         * lib/xstrtoimax.c: #else #if -> #elif.
38499         * lib/xstrtoumax.c: Likewise.
38500
38501 2003-08-16  Jim Meyering  <jim@meyering.net>
38502
38503         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
38504         * m4/utimes.m4: Removed.
38505         * m4/utimes-null.m4: Renamed from utimes.m4.
38506
38507         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
38508         to 1MB, so as not to render systems with no stack size limit (e.g.,
38509         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
38510         Include <unistd.h>.  On some systems,
38511         it is required for the definition of _SC_PAGESIZE.
38512
38513 2003-08-16  Jim Meyering  <jim@meyering.net>
38514         and Paul Eggert  <eggert@cs.ucla.edu>
38515
38516         Merges from coreutils, etc.
38517
38518         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
38519         using the latest version from cvs.  This avoids problems with #line
38520         directives using a vendor (Sun) compiler.
38521         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
38522         Don't set GETGROUPS_LIB here; now it's
38523         done via getgroups.m4's wrapper function.
38524         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
38525         rather than just in sh-util/configure.in, so that the
38526         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
38527         same.
38528         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
38529         AC_FUNC_GETLOADAVG where to find getloadavg.c.
38530         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
38531         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
38532         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
38533         Remove code that is now done by the newly-required macros.
38534         Append $(EXEEXT) to DF_PROG.
38535         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
38536         Do not invoke or require the following here,
38537         since prereq.m4 or some gnulib .m4 now does this for us:
38538         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
38539         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
38540         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
38541         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
38542         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
38543         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
38544         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
38545         AC_FUNC_OBSTACK.
38546         Do not replace the following functions, as this is now the job
38547         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
38548         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
38549         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
38550         atexit getpass, strdup, getpagesize.
38551         Replace 'raise'.
38552         Do not check for the following functions, as this is now the job
38553         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
38554         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
38555         setregid.
38556         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
38557         Check for sys/sysctl.h.
38558         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
38559         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
38560         of checking for ssize_t ourselves.
38561
38562         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
38563         Require every macro that gnulib/modules/* suggests for us.
38564         (jm_PREREQ_ADDEXT): New macro.
38565         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
38566         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
38567
38568         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
38569         (gl_PHYSMEM): Use it.
38570         Also check for `table' function.
38571         Check for new headers and functions.
38572         Add check for sys/sysmp.h.
38573         With suggestions from Kaveh Ghazi.
38574         Ignore headers that are present but cannot be compiled.  This
38575         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
38576         C 5.4.
38577
38578 2003-08-15  Paul Eggert  <eggert@twinsun.com>
38579
38580         Document merge from coreutils.
38581         * modules/userspec: Depend on posixver.
38582         * modules/strftime: Depend on tzset.
38583
38584 2003-08-15  Paul Eggert  <eggert@twinsun.com>
38585
38586         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
38587         rather than tab, after '#' in shell-script copyright notices.
38588         Suggested by Bruno Haible.
38589
38590 2003-08-15  Paul Eggert  <eggert@twinsun.com>
38591
38592         * config/srclist-update: Use three spaces, rather than tab, after '#'
38593         in shell-script copyright notices.  Suggested by Bruno Haible.
38594         Remove unnecessary parenthesization in regular expression.
38595
38596 2003-08-15  Jim Meyering  <jim@meyering.net>
38597
38598         Merge from coreutils.
38599         * lib/xgethostname.c: Include <stdlib.h>.
38600         (xghostname): Don't exit for anything other than memory-related
38601         failure; just return NULL.
38602         * lib/userspec.c: Include "posixver.h".
38603         (parse_user_spec): Accept `.' as a separator only
38604         in pre-POSIX-200112 mode.
38605         * lib/strtoimax.c: Use #elif rather than #else #if.
38606         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
38607         Remove function, now that we can rely on a working tzset function.
38608         [!_LIBC]: Ensure that the required autoconf test has been run.
38609         [!defined _NL_CURRENT && HAVE_STRFTIME]:
38610         Use underlying_strftime for %r.
38611         * lib/sha.c: Merge in some clean-up and optimization changes from
38612         glibc.
38613         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
38614         Ensure that it is a multiple of 64.
38615         Rearrange loop exit tests so as to avoid performing an
38616         additional fread after encountering an error or EOF.
38617         * lib/realloc.c: Update copyright date.
38618
38619 2003-08-15  Jim Meyering  <jim@meyering.net>
38620         and Paul Eggert  <eggert@twinsun.com>
38621
38622         Merge from coreutils.
38623         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
38624         member but strut utmpx does not.  Needed for AIX 4.3.3.
38625         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
38626
38627 2003-08-15  Jim Meyering  <jim@meyering.net>
38628         and Paul Eggert  <eggert@cs.ucla.edu>
38629
38630         Merges from coreutils, etc.
38631         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
38632         Require gl_FUNC_TZSET_CLOBBER.
38633         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
38634         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
38635         members.
38636
38637 2003-08-14  Paul Eggert  <eggert@twinsun.com>
38638
38639         Help the merge from coreutils.
38640         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
38641         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
38642         * m4/tzset.m4: Use it too.
38643
38644 2003-08-14  Paul Eggert  <eggert@twinsun.com>
38645
38646         * modules/tzset: New file.
38647
38648 2003-08-14  Jim Meyering  <jim@meyering.net>
38649
38650         Merges from coreutils.
38651         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
38652         variable names, rather than @FNMATCH_H@.
38653         * modules/alloca: Likewise for $(ALLOCA_H).
38654
38655         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
38656         the three copies of the literal target, `fnmatch.h'.
38657         * modules/alloca (alloca.h): Likewise.
38658
38659 2003-08-14  Jim Meyering  <jim@meyering.net>
38660
38661         Merge from coreutils.
38662         * m4/tzset.m4: New file.
38663         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
38664         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
38665         otherwise, AIX 5.1 systems would end up using the latter.
38666         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
38667         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
38668         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
38669         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
38670
38671 2003-08-14  Jim Meyering  <jim@meyering.net>
38672
38673         Merge from coreutils.
38674         * lib/obstack.h: Whitespace changes.
38675         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
38676         and xcalloc return values.
38677         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
38678         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
38679         hang on OSF/1 5.1 for DIR on both local and remote file systems.
38680         Reported by (and fix confirmed by) Nelson H. F. Beebe.
38681         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
38682         error from mntctl.
38683         Use mntctl's return value to drive the entry-processing loop, since
38684         we can't rely on the value of the vmt_length member in the last
38685         entry.  On some systems doing so could result in exhausting
38686         virtual memory.  Based in part on a patch from Mike Jetzer.
38687
38688 2003-08-14  Jim Meyering  <jim@meyering.net>
38689         and Paul Eggert  <eggert@twinsun.com>
38690
38691         Merges from coreutils, plus other fixes.
38692         * lib/physmem.c: Merge in portability changes from gcc/libiberty
38693         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
38694         for credits and details.  Thanks to Kaveh Ghazi for helping
38695         to keep these files in sync.
38696         (ARRAY_SIZE): Define it.
38697         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
38698         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
38699         (memcasecmp): Don't assume size_t fits in unsigned int.
38700         Remove casts and duplicate code.
38701         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
38702         (memcpy): Remove definition.
38703         Merge in some clean-up and optimization changes from glibc.
38704         [BLOCKSIZE]: Move definition to top of file.
38705         Ensure that it is a multiple of 64.
38706         Rearrange loop exit tests so as to avoid performing an
38707         additional fread after encountering an error or EOF.
38708         * lib/md5.h (md5_uintptr): Define.
38709         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
38710         return to the initial working directory.  Preserve errno
38711         for caller.
38712         * lib/idcache.c: Include "xalloc.h".
38713         (xmalloc, xrealloc): Remove decls.
38714         (getuser): Remove casts no longer required in C89.
38715         * lib/human.c: Include stdio.h, for sprintf.
38716         * lib/group-member.c: Include "xalloc.h".
38717         (xmalloc, xrealloc): Remove decls.
38718         (get_group_info): Remove casts no longer required in C89.
38719         * lib/getusershell.c (readname): Remove casts no longer required in
38720         C89.
38721         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
38722         * lib/getline.c: Whitespace fix, from coreutils.
38723
38724 2003-08-13  Paul Eggert  <eggert@twinsun.com>
38725
38726         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
38727         Check for isascii.
38728
38729         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
38730         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
38731         Undo previous (whitespace-only) change.
38732
38733 2003-08-13  Paul Eggert  <eggert@twinsun.com>
38734
38735         * lib/exclude.c: Include <ctype.h>
38736         (IN_CTYPE_DOMAIN): New macro.
38737         (is_space): New fn.
38738         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
38739         and empty lines.
38740
38741         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
38742         Undo previous (whitespace-only) change.
38743
38744 2003-08-13  Paul Eggert  <eggert@twinsun.com>
38745
38746         * config/srclist-update: Change update back to the old behavior,
38747         leaving whitespace alone.  Use one 'sed' command rather than a
38748         pipeline.
38749         (fixlicense): Now a variable, not a function.
38750         (remove_trailing_blanks): Remove.
38751         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
38752         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
38753         Undo previous (whitespace-only) change.
38754
38755 2003-08-12  Paul Eggert  <eggert@twinsun.com>
38756
38757         Merge from coreutils.
38758         * modules/euidaccess: Add lib_SOURCES, include for new
38759         file euidaccess.h
38760
38761 2003-08-12  Paul Eggert  <eggert@twinsun.com>
38762
38763         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
38764         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
38765         Normalize leading white space and remove trailing white space.
38766
38767         Merge from coreutils
38768         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
38769
38770         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
38771         0.12.1.  These files are now being upgraded automatically by
38772         ../config/srclist-update.
38773
38774 2003-08-12  Paul Eggert  <eggert@twinsun.com>
38775
38776         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
38777         Normalize leading white space and remove trailing white space.
38778         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
38779         notice, as per ../config/srclist-update.
38780
38781         Merge from coreutils.
38782         * lib/euidaccess.h: New file.
38783         * lib/euidaccess.c: Include it.
38784         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
38785         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
38786         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
38787
38788 2003-08-12  Paul Eggert  <eggert@twinsun.com>
38789
38790         * config/srclist-update: Add copyright notice.
38791         (remove_id_lines, remove_trailing_blanks): New constants.
38792         (fixfile): Use them to normalize spacing a bit in copied files.
38793         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
38794         Normalize leading white space and remove trailing white space.
38795
38796         * config/texinfo.tex: Sync with texinfo.
38797
38798         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
38799         strtoul.c from libc, to merge coreutils whitespace changes.
38800
38801         * config/srclist.txt: Get the following m4 files from gettext:
38802         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
38803         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
38804         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
38805         wint_t.m4.
38806
38807 2003-08-12  Karl Berry  <karl@gnu.org>
38808
38809         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
38810         been made.
38811
38812 2003-08-11  Paul Eggert  <eggert@twinsun.com>
38813
38814         * modules/gnu-source, m4/gnu-source.m4:
38815         Remove; we're assuming Autoconf 2.54 or later now.
38816         Suggested by Bruno Haible.
38817         * MODULES.html.sh (func_all_modules): Remove gnu-source.
38818
38819 2003-08-11  Bruno Haible  <bruno@clisp.org>
38820
38821         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
38822
38823 2003-08-11  Bruno Haible  <bruno@clisp.org>
38824
38825         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
38826         (vasnprintf): Use it instead of wcslen.
38827
38828 2003-08-11  Bruno Haible  <bruno@clisp.org>
38829
38830         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
38831         value to ensure that _Bool promotes to int. Use #define for _Bool when
38832         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
38833
38834 2003-08-10  Karl Berry  <karl@gnu.org>
38835
38836         * lib/regex.h: update from libc (whitespace fix).
38837
38838 2003-08-09  Paul Eggert  <eggert@twinsun.com>
38839
38840         Merge some files from coreutils.  These changes were
38841         originally made by Jim Meyering.
38842         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
38843         many older Unixes require this.
38844         * lib/alloca.c (alloca): Remove cast to argument of free;
38845         no longer needed in C89.
38846         * lib/alloca_.h, regex.h: Fix white space to match
38847         what GNU indent does.
38848
38849 2003-08-09  Paul Eggert  <eggert@twinsun.com>
38850
38851         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
38852         apparently Emacs's Unicode mode got confused before my 2003-08-05
38853         checkin.
38854
38855 2003-08-08  Paul Eggert  <eggert@twinsun.com>
38856
38857         * m4/extensions.m4: New file.
38858         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
38859         Require gl_USE_SYSTEM_EXTENSIONS.
38860         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
38861         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
38862
38863 2003-08-08  Paul Eggert  <eggert@twinsun.com>
38864
38865         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
38866         * modules/extensions, modules/gnu-source: New files.
38867         * modules/timespec, modules/unlocked-io: Depend on extensions.
38868
38869 2003-08-07  Paul Eggert  <eggert@twinsun.com>
38870
38871         * modules/restrict: New file.
38872         * MODULES.html.sh (func_all_modules): Add restrict.
38873         * modules/regex: Depend on restrict.
38874
38875 2003-08-07  Paul Eggert  <eggert@twinsun.com>
38876
38877         * m4/restrict.m4: New file.
38878         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
38879
38880 2003-08-07  Bruno Haible  <bruno@clisp.org>
38881
38882         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
38883         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
38884
38885 2003-08-07  Bruno Haible  <bruno@clisp.org>
38886
38887         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
38888         makes the module 'getndelim2' compatible with the module 'getline'.
38889
38890 2003-08-05  Paul Eggert  <eggert@twinsun.com>
38891
38892         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
38893         byte with "\201" to avoid glitches when editing that source file
38894         with multi-gnome-terminal.
38895
38896 2003-08-05  Paul Eggert  <eggert@twinsun.com>
38897
38898         * lib/bumpalloc.h: Remove.
38899
38900 2003-08-05  Paul Eggert  <eggert@twinsun.com>
38901
38902         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
38903         * modules/bumpalloc: Remove.
38904
38905 2003-08-04  Paul Eggert  <eggert@twinsun.com>
38906
38907         * lib/getloadavg.c: Change copyright notice and spacing to conform to
38908         GNU coding style.
38909
38910         Merge from coreutils.
38911         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
38912         1. From glibc.
38913         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
38914         from Karl Berry, implemented by Jim Meyering.
38915         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
38916         from Dmitry V. Levin.
38917         Remove anachronistic cast of xrealloc.
38918         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
38919         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
38920         type. Otherwise, it wouldn't compile with at least /bin/cc on
38921         ymp-cray-unicos9.0.2.X.
38922         Combine two mostly-identical uses of alloca into one.
38923         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
38924
38925 2003-08-04  Dave Love  <d.love@dl.ac.uk>
38926
38927         [From Emacs.]
38928
38929         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
38930         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
38931         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
38932         obsolete NLIST_NAME_UNION.
38933         [__GNU__]: Undef BSD and FSCALE.
38934         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
38935
38936 2003-08-03  Paul Eggert  <eggert@twinsun.com>
38937
38938         * lib/stdbool_.h (_Bool): Make it signed char, instead of
38939         an enum type, so that it's guaranteed to promote to int.  See:
38940         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
38941
38942 2003-08-03  Karl Berry  <karl@gnu.org>
38943
38944         * config/depcomp: update from automake.
38945
38946 2003-07-31  Paul Eggert  <eggert@twinsun.com>
38947
38948         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
38949         (strerror): Don't assume that a printable int fits in 14 bytes.
38950
38951 2003-07-31  Bruno Haible  <bruno@clisp.org>
38952
38953         * modules/getpass-gnu: New file.
38954         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
38955
38956 2003-07-31  Bruno Haible  <bruno@clisp.org>
38957
38958         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
38959
38960 2003-07-24  Karl Berry  <karl@gnu.org>
38961
38962         * config/missing: update from automake.
38963
38964 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
38965             Bruno Haible  <bruno@clisp.org>
38966
38967         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
38968         * lib/getline.c (getline, getdelim): Likewise.
38969         Remove _GNU_SOURCE define; now it's defined in config.h through
38970         m4/getline.m4.
38971
38972 2003-07-23  Karl Berry  <karl@gnu.org>
38973
38974         * config/config.sub: update from prep.
38975
38976 2003-07-22  Paul Eggert  <eggert@twinsun.com>
38977
38978         * modules/xalloc (Depends-on): Add exitfail.
38979         * modules/xmemcoll: Likewise.
38980
38981 2003-07-22  Paul Eggert  <eggert@twinsun.com>
38982
38983         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
38984         over-parenthesization in macros.
38985
38986         Sync with coreutils.
38987
38988         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
38989         required by C99.
38990
38991         Use `exit_failure' for xalloc and xmemcoll instead of their own
38992         private exit-failure variables.
38993         * lib/xalloc.h (xalloc_exit_failure): Remove.
38994         * lib/xmalloc.c: Likewise.  Include exitfail.h.
38995         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
38996         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
38997         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
38998         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
38999
39000 2003-07-20  Jim Meyering  <jim@meyering.net>
39001
39002         * modules/closeout (Depends-on): Add exitfail.
39003         Suggestion from Bruno Haible.
39004
39005 2003-07-19  Karl Berry  <karl@gnu.org>
39006
39007         * config/config.sub: update from prep.
39008
39009 2003-07-18  Paul Eggert  <eggert@twinsun.com>
39010
39011         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
39012         Remove.
39013         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
39014         to test that it can stand by itself.  Include "exitfail.h".
39015         Clients should set exit_failure instead.
39016         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
39017
39018 2003-07-18  Bruno Haible  <bruno@clisp.org>
39019
39020         * modules/getndelim2: New file.
39021         * modules/getline: Share files with module getndelim2.
39022         * modules/getnline: Depend on getndelim2 instead of sharing files with
39023         it. Add getnline.c to lib_SOURCES.
39024         * MODULES.html.sh (func_all_modules): Add getndelim2.
39025
39026 2003-07-18  Bruno Haible  <bruno@clisp.org>
39027
39028         * m4/getndelim2.m4: New file.
39029         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
39030         invoke gl_PREREQ_GETNDELIM2.
39031         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
39032         gl_PREREQ_GETNDELIM2.
39033         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
39034         gl_GETNDELIM2.
39035
39036 2003-07-18  Bruno Haible  <bruno@clisp.org>
39037
39038         * lib/getndelim2.h: New file.
39039         * lib/getndelim2.c: Make into a module of its own. Include config.h,
39040         getndelim2.h.
39041         (getndelim2): Make non-static. Change return type to ssize_t.
39042         * lib/getline.h: Change argument names.
39043         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
39044         * lib/getnline.c: Include getndelim2.h.
39045
39046 2003-07-18  Andreas Schwab  <schwab@suse.de>
39047
39048         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
39049
39050 2003-07-17  Karl Berry  <karl@gnu.org>
39051
39052         * config/config.sub: update from prep.
39053
39054 2003-07-17  Bruno Haible  <bruno@clisp.org>
39055
39056         * modules/getnline: New file.
39057         * modules/getline: Add lib/getndelim2.c to source file list.
39058         * MODULES.html.sh (func_all_modules): Add getnline.
39059
39060 2003-07-17  Bruno Haible  <bruno@clisp.org>
39061
39062         * m4/getnline.m4: New file.
39063
39064 2003-07-17  Bruno Haible  <bruno@clisp.org>
39065
39066         * m4/Makefile.am.in: Remove file.
39067         * m4/Makefile.am: Remove file.
39068         * m4/Makefile.in: Remove file.
39069
39070 2003-07-17  Bruno Haible  <bruno@clisp.org>
39071
39072         * lib/getnline.h: New file.
39073         * lib/getnline.c: New file.
39074         * lib/getndelim2.c: New file, extracted from getline.c.
39075         (getndelim2): Renamed from getdelim2, with added nmax argument.
39076         * lib/getline.c: Include getndelim2.c.
39077         (getdelim2): Moved out to getndelim2.c.
39078         (getline, getdelim): Update.
39079
39080 2003-07-17  Bruno Haible  <bruno@clisp.org>
39081
39082         * lib/Makefile.am: Remove file.
39083         * lib/Makefile.in: Remove file.
39084
39085 2003-07-17  Bruno Haible  <bruno@clisp.org>
39086
39087         * configure.in: Remove file.
39088         * Makefile.in: Remove file.
39089
39090 2003-07-17  Bruno Haible  <bruno@clisp.org>
39091
39092         * MODULES.html.sh: Put the </BODY> right before </HTML>.
39093
39094 2003-07-16  Karl Berry  <karl@gnu.org>
39095
39096         * config/srclist-update: was running fixlicense twice, which caused
39097                 texinfo.tex to be nullified for some reason.  Simplify,
39098                 $gplsrc is no longer needed as far as I can see?
39099
39100 2003-07-16  Jim Meyering  <jim@meyering.net>
39101
39102         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
39103
39104 2003-07-15  Paul Eggert  <eggert@twinsun.com>
39105
39106         * config/srclist.txt: Get the following files from gettext-runtime/intl
39107         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
39108         ref-del.sin.  From Bruno Haible.
39109         * config/srclist-update (fixfile): Change grep pattern again, since the
39110         previous fix didn't work (there was another trailing $).  Use
39111         '[$]' to escape the $s.
39112
39113 2003-07-15  Karl Berry  <karl@gnu.org>
39114
39115         * lib/vasnprintf.c: update from gettext.
39116
39117 2003-07-15  Karl Berry  <karl@gnu.org>
39118
39119         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
39120         gets expanded when surrounded by '$'.
39121
39122 2003-07-15  Jim Meyering  <jim@meyering.net>
39123
39124         * modules/save-cwd: Don't depend on error.  From Derek Price.
39125
39126 2003-07-15  Jim Meyering  <jim@meyering.net>
39127
39128         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
39129
39130 2003-07-14  Simon Josefsson  <jas@extundo.com>
39131
39132         * modules/mempcpy: New file.
39133         * MODULES.html.sh (func_all_modules): Add mempcpy.
39134
39135 2003-07-14  Simon Josefsson  <jas@extundo.com>
39136
39137         * m4/mempcpy.m4: New file.
39138
39139 2003-07-14  Simon Josefsson  <jas@extundo.com>
39140
39141         * lib/mempcpy.h: New file.
39142         * lib/mempcpy.c: New file.
39143
39144 2003-07-14  Paul Eggert  <eggert@twinsun.com>
39145
39146         * modules/getdate, modules/posixtm: Depend on mktime.
39147
39148 2003-07-14  Paul Eggert  <eggert@twinsun.com>
39149
39150         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
39151         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
39152         unicodeio.c, unicodeio.h, unlocked-io.h:
39153         Switch from LGPL to GPL.
39154
39155 2003-07-14  Paul Eggert  <eggert@twinsun.com>
39156
39157         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
39158         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
39159         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
39160         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
39161         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
39162         updated automatically by ../config/srclist-update.  This changes
39163         their license from LPGL to GPL.
39164
39165 2003-07-14  Paul Eggert  <eggert@twinsun.com>
39166
39167         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
39168         assumed to refer to the root of the most recent stable gettext version.
39169         * config/srclistvars.sh: Add defaults for eggert.
39170         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
39171         Match "This program" as well as "The program".  This is needed
39172         for gettext.
39173
39174 2003-07-14  Jim Meyering  <jim@meyering.net>
39175
39176         Don't emit diagnostics.  Let callers do that.
39177         * lib/save-cwd.c: Don't include "error.h".
39178         (save_cwd): Don't call error.  Ensure that errno is valid
39179         when returning nonzero.
39180
39181         * lib/save-cwd.h (restore_cwd): Update prototype.
39182         * lib/save-cwd.c (restore_cwd): Remove two parameters.
39183         Simplify.  Don't call error upon failure.  Let callers do that.
39184         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
39185         when auditing is enabled.  But don't bother updating the #if.
39186
39187 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
39188
39189         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
39190         it breaks C++ compilation.
39191         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
39192
39193 2003-07-10  Simon Josefsson  <jas@extundo.com>
39194
39195         * modules/strchrnul (Makefile.am): Add strchrnul.h.
39196
39197 2003-07-10  Jim Meyering  <jim@meyering.net>
39198
39199         * m4/clock_time.m4: Remove trailing blank.
39200         * m4/intmax_t.m4: Likewise.
39201
39202 2003-07-10  Jim Meyering  <jim@meyering.net>
39203
39204         * lib/vasnprintf.c: Remove trailing blanks.
39205         Make cpp indentation consistent.
39206
39207 2003-07-09  Paul Eggert  <eggert@twinsun.com>
39208
39209         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
39210         posixver.c, strftime.c, strnlen.c, strverscmp.c:
39211         Switch from LGPL to GPL.
39212
39213 2003-07-09  Paul Eggert  <eggert@twinsun.com>
39214
39215         * config/srclist.txt: Sort sublists.  Add
39216         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
39217         that differ from gnulib for one reason or another; we'd like this list
39218         to be smaller but for now let's document what we have.
39219
39220 2003-07-08  Paul Eggert  <eggert@twinsun.com>
39221
39222         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
39223         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
39224         and sweeter "eval x=$x".
39225         * config/srclist.txt: Get lib/argp* from glibc.
39226
39227 2003-07-07  Paul Eggert  <eggert@twinsun.com>
39228
39229         * lib/mktime.c: Fix some boundary cases and remove need for floating
39230         point.
39231
39232         Issue a compile-time diagnostic if time_t is floating point, or if
39233         two's complement arithmetic is not in effect, or if arithmetic
39234         right shift does not propagate the sign.  These assumptions were
39235         all in the original code but they weren't checked.
39236
39237         (TIME_T_MIDPOINT, verify): New macros.
39238         (__isleap): Remove; it has integer overflow problems.
39239         (leapyear): New function, without those problems.
39240         (ydhms_tm_diff): Remove; splitting into two parts.
39241         (ydhms_diff): New function, containing the arithmetic part of
39242         the old ydhms_tm_diff function.  Issue a compile-time
39243         diagnostic if we are not using C99 integer division.
39244         Avoid casts when possible.
39245         (guess_time_tm): New function, containing the checking part of
39246         the old ydhms_tm_diff function.  Return the new value, rather than
39247         the difference between it and the old.  Accept a new argument T
39248         so that *T specifies the old value.  Check for overflow in the result.
39249
39250         (__mktime_internal): Use a time_t offset, not a long int offset.
39251         This undoes the 2003-06-04 change, which is no longer needed now
39252         that we have better overflow checking.
39253         (localtime_offset): Likewise.
39254
39255         (__mktime_internal): Avoid harmful overflow on hosts where time_t
39256         and long are 64-bit but int is only 32-bit.
39257         (ydhms_diff): Use long int to store year1 and yday1.
39258         Issue a compile-time diagnostic if long int is not wide enough.
39259
39260         (__mktime_internal): Use long int to store adjusted year and yday.
39261         Use plain C rather than preprocessor commands, if that doesn't
39262         affect efficiency.
39263         Check for overflow (and try to repair) after each probe
39264         rather than checking only at the very end.  This avoids some bugs
39265         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
39266         does not equal GMT offset at maximum time).
39267         Use integer to check for overflow rather than floating point; this
39268         is more portable to non-IEEE hosts, and is a tad faster.
39269         When we detect that we are oscillating between two values,
39270         don't check whether tm_isdst has the requested value, since
39271         we already know the answer.  When tm_isdst has the wrong value,
39272         use a different heuristic to find the right one, based on the
39273         extreme values actually observed in practice in tz2003a,
39274         rather than the (overly optimistic) "previous 3 calendar quarters".
39275
39276         (not_equal_tm, print_tm, check_result): Use "const T" rather than
39277         "T const" to accommodate glibc style.
39278         (check_result): Use less-confusing report format.  "long" -> "long int.
39279         (main): Likewise.
39280         Don't loop if the iteration overflows time_t.
39281         Allow a negative step in the iteration.
39282
39283 2003-07-06  Karl Berry  <karl@gnu.org>
39284
39285         * config/depcomp: update from automake.
39286         * config/config.sub: update from prep.
39287
39288 2003-07-03  Karl Berry  <karl@gnu.org>
39289
39290         * config/config.guess: update from prep.
39291
39292 2003-07-01  Paul Eggert  <eggert@twinsun.com>
39293
39294         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
39295         xreadlink.c now includes it unconditionally.
39296
39297 2003-07-01  Paul Eggert  <eggert@twinsun.com>
39298
39299         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
39300         having it depend on HAVE_SYS_TYPES_H.
39301
39302 2003-07-01  Bruno Haible  <bruno@clisp.org>
39303
39304         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
39305         <sys/types.h> should be sufficient.
39306         Reported by Paul Eggert.
39307
39308 2003-06-26  Karl Berry  <karl@gnu.org>
39309
39310         * config/depcomp: update from automake.
39311
39312 2003-06-26  Bruno Haible  <bruno@clisp.org>
39313
39314         * modules/human: Depend on module stdbool.
39315
39316 2003-06-25  Bruno Haible  <bruno@clisp.org>
39317
39318         * modules/readlink: New file.
39319         * modules/xreadlink: Depend on it.
39320         * MODULES.html.sh (func_all_modules): Add readlink.
39321
39322 2003-06-25  Bruno Haible  <bruno@clisp.org>
39323
39324         * m4/readlink.m4: New file.
39325
39326 2003-06-25  Bruno Haible  <bruno@clisp.org>
39327
39328         * lib/readlink.c: New file.
39329
39330 2003-06-22  Karl Berry  <karl@gnu.org>
39331
39332         * config/srclist.txt: update mkinstalldirs from automake.
39333         * config/mkinstalldirs: update.
39334
39335 2003-06-22  Bruno Haible  <bruno@clisp.org>
39336
39337         Portability to mingw32.
39338         * m4/ssize_t.m4: New file, from GNU gettext.
39339         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
39340         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
39341
39342 2003-06-22  Bruno Haible  <bruno@clisp.org>
39343
39344         * modules/safe-read: Add m4/ssize_t.m4.
39345         * modules/xreadlink: Add m4/ssize_t.m4.
39346
39347 2003-06-20  Bruno Haible  <bruno@clisp.org>
39348
39349         Assume C89, so PARAMS isn't needed.
39350         * lib/unicodeio.h (PARAMS): Remove.
39351         * lib/unicodeio.c: Don't use PARAMS.
39352
39353 2003-06-18  Karl Berry  <karl@gnu.org>
39354
39355         * config/config.{guess,sub}: update from prep.
39356
39357 2003-06-18  Jim Meyering  <jim@meyering.net>
39358
39359         Merge changes from coreutils.
39360         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
39361         Remove explicit declarations of xmalloc and realloc.
39362         Include xalloc.h.
39363         (read_utmp): Remove anachronistic cast of xmalloc.
39364
39365 2003-06-17  Paul Eggert  <eggert@twinsun.com>
39366
39367         Assume C89, so PARAMS isn't needed.
39368         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
39369         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
39370         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
39371         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
39372         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
39373         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
39374         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
39375         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
39376         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
39377         lib/xstrtod.h, lib/xstrtol.h: Likewise.
39378         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
39379         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
39380         no longer needed. Anyway, config.h should always be included before any
39381         other file.
39382
39383 2003-06-11  Simon Josefsson  <jas@extundo.com>
39384
39385         * modules/sysexits: New file.
39386         * MODULES.html.sh (func_all_modules): Add sysexits.
39387
39388 2003-06-11  Simon Josefsson  <jas@extundo.com>
39389
39390         * lib/sysexit_.h: New file.
39391
39392 2003-06-11  Derek Price  <derek@ximbiot.com>
39393
39394         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
39395         necessary.
39396
39397 2003-06-11  Bruno Haible  <bruno@clisp.org>
39398
39399         * m4/sysexits.m4: New file.
39400
39401 2003-06-10  Simon Josefsson  <jas@extundo.com>
39402
39403         * lib/argp.h: New file, from glibc.
39404         * lib/argp-ba.c: New file, from glibc.
39405         * lib/argp-eexst.c: New file, from glibc.
39406         * lib/argp-fmtstream.c: New file, from glibc.
39407         * lib/argp-fmtstream.h: New file, from glibc.
39408         * lib/argp-fs-xinl.c: New file, from glibc.
39409         * lib/argp-help.c: New file, from glibc.
39410         * lib/argp-namefrob.h: New file, from glibc.
39411         * lib/argp-parse.c: New file, from glibc.
39412         * lib/argp-pv.c: New file, from glibc.
39413         * lib/argp-pvh.c: New file, from glibc.
39414         * lib/argp-xinl.c: New file, from glibc.
39415
39416 2003-06-10  Simon Josefsson  <jas@extundo.com>
39417
39418         * modules/strchrnul: New file.
39419
39420 2003-06-10  Simon Josefsson  <jas@extundo.com>
39421
39422         * modules/argp: New file.
39423
39424 2003-06-10  Simon Josefsson  <jas@extundo.com>
39425
39426         * m4/strchrnul.m4: New file.
39427
39428 2003-06-10  Simon Josefsson  <jas@extundo.com>
39429
39430         * lib/strchrnul.h: New file.
39431         * lib/strchrnul.c: New file.
39432
39433 2003-06-10  Bruno Haible  <bruno@clisp.org>
39434
39435         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
39436
39437 2003-06-07  Karl Berry  <karl@gnu.org>
39438
39439         * config/config.{guess,sub}: update from prep.
39440
39441 2003-06-07  Jim Meyering  <jim@meyering.net>
39442
39443         * modules/strtod: Use $(...) notation, not @...@ for
39444         AC_REPLACE'd variables.
39445         * modules/localcharset: Likewise.
39446
39447 2003-06-07  Jim Meyering  <jim@meyering.net>
39448
39449         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
39450         in place of my name in the copyright comment.
39451         Remove definition and uses of __P.
39452
39453         From coreutils.
39454         * lib/stat.c: Don't declare xmalloc explicitly.
39455         Instead, include "xalloc.h".
39456         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
39457         xrealloc, and xcalloc return values.
39458         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
39459         Improve comment.
39460         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
39461
39462 2003-06-07  Bruno Haible  <bruno@clisp.org>
39463
39464         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
39465         avoid AC_CONFIG_LINKS.
39466         * modules/fnmatch (Makefile.am): Use explicit creation rule for
39467         fnmatch.h, to avoid AC_CONFIG_LINKS.
39468         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
39469
39470 2003-06-07  Bruno Haible  <bruno@clisp.org>
39471
39472         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
39473         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
39474         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
39475         directory.
39476         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
39477         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
39478         directory.
39479
39480 2003-06-06  Jim Meyering  <jim@meyering.net>
39481
39482         Merge from coreutils.
39483         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
39484         Consolidate declarations and initializations of *_base* locals.
39485
39486         Merge from coreutils.
39487         This avoids a core dump on systems without GNU putenv,
39488         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
39489         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
39490         (unsetenv): New static function, from GNU libc.
39491         (rpl_putenv): Use it.
39492
39493         * lib/modechange.c: Remove trailing blanks.
39494
39495         Merge from coreutils.
39496         * lib/fsusage.c: Remove declaration of statfs.
39497         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
39498
39499         * lib/posixtm.c: Include <stdbool.h> unconditionally.
39500
39501 2003-06-06  Jim Meyering  <jim@meyering.net>
39502
39503         * lib/stdbool_.h: Renamed from stdbool.h.in.
39504
39505 2003-06-06  Jim Meyering  <jim@meyering.net>
39506             Bruno Haible  <bruno@clisp.org>
39507
39508         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
39509         Adjust Makefile.am snippet not to redirect directly to target.
39510         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
39511
39512 2003-06-05  Paul Eggert  <eggert@twinsun.com>
39513
39514         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
39515         mismatch, look in future quarters as well as past.  This fixes a
39516         bug when processing fall-backwards gaps immediately after a long
39517         period of daylight-saving time.
39518
39519         * lib/mktime.c: Assume freestanding C89 or better.
39520         (HAVE_LIMITS_H): Remove.  Assume it's 1.
39521         (__P): Remove; not used.
39522         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
39523         (mktime, not_equal_tm, print_tm, check_result,
39524         main): Use prototypes.  Use const * where appropriate.
39525         (main): Fix typo in testing code that uncovered by above changes.
39526         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
39527
39528 2003-06-04  Paul Eggert  <eggert@twinsun.com>
39529
39530         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
39531         locale.h, localeconv.  This merges changes from coreutils.
39532
39533         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
39534         It can be removed after the next Autoconf is released.
39535         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
39536         needed.
39537
39538 2003-06-04  Paul Eggert  <eggert@twinsun.com>
39539
39540         * lib/mktime.c: Fix Debian bug 177940
39541         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
39542         (localtime_offset): Now long int, not time_t, because we want it
39543         to be guaranteed to be signed.  All uses changed.
39544         (__mktime_internal): If overflow would occur when adding offset,
39545         don't add it.
39546
39547         Merge 'human' changes from coreutils.  Rewrite to support
39548         locale-specific notations like thousands separators.
39549         * lib/human.c: Simplify authorship notice.
39550         Include human.h immediately after config.h.
39551         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
39552         <limits.h>: Do not include, since human.h does.
39553         (SIZE_MAX, UINTMAX_MAX): New macros.
39554         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
39555         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
39556         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
39557         (power_letter): Renamed from suffixes.
39558         (generate_suffix_backwards): Remove.
39559         (adjust_value): Now takes int style (because of human.h changes)
39560         and long double value (for greater precision on some platforms).
39561         (group_number): New function.
39562         (human_readable): Use it.  Use integer options, not enum.
39563         Put the options before the sizes in the arg list.
39564         Support all the new options.
39565         The old human_readable function has been removed;
39566         use inttostr.h instead.
39567         (human_readable, default_block_size, humblock):
39568         Use uintmax_t, not int, for block sizes.
39569         (human_readable_inexact, block_size_types): Remove.
39570         (block_size_opts): New constant.
39571         (human_options): Renamed from human_block_size, with new signature
39572         that allows block sizes up to UINTMAX_MAX.  All callers changed.
39573         * lib/human.h: Add copyright and authorship notice.
39574         Include <limits.h> and <stdbool.h> unconditionally.
39575         (PARAMS): Remove.  All uses removed.
39576         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
39577         (enum human_inexact_style): Remove tag; now a nameless enum.
39578         (human_floor, human_ceiling, human_round_to_even): Now have
39579         values 2, 0, 1 rather than -1, 1, 0.
39580         (human_group_digits, human_suppress_point_zero, human_autoscale,
39581         human_base_1024, human_SI, human_B): New constants.
39582         (human_readable_inexact, human_block_size): Remove.
39583         (human_readable): Size args are now uintmax_t, not int.
39584         (human_options): New decl.
39585
39586         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
39587         unnecessary now that we assume C89 or better.  This change
39588         imported from coreutils.
39589
39590         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
39591         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
39592         in the 2003-05-30 sync from glibc.
39593
39594         .h files should stand alone, but we shouldn't include <sys/types.h>
39595         if we can get away with just <stddef.h>.
39596
39597         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
39598         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
39599         rather than <sys/types.h>, as we merely need size_t.
39600         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
39601         to get size_t.
39602         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
39603         Include <stdio.h>, to get FILE.
39604         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
39605         memcasecmp.h has included <stddef.h> and all we need is size_t.
39606         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
39607         our interface, instead of including <sys/types.h>
39608
39609 2003-06-04  Paul Eggert  <eggert@twinsun.com>
39610
39611         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
39612         now, as glibc mktime is buggy on non-glibc systems.
39613
39614 2003-06-03  Karl Berry  <karl@gnu.org>
39615
39616         * config/config.sub: update from prep.
39617
39618 2003-06-02  Paul Eggert  <eggert@twinsun.com>
39619
39620         [from coreutils]
39621         Fix some minor time-related bugs with POSIX time arguments.
39622         Some valid time stamps were being rejected (notably -1, and
39623         time stamps before 1900 on 64-bit hosts).  And some invalid
39624         time stamps were being accepted, e.g. September 31.
39625
39626         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
39627         that we can return (time_t) -1 successfully.
39628         * lib/posixtm.c: Likewise.
39629         [HAVE_STDBOOL_H]: Include <stdbool.h>.
39630         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
39631         (t): Remove static var.
39632         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
39633         of static var.  All uses changed.
39634         (year): Do not reject years before 1900; they can occur with
39635         64-bit time_t.
39636         (posix_time_parse): Do not check for out-of-range components;
39637         that is now the caller's responsibility, since our checks were
39638         only approximations.
39639         (posixtime): Use mktime to check for out-of-range components,
39640         since it knows them exactly.
39641         If mktime returns (time_t) -1, check whether an error actually occurred
39642         by invoking localtime on -1.
39643         (main) [TEST_POSIXTIME]: Check for input data errors, and report
39644         posixtime failures better.
39645         Improve the test data (in comments only).
39646
39647 2003-06-02  Karl Berry  <karl@gnu.org>
39648
39649         * config/mkinstalldirs (version): new variable.
39650         (--version): new option.
39651         (usage): improve message.
39652
39653 2003-05-30  Karl Berry  <karl@gnu.org>
39654
39655         * lib/mktime.c: update from libc.
39656
39657 2003-05-30  Bruno Haible  <bruno@clisp.org>
39658
39659         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
39660         * config/config.rpath: Upgrade to gettext-0.12.1.
39661
39662 2003-05-30  Bruno Haible  <bruno@clisp.org>
39663
39664         * m4/gettext.m4: Upgrade to gettext-0.12.1.
39665         * m4/nls.m4: New file, from gettext-0.12.1.
39666         * m4/po.m4: New file, from gettext-0.12.1.
39667         * m4/progtest.m4: Upgrade to gettext-0.12.1.
39668
39669 2003-05-30  Bruno Haible  <bruno@clisp.org>
39670
39671         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
39672         * lib/localcharset.h: Likewise.
39673         * lib/localcharset.c: Likewise.
39674
39675 2003-05-29  Karl Berry  <karl@gnu.org>
39676
39677         * config/config.rpath: update from gettext.
39678
39679 2003-05-28  Paul Eggert  <eggert@twinsun.com>
39680
39681         Assume the headers required for C89 freestanding compilers.
39682         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
39683         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
39684         * m4/human.m4 (gl_HUMAN): Likewise.
39685         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
39686         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
39687         * m4/userspec.m4 (gl_USERSPEC): Likewise.
39688         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
39689         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
39690         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
39691
39692 2003-05-28  Paul Eggert  <eggert@twinsun.com>
39693
39694         Assume the headers required for C89 freestanding compilers.
39695         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
39696         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
39697         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
39698         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
39699         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
39700         define, since <limits.h> is guaranteed to do that.
39701         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
39702         * lib/exclude.c: Include <stdbool.h> unconditionally.
39703         * lib/tempname.c: Include <stddef.h> unconditionally.
39704         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
39705         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
39706         <stddef.h> does that.
39707         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
39708         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
39709         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
39710         needed.
39711         * lib/xstrtol.c: Likewise.
39712         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
39713         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
39714
39715         * lib/addext.c (addext): Use assignment rather than cast, to avoid
39716         warnings on some platforms.
39717
39718         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
39719         arbitrarily.
39720
39721 2003-05-26  Jim Meyering  <jim@meyering.net>
39722
39723         Merge in a change from coreutils:
39724         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
39725         that is guaranteed to be `no'.  Use `no_such_member' to indicate
39726         that condition, rather than `-1' which is slightly misleading.
39727         Change the name of the cache variable to have the gl_ prefix.
39728         Prompted by a patch from Richard Dawe for DJGPP.
39729
39730 2003-05-24  Karl Berry  <karl@gnu.org>
39731
39732         * config/config.guess: update from prep.
39733
39734 2003-05-22  Karl Berry  <karl@gnu.org>
39735
39736         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
39737
39738 2003-05-20  Karl Berry  <karl@gnu.org>
39739
39740         * config/config.guess: update from prep.
39741
39742 2003-05-18  Karl Berry  <karl@gnu.org>
39743
39744         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
39745         might actually be set by the user.
39746
39747         * config/depcomp, install-sh, mdate-sh: update from automake.
39748
39749 2003-05-17  Bruno Haible  <bruno@clisp.org>
39750
39751         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
39752         invalid expansion for AC_EGREP_CPP.
39753         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
39754         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
39755         Suggested by Akim Demaille <akim@epita.fr> in
39756         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
39757
39758 2003-05-12  Jim Meyering  <jim@meyering.net>
39759
39760         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
39761         the space-padded-by-default conversion specifiers, %e, %k, %l.
39762
39763 2003-05-12  Bruno Haible  <bruno@clisp.org>
39764
39765         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
39766         the string is longer than 4 KB.
39767
39768 2003-05-11  Karl Berry  <karl@gnu.org>
39769
39770         * config/config.{guess,sub}: update from prep.
39771
39772 2003-05-09  Bruno Haible  <bruno@clisp.org>
39773
39774         * modules/error: Add m4/strerror_r.m4 to file list.
39775
39776 2003-05-03  Bruno Haible  <bruno@clisp.org>
39777
39778         Upgrade to Unicode-4.0.
39779         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
39780         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
39781         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
39782         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
39783         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
39784         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
39785         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
39786         Change width of U+E0100..U+E01EF from 1 to 0.
39787
39788 2003-04-25  Jim Meyering  <jim@meyering.net>
39789
39790         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
39791         of type size_t, not int.
39792
39793 2003-04-25  Bruno Haible  <bruno@clisp.org>
39794
39795         * lib/copy-file.c: Include <stddef.h>, for size_t.
39796
39797 2003-04-21  Paul Eggert  <eggert@twinsun.com>
39798
39799         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
39800         code which expansion is under static control.  Patch imported from
39801         Akim Demaille's patch to Bison; see
39802         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
39803
39804 2003-04-14  Bruno Haible  <bruno@clisp.org>
39805
39806         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
39807
39808 2003-04-11  Jim Meyering  <jim@meyering.net>
39809
39810         Merge changes from Coreutils.
39811
39812         2003-03-22  Jim Meyering  <jim@meyering.net>
39813
39814         * lib/strftime.c (widen): Cast alloca return value to proper type.
39815
39816         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
39817
39818         From GNU libc.
39819         * lib/strftime.c (my_strftime): Handle very large width
39820         specifications for numeric values correctly.  Improve checks for
39821         overflow.
39822
39823         2003-01-19  Jim Meyering  <jim@meyering.net>
39824
39825         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
39826         definitions.
39827         (nl_get_alt_digit) [! defined my_strftime]: Define.
39828         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
39829         _nl_get_alt_digit and _nl_get_walt_digit.
39830
39831         * lib/strftime.c (my_strftime): Merge in locale-related changes from
39832         libc. These changes have no effect outside of _LIBC.
39833
39834 2003-04-10  Bruno Haible  <bruno@clisp.org>
39835
39836         * modules/findprog: New file.
39837         * MODULES.html.sh (func_all_modules): Add it.
39838
39839 2003-04-10  Bruno Haible  <bruno@clisp.org>
39840
39841         * m4/findprog.m4: New file.
39842         * m4/eaccess.m4: New file.
39843
39844 2003-04-10  Bruno Haible  <bruno@clisp.org>
39845
39846         * lib/findprog.h: New file, from GNU gettext.
39847         * lib/findprog.c: New file, from GNU gettext.
39848
39849 2003-04-05  Jim Meyering  <jim@meyering.net>
39850
39851         Merge changes from Coreutils.
39852
39853         * lib/exclude.h (PARAMS): Remove definition and uses.
39854         * lib/exclude.c: Remove uses of `PARAMS'.
39855
39856         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
39857         Add test-cases for DOS filenames. Declare program_name.
39858         (main): Set up program_name.  Patch by Rich Dawe.
39859
39860         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
39861         error from mntctl.
39862         Use mntctl's return value to drive the entry-processing loop, since
39863         we can't rely on the value of the vmt_length member in the last
39864         entry.  On some systems doing so could result in exhausting
39865         virtual memory.  Based in part on a patch from Mike Jetzer.
39866
39867 2003-04-04  Bruno Haible  <bruno@clisp.org>
39868
39869         * modules/linebreak: New file.
39870         * MODULES.html.sh (func_all_modules): Add it.
39871
39872 2003-04-04  Bruno Haible  <bruno@clisp.org>
39873
39874         * m4/linebreak.m4: New file.
39875
39876 2003-04-04  Bruno Haible  <bruno@clisp.org>
39877
39878         * lib/linebreak.h: New file, from GNU gettext.
39879         * lib/linebreak.c: New file, from GNU gettext with slight
39880         modifications.
39881         * lib/lbrkprop.h: New file, from GNU gettext.
39882
39883 2003-04-03  Bruno Haible  <bruno@clisp.org>
39884
39885         * modules/utf8-ucs4: New file.
39886         * modules/utf16-ucs4: New file.
39887         * modules/ucs4-utf8: New file.
39888         * modules/ucs4-utf16: New file.
39889         * MODULES.html.sh (func_all_modules): Add them.
39890
39891 2003-04-03  Bruno Haible  <bruno@clisp.org>
39892
39893         * m4/utf-ucs4.m4: New file.
39894         * m4/ucs4-utf.m4: New file.
39895
39896 2003-04-03  Bruno Haible  <bruno@clisp.org>
39897
39898         * lib/utf8-ucs4.h: New file, from GNU gettext.
39899         * lib/utf16-ucs4.h: New file, from GNU gettext.
39900         * lib/ucs4-utf8.h: New file, from GNU gettext.
39901         * lib/ucs4-utf16.h: New file, from GNU gettext.
39902
39903 2003-04-02  Bruno Haible  <bruno@clisp.org>
39904
39905         * modules/binary-io: New file.
39906         * MODULES.html.sh (func_all_modules): Add it.
39907
39908 2003-04-02  Bruno Haible  <bruno@clisp.org>
39909
39910         * lib/binary-io.h: New file, from GNU gettext.
39911
39912 2003-04-01  Bruno Haible  <bruno@clisp.org>
39913
39914         * modules/pathname: New file.
39915         * MODULES.html.sh (func_all_modules): Add it.
39916
39917 2003-04-01  Bruno Haible  <bruno@clisp.org>
39918
39919         * lib/pathname.h: New file, from GNU gettext.
39920         * lib/concatpath.c: New file, from GNU gettext.
39921
39922 2003-03-30  Bruno Haible  <bruno@clisp.org>
39923
39924         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
39925
39926 2003-03-30  Bruno Haible  <bruno@clisp.org>
39927
39928         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
39929         function chown() doesn't exist.
39930
39931 2003-03-28  Bruno Haible  <bruno@clisp.org>
39932
39933         * modules/copy-file: New file.
39934         * MODULES.html.sh (func_all_modules): Add it.
39935
39936 2003-03-28  Bruno Haible  <bruno@clisp.org>
39937
39938         * m4/copy-file.m4: New file.
39939
39940 2003-03-28  Bruno Haible  <bruno@clisp.org>
39941
39942         * lib/copy-file.h: New file, from GNU gettext.
39943         * lib/copy-file.c: New file, from GNU gettext.
39944
39945 2003-03-18  Jim Meyering  <jim@meyering.net>
39946
39947         * lib/quote.c (quote_n): Fix typo in comment.
39948
39949 2003-03-18  Bruno Haible  <bruno@clisp.org>
39950
39951         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
39952         checking.
39953         * m4/onceonly_2_57.m4: Likewise.
39954
39955 2003-03-17  Bruno Haible  <bruno@clisp.org>
39956
39957         * m4/onceonly.m4: Require autoconf 2.54 or newer.
39958         (m4_quote): Remove macro.
39959         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
39960
39961 2003-03-14  Jim Meyering  <jim@meyering.net>
39962
39963         Merge changes from Coreutils.
39964         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
39965         to be const, in order to avoid warnings.
39966         (obstack_room): Likewise.
39967         (obstack_empty_p): Likewise.
39968
39969 2003-03-14  Bruno Haible  <bruno@clisp.org>
39970
39971         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
39972         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
39973
39974 2003-03-13  Paul Eggert  <eggert@twinsun.com>
39975
39976         Merge changes from Bison.
39977         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
39978         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
39979         when compiling Bison 1.875's `bitset bset = obstack_alloc
39980         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
39981         * lib/hash.c: Include <stdbool.h> unconditionally.
39982
39983 2003-03-13  Paul Eggert  <eggert@twinsun.com>
39984
39985         * m4/onceonly.m4 (m4_quote): New macro.
39986         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
39987         Quote AC_FOREACH variable-expansions properly.
39988
39989 2003-03-13  Paul Eggert  <eggert@twinsun.com>
39990
39991         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
39992
39993 2003-03-09  Paul Eggert  <eggert@twinsun.com>
39994
39995         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
39996         Reported by Bruce Becker; see:
39997         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
39998
39999 2003-03-03  Paul Eggert  <eggert@twinsun.com>
40000             Bruno Haible  <bruno@clisp.org>
40001
40002         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
40003         Reported by John Hughes, see
40004         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
40005
40006 2003-02-20  Bruno Haible  <bruno@clisp.org>
40007
40008         * MODULES.html.sh (func_all_modules): Add poll.
40009
40010 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
40011
40012         * modules/poll: New file.
40013
40014 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
40015
40016         * lib/poll_.h: New file.
40017         * lib/poll.c: New file.
40018
40019 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
40020
40021         * m4/poll.m4: New file.
40022
40023 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
40024
40025         * modules/mathl: New file.
40026
40027 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
40028
40029         * lib/mathl.h: New file.
40030         * lib/acosl.c: New file.
40031         * lib/asinl.c: New file.
40032         * lib/atanl.c: New file.
40033         * lib/ceill.c: New file.
40034         * lib/cosl.c: New file.
40035         * lib/expl.c: New file.
40036         * lib/floorl.c: New file.
40037         * lib/frexpl.c: New file.
40038         * lib/ldexpl.c: New file.
40039         * lib/logl.c: New file.
40040         * lib/sincosl.c: New file.
40041         * lib/sinl.c: New file.
40042         * lib/sqrtl.c: New file.
40043         * lib/tanl.c: New file.
40044         * lib/trigl.c: New file.
40045         * lib/trigl.h: New file.
40046
40047 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
40048
40049         * m4/mathl.m4: New file.
40050
40051 2003-02-18  Bruno Haible  <bruno@clisp.org>
40052
40053         * MODULES.html.sh (func_all_modules): Add mathl.
40054
40055 2003-02-17  Bruno Haible  <bruno@clisp.org>
40056
40057         * modules/mkdtemp: New module.
40058         * MODULES.html.sh (func_all_modules): Add it.
40059
40060 2003-02-17  Bruno Haible  <bruno@clisp.org>
40061
40062         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
40063
40064 2003-02-17  Bruno Haible  <bruno@clisp.org>
40065
40066         * lib/mkdtemp.h: New file, from GNU gettext.
40067         * lib/mkdtemp.c: New file, from GNU gettext.
40068
40069 2003-02-02  Jim Meyering  <jim@meyering.net>
40070
40071         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
40072         e.g. glibc-2.2.93.
40073
40074 2003-01-31  Bruno Haible  <bruno@clisp.org>
40075
40076         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
40077         'rpl_rename'.
40078         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
40079         'rpl_strnlen'.
40080         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
40081         'rpl_strtod'.
40082         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
40083         'rpl_utime'.
40084
40085 2003-01-31  Bruno Haible  <bruno@clisp.org>
40086
40087         * lib/rename.c: #undef rename before defining rpl_rename.
40088         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
40089
40090 2003-01-30  Bruno Haible  <bruno@clisp.org>
40091
40092         * modules/vasnprintf, modules/vasprintf: New modules.
40093         * MODULES.html.sh (func_all_modules): Add them.
40094
40095 2003-01-30  Bruno Haible  <bruno@clisp.org>
40096
40097         * m4/signed.m4: New file, from GNU gettext.
40098         * m4/longdouble.m4: New file, from GNU gettext.
40099         * m4/wchar_t.m4: New file, from GNU gettext.
40100         * m4/wint_t.m4: New file, from GNU gettext.
40101         * m4/vasnprintf.m4: New file.
40102         * m4/vasprintf.m4: New file.
40103
40104 2003-01-30  Bruno Haible  <bruno@clisp.org>
40105
40106         * lib/printf-args.h: New file, from GNU gettext.
40107         * lib/printf-args.c: New file, from GNU gettext.
40108         * lib/printf-parse.h: New file, from GNU gettext.
40109         * lib/printf-parse.c: New file, from GNU gettext.
40110         * lib/vasnprintf.h: New file, from GNU gettext.
40111         * lib/vasnprintf.c: New file, from GNU gettext.
40112         * lib/asnprintf.c: New file, from GNU gettext.
40113         * lib/vasprintf.h: New file, from GNU gettext with modifications.
40114         * lib/vasprintf.c: New file, from GNU gettext.
40115         * lib/asprintf.c: New file, from GNU gettext.
40116
40117 2003-01-29  Bruno Haible  <bruno@clisp.org>
40118
40119         * modules/stpncpy: New module.
40120         * MODULES.html.sh (func_all_modules): Add it.
40121
40122 2003-01-29  Bruno Haible  <bruno@clisp.org>
40123
40124         * m4/stpncpy.m4: New file.
40125
40126 2003-01-29  Bruno Haible  <bruno@clisp.org>
40127
40128         * lib/stpncpy.h: New file, from GNU gettext with modifications.
40129         * lib/stpncpy.c: New file, from GNU gettext with modifications.
40130
40131 2003-01-28  Bruno Haible  <bruno@clisp.org>
40132
40133         * modules/c-ctype: New module.
40134         * MODULES.html.sh (func_all_modules): Add it.
40135
40136 2003-01-28  Bruno Haible  <bruno@clisp.org>
40137
40138         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
40139         Paul Eggert.
40140         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
40141         Paul Eggert.
40142
40143 2003-01-27  Bruno Haible  <bruno@clisp.org>
40144
40145         * modules/xsetenv: New module.
40146         * MODULES.html.sh (func_all_modules): Add it.
40147
40148 2003-01-27  Bruno Haible  <bruno@clisp.org>
40149
40150         * lib/xsetenv.h: New file, from GNU gettext.
40151         * lib/xsetenv.c: New file, from GNU gettext.
40152
40153 2003-01-23  Jim Meyering  <jim@meyering.net>
40154
40155         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
40156         from working on systems without dirfd (at least Irix and OSF1/Tru64).
40157
40158 2003-01-23  Bruno Haible  <bruno@clisp.org>
40159
40160         * modules/minmax: New module.
40161         * MODULES.html.sh (func_all_modules): Add it.
40162
40163 2003-01-23  Bruno Haible  <bruno@clisp.org>
40164
40165         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
40166         Eggert.
40167
40168 2003-01-22  Bruno Haible  <bruno@clisp.org>
40169
40170         * modules/exit: New module.
40171         * MODULES.html.sh (func_all_modules): Add it.
40172
40173 2003-01-22  Bruno Haible  <bruno@clisp.org>
40174
40175         * lib/exit.h: New file, from GNU gettext.
40176
40177 2003-01-19  Bruno Haible  <bruno@clisp.org>
40178
40179         * gnulib-tool: Recognize option --extract-maintainer.
40180         (func_get_maintainer): New function.
40181         * modules/*: Add Maintainer entry.
40182
40183 2003-01-16  Jim Meyering  <jim@meyering.net>
40184
40185         * m4/regex.m4: The `regex' struct is both input and output.
40186         Initialize it before each use.  Patch by Tim Waugh.
40187
40188 2003-01-16  Bruno Haible  <bruno@clisp.org>
40189
40190         * MODULES.html.sh: Add a table of contents. Add the module name as
40191         leftmost column. Add hyperlinks.
40192
40193 2003-01-15  Bruno Haible  <bruno@clisp.org>
40194
40195         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
40196
40197 2003-01-15  Bruno Haible  <bruno@clisp.org>
40198
40199         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
40200         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
40201         suffix.
40202
40203 2003-01-15  Bruno Haible  <bruno@clisp.org>
40204
40205         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
40206
40207 2003-01-15  Bruno Haible  <bruno@clisp.org>
40208
40209         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
40210         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
40211
40212 2003-01-14  Jim Meyering  <jim@meyering.net>
40213
40214         * lib/same.c (same_name): Tweak a comment.
40215
40216 2003-01-14  Bruno Haible  <bruno@clisp.org>
40217
40218         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
40219         when a string comparison is sufficient.
40220
40221 2003-01-14  Bruno Haible  <bruno@clisp.org>
40222
40223         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
40224         'unsigned int'.
40225
40226 2003-01-14  Bruno Haible  <bruno@clisp.org>
40227
40228         * lib/hash-pjw.c: Add comment about low quality of this function.
40229
40230 2003-01-13  Bruno Haible  <bruno@clisp.org>
40231
40232         * modules/stpcpy: Distribute lib/stpcpy.h.
40233         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
40234
40235 2003-01-13  Bruno Haible  <bruno@clisp.org>
40236
40237         * modules/*: Add a description.
40238         * modules/strpbrk: Fix Makefile.am snippet.
40239         * modules/strtoimax: Fix dependencies.
40240         * modules/strtoumax: Likewise.
40241
40242 2003-01-13  Bruno Haible  <bruno@clisp.org>
40243
40244         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
40245         * modules/alloca (Makefile.am): All object files depend on alloca.h.
40246         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
40247
40248 2003-01-13  Bruno Haible  <bruno@clisp.org>
40249
40250         * gnulib-tool (func_create_testdir): Store config/* files in the main
40251         directory.
40252         * config.rpath: Move to ...
40253         * config/config.rpath: ... here.
40254         * modules/gettext: Contains config/config.rpath, not config.rpath.
40255         * modules/iconv: Likewise.
40256
40257 2003-01-12  Paul Eggert  <eggert@twinsun.com>
40258
40259         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
40260         to avoid collisions with libcurses and libreadline.
40261
40262         * m4/getstr.m4: Remove.
40263         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
40264
40265 2003-01-12  Paul Eggert  <eggert@twinsun.com>
40266
40267         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
40268         to avoid collisions with libcurses and libreadline.
40269
40270         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
40271         * lib/getstr.h, getstr.c: Remove.
40272         * lib/getline.c: Include "getline.h", to check interface.
40273         Move body of old getstr.c here: this defines MIN_CHUNK and
40274         declares getdelim2, which is renamed from getstr.
40275         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
40276
40277         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
40278         All uses changed.
40279         * lib/linebuffer.h: Likewise.
40280         (readline): Remove backward-compatibility macro.
40281
40282 2003-01-12  Paul Eggert  <eggert@twinsun.com>
40283
40284         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
40285         to avoid collisions with libcurses and libreadline.
40286         * getstr: Remove.
40287         * MODULES.html.sh: Remove getstr.
40288         * modules/getline: Depend on unlocked-io, not getstr.
40289
40290 2003-01-12  Jim Meyering  <jim@meyering.net>
40291
40292         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
40293
40294 2003-01-10  Bruno Haible  <bruno@clisp.org>
40295
40296         * modules/alloca: Change Makefile.am requirements. Simplify Include
40297         requirements. Add lib/alloca_.h to file list.
40298
40299 2003-01-10  Bruno Haible  <bruno@clisp.org>
40300
40301         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
40302
40303 2003-01-10  Bruno Haible  <bruno@clisp.org>
40304
40305         * lib/alloca_.h: New file.
40306         * lib/getdate.y: Unconditionally include alloca.h.
40307         * lib/makepath.c: Likewise.
40308         * lib/setenv.c: Likewise.
40309         * lib/userspec.c: Likewise.
40310
40311 2003-01-09  Karl Berry  <karl@gnu.org>
40312
40313         * MODULES.html.sh: include `dirname $0` in PATH, to find
40314         gnulib-tool.
40315
40316 2003-01-09  Bruno Haible  <bruno@clisp.org>
40317
40318         * modules/stdbool: Change configure.ac, Makefile.am requirements.
40319         Simplify Include requirements. Add lib/stdbool.h.in to file list.
40320
40321 2003-01-09  Bruno Haible  <bruno@clisp.org>
40322
40323         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
40324
40325 2003-01-09  Bruno Haible  <bruno@clisp.org>
40326
40327         * lib/stdbool.h.in: New file.
40328
40329 2003-01-09  Bruno Haible  <bruno@clisp.org>
40330
40331         * gnulib-tool (func_all_modules): Ignore files ending in ~.
40332         * MODULES.html.sh: Likewise.
40333
40334 2003-01-08  Jim Meyering  <jim@meyering.net>
40335
40336         * lib/full-write.c: Undefine and define-away `const' after inclusion
40337         of errno.h, not before.  Suggestion from Bruno Haible.
40338
40339 2003-01-08  Bruno Haible  <bruno@clisp.org>
40340
40341         * modules/full-read: Depend on full-write.
40342
40343 2003-01-08  Bruno Haible  <bruno@clisp.org>
40344
40345         * lib/safe-read.c: Include specification header first, to ensure its
40346         selfcontainedness.
40347         * lib/full-write.c: Likewise.
40348
40349 2003-01-07  Jim Meyering  <jim@meyering.net>
40350
40351         * lib/full-write.c: Rework so that it may serve to define full_read,
40352         too.
40353         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
40354
40355 2003-01-07  Bruno Haible  <bruno@clisp.org>
40356
40357         * lib/strtoimax.c: Include <stdint.h> as an alternative to
40358         <inttypes.h>.
40359         * lib/xstrtol.h: Likewise.
40360         * lib/xstrtoimax.c: Likewise.
40361         * lib/xstrtoumax.c: Likewise.
40362         * lib/human.h: Likewise.
40363
40364         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
40365         on systems that have <inttypes.h> but not <stdint.h>.
40366
40367 2003-01-07  Bruno Haible  <bruno@clisp.org>
40368
40369         * MODULES.html.sh: Add copyright notice.
40370         (missed_files): Omit CVS directory entries.
40371         (func_module): Make it work with sed-3.02.
40372         * MODULES.txt: Remove file.
40373
40374 2003-01-06  Jim Meyering  <jim@meyering.net>
40375
40376         * lib/version-etc.c: Update year in translatable copyright string.
40377
40378 2003-01-03  Karl Berry  <karl@gnu.org>
40379
40380         * config/config.{guess,sub}: update from prep.
40381
40382 2003-01-02  Karl Berry  <karl@gnu.org>
40383
40384         * doc/COPYING.DOC: belatedly updated to 1.2.
40385
40386 2003-01-01  Karl Berry  <karl@gnu.org>
40387
40388         * gnulib-tool (func_verify_module): report module name $module in
40389         error message, not $1.
40390         * gnulib-tool (create-testdir): don't complain if destdir couldn't
40391         be created, only if it doesn't exist.
40392         * gnulib-tool (last_checkin_date): don't expand the $Date here.
40393
40394 2002-12-31  Paul Eggert  <eggert@twinsun.com>
40395
40396         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
40397
40398 2002-12-31  Paul Eggert  <eggert@twinsun.com>
40399
40400         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
40401         memcmp if strcoll doesn't work.
40402
40403 2002-12-31  Bruno Haible  <bruno@clisp.org>
40404
40405         * lib/utime.c (utime_null): No need to call ftruncate if the file was
40406         nonempty.
40407
40408 2002-12-31  Bruno Haible  <bruno@clisp.org>
40409
40410         * lib/memcoll.c (STRCOLL): New macro.
40411         (memcoll): Use it.
40412
40413 2002-12-31  Bruno Haible  <bruno@clisp.org>
40414
40415         * lib/localcharset.h: New file.
40416         * lib/localcharset.c: Include it.
40417         * lib/unicodeio.c: Likewise.
40418
40419 2002-12-31  Bruno Haible  <bruno@clisp.org>
40420
40421         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
40422         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
40423
40424 2002-12-31  Bruno Haible  <bruno@clisp.org>
40425
40426         * lib/getline.h: Include <stddef.h>, for size_t.
40427
40428         * lib/unicodeio.h: Include <stddef.h>, for size_t.
40429         * lib/unicodeio.c: Don't include <stddef.h>.
40430
40431 2002-12-31  Bruno Haible  <bruno@clisp.org>
40432
40433         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
40434         HAVE_TM_ZONE.
40435
40436 2002-12-24  Karl Berry  <karl@gnu.org>
40437
40438         * config/config.guess: update from prep.
40439
40440 2002-12-24  Bruno Haible  <bruno@clisp.org>
40441
40442         General infrasructure.
40443         * m4/README: Rewritten.
40444         * m4/onceonly.m4: New file.
40445         * m4/onceonly_2_57.m4: New file.
40446
40447         Module atexit.
40448         * m4/atexit.m4: New file.
40449
40450         Module strtod.
40451         * m4/strtod.m4: New file.
40452
40453         Module strtol.
40454         * m4/strtol.m4: New file.
40455
40456         Module strtoul.
40457         * m4/strtoul.m4: New file.
40458
40459         Module memchr.
40460         * m4/memchr.m4: New file.
40461
40462         Module memcmp.
40463         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
40464         (jm_FUNC_MEMCMP): Invoke it.
40465
40466         Module memcpy.
40467         * m4/memcpy.m4: New file.
40468
40469         Module memmove.
40470         * m4/memmove.m4: New file.
40471
40472         Module memset.
40473         * m4/memset.m4: New file.
40474
40475         Module strcspn.
40476         * m4/strcspn.m4: New file.
40477
40478         Module strpbrk.
40479         * m4/strpbrk.m4: New file.
40480
40481         Module strstr.
40482         * m4/strstr.m4: New file.
40483
40484         Module strerror.
40485         * m4/strerror.m4: New file.
40486
40487         Module mktime.
40488         * m4/mktime.m4: Renamed from jm-mktime.m4.
40489         (gl_PREREQ_MKTIME): New macro.
40490         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
40491
40492         Module malloc.
40493         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
40494         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
40495         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
40496
40497         Module realloc.
40498         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
40499         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
40500         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
40501
40502         Module strftime.
40503         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
40504         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
40505         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
40506         gl_TM_GMTOFF.
40507         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
40508
40509         Module xalloc.
40510         * m4/xalloc.m4: New file.
40511
40512         Module alloca.
40513         * m4/alloca.m4: New file.
40514
40515         Module putenv.
40516         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
40517         (jm_FUNC_PUTENV): Invoke it.
40518
40519         Module setenv.
40520         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
40521         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
40522         when invoked twice.
40523         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
40524         gt_FUNC_SETENV.
40525
40526         Module memrchr.
40527         * m4/memrchr.m4: New file.
40528
40529         Module stpcpy.
40530         * m4/stpcpy.m4: New file.
40531
40532         Module strcase.
40533         * m4/strcase.m4: New file.
40534
40535         Module strdup.
40536         * m4/strdup.m4: New file.
40537
40538         Module strnlen.
40539         * m4/strnlen.m4: New file.
40540
40541         Module strndup.
40542         * m4/strndup.m4: New file.
40543
40544         Module xstrtod.
40545         * m4/xstrtod.m4: New file.
40546
40547         Module xstrtol.
40548         * m4/xstrtol.m4: New file.
40549
40550         Module getdate.
40551         * m4/getdate.m4: New file.
40552
40553         Module unlocked-io.
40554         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
40555         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
40556         * m4/jm-glibc-io.m4n: Remove file.
40557
40558         Module long-options.
40559         * m4/long-options.m4: New file.
40560
40561         Module md5.
40562         * m4/md5.m4: New file.
40563
40564         Module sha.
40565         * m4/sha.m4: New file.
40566
40567         Module getstr.
40568         * m4/getstr.m4: New file.
40569
40570         Module getline.
40571         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
40572         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
40573         <sys/types.h>, for size_t. Use the function name gnu_getline, not
40574         simply getline. Infoke gl_PREREQ_GETLINE.
40575
40576         Module obstack.
40577         * m4/obstack.m4: New file.
40578
40579         Module hash.
40580         * m4/hash.m4: New file.
40581
40582         Module readtokens.
40583         * m4/readtokens.m4: New file.
40584
40585         Module strverscmp.
40586         * m4/strverscmp.m4: New file.
40587
40588         Module stdbool.
40589         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
40590         OSF/1.
40591
40592         Module strtoll.
40593         * m4/strtoll.m4: New file.
40594
40595         Module strtoull.
40596         * m4/strtoull.m4: New file.
40597
40598         Module strtoimax.
40599         * m4/strtoimax.m4: New file.
40600
40601         Module strtoumax.
40602         * m4/strtoumax.m4: New file.
40603
40604         Module xstrtoimax.
40605         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
40606         jm_AC_PREREQ_XSTRTOIMAX.
40607         Moved the strtol prerequisites to strtol.m4.
40608         Moved the strtoll prerequisites to strtoll.m4.
40609         Moved the strtoimax prerequisites to strtoimax.m4.
40610
40611         Module xstrtoumax.
40612         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
40613         jm_AC_PREREQ_XSTRTOUMAX.
40614         Moved the strtoul prerequisites to strtoul.m4.
40615         Moved the strtoull prerequisites to strtoull.m4.
40616         Moved the strtoumax prerequisites to strtoumax.m4.
40617
40618         Module chown.
40619         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
40620         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
40621
40622         Module dup2.
40623         * m4/dup2.m4: New file.
40624
40625         Module ftruncate.
40626         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
40627         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
40628
40629         Module getgroups.
40630         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
40631         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
40632
40633         Module gettimeofday.
40634         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
40635         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
40636         gl_PREREQ_GETTIMEOFDAY.
40637
40638         Module mkdir.
40639         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
40640         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
40641
40642         Module mkstemp.
40643         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
40644         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
40645         jm_AC_TYPE_UINTMAX_T.
40646         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
40647
40648         Module stat.
40649         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
40650         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
40651
40652         Module lstat.
40653         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
40654         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
40655
40656         Module timespec.
40657         * m4/timespec.m4 (gl_TIMESPEC): New macro.
40658         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
40659         * m4/st_mtim.m4: Indentation.
40660
40661         Module nanosleep.
40662         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
40663         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
40664         gl_PREREQ_NANOSLEEP.
40665
40666         Module regex.
40667         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
40668         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
40669         (gl_REGEX): New macro.
40670
40671         Module rename.
40672         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
40673         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
40674
40675         Module rmdir.
40676         * m4/rmdir.m4: New file.
40677
40678         Module utime.
40679         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
40680         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
40681         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
40682
40683         Module dirname.
40684         * m4/dirname.m4: New file.
40685
40686         Module getopt.
40687         * m4/getopt.m4: New file.
40688
40689         Module unistd-safer.
40690         * m4/unistd-safer.m4: New file.
40691
40692         Module fnmatch.
40693         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
40694         declaration.
40695         (gl_PREREQ_FNMATCH_EXTRA): New macro.
40696         (gl_FUNC_FNMATCH_POSIX): New macro.
40697         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
40698         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
40699         simply fnmatch.
40700
40701         Module exclude.
40702         * m4/exclude.m4: New file.
40703
40704         Module human.
40705         * m4/human.m4: New file.
40706
40707         Module acl.
40708         * m4/acl.m4: Nop.
40709
40710         Module backupfile.
40711         * m4/backupfile.m4: New file.
40712         * m4/d-ino.m4: Indentation.
40713
40714         Module fsusage.
40715         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
40716         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
40717         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
40718
40719         Module dirfd.
40720         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
40721         requirements.
40722
40723         Module euidaccess.
40724         * m4/euidaccess.m4: New file.
40725
40726         Module file-type.
40727         * m4/file-type.m4: New file.
40728
40729         Module fileblocks.
40730         * m4/fileblocks.m4: New file.
40731
40732         Module filemode.
40733         * m4/filemode.m4: New file.
40734
40735         Module isdir.
40736         * m4/isdir.m4: New file.
40737
40738         Module lchown.
40739         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
40740         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
40741
40742         Module makepath.
40743         * m4/makepath.m4: New file.
40744
40745         Module modechange.
40746         * m4/modechange.m4: New file.
40747
40748         Module mountlist.
40749         * m4/mountlist.m4: New file.
40750         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
40751         Indentation.
40752
40753         Module path-concat.
40754         * m4/path-concat.m4: New file.
40755
40756         Module pathmax.
40757         * m4/pathmax.m4: New file.
40758
40759         Module same.
40760         * m4/same.m4: New file.
40761
40762         Module save-cwd.
40763         * m4/save-cwd.m4: New file.
40764
40765         Module savedir.
40766         * m4/savedir.m4: New file.
40767
40768         Module xgetcwd.
40769         * m4/xgetcwd.m4: New file.
40770         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
40771
40772         Module xreadlink.
40773         * m4/xreadlink.m4: New file.
40774
40775         Module safe-read.
40776         * m4/safe-read.m4: New file.
40777
40778         Module safe-write.
40779         * m4/safe-write.m4: New file.
40780
40781         Module closeout.
40782         * m4/closeout.m4: New file.
40783
40784         Module stdio-safer.
40785         * m4/stdio-safer.m4: New file.
40786
40787         Module getpass.
40788         * m4/getpass.m4: New file.
40789
40790         Module getugroups.
40791         * m4/getugroups.m4: New file.
40792
40793         Module group-member.
40794         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
40795         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
40796
40797         Module idcache.
40798         * m4/idcache.m4: New file.
40799
40800         Module userspec.
40801         * m4/userspec.m4: New file.
40802
40803         Module gettime.
40804         * m4/clock_time.m4: New file.
40805         * m4/gettime.m4: New file.
40806
40807         Module settime.
40808         * m4/settime.m4: New file.
40809
40810         Module posixtm.
40811         * m4/posixtm.m4: New file.
40812
40813         Module gethostname.
40814         * m4/gethostname.m4: New file.
40815
40816         Module canon-host.
40817         * m4/canon-host.m4: New file.
40818
40819         Module gettext.
40820         * m4/codeset.m4: New file, from gettext-0.11.5.
40821         * m4/gettext.m4: New file, from gettext-0.11.5.
40822         * m4/glibc21.m4: New file, from gettext-0.11.5.
40823         * m4/iconv.m4: New file, from gettext-0.11.5.
40824         * m4/intdiv0.m4: New file, from gettext-0.11.5.
40825         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
40826         * m4/inttypes.m4: New file, from gettext-0.11.5.
40827         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
40828         * m4/isc-posix.m4: New file, from gettext-0.11.5.
40829         * m4/lcmessage.m4: New file, from gettext-0.11.5.
40830         * m4/lib-ld.m4: New file, from gettext-0.11.5.
40831         * m4/lib-link.m4: New file, from gettext-0.11.5.
40832         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
40833         * m4/progtest.m4: New file, from gettext-0.11.5.
40834         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
40835         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
40836         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
40837
40838         Module localcharset.
40839         * m4/localcharset.m4: New file.
40840
40841         Module hard-locale.
40842         * m4/hard-locale.m4: New file.
40843
40844         Module mbswidth.
40845         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
40846         onceonly macros.
40847         * m4/mbrtowc.m4: Add comment.
40848
40849         Module memcasecmp.
40850         * m4/memcasecmp.m4: New file.
40851
40852         Module memcoll.
40853         * m4/memcoll.m4: New file.
40854
40855         Module unicodeio.
40856         * m4/unicodeio.m4: New file.
40857
40858         Module rpmatch.
40859         * m4/rpmatch.m4: New file.
40860
40861         Module yesno.
40862         * m4/yesno.m4: New file.
40863
40864         Module exitfail.
40865         * m4/exitfail.m4: New file.
40866
40867         Module c-stack.
40868         * m4/c-stack.m4 (gl_C_STACK): New macro.
40869         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
40870
40871         Module error.
40872         * m4/error.m4 (gl_ERROR): New macro.
40873         (jm_PREREQ_ERROR): Use onceonly macros.
40874
40875         Module fatal.
40876         * m4/fatal.m4: New file.
40877
40878         Module getloadavg.
40879         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
40880         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
40881
40882         Module getpagesize.
40883         * m4/getpagesize.m4: New file.
40884
40885         Module getusershell.
40886         * m4/getusershell.m4: New file.
40887
40888         Module physmem.
40889         * m4/physmem.m4: New file.
40890
40891         Module posixver.
40892         * m4/posixver.m4: New file.
40893
40894         Module quotearg.
40895         * m4/quotearg.m4: New file.
40896
40897         Module quote.
40898         * m4/quote.m4: New file.
40899
40900         Module readutmp.
40901         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
40902
40903         Module sig2str.
40904         * m4/sig2str.m4: New file.
40905
40906         Other.
40907         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
40908         ulonglong.m4.
40909         * m4/intmax_t.m4: New file.
40910         * m4/d-type.m4: Indentation.
40911         * m4/jm-macros.m4: Update.
40912         * m4/prereq.m4 (jm_PREREQ): Update.
40913         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
40914         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
40915         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
40916         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
40917         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
40918         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
40919         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
40920         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
40921         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
40922         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
40923         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
40924         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
40925         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
40926         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
40927         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
40928         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
40929         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
40930         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
40931         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
40932
40933 2002-12-24  Bruno Haible  <bruno@clisp.org>
40934
40935         * MODULES.txt: Update according to m4/ changes.
40936
40937         Module gettext.
40938         * config.rpath: New file, from gettext-0.11.5.
40939
40940         * modules/*: New module descriptions.
40941         * gnulib-tool: New file.
40942         * MODULES.html.sh: New file.
40943
40944 2002-12-21  Karl Berry  <karl@gnu.org>
40945
40946         * doc/fdl.texi: update to version 1.2.
40947
40948 2002-12-19  Karl Berry  <karl@gnu.org>
40949
40950         * config/config.guess: update from prep.
40951
40952 2002-12-18  Bruno Haible  <bruno@clisp.org>
40953
40954         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
40955         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
40956
40957 2002-12-17  Bruno Haible  <bruno@clisp.org>
40958
40959         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
40960         stdlib.h, string.h.
40961
40962 2002-12-17  Bruno Haible  <bruno@clisp.org>
40963
40964         * lib/canon-host.c (strdup): Remove unused declaration.
40965
40966         * lib/fsusage.c: Include full_read.h.
40967         (get_fs_usage): Use full_read instead of safe_read.
40968
40969         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
40970
40971 2002-12-12  Karl Berry  <karl@gnu.org>
40972
40973         * config/config.guess: update from prep.
40974
40975 2002-12-11  Bruno Haible  <bruno@clisp.org>
40976
40977         * m4/setenv.m4: New file, from gettext-0.11.5.
40978
40979 2002-12-11  Bruno Haible  <bruno@clisp.org>
40980
40981         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
40982         not unsetenv().
40983         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
40984         modifications:
40985
40986         2002-12-11  Bruno Haible  <bruno@clisp.org>
40987
40988                 * setenv.c (alloca): Fall back to malloc.
40989                 (freea): New macro.
40990                 (setenv): Use freea() to free memory allocated with alloca().
40991
40992         2002-11-13  Bruno Haible  <bruno@clisp.org>
40993
40994                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
40995                 function declarations.
40996                 * unsetenv.c (unsetenv): Likewise.
40997
40998         2002-03-04  Bruno Haible  <bruno@clisp.org>
40999
41000                 Portability to AIX 4.3.3.
41001                 * unsetenv.c: New file, extracted from setenv.c.
41002                 * setenv.c: Move the unsetenv() function to unsetenv.c.
41003
41004         2001-12-20  Bruno Haible  <bruno@clisp.org>
41005
41006                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
41007                 use malloc instead. For SunOS 4.
41008
41009         2001-12-11  Bruno Haible  <bruno@clisp.org>
41010
41011                 * setenv.c: Declare alloca.
41012                 (compar_fn_t): New typedef.
41013                 (KNOWN_VALUE, STORE_VALUE): Use it.
41014
41015         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
41016         setenv.h.
41017
41018 2002-12-10  Paul Eggert  <eggert@twinsun.com>
41019
41020         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
41021         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
41022         Choose values that are less likely to collide with system fnmatch
41023         options.
41024         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
41025         defined (e.g., a pure POSIX system).
41026         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
41027         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
41028
41029 2002-12-06  Paul Eggert  <eggert@twinsun.com>
41030
41031         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
41032         a pain in practice to deal with generated m4 files.  This change
41033         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
41034
41035         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
41036         and jm-glibc-io.m4, as they are no longer a special case.
41037         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
41038         kludge and the auto-generation stuff.  Check only whether the
41039         functions are declared, not whether they exist, since older hosts
41040         that don't declare the functions can't use the optimization anyway.
41041
41042 2002-12-06  Jim Meyering  <jim@meyering.net>
41043
41044         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
41045
41046         Merge in changes from libc's misc/error.c, in preparation
41047         for the merge of gnulib's changes back into libc.
41048
41049         * lib/error.c (_): Define only if not already defined.
41050         Move definition to follow all #include directives.
41051         Include unlocked-io.h only if !_LIBC.
41052         [_LIBC]: Include <libio/libioP.h>.
41053         [USE_IN_LIBIO]: Include <libio/iolibio.h>
41054         (fflush): Tweak definition to use INTUSE.
41055         (putc): Define.
41056
41057 2002-12-05  Paul Eggert  <eggert@twinsun.com>
41058
41059         * lib/alloca.c [defined emacs]: Include "lisp.h".
41060         (xalloc_die) [defined emacs]: New macro.
41061         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
41062         [! defined emacs]: Include <xalloc.h>.
41063         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
41064         (pointer): Typedef to POINTER_TYPE *.
41065         (malloc): Remove decl; we now always use xmalloc.
41066         (alloca): Use old-style definition, since Emacs needs this.
41067         Check for arithmetic overflow when computing combined size.
41068
41069 2002-12-04  Paul Eggert  <eggert@twinsun.com>
41070
41071         Do not generate unlocked-io.h automatically, since it's easier to
41072         maintain it by hand.
41073
41074         * lib/unlocked-io.h: New file, from GNU diffutils,
41075         but with proper copyright notice and attribution.
41076         * lib/gen-uio: Remove.
41077         * lib/Makefile.am: Add copyright notice.
41078         (libfetish_a_SOURCES): Add unlocked-io.h.
41079         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
41080         (DISTCLEANFILES, io_functions): Remove macros.
41081         (EXTRA_DIST): Remove gen_uio.
41082         (unlocked-io.h): Remove rule.
41083
41084 2002-12-04  Jim Meyering  <jim@meyering.net>
41085
41086         Reflect the fact that stat.c and lstat.c are no longer generated.
41087         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
41088         (DISTCLEANFILES): Likewise.
41089         (EXTRA_DIST): Likewise.
41090         (all_local): Don't depend on stat.c or lstat.c.
41091         (stat.c, lstat.c): Remove rules.
41092         (EXTRA_DIST): Remove xstat.in.
41093
41094         * lib/xstat.in: Remove file.  Contents moved into stat.c.
41095         * lib/stat.c: New file.  Contents mostly from xstat.in.
41096         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
41097         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
41098
41099         * lib/safe-read.c: Rework so that it may serve to define safe_write,
41100         too.
41101         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
41102
41103 2002-12-03  Jim Meyering  <jim@meyering.net>
41104
41105         * lib/safe-read.c, safe-write.c: Change variable names and comments,
41106         but not semantics, to minimize the differences between these two files.
41107         (safe_read): Change comment to mention SAFE_READ_ERROR.
41108
41109         * lib/safe-read.c (IS_EINTR): Define.
41110         (safe_read): Use IS_EINTR in place of in-function cpp directives.
41111
41112 2002-12-02  Jim Meyering  <jim@meyering.net>
41113
41114         * lib/safe-read.c (EINTR): Define.
41115         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
41116         (INT_MAX): Provide fallback.
41117         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
41118
41119         * lib/safe-read.h (SAFE_READ_ERROR): Define.
41120
41121 2002-12-02  Bruno Haible  <bruno@clisp.org>
41122
41123         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
41124         Define, taken from safe-read.c.
41125         (INT_MAX): Provide fallback.
41126         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
41127         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
41128
41129         * lib/safe-read.c (EINTR): Remove definition.
41130         (safe_read): Don't use EINTR if it is absent.
41131
41132 2002-12-01  Jim Meyering  <jim@meyering.net>
41133
41134         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
41135         zero.
41136         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
41137
41138 2002-11-27  Paul Eggert  <eggert@twinsun.com>
41139
41140         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
41141         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
41142         with `if (! (value < limit)) abort ();', for readability.
41143
41144 2002-11-26  Karl Berry  <karl@gnu.org>
41145
41146         * lib/strdup.c: copy from libc again, with jim's ok.
41147         * lib/.cppi-disable: re-add strdup.c
41148
41149 2002-11-25  Karl Berry  <karl@gnu.org>
41150
41151         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
41152         instead of "strtol.c".
41153
41154 2002-11-25  Karl Berry  <karl@gnu.org>
41155
41156         * config/install-sh: update from automake for variable quoting, $0 in
41157         error msgs, etc.
41158
41159         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
41160         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
41161         entry.
41162
41163 2002-11-25  Jim Meyering  <jim@meyering.net>
41164
41165         * lib/mktime.c: Sync from libc, now that it has the latest fix.
41166
41167 2002-11-24  Karl Berry  <karl@gnu.org>
41168
41169         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
41170         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
41171
41172 2002-11-24  Jim Meyering  <jim@meyering.net>
41173
41174         Update from coreutils:
41175
41176         * lib/mktime.c: Merge in changes from libc.
41177
41178         Avoid a link-time failure on some Linux systems.
41179         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
41180         (otherwise).
41181         (__mon_yday): Declare with the STATIC attribute.
41182         (__mktime_internal): Likewise.
41183         Based on a report from Greg Schafer.
41184
41185 2002-11-23  Jim Meyering  <jim@meyering.net>
41186
41187         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
41188         Use `unsigned', not `int', as type of index.
41189
41190         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
41191
41192         * lib/fsusage.c: Remove unneeded parentheses around operands of
41193         `defined'.
41194
41195 2002-11-22  Paul Eggert  <eggert@twinsun.com>
41196
41197         * lib/quotearg.h: Allow multiple inclusion by surrounding with
41198         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
41199         so that we can be included first.
41200         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
41201         * lib/quotearg.c: Include quotearg.h immediately after config.h.
41202         No need to include stddef.h or sys/types.h any more.
41203         Surround local include files with "", not "<>".
41204         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
41205         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
41206         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
41207         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
41208         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
41209         (ISPRINT): Remove; no longer needed now that we assume C89.
41210
41211         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
41212         Preserve errno.
41213
41214         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
41215         quotearg_char): Use SIZE_MAX rather than
41216         (size_t) -1 when we are talking about "infinity".
41217
41218         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
41219
41220 2002-11-22  Paul Eggert  <eggert@twinsun.com>
41221
41222         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
41223         hint that one should use `if (! x) abort ();' rather than `assert
41224         (x);', and anyway it's one less thing to worry about configuring.
41225         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
41226         hash_rehash, hash_insert): Use abort rather than assert.
41227
41228 2002-11-22  Bruno Haible  <bruno@clisp.org>
41229
41230         * lib/safe-read.h: Assume C89. Add comments.
41231         (safe_read): Change return type to size_t.
41232         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
41233         byte counts > SSIZE_MAX correctly.
41234         * lib/safe-write.h: New file.
41235         * lib/safe-write.c: New file.
41236         * lib/full-read.h: New file.
41237         * lib/full-read.c: New file.
41238         * lib/full-write.h: Assume C89. Add comments.
41239         * lib/full-write.c: Include safe-write.h.
41240         (full_write): Rewritten to use safe_write.
41241         Suggested by Jim Meyering and Paul Eggert.
41242
41243 2002-11-21  Jim Meyering  <jim@meyering.net>
41244
41245         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
41246
41247         Merge in changes from the coreutils.
41248
41249         2002-09-25  Paul Eggert  <eggert@twinsun.com>
41250         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
41251         <stdint.h>.
41252         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
41253         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
41254         int.  Work more efficiently if X is the same width as uintmax_t.
41255         Do not compare X to -1, to avoid bogus compiler warning.
41256         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
41257         Don't assume that f_frsize and f_bsize are the same type.
41258
41259         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
41260         warning on FreeBSD.
41261
41262         * lib/makepath.c (make_path): Restore umask *before* creating the final
41263         component.
41264         (make_path): Minor reformatting.
41265
41266         * lib/xmalloc.c: Adjust to work with new autoconf macros,
41267         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
41268         HAVE_MALLOC/HAVE_REALLOC.
41269
41270         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
41271         dummy ones.  At least on GNU/Linux systems, `auto' means something
41272         else.
41273         From Michael Stone.
41274
41275 2002-11-21  Bruno Haible  <bruno@clisp.org>
41276
41277         Remove case insensitive option matching.
41278         * lib/argmatch.h (argcasematch): Remove declaration.
41279         (ARGCASEMATCH): Remove macro.
41280         (__xargmatch_internal): Remove case_sensitive argument.
41281         (XARGMATCH): Update.
41282         (XARGCASEMATCH): Remove macro.
41283         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
41284         case_sensitive argument.
41285         (argcasematch): Remove function.
41286         (__xargmatch_internal): Remove case_sensitive argument.
41287         (main): Use XARGMATCH instead of XARGCASEMATCH.
41288
41289         * lib/xmalloc.c: Change compile-time error message. Add comment about
41290         required autoconf version.
41291
41292 2002-11-20  Paul Eggert  <eggert@twinsun.com>
41293
41294         Merge argmatch cleanups from Bison.  Assume C89.
41295
41296         * lib/argmatch.c: Include config.h here, not in argmatch.h.
41297         Include stdlib.h, for EXIT_FAILURE.
41298         Always include <string.h>, since we assume C89.
41299         (EXIT_FAILURE): Remove pre-C89 bug workaround.
41300         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
41301         Include <stddef.h> instead, since it's all we need for size_t.
41302         (PARAMS): Remove.  All uses removed.
41303         (ARRAY_CARDINALITY): Do not bother to #undef.
41304         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
41305         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
41306         Remove unnecessary parentheses.
41307         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
41308         Insert necessary parentheses.
41309         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
41310         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
41311
41312 2002-11-19  Bruno Haible  <bruno@clisp.org>
41313
41314         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
41315         * lib/mbswidth.h: Include <stddef.h>, for size_t.
41316
41317         * lib/mbswidth.h (PARAMS): Remove macro.
41318         (mbswidth, mbsnwidth): Use ANSI C function declarations.
41319         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
41320
41321         * lib/gcd.h (PARAMS): Remove macro.
41322         (gcd): Use ANSI C function declarations.
41323         * lib/gcd.c (gcd): Likewise.
41324
41325 2002-11-15  Bruno Haible  <bruno@clisp.org>
41326
41327         * lib/strcspn.c: Include <stddef.h>.
41328         (strcspn): Use ANSI C function declaration. Change return type to
41329         size_t. Use NULL.
41330         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
41331         (strpbrk): Use NULL.
41332         * lib/strpbrk.h (PARAMS): Remove macro.
41333         (strpbrk): Use ANSI C function declaration.
41334         * lib/strstr.c: Don't include <sys/types.h>.
41335         * lib/strstr.h (PARAMS): Remove macro.
41336         (strstr): Use ANSI C function declarations.
41337
41338 2002-11-14  Karl Berry  <karl@gnu.org>
41339
41340         * config/mkinstalldirs: `do' on separate line, instead of
41341         `for var; do'.
41342
41343 2002-11-06  Bruno Haible  <bruno@clisp.org>
41344
41345         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
41346         * lib/gcd.c (gcd): Likewise.
41347
41348 2002-11-05  Bruno Haible  <bruno@clisp.org>
41349
41350         * lib/gcd.h: New file, from gettext-0.11.5.
41351         * lib/gcd.c: New file, from gettext-0.11.5.
41352
41353 2002-11-05  Bruno Haible  <bruno@clisp.org>
41354
41355         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
41356         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
41357         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
41358         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
41359
41360         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
41361         <libintl.h>.
41362         * lib/makepath.c: Include gettext.h instead of <locale.h> and
41363         <libintl.h>.
41364
41365         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
41366         * lib/human.c: Include gettext.h instead of <libintl.h>.
41367         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
41368         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
41369         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
41370         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
41371         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
41372         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
41373         (textdomain): Remove definition.
41374         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
41375
41376         * lib/long-options.c: Remove include of <libintl.h> and definition of
41377         _.
41378         * lib/same.c: Remove include of <libintl.h> and definition of _.
41379
41380 2002-11-04  Owen Taylor  <otaylor@redhat.com>
41381
41382         * lib/config.charset: A few additions for Solaris.
41383
41384 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
41385
41386         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
41387         * lib/localcharset.c (locale_charset): Declare as extern "C".
41388
41389 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
41390
41391         * lib/config.charset: msdos in uk_UA uses CP1125.
41392
41393 2002-11-04  Bruno Haible  <bruno@clisp.org>
41394
41395         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
41396         * lib/strcase.h: New file, from GNU gettext-0.11.5.
41397         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
41398         * lib/strstr.h: New file, from GNU gettext-0.11.5.
41399         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
41400
41401 2002-11-04  Bruno Haible  <bruno@clisp.org>
41402
41403         * lib/localcharset.c (locale_charset): Don't return an empty string.
41404
41405 2002-11-04  Bruno Haible  <bruno@clisp.org>
41406
41407         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
41408         aliases.
41409
41410 2002-11-04  Bruno Haible  <bruno@clisp.org>
41411
41412         * lib/config.charset: Update for newest glibc. Add canonical names
41413         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
41414
41415 2002-11-04  Bruno Haible  <bruno@clisp.org>
41416
41417         * lib/config.charset: Add support for NetBSD.
41418
41419 2002-11-04  Bruno Haible  <bruno@clisp.org>
41420
41421         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
41422
41423 2002-11-01  Bruno Haible  <bruno@clisp.org>
41424
41425         * configure.in: Add AC_CONFIG_AUX_DIR call.
41426         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
41427         test/Makefile.
41428         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
41429
41430 2002-09-28  Karl Berry  <karl@gnu.org>
41431
41432         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
41433         installed automake until the next release, since changes have been
41434         made.
41435
41436 2002-09-25  Karl Berry  <karl@gnu.org>
41437
41438         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
41439         * lib/getopt*: copy from libc/posix.
41440         * lib/gettext.h: copy from gettext.
41441         * lib/.cppi-disable: add strdup.c, gettext.h.
41442
41443 2002-09-25  Karl Berry  <karl@gnu.org>
41444
41445         * config/srclist.txt: enable gettext.h check.
41446         * config/config.{guess,sub}: update from prep.
41447         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
41448                 from automake 1.6.3.
41449         See srclist*.
41450
41451 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
41452
41453         * regex.c (PATFETCH): Remove the translating fetch.
41454         (PATFETCH_RAW): Rename to PATFETCH.
41455         (set_image_of_range): New fun.
41456         (SET_RANGE_TABLE_WORK_AREA): Use it.
41457         (regex_compile): Don't translate the pattern chars so eagerly.
41458         Only do it when inserting an `exactn' bytecode or when handling
41459         a char-range.
41460         (mutually_exclusive_p): Avoid empty statement.
41461
41462 2002-07-06  Jim Meyering  <meyering@lucent.com>
41463
41464         * m4/README: Don't mention Makefile.am.in.
41465         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
41466
41467 2002-07-01  Jim Meyering  <meyering@lucent.com>
41468
41469         * lib/c-stack.c: Include sys/time.h.
41470         From Volker Borchert.
41471
41472 2002-06-26  Paul Eggert  <eggert@twinsun.com>
41473
41474         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
41475
41476 2002-06-26  Paul Eggert  <eggert@twinsun.com>
41477
41478         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
41479         New macro.  Use it uniformly instead of
41480         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
41481         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
41482         reported by Vin Shelton.
41483
41484 2002-06-22  Paul Eggert  <eggert@twinsun.com>
41485
41486         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
41487         Do not assume SA_SIGINFO behavior.
41488         Bug reported by Jim Meyering on NetBSD 1.5.2.
41489
41490 2002-06-22  Jim Meyering  <meyering@lucent.com>
41491
41492         * m4/c-stack.m4: New file, from diffutils-2.8.2.
41493         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
41494
41495         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
41496         now that configure.ac uses AC_GNU_SOURCE.
41497         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
41498         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
41499
41500         Update to latest tools.  Suggestions from Paul Eggert.
41501         * m4/stdbool.m4: New file, from diffutils-2.8.2.
41502         * m4/gnu-source.m4: Update from diffutils-2.8.2.
41503         * m4/fnmatch.m4: Likewise.
41504         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
41505         to AC_HEADER_STDBOOL
41506
41507 2002-06-22  Jim Meyering  <meyering@lucent.com>
41508
41509         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
41510         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
41511
41512 2002-06-22  Jim Meyering  <meyering@lucent.com>
41513
41514         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
41515
41516         * lib/exitfail.c, exitfail.h: Likewise.
41517         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
41518
41519         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
41520         of fnmatch.h.
41521         (EXTRA_DIST): Add fnmatch_loop.c.
41522         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
41523
41524         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
41525         * lib/fnmatch.c: Update from diffutils-2.8.2.
41526         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
41527         * lib/fnmatch.h: Remove file.
41528
41529 2002-06-21  Jim Meyering  <meyering@lucent.com>
41530
41531         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
41532         * m4/mbrtowc.m4: Likewise.
41533
41534         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
41535         * m4/mbswidth.m4: Reflect name change:
41536         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
41537         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
41538
41539         * m4/lib-link.m4: Update from gettext-0.11.2.
41540         * m4/gettext.m4: Likewise.
41541
41542         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
41543         From Alfred M. Szmidt.
41544
41545 2002-06-18  Paul Eggert  <eggert@twinsun.com>
41546
41547         * lib/file-type.h: Report an error if neither S_ISREG nor
41548         S_IFREG is defined, instead of using a test specific to glibc
41549         2.2.  This should be safe, since POSIX requires S_ISREG and
41550         Unix Version 7 had S_IFREG.  We don't need to check for
41551         <sys/types.h> since we don't use any symbols that it defines.
41552
41553 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
41554
41555         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
41556         $@-t, so that each temporary file name is unique and valid in the first
41557         8 characters, for operation under DOS.
41558
41559 2002-06-15  Paul Eggert  <eggert@twinsun.com>
41560
41561         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
41562
41563 2002-06-15  Jim Meyering  <meyering@lucent.com>
41564
41565         Work even with DJGPP 2.03, which lacks support for symlinks.
41566         From Richard Dawe.
41567         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
41568         is defined.
41569         * lib/lchown.c (S_ISLNK): Likewise.
41570
41571 2002-06-15  Jim Meyering  <meyering@lucent.com>
41572
41573         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
41574         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
41575         have been included before this file.
41576
41577 2002-06-14  Jim Meyering  <meyering@lucent.com>
41578
41579         * lib/file-type.h: Use the version from diffutils-2.8.2.
41580         * lib/file-type.c: Likewise.
41581
41582 2002-06-07  Jim Meyering  <meyering@lucent.com>
41583
41584         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
41585         They're needed at least for NetBSD 1.5.2.
41586         ($statxfs_includes): Include those same headers.
41587         ($statxfs_includes): Include sys/vfs.h if available.
41588         ($statxfs_includes): Likewise for sys/statvfs.h.
41589         Check for the following members in both structs statfs and statvfs:
41590         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
41591
41592 2002-06-01  Jim Meyering  <meyering@lucent.com>
41593
41594         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
41595         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
41596
41597 2002-05-28  Jim Meyering  <meyering@lucent.com>
41598
41599         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
41600         Reported by Volker Borchert.
41601
41602 2002-05-27  Jim Meyering  <meyering@lucent.com>
41603
41604         Fix a problem seen only on nonconforming systems whereby ls.c's
41605         use of localtime, and then of gettimeofday would cause trouble:
41606         the localtime call used to initialize rpl_gettimeofday's save
41607         mechanism would clobber ls's current local time information so
41608         that in any long listing the first file would always be listed
41609         with date 1970-01-01.  Analysis by Volker Borchert.
41610
41611         * lib/gettimeofday.c (localtime): Undefine.
41612         (rpl_localtime): New function.
41613
41614 2002-05-27  Jim Meyering  <meyering@lucent.com>
41615
41616         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
41617         localtime.
41618
41619         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
41620         use the replacement function; it wouldn't resolve at link time.
41621         Reported by Volker Borchert.
41622
41623 2002-05-22  Jim Meyering  <meyering@lucent.com>
41624
41625         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
41626         file-type.h.
41627         * lib/file-type.h: New file.
41628         * lib/file-type.c (file_type): New file/function.  Extracted from
41629         diffutils.
41630
41631 2002-04-30  Jim Meyering  <meyering@lucent.com>
41632
41633         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
41634
41635 2002-04-29  Paul Eggert  <eggert@twinsun.com>
41636
41637         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
41638
41639 2002-04-29  Paul Eggert  <eggert@twinsun.com>
41640
41641         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
41642         Do not check for alloca.h (no longer used) or stdbool.h (was never
41643         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
41644
41645 2002-04-29  Paul Eggert  <eggert@twinsun.com>
41646
41647         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
41648
41649 2002-04-29  Jim Meyering  <meyering@lucent.com>
41650
41651         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
41652         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
41653         Use AC_FUNC_STRNLEN here instead.
41654
41655         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
41656         With autoconf-2.53a, it's part of AC_PROG_CC.
41657
41658 2002-04-28  Paul Eggert  <eggert@twinsun.com>
41659
41660         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
41661         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
41662
41663 2002-04-28  Paul Eggert  <eggert@twinsun.com>
41664
41665         * lib/sig2str.h, lib/sig2str.c: New files.
41666         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
41667
41668 2002-04-28  Paul Eggert  <eggert@twinsun.com>
41669
41670         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
41671         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
41672         of 127, since 64 is the largest conceivable number for ancient
41673         nonstandard hosts.
41674         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
41675
41676 2002-04-28  Jim Meyering  <meyering@lucent.com>
41677
41678         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
41679
41680 2002-04-24  Jim Meyering  <meyering@lucent.com>
41681
41682         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
41683         (jm_PREREQ): Use it.
41684
41685         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
41686         mach/mach.h fcntl.h.
41687         Check for this function: setlocale.
41688
41689 2002-04-24  Jim Meyering  <meyering@lucent.com>
41690
41691         * lib/gettext.h: New file, from Gettext.
41692         * lib/Makefile.am (INCLUDES): Remove -I../intl.
41693         (libfetish_a_SOURCES): Add gettext.h.
41694
41695 2002-04-16  Jim Meyering  <meyering@lucent.com>
41696
41697         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
41698         ut_pid, ut_id, ut_exit.
41699
41700 2002-04-16  Jim Meyering  <meyering@lucent.com>
41701
41702         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
41703         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
41704         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
41705
41706 2002-04-12  Jim Meyering  <meyering@lucent.com>
41707
41708         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
41709         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
41710         existence of the getmntinfo function.  Needed for Darwin 5.3.
41711
41712         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
41713         This is necessary at least on Darwin 5.3.
41714
41715         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
41716         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
41717         strnlen.o in the library, and that makes some versions of ranlib
41718         object.
41719
41720 2002-04-12  Jim Meyering  <meyering@lucent.com>
41721
41722         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
41723
41724 2002-04-09  Jim Meyering  <meyering@lucent.com>
41725
41726         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
41727         to be more precise.  Rather than saying we're checking whether the
41728         function `works', say what we're testing.
41729         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
41730         Reported by Bruno Haible.
41731
41732 2002-03-10  Jim Meyering  <meyering@lucent.com>
41733
41734         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
41735         Suggestion from Santiago Vila.
41736
41737 2002-03-08  Jim Meyering  <meyering@lucent.com>
41738
41739         * lib/rename.c: Mention that this wrapper is needed also on
41740         mips-dec-ultrix4.4 systems.
41741
41742 2002-03-02  Jim Meyering  <meyering@lucent.com>
41743
41744         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
41745         not HAVE_CLOCK_SETTIME.
41746
41747 2002-02-27  Paul Eggert  <eggert@twinsun.com>
41748
41749         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
41750         Check for clock_settime.
41751
41752 2002-02-27  Paul Eggert  <eggert@twinsun.com>
41753
41754         * lib/nanosleep.h: Rename to....
41755         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
41756
41757         * lib/gettime.c: New file.
41758         * lib/settime.c: New file.
41759         * lib/stime.c: Remove.
41760
41761         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
41762         timespec.h.  Remove nanosleep.h.
41763
41764 2002-02-25  Paul Eggert  <eggert@twinsun.com>
41765
41766         * m4/acl.m4: New file.
41767         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
41768         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
41769
41770 2002-02-25  Paul Eggert  <eggert@twinsun.com>
41771
41772         * lib/acl.c, lib/acl.h: New files.
41773         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
41774
41775 2002-02-24  Jim Meyering  <meyering@lucent.com>
41776
41777         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
41778         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
41779         cause trouble.  Reported by Nelson Beebe.
41780
41781 2002-02-23  Paul Eggert  <eggert@twinsun.com>
41782
41783         * lib/path-concat.c (xpath_concat): Reorder code to pacify
41784         compilers that don't know that xalloc_die never returns.
41785
41786 2002-02-20  Jim Meyering  <meyering@lucent.com>
41787
41788         * lib/getdate.c: Regenerate using bison-1.33.
41789
41790 2002-02-17  Jim Meyering  <meyering@lucent.com>
41791
41792         * config/config.guess (main): Don't use `head -1'; it's no longer
41793         portable. Use `sed 1q' instead.
41794
41795 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
41796
41797         * m4/codeset.m4: Upgrade to gettext-0.11.
41798         * m4/gettext.m4: Upgrade to gettext-0.11.
41799         * m4/glibc21.m4: Upgrade to gettext-0.11.
41800         * m4/iconv.m4: Upgrade to gettext-0.11.
41801         * m4/isc-posix.m4: Upgrade to gettext-0.11.
41802         * m4/lcmessage.m4: Upgrade to gettext-0.11.
41803         * m4/lib-ld.m4: New file, from gettext-0.11.
41804         * m4/lib-link.m4: New file, from gettext-0.11.
41805         * m4/lib-prefix.m4: New file, from gettext-0.11.
41806         * m4/progtest.m4: Upgrade to gettext-0.11.
41807
41808 2002-02-15  Paul Eggert  <eggert@twinsun.com>
41809
41810         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
41811         (jm_PREREQ): Use it.
41812
41813 2002-02-15  Paul Eggert  <eggert@twinsun.com>
41814
41815         * lib/posixver.c, lib/posixver.h: New files.
41816         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
41817
41818 2002-02-02  Paul Eggert  <eggert@twinsun.com>
41819             Bruno Haible  <bruno@clisp.org>
41820
41821         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
41822         (fwrite_success_callback): New declaration.
41823         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
41824         print_unicode_char. Call failure callback instead of error.
41825         (fwrite_success_callback): New function.
41826         (exit_failure_callback): New function.
41827         (fallback_failure_callback): New function.
41828         (print_unicode_char): Call unicode_to_mb.
41829
41830 2002-01-26  Jim Meyering  <meyering@lucent.com>
41831
41832         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
41833         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
41834
41835 2002-01-26  Jim Meyering  <meyering@lucent.com>
41836
41837         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
41838
41839 2002-01-22  Paul Eggert  <eggert@twinsun.com>
41840
41841         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
41842
41843 2002-01-22  Jim Meyering  <meyering@lucent.com>
41844
41845         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
41846         Otherwise, some versions of automake would omit the rule that makes
41847         Makefile from Makefile.in.
41848
41849 2002-01-21  Paul Eggert  <eggert@twinsun.com>
41850
41851         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
41852         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
41853         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
41854         (memcoll): Set errno to zero if there is no error.
41855
41856         * lib/quotearg.c (quotearg_buffer_restyled):
41857         Fix bug with quoting buffers containing NUL when backslashing escapes.
41858         This bug was exposed by the other changes in this patch.
41859         (quotearg_n_options): New arg ARGSIZE.
41860         All callers changed.
41861         (quoting_options_from_style): New function.
41862         (quotearg_n_style): Use it.
41863         (quotearg_n_style_mem): New function.
41864
41865         * lib/quotearg.h (quotearg_n_style_mem): New function.
41866
41867 2002-01-19  Jim Meyering  <meyering@lucent.com>
41868
41869         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
41870         Remove useless quotes: DF_PROG="df".
41871         * m4/strnlen.m4: New file.
41872
41873 2002-01-16  Paul Eggert  <eggert@twinsun.com>
41874
41875         * lib/backupfile.c (ISDIGIT): Comment fix.
41876         * lib/getdate.y (ISDIGIT): Likewise.
41877         * lib/posixtm.c (ISDIGIT, year): Likewise.
41878         * lib/strverscmp.c (ISDIGIT): Likewise.
41879         * lib/userspec.c (ISDIGIT): Likewise.
41880
41881 2002-01-16  Jim Meyering  <meyering@lucent.com>
41882
41883         * lib/getdate.y: Add three semicolons, each just before a closing
41884         brace. Bison (as of version 1.31) no longer papers over that mistake.
41885
41886 2002-01-05  Jim Meyering  <meyering@lucent.com>
41887
41888         * lib/version-etc.c (version_etc_copyright): Update copyright year.
41889
41890 2001-12-19  Paul Eggert  <eggert@twinsun.com>
41891
41892         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
41893         not silently exit merely because the output buffer happens to
41894         have nothing pending.
41895
41896 2001-12-18  Paul Eggert  <eggert@twinsun.com>
41897
41898         See the big note in ../ChangeLog.
41899         * lib/human.c (suffixes): Prefer K to k for 1024.
41900         (generate_suffix_backwards): New function.
41901         (human_readable_inexact): Use it.
41902         * lib/xstrtol.c (__xstrtol): If there is no number but there
41903         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
41904         Accept 'K' as well as 'k'.
41905
41906 2001-12-15  Jim Meyering  <meyering@lucent.com>
41907
41908         * lib/regex.h (__restrict_arr): Update from libc.
41909
41910         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
41911         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
41912         (STREQ): Define.
41913
41914 2001-12-14  Jim Meyering  <meyering@lucent.com>
41915
41916         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
41917         Suggestion from Bruno Haible.
41918
41919 2001-12-10  Jim Meyering  <meyering@lucent.com>
41920
41921         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
41922         xrealloc, Instead, include "xalloc.h".
41923         (initbuffer): Don't cast xmalloc return value to char*.
41924         (readline): Reword comment.
41925         Don't cast xrealloc return value to char*
41926         Return NULL, not 0.
41927
41928 2001-12-09  Jim Meyering  <meyering@lucent.com>
41929
41930         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
41931         about `signed and unsigned type in conditional expression'.
41932         * lib/posixtm.c (posix_time_parse): Likewise.
41933
41934         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
41935
41936         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
41937         to avoid a pedantic warning.
41938
41939         * lib/getstr.c: Don't include assert.h.
41940         (getstr): Remove warning-evoking assertions.
41941         Return -1 if offset parameter is out of bounds.
41942         Change the type of a local from int to size_t.
41943
41944         * lib/strftime.c (my_strftime_localtime_r): Include this function
41945         definition in the `#if ! HAVE_TM_GMTOFF' block.
41946
41947         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
41948         Include xalloc.h instead.
41949
41950 2001-12-02  Jim Meyering  <meyering@lucent.com>
41951
41952         * lib/tempname.c: Don't declare getenv, thus reverting the change of
41953         2001-11-18.  It's no longer necessary, now that stdlib.h is always
41954         included.
41955
41956         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
41957         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
41958
41959 2001-11-30  Akim Demaille  <akim@epita.fr>
41960
41961         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
41962         before being defined.
41963
41964 2001-11-27  Paul Eggert  <eggert@twinsun.com>
41965
41966         * lib/quotearg.h (quotearg_n, quotearg_n_style):
41967         First arg is int, not unsigned.
41968         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
41969         (SIZE_MAX, UINT_MAX): New macros.
41970         (quotearg_n_options): Abort if N is negative.
41971         Avoid overflow check on hosts where size_t is 64 bits and int
41972         is 32 bits, as overflow is impossible there.
41973         Fix off-by-one typo that caused unnecessary reallocation.
41974
41975 2001-11-27  Jim Meyering  <meyering@lucent.com>
41976
41977         * lib/tempname.c: Merge with version from libc.
41978         * lib/regex.c: Likewise.
41979
41980         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
41981         systems for which STDC_HEADERS is 0, it was not included, resulting in
41982         a warning about an integer-to-pointer conversion problem with getenv.
41983         Reported by Volker Borchert.
41984
41985 2001-11-26  Jim Meyering  <meyering@lucent.com>
41986
41987         * lib/gtod.h: Remove file.
41988         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
41989         * lib/gettimeofday.c: Don't include gtod.h.
41990         (GTOD_init): Remove function.
41991         (rpl_gettimeofday): Do its job here instead, rather than aborting.
41992         Suggestion from Volker Borchert.
41993
41994 2001-11-23  Jim Meyering  <meyering@lucent.com>
41995
41996         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
41997         it.
41998         * lib/hash.c (struct hash_table): Define it here instead.
41999
42000 2001-11-22  Jim Meyering  <meyering@lucent.com>
42001
42002         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
42003
42004 2001-11-20  Jim Meyering  <meyering@lucent.com>
42005
42006         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
42007         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
42008
42009 2001-11-19  Jim Meyering  <meyering@lucent.com>
42010
42011         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
42012         directory.  Use "conftestXXXXXX" as the template.
42013         Suggestion from Paul Eggert.
42014
42015         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
42016         immediately, so the test doesn't mistakenly hit the max-open-files
42017         limit.
42018
42019 2001-11-18  Paul Eggert  <eggert@twinsun.com>
42020
42021         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
42022         (TEMPORARIES): New macro.
42023         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
42024         removes an artificial limitation (e.g. HP-UX 10.20, where
42025         TMP_MAX is 17576).
42026
42027 2001-11-18  Jim Meyering  <meyering@lucent.com>
42028
42029         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
42030
42031 2001-11-18  Jim Meyering  <meyering@lucent.com>
42032
42033         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
42034         on SunOS 4.
42035
42036         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
42037         files will be created before anything else.
42038
42039 2001-11-17  Paul Eggert  <eggert@twinsun.com>
42040
42041         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
42042         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
42043
42044 2001-11-17  Jim Meyering  <meyering@lucent.com>
42045
42046         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
42047         Prompted by a report from Bob Proulx.
42048
42049         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
42050         Instead, require UTILS_FUNC_MKSTEMP.
42051
42052 2001-11-17  Jim Meyering  <meyering@lucent.com>
42053
42054         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
42055         Now, that's done as part of AC_FUNC_STRTOD.
42056
42057 2001-11-17  Jim Meyering  <meyering@lucent.com>
42058
42059         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
42060         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
42061         rather than group writable.  Patch by Juan F. Codagnone.
42062
42063         * lib/readtokens.c: Remove explicit declarations of xmalloc and
42064         xrealloc, Instead, include "xalloc.h".
42065
42066         * lib/mountlist.c: Include unlocked-io.h after all system headers.
42067         Remove explicit declarations of xmalloc, xrealloc,
42068         and xstrdup.  Instead, include "xalloc.h".
42069
42070         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
42071         unlocked-io.h.
42072         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
42073         Likewise.
42074         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
42075
42076         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
42077         Reported by Padraig Brady.
42078
42079         * lib/mkstemp.c: #undef mkstemp.
42080         Include config.h.
42081         (rpl_mkstemp): Rename from mkstemp.
42082         Protoize.
42083
42084 2001-11-16  Jim Meyering  <meyering@lucent.com>
42085
42086         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
42087         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
42088         determine the amount of total physical memory, use pstat_getstatic.
42089         HPUX-11 doesn't define _SC_PHYS_PAGES.
42090         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
42091         If sysconf couldn't be used to determine the amount of available
42092         physical memory, use both pstat_getstatic and pstat_getdynamic.
42093         Based on a patch from Bob Proulx.
42094
42095 2001-11-10  Jim Meyering  <meyering@lucent.com>
42096
42097         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
42098         (jm_PREREQ): Use it.
42099
42100 2001-11-09  Jim Meyering  <meyering@lucent.com>
42101
42102         * m4/jm-macros.m4: Require autoconf-2.52f.
42103         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
42104         Use these AC_-prefixed names, not the AM_-prefixed ones.
42105
42106         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
42107
42108 2001-11-05  Jim Meyering  <meyering@lucent.com>
42109
42110         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
42111
42112 2001-11-04  Jim Meyering  <meyering@lucent.com>
42113
42114         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
42115         $DEFS.
42116
42117 2001-11-03  Jim Meyering  <meyering@lucent.com>
42118
42119         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
42120         of AC_DEFUN.
42121
42122         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
42123         know the name of the variable in the macro definition.
42124
42125 2001-11-03  Jim Meyering  <meyering@lucent.com>
42126
42127         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
42128         in argmatch_to_argument call.
42129
42130         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
42131         argument.
42132
42133         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
42134         e.g., a fault due to an attempt to free a NULL pointer.
42135
42136 2001-11-01  Jim Meyering  <meyering@lucent.com>
42137
42138         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
42139         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
42140
42141 2001-11-01  Jim Meyering  <meyering@lucent.com>
42142
42143         * lib/dirfd.c, lib/dirfd.h: New files.
42144         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
42145
42146         * lib/hash.c (hash_print) [TESTING]: Clean up.
42147
42148 2001-10-22  Paul Eggert  <eggert@twinsun.com>
42149
42150         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
42151         to avoid a warning if -Wall.
42152
42153 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
42154
42155         * README: New file
42156         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
42157         (per RMS's instructions, this is now the canonical source)
42158         * lgpl/, gpl/: New directories.
42159
42160 2001-10-21  Paul Eggert  <eggert@twinsun.com>
42161
42162         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
42163
42164 2001-10-21  Jim Meyering  <meyering@lucent.com>
42165
42166         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
42167         this code would end up calling gettext even in packages built
42168         with --disable-nls.
42169         * lib/getopt.c (_): Likewise.
42170         * lib/regex.c (_): Likewise.
42171
42172 2001-10-20  Paul Eggert  <eggert@twinsun.com>
42173
42174         * m4/error.m4 (jm_PREREQ_ERROR):
42175         Do not invoke AC_CHECK_FUNCS with strerror_r, as
42176         AC_FUNC_STRERROR_R does that.
42177         Check for strerror declaration.
42178
42179         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
42180         are supposed to have them these days.
42181         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
42182         Merge changes from latest Autoconf CVS.
42183         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
42184         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
42185         POSIX decided to standardize on the int flavor of strerror_r.
42186
42187 2001-10-20  Paul Eggert  <eggert@twinsun.com>
42188
42189         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
42190         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
42191         Use strerror_r that is only a macro, even if it is not a function.
42192         (strerror): Check for HAVE_DECL_STRERROR before declaring.
42193         (private_strerror): Use prototypes, not old-style function definition.
42194         (print_errno_message): New function.
42195         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
42196         char*-flavored one.
42197         (error_tail, error, error_at_line): Use it.
42198
42199 2001-10-11  Jim Meyering  <meyering@lucent.com>
42200
42201         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
42202         and quote_n (1, ... to avoid clobbering a buffer.
42203
42204 2001-10-05  Jim Meyering  <meyering@lucent.com>
42205
42206         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
42207         hash-pjw.h.
42208         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
42209         * lib/hash-pjw.h: New file.
42210
42211 2001-09-30  Jim Meyering  <meyering@lucent.com>
42212
42213         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
42214         `struct fsstat' has the `f_fstypename' member.
42215         Use that to define FS_TYPE, which is now used to make
42216         the getfsstat link test tighter.
42217
42218 2001-09-30  Jim Meyering  <meyering@lucent.com>
42219
42220         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
42221         Include <sys/ucred.h>, for Apple Darwin.
42222         Include sys/mount.h and sys/fs_types.h only if available.
42223         (FS_TYPE): Define.
42224         (read_filesystem_list): Use FS_TYPE.
42225
42226 2001-09-29  Paul Eggert  <eggert@twinsun.com>
42227
42228         * lib/exclude.c (excluded_filename): 0 -> false, since it's
42229         a boolean context.
42230
42231 2001-09-29  Jim Meyering  <meyering@lucent.com>
42232
42233         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
42234         [one-argument getmntent function]): Include stdio.h before mntent.h.
42235         SunOS 4.1.x needs it for the declaration of `FILE'.
42236         Patch by Volker Borchert.
42237
42238         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
42239         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
42240         sys/fs_types.h, and make the link-test for getfsstat guard #include
42241         directives with appropriate #if HAVE_*_H tests so that we can
42242         detect getfsstat on Apple Darwin1.3.7 systems.
42243         Reported by Nelson Beebe.
42244         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
42245
42246 2001-09-28  Paul Eggert  <eggert@twinsun.com>
42247
42248         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
42249         #defines strtoimax.  Also treat the other strto* functions
42250         like strtoimax.
42251
42252         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
42253         Check for strtoul and strtoumax,
42254         as those declarations are made even in the signed case.
42255         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
42256         Likewise, for strtol and strtoimax.
42257
42258 2001-09-28  Paul Eggert  <eggert@twinsun.com>
42259
42260         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
42261         #defines strtoimax.  Also treat the other strto* functions
42262         like strtoimax.
42263
42264         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
42265         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
42266         (strtoimax, strtoumax): Do not declare if already defined as a macro.
42267
42268 2001-09-26  Jim Meyering  <meyering@lucent.com>
42269
42270         Most macros in unlocked-io.h had the wrong number of arguments.
42271         * lib/gen-uio: New script.
42272         (USE_UNLOCKED_IO): Define to 1 if not already defined.
42273         * lib/unlocked-io.hin: Remove file.
42274         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
42275         rather than trying to embed it here.
42276         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
42277         Reported by Padraig Brady.
42278
42279 2001-09-25  Volker Borchert  <bt@teknon.de>
42280
42281         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
42282         `result'.
42283
42284 2001-09-24  Jim Meyering  <meyering@lucent.com>
42285
42286         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
42287
42288 2001-09-23  Jim Meyering  <meyering@lucent.com>
42289
42290         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
42291         instead of the mere test for existence of mntent.h.  The latter
42292         would get a false-positive on AIX 3.4 systems.
42293         In the outer getmntent if-block, don't die if neither of the getmntent
42294         tests succeeds.  Instead, just fall through and continue with the
42295         remaining tests.
42296
42297 2001-09-23  Jim Meyering  <meyering@lucent.com>
42298
42299         * lib/mountlist.c: Remove useless parentheses in #if directives.
42300         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
42301         the deprecated MOUNTED symbol is no longer defined in mntent.h.
42302
42303 2001-09-22  Jim Meyering  <meyering@lucent.com>
42304
42305         * m4/gettext.m4: New file.  From gettext.
42306         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
42307         * m4/progtest.m4: Likewise
42308         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
42309         * m4/glibc21.m4: Likewise.
42310
42311         * m4/libintl.m4: Remove.  No longer used.
42312
42313 2001-09-22  Jim Meyering  <meyering@lucent.com>
42314
42315         * lib/localcharset.c: Update from latest gettext.
42316         * lib/config.charset: Likewise.
42317
42318 2001-09-20  Jim Meyering  <meyering@lucent.com>
42319
42320         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
42321         strtoimax.
42322         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
42323         strtoumax.
42324
42325 2001-09-20  Jim Meyering  <meyering@lucent.com>
42326
42327         * lib/xstrtol.c (strtoimax): Guard declaration with
42328         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
42329         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
42330         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
42331         (strtoumax): Likewise, for completeness (it wasn't necessary).
42332
42333 2001-09-17  Paul Eggert  <eggert@twinsun.com>
42334
42335         * lib/strtoimax.c (HAVE_LONG_LONG):
42336         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
42337         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
42338         to work around bug in IBM C compiler.
42339
42340 2001-09-17  Jim Meyering  <meyering@lucent.com>
42341
42342         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
42343         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
42344         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
42345         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
42346         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
42347         whenever the right hand side need not be expanded by the shell.
42348
42349 2001-09-16  Paul Eggert  <eggert@twinsun.com>
42350
42351         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
42352         library.  It's not correct, as some older glibcs are buggy.
42353         fnmatch wasn't fixed until glibc 2.2.
42354
42355         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
42356         special shell magic here.
42357
42358 2001-09-16  Jim Meyering  <meyering@lucent.com>
42359
42360         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
42361         * m4/jm-macros.m4: Require it.
42362
42363 2001-09-16  Jim Meyering  <meyering@lucent.com>
42364
42365         * lib/mkdir.c: New file.
42366
42367 2001-09-15  Jim Meyering  <meyering@lucent.com>
42368
42369         * m4/jm-macros.m4: Check for help2man.
42370
42371 2001-09-11  Jim Meyering  <meyering@lucent.com>
42372
42373         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
42374         The body, by Paul Eggert, was moved here from configure.in.
42375         * m4/jm-macros.m4: Require UTILS_HOST_OS.
42376
42377 2001-09-04  Paul Eggert  <eggert@twinsun.com>
42378
42379         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
42380         (jm_PREREQ): Use it.
42381
42382 2001-09-04  Paul Eggert  <eggert@twinsun.com>
42383
42384         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
42385         Use ssize_t, not int, to store result of readlink.
42386         Check for ssize_t overflow as well as size_t overflow,
42387         as POSIX says the result of readlink is implementation-defined
42388         when ssize_t overflows.
42389         Remove unnecessary cast to char*.
42390         Use free+malloc instead of realloc, as the storage doesn't need
42391         to be preserved and it's clearer and can be more efficient that way.
42392         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
42393         * lib/xreadlink.h (xreadlink): Update prototype.
42394
42395 2001-09-04  Paul Eggert  <eggert@twinsun.com>
42396
42397         * lib/xgetcwd.c: Revert some of the previous change; intead,
42398         fix the HAVE_GETCWD_NULL code to behave more like the
42399         !HAVE_GETCWD_NULL code used to.
42400
42401         Include "xalloc.h".
42402         (xgetcwd): Do not return NULL when memory is exhausted; instead,
42403         invoke xalloc_die.
42404
42405 2001-09-03  Paul Eggert  <eggert@twinsun.com>
42406
42407         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
42408         sys/param.h, as pathmax.h includes them.
42409
42410 2001-09-03  Paul Eggert  <eggert@twinsun.com>
42411
42412         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
42413         (jm_PREREQ_XGETCWD): New macro.
42414
42415         * m4/getcwd.m4: New file.
42416
42417 2001-09-03  Paul Eggert  <eggert@twinsun.com>
42418
42419         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
42420         like the HAVE_GETCWD_NULL code.
42421         Include pathmax.h if not HAVE_GETCWD.
42422         Do not include xalloc.h.
42423         (INITIAL_BUFFER_SIZE): New symbol.
42424         Do not use xmalloc / xrealloc, since the caller is responsible for
42425         handling errors.  Preserve errno around `free' during failure.
42426         Do not overrun buffer when using getwd.
42427
42428 2001-09-03  Paul Eggert  <eggert@twinsun.com>
42429
42430         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
42431         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
42432         getcwd (NULL, 0).
42433
42434 2001-09-03  Paul Eggert  <eggert@twinsun.com>
42435
42436         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
42437         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
42438         spotted by Jim Meyering.
42439
42440 2001-09-03  Jim Meyering  <meyering@lucent.com>
42441
42442         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
42443         failure.
42444
42445 2001-09-02  Jim Meyering  <meyering@lucent.com>
42446
42447         * lib/error.c: Update from GNU libc.
42448
42449 2001-09-01  Jim Meyering  <meyering@lucent.com>
42450
42451         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
42452         Used by df.
42453
42454 2001-09-01  Jim Meyering  <meyering@lucent.com>
42455
42456         * lib/xreadlink.c: New file.
42457         * lib/xreadlink.h: New file.
42458         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
42459         xreadlink.h.
42460
42461         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
42462         doesn't conflict with sparc Solaris 7's definition in
42463         /usr/include/sys/int_types.h.
42464
42465         * lib/exclude.c: Use `""', not `<>' to #include non-system header
42466         files.
42467         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
42468         and strncasecmp as r-values.  Unixware didn't have declarations.
42469
42470 2001-08-31  Paul Eggert  <eggert@twinsun.com>
42471
42472         * lib/xstrtol.h: Add copyright notice.
42473         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
42474         LONGINT_INVALID_SUFFIX_CHAR.
42475
42476 2001-08-31  Paul Eggert  <eggert@twinsun.com>
42477
42478         * lib/xstrtol.c (strtoimax): New decl.
42479
42480 2001-08-31  Paul Eggert  <eggert@twinsun.com>
42481
42482         * lib/xgetcwd.c: Don't include pathmax.h.
42483         Include stdlib.h and unistd.h if available.
42484         Include xalloc.h.
42485         (xmalloc, xstrdup, free): Remove decls.
42486         (xgetcwd): Don't assume sizes fit in unsigned.
42487         Check for overflow when computing sizes.
42488         Simplify reallocation code.
42489
42490 2001-08-31  Paul Eggert  <eggert@twinsun.com>
42491
42492         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
42493         a directory's st_size can have an arbitrary value, so the old
42494         usage could waste an arbitrary amount of memory.  All uses
42495         changed.
42496         * lib/savedir.h: Update prototype.
42497
42498 2001-08-31  Paul Eggert  <eggert@twinsun.com>
42499
42500         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
42501
42502         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
42503         old strtoimax.c.
42504
42505         Also, make the following further changes to make this file's
42506         configuration more similar to that of strtol.c:
42507         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
42508         (strtoumax, uintmax_t, strtoull, strtol): Remove.
42509         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
42510         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
42511         changed to signed values.
42512
42513         And make the following changes as well:
42514         Fix copyright notice, as 1999 was missing.
42515         (verify): New macro.
42516         (strtoimax): Check sizes at compile-time, not run-time.
42517         Prefer strtol to strtoll if both work.
42518         (main): Remove; it was not that useful and was a pain to maintain.
42519
42520         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
42521
42522 2001-08-31  Jim Meyering  <meyering@lucent.com>
42523
42524         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
42525         Use an initial, malloc'd, buffer of length 128 rather than
42526         a statically allocated one of length 1024.
42527
42528 2001-08-30  Paul Eggert  <eggert@twinsun.com>
42529
42530         Simplify code, partly by assuming autoconf 2.52 semantics.
42531
42532         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
42533
42534         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
42535         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
42536         All uses removed.
42537         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
42538         Move AC_REQUIRE to next-to-top level, to avoid confusion.
42539         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
42540         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
42541         jm_AC_HEADER_INTTYPES_H.
42542         * m4/jm-macros.m4 (jm_MACROS): Likewise.
42543
42544         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
42545
42546         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
42547         Quote first arg of AC_DEFUN.
42548         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
42549         since they are needed to parse the include file even if we need
42550         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
42551         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
42552         but with opposite signedness.
42553
42554 2001-08-30  Paul Eggert  <eggert@twinsun.com>
42555
42556         Merge 'exclude' changes from tar 1.13.22.
42557         This fixes one or two unlikely storage allocation overflow bugs,
42558         but doesn't change user-visible behavior otherwise.
42559
42560 2001-08-30  Paul Eggert  <eggert@twinsun.com>
42561
42562         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
42563         (jm_PREREQ_EXCLUDE): New macro.
42564
42565 2001-08-30  Paul Eggert  <eggert@twinsun.com>
42566
42567         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
42568         tm to be declared.
42569
42570 2001-08-30  Paul Eggert  <eggert@twinsun.com>
42571
42572         * lib/hash.c: Remove '2001' from copyright notice.
42573
42574 2001-08-30  Paul Eggert  <eggert@twinsun.com>
42575
42576         * lib/full-write.h: New file.
42577         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
42578         * lib/full-write.c: Correct credits, as cccp.c no longer
42579         exists and anyway it was so heavily changed from the old cccp
42580         code as to be unrecognizable.  Include full-write.h.
42581         (full_write) Return size_t, with short writes meaning failure.
42582         All callers changed.  This fixes a bug with large buffers
42583         on 64-bit hosts.
42584         * lib/utime.c: Include full-write.h.
42585
42586 2001-08-30  Paul Eggert  <eggert@twinsun.com>
42587
42588         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
42589         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
42590         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
42591         Include if available.
42592         (<xalloc.h>): Include
42593         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
42594         (verify): New macro.  Use it to verify that EXCLUDE macros do not
42595         collide with FNM macros.
42596         (struct patopts): New struct.
42597         (struct exclude): Use it, as exclude patterns now come with options.
42598         (new_exclude): Support above changes.
42599         (new_exclude, add_exclude_file):
42600         Initial size must now be a power of two to simplify overflow checking.
42601         (free_exclude, fnmatch_no_wildcards): New function.
42602         (excluded_filename): No longer requires options arg, as the options
42603         are determined by add_exclude.  Now returns bool, not int.
42604         (excluded_filename, add_exclude):
42605         Add support for the fancy new exclusion options.
42606         (add_exclude, add_exclude_file): Now takes int options arg.
42607         Check for arithmetic overflow when computing sizes.
42608         (add_exclude_file): xrealloc might modify errno, so don't
42609         realloc until after errno might be used.
42610
42611         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
42612         New macros.
42613         (free_exclude): New decl.
42614         (add_exclude, add_exclude_file): Now takes int options arg.
42615         (excluded_filename): No longer requires options arg, as the options
42616         are determined by add_exclude.  Now returns bool, not int.
42617
42618 2001-08-30  Paul Eggert  <eggert@twinsun.com>
42619
42620         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
42621
42622 2001-08-27  Jim Meyering  <meyering@lucent.com>
42623
42624         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
42625
42626         * lib/version-etc.c (N_): Remove definition.
42627         Revert most of last change.
42628         Instead, simply don't mark the `Copyright...' string for translation.
42629         Based on advice from Paul Eggert.
42630
42631         * lib/strtoxmax.c: Tweak comment.
42632
42633 2001-08-26  Jim Meyering  <meyering@lucent.com>
42634
42635         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
42636
42637         * m4/xstrtoimax.m4: New file.
42638         * m4/xstrtoumax.m4: Add comments explaining why we
42639         AC_REPLACE_FUNCS(strtol).
42640
42641 2001-08-26  Jim Meyering  <meyering@lucent.com>
42642
42643         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
42644         of copyright with `%s' so translators don't get an untranslated
42645         message in 2002.
42646         (COPYRIGHT_YEAR): Define.
42647         (version_etc): Use fprintf rather than fputs.
42648         Suggestion from Ulrich Drepper.
42649
42650         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
42651
42652         * lib/strtoll.c: New file, from GNU libc.
42653         * lib/xstrtoimax.c: New file.
42654
42655         * lib/xstrtol.h: Add xstrtoimax.
42656         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
42657         * lib/strtoimax.c: New file.  Likewise, but first define
42658         STRTOUXMAX_SIGNED.
42659
42660         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
42661         ...
42662         * lib/strtoxmax.c: ... then renamed to this.
42663
42664 2001-08-18  Paul Eggert  <eggert@twinsun.com>
42665
42666         * m4/inttypes.m4: Add AC_PREREQ(2.13).
42667         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
42668         (jm_AC_TYPE_INTMAX_T): New macro.
42669         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
42670
42671         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
42672
42673         * m4/longlong.m4: Renamed from ulonglong.m4.
42674         * m4/inttypes.m4: Renamed from inttypes_h.m4.
42675         * m4/uintmax_t.m4: Removed.
42676
42677 2001-08-13  Paul Eggert  <eggert@twinsun.com>
42678
42679         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
42680         Port to Solaris 8, where 'sed' requires a space after the 'r'
42681         command, and where sh dislikes "$/".  Clean up the spacing a bit.
42682         Redirect output to $tmp just once.
42683
42684 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
42685
42686         * lib/addext.c (<errno.h>): Include.
42687         (errno): Declare if not defined.
42688         (addext): Work correctly when pathconf returns -1 and leaves
42689         errno alone because there is no limit.  Also, work even if
42690         pathconf returns a value greater than SIZE_MAX.
42691
42692 2001-08-12  Jim Meyering  <meyering@lucent.com>
42693
42694         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
42695         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
42696         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
42697         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
42698         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
42699         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
42700         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
42701         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
42702         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
42703         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
42704         utime.m4, utimes.m4, xstrtoumax.m4:
42705         Quote the first argument in each use of AC_DEFUN.
42706
42707 2001-08-12  Jim Meyering  <meyering@lucent.com>
42708
42709         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
42710         Simply `return getcwd (NULL, 0);'.
42711         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
42712         Use 1300 as initial value for length, not PATH_MAX.
42713
42714         * lib/pathmax.h: Clean up cpp syntax.
42715
42716 2001-08-12  Jim Meyering  <meyering@lucent.com>
42717
42718         * lib/gettimeofday.c: New file.
42719         * lib/gtod.h: New file.
42720         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
42721
42722 2001-08-05  Jim Meyering  <meyering@lucent.com>
42723
42724         * m4/jm-macros.m4: Require autoconf-2.52.
42725
42726 2001-08-04  Jim Meyering  <meyering@lucent.com>
42727
42728         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
42729         stmt, to get in sync with glibc.
42730
42731 2001-08-03  Paul Eggert  <eggert@twinsun.com>
42732
42733         The following changes are from gettext 0.10.39 as maintained by
42734         Bruno Haible.
42735
42736         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
42737         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
42738         with inverted sense.  All uses changed.
42739
42740         * lib/mbswidth.c: Don't include <limits.h>.
42741         Include <stdlib.h> and <string.h> unconditionally.
42742         (iswcntrl, mbsinit, ISCNTRL): New macros.
42743         (mbsnwidth): Use K&R style function declarations.
42744         Don't bother checking for MB_LEN_MAX == 1, since the compiler
42745         can optimize it when MB_CUR_MAX == 1.
42746         The width of control characters is zero, not 1.
42747
42748 2001-08-03  Paul Eggert  <eggert@twinsun.com>
42749
42750         The following changes are from gettext 0.10.39 as maintained by
42751         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
42752
42753         * m4/codeset.m4: Upgrade to serial AM1.
42754         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
42755         all uses changed.  Quote first arg of AC_DEFUN.
42756         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
42757
42758         * m4/iconv.m4: Upgrade to serial AM2.
42759         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
42760         Add --with-libconv-prefix.
42761         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
42762         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
42763         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
42764         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
42765         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
42766
42767         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
42768         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
42769         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
42770         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
42771         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
42772         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
42773         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
42774         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
42775         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
42776
42777         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
42778         string.h any more.
42779
42780         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
42781         not the default value.
42782
42783         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
42784         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
42785         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
42786         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
42787         Also check for iswcntrl, used for wcwidth fallback.
42788         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
42789         to Autoconf 2.13.
42790
42791 2001-08-03  Jim Meyering  <meyering@lucent.com>
42792
42793         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
42794         as it was in the original.  Reported by Paul Eggert.
42795
42796 2001-07-16  Jim Meyering  <meyering@lucent.com>
42797
42798         * m4/gettimeofday.m4: New file.
42799         Prompted by a report from Bernhard Baehr.
42800
42801 2001-07-15  Jim Meyering  <meyering@lucent.com>
42802
42803         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
42804         stuff. Now it's in ../Makefile.cfg.
42805
42806 2001-07-15  Jim Meyering  <meyering@lucent.com>
42807
42808         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
42809         (BUILT_SOURCES): Add unlocked-io.h.
42810         (io_functions): Define.
42811         (unlocked-io.h): New rule.
42812         (DISTCLEANFILES): Add unlocked-io.h.
42813         (all-local): Depend on unlocked-io.h, to ensure it is created.
42814
42815         * lib/unlocked-io.hin: New file
42816
42817         * lib/regex.c: Update from glibc.
42818
42819 2001-07-05  Jim Meyering  <meyering@lucent.com>
42820
42821         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
42822         recommendation.
42823         (libfetish_a_SOURCES): Put all .h files here instead.
42824         Remove a thus-exposed (better checks in automake) duplicate and
42825         two unnecessary .h files.
42826
42827 2001-07-04  Jim Meyering  <meyering@lucent.com>
42828
42829         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
42830         that generates jm-glibc-io.m4 so that it doesn't trigger any make
42831         distcheck failure.
42832
42833 2001-07-02  Jim Meyering  <meyering@lucent.com>
42834
42835         The following changes were prompted by suggestions from Bruno Haible.
42836
42837         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
42838         is now generated.
42839         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
42840         definition of EXTRA_DIST.
42841         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
42842         ensure that the generated file is created/updated whenever the list
42843         of $(unlocked_functions) is changed.
42844         (jm-glibc-io.m4): New rule.
42845         (unlocked-io.h): New rule -- currently unused.
42846
42847 2001-06-24  Jim Meyering  <meyering@lucent.com>
42848
42849         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
42850         unmatched right bracket, rather than kludging it with an extra,
42851         falsely-matching quote in a comment.  Patch by Akim Demaille.
42852
42853 2001-06-11  Jim Meyering  <meyering@lucent.com>
42854
42855         * lib/regex.c: Update from GNU libc.
42856
42857 2001-05-27  Jim Meyering  <meyering@lucent.com>
42858
42859         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
42860         Check for ut_type in struct utmp.
42861
42862 2001-05-27  Jim Meyering  <meyering@lucent.com>
42863
42864         * lib/readutmp.h (UT_TYPE): Define.
42865
42866 2001-05-24  Jim Meyering  <meyering@lucent.com>
42867
42868         * lib/argmatch.c: Include "quote.h".
42869         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
42870         quote function.  Reported by Göran Uddeborg.
42871
42872 2001-05-22  Jim Meyering  <meyering@lucent.com>
42873
42874         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
42875         now that we use the package-supplied version unconditionally.
42876         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
42877
42878 2001-05-21  Jim Meyering  <meyering@lucent.com>
42879
42880         * m4/regex.m4: Change a couple backticks to single quotes to avoid
42881         shell syntax errors.
42882
42883 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
42884
42885         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
42886
42887 2001-05-20  Paul Eggert  <eggert@twinsun.com>
42888
42889         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
42890         Don't bother to check library strftime, since
42891         we'll be using our own my_strftime function anyway.
42892         Define my_strftime instead of strftime.
42893
42894 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
42895
42896         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
42897         which is not yet declared.
42898
42899 2001-05-15  Jim Meyering  <meyering@lucent.com>
42900
42901         * m4/regex.m4: Use proper quoting so brackets appear in the test
42902         program.
42903         Reported by, and with help from, Bruno Haible.
42904
42905 2001-05-13  Jim Meyering  <meyering@lucent.com>
42906
42907         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
42908         undefined.
42909
42910 2001-05-11  Paul Eggert  <eggert@twinsun.com>
42911
42912         dirname code cleanup.  base_name now behaves more compatibly
42913         with POSIX basename when given file names that have trailing
42914         slashes, and similarly for dir_name.  Add new primitives
42915         base_len and dir_len.  Put the directory-name-related decls
42916         into dirname.h.
42917
42918         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
42919         * lib/backupfile.c (base_name): Likewise.
42920         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
42921         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
42922         * lib/makepath.c (strip_trailing_slashes): Likewise.
42923         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
42924         ISSLASH): Likewise.
42925         * lib/rename.c (strip_trailing_slashes): Likewise.
42926         * lib/same.c (base_name): Likewise.
42927         * lib/stripslash.c (ISSLASH): Likewise.
42928
42929         * lib/addext.c: Include <dirname.h> after size_t is defined.
42930         * lib/backupfile.c: Likewise.
42931
42932         * lib/addext.c (addext): Use base_len to trim redundant
42933         trailing slashes instead of doing it ourselves.
42934         But do not trim the last slash if it is not redundant.
42935
42936         * lib/backupfile.c (find_backup_file_name,
42937         max_backup_version): Use base_len instead of rolling it ourselves.
42938         Handle the case of "" and (on DOS) "C:" correctly.
42939
42940         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
42941         needed. Include <string.h>, <dirname.h>.
42942         (base_name): Allow file names ending in slashes, other than names
42943         that are all slashes.  In this case, return the basename followed
42944         by the slashes.  This is more general, and can be used in places
42945         where the original base_name purposely had an assertion failure.
42946         (base_len): New function.
42947
42948         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
42949         Do not include <assert.h>; no longer needed.
42950         Include xalloc.h.
42951         (memrchr): Remove decl.
42952         (dir_name_r): Remove.
42953         (dir_len): Renamed from dirlen.  All callers changed.
42954         Rewrite in terms of base_name, for simplicity and consistency.
42955         (dir_name): Never return NULL.  All callers changed.
42956         Do not include <stdlib.h> in test program; no longer needed.
42957         return 0; is fine for test program.
42958
42959         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
42960         New macros.
42961         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
42962
42963         * lib/path-concat.c (path_concat): Use base_len to compute
42964         base length, not strlen; this means we cannot rely on memcpy
42965         to null-terminate.
42966
42967         * lib/same.c (STREQ): Remove.
42968         (same_name): Handle the case where the basename ends in trailing '/'.
42969
42970         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
42971         a slash was stripped.  Do not strip the last slash after a
42972         file system prefix.
42973
42974 2001-05-11  Paul Eggert  <eggert@twinsun.com>
42975
42976         * lib/Makefile.am (libfetish_a_SOURCES):
42977         Add strftime.c, since we now compile it on all hosts.
42978
42979         * lib/strftime.c (my_strftime):
42980         Define to nstrftime if emacs, but only if my_strftime is not defined.
42981         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
42982         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
42983         Add one more extra argument: a nanoseconds value.
42984         All uses changed.
42985         (ns): New macro.
42986         (my_strftime function): Add %N format.
42987         (emacs_strftimeu): Renamed from emacs_strftime,
42988         with extra ut argument.
42989
42990 2001-05-09  Paul Eggert  <eggert@twinsun.com>
42991
42992         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
42993
42994 2001-04-21  Jim Meyering  <meyering@lucent.com>
42995
42996         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
42997         doesn't interfere.
42998
42999 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
43000
43001         * m4/ftruncate.m4: Check for chsize.
43002         Link with ftruncate.o unconditionally if ftruncate is missing.
43003         This was required when cross-compiling to i586-mingw32msvc.
43004
43005 2001-04-08  Jim Meyering  <meyering@lucent.com>
43006
43007         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
43008         recomputed; that's necessary when the offset spans a DST transition.
43009         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
43010
43011 2001-04-02  Jim Meyering  <meyering@lucent.com>
43012
43013         * lib/regex.h, regex.c: Update from GNU libc.
43014
43015 2001-03-24  Jim Meyering  <meyering@lucent.com>
43016
43017         * m4/jm-macros.m4: Require autoconf-2.49d.
43018
43019 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
43020
43021         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
43022
43023 2001-03-19  Paul Eggert  <eggert@twinsun.com>
43024
43025         * lib/version-etc.c (version_etc_copyright): Update to 2001.
43026
43027 2001-03-17  Jim Meyering  <meyering@lucent.com>
43028
43029         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
43030         now that the version in autoconf is equivalent.
43031         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
43032
43033         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
43034         Suggestion from Akim Demaille.
43035
43036         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
43037         (jm_PREREQ_TEMPNAME): New function.
43038
43039 2001-03-16  Paul Eggert  <eggert@twinsun.com>
43040
43041         * lib/tempname.c (uint64_t): Define to uintmax_t if
43042         not defined, and if UINT64_MAX is not defined.
43043         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
43044         Reported by John David Anglin.
43045
43046 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
43047
43048         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
43049         resolve alias if codeset is empty.
43050         * lib/config.charset (BeOS): Use wildcard syntax.
43051
43052 2001-03-13  Jim Meyering  <meyering@lucent.com>
43053
43054         * lib/path-concat.c (path_concat)
43055         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
43056         concatenating e.g., `C:' and `foo'.
43057         From Bruno Haible.
43058
43059 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
43060
43061         * lib/localcharset.c (locale_charset): Don't use
43062         setlocale(LC_CTYPE,NULL). Don't return NULL.
43063         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
43064
43065 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
43066
43067         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
43068         support for DOS/DJGPP.
43069
43070 2001-03-01  Paul Eggert  <eggert@twinsun.com>
43071
43072         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
43073         lacks mkstemp.  Compile our own tempname.c if we compile our own
43074         mkstemp.c, as mkstemp relies on tempname.
43075
43076 2001-03-01  Jim Meyering  <meyering@lucent.com>
43077
43078         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
43079         AH_VERBATIM really does output its argument verbatim.
43080
43081 2001-02-28  Paul Eggert  <eggert@twinsun.com>
43082
43083         * lib/Makefile.am (libfetish_a_SOURCES):
43084         Add dup-safer.c, fopen-safer.c.
43085         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
43086
43087         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
43088         * lib/unistd-safer.h: New files.
43089
43090 2001-02-25  Paul Eggert  <eggert@twinsun.com>
43091
43092         The mkstemp replacement is taken from glibc 2.2.2, with some
43093         portability fixes for use outside glibc, as follows:
43094
43095         * lib/tempname.c (struct_stat64): New macro.
43096         (direxists, __gen_tempname): Use it.
43097         This avoids a portability problem with Solaris 8.
43098
43099         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
43100         (<stddef.h>, <stdint.h>, <string.h>):
43101         Include only if STDC_HEADERS || _LIBC.
43102         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
43103         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
43104         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
43105         (__set_errno): Define this macro if <errno.h> doesn't.
43106         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
43107         Define these macros if <stdio.h> doesn't.
43108         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
43109         Define these macros if <sys/stat.h>
43110         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
43111         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
43112         __xstat64): Define if not _LIBC.
43113         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
43114         (__gen_tempname): Invoke gettimeofday only if
43115         HAVE_GETTIMEOFDAY || _LIBC;
43116         otherwise, fall back on plain "time".
43117         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
43118
43119         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
43120
43121         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
43122
43123 2001-02-18  Paul Eggert  <eggert@twinsun.com>
43124
43125         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
43126
43127 2001-02-17  Paul Eggert  <eggert@twinsun.com>
43128
43129         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
43130         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
43131         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
43132         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
43133
43134 2001-02-17  Paul Eggert  <eggert@twinsun.com>
43135
43136         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
43137         Remove workaround macros for hosts that have mbrtowc but not
43138         mbstate_t, as we now insist on proper declarations for both
43139         before using mbrtowc.
43140
43141 2001-02-17  Jim Meyering  <meyering@lucent.com>
43142
43143         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
43144         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
43145         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
43146         UnixWare 7.1.1.
43147
43148         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
43149         rather than AC_CACHE_VAL.
43150
43151 2001-02-17  Jim Meyering  <meyering@lucent.com>
43152
43153         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
43154         around included file name.
43155
43156         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
43157
43158         * lib/strftime.c: Update from GNU libc (the only changes were to
43159         comments).
43160
43161 2001-02-17  Jim Meyering  <meyering@lucent.com>
43162
43163         * lib/regex.c: Update from libc.
43164
43165 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
43166
43167         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
43168         clash.
43169
43170 2001-02-16  Paul Eggert  <eggert@twinsun.com>
43171
43172         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
43173         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
43174         Reported by Mark Hounschell via Paul Eggert.
43175
43176 2001-02-07  Jim Meyering  <meyering@lucent.com>
43177
43178         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
43179
43180 2001-02-05  Jim Meyering  <meyering@lucent.com>
43181
43182         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
43183         it includes the patch required for `large file' support with at least
43184         HP-UX's 10.20 /bin/cc.
43185
43186 2001-02-03  Jim Meyering  <meyering@lucent.com>
43187
43188         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
43189         AS_IF, now that it works once again (mysteriously).
43190         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
43191
43192 2001-01-30  Jim Meyering  <meyering@lucent.com>
43193
43194         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
43195         * m4/chown.m4: Rename conftestchown to conftest.chown.
43196         * m4/rename.m4: s/conftestdir/conftest.d1/ and
43197         s/conftestdir2/conftest.d2/.
43198         * m4/utimes.m4: s/conftestdata/conftest.data/
43199         Inspired by Pavel Roskin's change in autoconf.
43200
43201 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
43202
43203         * lib/config.charset: Update for FreeBSD 4.2.
43204
43205 2001-01-27  Jim Meyering  <meyering@lucent.com>
43206
43207         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
43208         a use of AS_IF.
43209         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
43210
43211 2001-01-26  Jim Meyering  <meyering@lucent.com>
43212
43213         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
43214         quotearg.c includes it.
43215
43216 2001-01-26  Jim Meyering  <meyering@lucent.com>
43217
43218         * lib/quotearg.c: Include stddef.h.
43219         * lib/quote.c: Include stddef.h.
43220         Reported by Axel Kittenberger.
43221
43222         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
43223         line in double quotes so that it evokes a better diagnostic.
43224         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
43225         Reported by Axel Kittenberger.
43226
43227 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
43228
43229         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
43230         as if it was a `charset'.
43231
43232 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
43233
43234         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
43235         has const.
43236
43237 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
43238
43239         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
43240         to avoid a warning.  Add back 'const' to inptr.
43241
43242 2001-01-20  Jim Meyering  <meyering@lucent.com>
43243
43244         Be sure that headers are checked before used in code compiled
43245         for the type checks.
43246         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
43247         In place of that, invoke jm_CHECK_ALL_TYPES.
43248         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
43249         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
43250         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
43251         The check for ssize_t was mistakenly run before the test for unistd.h.
43252
43253         The configure-time check for stdbool.h was missing.
43254         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
43255         (jm_PREREQ_HASH): New function.
43256
43257 2001-01-17  Jim Meyering  <meyering@lucent.com>
43258
43259         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
43260         for autoconf-2.49c.
43261         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
43262
43263 2001-01-16  Jim Meyering  <meyering@lucent.com>
43264
43265         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
43266         From Bruno Haible.
43267
43268 2001-01-14  Jim Meyering  <meyering@lucent.com>
43269
43270         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
43271         foo and bar.  Create conftestdir/ in the script, not in the C code.
43272         Remove directories in the script, not in the C code.
43273         Remove conftestdir{,2} before trying to create the directory.
43274         Make the entire configure script fail if the mkdir fails.
43275
43276 2001-01-14  Jim Meyering  <meyering@lucent.com>
43277
43278         * lib/rename.c: New file.  From Volker Borchert.
43279         Include stdlib.h, string.h or strings.h, and xalloc.h.
43280         Use strip_trailing_slashes rather than open-coding it.
43281
43282 2001-01-03  Paul Eggert  <eggert@twinsun.com>
43283
43284         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
43285
43286 2001-01-03  Jim Meyering  <meyering@lucent.com>
43287
43288         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
43289         of local `inptr' to avoid warning with some system declarations of
43290         iconv.
43291
43292 2001-01-02  Volker Borchert  <bt@teknon.de>
43293
43294         * m4/rename.m4: New file.
43295         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
43296
43297 2001-01-01  Jim Meyering  <meyering@lucent.com>
43298
43299         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
43300         even on systems with utmpx.h.  It's necessary for the declaration of
43301         utmp's ut_user member.  Reported by Andreas Jaeger.
43302
43303         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
43304         available. They are required for the declarations of getgrgid and
43305         getpwuid resp.
43306         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
43307         Reported by Andreas Jaeger.
43308
43309 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
43310
43311         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
43312         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
43313         so `make install' also works in VPATH builds.
43314
43315 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
43316
43317         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
43318         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
43319         can be used in subdirectories.
43320
43321 2000-12-29  Paul Eggert  <eggert@twinsun.com>
43322
43323         * lib/modechange.c: Do not assume that mode_t uses the
43324         traditional octal encoding.  E.g. "chmod 1 FOO" should set
43325         the other-execute bit of FOO even if S_IXOTH != 1.
43326
43327         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
43328         WOTH, XOTH, ALLM): New macros.
43329         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
43330          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
43331         Use them.
43332         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
43333         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
43334         (mode_compile):
43335         No need to use uintmax_t; unsigned long is long enough.
43336         Don't bother to get suffix since we don't use it.
43337
43338 2000-12-26  Jim Meyering  <meyering@lucent.com>
43339
43340         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
43341         better with autoheader.
43342
43343 2000-12-24  Jim Meyering  <meyering@lucent.com>
43344
43345         * lib/hash.c (is_prime): Return explicit boolean values.
43346         (hash_get_first): Return NULL to appease Irix5.6's 89.
43347         Reported by Nelson Beebe.
43348
43349 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
43350
43351         * lib/localcharset.c (locale_charset): Add support for Win32.
43352
43353 2000-12-18  Paul Eggert  <eggert@twinsun.com>
43354
43355         * lib/physmem.h, lib/physmem.c: New files.
43356
43357         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
43358         (noinst_HEADERS): Add physmem.h.
43359
43360         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
43361         't' for compatibility with Solaris 8 sort.
43362
43363 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
43364
43365         * lib/config.charset: Add support for BeOS.
43366
43367 2000-12-17  Jim Meyering  <meyering@lucent.com>
43368
43369         * m4/dos.m4 (jm_AC_DOS): New file and macro.
43370         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
43371
43372 2000-12-16  Jim Meyering  <meyering@lucent.com>
43373
43374         This bug had a serious impact on chown: `chown N:M FILE' (for integer
43375         N and M) would have treated it like `chown N:N FILE'.
43376
43377         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
43378
43379 2000-12-16  Jim Meyering  <meyering@lucent.com>
43380
43381         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
43382         SHELLS_FILE to a file name that's useful on djgpp systems.
43383         Include stdlib.h.
43384         (ADDITIONAL_DEFAULT_SHELLS): Define.
43385         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
43386         Based mostly on a patch from Prashant TR.
43387
43388 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
43389
43390         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
43391         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
43392         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
43393
43394 2000-12-08  Andreas Schwab  <schwab@suse.de>
43395
43396         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
43397         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
43398
43399 2000-12-07  Jim Meyering  <meyering@lucent.com>
43400
43401         * lib/stripslash.c (ISSLASH): Define.
43402         (strip_trailing_slashes): Use ISSLASH rather than comparing against
43403         `/'.
43404         From Prashant TR.
43405
43406         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
43407         (dir_name_r): Declare this function as static.
43408         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
43409         manifest itself on a name containing a mix of slashes and
43410         backslashes.
43411         Make this function work with names starting with a DOS-style
43412         drive letter and colon prefix.
43413         (dir_name): Append `.' if necessary.
43414         Based mostly on patches from Prashant TR and Eli Zaretskii.
43415
43416         * lib/dirname.h (dir_name_r): Remove prototype.
43417
43418 2000-12-06  Paul Eggert  <eggert@twinsun.com>
43419
43420         * m4/off_t-format.m4: Remove this file.
43421         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
43422
43423 2000-12-06  Jim Meyering  <meyering@lucent.com>
43424
43425         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
43426         replacement strtoull, we may well need the replacement strtoul, too.
43427         Check for declarations of strtoul and strtoull.
43428         Check for strtol.  Mainly as a cue to cause automake to include
43429         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
43430         Check for limits.h -- strtol.c needs it.
43431
43432 2000-12-05  Jim Meyering  <meyering@lucent.com>
43433
43434         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
43435
43436 2000-12-04  Jim Meyering  <meyering@lucent.com>
43437
43438         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
43439         Also include memory.h, stdlib.h, unistd.h if appropriate.
43440         Reported by Andreas Jaeger (conflicting declaration of malloc).
43441
43442 2000-12-02  Jim Meyering  <meyering@lucent.com>
43443
43444         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
43445         * m4/jm-macros.m4 (jm_MACROS): require it.
43446
43447 2000-12-02  Jim Meyering  <meyering@lucent.com>
43448
43449         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
43450
43451 2000-12-01  Paul Eggert  <eggert@twinsun.com>
43452
43453         * lib/memrchr.c: Include <config.h> before any system include file.
43454
43455 2000-11-30  Jim Meyering  <meyering@lucent.com>
43456
43457         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
43458
43459 2000-11-30  Jim Meyering  <meyering@lucent.com>
43460
43461         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
43462
43463 2000-11-29  Paul Eggert  <eggert@twinsun.com>
43464
43465         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
43466
43467 2000-11-26  Jim Meyering  <meyering@lucent.com>
43468
43469         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
43470
43471 2000-11-22  Paul Eggert  <eggert@twinsun.com>
43472
43473         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
43474         size of (size_t) -1; it's not portable.
43475
43476 2000-11-17  Jim Meyering  <meyering@lucent.com>
43477
43478         * lib/strstr.c: Update from GNU libc.
43479
43480 2000-11-17  Akim Demaille  <akim@epita.fr>
43481
43482         * lib/obstack.h: Formatting changes.
43483         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
43484         prevent type checking.
43485         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
43486         cast the value to (void *): assigning a `foo *' to a `void *'
43487         variable is valid.
43488         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
43489
43490 2000-11-16  Jim Meyering  <meyering@lucent.com>
43491
43492         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
43493
43494 2000-11-11  Jim Meyering  <meyering@lucent.com>
43495
43496         * lib/error.c: Add a couple #includes, merging from GNU libc version.
43497
43498 2000-11-10  Jim Meyering  <meyering@lucent.com>
43499
43500         * lib/obstack.h: Update from GNU libc.
43501         * lib/obstack.c: Likewise.
43502
43503 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
43504
43505         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
43506
43507 2000-11-06  Paul Eggert  <eggert@twinsun.com>
43508
43509         * lib/getusershell.c (setusershell): Use rewind rather than
43510         fseek/fseeko, to avoid configuration hassles with fseeko.
43511         Don't bother opening SHELLS_FILE if shellstream is NULL;
43512         it's not necessary.
43513
43514 2000-11-05  Jim Meyering  <meyering@lucent.com>
43515
43516         * lib/makepath.h (make_dir): Declare.
43517         * lib/makepath.c (make_dir): Remove `static' attribute.
43518         Tweak a comment.
43519
43520 2000-11-04  Jim Meyering  <meyering@lucent.com>
43521
43522         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
43523
43524 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
43525
43526         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
43527         last one in a bucket, advance to the next bucket.
43528
43529 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
43530
43531         * lib/fnmatch.c: Do not comment out all the code if we are using
43532         the GNU C library, because in some cases we are replacing buggy
43533         code in the GNU C library itself.
43534
43535 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
43536
43537         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
43538         (regex_compile): Catch bogus \(\1\).
43539
43540 2000-10-30  Paul Eggert  <eggert@twinsun.com>
43541
43542         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
43543         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
43544         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
43545
43546 2000-10-30  Paul Eggert  <eggert@twinsun.com>
43547
43548         * lib/error.h, getline.h, modechange.h:
43549         Remove "2000" from Copyright line, as the file hasn't been
43550         changed this year other than in the copyright notice.
43551
43552         * lib/xalloc.h: Add "2000" to Copyright line, as this file
43553         was changed this year.
43554
43555 2000-10-29  Jim Meyering  <meyering@lucent.com>
43556
43557         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
43558         renaming.
43559         * m4/ls-mntd-fs.m4: Likewise
43560
43561 2000-10-29  Jim Meyering  <meyering@lucent.com>
43562
43563         * lib/xstat.in: Fix grammar in comment.
43564
43565 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
43566
43567         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
43568         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
43569         doesn't define __restrict_arr.
43570
43571 2000-10-28  Jim Meyering  <meyering@lucent.com>
43572
43573         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
43574         (jm_PREREQ_MEMCHR): New function.
43575
43576 2000-10-28  Jim Meyering  <meyering@lucent.com>
43577
43578         * lib/memchr.c: Update from libc.
43579         Adjust for portability:
43580         [HAVE_STDLIB_H]: Include stdlib.h.
43581         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
43582         Undef __memchr, too.
43583         [!weak_alias]: Define __memchr to memchr.
43584
43585         * lib/regex.c: Update from libc.
43586         * lib/regex.h: Likewise.
43587         * lib/getopt1.c: Likewise.
43588         * lib/memcmp.c: Likewise.
43589
43590         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
43591         Avoid using fseek, when possible -- it's broken by design.
43592         Patch by Ulrich Drepper.
43593
43594 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
43595
43596         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
43597         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
43598         Giving in to popular pressure to shut up the compiler with casts.
43599
43600 2000-10-26  Jim Meyering  <meyering@lucent.com>
43601
43602         * lib/strftime.c: Update from libc.
43603
43604 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
43605
43606         * regex.c: More `unsigned char' -> `re_char' changes.
43607         Also change several `int' into `re_wchar_t'.
43608         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
43609         (PUSH_FAILURE_POINTER): Don't cast any more.
43610         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
43611         We want GCC to complain, since this piece of code makes
43612         re_match non-reentrant, which *should* be fixed.
43613         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
43614         (EXTEND_BUFFER): Use RETALLOC.
43615         (SET_LIST_BIT): Don't cast.
43616         (re_wchar_t): New type.
43617         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
43618         that those two functions will always properly return.
43619         (IMMEDIATE_QUIT_CHECK): Cast to void.
43620         (analyse_first): Use recursion rather than an explicit stack.
43621         (re_compile_fastmap): Can't fail anymore.
43622         (re_search_2): Don't check re_compile_fastmap for failure.
43623         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
43624         Now also sets the new value (passed in a new argument).
43625         (re_match_2_internal): Use it.
43626         Also, use a new var `reg' of type size_t when looping through regs
43627         rather than reuse the inappropriate `mcnt'.
43628
43629 2000-10-25  Jim Meyering  <meyering@lucent.com>
43630
43631         * lib/obstack.c: Update from libc.
43632
43633 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
43634
43635         * regex.c (regex_compile): Change the way of handling a range from
43636         a char less than 256 to a char not less than 256.
43637
43638 2000-10-24  Andrew Innes  <andrewi@gnu.org>
43639
43640         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
43641         NT-Emacs only.
43642         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
43643         so that re_search functions only quit when callers expect them to.
43644
43645 2000-10-23  Jim Meyering  <meyering@lucent.com>
43646
43647         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
43648         wrong.  That set_locale call must not have any side effects.
43649         From Paul Eggert.
43650
43651 2000-10-22  Jim Meyering  <meyering@lucent.com>
43652
43653         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
43654         [CYCLIC]: Remove now-unused definition.
43655
43656         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
43657         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
43658         Suggestion from Ulrich Drepper.
43659
43660 2000-10-21  Jim Meyering  <meyering@lucent.com>
43661
43662         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
43663         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
43664         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
43665
43666 2000-10-21  Jim Meyering  <meyering@lucent.com>
43667
43668         * lib/dirname.c (memrchr): Declare if necessary.
43669         (dir_name): Remove the restriction that there be no
43670         trailing slashes.  Now, this code skips past them, effectively
43671         ignoring them.
43672         [TEST_DIRNAME] (main): New unit tests.
43673
43674         * lib/memrchr.c: New file from GNU libc.
43675         Undef __memrchr, too.
43676         [!weak_alias]: Define __memrchr to memrchr.
43677         Guard weak_alias use with `#ifdef weak_alias'.
43678
43679 2000-10-21  Jim Meyering  <meyering@lucent.com>
43680
43681         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
43682         (dir_name): Use dir_name_r.
43683         * lib/dirname.h (dir_name_r): Declare it.
43684
43685 2000-10-17  Jim Meyering  <meyering@lucent.com>
43686
43687         * lib/quote.h (PARAMS): Define and use.
43688         Reported by Akim Demaille.
43689
43690         * lib/getopt.c: Update from libc.
43691
43692 2000-10-16  Jim Meyering  <meyering@lucent.com>
43693
43694         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
43695         setlocale.
43696         From Jan Fedak.
43697
43698 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
43699
43700         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
43701
43702 2000-09-25  Jim Meyering  <meyering@lucent.com>
43703
43704         * lib/md5.h (rol): Define (from GnuPG).
43705
43706         * lib/sha.c: Give credit (GnuPG) where due.
43707         (M): Use rol rather than open-coding it.
43708         Add a FIXME comment.
43709
43710 2000-09-21  Jim Meyering  <meyering@lucent.com>
43711
43712         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
43713         Reported by Michael Stone.
43714
43715 2000-09-20  Jim Meyering  <meyering@lucent.com>
43716
43717         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
43718         (noinst_HEADERS): Add sha.h.
43719         Based on code from Scott G. Miller and from GnuPG.
43720
43721 2000-09-18  Jim Meyering  <meyering@lucent.com>
43722
43723         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
43724         LIBS. Otherwise, everyone ends up linking with -lelf for some
43725         configurations.
43726         Reported by Mike Stone.
43727
43728 2000-09-15  Jim Meyering  <meyering@lucent.com>
43729
43730         * lib/regex.c: Update from libc.
43731
43732 2000-09-10  Jim Meyering  <meyering@lucent.com>
43733
43734         * lib/getopt.c (_getopt_internal): Update from glibc.
43735
43736 2000-09-09  Jim Meyering  <meyering@lucent.com>
43737
43738         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
43739         think it should be used as a general replacement for isascii.
43740         * lib/fnmatch.c: Likewise.
43741         * lib/mbswidth.c: Likewise
43742         * lib/regex.c: Likewise.
43743
43744         Don't use atoi.
43745         * lib/userspec.c: Include sys/param.h and limits.h.
43746         Include xstrtol.h.
43747         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
43748         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
43749         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
43750         UID, GID.  Check range.
43751
43752 2000-09-06  Jim Meyering  <meyering@lucent.com>
43753
43754         * lib/getopt.c (_getopt_internal): Update from glibc.
43755
43756 2000-08-30  Jim Meyering  <meyering@lucent.com>
43757
43758         * lib/strftime.c: Merge in changes from GNU libc.
43759
43760 2000-08-26  Jim Meyering  <meyering@lucent.com>
43761
43762         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
43763         * m4/fpending.m4: New file.
43764
43765 2000-08-26  Jim Meyering  <meyering@lucent.com>
43766
43767         * lib/closeout.c: Include "__fpending.h".
43768         (close_stdout_status): Return right away if there's nothing to flush.
43769
43770         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
43771         * lib/__fpending.c: New file.
43772         * lib/__fpending.h: New file.
43773
43774 2000-08-20  Jim Meyering  <meyering@lucent.com>
43775
43776         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
43777         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
43778         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
43779
43780 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
43781
43782         Improve fileutils installation on systems where running
43783         programs (like install) can't be unlinked.
43784         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
43785         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
43786
43787 2000-08-07  Paul Eggert  <eggert@twinsun.com>
43788
43789         Standardize on "memory exhausted" instead of "Memory exhausted"
43790         or "virtual memory exhausted".
43791         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
43792         "virtual memory exhausted".
43793         * lib/same.c (same_name): Invoke xalloc_die instead of printing
43794         our own message.
43795         * lib/userspec.c (parse_user_spec): Likewise.
43796         * lib/bumpalloc.h: comment fix
43797         * lib/same.c, userspec.c: Include xalloc.h.
43798
43799         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
43800         not char *const and pointing to a constant array.
43801         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
43802         (xrealloc): Comment fix.
43803
43804         * lib/userspec.c (parse_user_spec):
43805         Don't translate a message until just before returning,
43806         to avoid unnecessary translation.
43807
43808 2000-08-07  Jim Meyering  <meyering@lucent.com>
43809
43810         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
43811         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
43812         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
43813         getgroups.c, gethostname.c, getopt.h, group-member.c,
43814         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
43815         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
43816         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
43817         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
43818         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
43819         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
43820         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
43821         yesno.c: Back out Copyright date changes for each file with no change
43822         this year.  This eases coordination with other programs using the same
43823         source code modules.  From Paul Eggert.
43824
43825 2000-08-06  Paul Eggert  <eggert@twinsun.com>
43826
43827         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
43828         not char, for compatibility with glibc 2.1.3 strftime.c.
43829
43830 2000-08-03  Greg McGary  <greg@mcgary.org>
43831
43832         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
43833         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
43834         (EXTEND_BUFFER): Use them.
43835
43836 2000-08-01  Jim Meyering  <meyering@lucent.com>
43837
43838         * lib/dirname.c (ISSLASH): Define.
43839         (BACKSLASH_IS_PATH_SEPARATOR): Define.
43840         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
43841         both `\' and `/' may be use as path separators.
43842         Based on a patch from Prashant TR.
43843
43844 2000-07-31  Paul Eggert  <eggert@twinsun.com>
43845
43846         * lib/quotearg.c (quotearg_n_options): Don't make the initial
43847         slot vector a constant, since it might get modified.
43848
43849 2000-07-31  Jim Meyering  <meyering@lucent.com>
43850
43851         * lib/xmalloc.c: Use `virtual memory exhausted', not
43852         `Memory exhausted'.
43853         * lib/obstack.c (print_and_abort): Likewise.
43854
43855 2000-07-30  Paul Eggert  <eggert@twinsun.com>
43856
43857         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
43858         buffer, so that the caller can always quote one small
43859         component of a "memory exhausted" message in slot 0.
43860         From a suggestion by Jim Meyering.
43861
43862 2000-07-30  Jim Meyering  <meyering@lucent.com>
43863
43864         * lib/makepath.c (make_path): Quote the other instance, too.
43865
43866         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
43867         (STATIC_BUF_SIZE): Define.
43868         (quotearg_n_options): Use only statically allocated storage when
43869         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
43870         than STATIC_BUF_SIZE.
43871
43872 2000-07-29  Jim Meyering  <meyering@lucent.com>
43873
43874         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
43875         * lib/dirname.c (dir_name): Likewise.
43876
43877         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
43878         `/'.
43879
43880         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
43881         (dir_name): Assert that there are no trailing slashes.
43882
43883 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
43884
43885         * lib/mbswidth.h (mbswidth): Add a flags argument.
43886         (mbswidth): New declaration.
43887         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
43888         * lib/mbswidth.c (mbswidth): Add a flags argument.
43889         (mbsnwidth): New function.
43890
43891 2000-07-24  Jim Meyering  <meyering@lucent.com>
43892
43893         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
43894
43895 2000-07-23  Paul Eggert  <eggert@twinsun.com>
43896
43897         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
43898
43899 2000-07-23  Paul Eggert  <eggert@twinsun.com>
43900
43901         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
43902         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
43903         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
43904         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
43905         invoke multibyte primitives.
43906
43907 2000-07-23  Paul Eggert  <eggert@twinsun.com>
43908
43909         * lib/quotearg.c:
43910         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
43911         so that mbstate_t is always defined.
43912
43913         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
43914         be 1 in at least one GCC installation, and this configuration
43915         error is likely to be common.  Ignoring MB_LEN_MAX hurts
43916         performance on hosts that have mbrtowc but have only unibyte
43917         locales, but I assume these hosts are rare.
43918
43919 2000-07-23  Paul Eggert  <eggert@twinsun.com>
43920
43921         * lib/mbswidth.c (_XOPEN_SOURCE):
43922         Don't define; this causes problems on Solaris 7.
43923         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
43924
43925 2000-07-23  Jim Meyering  <meyering@lucent.com>
43926
43927         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
43928         too: getgrgid, getpwuid, getuid.
43929
43930 2000-07-23  Jim Meyering  <meyering@lucent.com>
43931
43932         * lib/basename.c (base_name): Add an assertion.
43933
43934 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
43935
43936         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
43937         shadow its mbsinit function.
43938
43939 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
43940
43941         * lib/mbswidth.h: New file.
43942         * lib/mbswidth.c: New file.
43943         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
43944         (noinst_HEADERS): Add mbswidth.h.
43945
43946 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
43947
43948         * lib/config.charset: Add support for FreeBSD. Improve support for
43949         HP-UX and IRIX 6.
43950
43951 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
43952
43953         * m4/mbswidth.m4: New file.
43954         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
43955
43956 2000-07-15  Jim Meyering  <meyering@lucent.com>
43957
43958         * lib/makepath.c: Include quote.h.
43959         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
43960         corresponding argument in a `quote (...)' call.
43961         Give better diagnostics.
43962
43963         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
43964         (noinst_HEADERS): Add quote.h.
43965
43966         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
43967         from tar's src/misc.c.
43968         * lib/quote.h: New file.  Prototypes for same.
43969
43970 2000-07-14  Paul Eggert  <eggert@twinsun.com>
43971
43972         From a suggestion by Bruno Haible.
43973         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
43974         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
43975         to decide whether to define the BeOS workaround macro;
43976         this adjusts to the change to AC_MBSTATE_T.
43977
43978 2000-07-14  Jim Meyering  <meyering@lucent.com>
43979
43980         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
43981         jm_AC_TYPE_UINTMAX_T.
43982
43983 2000-07-13  Paul Eggert  <eggert@twinsun.com>
43984
43985         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
43986
43987         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
43988         quotearg_buffer_restyled): Add support for
43989         clocale_quoting_style.  Undo previous change to
43990         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
43991         and "{RIGHT QUOTATION MARK}" msgids.
43992
43993 2000-07-10  Paul Eggert  <eggert@twinsun.com>
43994
43995         From a suggestion by Bruno Haible.
43996         * m4/mbstate_t.m4 (AC_MBSTATE_T):
43997         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
43998         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
43999         and mbstate_t, to a single-part test that simply defines mbstate_t.
44000         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
44001         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
44002
44003 2000-07-10  Jim Meyering  <meyering@lucent.com>
44004
44005         * m4/strerror_r.m4: Mirror the correction made in autoconf.
44006
44007         * m4/gnu-source.m4: Output to confdefs.h directly.
44008         Suggestion from Akim Demaille.
44009
44010 2000-07-09  Paul Eggert  <eggert@twinsun.com>
44011
44012         The old behavior of quoting `like this' doesn't look good with
44013         newer, ISO-style fonts.  See:
44014         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
44015
44016         Instead, quote "like this" by default.  Let the translator
44017         tailor the locale-specific quoting behavior by providing
44018         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
44019
44020         * lib/quotearg.c (N_): New macro.
44021         (gettext_default): New function.
44022         (quotearg_buffer_restyled): Use
44023         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
44024         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
44025
44026 2000-07-09  Jim Meyering  <meyering@lucent.com>
44027
44028         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
44029         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
44030
44031         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
44032         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
44033
44034 2000-07-09  Jim Meyering  <meyering@lucent.com>
44035
44036         * lib/Most files: Update copyright dates to include 2000.
44037
44038 2000-07-08  Jim Meyering  <meyering@lucent.com>
44039
44040         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
44041         if not defined.
44042         (xgethostname): Remove now-unnecessary #ifdef.
44043         Move declaration of `err' into loop where it's used.
44044
44045 2000-07-05  Paul Eggert  <eggert@twinsun.com>
44046         and Bruno Haible  <haible@clisp.cons.org>
44047
44048         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
44049         only if the test for an object-type mbstate_t fails.  This
44050         prevents us from mistakenly reporting that mbstate_t is a
44051         system object type after we "#define mbstate_t int" to work
44052         around its lack.
44053
44054 2000-07-05  Paul Eggert  <eggert@twinsun.com>
44055         and Bruno Haible  <haible@clisp.cons.org>
44056
44057         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
44058
44059 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
44060
44061         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
44062         to strerror_r.
44063         Include <ctype.h> for use of isalpha.
44064
44065 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
44066
44067         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
44068         by allocating a larger buffer. Test the gethostname return value for
44069         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
44070         returns an error and ENAMETOOLONG isn't defined.
44071
44072 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
44073
44074         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
44075         dimension.
44076
44077 2000-07-04  Jim Meyering  <meyering@lucent.com>
44078
44079         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
44080         of the deprecated AC_CHECKING.
44081
44082 2000-07-04  Jim Meyering  <meyering@lucent.com>
44083
44084         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
44085         Reported by Bruno Haible.
44086
44087 2000-07-04  Jim Meyering  <meyering@lucent.com>
44088
44089         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
44090         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
44091         lacks mbrtowc.
44092
44093 2000-07-03  Paul Eggert  <eggert@twinsun.com>
44094
44095         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
44096         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
44097
44098 2000-07-03  Paul Eggert  <eggert@twinsun.com>
44099         and Bruno Haible  <haible@clisp.cons.org>
44100
44101         * lib/quotearg.c (mbrtowc):
44102         Assign to *pwc, and return 1 only if result is nonzero.
44103         (iswprint): Use ISPRINT when substituting our own mbrtowc.
44104
44105 2000-07-03  Jim Meyering  <meyering@lucent.com>
44106
44107         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
44108
44109 2000-07-03  Jim Meyering  <meyering@lucent.com>
44110
44111         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
44112         This is necessary to get a definition of e.g., UTMP_FILE on
44113         HP-UX 10.20.
44114         From Bob Proulx.
44115
44116 2000-07-02  Jim Meyering  <meyering@lucent.com>
44117
44118         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
44119
44120         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
44121         AC_LIBOBJ(function_name).
44122         * m4/chown.m4: Likewise.
44123         * m4/fnmatch.m4: Likewise.
44124         * m4/ftruncate.m4: Likewise.
44125         * m4/getgroups.m4: Likewise.
44126         * m4/getline.m4: Likewise.
44127         * m4/group-member.m4: Likewise.
44128         * m4/jm-macros.m4: Likewise.
44129         * m4/lstat.m4: Likewise.
44130         * m4/malloc.m4: Likewise.
44131         * m4/memcmp.m4: Likewise.
44132         * m4/nanosleep.m4: Likewise.
44133         * m4/putenv.m4: Likewise.
44134         * m4/realloc.m4: Likewise.
44135         * m4/regex.m4: Likewise.
44136         * m4/stat.m4: Likewise.
44137         * m4/strftime.m4: Likewise.
44138
44139 2000-07-02  Jim Meyering  <meyering@lucent.com>
44140
44141         * lib/quotearg.c (mbstate_t): Don't define here.
44142
44143 2000-07-02  Jim Meyering  <meyering@lucent.com>
44144
44145         * lib/nanosleep.c (SIGCONT): Define if not already defined.
44146
44147 2000-07-01  Jim Meyering  <meyering@lucent.com>
44148
44149         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
44150
44151 2000-07-01  Jim Meyering  <meyering@lucent.com>
44152
44153         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
44154         problem.
44155
44156 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
44157
44158         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
44159         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
44160
44161 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
44162
44163         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
44164         per change in ../m4/ls-mntd-fs.m4.
44165         (read_filesystem_list): Ignore symbolic links.
44166
44167 2000-06-29  Jim Meyering  <meyering@lucent.com>
44168
44169         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
44170         for declaration of strcmp.
44171
44172         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
44173
44174         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
44175         Avoid warning by casting result to `char *' to remove `const'.
44176
44177 2000-06-28  Jim Meyering  <meyering@lucent.com>
44178
44179         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
44180         included by quotearg.c, for which we perform this test.  From
44181         Bruno Haible.
44182
44183 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
44184
44185         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
44186         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
44187         <utmpx.h> exists, put readutmp.o into LIBOBJS.
44188
44189 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
44190
44191         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
44192
44193 2000-06-26  Paul Eggert  <eggert@twinsun.com>
44194
44195         savedir now sets errno on failure and invokes xmalloc to get memory.
44196         Fix a couple of other minor bugs while we're at it.
44197
44198         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
44199         (NAMLEN): Remove macro.
44200         (malloc, realloc): Remove decls.
44201         (stpcpy): Likewise.
44202         ("xalloc.h"): Include.
44203         (NAME_SIZE_DEFAULT): New macro.
44204         (savedir): Use xmalloc / xrealloc to allocate memory.
44205         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
44206         Skip "" directory entries.
44207         Use strlen to calculate directory entry length, since the old method
44208         is rarely used these days and isn't worth supporting.
44209         Don't use a pointer after freeing it.
44210         Check for integer overflow when calculating allocation size.
44211         Use memcpy to copy entries, instead of stpcpy.
44212         Set errno properly when returning NULL.
44213         Check for readdir error.
44214
44215 2000-06-26  Jim Meyering  <meyering@lucent.com>
44216
44217         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
44218
44219 2000-06-25  Jim Meyering  <meyering@lucent.com>
44220
44221         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
44222         Linux header bug when _XOPEN_SOURCE is defined to 500.
44223
44224 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
44225
44226         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
44227         deficiency.
44228
44229 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
44230
44231         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
44232         Include xalloc.h.
44233         Don't include <stdlib.h>.  Don't declare malloc, realloc.
44234
44235 2000-06-24  Jim Meyering  <meyering@lucent.com>
44236
44237         * m4/strerror_r.m4: Revive this file -- to try out an experimental
44238         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
44239         for which strerror does return char*, but which lacks a conveniently
44240         accessible declaration of the function.  If the compile-test says
44241         strerror_r doesn't work, then resort to a `run'-test that works on
44242         BeOS and segfaults on DEC Unix.
44243
44244 2000-06-24  Jim Meyering  <meyering@lucent.com>
44245
44246         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
44247
44248 2000-06-23  Paul Eggert  <eggert@twinsun.com>
44249
44250         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
44251         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
44252
44253 2000-06-23  Paul Eggert  <eggert@twinsun.com>
44254
44255         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
44256         (mbrtowc, mbstate_t): Define substitutes if
44257         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
44258         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
44259         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
44260
44261 2000-06-23  Jim Meyering  <meyering@lucent.com>
44262
44263         * m4/afs.m4: Add missing AC_MSG_RESULT.
44264         Reported by Bruno Haible.
44265
44266         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
44267         Suggestion from Bruno Haible.
44268
44269 2000-06-23  Jim Meyering  <meyering@lucent.com>
44270
44271         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
44272
44273 2000-06-21  Jim Meyering  <meyering@lucent.com>
44274
44275         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
44276
44277 2000-06-21  Jim Meyering  <meyering@lucent.com>
44278
44279         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
44280         (noinst_HEADERS): Add getstr.h.
44281
44282         * lib/getline.c (getstr): Move into a separate file.
44283         * lib/getstr.c (getstr): New file, extracted from getline.c, with
44284         the following changes: new parameter, delim2; both delim[12]
44285         parameters have type `int', not `char'.  The latter would lose
44286         with 8-bit delimiters.
44287         * lib/getstr.h: New file.
44288
44289 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
44290
44291         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
44292         than 1024, return a memory chunk of least possible size, instead
44293         of size PATH_MAX + 2. In the loop, increment the size proportionally.
44294         Use free/xmalloc instead of xrealloc to avoid copying for very long
44295         paths.
44296
44297 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
44298
44299         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
44300         the empty string.
44301
44302 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
44303
44304         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
44305         address, not strdup.  Include <stdlib.h> and don't declare free().
44306
44307 2000-06-19  Jim Meyering  <meyering@lucent.com>
44308
44309         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
44310
44311 2000-06-18  Jim Meyering  <meyering@lucent.com>
44312
44313         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
44314
44315         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
44316         `checking whether...' message to be consistent with that of the
44317         lstat test.
44318
44319 2000-06-18  Jim Meyering  <meyering@lucent.com>
44320
44321         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
44322         Besides, these days every porting target provides a mkdir function.
44323
44324         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
44325         needed. (this snippet comes from src/system.h).
44326
44327 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
44328
44329         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
44330
44331 2000-06-15  Paul Eggert  <eggert@twinsun.com>
44332
44333         * lib/human.c (adjust_value): New function.
44334         (human_readable_inexact): Apply rounding style even when
44335         printing approximate values.
44336
44337 2000-06-14  Paul Eggert  <eggert@twinsun.com>
44338
44339         * lib/human.c (human_readable_inexact): Allow an input block
44340         size that is not a multiple of the output block size, and vice versa.
44341         Reported by Piergiorgio Sartor.
44342
44343 2000-06-14  Paul Eggert  <eggert@twinsun.com>
44344
44345         * lib/getdate.y (get_date): Apply relative times after time
44346         zone indicator, not before.  Reported by Todd A. Jacobs.
44347
44348 2000-06-13  Jim Meyering  <meyering@lucent.com>
44349
44350         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
44351
44352         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
44353
44354 2000-06-12  Paul Eggert  <eggert@twinsun.com>
44355
44356         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
44357
44358 2000-06-12  Jim Meyering  <meyering@lucent.com>
44359
44360         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
44361         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
44362         optional argument.
44363         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
44364         the optional argument, `lib'.
44365
44366 2000-06-08  Jim Meyering  <meyering@lucent.com>
44367
44368         * m4/largefile.m4: Remove file (now that it's part of autoconf).
44369
44370 2000-06-04  Paul Eggert  <eggert@twinsun.com>
44371
44372         Rewrite largefile configuration so that we don't need to run
44373         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
44374         AC_CANONICAL_HOST in configure.in -- jmm]
44375
44376         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
44377         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
44378         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
44379         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
44380         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
44381         All uses changed.
44382         Instead of inspecting the output of getconf, try to compile the
44383         test program without and with the macro definition.
44384         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
44385         for getconf.  Instead, check for the needed flags by compiling
44386         test programs.
44387
44388 2000-06-04  Paul Eggert  <eggert@twinsun.com>
44389
44390         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
44391
44392 2000-06-04  Jim Meyering  <meyering@lucent.com>
44393
44394         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
44395         SunOS 4.1.4 for which gid_t is an unsigned type.
44396
44397 2000-06-03  Jim Meyering  <meyering@lucent.com>
44398
44399         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
44400         now that autoconf requires that.
44401
44402         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
44403         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
44404         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
44405
44406 2000-06-03  Jim Meyering  <meyering@lucent.com>
44407
44408         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
44409
44410 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
44411
44412         * m4/glibc21.m4: New file.
44413         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
44414
44415 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
44416
44417         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
44418         newer, don't install charset.alias.
44419         * lib/config.charset: Change the Linux/glibc rules so they become empty
44420         on glibc-2.1 or newer.
44421
44422 2000-06-02  Jim Meyering  <meyering@lucent.com>
44423
44424         * lib/mountlist.c: Back out last change.  Instead, do this...
44425         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
44426         me_dummy member using the same `ignore'-testing code.
44427         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
44428         fs_type strings.
44429         From Mark D. Roth.
44430
44431 2000-05-29  Jim Meyering  <meyering@lucent.com>
44432
44433         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
44434         mounts with the `ignore' attribute.  Based on a patch from
44435         Mark D. Roth.
44436
44437 2000-05-28  Jim Meyering  <meyering@lucent.com>
44438
44439         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
44440         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
44441         * m4/stat.m4: Likewise.
44442         * m4/lstat.m4: Likewise.
44443         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
44444
44445         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
44446         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
44447
44448 2000-05-26  Jim Meyering  <meyering@lucent.com>
44449
44450         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
44451
44452 2000-05-24  Jim Meyering  <meyering@lucent.com>
44453
44454         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
44455         autoconf requires that.
44456         * m4/lib-check.m4: Likewise.
44457         * m4/jm-macros.m4: Likewise.
44458         * m4/strftime.m4: Likewise.
44459
44460         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
44461         AC_CHECK_DECLS, now that autoconf requires that.
44462
44463 2000-05-22  Jim Meyering  <meyering@lucent.com>
44464
44465         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
44466         * m4/lstat.m4: Likewise.
44467
44468 2000-05-22  Jim Meyering  <meyering@lucent.com>
44469
44470         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
44471
44472 2000-05-20  Jim Meyering  <meyering@lucent.com>
44473
44474         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
44475         (jm_PREREQ): Use it.
44476
44477 2000-05-18  Jim Meyering  <meyering@lucent.com>
44478
44479         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
44480         back, too, since it may have been modified by allocate_entry.
44481         (hash_delete): Rewrite to use neither the assignment operator
44482         nor the comma operator in an if-expression.
44483
44484 2000-05-15  Paul Eggert  <eggert@twinsun.com>
44485
44486         * lib/closeout.c:
44487         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
44488         Remove; no longer needed.
44489         "quotearg.h": Add include.
44490         (file_name): Do not bother to explicitly initialize to NULL; it's less
44491         efficient on some hosts.
44492         (close_stdout_status): Remove test as to whether stdout was already
44493         closed; it breaks for the case "echo x | sort >&-".
44494         Quote file name colons.
44495         Do not assume that _("write error") lacks format strings.
44496
44497 2000-05-15  Jim Meyering  <meyering@lucent.com>
44498
44499         * lib/version-etc.c (version_etc_copyright): Update the copyright
44500         string used in all --version output.
44501
44502 2000-05-14  Jim Meyering  <meyering@lucent.com>
44503
44504         * lib/closeout.c (close_stdout_set_file_name): New function.
44505         (close_stdout_status): Use new file-scoped global.
44506         Return right away if fstat says the stdout file descriptor is invalid.
44507         * lib/closeout.h (close_stdout_set_file_name): Declare.
44508
44509 2000-05-10  Jim Meyering  <meyering@lucent.com>
44510
44511         * lib/closeout.c [default_exit_status]: New file-scoped variable.
44512         (close_stdout_set_status): New function.
44513         * lib/closeout.h (close_stdout_set_status): Declare.
44514
44515 2000-05-09  Jim Meyering  <meyering@lucent.com>
44516
44517         * m4/gettext.m4: Rename this...
44518         * m4/libintl.m4: ...to this.
44519
44520 2000-05-08  Jim Meyering  <meyering@lucent.com>
44521
44522         * lib/long-options.c: Don't include closeout.h.
44523         (parse_long_options): Don't call close_stdout for --version.
44524
44525 2000-05-06  Paul Eggert  <eggert@twinsun.com>
44526
44527         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
44528         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
44529         2.1.3 bug.  This avoids a clash when files like regex.c define
44530         _GNU_SOURCE.
44531
44532 2000-05-06  Jim Meyering  <meyering@lucent.com>
44533
44534         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
44535         (AC_REPLACE_FUNCS): Add strnlen.
44536
44537         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
44538         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
44539
44540         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
44541         AC_SEARCH_LIBS call for nanosleep.
44542         (LIB_NANOSLEEP): Set and AC_SUBST.
44543
44544 2000-05-06  Jim Meyering  <meyering@lucent.com>
44545
44546         * lib/strnlen.c: Undefine __strnlen and strnlen.
44547         [!weak_alias]: Define __strnlen to strnlen.
44548
44549         * lib/atexit.c: New file, from libiberty.
44550
44551 2000-05-06  Jim Meyering  <meyering@lucent.com>
44552
44553         * lib/closeout.c (close_stdout_status): Also check for errors on the
44554         stderr stream.
44555
44556 2000-05-05  Jim Meyering  <meyering@lucent.com>
44557
44558         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
44559         AC_SEARCH_LIBS call for clock_gettime.
44560         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
44561
44562         * m4/search-libs.m4: Update from autoconf.
44563
44564         su doesn't work on Solaris 2.6.
44565         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
44566         <shadow.h>.  Reported by Dragos Harabor.
44567
44568 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
44569
44570         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
44571         memcpy instead of xmalloc, xrealloc, path_concat.
44572         (locale_charset): Treat empty environment variables as absent.
44573         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
44574
44575 2000-05-04  Jim Meyering  <meyering@lucent.com>
44576
44577         * lib/getopt.c: Update from glibc.
44578         * lib/obstack.c: Likewise.
44579         * lib/obstack.h: Likewise.
44580         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
44581         file
44582
44583         * lib/regex.h: Likewise.
44584         * lib/strndup.c: Likewise.
44585         * lib/strnlen.c: New file, from glibc.
44586
44587 2000-05-03  Jim Meyering  <meyering@lucent.com>
44588
44589         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
44590
44591 2000-05-02  Paul Eggert  <eggert@twinsun.com>
44592
44593         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
44594         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
44595         compile-time test, rather than inspecting host and OS, to
44596         decide whether to define _LARGEFILE_SOURCE.
44597
44598 2000-05-01  Jim Meyering  <meyering@lucent.com>
44599
44600         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
44601
44602         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
44603         Based on a patch from Bruno Haible.
44604
44605 2000-05-01  Jim Meyering  <meyering@lucent.com>
44606
44607         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
44608
44609 2000-04-29  Jim Meyering  <meyering@lucent.com>
44610
44611         * lib/path-concat.c: Declare strdup only if it's not defined.
44612         * lib/canon-host.c: Likewise.
44613
44614 2000-04-28  Jim Meyering  <meyering@lucent.com>
44615
44616         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
44617         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
44618         is included first, then limits.h is included by locale.h by libintl.h.
44619         From John David Anglin.
44620
44621 2000-04-25  Jim Meyering  <meyering@lucent.com>
44622
44623         * lib/makepath.c (S_IRWXUGO): Define.
44624         (make_path): Always perform explicit chmod if MODE specifies any
44625         of the `special' permission bits.  Prompted by a bug report against
44626         install from Mate Wierdl and Joost van Baal.
44627
44628 2000-04-18  Jim Meyering  <meyering@lucent.com>
44629
44630         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
44631         (jm_PREREQ): Use it.
44632
44633 2000-04-18  Jim Meyering  <meyering@lucent.com>
44634
44635         * lib/README: New file.
44636
44637         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
44638         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
44639
44640 2000-04-17  Jim Meyering  <meyering@lucent.com>
44641
44642         Get it right :-)
44643         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
44644         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
44645         Suggestion from Akim Demaille.
44646
44647 2000-04-17  Jim Meyering  <meyering@lucent.com>
44648
44649         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
44650         the definition of it to rpl_strftime also defined-away the system's
44651         declaration.
44652
44653 2000-04-15  Jim Meyering  <meyering@lucent.com>
44654
44655         Use `C' to denote so-called `contiguous' files, the same way
44656         that tar does.
44657         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
44658         (ftypelet): Use S_ISCTG.
44659         From Michael Deutschmann.
44660
44661 2000-04-14  Jim Meyering  <meyering@lucent.com>
44662
44663         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
44664         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
44665         clobbered.
44666
44667 2000-04-14  Jim Meyering  <meyering@lucent.com>
44668
44669         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
44670
44671 2000-04-13  Jim Meyering  <meyering@lucent.com>
44672
44673         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
44674         AH_VERBATIM to insert required #ifndef into config.h.in.
44675         Suggestion from Akim Demaille.
44676
44677 2000-04-12  Jim Meyering  <meyering@lucent.com>
44678
44679         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
44680         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
44681         Christian Krackowizer.
44682
44683         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
44684         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
44685         (AC_SYS_LARGEFILE): Require.
44686         (AM_C_PROTOTYPES): Require.
44687
44688 2000-04-08  Jim Meyering  <meyering@lucent.com>
44689
44690         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
44691         names don't conflict.  Reported by Eli Zaretskii.
44692
44693 2000-04-07  Jim Meyering  <meyering@lucent.com>
44694
44695         * lib/putenv.c: Move inclusion of errno.h so it follows that of
44696         sys/types.h, to work around system header problems on AIX 3.2.5.
44697         From Bruno Haible.
44698
44699 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
44700
44701         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
44702         bug.  Deal with the different error behavior of Irix iconv.
44703
44704 2000-04-05  Paul Eggert  <eggert@twinsun.com>
44705
44706         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
44707         IRIX if the installer said otherwise.
44708
44709 2000-04-05  Jim Meyering  <meyering@lucent.com>
44710
44711         Portability tweaks required for ultrix4.3.
44712         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
44713         (jm_CHECK_DECLS): Add getutent to the list of functions.
44714         (_jm_DECL_HEADERS): Add utmpx.h.
44715         From John David Anglin.
44716
44717         * m4/strftime.m4: Back out the 2000-04-02 change.
44718         Instead of that change, simply undefine putenv in the test program.
44719
44720 2000-04-05  Jim Meyering  <meyering@lucent.com>
44721
44722         Portability tweaks required for ultrix4.3.
44723         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
44724         getutent.
44725         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
44726         * lib/canon-host.c: Declare strdup.
44727         * lib/path-concat.c: Likewise.
44728         From John David Anglin.
44729
44730 2000-04-04  Jim Meyering  <meyering@lucent.com>
44731
44732         Be more DOS 8.3-friendly.
44733         * lib/ref-add.sin: Renamed from ref-add.sed.in.
44734         * lib/ref-del.sin: Renamed from ref-del.sed.in.
44735         * lib/Makefile.am: Reflect renaming.
44736         Reported by Eli Zaretskii.
44737
44738         Use a temporary file name that won't clash with `charset.alias'
44739         in the DOS 8.3 name space.
44740         * lib/Makefile.am (charset_tmp): Define.
44741         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
44742         (uninstall-local): Likewise.
44743         Reported by Eli Zaretskii.
44744
44745 2000-04-03  Jim Meyering  <meyering@lucent.com>
44746
44747         * m4/gettext.m4: Fix typo in comment.
44748
44749         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
44750         textutils/configure.in).  Suggestion from Paul Eggert.
44751         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
44752
44753 2000-04-02  Paul Eggert  <eggert@twinsun.com>
44754
44755         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
44756         variable in the shell rather than using putenv, which isn't
44757         portable.  This avoids the configure-time inter-test dependency
44758         on the potentially-renamed putenv function.
44759
44760 2000-03-30  Paul Eggert  <eggert@twinsun.com>
44761
44762         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
44763         before checking struct stat.st_blksize, so that
44764         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
44765
44766 2000-03-29  Paul Eggert  <eggert@twinsun.com>
44767
44768         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
44769         since strftime.c uses HAVE_STRFTIME to decide whether to use
44770         the underlying strftime.
44771
44772 2000-03-29  Paul Eggert  <eggert@twinsun.com>
44773
44774         * lib/time/strftime.c (my_strftime): Make sure we call the system
44775         strftime, not ourselves, when invoking the underlying strftime.
44776
44777 2000-03-24  Jim Meyering  <meyering@lucent.com>
44778
44779         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
44780         (charset_alias): Define.
44781         (install-exec-local): Factor out common code.
44782         (uninstall-local): Split lines longer than 80.
44783         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
44784         (SUFFIXES): Define.
44785         (.sed.in.sed): New rule.  Don't redirect directly to $@.
44786         (CLEANFILES): Add ref-add.sed and ref-del.sed.
44787
44788 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
44789
44790         * lib/config.charset: Output a line containing "Packages using this
44791         file".
44792         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
44793         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
44794         ref-del.sed): New rules.
44795
44796 2000-03-17  Jim Meyering  <meyering@lucent.com>
44797
44798         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
44799         Otherwise, include <strings.h>
44800
44801 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
44802
44803         * lib/unicodeio.c (utf8_wctomb): New function.
44804         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
44805         format instead of in UCS-4 with platform dependent endianness.
44806
44807 2000-03-10  Jim Meyering  <meyering@lucent.com>
44808
44809         * m4/lib-check.m4: Look for getspnam in -lgen, too.
44810         From Marco Franzen.
44811
44812 2000-03-07  Paul Eggert  <eggert@twinsun.com>
44813
44814         * lib/savedir.c (savedir): Work even if directory size is
44815         negative; this can happen with some screwy NFS configurations.
44816
44817 2000-03-06  Jim Meyering  <meyering@lucent.com>
44818
44819         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
44820         if it's NULL (because we ran out of memory).  From Bruno Haible.
44821
44822 2000-03-05  Jim Meyering  <meyering@lucent.com>
44823
44824         * lib/localcharset.c ("path-concat.h"): Include.
44825         (get_charset_aliases): Use path_concat instead of ANSI string
44826         concatenation.
44827
44828         * lib/unicodeio.h (PARAMS): Define.
44829         Use it to guard prototype.
44830
44831 2000-03-04  Jim Meyering  <meyering@lucent.com>
44832
44833         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
44834         for lib/localcharset.c.
44835
44836 2000-03-04  Jim Meyering  <meyering@lucent.com>
44837
44838         * lib/Makefile.am (install-exec-local): Create $(libdir) before
44839         installing into it.
44840         (uninstall-local): Uncomment this rule so `make distcheck' works
44841         once again.
44842
44843         * lib/unicodeio.c (<errno.h>): Include it.
44844         (errno): Declare if not defined.
44845
44846         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
44847
44848         * lib/config.charset: New version, incorporating remarks from a linux
44849         i18n mailing list.  From Bruno Haible.
44850
44851 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
44852
44853         * m4/codeset.m4: New file.
44854         * m4/iconv.m4: New file.
44855         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
44856
44857 2000-03-03  Jim Meyering  <meyering@lucent.com>
44858
44859         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
44860
44861 2000-03-02  Jim Meyering  <meyering@lucent.com>
44862
44863         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
44864         the messages come out on separate lines.
44865
44866         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
44867         rather than jm_CHECK_DECLARATIONS.
44868         * m4/decl.m4: Remove now-unused file.
44869
44870         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
44871         geteuid.
44872
44873 2000-03-02  Jim Meyering  <meyering@lucent.com>
44874
44875         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
44876
44877 2000-03-01  Jim Meyering  <meyering@lucent.com>
44878
44879         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
44880         * lib/unicodeio.c: Likewise.
44881
44882 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
44883
44884         * lib/config.charset: New file.
44885         * lib/localcharset.c: New file.
44886         * lib/unicodeio.h, lib/unicodeio.c: New files.
44887         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
44888         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
44889         (noinst_HEADERS): Add unicodeio.h.
44890         (all-local, install-exec-local, charset.alias): New targets.
44891
44892 2000-02-28  Paul Eggert  <eggert@twinsun.com>
44893
44894         * lib/quotearg.c (ALERT_CHAR): New macro.
44895         (quotearg_buffer_restyled): Use it.
44896
44897 2000-02-27  Jim Meyering  <meyering@lucent.com>
44898
44899         * m4/check-decl.m4: Add getenv to the list.
44900
44901 2000-02-27  Jim Meyering  <meyering@lucent.com>
44902
44903         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
44904         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
44905
44906         * lib/backupfile.c: Guard inclusion of stdlib.h with
44907         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
44908         Declare malloc if needed.
44909
44910         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
44911         `#ifndef HAVE_DECL..'
44912         now that autoconf always defines the HAVE_DECL_ symbols.
44913         * lib/human.c: Likewise.
44914         * lib/same.c: Likewise.
44915         * lib/strtoumax.c: Likewise.
44916
44917         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
44918         declaration check was not run.
44919         * lib/hash.c: Likewise.
44920         * lib/human.c: Likewise.
44921         * lib/same.c: Likewise.
44922         * lib/strtoumax.c: Likewise.
44923
44924         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
44925         `.', then first look up the entire `.'-containing string as a login
44926         name.
44927
44928 2000-02-23  Jim Meyering  <meyering@lucent.com>
44929
44930         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
44931         in place of my hack.
44932
44933 2000-02-18  Paul Eggert  <eggert@twinsun.com>
44934
44935         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
44936         (textint): New typedef.
44937         (parser_control): Member year changed from int to textint.
44938         All uses changed.
44939         (YYSTYPE): Removed; replaced by %union with int and textint members.
44940         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
44941         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
44942         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
44943         (tSNUMBER, tUNUMBER): Now of type <textintval>.
44944         (date, number, to_year): Use width of number in digits, not its value,
44945         to determine whether it's a 2-digit year, or a 2-digit time.
44946         (yylex): Store number of digits of numeric tokens.
44947         Reported by John Kendall.
44948
44949         (parser_control): Changed from struct parser_control to typedef (for
44950         consistency).  All uses changed.
44951
44952         (tID): Removed; not used.
44953         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
44954
44955 2000-02-14  Paul Eggert  <eggert@twinsun.com>
44956
44957         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
44958         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
44959
44960 2000-02-12  Jim Meyering  <meyering@lucent.com>
44961
44962         * lib/userspec.c (ISDIGIT): Define it.
44963         (isdigit): Remove definition.
44964         (is_number): Use ISDIGIT, not isdigit.
44965         <libintl.h>: Include.
44966         (_ and N_): Define.
44967         (parse_user_spec): Mark translatable strings.
44968
44969 2000-02-10  Jim Meyering  <meyering@lucent.com>
44970
44971         With these changes, nanosleep.[ch] are finally enough like the other
44972         lib/* replacement files to compile on a few more losing systems.
44973
44974         * lib/nanosleep.h: Don't include config.h.
44975         Remove prototype from declaration of nanosleep.
44976         (PARAMS): Remove now-unneeded definition.
44977         * lib/nanosleep.c: #undef nanosleep.
44978         (rpl_nanosleep): Rename from nanosleep.
44979
44980 2000-02-10  Jim Meyering  <meyering@lucent.com>
44981
44982         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
44983         gnu_nanosleep to rpl_nanosleep.
44984
44985 2000-02-09  Jim Meyering  <meyering@lucent.com>
44986
44987         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
44988         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
44989
44990 2000-02-08  Akim Demaille  <akim@epita.fr>
44991
44992         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
44993         `[' and `]' and remove uses of `changequote'.
44994         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
44995         (AC_SYS_LARGEFILE): Likewise.
44996         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
44997         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
44998         of changequote.
44999         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
45000         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
45001         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
45002         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
45003
45004 2000-02-05  Jim Meyering  <meyering@lucent.com>
45005
45006         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
45007         Remove explicit use of AC_HEADER_TIME.  It is required by
45008         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
45009         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
45010         in autoconf whereby the expansion of the latter ended up preceding
45011         the expansion of its prerequisite, AC_HEADER_TIME.
45012         Reported by Volker Borchert.
45013
45014 2000-02-03  Jim Meyering  <meyering@lucent.com>
45015
45016         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
45017
45018 2000-02-03  Jim Meyering  <meyering@lucent.com>
45019
45020         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
45021         rather than with `#if HAVE_UTMPNAME'.
45022
45023 2000-02-02  Jim Meyering  <meyering@lucent.com>
45024
45025         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
45026         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
45027         Reported by Eli Zaretskii.
45028
45029 2000-02-01  Jim Meyering  <meyering@lucent.com>
45030
45031         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
45032
45033 2000-01-31  Jim Meyering  <meyering@lucent.com>
45034
45035         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
45036         functions.  Add the time.h and sys/time.h headers along with the
45037         AC_REQUIRE'ment of AC_HEADER_TIME.
45038
45039 2000-01-31  Jim Meyering  <meyering@lucent.com>
45040
45041         * lib/nanosleep.h (nanosleep): Guard declaration with
45042         `#if ! HAVE_DECL_NANOSLEEP'.
45043         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
45044         the declaration in that vendor's sys/timers.h.
45045         Reported by Christian Krackowizer.
45046
45047         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
45048         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
45049         (ISPRINT): Likewise.
45050         Reported by Tom Tromey.
45051
45052 2000-01-30  Jim Meyering  <meyering@lucent.com>
45053
45054         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
45055
45056         * m4/prereq.m4 (utmp_includes): Define.
45057         Check for ut_user and ut_name members in both struct utmpx
45058         and struct utmp.
45059
45060 2000-01-30  Jim Meyering  <meyering@lucent.com>
45061
45062         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
45063         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
45064         header files where only utmpx.ut_user is declared.
45065
45066         * lib/readutmp.h (UT_USER): Define.
45067
45068 2000-01-29  Jim Meyering  <meyering@lucent.com>
45069
45070         * m4/lib-check.m4: New file containing library-related checks from
45071         fileutils and sh-utils (textutils had none).
45072
45073 2000-01-28  Jim Meyering  <meyering@lucent.com>
45074
45075         * m4/perl.m4: Change format of warning message to look more like that
45076         from the missing script.  Suggestion from François Pinard.
45077
45078 2000-01-25  Jim Meyering  <meyering@lucent.com>
45079
45080         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
45081         well as time.h in the compile check.
45082         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
45083         Fix typo in cross-compiling case: s/yes/no/.
45084
45085 2000-01-23  Jim Meyering  <meyering@lucent.com>
45086
45087         * m4/jm-macros.m4: Move df-related tests here from
45088         fileutils/configure.in
45089
45090         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
45091         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
45092
45093         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
45094         s/space/ac_fsusage_space/.
45095         (jm_FILE_SYSTEM_USAGE): Take two parameters.
45096
45097         * m4/ftruncate.m4: New file (derived from part of
45098         fileutils/configure.in).
45099         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
45100         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
45101
45102         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
45103         AC_SUBST these here, rather than just in sh-util/configure.in, so
45104         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
45105         all the same.
45106         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
45107         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
45108         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
45109         (AC_SUBST(POW_LIBM)): Likewise.
45110         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
45111
45112 2000-01-23  Jim Meyering  <meyering@lucent.com>
45113
45114         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
45115         obstack.c.
45116
45117 2000-01-22  Jim Meyering  <meyering@lucent.com>
45118
45119         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
45120
45121         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
45122
45123         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
45124         configure.in
45125         (AC_CHECK_HEADERS): Likewise for sh-utils.
45126         (AC_CHECK_HEADERS): Likewise for textutils.
45127         Merge the three lists of headers.
45128
45129         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
45130         from fileutils' configure.in.
45131
45132         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
45133         code. Moved tests into their own function (_jm_DECL_HEADERS) in
45134         check-decl.m4.
45135
45136         * m4/check-decl.m4: Use #if rather than #ifdef.
45137         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
45138         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
45139         (_jm_DECL_HEADERS): Define new function.
45140         (jm_CHECK_DECLARATIONS): Require it.
45141
45142 2000-01-22  Jim Meyering  <meyering@lucent.com>
45143
45144         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
45145         [! HAVE_DECL_STRTOULL]: Declare strtoull.
45146         Required for some AIX systems.  Reported by Christian Krackowizer.
45147         [TESTING] (main): New function.
45148
45149         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
45150         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
45151         letters.
45152
45153         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
45154         iswprint.
45155
45156         * lib/strverscmp.c (ISDIGIT): Define.
45157         (strverscmp): Use ISDIGIT, not isdigit.
45158
45159 2000-01-19  Jim Meyering  <meyering@lucent.com>
45160
45161         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
45162         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
45163         defines `struct timespec' in <sys/time.h>
45164
45165         * m4/c-bs-a.m4: Remove uses of changequote altogether.
45166         Thanks to Akim for explaining.
45167
45168 2000-01-17  Paul Eggert  <eggert@twinsun.com>
45169
45170         * lib/nanosleep.c (nanosleep):
45171         Don't use SA_INTERRUPT to decide whether to call sigaction, as
45172         POSIX.1 doesn't require SA_INTERRUPT and some systems
45173         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
45174         it's been part of POSIX.1 since day 1 (in 1988).
45175
45176 2000-01-17  Jim Meyering  <meyering@lucent.com>
45177
45178         * lib/interlock: Remove unused file.  Reported by François Pinard.
45179
45180 2000-01-16  Paul Eggert  <eggert@twinsun.com>
45181
45182         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
45183         alert, backslash, formfeed, and vertical tab unnecessarily in
45184         shell quoting style.
45185
45186 2000-01-16  Jim Meyering  <meyering@lucent.com>
45187
45188         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
45189         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
45190         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
45191         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
45192
45193 2000-01-16  Jim Meyering  <meyering@lucent.com>
45194
45195         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
45196         because the latter didn't work.
45197
45198 2000-01-15  Jim Meyering  <meyering@lucent.com>
45199
45200         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
45201         (AC_REPLACE_FUNCS): Add memcpy and memset.
45202         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
45203         Add strpbrk.
45204         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
45205
45206 2000-01-12  Jim Meyering  <meyering@lucent.com>
45207
45208         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
45209         (jm_PREREQ): Use it.
45210         (jm_PREREQ_READUTMP): New macro.
45211         (jm_PREREQ): Use it.
45212
45213 2000-01-11  Paul Eggert  <eggert@twinsun.com>
45214
45215         Quote multibyte characters correctly.
45216         * m4/c-bs-a.m4: New file.
45217         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
45218         (jm_PREREQ): Use it.
45219
45220 2000-01-11  Paul Eggert  <eggert@twinsun.com>
45221
45222         * m4/uintmax_t.m4: Port to autoconf 2.13.
45223
45224 2000-01-08  Jim Meyering  <meyering@ascend.com>
45225
45226         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
45227         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
45228
45229 2000-01-04  Jim Meyering  <meyering@ascend.com>
45230
45231         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
45232         jm_STRUCT_DIRENT_D_TYPE.
45233         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
45234         jm_STRUCT_DIRENT_D_INO.
45235         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
45236         jm_STRUCT_UTIMBUF.
45237         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
45238         renamings.
45239         * m4/utime.m4: Likewise.
45240
45241         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
45242         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
45243
45244 2000-01-03  Paul Eggert  <eggert@twinsun.com>
45245
45246         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
45247         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
45248
45249 2000-01-02  Jim Meyering  <meyering@ascend.com>
45250
45251         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
45252         remember if this is necessary.
45253
45254 1999-12-26  Jim Meyering  <meyering@ascend.com>
45255
45256         * m4/jm-macros.m4: Use it here.
45257         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
45258
45259 1999-12-23  Jim Meyering  <meyering@ascend.com>
45260
45261         * m4/jm-macros.m4: Check for clock_gettime (moved from
45262         fileutils/configure.in)
45263         Check for gettimeofday.
45264
45265 1999-12-20  Jim Meyering  <meyering@ascend.com>
45266
45267         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
45268         autoconf-2.14a-1999-12-20.
45269
45270 1999-12-19  Jim Meyering  <meyering@ascend.com>
45271
45272         * m4/lstat-slash.m4: New file.
45273         * m4/jm-macros.m4: Use the new macro:
45274         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
45275
45276 1999-12-07  Jim Meyering  <meyering@ascend.com>
45277
45278         * m4/perl.m4: Require that File::Compare be available, too.
45279         Too many systems seem to lack it.
45280
45281         * m4/strftime.m4: Add checks for most of the cpp macros tested in
45282         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
45283
45284 1999-11-18  Paul Eggert  <eggert@twinsun.com>
45285
45286         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
45287         problem with the QNX 4.25 shell, which doesn't propagate exit
45288         status of failed commands inside shell assignments.
45289
45290 1999-11-17  Jim Meyering  <meyering@ascend.com>
45291
45292         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
45293
45294 1999-11-07  Jim Meyering  <meyering@ascend.com>
45295
45296         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
45297
45298 1999-11-06  Jim Meyering  <meyering@ascend.com>
45299
45300         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
45301         * m4/jm-macros.m4 (jm_MACROS): Use it here.
45302
45303 1999-11-05  Jim Meyering  <meyering@ascend.com>
45304
45305         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
45306         configure.in of textutils, fileutils, and sh-utils into this one
45307         (shared between those packages) file.
45308         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
45309         AC_STRUCT_ST_BLKSIZE.
45310
45311 1999-11-03  Jim Meyering  <meyering@ascend.com>
45312
45313         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
45314         of AC_CHECK_TYPE checks includes unistd.h.
45315         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
45316         Suggestion from Akim Demaille.
45317
45318 1999-10-30  Jim Meyering  <meyering@ascend.com>
45319
45320         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
45321         m4-quoted string.
45322         * m4/ls-mntd-fs.m4: Likewise.
45323         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
45324         * m4/jm-winsz1.m4: Likewise.
45325
45326         * m4/const.m4: Remove file, since the fix made it into the experimental
45327         version of autoconf.
45328         * m4/mktime.m4: Likewise.
45329
45330         * m4/check-type.m4: Remove file, now that the latest version of
45331         AC_CHECK_TYPE takes a third arg to specify additional #includes.
45332
45333         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
45334         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
45335         AC_CHECK_TYPE.
45336
45337 1999-10-04  Jim Meyering  <meyering@ascend.com>
45338
45339         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
45340
45341 1999-09-22  Paul Eggert  <eggert@twinsun.com>
45342
45343         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
45344         2.95.1 bug with HP-UX 10.20.
45345
45346 1999-09-17  Jim Meyering  <meyering@ascend.com>
45347
45348         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
45349         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
45350         due to missing strdup (against sh-utils-2.0).
45351
45352 1999-08-29  Jim Meyering  <meyering@ascend.com>
45353
45354         * m4/jm-macros.m4: Require jm_BISON.
45355         * m4/bison.m4: New file.
45356
45357 1999-08-17  Paul Eggert  <eggert@twinsun.com>
45358
45359         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
45360         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
45361
45362 1999-08-05  Jim Meyering  <meyering@ascend.com>
45363
45364         * m4/getline.m4: Rename test file from conftestdata to conftest.data
45365         to avoid conflicts with `conftest' on 8+3 filesystems.
45366         Suggestion from Eli Zaretskii.
45367
45368 1999-08-04  Jim Meyering  <meyering@ascend.com>
45369
45370         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
45371         fileutils and sh-utils (textutils's getline test was inadequate).
45372         (AM_FUNC_GETLINE): Run this test.
45373         (AC_CHECK_FUNCS): Check for getdelim.
45374         Reported by Bob Proulx.
45375
45376 1999-08-02  Jim Meyering  <meyering@ascend.com>
45377
45378         * m4/jm-macros.m4: Add a comment.
45379
45380 1999-08-01  Paul Eggert  <eggert@twinsun.com>
45381
45382         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
45383         <inttypes.h> defines strtoumax as a macro (and not as a
45384         function).
45385
45386 1999-08-01  Paul Eggert  <eggert@twinsun.com>
45387
45388         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
45389         that we can shift, multiply and divide unsigned long long
45390         values; Ultrix cc can't do it.
45391
45392 1999-08-01  Paul Eggert  <eggert@twinsun.com>
45393
45394         * m4/mktime.m4: New file, which is a preview of what should appear
45395         in the next public autoconf release.
45396
45397 1999-08-01  Paul Eggert  <eggert@twinsun.com>
45398
45399         * m4/lfs.m4: Remove this file.
45400         * m4/largefile.m4: New file.  It contains the old contents of
45401         lfs.m4, except that all names with prefix AC_LFS have been
45402         changed to use the prefix AC_SYS_LARGEFILE instead, to be
45403         compatible with future autoconf versions.  Also, some minor m4
45404         quoting problems have been fixed.
45405
45406 1999-08-01  Paul Eggert  <eggert@twinsun.com>
45407
45408         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
45409         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
45410         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
45411         and simplify the shell code.
45412
45413 1999-08-01  Jim Meyering  <meyering@ascend.com>
45414
45415         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
45416         m4.
45417
45418 1999-07-20  Jim Meyering  <meyering@ascend.com>
45419
45420         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
45421
45422 1999-07-15  Jim Meyering  <meyering@ascend.com>
45423
45424         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
45425
45426 1999-05-22  Jim Meyering  <meyering@ascend.com>
45427
45428         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
45429
45430 1999-05-20  Jim Meyering  <meyering@ascend.com>
45431
45432         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
45433         Add a colon after each `then' in case $4 is empty.
45434
45435 1999-05-16  Jim Meyering  <meyering@ascend.com>
45436
45437         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
45438
45439 1999-05-10  Jim Meyering  <meyering@ascend.com>
45440
45441         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
45442
45443         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
45444         AC_FUNC_MKTIME.
45445
45446 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
45447
45448         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
45449
45450 1999-05-04  Paul Eggert  <eggert@twinsun.com>
45451
45452         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
45453         not CPPFLAGS, so that linking works correctly in IRIX.
45454
45455 1999-04-30  Paul Eggert  <eggert@twinsun.com>
45456
45457         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
45458
45459 1999-04-20  Paul Eggert  <eggert@twinsun.com>
45460
45461         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
45462         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
45463         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
45464         jm_AC_TYPE_UNSIGNED_LONG_LONG.
45465         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
45466
45467         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
45468
45469 1999-04-20  Jim Meyering  <meyering@ascend.com>
45470
45471         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
45472         AC_REPLACE xstroull if necessary.  From Paul Eggert.
45473         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
45474
45475 1999-04-18  Jim Meyering  <meyering@ascend.com>
45476
45477         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
45478         * m4/jm-macros.m4: Use it.
45479
45480 1999-04-06  Jim Meyering  <meyering@ascend.com>
45481
45482         * m4/strftime.m4: Remove test for %f.
45483
45484 1999-03-29  Jim Meyering  <meyering@ascend.com>
45485
45486         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
45487         superset of the AC_TYPE_* checks in the textutils, fileutils,
45488         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
45489         AC_TYPE_PID_T.
45490
45491 1999-03-28  Jim Meyering  <meyering@ascend.com>
45492
45493         * m4/jm-macros.m4: Define GNU_PACKAGE here.
45494         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
45495         replaced e.g., in the *.sh files of the sh-utils.
45496
45497 1999-03-20  Jim Meyering  <meyering@ascend.com>
45498
45499         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
45500         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
45501         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
45502
45503 1999-03-19  Jim Meyering  <meyering@ascend.com>
45504
45505         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
45506
45507 1999-03-12  Jim Meyering  <meyering@ascend.com>
45508
45509         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
45510
45511 1999-03-07  Jim Meyering  <meyering@ascend.com>
45512
45513         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
45514         declared.
45515
45516 1999-02-17  Jim Meyering  <meyering@ascend.com>
45517
45518         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
45519         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
45520
45521 1999-02-07  Jim Meyering  <meyering@ascend.com>
45522
45523         * m4/group-member.m4: New file -- extracted from sh-utils'
45524         configure.in.
45525
45526         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
45527         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
45528
45529 1999-02-06  Jim Meyering  <meyering@ascend.com>
45530
45531         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
45532         * m4/fnmatch.m4: Likewise.
45533         * m4/getgroups.m4: Likewise.
45534         * m4/lstat.m4: Likewise.
45535         * m4/malloc.m4: Likewise.
45536         * m4/putenv.m4: Likewise.
45537         * m4/realloc.m4: Likewise.
45538         * m4/regex.m4: Likewise.
45539         * m4/stat.m4: Likewise.
45540         * m4/strftime.m4: Likewise.
45541         Suggestion from Alain Magloire.
45542
45543         * m4/chown.m4: Use `.$ac_objext', not `.o'.
45544         * m4/fnmatch.m4: Likewise.
45545         * m4/getgroups.m4: Likewise.
45546         * m4/getline.m4: Likewise.
45547         * m4/lstat.m4: Likewise.
45548         * m4/malloc.m4: Likewise.
45549         * m4/memcmp.m4: Likewise.
45550         * m4/putenv.m4: Likewise.
45551         * m4/realloc.m4: Likewise.
45552         * m4/regex.m4: Likewise.
45553         * m4/stat.m4: Likewise.
45554         * m4/strftime.m4: Likewise.
45555         Suggestion from Alain Magloire.
45556
45557         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
45558         an argument.
45559
45560         * m4/regex.m4: Add a run-time Test for proper operation of
45561         re_compile_pattern.
45562
45563 1999-01-31  Jim Meyering  <meyering@ascend.com>
45564
45565         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
45566
45567 1999-01-30  Jim Meyering  <meyering@ascend.com>
45568
45569         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
45570
45571         * m4/jm-mktime.m4: Make this a wrapper around the official
45572         AM_FUNC_MKTIME rather than my private copy, now that the official one
45573         is up to date.
45574         * m4/mktime.m4: Remove file.
45575
45576         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
45577         * m4/uptime.m4: Likewise.
45578         * m4/uintmax_t.m4: Likewise.
45579
45580 1999-01-28  Jim Meyering  <meyering@ascend.com>
45581
45582         * m4/jm-macros.m4: Use jm_AFS.
45583         * m4/afs.m4: New file (from fileutils' configure.in).
45584
45585         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
45586         * m4/chown.m4: Likewise.
45587         * m4/d-ino.m4: Likewise.
45588         * m4/d-type.m4: Likewise.
45589         * m4/fnmatch.m4: Likewise.
45590         * m4/getgroups.m4: Likewise.
45591         * m4/gettext.m4: Likewise.
45592         * m4/jm-mktime.m4: Likewise.
45593         * m4/jm-winsz2.m4: Likewise.
45594         * m4/lcmessage.m4: Likewise.
45595         * m4/ls-mntd-fs.m4: Likewise.
45596         * m4/malloc.m4: Likewise.
45597         * m4/memcmp.m4: Likewise.
45598         * m4/putenv.m4: Likewise.
45599         * m4/realloc.m4: Likewise.
45600         * m4/st_mtim.m4: Likewise.
45601         * m4/strftime.m4: Likewise.
45602
45603 1999-01-16  Jim Meyering  <meyering@ascend.com>
45604
45605         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
45606         (ARGMATCH_DIE_DECL): Define.
45607
45608 1999-01-12  Jim Meyering  <meyering@ascend.com>
45609
45610         * m4/Makefile.am.in: Rewrite to avoid using fmt.
45611         Reported by Lars Hecking.
45612
45613 1999-01-10  Jim Meyering  <meyering@ascend.com>
45614
45615         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
45616         gross kludge.
45617         * m4/inttypes_h.m4: Likewise.
45618         * m4/lstat.m4: Likewise.
45619         * m4/malloc.m4: Likewise.
45620         * m4/readdir.m4: Likewise.
45621         * m4/realloc.m4: Likewise.
45622         * m4/st_dm_mode.m4: Likewise.
45623         * m4/stat.m4: Likewise.
45624         * m4/utimbuf.m4: Likewise.
45625         * m4/utimes.m4: Likewise.
45626
45627         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
45628         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
45629         comments in config.h.in are meaningful.
45630
45631         * m4/jm-macros.m4: Require autoconf-2.13 here.
45632
45633         * m4/regex.m4: By default, don't use the included regex.c on systems
45634         with glibc 2.  Suggestion from Uli Drepper.
45635
45636 1999-01-02  Jim Meyering  <meyering@ascend.com>
45637
45638         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
45639
45640 1998-12-18  Jim Meyering  <meyering@ascend.com>
45641
45642         * m4/Makefile.am.in (Makefile.am): Simplify rule.
45643         Based on a suggestion from Lars Hecking.
45644
45645 1998-11-16  Paul Eggert  <eggert@twinsun.com>
45646
45647         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
45648
45649 1998-11-16  Jim Meyering  <meyering@ascend.com>
45650
45651         * m4/lfs.m4: Double-quote the `uname...` expression.
45652
45653 1998-11-14  Jim Meyering  <meyering@ascend.com>
45654
45655         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
45656         * m4/stat.m4: Likewise.
45657
45658 1998-11-03  Jim Meyering  <meyering@ascend.com>
45659
45660         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
45661         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
45662
45663 1998-10-18  Jim Meyering  <meyering@ascend.com>
45664
45665         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
45666
45667 1998-10-17  Jim Meyering  <meyering@ascend.com>
45668
45669         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
45670         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
45671         calls for those previously hard-coded headers.  Instead, take a new
45672         parameter.
45673         (jm_CHECK_DECLARATIONS): Reflect interface change.
45674         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
45675         (jm_CHECK_DECL_LOCALTIME_R): New macro.
45676
45677         * m4/mktime.m4: Test for spring-forward gap before long-running test.
45678
45679 1998-10-14  Jim Meyering  <meyering@ascend.com>
45680
45681         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
45682         instead of "TZ=America/Vancouver".  From Paul Eggert.
45683
45684 1998-10-11  Jim Meyering  <meyering@ascend.com>
45685
45686         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
45687         This adds a test for a recently added compatibility fix for mktime.c.
45688         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
45689
45690 1998-09-27  Jim Meyering  <meyering@ascend.com>
45691
45692         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
45693
45694         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
45695         ../configure.in, including a change from Gordon Matzigkeit to allow
45696         cross-compiling for the Hurd.
45697
45698         * m4/glibc.m4: New file/macro to test for the GNU C Library
45699         versions 1 and 2.  From Gordon Matzigkeit.
45700         Indent.
45701
45702 1998-09-21  Jim Meyering  <meyering@ascend.com>
45703
45704         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
45705
45706 1998-08-18  Paul Eggert  <eggert@twinsun.com>
45707
45708         Port nanosecond-resolution times to UnixWare 2.1.2 and
45709         pedantic Solaris 2.6.
45710
45711         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
45712         AC_STRUCT_ST_MTIM.
45713         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
45714         Generate name of ns member, instead of just 1 or undef.
45715         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
45716
45717 1998-08-15  Jim Meyering  <meyering@ascend.com>
45718
45719         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
45720         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
45721         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
45722         instead of jm_TYPE_SSIZE_T.
45723
45724 1998-08-12  Jim Meyering  <meyering@ascend.com>
45725
45726         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
45727
45728 1998-08-02  Jim Meyering  <meyering@ascend.com>
45729
45730         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
45731         in acconfig.h manually.
45732
45733 1998-07-31  Paul Eggert  <eggert@twinsun.com>
45734
45735         * m4/st_mtim.m4: New file.
45736
45737 1998-07-28  Jim Meyering  <meyering@ascend.com>
45738
45739         * m4/utimes.m4: Undef stat.
45740
45741 1998-07-25  Jim Meyering  <meyering@ascend.com>
45742
45743         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
45744         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
45745
45746 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
45747
45748         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
45749         uid and gid actually remain unchanged.
45750
45751 1998-07-07  Jim Meyering  <meyering@ascend.com>
45752
45753         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
45754
45755 1998-07-04  Jim Meyering  <meyering@ascend.com>
45756
45757         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
45758         to prove that this macro can be used in packages without regex.c.
45759
45760 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
45761
45762         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
45763         is to be used.
45764
45765 1998-07-03  Jim Meyering  <meyering@ascend.com>
45766
45767         * m4/gettext.m4: Add -lintl if it's found to be necessary.
45768
45769         * m4/gettext.m4: New file -- from gettext-0.10.35.
45770         * m4/lcmessage.m4: Likewise.
45771         * m4/progtest.m4: Likewise.
45772
45773         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
45774         * m4/jm-macros.m4: Require the new macro.
45775
45776 1998-06-29  Jim Meyering  <meyering@ascend.com>
45777
45778         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
45779         for the definition of NGROUPS (used in a system header included
45780         by sys/mount.h).
45781
45782 1998-06-28  Jim Meyering  <meyering@ascend.com>
45783
45784         * m4/ls-mntd-fs.m4: New file.
45785         * m4/fstypename.m4: New file.
45786
45787         * m4/jm-macros.m4: Require the new macro.
45788         * m4/jm-glibc-io.m4: New file.
45789
45790 1998-05-19  Jim Meyering  <meyering@ascend.com>
45791
45792         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
45793         * m4/lchown.m4: New file.
45794
45795         * m4/Makefile.am.in: New file.
45796         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
45797
45798 1998-05-14  Jim Meyering  <meyering@ascend.com>
45799
45800         * m4/Makefile.am (EXTRA_DIST): Add them.
45801         * m4/jm-macros.m4: New file.
45802         * m4/utimbuf.m4: New file.
45803
45804 1998-05-12  Jim Meyering  <meyering@ascend.com>
45805
45806         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
45807
45808 1998-05-11  Jim Meyering  <meyering@ascend.com>
45809
45810         * m4/isc-posix.m4: New file.
45811
45812 1998-05-10  Jim Meyering  <meyering@ascend.com>
45813
45814         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
45815
45816 1998-05-09  Jim Meyering  <meyering@ascend.com>
45817
45818         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
45819         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
45820         with automake.
45821
45822         * m4/ssize_t.m4: New file.
45823         * m4/mktime.m4: Remove file -- the new automake has this now.
45824
45825 1998-04-26  Jim Meyering  <meyering@ascend.com>
45826
45827         * m4/assert.m4: New file.
45828         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
45829
45830 1998-04-05  Jim Meyering  <meyering@ascend.com>
45831
45832         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
45833         (jm_PREREQ): Use it here.
45834
45835 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
45836
45837         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
45838         in acconfig.h.
45839
45840 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
45841
45842         * m4/prereq.m4: New file.
45843         * m4/error.m4: New file.
45844         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
45845
45846 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
45847
45848         * m4/getline.m4: Don't set am_cv_func_working_getline before the
45849         cache-check for the same variable -- that defeated the purpose of
45850         the test; the test program was never run.  This was a problem only
45851         on systems with losing getline functions -- HP-UX 10.20 is one.
45852         Reported by Bjorn Helgaas.
45853
45854 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
45855
45856         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
45857
45858 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
45859
45860         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
45861
45862         * m4/const.m4: New file.  Use an initializer in this declaration
45863         typedef int charset[2]; const charset x;
45864         Reported by Bob Glickstein.
45865
45866 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
45867
45868         * m4/chown.m4: Fix reversed types on -1 args to chown.
45869         From Kaveh Ghazi.
45870
45871 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
45872
45873         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
45874         Add lseek and memchr.
45875
45876         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
45877         T.E.Dickey <dickey@clark.net> said that some older preprocessors
45878         have a 20-character limit on names.
45879
45880 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
45881
45882         * m4/inttypes_h.m4: New file.
45883         * m4/uintmax_t.m4: New file.
45884         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
45885
45886
45887         -----
45888
45889         Local Variables:
45890         coding: utf-8
45891         End:
45892
45893         Copyright (C) 1997-2008 Free Software Foundation, Inc.
45894
45895         Copying and distribution of this file, with or without
45896         modification, are permitted provided the copyright notice
45897         and this notice are preserved.