2007-05-16 Thien-Thi Nguyen <ttn@gnuvola.org> (tiny change)
[gnulib.git] / ChangeLog
1 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
2
3         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
4
5 2007-05-13  Bruno Haible  <bruno@clisp.org>
6
7         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
8         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
9         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
10         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
11         (gl_PREREQ_STRTOK_R): Don't require it here.
12
13 2007-05-13  Bruno Haible  <bruno@clisp.org>
14
15         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
16         when used in C++ mode.
17
18 2007-05-12  Bruno Haible  <bruno@clisp.org>
19
20         * lib/linebuffer.h: Tweak doc.
21         * lib/linebuffer.c: Likewise.
22
23 2007-05-12  James Youngman  <jay@gnu.org>
24
25         * lib/linebuffer.c (readlinebuffer_delim): New function,
26         like readlinebuffer, but use a caller-specified delimiter.
27         (readlinebuffer): Just call readlinebuffer_delim with '\n'
28         as the delimiter.
29         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
30
31 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
32
33         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
34         * modules/openat (Files): Remove openat-die.c.
35         (Depends-on): Add openat-die.
36         * modules/openat-die: New module.
37
38 2007-05-06  Bruno Haible  <bruno@clisp.org>
39
40         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
41         Update with info about Cygwin.
42         * doc/functions/fprintf.texi: Update.
43         * doc/functions/printf.texi: Update.
44         * doc/functions/snprintf.texi: Update.
45         * doc/functions/sprintf.texi: Update.
46         * doc/functions/vfprintf.texi: Update.
47         * doc/functions/vprintf.texi: Update.
48         * doc/functions/vsnprintf.texi: Update.
49         * doc/functions/vsprintf.texi: Update.
50         Reported by Eric Blake.
51
52 2007-05-06  Bruno Haible  <bruno@clisp.org>
53
54         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
55         padding ourselves for the floating-point directives.
56         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
57         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
58         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
59         gl_PRINTF_FLAG_ZERO and test its result. Invoke
60         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
61         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
62         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
63         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
64         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
65         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
66         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
67         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
68         * tests/test-snprintf-posix.h (test_function): Also check the width
69         and some flags in the %f directive.
70         * tests/test-sprintf-posix.h (test_function): Likewise.
71         * tests/test-vasnprintf-posix.c (test_function): Likewise.
72         * tests/test-vasprintf-posix.c (test_function): Likewise.
73         * doc/functions/fprintf.texi: Update.
74         * doc/functions/printf.texi: Update.
75         * doc/functions/snprintf.texi: Update.
76         * doc/functions/sprintf.texi: Update.
77         * doc/functions/vfprintf.texi: Update.
78         * doc/functions/vprintf.texi: Update.
79         * doc/functions/vsnprintf.texi: Update.
80         * doc/functions/vsprintf.texi: Update.
81
82 2007-05-06  Bruno Haible  <bruno@clisp.org>
83
84         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
85         pass the ' flag character to sprintf or snprintf.
86         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
87         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
88         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
89         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
90         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
91         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
92         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
93         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
94         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
95         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
96         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
97         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
98         * tests/test-snprintf-posix.h (test_function): Also check the grouping
99         flag.
100         * tests/test-sprintf-posix.h (test_function): Likewise.
101         * tests/test-vasnprintf-posix.c (test_function): Likewise.
102         * tests/test-vasprintf-posix.c (test_function): Likewise.
103         * doc/functions/fprintf.texi: Update.
104         * doc/functions/printf.texi: Update.
105         * doc/functions/snprintf.texi: Update.
106         * doc/functions/sprintf.texi: Update.
107         * doc/functions/vfprintf.texi: Update.
108         * doc/functions/vprintf.texi: Update.
109         * doc/functions/vsnprintf.texi: Update.
110         * doc/functions/vsprintf.texi: Update.
111
112 2007-05-01  Bruno Haible  <bruno@clisp.org>
113
114         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
115
116 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
117
118         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
119         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
120
121 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
122
123         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
124         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
125         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
126
127 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
128
129         * lib/argp-help.c (struct hol_entry): New member `ord'.
130         (HOL_ENTRY_PTRCMP): Use ord for comparison
131         (hol_sort): Initialize ord.
132
133 2007-05-01  Bruno Haible  <bruno@clisp.org>
134
135         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
136         Reported by Eric Blake.
137         * doc/gnulib.texi (Function Substitutes): Update.
138
139 2007-05-01  Bruno Haible  <bruno@clisp.org>
140
141         * doc/functions.texi: Remove file, now redundant through
142         doc/functions/*.texi.
143
144 2007-05-01  Bruno Haible  <bruno@clisp.org>
145
146         * modules/argp (Depends-on): Add sleep.
147
148 2007-05-01  Bruno Haible  <bruno@clisp.org>
149
150         * modules/sleep-tests: New file.
151         * tests/test-sleep.c: New file.
152
153         * modules/sleep: New file.
154         * lib/sleep.c: New file.
155         * m4/sleep.m4: New file.
156         * lib/unistd_.h (sleep): New declaration.
157         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
158         HAVE_SLEEP.
159         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
160         * doc/functions/sleep.texi: Document the sleep module.
161
162 2007-05-01  Bruno Haible  <bruno@clisp.org>
163
164         * lib/sigprocmask.h: Remove file.
165         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
166         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
167         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
168         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
169         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
170         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
171         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
172         HAVE_SIGSET_T as a shell variable.
173         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
174         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
175         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
176         (Depends-on): Add signal. Remove verify.
177         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
178         (Include): Mention <signal.h> instead of sigprocmask.h.
179         * NEWS: Mention the change.
180         * lib/fatal-signal.c: Don't include sigprocmask.h.
181
182 2007-05-01  Bruno Haible  <bruno@clisp.org>
183
184         * modules/signal: New file.
185         * lib/signal_.h: New file.
186         * m4/signal_h.m4: New file.
187
188 2007-05-01  Bruno Haible  <bruno@clisp.org>
189
190         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
191         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
192         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
193         HAVE_WCTYPE_CTMP_BUG into wctype.h.
194
195 2007-05-01  Bruno Haible  <bruno@clisp.org>
196
197         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
198         configure time.
199         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
200         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
201         * modules/sys_stat (Makefile.am): Substitute their values into
202         sys/stat.h.
203
204 2007-05-01  Bruno Haible  <bruno@clisp.org>
205
206         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
207         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
208         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
209
210 2007-05-01  Bruno Haible  <bruno@clisp.org>
211
212         * doc/header/assert.texi: Undo last change: don't mention the gnulib
213         'assert' module here.
214
215 2007-05-01  Bruno Haible  <bruno@clisp.org>
216
217         * doc/functions/*.texi: New files.
218         * doc/functions/google-ranking.txt: New file.
219         * doc/gnulib.texi (Function Substitutes): New chapter.
220         (ctime, inet_ntoa): Remove sections.
221         * doc/ctime.texi: Remove file.
222         * doc/inet_ntoa.texi: Remove file.
223         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
224         dependencies.
225         (%.info): New rule, specifying a --reference-limit.
226
227 2007-05-01  Bruno Haible  <bruno@clisp.org>
228
229         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
230
231 2007-05-01  Bruno Haible  <bruno@clisp.org>
232
233         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
234         the portability of 'mkdir' to mingw systems.
235
236 2007-05-01  Bruno Haible  <bruno@clisp.org>
237
238         * doc/headers/google-ranking.txt: New file.
239
240 2007-04-30  Eric Blake  <ebb9@byu.net>
241
242         Prefer fseeko to fseek.
243         * modules/getpass (Depends-on): Add fseeko.
244         * lib/getpass.c (getpass): Use fseeko, not fseek.
245
246 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
247
248         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
249         assumes the sorting is stable, while most qsort implementations
250         are not.  Use argument addresses to ensure they never compare as
251         equal.
252
253         * tests/test-argp-2.sh (usage-indent test): Fix output
254         (func_compare): Restore diff options
255         * tests/test-argp.c: Restore #include "progname.h"
256
257 2007-04-29  Bruno Haible  <bruno@clisp.org>
258
259         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
260         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
261         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
262         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
263         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
264         (configure.ac): Define CHECK_SNPRINTF_POSIX.
265         (TESTS, check_PROGRAMS): Add test-snprintf.
266         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
267         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
268         (TESTS, check_PROGRAMS): Add test-vsnprintf.
269         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
270         assertions that fail on HP-UX, OSF/1, or IRIX.
271         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
272
273 2007-04-29  Bruno Haible  <bruno@clisp.org>
274
275         * MODULES.html.sh (posix_functions): Remove 'contents'.
276
277 2007-04-29  Karl Berry  <karl@gnu.org>
278
279         * config/srclist.txt (gendocs_template_min): new entry.
280
281 2007-04-29  Bruno Haible  <bruno@clisp.org>
282
283         Work around fpurge bug on BSD systems.
284         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
285         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
286         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
287         fpurge to rpl_fpurge if the system already has this function.
288         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
289         the case where the system already has this function. Correct invariants
290         on BSD systems.
291         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
292         BSD systems.
293
294 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
295
296         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
297         proposed by Sven Verdoolaege.
298
299         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
300         options.
301         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
302         (usage and help tests): Update
303
304 2007-04-29  Bruno Haible  <bruno@clisp.org>
305
306         * tests/test-fflush.c (main): Use a file of size 17, not 10.
307         Print more information in case of failure. Disable a test on BeOS.
308
309 2007-04-29  Bruno Haible  <bruno@clisp.org>
310
311         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
312         This helps debugging on systems on which no gdb is available.
313
314 2007-04-29  Bruno Haible  <bruno@clisp.org>
315
316         * lib/freading.h: Improve comments.
317         * lib/fwriting.h: Likewise.
318         * tests/test-freading.c (main): Don't check freading immediately after
319         repositioning. Needed for glibc.
320
321 2007-04-29  Bruno Haible  <bruno@clisp.org>
322
323         * lib/freading.c (freading): Trivial simplification.
324
325 2007-04-28  Bruno Haible  <bruno@clisp.org>
326
327         * tests/test-fwriting.c (main): Also test the interaction between
328         fflush and fwriting.
329         * modules/fwriting-tests (Depends-on): Add fflush.
330
331         * tests/test-freading.c (main): Also test the interaction between
332         fflush and freading.
333         * modules/freading-tests (Depends-on): Add fflush.
334
335 2007-04-28  Bruno Haible  <bruno@clisp.org>
336
337         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
338         fseeko and ftello.
339         Suggested by Eric Blake.
340
341 2007-04-28  Jim Meyering  <jim@meyering.net>
342
343         Avoid false-negative in gl_STDINT_H's C99 conformance test.
344         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
345         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
346
347 2007-04-27  Eric Blake  <ebb9@byu.net>
348
349         * doc/headers/assert.texi (assert.h): Document assert module use.
350
351 2007-04-27  Bruno Haible  <bruno@clisp.org>
352
353         * doc/headers/*.texi: New files.
354         * doc/gnulib.texi (Header File Substitutes): New chapter.
355         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
356         dependencies.
357         (standards.info ,standards.html, standards.dvi): Update dependencies.
358         (mostlyclean, clean): New targets.
359
360 2007-04-27  Bruno Haible  <bruno@clisp.org>
361
362         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
363         * modules/sysexits (Files, Makefile.am): Update.
364
365         * lib/sys_socket_.h: Renamed from lib/socket_.h.
366         * modules/sys_socket (Files, Makefile.am): Update.
367
368         * lib/sys_stat_.h: Renamed from lib/stat_.h.
369         * modules/sys_stat (Files, Makefile.am): Update.
370
371 2007-04-27  Eric Blake  <ebb9@byu.net>
372
373         * lib/freading.h: Improve comments.
374         * lib/fwriting.h: Likewise.
375         * lib/fflush.c: Likewise.
376
377         Fix closein for mingw.
378         * modules/closein-tests: Add tests for closein.
379         * tests/test-closein.c: New file.
380         * tests/test-closein.sh: Likewise.
381         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
382         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
383
384 2007-04-27  Bruno Haible  <bruno@clisp.org>
385
386         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
387         version is < 6.
388         * lib/math_.h [__DECC]: Likewise.
389         * lib/stdio_.h [__DECC]: Likewise.
390         * lib/stdlib_.h [__DECC]: Likewise.
391         * lib/string_.h [__DECC]: Likewise.
392         * lib/time_.h [__DECC]: Likewise.
393         * lib/wchar_.h [__DECC]: Likewise.
394         * lib/wctype_.h [__DECC]: Likewise.
395
396 2007-04-27  Bruno Haible  <bruno@clisp.org>
397
398         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
399
400 2007-04-27  Bruno Haible  <bruno@clisp.org>
401
402         * lib/fflush.c: Add comments.
403         * modules/fpurge-tests (Depends-on): Add fflush.
404         * modules/freadable-tests (Depends-on): Likewise.
405         * modules/fwritable-tests (Depends-on): Likewise.
406
407 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
408
409         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
410         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
411         Report by Bruno Haible <bruno@clisp.org>.
412
413 2007-04-26  Eric Blake  <ebb9@byu.net>
414
415         Fix fflush on mingw.
416         * modules/fflush (Depends-on): Add freading.
417         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
418         but unread data.
419
420 2007-04-26  Eric Blake  <ebb9@byu.net>
421         and Bruno Haible  <bruno@clisp.org>
422
423         Implement freading and fwriting.
424         * lib/freading.c: New file.
425         * lib/freading.h: Likewise.
426         * m4/freading.m4: Likewise.
427         * modules/freading: Likewise.
428         * modules/freading-tests: Likewise.
429         * tests/test-freading.c: Likewise.
430         * lib/fwriting.c: New file.
431         * lib/fwriting.h: Likewise.
432         * m4/fwriting.m4: Likewise.
433         * modules/fwriting: Likewise.
434         * modules/fwriting-tests: Likewise.
435         * tests/test-fwriting.c: Likewise.
436         * MODULES.html.sh (File stream based Input/Output): Mention them.
437
438 2007-04-26  Bruno Haible  <bruno@clisp.org>
439
440         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
441         'long' when we assume it.
442         Suggested by Eric Blake.
443
444 2007-04-26  Bruno Haible  <bruno@clisp.org>
445
446         Ensure fseeko, ftello are declared on glibc systems.
447         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
448         * modules/fseeko (configure.ac-early): Likewise.
449         * modules/ftello (configure.ac-early): Likewise.
450         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
451         AC_FUNC_FSEEKO for this.
452         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
453         (gl_CHECK_FSEEKO): Remove macro.
454
455 2007-04-26  Bruno Haible  <bruno@clisp.org>
456
457         * tests/test-fflush.c (main): Also check the ftell result after
458         fflush and fseek/fseeko.
459         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
460         file descriptor position cache in the stream.
461         * lib/fseeko.c (rpl_fseeko): Likewise.
462
463 2007-04-26  Bruno Haible  <bruno@clisp.org>
464
465         * modules/fflush-tests (Depends-on): Add fseeko.
466
467 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
468             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
469
470         * lib/argz_.h: ensure error_t definition is obtained in same
471         mechanism system argz.h would have.
472         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
473         argz facilities are known bad.  Err on the side of caution if
474         cross-compiling.
475
476 2007-04-25  Eric Blake  <ebb9@byu.net>
477
478         * lib/fpurge.c (includes): Use stdlib.h for free.
479         * tests/test-fflush.c (main): Also test fflush-fseeko.
480
481 2007-04-25  Bruno Haible  <bruno@clisp.org>
482
483         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
484         * lib/fseeko.c: New file.
485         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
486         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
487         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
488         gl_FUNC_FSEEKO.
489         (gl_FUNC_FSEEKO): Invoke it.
490         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
491         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
492         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
493
494 2007-04-25  Bruno Haible  <bruno@clisp.org>
495
496         * modules/fflush (Depends-on): Add ftello.
497
498 2007-04-25  Bruno Haible  <bruno@clisp.org>
499
500         * modules/ftello-tests: New file.
501         * tests/test-ftello.c: New file.
502
503         * modules/ftello: New file.
504         * m4/ftello.m4: New file.
505         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
506         HAVE_FTELLO.
507         * lib/stdio_.h (ftello): New declaration.
508         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
509         HAVE_FTELLO.
510
511 2007-04-25  Bruno Haible  <bruno@clisp.org>
512
513         * modules/fseeko-tests: New file.
514         * tests/test-fseeko.c: New file.
515
516         * modules/fseeko: New file.
517         * m4/fseeko.m4: New file.
518         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
519         HAVE_FSEEKO.
520         * lib/stdio_.h (fseeko): New declaration.
521         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
522         HAVE_FSEEKO.
523
524 2007-04-25  Bruno Haible  <bruno@clisp.org>
525
526         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
527
528 2007-04-25  Bruno Haible  <bruno@clisp.org>
529
530         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
531         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
532         * tests/test-unistd.c: Likewise.
533         * tests/test-fcntl.c: Likewise.
534
535 2007-04-23  Eric Blake  <ebb9@byu.net>
536
537         * lib/fflush.c: Fix missing include.
538         Reported by Bruno Haible.
539
540 2007-04-23  Bruno Haible  <bruno@clisp.org>
541
542         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
543         Reported by Eric Blake.
544
545 2007-04-23  Bruno Haible  <bruno@clisp.org>
546
547         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
548
549 2007-04-23  Bruno Haible  <bruno@clisp.org>
550
551         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
552
553 2007-04-23  Bruno Haible  <bruno@clisp.org>
554
555         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
556         Needed on HP-UX 11.
557
558 2007-04-16  Eric Blake  <ebb9@byu.net>
559
560         Make fflush rely on fpurge.
561         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
562         open coding all variants.
563         * modules/fflush (Depends-on): Add fpurge and unistd.
564         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
565         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
566
567         Fix --with-tests compilation on cygwin.
568         * modules/argmatch-tests (Makefile.am): List gnulib library first
569         in LDADD.
570         * modules/argp-tests (Makefile.am): Likewise.
571         * modules/array-list-tests (Makefile.am): Likewise.
572         * modules/array-oset-tests (Makefile.am): Likewise.
573         * modules/avltree-list-tests (Makefile.am): Likewise.
574         * modules/avltree-oset-tests (Makefile.am): Likewise.
575         * modules/avltreehash-list-tests (Makefile.am): Likewise.
576         * modules/carray-list-tests (Makefile.am): Likewise.
577         * modules/dirname-tests (Makefile.am): Likewise.
578         * modules/frexp-tests (Makefile.am): Likewise.
579         * modules/isnanl-tests (Makefile.am): Likewise.
580         * modules/linked-list-tests (Makefile.am): Likewise.
581         * modules/linkedhash-list-tests (Makefile.am): Likewise.
582         * modules/lock-tests (Makefile.am): Likewise.
583         * modules/rbtree-list-tests (Makefile.am): Likewise.
584         * modules/rbtree-oset-tests (Makefile.am): Likewise.
585         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
586         * modules/tls-tests (Makefile.am): Likewise.
587         * modules/tsearch-tests (Makefile.am): Likewise.
588         * modules/xvasprintf-tests (Makefile.am): Likewise.
589
590         Fix fpurge for cygwin.
591         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
592         value.
593         * modules/fpurge-tests (Depends-on): Clean up trash.
594
595 2007-04-16  Simon Josefsson  <simon@josefsson.org>
596
597         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
598
599         * m4/autobuild.m4: Re-indent.
600
601 2007-04-13  Bruno Haible  <bruno@clisp.org>
602
603         * modules/fpurge-tests: New file.
604         * tests/test-fpurge.c: New file.
605
606         * modules/fpurge: New file.
607         * lib/fpurge.h: New file.
608         * lib/fpurge.c: New file.
609         * m4/fpurge.m4: New file.
610
611 2007-04-13  Bruno Haible  <bruno@clisp.org>
612
613         * modules/fbufmode-tests: New file.
614         * tests/test-fbufmode.c: New file.
615
616         * modules/fbufmode: New file.
617         * lib/fbufmode.h: New file.
618         * lib/fbufmode.c: New file.
619         * m4/fbufmode.m4: New file.
620
621 2007-04-13  Bruno Haible  <bruno@clisp.org>
622
623         * modules/fwritable-tests: New file.
624         * tests/test-fwritable.c: New file.
625
626         * modules/fwritable: New file.
627         * lib/fwritable.h: New file.
628         * lib/fwritable.c: New file.
629         * m4/fwritable.m4: New file.
630
631 2007-04-13  Bruno Haible  <bruno@clisp.org>
632
633         * modules/freadable-tests: New file.
634         * tests/test-freadable.c: New file.
635
636         * modules/freadable: New file.
637         * lib/freadable.h: New file.
638         * lib/freadable.c: New file.
639         * m4/freadable.m4: New file.
640
641 2007-04-13  Bruno Haible  <bruno@clisp.org>
642
643         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
644         MOSTLYCLEANFILES.
645
646 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
647
648         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
649         gzip bootstrap.conf to avoid dragging in i18n machinery.
650         (gnulib_tool_option): Use it.
651
652 2007-04-13  Bruno Haible  <bruno@clisp.org>
653
654         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
655         %F directives.
656         * tests/test-vasprintf-posix.c (test_function): Likewise.
657         * tests/test-snprintf-posix.h (test_function): Likewise.
658         * tests/test-sprintf-posix.h (test_function): Likewise.
659         * tests/test-fprintf-posix.h (test_function): Likewise.
660         * tests/test-printf-posix.h (test_function): Likewise.
661         * tests/test-fprintf-posix.out: Likewise.
662
663 2007-04-13  Bruno Haible  <bruno@clisp.org>
664
665         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
666         * modules/tls-tests (configure.ac): Likewise.
667         Reported by Arto C. Nirkko <anirkko@insel.ch>.
668
669 2007-04-13  Bruno Haible  <bruno@clisp.org>
670
671         * lib/tls.c (glthread_tls_get): Fix return type.
672         Patch by Arto C. Nirkko <anirkko@insel.ch>.
673
674 2007-04-12  Eric Blake  <ebb9@byu.net>
675
676         * modules/gettime (Depends-on): Remove gettime.
677         Reported by Dmitry V. Levin.
678
679 2007-04-12  Bruno Haible  <bruno@clisp.org>
680
681         * modules/fflush (Include): Mention <stdio.h>.
682         * modules/strtoimax (Include): Mention <inttypes.h>.
683         * modules/strtoumax (Include): Likewise.
684
685 2007-04-12  Eric Blake  <ebb9@byu.net>
686
687         * .cvsignore: New file.
688         * .gitignore: Likewise.
689
690 2007-04-12  Bruno Haible  <bruno@clisp.org>
691
692         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
693         not before, since $(LDADD) often contains libgnu.a.
694         * modules/striconv-tests (test_striconv_LDADD): Likewise.
695         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
696         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
697         Needed on Cygwin.
698
699 2007-04-12  Eric Blake  <ebb9@byu.net>
700
701         Work around glibc's failure to flush stdin on fclose.
702         * lib/closein.c (close_stdin): Flush stdin before closing.
703
704         Work around glibc's failure to reset seekable stdin on exit.
705         * modules/closein: New module.
706         * lib/closein.c: New file.
707         * lib/closein.h: Likewise.
708         * m4/closein.m4: Likewise.
709         * MODULES.html.sh (File stream based Input/Output): Document it.
710
711 2007-04-12  Simon Josefsson  <simon@josefsson.org>
712
713         * gnulib-tool: Rename generated 'autobuild' script to
714         'do-autobuild' in --create-megatestdir output.
715
716         * doc/gnulib.texi (Build robot for gnulib): Fix.
717
718 2007-04-12  Simon Josefsson  <simon@josefsson.org>
719
720         * modules/sysexits (Depends-on): Add absolute-header.
721
722 2007-04-12  Eric Blake  <ebb9@byu.net>
723
724         No need to preserve errno on success.
725         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
726         Reported by Bruno Haible.
727
728 2007-04-12  Simon Josefsson  <simon@josefsson.org>
729
730         * MODULES.html.sh (Support for maintaining and releasing
731         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
732
733 2007-04-12  Simon Josefsson  <simon@josefsson.org>
734
735         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
736
737 2007-04-12  Simon Josefsson  <simon@josefsson.org>
738
739         * modules/autobuild: New module.
740
741         * m4/autobuild.m4: New file.
742
743 2007-04-11  Bruno Haible  <bruno@clisp.org>
744
745         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
746         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
747         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
748         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
749         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
750         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
751         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
752         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
753         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
754         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
755         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
756         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
757         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
758         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
759         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
760         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
761         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
762         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
763         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
764         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
765         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
766         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
767         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
768         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
769         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
770         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
771         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
772         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
773         Reported by Eric Blake.
774
775 2007-04-11  Bruno Haible  <bruno@clisp.org>
776
777         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
778
779 2007-04-10  Bruno Haible  <bruno@clisp.org>
780
781         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
782         for NaN and Infinity. Needed on FreeBSD 6.1.
783         * tests/test-vasnprintf-posix.c (test_function): Undo last change
784         regarding results for "%010a" of Infinity and NaN.
785         * tests/test-vasprintf-posix.c (test_function): Likewise.
786         * tests/test-snprintf-posix.h (test_function): Likewise.
787         * tests/test-sprintf-posix.h (test_function): Likewise.
788         * tests/test-fprintf-posix.h (test_function): Likewise.
789         * tests/test-printf-posix.h (test_function): Likewise.
790         * tests/test-fprintf-posix.out: Likewise.
791
792 2007-04-10  Bruno Haible  <bruno@clisp.org>
793
794         * modules/locale-tests: New file.
795         * tests/test-locale.c: New file.
796
797         * modules/locale: New file.
798         * lib/locale_.h: New file.
799         * m4/locale_h.m4: New file.
800
801 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
802             Bruno Haible  <bruno@clisp.org>
803
804         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
805         be determined, test for availability of the copysignf, copysign,
806         copysignl functions.
807         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
808         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
809         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
810
811 2007-04-09  Eric Blake  <ebb9@byu.net>
812
813         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
814         * modules/stdio (Makefile.am): Support fflush.
815         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
816         * modules/fflush: New file.
817         * lib/fflush.c: Likewise.
818         * m4/fflush.m4: Likewise.
819         * modules/fflush-tests: New test.
820         * tests/test-fflush.c: Likewise.
821         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
822
823 2007-04-06  Bruno Haible  <bruno@clisp.org>
824
825         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
826         (VASNPRINTF): Use signbit for faster determination whether to print a
827         minus sign.
828         * modules/vasnprintf (Files): Remove lib/float+.h.
829         * modules/fprintf-posix (Depends-on): Add signbit.
830         * modules/snprintf-posix (Depends-on): Likewise.
831         * modules/sprintf-posix (Depends-on): Likewise.
832         * modules/vasnprintf-posix (Depends-on): Likewise.
833         * modules/vasprintf-posix (Depends-on): Likewise.
834         * modules/vfprintf-posix (Depends-on): Likewise.
835         * modules/vsnprintf-posix (Depends-on): Likewise.
836         * modules/vsprintf-posix (Depends-on): Likewise.
837
838 2007-04-06  Bruno Haible  <bruno@clisp.org>
839
840         * tests/test-frexp.c (main): Test also the sign bit of zero results.
841         * tests/test-frexpl.c (main): Likewise.
842         * tests/test-ldexpl.c (main): Likewise.
843         * modules/frexp-tests (Depends-on): Add signbit.
844         * modules/frexpl-tests (Depdends-on): Likewise.
845         * modules/ldexpl-tests (Depdends-on): Likewise.
846
847 2007-04-06  Bruno Haible  <bruno@clisp.org>
848
849         * modules/signbit-tests: New file.
850         * tests/test-signbit.c: New file.
851
852         * modules/signbit: New file.
853         * lib/signbitf.c: New file.
854         * lib/signbitd.c: New file.
855         * lib/signbitl.c: New file.
856         * m4/signbit.m4: New file.
857         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
858         (signbit): New macro.
859         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
860         REPLACE_SIGNBIT.
861         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
862         REPLACE_FREXPL into math.h.
863
864 2007-04-06  Bruno Haible  <bruno@clisp.org>
865
866         * modules/isnanf-nolibm-tests: New file.
867         * tests/test-isnanf.c: New file.
868
869         * modules/isnanf-nolibm: New file.
870         * lib/isnanf.h: New file.
871         * lib/isnanf.c: New file.
872         * lib/isnan.c: Consider the USE_FLOAT macro.
873         * m4/isnanf.m4: New file.
874
875 2007-04-06  Bruno Haible  <bruno@clisp.org>
876
877         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
878         (Link): New section.
879
880         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
881
882 2007-04-06  Bruno Haible  <bruno@clisp.org>
883
884         Assume the 'long double' type.
885         * m4/longdouble.m4: Remove file.
886         * config/srclist.txt: Don't mention longdouble.m4.
887         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
888         * lib/float+.h: Likewise.
889         * lib/frexp.c: Likewise.
890         * lib/printf-args.h: Likewise.
891         * lib/printf-args.c: Likewise.
892         * lib/printf-frexp.c: Likewise.
893         * lib/printf-parse.c: Likewise.
894         * lib/vasnprintf.c: Likewise.
895         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
896         * m4/intl.m4: Likewise.
897         * m4/isnanl.m4: Likewise.
898         * m4/printf.m4: Likewise.
899         * m4/printf-frexpl.m4: Likewise.
900         * m4/vasnprintf.m4: Likewise.
901         * modules/allocsa (Files): Remove m4/longdouble.m4.
902         * modules/gettext (Files): Likewise.
903         * modules/relocatable-prog-wrapper (Files): Likewise.
904         * modules/vasnprintf (Files): Likewise.
905         * modules/isnanl (Files): Likewise.
906         (Include): Simplify.
907         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
908         (Include): Simplify.
909         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
910         (Include): Simplify.
911         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
912         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
913         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
914         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
915         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
916         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
917         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
918         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
919         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
920         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
921         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
922         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
923         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
924         * tests/test-isnanl.c: Likewise.
925         * tests/test-snprintf-posix.h: Likewise.
926         * tests/test-sprintf-posix.h: Likewise.
927         * tests/test-vasnprintf-posix.c: Likewise.
928         * tests/test-vasnprintf-posix2.c: Likewise.
929         * tests/test-vasprintf-posix.c: Likewise.
930
931 2007-04-06  Bruno Haible  <bruno@clisp.org>
932
933         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
934         * lib/math_.h [__DECC]: Include the overridden include file through
935         #include_next, outside the double-inclusion guard.
936         * lib/stdio_.h [__DECC]: Likewise.
937         * lib/stdlib_.h [__DECC]: Likewise.
938         * lib/string_.h [__DECC]: Likewise.
939         * lib/time_.h [__DECC]: Likewise.
940         * lib/wchar_.h [__DECC]: Likewise.
941         * lib/wctype_.h [__DECC]: Likewise.
942         * lib/inttypes_.h [__DECC]: Likewise.
943         Reported by Albert Chin <china@thewrittenword.com> in
944         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
945
946 2007-04-04  Eric Blake  <ebb9@byu.net>
947
948         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
949         1.5.x.
950
951 2007-04-04  Bruno Haible  <bruno@clisp.org>
952
953         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
954         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
955
956 2007-04-04  Bruno Haible  <bruno@clisp.org>
957
958         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
959         results for "%010a" of Infinity and NaN.
960         * tests/test-vasprintf-posix.c (test_function): Likewise.
961         * tests/test-snprintf-posix.h (test_function): Likewise.
962         * tests/test-sprintf-posix.h (test_function): Likewise.
963         * tests/test-fprintf-posix.h (test_function): Remove these tests.
964         * tests/test-printf-posix.h (test_function): Likewise.
965         * tests/test-fprintf-posix.out: Update.
966         Needed for FreeBSD 6.1.
967
968 2007-04-04  Bruno Haible  <bruno@clisp.org>
969
970         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
971         directly used by the gnulib modules nor by gnulib-tool.
972
973 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
974
975         * DEPENDENCIES: Give overall description of version dependency
976         desirability.  Use more-typical names for apps.
977         Add shell, coreutils, diffutils, grep, tar, gzip.
978
979 2007-04-04  Simon Josefsson  <simon@josefsson.org>
980
981         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
982
983 2007-04-04  Karl Berry  <karl@gnu.org>
984
985         * MODULES.html.sh (func_module): missing '.
986
987 2007-04-03  Bruno Haible  <bruno@clisp.org>
988
989         * modules/argmatch-tests (Makefile.am): New variable
990         test_argmatch_LDADD.
991         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
992         * modules/array-list-tests (Makefile.am): New variable
993         test_array_list_LDADD.
994         * modules/array-oset-tests (Makefile.am): New variable
995         test_array_oset_LDADD.
996         * modules/avltree-list-tests (Makefile.am): New variable
997         test_avltree_list_LDADD.
998         * modules/avltree-oset-tests (Makefile.am): New variable
999         test_avltree_oset_LDADD.
1000         * modules/avltreehash-list-tests (Makefile.am): New variable
1001         test_avltreehash_list_LDADD.
1002         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
1003         test_canonicalize_lgpl_LDADD.
1004         * modules/carray-list-tests (Makefile.am): New variable
1005         test_carray_list_LDADD.
1006         * modules/dirname-tests (Makefile.am): New variable
1007         test_dirname_LDADD.
1008         * modules/linked-list-tests (Makefile.am): New variable
1009         test_linked_list_LDADD.
1010         * modules/linkedhash-list-tests (Makefile.am): New variable
1011         test_linkedhash_list_LDADD.
1012         * modules/rbtree-list-tests (Makefile.am): New variable
1013         test_rbtree_list_LDADD.
1014         * modules/rbtree-oset-tests (Makefile.am): New variable
1015         test_rbtree_oset_LDADD.
1016         * modules/rbtreehash-list-tests (Makefile.am): New variable
1017         test_rbtreehash_list_LDADD.
1018         * modules/xvasprintf-tests (Makefile.am): New variable
1019         test_xvasprintf_LDADD.
1020         Reported by Eric Blake.
1021
1022 2007-04-03  Eric Blake  <ebb9@byu.net>
1023
1024         * DEPENDENCIES: Weaken m4 requirements.
1025
1026 2007-04-03  Bruno Haible  <bruno@clisp.org>
1027
1028         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
1029         * modules/isnanl-tests (configure.ac): Likewise.
1030
1031 2007-04-03  Ben Pfaff  <blp@gnu.org>
1032
1033         * modules/iconv_open: Add $(srcdir)/ to source directory
1034         references in Makefile fragments that call gperf, to fix VPATH
1035         builds.
1036
1037 2007-04-03  Bruno Haible  <bruno@clisp.org>
1038
1039         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
1040         * lib/ldexpl.c: Undo last change.
1041
1042 2007-04-03  Bruno Haible  <bruno@clisp.org>
1043
1044         * modules/printf-frexpl (Depends-on): Undo last change.
1045         (Files): Add m4/ldexpl.m4.
1046
1047 2007-04-03  Bruno Haible  <bruno@clisp.org>
1048
1049         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
1050         * modules/isnanl (Link): New section.
1051
1052         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
1053         * modules/frexp (Link): New section.
1054
1055         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
1056         * modules/frexpl (Link): New section.
1057
1058         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
1059         * modules/ldexpl (Link): New section.
1060
1061 2007-04-03  Bruno Haible  <bruno@clisp.org>
1062
1063         * modules/TEMPLATE-EXTENDED: New file.
1064         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
1065
1066 2007-04-03  Bruno Haible  <bruno@clisp.org>
1067
1068         * DEPENDENCIES: New file.
1069         Suggested by Simon Josefsson.
1070
1071 2007-04-03  Bruno Haible  <bruno@clisp.org>
1072
1073         * doc/gnulib.texi: Escape @.
1074
1075 2007-04-03  James Youngman  <jay@gnu.org>
1076         and Paul Eggert  <eggert@cs.ucla.edu>
1077
1078         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
1079         birthtime on all systems that have birthtime, not just those which
1080         use st_birthtimensec rather than st_birthtim.  Putting zero in
1081         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
1082         that the birth time is not available for files on an NFS mount.
1083
1084 2007-04-03  Simon Josefsson  <simon@josefsson.org>
1085
1086         * modules/memxor: Move back from crypto/, suggested by Bruno.
1087         * modules/crypto/hmac-sha1: Fix memxor dependency.
1088
1089         * modules/crypto/gc: Moved from ../.
1090
1091 2007-04-02  Eric Blake  <ebb9@byu.net>
1092
1093         * lib/ldexpl.c (includes): Avoid libm.
1094
1095         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
1096
1097 2007-04-02  Bruno Haible  <bruno@clisp.org>
1098
1099         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
1100         on IRIX.
1101
1102 2007-04-02  Bruno Haible  <bruno@clisp.org>
1103
1104         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
1105         x86 or x86_64 platforms running MacOS X.
1106         Reported by Ryan Schmidt <@ryandesign.com>.
1107
1108 2007-04-02  Bruno Haible  <bruno@clisp.org>
1109
1110         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
1111         i386.
1112
1113 2007-04-01  Simon Josefsson  <simon@josefsson.org>
1114
1115         * modules/crypto/arcfour: Moved from ../.
1116         * modules/crypto/arcfour-tests: Moved from ../.
1117         * modules/crypto/arctwo: Moved from ../.
1118         * modules/crypto/arctwo-tests: Moved from ../.
1119         * modules/crypto/des: Moved from ../.
1120         * modules/crypto/des-tests: Moved from ../.
1121         * modules/crypto/gc-arcfour: Moved from ../.
1122         * modules/crypto/gc-arcfour-tests: Moved from ../.
1123         * modules/crypto/gc-arctwo: Moved from ../.
1124         * modules/crypto/gc-arctwo-tests: Moved from ../.
1125         * modules/crypto/gc-des: Moved from ../.
1126         * modules/crypto/gc-des-tests: Moved from ../.
1127         * modules/crypto/gc-hmac-md5: Moved from ../.
1128         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
1129         * modules/crypto/gc-hmac-sha1: Moved from ../.
1130         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
1131         * modules/crypto/gc-md2: Moved from ../.
1132         * modules/crypto/gc-md2-tests: Moved from ../.
1133         * modules/crypto/gc-md4: Moved from ../.
1134         * modules/crypto/gc-md4-tests: Moved from ../.
1135         * modules/crypto/gc-md5: Moved from ../.
1136         * modules/crypto/gc-md5-tests: Moved from ../.
1137         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
1138         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
1139         * modules/crypto/gc-random: Moved from ../.
1140         * modules/crypto/gc-rijndael: Moved from ../.
1141         * modules/crypto/gc-rijndael-tests: Moved from ../.
1142         * modules/crypto/gc-sha1: Moved from ../.
1143         * modules/crypto/gc-sha1-tests: Moved from ../.
1144         * modules/crypto/gc-tests: Moved from ../.
1145         * modules/crypto/hmac-md5: Moved from ../.
1146         * modules/crypto/hmac-md5-tests: Moved from ../.
1147         * modules/crypto/hmac-sha1: Moved from ../.
1148         * modules/crypto/hmac-sha1-tests: Moved from ../.
1149         * modules/crypto/md2: Moved from ../.
1150         * modules/crypto/md2-tests: Moved from ../.
1151         * modules/crypto/md4: Moved from ../.
1152         * modules/crypto/md4-tests: Moved from ../.
1153         * modules/crypto/md5: Moved from ../.
1154         * modules/crypto/md5-tests: Moved from ../.
1155         * modules/crypto/memxor: Moved from ../.
1156         * modules/crypto/rijndael: Moved from ../.
1157         * modules/crypto/rijndael-tests: Moved from ../.
1158         * modules/crypto/sha1: Moved from ../.
1159
1160 2007-03-30  James Youngman  <jay@gnu.org>
1161
1162         * tests/test-stat-time.c (prepare_test): use chmod() rather than
1163         rename() to change the ctime of a file (because ctime is unaffected
1164         by rename on jfs2 on AIX 5.1).
1165         (main): Start by doing cleanup, in case a previous run failed leaving
1166         test files behind.
1167
1168 2007-03-31  Bruno Haible  <bruno@clisp.org>
1169
1170         Support old proprietary implementations of iconv.
1171         * modules/iconv_open: New file.
1172         * lib/iconv_.h: New file.
1173         * m4/iconv_h.m4: New file.
1174         * lib/iconv_open.c: New file.
1175         * lib/iconv_open-aix.gperf: New file.
1176         * lib/iconv_open-hpux.gperf: New file.
1177         * lib/iconv_open-irix.gperf: New file.
1178         * lib/iconv_open-osf.gperf: New file.
1179         * m4/iconv_open.m4: New file.
1180         * modules/linebreak (Depends-on): Add iconv_open.
1181         * modules/striconv (Depends-on): Likewise.
1182         * modules/striconveh (Depends-on): Likewise.
1183         * modules/unicodeio (Depends-on): Likewise.
1184         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
1185         (iconv_t)(-1).
1186         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
1187         conversion if cd is (iconv_t)(-1).
1188         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
1189         is not possible.
1190
1191 2007-03-31  Bruno Haible  <bruno@clisp.org>
1192
1193         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
1194         work on Solaris either. Protect also second use of "autodetect_jp".
1195
1196 2007-03-31  Bruno Haible  <bruno@clisp.org>
1197
1198         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
1199         the function is not present.
1200
1201 2007-03-31  Bruno Haible  <bruno@clisp.org>
1202
1203         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
1204         the function is not present.
1205
1206 2007-03-31  Bruno Haible  <bruno@clisp.org>
1207
1208         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
1209         a bug in HP-UX iconv_open().
1210
1211 2007-03-31  Bruno Haible  <bruno@clisp.org>
1212
1213         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
1214         (Mathematics <math.h>): New section, add fpieee.
1215         (Input/output <stdio.h>): Add fseterr.
1216         (Mathematics <math.h>): New section, add printf-frexp.
1217         (Container data structures): Add sublist.
1218         (Core language properties): Add fpucw, inline.
1219         (Functions for greatest-width integer types <inttypes.h>): Add
1220         imaxabs, imaxdiv, inttypes.
1221         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
1222         isnanl-nolibm, ldexp.
1223         (Mathematics <math.h>): New section, add printf-frexpl.
1224         (Support for systems lacking POSIX:2001): Add fprintf-posix,
1225         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
1226         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
1227         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
1228         (Unicode string functions): Add unistr/u*-mbtoucr.
1229         (Java): Add javacomp-script, javaexec-script.
1230         (C#): Add csharpcomp-script, csharpexec-script.
1231         (Support for building libraries and executables): Add havelib,
1232         relocatable-*.
1233         (Support for maintaining and releasing projects): Renamed from
1234         'Support for maintaining and release projects'. Add announce-gen.
1235
1236 2007-03-31  Bruno Haible  <bruno@clisp.org>
1237
1238         * README: Talk primarily about git.
1239         (git and CVS): Renamed from CVS.
1240         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
1241         gnulib is available through git.
1242         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
1243
1244 2007-03-30  Bruno Haible  <bruno@clisp.org>
1245
1246         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
1247         * lib/poll_.h: Likewise.
1248         * lib/stat_.h: Likewise.
1249         * lib/sys_time_.h: Likewise.
1250         * lib/sysexit_.h: Likewise.
1251         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
1252         * lib/stdbool_.h: Likewise.
1253         * lib/byteswap_.h: Add double-inclusion guard.
1254
1255 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
1256
1257         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
1258
1259 2007-03-30  Karl Berry  <karl@gnu.org>
1260
1261         * config/srclist-update: double space after USA in the license
1262         substitution, since that's how it's usually (?) written.
1263
1264 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
1265
1266         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
1267         reported by Bruno Haible.
1268
1269 2007-03-29  Bruno Haible  <bruno@clisp.org>
1270
1271         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
1272         a bug in AIX iconv().
1273
1274 2007-03-29  Bruno Haible  <bruno@clisp.org>
1275
1276         * modules/ldexpl-tests: New file.
1277         * tests/test-ldexpl.c: New file.
1278
1279 2007-03-29  Bruno Haible  <bruno@clisp.org>
1280
1281         * lib/ldexpl.c: Include fpucw.h.
1282         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
1283         multiplication.
1284         * modules/ldexpl (Depends-on): Add fpucw.
1285
1286 2007-03-29  Bruno Haible  <bruno@clisp.org>
1287
1288         * modules/ldexpl: New file.
1289         * m4/ldexpl.m4: New file.
1290         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
1291         set.
1292         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
1293         REPLACE_LDEXPL.
1294         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
1295         REPLACE_LDEXPL.
1296         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
1297         gl_FUNC_LDEXPL_WORKS.
1298         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
1299         * modules/mathl (Files): Remove lib/ldexpl.c.
1300         (Depends-on): Add ldexpl.
1301
1302 2007-03-29  Bruno Haible  <bruno@clisp.org>
1303
1304         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
1305
1306 2007-03-29  Bruno Haible  <bruno@clisp.org>
1307
1308         * tests/test-striconveh.c (main): Don't assume that a direct conversion
1309         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
1310         and possibly also HP-UX.
1311         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
1312         work on AIX, IRIX, HP-UX, OSF/1.
1313         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
1314         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
1315         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
1316         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
1317         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
1318         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
1319
1320 2007-03-29  Bruno Haible  <bruno@clisp.org>
1321
1322         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
1323
1324 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
1325
1326         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
1327         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
1328
1329 2007-03-29  Eric Blake  <ebb9@byu.net>
1330
1331         * lib/acl-internal.h: Remove redundant include.
1332         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
1333         Cygwin when a file is locked.
1334
1335 2007-03-29  Bruno Haible  <bruno@clisp.org>
1336
1337         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
1338         file.
1339         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
1340
1341 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
1342
1343         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
1344         try to remove a parent directory if the child couldn't be removed
1345         (except for the first rmdir, which could fail because the child
1346         doesn't exist).  Problem reported by Jeff Blaine in
1347         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
1348
1349 2007-03-28  Bruno Haible  <bruno@clisp.org>
1350
1351         * lib/striconveh.c (utf8conv_carefully): New function.
1352         (mem_cd_iconveh_internal): Invoke it.
1353
1354 2007-03-28  Bruno Haible  <bruno@clisp.org>
1355
1356         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
1357         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
1358         input.
1359         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
1360         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
1361         unistr/u8-uctomb.
1362
1363 2007-03-28  Bruno Haible  <bruno@clisp.org>
1364
1365         * modules/unistr/u8-mbtoucr: New file.
1366         * lib/unistr/u8-mbtoucr.c: New file.
1367         * modules/unistr/u16-mbtoucr: New file.
1368         * lib/unistr/u16-mbtoucr.c: New file.
1369         * modules/unistr/u16-mbtoucr: New file.
1370         * lib/unistr/u16-mbtoucr.c: New file.
1371         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
1372
1373 2007-03-27  Simon Josefsson  <simon@josefsson.org>
1374             Bruno Haible  <bruno@clisp.org>
1375
1376         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
1377         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
1378         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
1379
1380         * m4/stdio_h.m4: Add stubs for vasprintf too.
1381
1382         * modules/stdio: Support vasprintf in sed command.
1383
1384         * modules/vasprintf: Depend on stdio for prototypes.  Remove
1385         vasprintf.h.  Add stdio module indicator.
1386
1387         * lib/stdio_.h: Declare asprintf and vasprintf, based on
1388         vasprintf.h.
1389
1390         * lib/vasprintf.h: File removed.
1391
1392         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
1393         * lib/vasprintf.c: Ditto.
1394         * lib/xvasprintf.c: Ditto.
1395         * tests/test-vasprintf-posix.c: Ditto.
1396         * tests/test-vasprintf.c: Ditto.
1397
1398 2007-03-27  Bruno Haible  <bruno@clisp.org>
1399
1400         Make vasnprintf multithread-safe.
1401         * lib/vasnprintf.c (decimal_point_char): New function.
1402         (VASNPRINTF): Use it.
1403         Suggested by Simon Josefsson.
1404
1405 2007-03-27  Eric Blake  <ebb9@byu.net>
1406
1407         Support sub-second birthtime on cygwin.
1408         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
1409         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
1410         (get_stat_birthtime): Also work with st_birthtim.
1411
1412 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
1413
1414         * lib/stat-time.h (USE_BIRTHTIME): Remove.
1415         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
1416         (get_stat_birthtime_ns): Do not try to use "spare" fields.
1417         (get_stat_birthtime_ns): Simplify compile-time tests.
1418         (get_stat_birthtime): Change the API to look like
1419         get_stat_mtime etc., except return a negative tv_nsec on error.
1420         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
1421         Don't check for "spare" fields.
1422         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
1423         or for struct stat.st_birthtime, as these tests aren't used.
1424         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
1425
1426 2007-03-27  Bruno Haible  <bruno@clisp.org>
1427
1428         * lib/stat-time.h: Include <sys/stat.h>.
1429
1430 2007-03-27  James Youngman  <jay@gnu.org>
1431
1432         * lib/stat-time.h (get_stat_birthtime): New function for
1433           retrieving st_birthtime as provided by UFS2 (hence *BSD).
1434         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
1435           and its variants.
1436         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
1437         * modules/stat-time-test: New file.
1438         * tests/test-stat-time.c: New test, devised by Bruno Haible.
1439
1440 2007-03-26  Bruno Haible  <bruno@clisp.org>
1441
1442         Better support of signalling NaNs.
1443         * lib/atanl.c: Include isnanl.h.
1444         (atanl): Perform test for NaN at the beginning of the function and
1445         through a call to isnanl.
1446         * lib/cosl.c: Include isnanl.h.
1447         (cosl): Perform test for NaN at the beginning of the function and
1448         through a call to isnanl.
1449         * lib/ldexpl.c: Include isnanl.h.
1450         (ldexpl): Perform test for NaN through a call to isnanl.
1451         * lib/logl.c: Include isnanl.h.
1452         (logl): Perform test for NaN at the beginning of the function and
1453         through a call to isnanl.
1454         * lib/sinl.c: Include isnanl.h.
1455         (sinl): Perform test for NaN at the beginning of the function and
1456         through a call to isnanl.
1457         * lib/sqrtl.c: Include isnanl.h.
1458         (sqrtl): Perform test for NaN at the beginning of the function and
1459         through a call to isnanl.
1460         * lib/tanl.c: Include isnanl.h.
1461         (tanl): Perform test for NaN at the beginning of the function and
1462         through a call to isnanl.
1463         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
1464         * modules/mathl (Depends-on): Add isnanl.
1465
1466 2007-03-26  Eric Blake  <ebb9@byu.net>
1467
1468         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
1469         regression in logic sense of previous patch.
1470
1471 2007-03-26  Bruno Haible  <bruno@clisp.org>
1472
1473         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
1474         unportable shell command "if ! ...".
1475         Reported by Ralf Wildenhues.
1476
1477 2007-03-25  Bruno Haible  <bruno@clisp.org>
1478
1479         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
1480         <sysexits.h> file, and only add EX_CONFIG.
1481         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
1482         absolute file name and whether it is sufficient. Substitute also
1483         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
1484         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
1485         ABSOLUTE_SYSEXITS_H into sysexits.h.
1486
1487 2007-03-25  Bruno Haible  <bruno@clisp.org>
1488
1489         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
1490         hints is NULL.
1491
1492 2007-03-25  Bruno Haible  <bruno@clisp.org>
1493
1494         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
1495         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
1496
1497 2007-03-25  Bruno Haible  <bruno@clisp.org>
1498
1499         * lib/vasnprintf.c: Include langinfo.h.
1500         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
1501         multithread-safe.
1502         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
1503         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
1504         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
1505         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
1506         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
1507         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
1508         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
1509         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
1510         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
1511         Reported by Simon Josefsson.
1512
1513 2007-03-25  Bruno Haible  <bruno@clisp.org>
1514
1515         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
1516         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
1517         * modules/vasnprintf (Depends-on): Add stdint.
1518
1519 2007-03-25  Bruno Haible  <bruno@clisp.org>
1520
1521         * modules/fpieee: New file.
1522         * m4/fpieee.m4: New file.
1523         * modules/isnan-nolibm (Depends-on): Add fpieee.
1524         * modules/isnanl-nolibm (Depends-on): Add fpieee.
1525         * modules/isnanl (Depends-on): Add fpieee.
1526
1527 2007-03-25  Bruno Haible  <bruno@clisp.org>
1528
1529         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
1530
1531 2007-03-25  Bruno Haible  <bruno@clisp.org>
1532
1533         Avoid test failures on IRIX 6.5.
1534         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
1535         (main): Use it.
1536         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
1537         macros.
1538         (main): Use them.
1539
1540 2007-03-25  Bruno Haible  <bruno@clisp.org>
1541
1542         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
1543         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
1544         exists but doesn't work.
1545         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
1546         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
1547         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
1548         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
1549
1550 2007-03-25  Bruno Haible  <bruno@clisp.org>
1551
1552         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
1553         returns inf. Needed on IRIX 6.5.
1554
1555 2007-03-25  Bruno Haible  <bruno@clisp.org>
1556
1557         * tests/test-frexpl.c: Include isnanl-nolibm.h.
1558         (main): Use isnanl instead of x != x idiom.
1559         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
1560
1561         * tests/test-frexp.c: Include isnan.h.
1562         (main): Use isnan instead of x != x idiom.
1563         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
1564
1565 2007-03-25  Bruno Haible  <bruno@clisp.org>
1566
1567         * tests/test-frexp.c (NaN): New function/macro.
1568         (main): Use it instead of 0.0 / 0.0.
1569         * tests/test-isnan.c (NaN): New function/macro.
1570         (main): Use it instead of 0.0 / 0.0.
1571         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
1572         (test_function): Use it instead of 0.0 / 0.0.
1573         * tests/test-vasprintf-posix.c (NaN): New function/macro.
1574         (test_function): Use it instead of 0.0 / 0.0.
1575         * tests/test-snprintf-posix.h (NaN): New function/macro.
1576         (test_function): Use it instead of 0.0 / 0.0.
1577         * tests/test-sprintf-posix.h (NaN): New function/macro.
1578         (test_function): Use it instead of 0.0 / 0.0.
1579         * tests/test-fprintf-posix.h (NaN): New function/macro.
1580         (test_function): Use it instead of 0.0 / 0.0.
1581         * tests/test-printf-posix.h (NaN): New function/macro.
1582         (test_function): Use it instead of 0.0 / 0.0.
1583
1584         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
1585
1586 2007-03-25  Bruno Haible  <bruno@clisp.org>
1587
1588         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
1589
1590 2007-03-25  Bruno Haible  <bruno@clisp.org>
1591
1592         * lib/regexec.c (merge_state_with_log): Make static.
1593
1594 2007-03-25  Bruno Haible  <bruno@clisp.org>
1595
1596         * lib/trigl.c (kernel_rem_pio2): Make static.
1597
1598 2007-03-25  Bruno Haible  <bruno@clisp.org>
1599
1600         * lib/sincosl.c (sincosl_table): Make static.
1601
1602 2007-03-25  Bruno Haible  <bruno@clisp.org>
1603
1604         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
1605         if the compiler does not support C99.
1606
1607 2007-03-25  Bruno Haible  <bruno@clisp.org>
1608
1609         * modules/time (Makefile.am): Ensure all rule action lines start with a
1610         tab.
1611
1612 2007-03-24  Bruno Haible  <bruno@clisp.org>
1613
1614         * modules/tsearch-tests: New file.
1615         * tests/test-tsearch.sh: New file.
1616         * tests/test-tsearch.c: New file, mostly copied from glibc.
1617
1618         * modules/search-tests: New file.
1619         * tests/test-search.c: New file.
1620
1621         * modules/search: New file.
1622         * lib/search_.h: New file, incorporating lib/tsearch.h.
1623         * m4/search_h.m4: New file.
1624         * lib/tsearch.h: Remove file.
1625         * lib/tsearch.c: Include search.h instead of tsearch.h.
1626         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
1627         HAVE_TSEARCH.
1628         * modules/tsearch (Files): Remove lib/tsearch.h.
1629         (Depends-on): Add search.
1630         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
1631         (Include): Change tsearch.h into search.h.
1632
1633 2007-03-24  Bruno Haible  <bruno@clisp.org>
1634
1635         * modules/fpucw: New file.
1636         * lib/fpucw.h: New file.
1637         * lib/frexp.c: Include fpucw.h.
1638         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
1639         (FUNC): Use them.
1640         * lib/printf-frexp.c: Include fpucw.h.
1641         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
1642         (FUNC): Use them.
1643         * lib/vasnprintf.c: Include fpucw.h.
1644         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
1645         'long double' calculations.
1646         * tests/test-frexpl.c: Include fpucw.h.
1647         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
1648         * tests/test-printf-frexpl.c: Include fpucw.h.
1649         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
1650         * modules/frexpl (Depends-on): Add fpucw.
1651         * modules/printf-frexpl (Depends-on): Likewise.
1652         * modules/fprintf-posix (Depends-on): Likewise.
1653         * modules/snprintf-posix (Depends-on): Likewise.
1654         * modules/sprintf-posix (Depends-on): Likewise.
1655         * modules/vasnprintf-posix (Depends-on): Likewise.
1656         * modules/vasprintf-posix (Depends-on): Likewise.
1657         * modules/vfprintf-posix (Depends-on): Likewise.
1658         * modules/vsnprintf-posix (Depends-on): Likewise.
1659         * modules/vsprintf-posix (Depends-on): Likewise.
1660         * modules/frexpl-tests (Depends-on): Likewise.
1661         * modules/printf-frexpl-tests (Depends-on): Likewise.
1662
1663 2007-03-24  Bruno Haible  <bruno@clisp.org>
1664
1665         * lib/float+.h: New file.
1666         * lib/isnan.c: Include float+.h.
1667         (SIZE): New macro.
1668         (FUNC): Compare only SIZE bytes of the value.
1669         * lib/vasnprintf.c: Include float+.h.
1670         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
1671         SIZEOF_LDBL or SIZEOF_DBL bytes.
1672         * modules/isnan-nolibm (Files): Add lib/float+.h.
1673         * modules/isnanl-nolibm (Files): Add lib/float+.h.
1674         * modules/isnanl (Files): Add lib/float+.h.
1675         * modules/vasnprintf (Files): Add lib/float+.h.
1676
1677 2007-03-24  Bruno Haible  <bruno@clisp.org>
1678
1679         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
1680         include isnanl-nolibm.h.
1681
1682 2007-03-24  Bruno Haible  <bruno@clisp.org>
1683
1684         * tests/test-read-file.c (main): Don't produce spurious output for
1685         expected situations. Make the test fail if it encountered unexpected
1686         results.
1687
1688 2007-03-24  Bruno Haible  <bruno@clisp.org>
1689
1690         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
1691         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
1692
1693 2007-03-24  Bruno Haible  <bruno@clisp.org>
1694
1695         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
1696
1697 2007-03-24  Bruno Haible  <bruno@clisp.org>
1698
1699         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
1700         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
1701
1702         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
1703         * modules/utf8-ucs4: Turn into a symbolic link to module
1704         unistr/u8-mbtouc.
1705
1706         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
1707         utf8-ucs4-unsafe.
1708         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
1709         unistr/u8-mbtouc-unsafe.
1710
1711         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
1712         * modules/utf16-ucs4: Turn into a symbolic link to module
1713         unistr/u16-mbtouc.
1714
1715         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
1716         utf16-ucs4-unsafe.
1717         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
1718         unistr/u16-mbtouc-unsafe.
1719
1720         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
1721         * modules/ucs4-utf8: Turn into a symbolic link to module
1722         unistr/u8-ubtomb.
1723
1724         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
1725         * modules/ucs4-utf16: Turn into a symbolic link to module
1726         unistr/u16-ubtomb.
1727
1728 2007-03-24  Bruno Haible  <bruno@clisp.org>
1729
1730         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
1731         Enable the function only if HAVE_INLINE.
1732         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
1733         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
1734         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
1735         Enable the function only if HAVE_INLINE.
1736         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
1737         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
1738         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
1739         Enable the function only if HAVE_INLINE.
1740         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
1741         Enable the function only if HAVE_INLINE.
1742         * modules/utf8-ucs4: Update.
1743         * modules/utf8-ucs4-unsafe: Update.
1744         * modules/utf16-ucs4: Update.
1745         * modules/utf16-ucs4-unsafe: Update.
1746         * modules/ucs4-utf8: Update.
1747         * modules/ucs4-utf16: Update.
1748
1749 2007-03-24  Bruno Haible  <bruno@clisp.org>
1750
1751         * lib/utf8-ucs4.h: Remove file.
1752         * lib/utf8-ucs4-unsafe.h: Remove file.
1753         * lib/utf16-ucs4.h: Remove file.
1754         * lib/utf16-ucs4-unsafe.h: Remove file.
1755         * lib/ucs4-utf8.h: Remove file.
1756         * lib/ucs4-utf16.h: Remove file.
1757         * lib/unistr.h: Include their previous contents.
1758         * m4/utf-ucs4.m4: Remove file.
1759         * m4/ucs4-utf.m4: Remove file.
1760         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
1761         (Depends-on): Add unistr/base.
1762         (configure.ac): Remove gl_UTF_UCS4.
1763         (Makefile.am): Update.
1764         (Include): Change to unistr.h.
1765         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
1766         (Depends-on): Add unistr/base.
1767         (configure.ac): Remove gl_UTF_UCS4.
1768         (Makefile.am): Update.
1769         (Include): Change to unistr.h.
1770         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
1771         (Depends-on): Add unistr/base.
1772         (configure.ac): Remove gl_UTF_UCS4.
1773         (Makefile.am): Update.
1774         (Include): Change to unistr.h.
1775         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
1776         (Depends-on): Add unistr/base.
1777         (configure.ac): Remove gl_UTF_UCS4.
1778         (Makefile.am): Update.
1779         (Include): Change to unistr.h.
1780         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
1781         (Depends-on): Add unistr/base.
1782         (configure.ac): Remove gl_UCS4_UTF.
1783         (Makefile.am): Update.
1784         (Include): Change to unistr.h.
1785         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
1786         (Depends-on): Add unistr/base.
1787         (configure.ac): Remove gl_UCS4_UTF.
1788         (Makefile.am): Update.
1789         (Include): Change to unistr.h.
1790         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
1791         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
1792         utf8-ucs4-unsafe.h.
1793         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
1794         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
1795         utf16-ucs4-unsafe.h.
1796         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
1797         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
1798         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
1799         * lib/unistr/u8-strchr.c: Likewise.
1800         * lib/unistr/u8-strrchr.c: Likewise.
1801         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
1802         * lib/unistr/u16-strchr.c: Likewise.
1803         * lib/unistr/u16-strrchr.c: Likewise.
1804         * lib/striconveh.c: Update.
1805         * lib/linebreak.c: Update.
1806
1807 2007-03-24  Bruno Haible  <bruno@clisp.org>
1808
1809         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
1810         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
1811
1812 2007-03-22  Bruno Haible  <bruno@clisp.org>
1813
1814         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
1815
1816 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
1817
1818         * MODULES.html.sh (File system functions): New module write-any-file.
1819         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
1820         * m4/write-any-file.m4: New files.
1821
1822 2007-03-23  Eric Blake  <ebb9@byu.net>
1823
1824         * gnulib-tool: Rearrange space-tab sequences, since some editors
1825         like to eat them.
1826
1827 2007-03-23  Eric Blake  <ebb9@byu.net>
1828
1829         * lib/version-etc.c (version_etc_va): Update license wording to
1830         be more concise.  Recommended by Richard Stallman.
1831
1832 2007-03-22  Bruno Haible  <bruno@clisp.org>
1833
1834         * lib/poll.c (MSG_PEEK): New fallback definition.
1835
1836 2007-03-22  Bruno Haible  <bruno@clisp.org>
1837
1838         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
1839         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
1840         (main): Update.
1841         Fixes a compilation error on BeOS.
1842
1843 2007-03-22  Bruno Haible  <bruno@clisp.org>
1844
1845         * modules/frexpl-tests: New file.
1846         * tests/test-frexpl.c: New file.
1847
1848         * modules/frexpl: New file.
1849         * m4/frexpl.m4: New file.
1850         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
1851         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
1852         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
1853         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
1854         (Depends-on): Add frexpl. Remove isnanl-nolibm.
1855         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
1856
1857 2007-03-22  Bruno Haible  <bruno@clisp.org>
1858
1859         * lib/frexpl.c: Share code with lib/frexp.c.
1860         * modules/mathl (Files): Add lib/frexp.c.
1861         (Depends-on): Add isnanl-nolibm.
1862
1863 2007-03-22  Bruno Haible  <bruno@clisp.org>
1864
1865         * modules/printf-frexp (Files): Add m4/frexp.m4.
1866         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
1867         only if the found frexp function actually works.
1868
1869 2007-03-22  Bruno Haible  <bruno@clisp.org>
1870
1871         * lib/frexp.c: Remove older implementation that uses divisions.
1872
1873 2007-03-21  Bruno Haible  <bruno@clisp.org>
1874
1875         * modules/frexp-tests: New file.
1876         * tests/test-frexp.c: New file.
1877
1878         * modules/frexp: New file.
1879         * lib/frexp.c: New file.
1880         * m4/frexp.m4: New file.
1881         * lib/math_.h (frexp): New declaration.
1882         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
1883         REPLACE_FREXP.
1884         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
1885
1886 2007-03-21  Bruno Haible  <bruno@clisp.org>
1887
1888         * modules/isnanl-tests: New file.
1889         * tests/test-isnanl.c: New file.
1890
1891         * modules/isnanl: New file.
1892         * lib/isnanl.h: New file.
1893         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
1894         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
1895         gl_FUNC_ISNANL_WORKS.
1896         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
1897         New macros.
1898
1899 2007-03-21  Bruno Haible  <bruno@clisp.org>
1900
1901         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
1902         lib/isnanl.h.
1903         (Include): Update.
1904         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
1905         * lib/vasnprintf.c: Update.
1906         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
1907         tests/test-isnanl.h, remove tests/test-isnanl.c.
1908         (Makefile.am): Update.
1909         * tests/test-isnanl-nolibm.c: New file.
1910         * tests/test-isnanl.h: New file.
1911         * tests/test-isnanl.c: Remove file.
1912
1913 2007-03-21  Jim Meyering  <jim@meyering.net>
1914
1915         When trying to open ".", treat ESTALE like EACCES.
1916         * lib/savewd.c (savewd_save): Resort to forking not just upon
1917         failure with EACCES, but also when errno is ESTALE.
1918
1919 2007-03-20  Bruno Haible  <bruno@clisp.org>
1920
1921         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
1922         Needed on AIX 5.1. Reported by Matthew Woehlke.
1923
1924 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
1925
1926         Suggestions by Bruno Haible:
1927         * lib/acl-internal.h: Include "gettext.h" rather than rolling
1928         our own.
1929         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
1930         * modules/acl (Depends-on): Add gettext.
1931
1932 2007-03-19  Bruno Haible  <bruno@clisp.org>
1933
1934         * modules/iconvme: Remove file.
1935         * lib/iconvme.h: Remove file.
1936         * lib/iconvme.c: Remove file.
1937         * m4/iconvme.m4: Remove file.
1938
1939 2007-03-19  Bruno Haible  <bruno@clisp.org>
1940
1941         * doc/relocatable-maint.texi: Break long shell script line.
1942         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
1943
1944 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
1945
1946         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
1947         handle file_has_acl.
1948         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
1949         * lib/acl.c: Move header inclusions and related macro defns into
1950         lib/acl-internal.h.
1951         (S_ISLNK): Remove defn, since that's now done for us.
1952         (file_has_acl): Move to lib/file-has-acl.c.
1953         Call acl_trivial if available.  This is the crucial part of the fix.
1954         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
1955         shared within the library.  Rewrite a bit, partly to make it compatible
1956         with the GNU coding style.
1957         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
1958         Remove unnecessary double-quotes.
1959         Don't test for acl_to_text; the build will catch that.
1960         Replace acl_entries if it doesn't exist and it is needed.
1961         Check for -lsec and acl_trivial (as used on Solaris 10).
1962         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
1963         lib/file-has-acl.c.
1964         (Depends-on): Add sys_stat, for S_ISLNK.
1965
1966 2007-03-19  Ben Pfaff  <blp@gnu.org>
1967
1968         * doc/gnulib.texi: Fix typos.
1969         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
1970
1971 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
1972
1973         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
1974         If size is zero here, buf must be zero.
1975
1976 2007-03-19  Simon Josefsson  <simon@josefsson.org>
1977
1978         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
1979         <bruno@clisp.org>.
1980
1981 2007-03-18  Bruno Haible  <bruno@clisp.org>
1982
1983         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
1984         Suggested by Eric Blake.
1985
1986 2007-03-18  Ben Pfaff  <blp@gnu.org>
1987
1988         * doc/relocatable.texi: Recommend using as prefix a directory
1989         that does not exist and will never be created.  Based on
1990         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
1991         and others.
1992
1993 2007-03-17  Bruno Haible  <bruno@clisp.org>
1994
1995         * lib/fchownat.c: Include lchown.h.
1996
1997 2007-03-17  Bruno Haible  <bruno@clisp.org>
1998
1999         Fix endless loop when the given allocated size was > INT_MAX.
2000         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
2001         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
2002         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
2003         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
2004         * lib/sprintf.c (sprintf): Likewise.
2005
2006 2007-03-17  Bruno Haible  <bruno@clisp.org>
2007
2008         * tests/test-argp-2.sh (func_compare): Output a context diff.
2009
2010 2007-03-17  Bruno Haible  <bruno@clisp.org>
2011
2012         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
2013         locale's decimal-point character.
2014
2015 2007-03-17  Bruno Haible  <bruno@clisp.org>
2016
2017         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
2018         before comparing it. Needed because on some platforms (e.g. x86) a
2019         'long double' occupies less bytes than sizeof (long double).
2020
2021 2007-03-17  Bruno Haible  <bruno@clisp.org>
2022
2023         * tests/test-crc.c (main): Make printf statements 64-bit clean.
2024         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
2025         * tests/test-getaddrinfo.c (simple): Likewise.
2026         * tests/test-read-file.c (main): Likewise.
2027
2028 2007-03-17  Bruno Haible  <bruno@clisp.org>
2029
2030         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
2031
2032 2007-03-17  Bruno Haible  <bruno@clisp.org>
2033
2034         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
2035         unused variable.
2036
2037 2007-03-17  Bruno Haible  <bruno@clisp.org>
2038
2039         * tests/test-c-strcasecmp.c: Include c-strcase.h.
2040         * tests/test-c-strncasecmp.c: Likewise.
2041
2042 2007-03-17  Bruno Haible  <bruno@clisp.org>
2043
2044         * modules/stdlib (Depends-on): Add unistd.
2045         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
2046         Needed for MacOS X 10.3.
2047
2048 2007-03-17  Bruno Haible  <bruno@clisp.org>
2049
2050         * lib/unistr/u-strdup.h: Include <stdlib.h>.
2051
2052 2007-03-17  Bruno Haible  <bruno@clisp.org>
2053
2054         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
2055
2056 2007-03-17  Bruno Haible  <bruno@clisp.org>
2057
2058         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
2059         to reflect files copied from gnulib (with or without modifications).
2060         Suggested by Jim Meyering.
2061
2062 2007-03-17  Eric Blake  <ebb9@byu.net>
2063
2064         * NEWS: Document stdlib change from 2007-02-18.
2065
2066 2007-03-17  Jim Meyering  <jim@meyering.net>
2067
2068         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
2069         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
2070         someone uses a name containing shell meta-characters.
2071         Reported by Alfred M. Szmidt.
2072
2073         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
2074
2075 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
2076
2077         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
2078         and copy gettext configuration files only if configure.ac contains
2079         a use of AM_GNU_GETTEXT_VERSION.
2080
2081 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
2082
2083         * build-aux/bootstrap (gnulib_name): New variable.
2084         (gnulib_tool_options): Use it.
2085
2086 2007-03-13  Simon Josefsson  <simon@josefsson.org>
2087
2088         * tests/test-des.c: Use new namespace.
2089
2090 2007-03-15  Bruno Haible  <bruno@clisp.org>
2091
2092         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
2093         Reported by James Youngman <jay@gnu.org>.
2094
2095 2007-03-15  Bruno Haible  <bruno@clisp.org>
2096
2097         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
2098         declared prototype. Needed with cc on OSF/1 5.1.
2099
2100 2007-03-15  Bruno Haible  <bruno@clisp.org>
2101
2102         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
2103         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
2104         (struct gl_list_implementation): Add dispose_fn argument to the
2105         'create_empty', 'create' methods.
2106         (struct gl_list_impl_base): Add field 'dispose_fn'.
2107         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
2108         argument.
2109         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
2110         dispose_fn argument.
2111         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
2112         dispose_fn on the dropped values.
2113         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
2114         dispose_fn argument.
2115         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
2116         dropped values.
2117         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
2118         (gl_tree_remove_node): Call dispose_fn on the dropped value.
2119         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
2120         (gl_tree_remove_node): Call dispose_fn on the dropped value.
2121         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
2122         argument.
2123         (gl_tree_list_free): Call dispose_fn on the dropped values.
2124         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
2125         the dropped values.
2126         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
2127         Add dispose_fn argument.
2128         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
2129         Call dispose_fn on the dropped values.
2130         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
2131         Add dispose_fn argument.
2132         (gl_sublist_create): Initialize the 'dispose_fn' field.
2133         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
2134         * tests/test-array_list.c (main): Update.
2135         * tests/test-carray_list.c (main): Update.
2136         * tests/test-avltree_list.c (main): Update.
2137         * tests/test-rbtree_list.c (main): Update.
2138         * tests/test-avltreehash_list.c (main): Update.
2139         * tests/test-rbtreehash_list.c (main): Update.
2140         * tests/test-linked_list.c (main): Update.
2141         * tests/test-linkedhash_list.c (main): Update.
2142         * tests/test-array_oset.c (main): Update.
2143
2144 2007-03-15  Bruno Haible  <bruno@clisp.org>
2145
2146         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
2147         (gl_oset_create_empty): Add dispose_fn argument.
2148         (struct gl_oset_implementation): Add dispose_fn argument to
2149         'create_empty' method.
2150         (struct gl_oset_impl_base): Add dispose_fn field.
2151         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
2152         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
2153         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
2154         values.
2155         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
2156         (gl_tree_oset_free): Call dispose_fn on the dropped values.
2157         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
2158         dropped value.
2159         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
2160         dropped value.
2161         * tests/test-array_oset.c (main): Update.
2162         * tests/test-avltree_oset.c (main): Update.
2163         * tests/test-rbtree_oset.c (main): Update.
2164         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
2165
2166 2007-03-13  Bruno Haible  <bruno@clisp.org>
2167
2168         * tests/test-stdbool.c (i): Update after last patch.
2169
2170 2007-03-12  Bruno Haible  <bruno@clisp.org>
2171
2172         * lib/quotearg.c: Include <wctype.h> early, before the definition of
2173         the iswprint macro. Needed on Solaris 2.5.1.
2174
2175 2007-03-12  Bruno Haible  <bruno@clisp.org>
2176
2177         * tests/test-printf-frexp.c (main): Declare x as volatile.
2178
2179 2007-03-12  Simon Josefsson  <simon@josefsson.org>
2180
2181         * doc/gnulib.texi (Build robot for gnulib): New section.
2182
2183 2007-03-12  Jim Meyering  <jim@meyering.net>
2184
2185         * build-aux/bootstrap: New file.
2186         * build-aux/bootstrap.conf: New file, from coreutils.
2187
2188 2007-03-11  Bruno Haible  <bruno@clisp.org>
2189
2190         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
2191
2192 2007-03-12  Simon Josefsson  <simon@josefsson.org>
2193
2194         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
2195         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
2196         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
2197
2198 2007-03-11  Bruno Haible  <bruno@clisp.org>
2199
2200         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
2201         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
2202
2203 2007-03-11  Bruno Haible  <bruno@clisp.org>
2204
2205         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
2206         formula. Needed for SunPRO C 5.0.
2207
2208 2007-03-11  Bruno Haible  <bruno@clisp.org>
2209
2210         * modules/long-options (Depends-on): Add getopt.
2211
2212 2007-03-11  Bruno Haible  <bruno@clisp.org>
2213
2214         * modules/modechange (Depends-on): Add stdbool.
2215
2216 2007-03-11  Bruno Haible  <bruno@clisp.org>
2217
2218         * modules/i-ring (Depends-on): Add stdbool.
2219
2220 2007-03-11  Bruno Haible  <bruno@clisp.org>
2221
2222         * modules/gc-des (Depends-on): Add stdbool.
2223
2224 2007-03-11  Bruno Haible  <bruno@clisp.org>
2225
2226         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
2227
2228 2007-03-11  Bruno Haible  <bruno@clisp.org>
2229
2230         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
2231
2232 2007-03-11  Bruno Haible  <bruno@clisp.org>
2233
2234         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
2235
2236 2007-03-11  Bruno Haible  <bruno@clisp.org>
2237
2238         * lib/vasnprintf.c (sprintf): Undefine.
2239
2240 2007-03-11  Bruno Haible  <bruno@clisp.org>
2241
2242         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
2243         initializers in SunPRO C and Compaq C compilers.
2244
2245 2007-03-11  Bruno Haible  <bruno@clisp.org>
2246
2247         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
2248         decrementing code ANSI C compliant.
2249
2250 2007-03-11  Bruno Haible  <bruno@clisp.org>
2251
2252         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
2253         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
2254
2255 2007-03-11  Bruno Haible  <bruno@clisp.org>
2256
2257         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
2258         <stdbool.h> substitute doesn't pass.
2259
2260 2007-03-11  Bruno Haible  <bruno@clisp.org>
2261
2262         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
2263
2264 2007-03-11  Bruno Haible  <bruno@clisp.org>
2265
2266         * gnulib-tool (func_create_megatestdir): Create also an autobuild
2267         script, for submission to autobuild.josefsson.org.
2268
2269 2007-03-10  Bruno Haible  <bruno@clisp.org>
2270
2271         * modules/canonicalize-lgpl-tests: New file.
2272         * tests/test-canonicalize-lgpl.sh: New file.
2273         * tests/test-canonicalize-lgpl.c: New file.
2274
2275         * modules/c-strcase-tests: New file.
2276         * tests/test-c-strcase.sh: New file.
2277         * tests/test-c-strcasecmp.c: New file.
2278         * tests/test-c-strncasecmp.c: New file.
2279
2280         * modules/atexit-tests: New file.
2281         * tests/test-atexit.sh: New file.
2282         * tests/test-atexit.c: New file.
2283
2284 2007-03-10  Bruno Haible  <bruno@clisp.org>
2285
2286         * tests/test-binary-io.sh: Use temporary filenames that are not so
2287         likely to clash with those of other tests (in a parallel make).
2288         * tests/test-binary-io.c: Likewise.
2289
2290 2007-03-10  Bruno Haible  <bruno@clisp.org>
2291
2292         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
2293         fallback; use #error instead.
2294         Suggested by Simon Josefsson.
2295
2296 2007-03-10  Bruno Haible  <bruno@clisp.org>
2297
2298         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
2299         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
2300         first and the last.
2301
2302 2007-03-10  Bruno Haible  <bruno@clisp.org>
2303
2304         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
2305
2306 2007-03-10  Bruno Haible  <bruno@clisp.org>
2307
2308         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
2309         "make distcheck".
2310         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
2311         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
2312         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
2313
2314 2007-03-10  Bruno Haible  <bruno@clisp.org>
2315
2316         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
2317         variable.
2318         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
2319         variable.
2320
2321 2007-03-09  Eric Blake  <ebb9@byu.net>
2322         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
2323
2324         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
2325         types are not being provided by gnulib.
2326         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
2327         types are supported.
2328
2329 2007-03-10  Bruno Haible  <bruno@clisp.org>
2330
2331         * lib/stdio_.h (__attribute__): New macro.
2332         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
2333         vsprintf): Specify __attribute__ __format__ for GCC.
2334         Suggested by Eric Blake.
2335
2336 2007-03-09  Bruno Haible  <bruno@clisp.org>
2337
2338         * modules/printf-posix-tests: New file.
2339         * tests/test-printf-posix.sh: New file.
2340         * tests/test-printf-posix.c: New file.
2341
2342         * modules/printf-posix: New file.
2343         * lib/printf.c: New file.
2344         * m4/printf-posix-rpl.m4: New file.
2345         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
2346         REPLACE_PRINTF.
2347         * lib/stdio_.h (printf): New declaration.
2348         (format, __format__, ____printf____, ____scanf____, ____strftime____,
2349         ____strfmon____): New macros.
2350         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
2351         REPLACE_PRINTF.
2352
2353 2007-03-09  Bruno Haible  <bruno@clisp.org>
2354
2355         * tests/test-vasnprintf-posix2.sh: New file.
2356         * tests/test-vasnprintf-posix2.c: New file.
2357         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
2358         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
2359         (Makefile.am): Activate test-vasnprintf-posix2.sh.
2360
2361         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
2362         a locale dependent decimal point, rather than always '.'.
2363
2364 2007-03-09  Eric Blake  <ebb9@byu.net>
2365
2366         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
2367         spite of platforms like Tandem/NSK that define it to -1.
2368
2369 2007-03-08  Bruno Haible  <bruno@clisp.org>
2370
2371         * modules/vprintf-posix-tests: New file.
2372         * tests/test-vprintf-posix.sh: New file.
2373         * tests/test-vprintf-posix.c: New file.
2374         * tests/test-printf-posix.h: New file.
2375
2376         * modules/vprintf-posix: New file.
2377         * lib/vprintf.c: New file.
2378         * m4/vprintf-posix.m4: New file.
2379         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
2380         REPLACE_VPRINTF.
2381         * lib/stdio_.h (vprintf): New declaration.
2382         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
2383         REPLACE_VPRINTF.
2384
2385 2007-03-08  Bruno Haible  <bruno@clisp.org>
2386
2387         * modules/fprintf-posix-tests: New file.
2388         * tests/test-fprintf-posix.sh: New file.
2389         * tests/test-fprintf-posix.c: New file.
2390
2391         * modules/fprintf-posix: New file.
2392         * lib/fprintf.c: New file.
2393         * m4/fprintf-posix.m4: New file.
2394         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
2395         REPLACE_FPRINTF.
2396         * lib/stdio_.h (fprintf): New declaration.
2397         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
2398         REPLACE_FPRINTF.
2399
2400 2007-03-08  Bruno Haible  <bruno@clisp.org>
2401
2402         * modules/vfprintf-posix-tests: New file.
2403         * tests/test-vfprintf-posix.sh: New file.
2404         * tests/test-vfprintf-posix.c: New file.
2405         * tests/test-fprintf-posix.h: New file.
2406         * tests/test-fprintf-posix.out: New file.
2407
2408         * modules/vfprintf-posix: New file.
2409         * lib/vfprintf.c: New file.
2410         * m4/vfprintf-posix.m4: New file.
2411         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
2412         REPLACE_VFPRINTF.
2413         * lib/stdio_.h (vfprintf): New declaration.
2414         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
2415         REPLACE_VFPRINTF.
2416
2417 2007-03-08  Bruno Haible  <bruno@clisp.org>
2418
2419         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
2420
2421 2007-03-08  Bruno Haible  <bruno@clisp.org>
2422
2423         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
2424         instead of 'expr' invocations.
2425         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
2426         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
2427         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
2428         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
2429         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
2430         Suggested by Paul Eggert.
2431
2432 2007-03-08  Bruno Haible  <bruno@clisp.org>
2433
2434         * modules/fseterr-tests: New file.
2435         * tests/test-fseterr.c: New file.
2436
2437         * modules/fseterr: New file.
2438         * lib/fseterr.h: New file.
2439         * lib/fseterr.c: New file.
2440
2441 2007-03-08  Bruno Haible  <bruno@clisp.org>
2442
2443         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
2444         * lib/getopt_.h: Likewise.
2445         * lib/mbswidth.h: Likewise.
2446         * lib/setenv.h: Likewise.
2447         * lib/vasnprintf.h: Likewise.
2448         * lib/vasprintf.h: Likewise.
2449         * lib/verror.h: Likewise.
2450         * lib/xsetenv.h: Likewise.
2451         * lib/xvasprintf.h: Likewise.
2452
2453 2007-03-08  Jim Meyering  <jim@meyering.net>
2454
2455         * users.txt: Add parted.
2456
2457         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
2458
2459 2007-03-07  Bruno Haible  <bruno@clisp.org>
2460
2461         * m4/printf.m4: Make the shell script snippets copy&pastable.
2462
2463 2007-03-02  Bruno Haible  <bruno@clisp.org>
2464
2465         * lib/netinet_in_.h: New file.
2466         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
2467         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
2468         * modules/netinet_in (Files): Add lib/netinet_in_.h.
2469         (Depends-on): Add absolute-header.
2470         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
2471         into netinet/in.h.
2472
2473 2007-03-03  Bruno Haible  <bruno@clisp.org>
2474
2475         * lib/sys_select_.h: New file.
2476         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
2477         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
2478         * modules/sys_select (Files): Add lib/sys_select_.h.
2479         (Depends-on): Add absolute-header.
2480         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
2481         into sys/select.h.
2482
2483 2007-03-02  Bruno Haible  <bruno@clisp.org>
2484
2485         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
2486         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
2487         values.
2488         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
2489         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
2490         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
2491         * modules/sys_socket (Depends-on): Add absolute-header.
2492         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
2493         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
2494         (Include): Remove requirement of inclusion of <sys/types.h>.
2495
2496 2007-03-02  Bruno Haible  <bruno@clisp.org>
2497
2498         * lib/byteswap_.h (bswap_32): Fix formula.
2499
2500 2007-03-06  Bruno Haible  <bruno@clisp.org>
2501
2502         * modules/sprintf-posix-tests: New file.
2503         * tests/test-sprintf-posix.c: New file.
2504
2505         * modules/sprintf-posix: New file.
2506         * lib/sprintf.c: New file.
2507         * m4/sprintf-posix.m4: New file.
2508         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
2509         REPLACE_SPRINTF.
2510         * lib/stdio_.h (sprintf): New declaration.
2511         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
2512         REPLACE_SPRINTF.
2513
2514 2007-03-06  Bruno Haible  <bruno@clisp.org>
2515
2516         * modules/vsprintf-posix-tests: New file.
2517         * tests/test-vsprintf-posix.c: New file.
2518         * tests/test-sprintf-posix.h: New file.
2519
2520         * modules/vsprintf-posix: New file.
2521         * lib/vsprintf.c: New file.
2522         * m4/vsprintf-posix.m4: New file.
2523         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
2524         REPLACE_VSPRINTF.
2525         * lib/stdio_.h (vsprintf): New declaration.
2526         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
2527         REPLACE_VSPRINTF.
2528
2529 2007-03-06  Bruno Haible  <bruno@clisp.org>
2530
2531         * modules/vsnprintf (Depend-on): Remove minmax.
2532
2533 2007-03-06  Bruno Haible  <bruno@clisp.org>
2534
2535         * modules/snprintf-posix-tests: New file.
2536         * tests/test-snprintf-posix.c: New file.
2537
2538         * modules/snprintf-posix: New file.
2539         * m4/snprintf-posix.m4: New file.
2540         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
2541         gl_FUNC_SNPRINTF.
2542         (gl_FUNC_SNPRINTF): Invoke it.
2543         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
2544         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
2545         is set.
2546         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
2547
2548 2007-03-06  Bruno Haible  <bruno@clisp.org>
2549
2550         * modules/vsnprintf-posix-tests: New file.
2551         * tests/test-vsnprintf-posix.c: New file.
2552         * tests/test-snprintf-posix.h: New file.
2553
2554         * modules/vsnprintf-posix: New file.
2555         * m4/vsnprintf-posix.m4: New file.
2556         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
2557         gl_FUNC_VSNPRINTF.
2558         (gl_FUNC_VSNPRINTF): Invoke it.
2559         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
2560         * lib/stdio_.h (vsnprintf): Define as a replacement if
2561         REPLACE_VSNPRINTF is set.
2562         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
2563
2564 2007-03-06  Bruno Haible  <bruno@clisp.org>
2565
2566         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
2567         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
2568
2569 2007-03-06  Bruno Haible  <bruno@clisp.org>
2570
2571         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
2572         (asinl): Declare also if HAVE_DECL_ASINL is set.
2573         (atanl): Declare also if HAVE_DECL_ATANL is set.
2574         (ceill): Declare also if HAVE_DECL_CEILL is set.
2575         (cosl): Declare also if HAVE_DECL_COSL is set.
2576         (expl): Declare also if HAVE_DECL_EXPL is set.
2577         (floorl): Declare also if HAVE_DECL_FLOORL is set.
2578         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
2579         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
2580         (logl): Declare also if HAVE_DECL_LOGL is set.
2581         (sinl): Declare also if HAVE_DECL_SINL is set.
2582         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
2583         (tanl): Declare also if HAVE_DECL_TANL is set.
2584         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
2585         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
2586         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
2587         declaration of frexpl, ldexpl.
2588         * modules/printf-frexpl (Depends-on): Add math.
2589         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
2590
2591 2007-03-05  Bruno Haible  <bruno@clisp.org>
2592
2593         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
2594         frexpl and ldexpl are declared.
2595         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
2596
2597 2007-03-05  Bruno Haible  <bruno@clisp.org>
2598
2599         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
2600         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
2601
2602 2007-03-05  Bruno Haible  <bruno@clisp.org>
2603
2604         * lib/stdio_.h: Include <stddef.h>.
2605
2606 2007-03-05  Bruno Haible  <bruno@clisp.org>
2607
2608         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
2609
2610 2007-03-05  Bruno Haible  <bruno@clisp.org>
2611
2612         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
2613         NetBSD 4, from Ralf Wildenhues.
2614
2615 2007-03-04  Bruno Haible  <bruno@clisp.org>
2616
2617         * lib/vasprintf.h: Update #if logic for the case when the functions
2618         exist but are overridden.
2619
2620 2007-03-04  Bruno Haible  <bruno@clisp.org>
2621
2622         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
2623         implementations: glibc-2.4 and MacOS X 10.3.
2624         * tests/test-vasnprintf-posix.c (test_function): Test also the case
2625         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
2626         * tests/test-vasprintf-posix.c (test_function): Likewise.
2627
2628 2007-03-04  Bruno Haible  <bruno@clisp.org>
2629
2630         * modules/vasprintf-posix-tests: New file.
2631         * tests/test-vasprintf-posix.c: New file.
2632
2633         * modules/vasprintf-posix: New file.
2634         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
2635         defined.
2636         * m4/vasprintf-posix.m4: New file.
2637         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
2638         gl_FUNC_VASPRINTF.
2639         (gl_FUNC_VASPRINTF): Invoke it.
2640         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
2641         here.
2642         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
2643
2644 2007-03-04  Bruno Haible  <bruno@clisp.org>
2645
2646         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
2647         REPLACE_GETTIMEOFDAY.
2648         * modules/sys_time (Makefile.am): Likewise.
2649         * m4/sys_time_h.m4: Likewise.
2650         * m4/gettimeofday.m4: Likewise.
2651
2652 2007-03-04  Bruno Haible  <bruno@clisp.org>
2653
2654         * modules/vasnprintf-posix-tests: New file.
2655         * tests/test-vasnprintf-posix.c: New file.
2656
2657         * modules/vasnprintf-posix: New file.
2658         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
2659         printf-frexpl.h.
2660         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
2661         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
2662         REPLACE_VASNPRINTF is defined.
2663         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
2664         gl_FUNC_VASNPRINTF.
2665         (gl_FUNC_VASNPRINTF): Invoke it.
2666         * m4/vasnprintf-posix.m4: New file.
2667         * m4/printf.m4: New file.
2668
2669 2007-03-04  Bruno Haible  <bruno@clisp.org>
2670
2671         Compile progreloc.c only if --enable-relocatable is specified.
2672         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
2673         if --enable-relocatable was specified.
2674         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
2675         lib_SOURCES.
2676
2677 2007-03-04  Jim Meyering  <jim@meyering.net>
2678
2679         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
2680         Use it consistently, rather than enumerating errno constants.
2681
2682 2007-03-04  Bruno Haible  <bruno@clisp.org>
2683
2684         * modules/xvasprintf-tests: New file.
2685         * tests/test-xvasprintf.c: New file.
2686
2687         * modules/vasprintf-tests: New file.
2688         * tests/test-vasprintf.c: New file.
2689
2690         * modules/vasnprintf-tests: New file.
2691         * tests/test-vasnprintf.c: New file.
2692
2693         * modules/vsnprintf-tests: New file.
2694         * tests/test-vsnprintf.c: New file.
2695
2696         * modules/snprintf-tests: New file.
2697         * tests/test-snprintf.c: New file.
2698
2699 2007-03-04  Bruno Haible  <bruno@clisp.org>
2700
2701         Compile relocatable.c only if --enable-relocatable is specified.
2702         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
2703         gl_RELOCATABLE_LIBRARY.
2704         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
2705         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
2706         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
2707         gl_RELOCATABLE_LIBRARY.
2708         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
2709         (Makefile.am): Remove lib_SOURCES.
2710         * modules/relocatable-lib-lgpl (configure.ac): Invoke
2711         gl_RELOCATABLE_LIBRARY.
2712         (Makefile.am): Remove lib_SOURCES.
2713         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
2714         always.
2715         * modules/relocatable-prog-wrapper (configure.ac): Invoke
2716         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
2717
2718 2007-03-04  Bruno Haible  <bruno@clisp.org>
2719
2720         * modules/argmatch-tests: New file.
2721         * tests/test-argmatch.c: New file.
2722
2723         * tests/test-allocsa.c (main): Halve the number of loop runs.
2724
2725         * modules/alloca-opt-tests: New file.
2726         * tests/test-alloca-opt.c: New file.
2727
2728 2007-03-04  Jim Meyering  <jim@meyering.net>
2729
2730         Work around difference between Linux ACLs and Solaris 10 ZFS.
2731         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
2732         for EINVAL.
2733
2734 2007-03-03  Bruno Haible  <bruno@clisp.org>
2735
2736         * modules/relocatable-prog (Depends-on): Add back progreloc's
2737         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
2738
2739 2007-03-03  Bruno Haible  <bruno@clisp.org>
2740
2741         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
2742         * modules/relocatable-lib: New file.
2743
2744 2007-03-03  Bruno Haible  <bruno@clisp.org>
2745
2746         * modules/relocatable-prog: Renamed from modules/relocatable.
2747         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
2748
2749 2007-03-03  Bruno Haible  <bruno@clisp.org>
2750
2751         * modules/relocatable-script (Files): Add doc/relocatable.texi,
2752         m4/relocatable-lib.m4.
2753         (Depends-on): Remove 'relocatable'.
2754         (configure.ac): Add gl_RELOCATABLE_NOP.
2755
2756 2007-03-03  Bruno Haible  <bruno@clisp.org>
2757
2758         * modules/relocatable-prog-wrapper: New file.
2759         * modules/relocatable (Depends-on): Add it. Remove all other
2760         dependencies except progname.
2761         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
2762
2763         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
2764         (gl_FUNC_STRERROR): Nop.
2765         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
2766
2767         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
2768         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
2769
2770         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
2771         (gl_FUNC_READLINK): Update.
2772
2773         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
2774
2775 2007-03-03  Bruno Haible  <bruno@clisp.org>
2776
2777         * lib/xreadlink.c: Include <unistd.h> unconditionally.
2778         * modules/xreadlink (Depends-on): Add unistd.
2779         * modules/xreadlink-with-size (Depends-on): Likewise.
2780
2781 2007-03-03  Bruno Haible  <bruno@clisp.org>
2782
2783         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
2784         extracted from gt_FUNC_SETENV.
2785         (gt_FUNC_SETENV): Remove macro.
2786         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
2787         remove gt_FUNC_SETENV.
2788
2789 2007-03-03  Bruno Haible  <bruno@clisp.org>
2790
2791         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
2792         ENABLE_RELOCATABLE here.
2793         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
2794
2795 2007-03-03  Bruno Haible  <bruno@clisp.org>
2796
2797         * modules/rbtreehash-list-tests (Depends-on): Add progname.
2798         * tests/test-rbtreehash_list.c: Include progname.h.
2799         (main): Call set_program_name.
2800
2801         * modules/rbtree-oset-tests (Depends-on): Add progname.
2802         * tests/test-rbtree_oset.c: Include progname.h.
2803         (main): Call set_program_name.
2804
2805         * modules/rbtree-list-tests (Depends-on): Add progname.
2806         * tests/test-rbtree_list.c: Include progname.h.
2807         (main): Call set_program_name.
2808
2809         * modules/linked-list-tests (Depends-on): Add progname.
2810         * tests/test-linked_list.c: Include progname.h.
2811         (main): Call set_program_name.
2812
2813 2007-03-03  Bruno Haible  <bruno@clisp.org>
2814
2815         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
2816         All uses of __restrict changed to _Restrict_.
2817         * lib/glob_.h (__restrict): Remove macro.
2818
2819 2007-03-02  Bruno Haible  <bruno@clisp.org>
2820
2821         * modules/gettext (configure.ac): Require gettext infrastructure
2822         from version 0.16.1.
2823
2824 2007-03-02  Bruno Haible  <bruno@clisp.org>
2825
2826         * modules/linkedhash-list-tests (Depends-on): Add progname.
2827         * tests/test-linkedhash_list.c: Include progname.h.
2828         (main): Call set_program_name.
2829
2830         * modules/carray-list-tests (Depends-on): Add progname.
2831         * tests/test-carray_list.c: Include progname.h.
2832         (main): Call set_program_name.
2833
2834         * modules/avltreehash-list-tests (Depends-on): Add progname.
2835         * tests/test-avltreehash_list.c: Include progname.h.
2836         (main): Call set_program_name.
2837
2838         * modules/avltree-oset-tests (Depends-on): Add progname.
2839         * tests/test-avltree_oset.c: Include progname.h.
2840         (main): Call set_program_name.
2841
2842         * modules/avltree-list-tests (Depends-on): Add progname.
2843         * tests/test-avltree_list.c: Include progname.h.
2844         (main): Call set_program_name.
2845
2846         * modules/array-oset-tests (Depends-on): Add progname.
2847         * tests/test-array_oset.c: Include progname.h.
2848         (main): Call set_program_name.
2849
2850         * modules/array-list-tests (Depends-on): Add progname.
2851         * tests/test-array_list.c: Include progname.h.
2852         (main): Call set_program_name.
2853
2854         * modules/argp-tests (Depends-on): Add progname.
2855         * tests/test-argp.c: Include argp.h first. Include progname.h.
2856         (main): Call set_program_name.
2857
2858 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
2859
2860         * doc/gnulib-tool.texi (Initial import): Reword description of
2861         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
2862         limited effect even if defined after the first system include.
2863
2864 2007-03-01  Bruno Haible  <bruno@clisp.org>
2865
2866         * build-aux/config.libpath: Update to libtool-1.5.22.
2867         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
2868
2869 2007-03-01  Bruno Haible  <bruno@clisp.org>
2870
2871         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
2872         foo_CFLAGS.
2873         Reported by Ralf Wildenhues.
2874
2875 2007-03-01  Bruno Haible  <bruno@clisp.org>
2876
2877         * build-aux/install-reloc: Remove object files left over by some
2878         compilers.
2879         Reported by Ralf Wildenhues.
2880
2881 2007-03-01  Bruno Haible  <bruno@clisp.org>
2882
2883         * build-aux/install-reloc: Break long lines.
2884
2885 2007-03-01  Bruno Haible  <bruno@clisp.org>
2886
2887         * doc/relocatable.texi: Document that it may not work on OpenBSD.
2888         Reported by Ralf Wildenhues.
2889
2890 2007-03-01  Bruno Haible  <bruno@clisp.org>
2891
2892         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
2893         include ordering constraints.
2894
2895 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
2896
2897         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
2898         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
2899         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
2900         as another example.
2901         * lib/time_.h: Fix misspelling.
2902         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
2903         Require gl_HEADER_TIME_H_DEFAULTS.
2904         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
2905         * m4/time_r.m4 (gl_TIME_R): Likewise.
2906         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
2907
2908 2007-03-01  Bruno Haible  <bruno@clisp.org>
2909
2910         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
2911         * m4/utimens.m4 (gl_UTIMENS): Likewise.
2912
2913 2007-03-01  Jim Meyering  <jim@meyering.net>
2914
2915         * modules/xreadlink (Maintainer): Add my name.
2916         * modules/xreadlink-with-size (Depends-on): Alphabetize.
2917
2918 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
2919             Bruno Haible  <bruno@clisp.org>
2920
2921         * build-aux/install-reloc: Compile also c-ctype.c.
2922         * build-aux/relocatable.sh.in: New file.
2923         * doc/relocatable.texi: New file.
2924         * doc/relocatable-maint.texi: New file.
2925         * doc/gnulib.texi: Include relocatable-maint.texi.
2926         * lib/progreloc.c: Include unistd.h unconditionally.
2927         * lib/relocwrapper.c: Include unistd.h unconditionally.
2928         Include c-ctype.h.
2929         (add_dotbin): Use c_tolower.
2930         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
2931         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
2932         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
2933         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
2934         to m4/relocatable-lib.m4.
2935         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
2936         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
2937         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
2938         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
2939         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
2940         * modules/relocatable: New file.
2941         * modules/relocatable-lib: New file.
2942         * modules/relocatable-script: New file.
2943
2944 2007-02-28  Bruno Haible  <bruno@clisp.org>
2945
2946         Import --enable-relocatable infrastructure.
2947         * build-aux/config.libpath: New file, from GNU gettext.
2948         * build-aux/install-reloc: New file, from GNU gettext.
2949         * build-aux/reloc-ldflags: New file, from GNU gettext.
2950         * lib/relocatable.h: New file, from GNU gettext.
2951         * lib/relocatable.c: New file, from GNU gettext.
2952         * lib/relocwrapper.c: New file, from GNU gettext.
2953         * m4/relocatable.m4: New file, from GNU gettext.
2954
2955 2007-02-28  Bruno Haible  <bruno@clisp.org>
2956
2957         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
2958
2959         * modules/xreadlink: New file, from GNU gettext with modifications.
2960         * lib/xreadlink.c: New file, from GNU gettext.
2961         * lib/xreadlink.h: Add comments.
2962         (xreadlink): New declaration.
2963
2964         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
2965         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
2966         lib/xreadlink-with-size.c.
2967         (configure.ac): Remove gl_XREADLINK invocation.
2968         (Makefile.am): Augment lib_SOURCES.
2969         * m4/xreadlink.m4: Remove file.
2970         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
2971         (xreadlink_with_size): Renamed from xreadink.
2972         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
2973         * modules/canonicalize (Depends-on): Replace xreadlink with
2974         xreadlink-with-size.
2975         * lib/canonicalize.c (canonicalize_filename_mode): Update.
2976
2977 2007-02-25  Jim Meyering  <jim@meyering.net>
2978
2979         * build-aux/announce-gen: When complaining about excess arguments,
2980         list them.
2981
2982 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
2983
2984         * README: Document signed integer overflow situation more
2985         accurately.
2986
2987 2007-02-25  Bruno Haible  <bruno@clisp.org>
2988
2989         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
2990         'a' or 'A' conversion.
2991
2992 2007-02-25  Bruno Haible  <bruno@clisp.org>
2993
2994         * modules/filename: Renamed from modules/pathname.
2995         (Files): Replace lib/pathname.h with lib/filename.h. Replace
2996         lib/concatpath.c with lib/concat-filename.c.
2997         (Makefile.am): Update.
2998         (Include): Replace pathname.h with filename.h.
2999         * lib/filename.h: Renamed from lib/pathname.h.
3000         (concatenated_filename): Renamed from concatenated_pathname.
3001         * lib/concat-filename.c: Renamed from lib/concatpath.c.
3002         (concatenated_filename): Renamed from concatenated_pathname.
3003         * lib/findprog.c: Include filename.h instead of pathname.h.
3004         (find_in_path): Update.
3005         * lib/javacomp.c: Include filename.h instead of pathname.h.
3006         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
3007         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
3008         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
3009         is_oldgcj_14_13_usable, is_javac_usable): Update.
3010         * lib/javaexec.c: Include filename.h instead of pathname.h.
3011         (execute_java_class): Update.
3012         * modules/findprog: Update.
3013         * modules/javacomp: Update.
3014         * modules/javaexec: Update.
3015         * MODULES.html.sh (File system functions): Add 'filename', remove
3016         'pathname'.
3017
3018 2007-02-25  Bruno Haible  <bruno@clisp.org>
3019
3020         * modules/printf-frexpl-tests: New file.
3021         * tests/test-printf-frexpl.c: New file.
3022
3023         * modules/printf-frexpl: New file.
3024         * lib/printf-frexpl.h: New file.
3025         * lib/printf-frexpl.c: New file.
3026         * m4/printf-frexpl.m4: New file.
3027
3028 2007-02-25  Bruno Haible  <bruno@clisp.org>
3029
3030         * modules/printf-frexp-tests: New file.
3031         * tests/test-printf-frexp.c: New file.
3032
3033         * modules/printf-frexp: New file.
3034         * lib/printf-frexp.h: New file.
3035         * lib/printf-frexp.c: New file.
3036         * m4/printf-frexp.m4: New file.
3037
3038 2007-02-25  Bruno Haible  <bruno@clisp.org>
3039
3040         Assume automake >= 1.10 for the tests.
3041         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
3042         * modules/arctwo-tests: Likewise.
3043         * modules/argp-tests: Likewise.
3044         * modules/avltree-list-tests: Likewise.
3045         * modules/avltree-oset-tests: Likewise.
3046         * modules/avltreehash-list-tests: Likewise.
3047         * modules/carray-list-tests: Likewise.
3048         * modules/crc-tests: Likewise.
3049         * modules/des-tests: Likewise.
3050         * modules/gc-arcfour-tests: Likewise.
3051         * modules/gc-arctwo-tests: Likewise.
3052         * modules/gc-des-tests: Likewise.
3053         * modules/gc-hmac-md5-tests: Likewise.
3054         * modules/gc-hmac-sha1-tests: Likewise.
3055         * modules/gc-md2-tests: Likewise.
3056         * modules/gc-md4-tests: Likewise.
3057         * modules/gc-md5-tests: Likewise.
3058         * modules/gc-pbkdf2-sha1-tests: Likewise.
3059         * modules/gc-rijndael-tests: Likewise.
3060         * modules/gc-sha1-tests: Likewise.
3061         * modules/gc-tests: Likewise.
3062         * modules/getaddrinfo-tests: Likewise.
3063         * modules/hmac-md5-tests: Likewise.
3064         * modules/hmac-sha1-tests: Likewise.
3065         * modules/linked-list-tests: Likewise.
3066         * modules/linkedhash-list-tests: Likewise.
3067         * modules/lock-tests: Likewise.
3068         * modules/md2-tests: Likewise.
3069         * modules/md4-tests: Likewise.
3070         * modules/md5-tests: Likewise.
3071         * modules/rbtree-list-tests: Likewise.
3072         * modules/rbtree-oset-tests: Likewise.
3073         * modules/rbtreehash-list-tests: Likewise.
3074         * modules/read-file-tests: Likewise.
3075         * modules/rijndael-tests: Likewise.
3076         * modules/stdint-tests: Likewise.
3077         * modules/tls-tests: Likewise.
3078
3079 2007-02-24  Bruno Haible  <bruno@clisp.org>
3080
3081         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
3082         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
3083         function; instead check whether isnan with a double argument links.
3084         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
3085         function; instead check whether isnan with a 'long double' argument
3086         links.
3087         Reported by Eric Blake <ebb9@byu.net>.
3088
3089 2007-02-24  Bruno Haible  <bruno@clisp.org>
3090
3091         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
3092         defined.
3093         * lib/isnanl.c: Remove all code. Just include isnan.c.
3094         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
3095
3096 2007-02-25  Jim Meyering  <jim@meyering.net>
3097
3098         Avoid conflicting types for 'unsetenv' on FreeBSD.
3099         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
3100         conflicting with FreeBSD's (5.0 and 6.1) function declaration
3101         in stdlib.h.
3102
3103 2007-02-24  Bruno Haible  <bruno@clisp.org>
3104
3105         * modules/isnanl-nolibm-tests: New file.
3106         * tests/test-isnanl.c: New file.
3107
3108         * modules/isnanl-nolibm: New file.
3109         * lib/isnanl.h: New file.
3110         * lib/isnanl.c: New file.
3111         * m4/isnanl.m4: New file.
3112
3113 2007-02-24  Bruno Haible  <bruno@clisp.org>
3114
3115         * modules/isnan-nolibm-tests: New file.
3116         * tests/test-isnan.c: New file.
3117
3118         * modules/isnan-nolibm: New file.
3119         * lib/isnan.h: New file.
3120         * lib/isnan.c: New file.
3121         * m4/isnan.m4: New file.
3122
3123 2007-02-24  Bruno Haible  <bruno@clisp.org>
3124
3125         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
3126         assume that an exponent fits in 20 bits.
3127
3128 2007-02-24  Jim Meyering  <jim@meyering.net>
3129
3130         * m4/regex.m4: Update the description of the configure-time option,
3131         --without-included-regex, to state accurately what the defaults are,
3132         and perhaps to give people an idea why using this option is risky.
3133
3134 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
3135
3136         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
3137         loops on small arguments.  This attempts to avoid the problem
3138         Bruno Haible reported for AIX 4.3.2 in
3139         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
3140
3141 2007-02-23  Bruno Haible  <bruno@clisp.org>
3142
3143         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
3144         Needed for help2man.
3145
3146 2007-02-23  Karl Berry  <karl@gnu.org>
3147
3148         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
3149         exists, foo.h should be cvs-ignored, not committed.
3150
3151 2007-02-23  Eric Blake  <ebb9@byu.net>
3152
3153         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
3154         * lib/stat-time.h (includes): Likewise.
3155         * lib/utimecmp.c (includes): Likewise.
3156         * lib/utimens.h (includes): Likewise.
3157         * lib/getdate.y (includes): Also include "timespec.h" for use
3158         internal to the module.
3159         * modules/utimens (Depends-on): Revert yesterday's patch.
3160         * modules/nanosleep (Depends-on): Add missing dependency.
3161
3162 2007-02-22  Bruno Haible  <bruno@clisp.org>
3163
3164         * lib/glob.c: Don't include getlogin_r.h.
3165
3166 2007-02-22  Jim Meyering  <jim@meyering.net>
3167
3168         * modules/utimens (Depends-on): Add timespec, required for
3169         utimens.h's inclusion of timespec.h.
3170
3171 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
3172
3173         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
3174         long unreadable paths in GNU/Linux.  Problem reported by Andreas
3175         Schwab in
3176         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
3177         I'll try to think of a better way to fix the Solaris problem.
3178
3179         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
3180         like glibc; on Solaris 10, it fails with errno == EINVAL.
3181         POSIX says the behavior is unspecified if the first argument is NULL,
3182         so play it safe and never pass NULL to the system getcwd.
3183
3184 2007-02-21  Jim Meyering  <jim@meyering.net>
3185
3186         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
3187         of gettimeofday.  It would conflict with the one now always
3188         provided via sys_time_.h.  Reported by Matthew Woehlke, as
3189         an IRIX 6.5 build failure.
3190
3191 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
3192
3193         Minor fixups to port to Solaris 10 with Sun C 5.8.
3194         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
3195         * modules/getcwd (Depends-on): Add dirfd.
3196         * lib/putenv.c (putenv): #undef it.
3197         (rpl_putenv): New decl.
3198         (malloc, free): Include <stdlib.h> rather than prototyping separately.
3199
3200 2007-02-20  Bruno Haible  <bruno@clisp.org>
3201
3202         * modules/stdio-tests: New file.
3203         * tests/test-stdio.c: New file.
3204
3205         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
3206         (Depends-on): Add stdio.
3207         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
3208         (Include): Use <stdio.h> instead of vsnprintf.h.
3209         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
3210         HAVE_DECL_VSNPRINTF.
3211         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
3212
3213         * modules/snprintf (Files): Remove lib/snprintf.h.
3214         (Depends-on): Add stdio.
3215         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
3216         (Include): Use <stdio.h> instead of snprintf.h.
3217         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
3218         HAVE_DECL_SNPRINTF.
3219         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
3220         * lib/getaddrinfo.c: Likewise.
3221
3222         * modules/stdio: New file.
3223         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
3224         * lib/snprintf.h: Remove file.
3225         * lib/vsnprintf.h: Remove file.
3226         * lib/.cppi-disable: Remove snprintf.h.
3227         * m4/stdio_h.m4: New file.
3228         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
3229
3230 2007-02-20  Jim Meyering  <jim@meyering.net>
3231
3232         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
3233         used by e.g., mingw.  From Bruno Haible.
3234
3235 2007-02-19  Bruno Haible  <bruno@clisp.org>
3236
3237         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
3238         warnings.
3239         Reported by Ben Pfaff <blp@cs.stanford.edu>.
3240
3241 2007-02-19  Bruno Haible  <bruno@clisp.org>
3242
3243         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
3244         from mingw users.
3245
3246 2007-02-19  Bruno Haible  <bruno@clisp.org>
3247
3248         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
3249         warnings.
3250         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
3251
3252 2007-02-19  Jim Meyering  <jim@meyering.net>
3253
3254         Don't use FD after a successful "fdopendir (fd)".
3255         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
3256         Reset it by calling dirfd on the just-obtained DIR*.
3257
3258         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
3259         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
3260
3261 2007-02-18  Bruno Haible  <bruno@clisp.org>
3262
3263         * lib/readlink.c: Include <unistd.h>.
3264         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
3265         HAVE_READLINK.
3266         * modules/readlink (Depends-on): Add unistd.
3267         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
3268         (Include): Add <unistd.h>.
3269
3270         * lib/getlogin_r.h: Remove file.
3271         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
3272         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
3273         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
3274         HAVE_DECL_GETLOGIN_R.
3275         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
3276         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
3277         (Include): Use <unistd.h> instead of getlogin_r.h.
3278
3279         * lib/getcwd.h: Remove file.
3280         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
3281         * lib/xgetcwd.c: Likewise.
3282         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
3283         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
3284         * modules/getcwd (Files): Remove lib/getcwd.h.
3285         (Depends-on): Add unistd.
3286         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
3287         (Include): Use <unistd.h> instad of getcwd.h.
3288
3289         * lib/ftruncate.c: Include <unistd.h> first.
3290         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
3291         Set HAVE_FTRUNCATE.
3292         * modules/ftruncate (Depends-on): Add unistd.
3293         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
3294
3295         * lib/fchdir.c: Include <unistd.h> first.
3296         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
3297         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
3298         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
3299         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
3300         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
3301
3302         * lib/dup2.c: Include <unistd.h> first.
3303         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
3304         HAVE_DUP2.
3305         * modules/dup2 (Depends-on): Add unistd.
3306         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
3307
3308         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
3309         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
3310         REPLACE_CHOWN. Don't define chown as a macro here.
3311         * modules/chown (Depends-on): Add unistd.
3312         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
3313
3314         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
3315         Add definition for GL_LINK_WARNING.
3316         (chown, dup2): New declarations.
3317         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
3318         link warning.
3319         (ftruncate): New declaration.
3320         (getcwd): New declaration, taken from old getcwd.h.
3321         (getlogin_r): New declaration, taken from old getlogin_r.h.
3322         (readlink): New declaration.
3323         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
3324         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
3325         (gl_PREREQ_UNISTD): Remove macro.
3326         (gl_UNISTD_MODULE_INDICATOR): New macro.
3327         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
3328         many new variables. Don't set UNISTD_H.
3329         * modules/unistd (Description): Change.
3330         (Depends-on): Add link-warning.
3331         (configure.ac): Update.
3332         (Makefile.am): Create unistd.h always. Substitute many new variables
3333         into it.
3334
3335 2007-02-18  Bruno Haible  <bruno@clisp.org>
3336
3337         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
3338         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
3339         HAVE_GETSUBOPT.
3340         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
3341         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
3342         * lib/getsubopt.h: Remove file.
3343         * modules/getsubopt (Files): Remove lib/getsubopt.h.
3344         (Depends-on): Add stdlib.
3345         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
3346         (Includes): Use <stdlib.h> instead of getsubopt.h.
3347         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
3348         Set HAVE_GETSUBOPT.
3349         * lib/getsubopt.c: Don't include getsubopt.h.
3350
3351 2007-02-18  Bruno Haible  <bruno@clisp.org>
3352
3353         * modules/fchdir (Depends-on): Add dup2.
3354
3355 2007-02-18  Bruno Haible  <bruno@clisp.org>
3356
3357         * lib/stdlib_.h: Handle glibc's special invocation convention
3358         specially.
3359
3360 2007-02-18  Bruno Haible  <bruno@clisp.org>
3361
3362         * modules/stdlib-tests: New file.
3363         * tests/test-stdlib.c: New file.
3364
3365         * modules/mkstemp (Files): Remove lib/mkstemp.h.
3366         (Depends-on): Add stdlib.
3367         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
3368         (Includes): Use <stdlib.h> instead of mkstemp.h.
3369         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
3370         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
3371         * lib/mkstemp.c: Don't include mkstemp.h.
3372         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
3373         * lib/stdlib--.h: Don't include mkstemp.h.
3374
3375         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
3376         (Depends-on): Add stdlib.
3377         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
3378         (Includes): Use <stdlib.h> instead of mkdtemp.h.
3379         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
3380         HAVE_MKDTEMP.
3381         * lib/mkdtemp.c: Don't include mkdtemp.h.
3382         * lib/clean-temp.c: Don't include mkdtemp.h.
3383
3384         * modules/exit (Files): Remove lib/exit.h.
3385         (Depends-on): Add stdlib.
3386         (Makefile.am): Remove lib_SOURCES.
3387         (Include): Use <stdlib.h> instead of exit.h.
3388         * lib/argmatch.c: Don't include exit.h.
3389         * lib/execute.c: Likewise.
3390         * lib/pagealign_alloc.c: Likewise.
3391         * lib/pipe.c: Likewise.
3392         * lib/wait-process.c: Likewise.
3393         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
3394         * lib/exitfail.c: Likewise.
3395         * lib/savewd.c: Likewise.
3396         * lib/xsetenv.c: Likewise.
3397
3398         * modules/stdlib: New file.
3399         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
3400         and extra comments about mkstemp().
3401         * lib/exit.h: Remove file.
3402         * lib/mkdtemp.h: Remove file.
3403         * lib/mkstemp.h: Remove file.
3404         * m4/stdlib_h.m4: New file.
3405         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
3406
3407 2007-02-18  Bruno Haible  <bruno@clisp.org>
3408
3409         * modules/math-tests: New file.
3410         * tests/test-math.c: New file.
3411
3412         * modules/math: New file.
3413         * modules/mathl (Files): Remove lib/mathl.h.
3414         (Depends-on): Add math.
3415         (Makefile.am): Don't mention mathl.h.
3416         (Include): Use <math.h> instead of mathl.h.
3417         * lib/math_.h: New file.
3418         * lib/mathl.h: Remove file.
3419         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
3420         mathl.h.
3421         * lib/asinl.c: Likewise.
3422         * lib/atanl.c: Likewise.
3423         * lib/ceill.c: Likewise.
3424         * lib/cosl.c: Likewise.
3425         * lib/expl.c: Likewise.
3426         * lib/floorl.c: Likewise.
3427         * lib/frexpl.c: Likewise.
3428         * lib/ldexpl.c: Likewise.
3429         * lib/logl.c: Likewise.
3430         * lib/sincosl.c: Likewise.
3431         * lib/sinl.c: Likewise.
3432         * lib/sqrtl.c: Likewise.
3433         * lib/tanl.c: Likewise.
3434         * lib/trigl.c: Likewise.
3435         * m4/math_h.m4: New file.
3436         * MODULES.html.sh (Mathematics): Add math.
3437
3438 2007-02-17  Bruno Haible  <bruno@clisp.org>
3439
3440         * modules/wctype-tests: New file.
3441         * tests/test-wctype.c: New file.
3442
3443         * modules/wchar-tests: New file.
3444         * tests/test-wchar.c: New file.
3445
3446         * modules/unistd-tests: New file.
3447         * tests/test-unistd.c: New file.
3448
3449         * modules/time-tests: New file.
3450         * tests/test-time.c: New file.
3451
3452         * modules/sysexits-tests: New file.
3453         * tests/test-sysexits.c: New file.
3454
3455         * modules/sys_time-tests: New file.
3456         * tests/test-sys_time.c: New file.
3457
3458         * modules/sys_stat-tests: New file.
3459         * tests/test-sys_stat.c: New file.
3460
3461         * modules/sys_socket-tests: New file.
3462         * tests/test-sys_socket.c: New file.
3463
3464         * modules/sys_select-tests: New file.
3465         * tests/test-sys_select.c: New file.
3466
3467         * modules/string-tests: New file.
3468         * tests/test-string.c: New file.
3469
3470         * modules/stdbool-tests: New file.
3471         * tests/test-stdbool.c: New file.
3472
3473         * modules/netinet_in-tests: New file.
3474         * tests/test-netinet_in.c: New file.
3475
3476         * modules/inttypes-tests: New file.
3477         * tests/test-inttypes.c: New file.
3478
3479         * modules/fcntl-tests: New file.
3480         * tests/test-fcntl.c: New file.
3481
3482         * modules/byteswap-tests: New file.
3483         * tests/test-byteswap.c: New file.
3484
3485         * modules/arpa_inet-tests: New file.
3486         * tests/test-arpa_inet.c: New file.
3487
3488 2007-02-17  Bruno Haible  <bruno@clisp.org>
3489
3490         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
3491         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
3492         if the corresponding module is not enabled. Emit link warnings if
3493         the function is used nevertheless.
3494         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
3495         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
3496         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
3497         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
3498         * modules/inttypes (Depends-on): Add link-warning.
3499         (Makefile.am): Copy the contents of build-aux/link-warning.h into
3500         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
3501         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
3502         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
3503         * modules/imaxdiv (configure.ac): Likewise.
3504         * modules/strtoimax (configure.ac): Likewise.
3505         * modules/strtoumax (configure.ac): Likewise.
3506
3507 2007-02-17  Bruno Haible  <bruno@clisp.org>
3508
3509         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
3510         gl_STRING_MODULE_INDICATOR_DEFAULTS.
3511         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
3512         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
3513
3514 2007-02-17  Bruno Haible  <bruno@clisp.org>
3515
3516         * modules/link-warning: New file.
3517         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
3518         * lib/string_.h (GL_LINK_WARNING): Remove definition.
3519         * modules/string (Depends-on): Add link-warning.
3520         (Makefile.am): Copy the contents of build-aux/link-warning.h into
3521         string.h.
3522         * MODULES.html.sh (Support for building libraries and executables): Add
3523         link-warning.
3524
3525 2007-02-17  Bruno Haible  <bruno@clisp.org>
3526
3527         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
3528         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
3529         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
3530         long lines.
3531
3532 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
3533             Bruno Haible  <bruno@clisp.org>
3534
3535         * modules/tmpfile: New file.
3536         * lib/tmpfile.c: New file.
3537         * m4/tmpfile.m4: New file.
3538         * MODULES.html.sh (func_all_modules): New section "Input/output".
3539
3540 2007-02-15  Bruno Haible  <bruno@clisp.org>
3541
3542         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
3543         (supports_delete_on_close): New function.
3544         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
3545
3546 2007-02-14  Bruno Haible  <bruno@clisp.org>
3547
3548         * modules/mbspcasecmp-tests: New file.
3549         * tests/test-mbspcasecmp.sh: New file.
3550         * tests/test-mbspcasecmp.c: New file.
3551
3552         New module mbspcasecmp.
3553         * modules/mbspcasecmp: New file.
3554         * lib/mbspcasecmp.c: New file.
3555         * lib/string_.h (strncasecmp): Change warning message.
3556         (mbspcasecmp): New declaration.
3557         * m4/mbspcasecmp.m4: New file.
3558         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
3559         GNULIB_MBSPCASECMP.
3560         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
3561         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
3562
3563 2007-02-14  Bruno Haible  <bruno@clisp.org>
3564
3565         * modules/mbsncasecmp-tests: New file.
3566         * tests/test-mbsncasecmp.sh: New file.
3567         * tests/test-mbsncasecmp.c: New file.
3568
3569         New module mbsncasecmp.
3570         * modules/mbsncasecmp: New file.
3571         * lib/mbsncasecmp.c: New file.
3572         * lib/string_.h (mbsncasecmp): New declaration.
3573         * m4/mbsncasecmp.m4: New file.
3574         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
3575         GNULIB_MBSNCASECMP.
3576         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
3577         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
3578
3579 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
3580
3581         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
3582         Verify that it doesn't overlap with our flags.
3583         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
3584         do not have the desired effect in multibyte locales; instead, use
3585         mbscasecmp.
3586         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
3587         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
3588         we don't require GNU fnmatch ourselves (if our users require it, they
3589         should do so explicitly).
3590
3591         Fix regex code so it doesn't rely on strcasecmp.
3592         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
3593         Otherwise, include gnulib's langinfo.h.
3594         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
3595         undesirable behavior in non-C locales.  Instead, rely on localecharset.
3596         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
3597         * modules/regex (FILES): Remove m4/codeset.m4.
3598         (Depends-on): Add localcharset.  Remove strcase.
3599
3600 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
3601
3602         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
3603         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
3604
3605 2007-02-13  Bruno Haible  <bruno@clisp.org>
3606
3607         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
3608         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3609
3610 2007-02-12  Bruno Haible  <bruno@clisp.org>
3611
3612         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
3613         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
3614         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
3615         time warning rather than a link error.
3616
3617 2007-02-12  Bruno Haible  <bruno@clisp.org>
3618
3619         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
3620         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
3621         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
3622
3623 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
3624
3625         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
3626         args, not 2.
3627
3628 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
3629
3630         New module 'time', so that apps can include <time.h> as per
3631         POSIX and GNU instead of separate include files like time_r.h
3632         and timegm.h.  This implementation tries out a simpler approach
3633         for replacing decls in standard include files (as compared to
3634         the string module), somewhat as an experiment.
3635
3636         * config/srclist.txt: Comment out mktime.c for now.
3637         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
3638         since it doesn't apply any more.  Use generic wording instead.
3639         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
3640         'time'.
3641         * lib/time_.h, m4/time_h.m4, modules/time: New files.
3642         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
3643         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
3644         Don't include <sys/types.h>; no longer needed since we assume C89.
3645         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
3646         * lib/strftime.c: Likewise.
3647         * lib/time_r.c: Likewise.
3648         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
3649         * lib/nanosleep.c: Include <time.h> first, to check interface.
3650         * lib/strptime.c: Likewise.
3651         * lib/time_r.c: Likewise.
3652         * lib/timegm.c: Likewise.
3653         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
3654         needed.
3655         * lib/timegm.c: Don't include timegm.h; no longer needed.
3656         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
3657         time.h now handles any problems in that area.
3658         (struct timespec, nanosleep): Remove; time.h now arranges for these.
3659         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
3660         that time.h defines struct timespec.
3661         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
3662         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
3663         handles that.
3664         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
3665         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
3666         needed.  Set REPLACE_LOCALTIME.
3667         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
3668         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
3669         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
3670         nanosleep; time_h.m4 now does that.  Don't require
3671         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
3672         module handles this now.
3673         * modules/getdate (Depends-on): Remove timespec.  Add time.
3674         * modules/nanosleep (Depends-on): Likewise.
3675         * modules/stat-time (Depends-on): Likewise.
3676         * modules/nanosleep (Include): Include time.h, not timespec.h.
3677         * modules/strptime (Files): Remove lib/strptime.h.
3678         (Depends-on): Add extensions, time.
3679         (Include): Include time.h, not strptime.h.
3680         * modules/time_r (Files): Remove lib/time_r.h.
3681         (Depends-on): Add time.
3682         (Include): Include time.h, not time_r.h.
3683         * modules/timegm: Likewise.
3684         * modules/timespec (Description): Now does timespec-related decls
3685         of our own, instead of struct timespec itself.
3686         (Depends-on): Add time; remove extensions.
3687         (Maintainer): Add self.
3688         * modules/utimecmp (Depends-on): Add time; remove timespec.
3689         * modules/utimens (Depends-on): Likewise.
3690         * modules/xnanosleep (Depends-on): Likewise.
3691
3692 2007-02-11  Bruno Haible  <bruno@clisp.org>
3693
3694         * lib/c-strstr.c: Include allocsa.h.
3695         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
3696         * lib/c-strcasestr.c: Include allocsa.h.
3697         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
3698         * lib/strcasestr.c: Include allocsa.h.
3699         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
3700         * lib/mbsstr.c: Include allocsa.h.
3701         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
3702         allocsa/freesa instead of malloc/free.
3703         * lib/mbscasestr.c: Include allocsa.h.
3704         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
3705         allocsa/freesa instead of malloc/free.
3706         * modules/c-strstr (Depends-on): Add allocsa.
3707         * modules/c-strcasestr (Depends-on): Likewise.
3708         * modules/strcasestr (Depends-on): Likewise.
3709         * modules/mbsstr (Depends-on): Likewise.
3710         * modules/mbscasestr (Depends-on): Likewise.
3711
3712 2007-02-11  Bruno Haible  <bruno@clisp.org>
3713
3714         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
3715
3716         * modules/mbsspn-tests: New file.
3717         * tests/test-mbsspn.sh: New file.
3718         * tests/test-mbsspn.c: New file.
3719
3720 2007-02-11  Bruno Haible  <bruno@clisp.org>
3721
3722         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
3723
3724         * modules/mbspbrk-tests: New file.
3725         * tests/test-mbspbrk.sh: New file.
3726         * tests/test-mbspbrk.c: New file.
3727
3728 2007-02-11  Bruno Haible  <bruno@clisp.org>
3729
3730         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
3731         unneeded cast.
3732
3733         * modules/mbscspn-tests: New file.
3734         * tests/test-mbscspn.sh: New file.
3735         * tests/test-mbscspn.c: New file.
3736
3737 2007-02-11  Bruno Haible  <bruno@clisp.org>
3738
3739         * modules/mbscasecmp-tests: New file.
3740         * tests/test-mbscasecmp.sh: New file.
3741         * tests/test-mbscasecmp.c: New file.
3742
3743 2007-02-11  Bruno Haible  <bruno@clisp.org>
3744
3745         Ensure O(n) worst-case complexity of mbscasestr.
3746         * lib/mbscasestr.c: Include stdbool.h.
3747         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
3748         functions.
3749         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
3750         the bookkeeping indicates that it's worth it.
3751         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
3752
3753         * modules/mbscasestr-tests: New file.
3754         * tests/test-mbscasestr1.c: New file.
3755         * tests/test-mbscasestr2.sh: New file.
3756         * tests/test-mbscasestr2.c: New file.
3757         * tests/test-mbscasestr3.sh: New file.
3758         * tests/test-mbscasestr3.c: New file.
3759         * tests/test-mbscasestr4.sh: New file.
3760         * tests/test-mbscasestr4.c: New file.
3761         * m4/locale-tr.m4: New file.
3762
3763 2007-02-11  Bruno Haible  <bruno@clisp.org>
3764
3765         Ensure O(n) worst-case complexity of mbsstr.
3766         * lib/mbsstr.c: Include stdbool.h.
3767         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
3768         functions.
3769         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
3770         bookkeeping indicates that it's worth it.
3771         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
3772
3773         * modules/mbsstr-tests: New file.
3774         * tests/test-mbsstr1.c: New file.
3775         * tests/test-mbsstr2.sh: New file.
3776         * tests/test-mbsstr2.c: New file.
3777         * tests/test-mbsstr3.sh: New file.
3778         * tests/test-mbsstr3.c: New file.
3779         * m4/locale-fr.m4: New file.
3780
3781 2007-02-11  Bruno Haible  <bruno@clisp.org>
3782
3783         * lib/mbsrchr.c (mbsrchr): Fix bug.
3784
3785         * modules/mbsrchr-tests: New file.
3786         * tests/test-mbsrchr.sh: New file.
3787         * tests/test-mbsrchr.c: New file.
3788
3789 2007-02-11  Bruno Haible  <bruno@clisp.org>
3790
3791         * lib/mbschr.c (mbschr): Fix bug.
3792
3793         * modules/mbschr-tests: New file.
3794         * tests/test-mbschr.sh: New file.
3795         * tests/test-mbschr.c: New file.
3796         * m4/locale-zh.m4: New file.
3797
3798 2007-02-11  Bruno Haible  <bruno@clisp.org>
3799
3800         Support for copying multibyte string iterators.
3801         * lib/mbiter.h: Include <string.h>.
3802         (mbiter_multi_copy): New function.
3803         (mbi_copy): New macro.
3804         * lib/mbuiter.h: Include <string.h>.
3805         (mbuiter_multi_copy): New function.
3806         (mbui_copy): New macro.
3807
3808 2007-02-11  Bruno Haible  <bruno@clisp.org>
3809
3810         New module mbslen.
3811         * modules/mbslen: New file.
3812         * lib/mbslen.c: New file.
3813         * lib/string_.h (mbslen): New declaration.
3814         * m4/mbslen.m4: New file.
3815         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
3816         GNULIB_MBSLEN.
3817         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
3818         * MODULES.html.sh (Internationalization functions): Add mbslen.
3819
3820 2007-02-11  Bruno Haible  <bruno@clisp.org>
3821
3822         Ensure O(n) worst-case complexity of strcasestr substitute.
3823         * lib/strcasestr.c: Include stdbool.h.
3824         (knuth_morris_pratt): New function.
3825         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
3826         bookkeeping indicates that it's worth it.
3827         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
3828
3829         * modules/strcasestr-tests: New file.
3830         * tests/test-strcasestr.c: New file.
3831
3832 2007-02-11  Bruno Haible  <bruno@clisp.org>
3833
3834         Ensure O(n) worst-case complexity of c_strcasestr.
3835         * lib/c-strcasestr.c: Include stdbool.h, string.h.
3836         (knuth_morris_pratt): New function.
3837         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
3838         the bookkeeping indicates that it's worth it.
3839         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
3840
3841         * modules/c-strcasestr-tests: New file.
3842         * tests/test-c-strcasestr.c: New file.
3843
3844 2007-02-11  Bruno Haible  <bruno@clisp.org>
3845
3846         Ensure O(n) worst-case complexity of c_strstr.
3847         * lib/c-strstr.c: Include stdbool.h, string.h.
3848         (knuth_morris_pratt): New function.
3849         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
3850         bookkeeping indicates that it's worth it.
3851         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
3852
3853         * lib/c-strstr.c: Complete rewrite for maintainability.
3854
3855         * modules/c-strstr-tests: New file.
3856         * tests/test-c-strstr.c: New file.
3857
3858 2007-02-11  Bruno Haible  <bruno@clisp.org>
3859
3860         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
3861         5.2.1 and earlier, whereby \055 was treated just like the range
3862         delimiter '-'.
3863         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
3864
3865 2007-02-08  Bruno Haible  <bruno@clisp.org>
3866
3867         * modules/regex (Depends-on): Add stdbool.
3868         Reported by Dalibor Topic <robilad@kaffe.org>.
3869
3870 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
3871
3872         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
3873         Prefer returning from main to exiting from it.
3874         Remove unnecessary parens after sizeof.
3875
3876 2007-02-05  Bruno Haible  <bruno@clisp.org>
3877
3878         New module mbssep.
3879         * modules/mbssep: New file.
3880         * lib/mbssep.c: New file.
3881         * lib/string_.h (strsep): Add a conditional link warning.
3882         (mbssep): New declaration.
3883         * m4/mbssep.m4: New file.
3884         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
3885         GNULIB_MBSSEP.
3886         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
3887         * MODULES.html.sh (Internationalization functions): Add mbssep.
3888
3889 2007-02-05  Bruno Haible  <bruno@clisp.org>
3890
3891         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
3892         Optimize search in case of 1 delimiter.
3893
3894 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
3895
3896         * lib/acl.h: Include sys/types.h before sys/acl.h.
3897
3898 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
3899
3900         Merge upstream fix for glibc bugzilla #3957:
3901
3902         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
3903
3904         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
3905         bit for RE_HAT_LISTS_NOT_NEWLINE.
3906         (build_charclass_op): Remove bogus comment.
3907
3908 2007-02-05  Simon Josefsson  <simon@josefsson.org>
3909
3910         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
3911
3912 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
3913
3914         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
3915         * lib/memmem.c [!defined _LIBC]: Include config.h.
3916
3917 2007-02-04  Bruno Haible  <bruno@clisp.org>
3918
3919         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
3920         warning message.
3921
3922 2007-02-04  Bruno Haible  <bruno@clisp.org>
3923
3924         New module mbstok_r.
3925         * modules/mbstok_r: New file.
3926         * lib/mbstok_r.c: New file.
3927         * lib/string_.h (strtok_r): Change argument names to match the
3928         comments. Add a conditional link warning.
3929         (mbstok_r): New declaration.
3930         * m4/mbstok_r.m4: New file.
3931         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
3932         GNULIB_MBSTOK_R.
3933         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
3934         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
3935
3936 2007-02-04  Bruno Haible  <bruno@clisp.org>
3937
3938         New module mbsspn.
3939         * modules/mbsspn: New file.
3940         * lib/mbsspn.c: New file.
3941         * lib/string_.h (strspn): Add a conditional link warning.
3942         (mbsspn): New declaration.
3943         * m4/mbsspn.m4: New file.
3944         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
3945         GNULIB_MBSSPN.
3946         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
3947         * MODULES.html.sh (Internationalization functions): Add mbsspn.
3948
3949 2007-02-04  Bruno Haible  <bruno@clisp.org>
3950
3951         New module mbspbrk.
3952         * modules/mbspbrk: New file.
3953         * lib/mbspbrk.c: New file.
3954         * lib/string_.h (strpbrk): Add a conditional link warning.
3955         (mbspbrk): New declaration.
3956         * m4/mbspbrk.m4: New file.
3957         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
3958         GNULIB_MBSPBRK.
3959         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
3960         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
3961
3962 2007-02-04  Bruno Haible  <bruno@clisp.org>
3963
3964         New module mbscspn.
3965         * modules/mbscspn: New file.
3966         * lib/mbscspn.c: New file.
3967         * lib/string_.h (strcspn): Add a conditional link warning.
3968         (mbscspn): New declaration.
3969         * m4/mbscspn.m4: New file.
3970         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
3971         GNULIB_MBSCSPN.
3972         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
3973         * MODULES.html.sh (Internationalization functions): Add mbscspn.
3974
3975 2007-02-04  Bruno Haible  <bruno@clisp.org>
3976
3977         New module mbscasestr, reduced goal of strcasestr.
3978         * modules/mbscasestr: New file.
3979         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
3980         (mbscasestr): Renamed from strcasestr.
3981         * lib/strcasestr.c: Don't include mbuiter.h.
3982         (strcasestr): Remove support for multibyte locales.
3983         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
3984         Change the conditional link warning.
3985         (mbscasestr): New declaration.
3986         * m4/mbscasestr.m4: New file.
3987         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
3988         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
3989         REPLACE_STRCASESTR.
3990         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
3991         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
3992         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
3993         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
3994         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
3995         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
3996         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
3997         (Depends-on): Remove mbuiter.
3998         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
3999
4000 2007-02-04  Bruno Haible  <bruno@clisp.org>
4001
4002         Simplify handling of strncasecmp.
4003         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
4004         the conditional link warning.
4005         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
4006         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
4007         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
4008         * modules/strcase (configure.ac): Don't invoke
4009         gl_STRING_MODULE_INDICATOR.
4010         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
4011
4012 2007-02-04  Bruno Haible  <bruno@clisp.org>
4013
4014         New module mbscasecmp, reduced goal of strcasecmp.
4015         * modules/mbscasecmp: New file.
4016         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
4017         (mbscasecmp): Renamed from strcasecmp.
4018         * lib/strcasecmp.c: Don't include mbuiter.h.
4019         (strcasecmp): Remove support for multibyte locales.
4020         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
4021         Change the conditional link warning.
4022         (mbscasecmp): New declaration.
4023         * m4/mbscasecmp.m4: New file.
4024         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
4025         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
4026         REPLACE_STRCASECMP.
4027         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
4028         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
4029         GNULIB_MBSCASECMP.
4030         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
4031         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
4032         * modules/strcase (Files): Remove m4/mbrtowc.m4.
4033         (Depends-on): Remove mbuiter.
4034         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
4035
4036 2007-02-04  Bruno Haible  <bruno@clisp.org>
4037
4038         New module mbsstr. Remove module strstr.
4039         * modules/mbsstr: New file.
4040         * modules/strstr: Remove file.
4041         * lib/mbsstr.c: Renamed from lib/strstr.c.
4042         (mbsstr): Renamed from strstr.
4043         * lib/string_.h (strstr): Remove declaration. Change the conditional
4044         link warning.
4045         (mbsstr): New declaration.
4046         * m4/mbsstr.m4: New file.
4047         * m4/strstr.m4: Remove file.
4048         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
4049         REPLACE_STRSTR.
4050         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
4051         Don't initialize GNULIB_STRSTR.
4052         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
4053         substitute GNULIB_STRSTR and REPLACE_STRSTR.
4054         * MODULES.html.sh (Internationalization functions): Add mbsstr.
4055         (Support for systems lacking ANSI C 89): Remove strstr.
4056
4057 2007-02-04  Bruno Haible  <bruno@clisp.org>
4058
4059         New module mbsrchr.
4060         * modules/mbsrchr: New file.
4061         * lib/mbsrchr.c: New file.
4062         * lib/string_.h (strrchr): Add a conditional link warning.
4063         (mbsrchr): New declaration.
4064         * m4/mbsrchr.m4: New file.
4065         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
4066         GNULIB_MBSRCHR.
4067         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
4068         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
4069
4070 2007-02-04  Bruno Haible  <bruno@clisp.org>
4071
4072         New module mbschr.
4073         * modules/mbschr: New file.
4074         * lib/mbschr.c: New file.
4075         * lib/string_.h (strchr): Add a conditional link warning.
4076         (mbschr): New declaration.
4077         * m4/mbschr.m4: New file.
4078         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
4079         GNULIB_MBSCHR.
4080         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
4081         * MODULES.html.sh (Internationalization functions): Add mbschr.
4082
4083 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
4084
4085         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
4086
4087         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
4088
4089 2007-02-04  Bruno Haible  <bruno@clisp.org>
4090
4091         New module description section 'configure.ac-early'.
4092         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
4093         (func_get_autoconf_early_snippet): New function.
4094         (func_import, func_create_testdir): Use it. Remove special cases for
4095         modules 'extensions' and 'lock'.
4096         * modules/extensions (configure.ac-early): Require
4097         gl_USE_SYSTEM_EXTENSIONS.
4098         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
4099
4100 2007-02-04  Bruno Haible  <bruno@clisp.org>
4101
4102         Make use of gcj-4.3's -fsource and -ftarget option.
4103         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
4104         and if so try the options -fsource and -ftarget.
4105         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
4106         source_version, ftarget_option, target_version arguments.
4107         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
4108         (is_envjavac_oldgcj_14_14_usable): Renamed from
4109         is_envjavac_gcj_14_14_usable.
4110         (is_envjavac_oldgcj_14_13_usable): Renamed from
4111         is_envjavac_gcj_14_13_usable.
4112         (is_gcj_present): Update.
4113         (is_gcj_43, is_gcj43_usable): New functions.
4114         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
4115         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
4116         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
4117         try the options -fsource and -ftarget.
4118
4119 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
4120
4121         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
4122         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
4123         larger value.
4124
4125 2007-02-03  Jim Meyering  <jim@meyering.net>
4126
4127         Give tools a better chance to allocate space for very large buffers.
4128         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
4129
4130         Make pwd and readlink work also when run with an unreadable parent dir
4131         on systems with openat support.
4132         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
4133         provided getcwd function, even when we have openat support.
4134         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
4135
4136 2007-02-02  Bruno Haible  <bruno@clisp.org>
4137
4138         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
4139         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
4140         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
4141         portability problems if one of these functions is only used on specific
4142         platforms.
4143         Reported by Paul Eggert.
4144
4145 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
4146
4147         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
4148         is causing more trouble than it's curing.
4149         * lib/regex_internal.h (__mempcpy): Remove.
4150         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
4151         (and make the code a tad smaller to boot).
4152         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
4153
4154 2007-02-02  Jim Meyering  <jim@meyering.net>
4155
4156         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
4157         section, not in the Makefile.am: one.
4158
4159 2007-02-02  Eric Blake  <ebb9@byu.net>
4160
4161         * lib/strchrnul.c: Always include config.h first.
4162
4163         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
4164         gnulib strstr is not necessary here.
4165
4166 2007-02-02  Simon Josefsson  <simon@josefsson.org>
4167
4168         * m4/socklen.m4: Fix typo.
4169
4170 2007-02-02  Eric Blake  <ebb9@byu.net>
4171
4172         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
4173         * modules/netinet_in (Makefile.am): Likewise.
4174
4175 2007-02-01  Bruno Haible  <bruno@clisp.org>
4176
4177         * lib/string_.h (GL_LINK_WARNING): New macro.
4178         (strcasecmp, strstr, strcasestr): If provided by the system,
4179         conditionally define as a macro that leads to a warning instead of to
4180         an error.
4181         (strncasecmp): Conditionally define as a macro that leads to a warning.
4182
4183 2007-02-01  Karl Berry  <karl@gnu.org>
4184
4185         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
4186
4187 2007-02-01  Bruno Haible  <bruno@clisp.org>
4188
4189         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
4190         renamings.
4191
4192 2007-02-01  Eric Blake  <ebb9@byu.net>
4193
4194         * modules/regex (Depends-on): Revert dependence on mempcpy.
4195         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
4196         module's definition of mempcpy.
4197         Reported by Paul Eggert.
4198
4199 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
4200
4201         * lib/string_.h: If the gnulib module XYZ is not present, undefine
4202         the symbol XYZ before redefining it.  This fixes a problem with
4203         programs that don't use XYZ, when compiled on systems that define
4204         XYZ to something else.
4205
4206 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
4207
4208         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
4209         occurs when "mkdir -m foo" creates a setgid directory that is (1)
4210         writeable to group or other and (2) is intended to have a special
4211         mode bit that is set or cleared.  In such a case, the directory
4212         should be neither group- nor other-writeable until the special
4213         mode bits are right.
4214
4215 2007-01-31  Eric Blake  <ebb9@byu.net>
4216
4217         * modules/mountlist (Depends-on): Add strstr.
4218
4219         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
4220         bug.
4221         * modules/string (Makefile.am): Remove redundant replacement.
4222         * modules/regex (Depends-on): Add mempcpy.
4223
4224 2007-01-31  Bruno Haible  <bruno@clisp.org>
4225
4226         New module description field 'Link'.
4227         * gnulib-tool (func_usage): Document --extract-link-directive.
4228         (sed_extract_prog): Recognize 'Link' directive.
4229         (func_get_link_directive): New function.
4230         (func_import): Show summary of link directives.
4231         Handle --extract-link-directive option.
4232         * modules/acl (Link): New section.
4233         * modules/clock-time (Link): New section.
4234         * modules/euidaccess (Link): New section.
4235         * modules/gettext (Link): New section.
4236         * modules/iconv (Link): New section.
4237         * modules/lock (Link): New section.
4238         * modules/nanosleep (Link): New section.
4239         * modules/readline (Link): New section.
4240
4241 2007-01-27  Bruno Haible  <bruno@clisp.org>
4242
4243         Enforce the use of gnulib modules for unportable <string.h> functions.
4244         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
4245         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
4246         (gl_HEADER_STRING_H_BODY): Require it.
4247         * lib/string_.h: If the gnulib module XYZ is not present, redefine
4248         the symbol XYZ to one that gives a link error.
4249         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
4250         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
4251         * modules/mempcpy (configure.ac): Likewise.
4252         * modules/memrchr (configure.ac): Likewise.
4253         * modules/stpcpy (configure.ac): Likewise.
4254         * modules/stpncpy (configure.ac): Likewise.
4255         * modules/strcase (configure.ac): Likewise.
4256         * modules/strcasestr (configure.ac): Likewise.
4257         * modules/strchrnul (configure.ac): Likewise.
4258         * modules/strdup (configure.ac): Likewise.
4259         * modules/strndup (configure.ac): Likewise.
4260         * modules/strnlen (configure.ac): Likewise.
4261         * modules/strpbrk (configure.ac): Likewise.
4262         * modules/strsep (configure.ac): Likewise.
4263         * modules/strstr (configure.ac): Likewise.
4264         * modules/strtok_r (configure.ac): Likewise.
4265
4266 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
4267
4268         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
4269
4270 2007-01-30  Jim Meyering  <jim@meyering.net>
4271
4272         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
4273
4274 2007-01-29  Bruno Haible  <bruno@clisp.org>
4275
4276         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
4277         * lib/execute.c: Likewise.
4278         * lib/pipe.c: Likewise.
4279         * lib/printf-args.h: Likewise.
4280         * lib/printf-args.c: Likewise.
4281         * lib/printf-parse.c: Likewise.
4282         * lib/vasnprintf.c: Likewise.
4283
4284 2007-01-29  Eric Blake  <ebb9@byu.net>
4285
4286         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
4287         declaration.
4288
4289 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
4290
4291         * lib/strptime.h (strptime): Use 'restrict' for args where
4292         POSIX requires this.
4293         * lib/strptime.c (strptime): Likewise.
4294         Change license notice from LGPL to GPL, since gnulib-tool will
4295         change this as needed.
4296         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
4297         defined.
4298         Include "strptime.h" first, to check interface.
4299         Do not #undef _LIBC and _NL_CURRENT.
4300         Do not include <stdlib.h>; no longer needed.
4301         Include "time_r.h" and declare ptime_locale_status
4302         only if _LIBC is not defined.
4303         (__P): Remove unused macro.
4304         (match_string): Bring back glibc version, but use it only if _LIBC
4305         is defined.
4306         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
4307         Remove unnecessary assertion and abort() call.
4308         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
4309         * m4/strptime.m4: Fix serial number comment.
4310         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
4311         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
4312         (Depends-on): Add time_r.
4313
4314 2007-01-29  Bruno Haible  <bruno@clisp.org>
4315
4316         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
4317         strptime.
4318         * modules/strptime (Depends-on): Add stdbool.
4319         * lib/strptime.h: Include <time.h> always. Add comments.
4320
4321 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
4322
4323         * modules/strptime: New file.
4324         * lib/strptime.h: New file.
4325         * lib/strptime.c: New file.
4326         * m4/strptime.m4: New file.
4327
4328 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
4329
4330         * MODULES.html.sh: New module mpsort.
4331         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
4332
4333         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
4334         a circularity problem with HP-UX ia64 reported by Bob Proulx in
4335         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
4336         All uses changed.
4337         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
4338         All uses changed.
4339         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
4340         to _Restrict_.
4341         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
4342         the parameter matches the prototype.
4343
4344 2007-01-28  Jim Meyering  <jim@meyering.net>
4345
4346         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
4347         sys/time.h here, reverting that part of the previous patch:
4348         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
4349
4350 2007-01-28  Bruno Haible  <bruno@clisp.org>
4351
4352         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
4353         value of $(SYS_TIME_H).
4354         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
4355         remove it conditionally, too. [added by Jim Meyering]
4356         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
4357         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
4358         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
4359         GETTIMEOFDAY_REPLACEMENT to 1.
4360
4361 2007-01-28  Bruno Haible  <bruno@clisp.org>
4362
4363         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
4364         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
4365         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
4366         Set UNISTD_H instead of UNISTD_H2.
4367         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
4368
4369 2007-01-28  Bruno Haible  <bruno@clisp.org>
4370
4371         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
4372         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
4373
4374 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4375
4376         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
4377         (func_create_testdir): Ensure C locale for `grep' and `tr'
4378         character ranges.
4379         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
4380         ACLOCAL_AMFLAGS parsing state machine.
4381
4382 2007-01-27  Bruno Haible  <bruno@clisp.org>
4383
4384         * modules/unistr/base: Update.
4385
4386 2007-01-27  Bruno Haible  <bruno@clisp.org>
4387
4388         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
4389         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
4390         * modules/unistr/u32-mbtouc-unsafe: Renamed from
4391         modules/unistr/u32-mbtouc.
4392         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
4393         * lib/unistr.h: Update.
4394         * lib/linebreak.c: Update.
4395         * modules/unistr/u32-mbtouc: Renamed from
4396         modules/unistr/u32-mbtouc-safe.
4397         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
4398         * lib/unistr.h: Update.
4399         * lib/unistr/u32-to-u8.c: Update.
4400         * lib/unistr/u32-to-u16.c: Update.
4401
4402 2007-01-27  Bruno Haible  <bruno@clisp.org>
4403
4404         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
4405         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
4406         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
4407         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
4408         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
4409         * modules/unistr/u16-mbtouc-unsafe: Renamed from
4410         modules/unistr/u16-mbtouc.
4411         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
4412         * lib/unistr.h: Update.
4413         * lib/linebreak.c: Update.
4414         * modules/linebreak: Update.
4415         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
4416         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
4417         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
4418         * modules/unistr/u16-mbtouc: Renamed from
4419         modules/unistr/u16-mbtouc-safe.
4420         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
4421         * lib/unistr.h: Update.
4422         * lib/unistr/u16-to-u8.c: Update.
4423         * modules/unistr/u16-to-u8: Update.
4424         * lib/unistr/u16-to-u32.c: Update.
4425         * modules/unistr/u16-to-u32: Update.
4426
4427 2007-01-27  Bruno Haible  <bruno@clisp.org>
4428
4429         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
4430         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
4431         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
4432         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
4433         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
4434         * modules/unistr/u8-mbtouc-unsafe: Renamed from
4435         modules/unistr/u8-mbtouc.
4436         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
4437         * lib/unistr.h: Update.
4438         * lib/striconveh.c: Update.
4439         * modules/striconveh: Update.
4440         * lib/linebreak.c: Update.
4441         * modules/linebreak: Update.
4442         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
4443         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
4444         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
4445         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
4446         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
4447         * lib/unistr.h: Update.
4448         * lib/striconveh.c: Update.
4449         * modules/striconveh: Update.
4450         * lib/unistr/u8-to-u16.c: Update.
4451         * modules/unistr/u8-to-u16: Update.
4452         * lib/unistr/u8-to-u32.c: Update.
4453         * modules/unistr/u8-to-u32: Update.
4454
4455 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
4456
4457         Sync from Libtool.
4458         * lib/argz.c: Do not include strings.h nor memory.h, include
4459         string.h unconditionally.  Patch by Simon Josefsson.
4460
4461 2007-01-27  Bruno Haible  <bruno@clisp.org>
4462
4463         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
4464         from gl_HEADER_STRING_H_BODY.
4465         (gl_HEADER_STRING_H_BODY): Require it.
4466         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
4467         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
4468         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
4469         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
4470         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
4471         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
4472         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
4473         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
4474         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
4475         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
4476         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
4477         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
4478         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
4479         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
4480         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
4481
4482 2007-01-27  Bruno Haible  <bruno@clisp.org>
4483
4484         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
4485         check_PROGRAMS into noinst_PROGRAMS.
4486         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
4487         check_PROGRAMS in this case.
4488         (func_import): Set for_test to false.
4489         (func_create_testdir): Set for_test to true.
4490
4491 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
4492             Bruno Haible  <bruno@clisp.org>
4493
4494         * modules/strcasestr (Files): Remove lib/strcasestr.h.
4495         (Depends-on): Add string.
4496         (Includes): Use <string.h> instead of strcasestr.h.
4497         * modules/string (Makefile.am): Also substitute the value of
4498         REPLACE_STRCASESTR.
4499         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
4500         assume strcasestr is declared in <string.h> not <strings.h>. Also
4501         set REPLACE_STRCASESTR.
4502         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
4503         REPLACE_STRCASESTR.
4504         * lib/strcasestr.h: Remove file.
4505         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
4506         * lib/string_.h (strcasestr): New declaration.
4507
4508 2007-01-27  Bruno Haible  <bruno@clisp.org>
4509
4510         * lib/string_.h: Use 'extern'.
4511
4512 2007-01-27  Jim Meyering  <jim@meyering.net>
4513
4514         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
4515         of set-but-not-used local, "q".
4516
4517         * lib/mempcpy.c: Include <config.h> before <string.h>.
4518         This fixes a compilation error on HP-UX, due to the system's
4519         "restrict"-using mempcpy prototype.
4520
4521 2007-01-26  Bruno Haible  <bruno@clisp.org>
4522
4523         Small optimization.
4524         * lib/javacomp.c: Include c-strstr.h.
4525          (is_envjavac_gcj): Use c_strstr instead of strstr.
4526         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
4527
4528 2007-01-26  Bruno Haible  <bruno@clisp.org>
4529
4530         * MODULES.html.sh (Unicode string functions): Add the new modules.
4531
4532         * modules/uniconv/u32-strconv-to-locale: New file.
4533         * lib/uniconv/u32-strconv-to-locale.c: New file.
4534
4535         * modules/uniconv/u16-strconv-to-locale: New file.
4536         * lib/uniconv/u16-strconv-to-locale.c: New file.
4537
4538         * modules/uniconv/u8-strconv-to-locale: New file.
4539         * lib/uniconv/u8-strconv-to-locale.c: New file.
4540
4541         * modules/uniconv/u32-strconv-from-locale: New file.
4542         * lib/uniconv/u32-strconv-from-locale.c: New file.
4543
4544         * modules/uniconv/u16-strconv-from-locale: New file.
4545         * lib/uniconv/u16-strconv-from-locale.c: New file.
4546
4547         * modules/uniconv/u8-strconv-from-locale: New file.
4548         * lib/uniconv/u8-strconv-from-locale.c: New file.
4549
4550         * modules/uniconv/u32-strconv-to-enc: New file.
4551         * lib/uniconv/u32-strconv-to-enc.c: New file.
4552         * modules/uniconv/u32-strconv-to-enc-tests: New file.
4553         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
4554
4555         * modules/uniconv/u16-strconv-to-enc: New file.
4556         * lib/uniconv/u16-strconv-to-enc.c: New file.
4557         * lib/uniconv/u-strconv-to-enc.h: New file.
4558         * modules/uniconv/u16-strconv-to-enc-tests: New file.
4559         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
4560
4561         * modules/uniconv/u8-strconv-to-enc: New file.
4562         * lib/uniconv/u8-strconv-to-enc.c: New file.
4563         * modules/uniconv/u8-strconv-to-enc-tests: New file.
4564         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
4565
4566         * modules/uniconv/u32-strconv-from-enc: New file.
4567         * lib/uniconv/u32-strconv-from-enc.c: New file.
4568         * modules/uniconv/u32-strconv-from-enc-tests: New file.
4569         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
4570
4571         * modules/uniconv/u16-strconv-from-enc: New file.
4572         * lib/uniconv/u16-strconv-from-enc.c: New file.
4573         * modules/uniconv/u16-strconv-from-enc-tests: New file.
4574         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
4575
4576         * modules/uniconv/u8-strconv-from-enc: New file.
4577         * lib/uniconv/u8-strconv-from-enc.c: New file.
4578         * lib/uniconv/u-strconv-from-enc.h: New file.
4579         * modules/uniconv/u8-strconv-from-enc-tests: New file.
4580         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
4581
4582         * modules/uniconv/u32-conv-from-enc: New file.
4583         * lib/uniconv/u32-conv-from-enc.c: New file.
4584         * modules/uniconv/u32-conv-from-enc-tests: New file.
4585         * tests/uniconv/test-u32-conv-from-enc.c: New file.
4586
4587         * modules/uniconv/u16-conv-from-enc: New file.
4588         * lib/uniconv/u16-conv-from-enc.c: New file.
4589         * lib/uniconv/u-conv-from-enc.h: New file.
4590         * modules/uniconv/u16-conv-from-enc-tests: New file.
4591         * tests/uniconv/test-u16-conv-from-enc.c: New file.
4592
4593         * modules/uniconv/u8-conv-from-enc: New file.
4594         * lib/uniconv/u8-conv-from-enc.c: New file.
4595         * modules/uniconv/u8-conv-from-enc-tests: New file.
4596         * tests/uniconv/test-u8-conv-from-enc.c: New file.
4597
4598         * modules/uniconv/base: New file.
4599         * lib/uniconv.h: New file.
4600
4601 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
4602
4603         * doc/gnulib-tool.texi (Initial import): Update to match current
4604         behavior with strdup module.
4605         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
4606         * lib/memmem.h: Remove; all uses removed.  This is now done
4607         by <string.h>.
4608         * lib/mempcpy.h: Likewise.
4609         * lib/memrchr.h: Likewise.
4610         * lib/stpcpy.h: Likewise.
4611         * lib/stpncpy.h: Likewise.
4612         * lib/strcase.h: Likewise.
4613         * lib/strchrnul.h: Likewise.
4614         * lib/strdup.h: Likewise.
4615         * lib/strndup.h: Likewise.
4616         * lib/strnlen.h: Likewise.
4617         * lib/strpbrk.h: Likewise.
4618         * lib/strsep.h: Likewise.
4619         * lib/strstr.h: Likewise.
4620         * lib/strtok_r.h: Likewise.
4621         * lib/string_.h: New file.
4622         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
4623         Rely on <string.h> instead.
4624         * lib/canon-host.c: Likewise.
4625         * lib/chdir-long.c: Likewise.
4626         * lib/concatpath.c: Likewise.
4627         * lib/exclude.c: Likewise.
4628         * lib/fchdir.c: Likewise.
4629         * lib/getaddrinfo.c: Likewise.
4630         * lib/getcwd.c: Likewise.
4631         * lib/getsubopt.c: Likewise.
4632         * lib/glob.c: Likewise.
4633         * lib/hard-locale.c: Likewise.
4634         * lib/iconvme.c: Likewise.
4635         * lib/javacomp.c: Likewise.
4636         * lib/mempcpy.c: Likewise.
4637         * lib/memrchr.c: Likewise.
4638         * lib/regex_internal.h: Likewise.
4639         * lib/stpncpy.c: Likewise.
4640         * lib/strcasecmp.c: Likewise.
4641         * lib/strchrnul.c: Likewise.
4642         * lib/strdup.c: Likewise.
4643         * lib/striconv.c: Likewise.
4644         * lib/striconveh.c: Likewise.
4645         * lib/striconveha.c: Likewise.
4646         * lib/strncasecmp.c: Likewise.
4647         * lib/strndup.c: Likewise.
4648         * lib/strnlen.c: Likewise.
4649         * lib/strsep.c: Likewise.
4650         * lib/strstr.c: Likewise.
4651         * lib/strtok_r.c: Likewise.
4652         * lib/userspec.c: Likewise.
4653         * lib/w32spawn.h: Likewise.
4654         * lib/xstrndup.c: Likewise.
4655         * lib/mountlist.c (strstr): Remove decl.
4656         * m4/string_h.m4: New file.
4657         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
4658         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
4659         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
4660         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
4661         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
4662         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
4663         Set REPLACE_STRCASECMP if necessary.
4664         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
4665         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
4666         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
4667         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
4668         HAVE_DECL_STRDUP if necessary.
4669         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
4670         since gl_FUNC_STRNDUP does that now.
4671         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
4672         Check for decl here...
4673         (gl_PREREQ_STRNLEN): ... not here.
4674         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
4675         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
4676         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
4677         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
4678         necessary.
4679         * modules/string: New file.
4680         * modules/memmem (Files): Remove special-purpose include file.
4681         (Depends-on): Add string.
4682         (Include): Include <string.h>, not the removed file.
4683         * modules/mempcpy: Likewise.
4684         * modules/memrchr: Likewise.
4685         * modules/stpcpy: Likewise.
4686         * modules/stpncpy: Likewise.
4687         * modules/strcase: Likewise.
4688         * modules/strchrnul: Likewise.
4689         * modules/strdup: Likewise.
4690         * modules/strndup: Likewise.
4691         * modules/strnlen: Likewise.
4692         * modules/strpbrk: Likewise.
4693         * modules/strsep: Likewise.
4694         * modules/strstr: Likewise.
4695         * modules/strtok_r: Likewise.
4696         * tests/test-dirname.c: Don't include "strdup.h", since
4697         <string.h> now suffices.
4698         * tests/test-memmem.c: Don't include "memmem.h", since
4699         <string.h> now suffices.
4700
4701 2007-01-25  Bruno Haible  <bruno@clisp.org>
4702
4703         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
4704         *resultp is 0.
4705
4706         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
4707         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
4708         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
4709         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
4710
4711         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
4712         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
4713         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
4714         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
4715         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
4716         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
4717
4718 2007-01-24  Bruno Haible  <bruno@clisp.org>
4719
4720         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
4721         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
4722         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
4723         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
4724         gl_FUNC_FTS_CORE.
4725         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
4726         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
4727         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
4728         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
4729         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
4730         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
4731         gl_FUNC_FCHOWNAT.
4732         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
4733         gl_FUNC_STRFTIME.
4734         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
4735         Reported by Ralf Wildenhues.
4736
4737 2007-01-24  Bruno Haible  <bruno@clisp.org>
4738
4739         Drop AC_REQUIRE calls that are redundant with the module dependencies.
4740         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
4741         gl_GETADDRINFO.
4742         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
4743         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
4744         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
4745
4746 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
4747
4748         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
4749         Don't use 'exit'; just return from 'main'.
4750         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
4751
4752         * lib/fnmatch_.h: Readjust white space and comments to match
4753         glibc, to avoid spurious diffs.
4754
4755 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
4756
4757         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
4758         2004-12-01 change by Jakub Jelinek, since this code won't compile
4759         if !LIBC.  Problem reported by Bob Proulx.
4760
4761 2007-01-23  Bruno Haible  <bruno@clisp.org>
4762
4763         * lib/striconveh.c: Include c-strcaseeq.h.
4764         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
4765         * modules/striconveh (Depends-on): Add c-strcaseeq.
4766
4767 2007-01-23  Bruno Haible  <bruno@clisp.org>
4768
4769         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
4770
4771         * modules/c-strcaseeq: New file.
4772         * lib/c-strcaseeq.h: New file.
4773
4774         * modules/streq: New file.
4775         * lib/streq.h: New file.
4776
4777 2007-01-23  Bruno Haible  <bruno@clisp.org>
4778
4779         * modules/striconveha-tests: New file.
4780         * tests/test-striconveha.c: New file.
4781
4782         * lib/striconveha.h: Include <stdbool.h>.
4783         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
4784         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
4785         (mem_iconveha_notranslit): Renamed from mem_iconveha.
4786         (mem_iconveha): New function.
4787         (str_iconveha_notranslit): Renamed from str_iconveha.
4788         (str_iconveha): New function.
4789         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
4790         c-strcase.
4791
4792 2007-01-23  Bruno Haible  <bruno@clisp.org>
4793
4794         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
4795         encodings without forgiving before trying any encoding with handler.
4796         (str_iconveha): Try all encodings without forgiving before trying any
4797         encoding with handler.
4798
4799 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
4800
4801         Import the following changes from libc.
4802
4803         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
4804
4805         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
4806
4807         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
4808
4809         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
4810         normal_bracket label.
4811
4812         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
4813
4814         [BZ #361]
4815         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
4816         to normal_bracket after fetching the next character.
4817
4818 2007-01-22  Bruno Haible  <bruno@clisp.org>
4819
4820         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
4821         argument.
4822         * lib/striconveh.c (iconv_carefully_1): New function.
4823         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
4824         argument.
4825         (str_cd_iconveh): Update.
4826         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
4827         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
4828         * tests/test-striconveh.c (MAGIC): New macro.
4829         (new_offsets): New function.
4830         (main): Test call with and without offsets.
4831
4832 2007-01-22  Bruno Haible  <bruno@clisp.org>
4833
4834         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
4835         * modules/sys_select (Makefile.am): Likewise.
4836         * modules/sys_socket (Makefile.am): Likewise.
4837         * modules/sys_time (Makefile.am): Likewise.
4838
4839 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
4840
4841         * modules/gettimeofday (License): Change from GPL to LGPL, since
4842         gettimeofday is a library function.
4843
4844 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
4845
4846         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
4847
4848 2007-01-21  Bruno Haible  <bruno@clisp.org>
4849
4850         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
4851
4852 2007-01-21  Bruno Haible  <bruno@clisp.org>
4853
4854         * modules/striconveha: New file.
4855         * lib/striconveha.h: New file.
4856         * lib/striconveha.c: New file.
4857         * MODULES.html.sh (Internationalization functions): Add striconveha.
4858         * lib/striconv.c (str_iconv): Optimize the case of an empty input
4859         string.
4860         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
4861
4862 2007-01-21  Bruno Haible  <bruno@clisp.org>
4863
4864         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
4865         * lib/striconveh.c (str_iconveh): Likewise.
4866
4867 2007-01-21  Bruno Haible  <bruno@clisp.org>
4868
4869         * lib/striconveh.h (mem_iconveh): New declaration.
4870         * lib/striconveh.c (mem_iconveh): New function.
4871         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
4872
4873 2007-01-21  Bruno Haible  <bruno@clisp.org>
4874
4875         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
4876
4877         * lib/striconveh.h (mem_cd_iconveh): Change specification.
4878         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
4879         original result buffer.
4880         (str_cd_iconveh): Update.
4881         * tests/test-striconveh.c (main): Update.
4882
4883         * lib/striconv.h (mem_cd_iconv): Change specification.
4884         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
4885         result buffer.
4886         (str_cd_iconv): Update.
4887         * tests/test-striconv.c (main): Update.
4888
4889 2007-01-21  Bruno Haible  <bruno@clisp.org>
4890
4891         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
4892
4893 2007-01-20  Jim Meyering  <jim@meyering.net>
4894
4895         * lib/userspec.c (parse_with_separator): If a user or group string
4896         starts with "+", skip the corresponding name-to-ID look-up, since
4897         such a look-up must fail: user and group names may not include "+".
4898
4899 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
4900
4901         * lib/poll.c: Include sys/time.h and time.h unconditionally,
4902         since we now assume the sys_time module.
4903         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
4904         check for sys/time.h; no longer needed.
4905         * modules/poll (Depends-on): Depend on sys_time.
4906
4907 2007-01-18  Bruno Haible  <bruno@clisp.org>
4908
4909         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
4910         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
4911
4912         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
4913         gettimeofday.
4914
4915         * tests/test-gettimeofday.c: Include <time.h>.
4916         (dummy): Remove variable.
4917
4918         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
4919         gl_HEADER_SYS_TIME_H.
4920         (gl_HEADER_SYS_TIME_H): New macro.
4921
4922         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
4923         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
4924         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
4925         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
4926         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
4927         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
4928         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
4929         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
4930         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
4931         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
4932         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
4933
4934         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
4935         last change; it caused a compilation error when cross-compiling to
4936         Cygwin.
4937
4938 2007-01-18  Jim Meyering  <jim@meyering.net>
4939
4940         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
4941         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
4942         than the race-prone "test -d sys || mkdir sys".
4943         (configure.ac): Use AC_PROG_MKDIR_P.
4944         * modules/sys_select: Likewise.
4945         * modules/sys_socket: Likewise.
4946         * modules/sys_time: Likewise.
4947
4948 2007-01-18  Eric Blake  <ebb9@byu.net>
4949
4950         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
4951         replace gettimeofday.
4952         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
4953         name, to avoid infinite recursion.
4954
4955 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
4956
4957         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
4958         module sys_time.
4959         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
4960         assume timespec.h defines struct timeval.
4961         * lib/settime.c: Likewise.
4962         * lib/utimens.c: Likewise.
4963         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
4964         since we now assume the gettimeofday module.
4965         * lib/tempname.c (__gen_tempname): Likewise.
4966         * lib/gettimeofday.h: Remove.
4967         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
4968         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
4969         Include <time.h>, for 'time()'.
4970         (localtime_buffer_addr): Also use this workaround if
4971         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
4972         to simplify the uses.  All uses changed.
4973         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
4974         that #undef is inside {}, and 'const' follows type name consistently.
4975         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
4976         (gettimeofday): Do not use the maximum possible value for
4977         tv->tv_usec, since that might break usages other than ls.c.
4978         Instead, we'll leave ls.c alone.  This undoes today's patch
4979         by Bruno.  Add a compile-time warning for 1s-clock resolution;
4980         we've never observed the problem but might as well keep the
4981         canary.
4982         * lib/nanosleep.c: Include timespec.h first, for interface check.
4983         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
4984         now assume the sys_time module.
4985         * lib/tempname.c: Likewise.
4986         * lib/timespec.h: Likewise.
4987         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
4988         needed.
4989         * lib/strftime.c: Likewise.
4990         * lib/timespec.h: Likewise.
4991         * lib/posixtm.c: Include posixtm.h first, for interface check.
4992         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
4993         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
4994         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
4995         * lib/sys_time_.h: New file.
4996         * lib/timespec.h (struct timespec): Use long int, not long.
4997         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
4998         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
4999         Remove obsolescent call to AC_HEADER_TIME.
5000         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
5001         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
5002         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
5003         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
5004         Likewise.
5005         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
5006         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
5007         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
5008         into the sys_time module.  Check for gettimeofday just once.
5009         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
5010         for gettimeofday signature to just check the signature.  Merely
5011         compile it, since linking doesn't test signature.  Improve test for
5012         whether gettimeofday.o is actually needed.
5013         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
5014         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
5015         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
5016         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
5017         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
5018         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
5019         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
5020         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
5021         than worrying about sys/time.h.
5022         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
5023         Don't bother worrying about TIME_WITH_SYS_TIME.
5024         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
5025         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
5026         * m4/sys_time_h.m4: New file.
5027         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
5028         Don't include sys/time.h.  Return from main rather than exiting.
5029         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
5030         all uses changed.
5031         * modules/gethrxtime (Depends-on): Add sys_time.
5032         * modules/gettime (Depends-on): Likewise.
5033         * modules/gettimeofday (Depends-on): Likewise.
5034         * modules/nanosleep (Depends-on): Likewise.
5035         * modules/settime (Depends-on): Likewise.
5036         * modules/tempname (Depends-on): Likewise.
5037         * modules/utimens (Depends-on): Likewise.
5038         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
5039         (Include:) Change back to <sys/time.h>.
5040         (Maintainer:) Add self.
5041         * modules/sys_time: New file.
5042         * modules/tempname (Depends-on): Add gettimeofday.
5043         * tests/test-gettimeofday.c: Include <sys/time.h>
5044         rather than gettimeofday.h.
5045
5046 2007-01-17  Bruno Haible  <bruno@clisp.org>
5047
5048         * gnulib-tool (func_get_license): Revert last patch. Instead, let
5049         the license default to GPL.
5050         (func_create_testdir): Don't complain if a module is LGPL and its
5051         tests module depends on GPLed modules.
5052
5053 2007-01-17  Bruno Haible  <bruno@clisp.org>
5054
5055         * lib/gettimeofday.c (gettimeofday): Add code for the case
5056         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
5057         maximum possible value for tv->tv_usec, rather than the minimum one.
5058
5059 2005-10-08  Martin Lambers  <marlam@marlam.de>
5060 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
5061 2007-01-16  Bruno Haible  <bruno@clisp.org>
5062
5063         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
5064         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
5065         gl_FUNC_GETTIMEOFDAY.
5066         (Include): Add gettimeofday.h.
5067         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
5068         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
5069         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
5070         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
5071         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
5072         * lib/gettimeofday.h: New file.
5073         * lib/gettimeofday.c: Include <sys/timeb.h>.
5074         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
5075         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
5076         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
5077         fall back on time().
5078
5079         * tests/test-gettimeofday.c: New file.
5080         * modules/gettimeofday-tests: New file.
5081
5082 2007-01-16  Eric Blake  <ebb9@byu.net>
5083
5084         * modules/fnmatch (Depends-on): Depend on wchar.
5085         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
5086         * m4/fnmatch.m4: Likewise.
5087         * modules/mbchar (Makefile.am): Assume <wchar.h>.
5088         * m4/mbchar.m4: Likewise.
5089         * modules/mbswidth (Depends-on): Depend on wchar.
5090         * lib/mbswidth.c: Assume <wchar.h>.
5091         * m4/mbswidth.m4: Likewise.
5092         * modules/quotearg (Depends-on): Depend on wchar.
5093         * lib/quotearg.c: Assume <wchar.h>.
5094         * m4/quotearg.m4: Likewise.
5095         * modules/regex (Depends-on): Depend on wchar.
5096         * lib/regex_internal.h: Assume <wchar.h>.
5097         * m4/regex.m4: Likewise.
5098         * modules/stdint (Depends-on): Depend on wchar.
5099         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
5100         * m4/stdint.m4: Likewise.
5101         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
5102         * modules/strftime (Depends-on): Depend on wchar.
5103         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
5104         * modules/strtol (Depends-on): Depend on wchar.
5105         * lib/strtol.c: Assume <wchar.h>.
5106         * modules/wcwidth (Depends-on): Depend on wchar.
5107         * lib/wcwidth.h: Assume <wchar.h>.
5108         * m4/wcwidth.m4: Likewise.
5109
5110 2007-01-16  Bruno Haible  <bruno@clisp.org>
5111
5112         * modules/csharpexec-script: New, created from...
5113         * modules/csharpexec: ... this.
5114
5115 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
5116
5117         * modules/javaexec-script: New, created from...
5118         * modules/javaexec: ... this.
5119
5120 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
5121
5122         * modules/poll (Dependencies): Add sys_select.
5123
5124 2007-01-15  Jim Meyering  <jim@meyering.net>
5125
5126         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
5127         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
5128         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
5129         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
5130
5131 2007-01-15  Bruno Haible  <bruno@clisp.org>
5132
5133         * modules/striconveh: New file.
5134         * lib/striconveh.h: New file.
5135         * lib/striconveh.c: New file.
5136         * MODULES.html.sh (Internationalization functions): Add striconveh.
5137
5138         * modules/striconveh-tests: New file.
5139         * tests/test-striconveh.c: New file.
5140
5141 2007-01-15  Bruno Haible  <bruno@clisp.org>
5142
5143         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
5144         not from GNU libiconv or GNU libc.
5145
5146 2007-01-15  Bruno Haible  <bruno@clisp.org>
5147
5148         * doc/gnulib-intro.texi (Copyright): Explain the different license
5149         terms for module descriptions, autoconf macros, tests, documentation.
5150
5151 2007-01-14  Bruno Haible  <bruno@clisp.org>
5152
5153         * modules/striconv-tests: New file.
5154         * tests/test-striconv.c: New file.
5155
5156 2007-01-14  Bruno Haible  <bruno@clisp.org>
5157
5158         * modules/iconv-tests: New file.
5159         * tests/test-iconv.c: New file.
5160
5161 2007-01-14  Bruno Haible  <bruno@clisp.org>
5162
5163         * gnulib-tool (func_get_license): For test modules, use the license of
5164         the main module.
5165
5166 2007-01-14  Bruno Haible  <bruno@clisp.org>
5167
5168         * modules/iconv (Include): Clarify that <iconv.h> can only be included
5169         if iconv is found to exist.
5170
5171 2007-01-14  Bruno Haible  <bruno@clisp.org>
5172
5173         * modules/c-ctype-tests: New file.
5174         * tests/test-c-ctype.c: New file.
5175
5176 2007-01-14  Bruno Haible  <bruno@clisp.org>
5177
5178         * modules/binary-io-tests: New file.
5179         * tests/test-binary-io.sh: New file.
5180         * tests/test-binary-io.c: New file.
5181
5182 2007-01-14  Bruno Haible  <bruno@clisp.org>
5183
5184         * modules/array-oset-tests: New file.
5185         * tests/test-array_oset.c: New file.
5186
5187 2007-01-14  Bruno Haible  <bruno@clisp.org>
5188
5189         * modules/array-list-tests: New file.
5190         * tests/test-array_list.c: New file.
5191
5192 2007-01-14  Bruno Haible  <bruno@clisp.org>
5193
5194         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
5195         and make.
5196         Reported by Simon Josefsson in
5197         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
5198
5199 2007-01-14  Bruno Haible  <bruno@clisp.org>
5200
5201         * modules/allocsa-tests: New file.
5202         * tests/test-allocsa.c: New file.
5203
5204 2007-01-14  Bruno Haible  <bruno@clisp.org>
5205
5206         * modules/fchdir (Depends-on): Add absolute-header.
5207         * modules/unistd (Depends-on): Likewise.
5208
5209 2006-12-30  Bruno Haible  <bruno@clisp.org>
5210
5211         * modules/fchdir: New file.
5212         * modules/unistd (Files): Add lib/unistd_.h.
5213         (Makefile.am): Generate unistd.h from unistd_.h.
5214         * lib/fchdir.c: New file.
5215         * lib/dirent_.h: New file.
5216         * lib/unistd_.h: New file.
5217         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
5218         * m4/fchdir.m4: New file.
5219         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
5220         (gl_HEADER_UNISTD): Invoke it.
5221         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
5222         function.
5223         * lib/backupfile.c (opendir, closedir): Undefine.
5224         * lib/chown.c (open, close): Undefine.
5225         * lib/clean-temp.c (open, close): Undefine.
5226         * lib/copy-file.c (open, close): Undefine.
5227         * lib/execute.c (open, close): Undefine.
5228         * lib/fsusage.c (open, close): Undefine.
5229         * lib/gc-gnulib.c (open, close): Undefine.
5230         * lib/getcwd.c (opendir, closedir): Undefine.
5231         * lib/glob.c (opendir, closedir): Undefine.
5232         * lib/javacomp.c (open, close): Undefine.
5233         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
5234         * lib/openat-proc.c (open, close): Undefine.
5235         * lib/pagealign_alloc.c (open, close): Undefine.
5236         * lib/pipe.c (open, close): Undefine.
5237         * lib/progreloc.c (open, close): Undefine.
5238         * lib/savedir.c (opendir, closedir): Undefine.
5239         * lib/utime.c (open, close): Undefine.
5240         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
5241
5242 2007-01-10  Bruno Haible  <bruno@clisp.org>
5243
5244         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
5245
5246 2007-01-12  Eric Blake  <ebb9@byu.net>
5247
5248         Provide a robust <wchar.h>.  Further simplifications are now
5249         possible in other modules, but not included here.
5250         * modules/wchar: New module.
5251         * m4/wchar.m4: New file.
5252         * lib/wchar_.h: Likewise.
5253         * modules/mbchar (Depends-on): Depend on wchar, as the first use
5254         of the new module.
5255         * MODULES.html.sh (Extended multibyte and wide character utilities):
5256         New section.
5257
5258 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
5259
5260         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
5261         to a reasonable default for memory allocation.
5262         (xreadlink): Don't allocate a huge buffer, to work around a buggy
5263         file system that reports garbage st_size values for symlinks.
5264         Problem reported by Liyang Hu.
5265
5266 2007-01-11  Simon Josefsson  <simon@josefsson.org>
5267
5268         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
5269         Emacs .#* auto-save files).
5270
5271 2007-01-11  Bruno Haible  <bruno@clisp.org>
5272
5273         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
5274         directory.
5275
5276 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
5277
5278         Use @...@ consistently in lib/wctype_.h.
5279         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
5280         on it being set to 1 or 0.
5281         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
5282         go back to AC_SUBSTing it.
5283         * modules/wctype (Makefile.am): Undo previous change.
5284
5285 2007-01-10  Eric Blake  <ebb9@byu.net>
5286
5287         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
5288         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
5289         * modules/wctype (Makefile.am): Likewise.
5290         Reported by Chris McGuire.
5291
5292 2007-01-10  Jim Meyering  <jim@meyering.net>
5293
5294         fts.c: a small readability/maintainability improvement
5295         * lib/fts.c (fts_read): Make this code slightly more readable and
5296         maintainable by hoisting the "sp->fts_cur = p" assignments to
5297         immediately follow the statements that set P.  Derived from
5298         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
5299
5300 2007-01-10  Eric Blake  <ebb9@byu.net>
5301
5302         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
5303         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
5304         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
5305         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
5306         Reported by Chris McGuire.
5307
5308 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5309
5310         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
5311         in sed script.
5312
5313 2007-01-09  Bruno Haible  <bruno@clisp.org>
5314
5315         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
5316         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
5317         variables.
5318         (func_module): Use them.
5319
5320 2007-01-09  Bruno Haible  <bruno@clisp.org>
5321
5322         * modules/unistr/base: New file.
5323         * lib/unistr.h: New file.
5324
5325         * modules/unistr/u8-to-u16: New file.
5326         * lib/unistr/u8-to-u16.c: New file.
5327
5328         * modules/unistr/u8-to-u32: New file.
5329         * lib/unistr/u8-to-u32.c: New file.
5330
5331         * modules/unistr/u16-to-u8: New file.
5332         * lib/unistr/u16-to-u8.c: New file.
5333
5334         * modules/unistr/u16-to-u32: New file.
5335         * lib/unistr/u16-to-u32.c: New file.
5336
5337         * modules/unistr/u32-to-u8: New file.
5338         * lib/unistr/u32-to-u8.c: New file.
5339
5340         * modules/unistr/u32-to-u16: New file.
5341         * lib/unistr/u32-to-u16.c: New file.
5342
5343         * modules/unistr/u8-check: New file.
5344         * modules/unistr/u16-check: New file.
5345         * modules/unistr/u32-check: New file.
5346         * lib/unistr/u8-check.c: New file.
5347         * lib/unistr/u16-check.c: New file.
5348         * lib/unistr/u32-check.c: New file.
5349
5350         * modules/unistr/u8-chr: New file.
5351         * modules/unistr/u16-chr: New file.
5352         * modules/unistr/u32-chr: New file.
5353         * lib/unistr/u8-chr.c: New file.
5354         * lib/unistr/u16-chr.c: New file.
5355         * lib/unistr/u32-chr.c: New file.
5356
5357         * modules/unistr/u8-cmp: New file.
5358         * modules/unistr/u16-cmp: New file.
5359         * modules/unistr/u32-cmp: New file.
5360         * lib/unistr/u8-cmp.c: New file.
5361         * lib/unistr/u16-cmp.c: New file.
5362         * lib/unistr/u32-cmp.c: New file.
5363
5364         * modules/unistr/u8-cpy: New file.
5365         * modules/unistr/u16-cpy: New file.
5366         * modules/unistr/u32-cpy: New file.
5367         * lib/unistr/u8-cpy.c: New file.
5368         * lib/unistr/u16-cpy.c: New file.
5369         * lib/unistr/u32-cpy.c: New file.
5370         * lib/unistr/u-cpy.h: New file.
5371
5372         * modules/unistr/u8-cpy-alloc: New file.
5373         * modules/unistr/u16-cpy-alloc: New file.
5374         * modules/unistr/u32-cpy-alloc: New file.
5375         * lib/unistr/u8-cpy-alloc.c: New file.
5376         * lib/unistr/u16-cpy-alloc.c: New file.
5377         * lib/unistr/u32-cpy-alloc.c: New file.
5378         * lib/unistr/u-cpy-alloc.h: New file.
5379
5380         * modules/unistr/u8-endswith: New file.
5381         * modules/unistr/u16-endswith: New file.
5382         * modules/unistr/u32-endswith: New file.
5383         * lib/unistr/u8-endswith.c: New file.
5384         * lib/unistr/u16-endswith.c: New file.
5385         * lib/unistr/u32-endswith.c: New file.
5386         * lib/unistr/u-endswith.h: New file.
5387
5388         * modules/unistr/u8-mblen: New file.
5389         * modules/unistr/u16-mblen: New file.
5390         * modules/unistr/u32-mblen: New file.
5391         * lib/unistr/u8-mblen.c: New file.
5392         * lib/unistr/u16-mblen.c: New file.
5393         * lib/unistr/u32-mblen.c: New file.
5394
5395         * modules/unistr/u8-mbtouc: New file.
5396         * modules/unistr/u16-mbtouc: New file.
5397         * modules/unistr/u32-mbtouc: New file.
5398         * lib/unistr/u8-mbtouc.c: New file.
5399         * lib/unistr/u16-mbtouc.c: New file.
5400         * lib/unistr/u32-mbtouc.c: New file.
5401
5402         * modules/unistr/u8-mbtouc-safe: New file.
5403         * modules/unistr/u16-mbtouc-safe: New file.
5404         * modules/unistr/u32-mbtouc-safe: New file.
5405         * lib/unistr/u8-mbtouc-safe.c: New file.
5406         * lib/unistr/u16-mbtouc-safe.c: New file.
5407         * lib/unistr/u32-mbtouc-safe.c: New file.
5408
5409         * modules/unistr/u8-move: New file.
5410         * modules/unistr/u16-move: New file.
5411         * modules/unistr/u32-move: New file.
5412         * lib/unistr/u8-move.c: New file.
5413         * lib/unistr/u16-move.c: New file.
5414         * lib/unistr/u32-move.c: New file.
5415         * lib/unistr/u-move.h: New file.
5416
5417         * modules/unistr/u8-next: New file.
5418         * modules/unistr/u16-next: New file.
5419         * modules/unistr/u32-next: New file.
5420         * lib/unistr/u8-next.c: New file.
5421         * lib/unistr/u16-next.c: New file.
5422         * lib/unistr/u32-next.c: New file.
5423
5424         * modules/unistr/u8-prev: New file.
5425         * modules/unistr/u16-prev: New file.
5426         * modules/unistr/u32-prev: New file.
5427         * lib/unistr/u8-prev.c: New file.
5428         * lib/unistr/u16-prev.c: New file.
5429         * lib/unistr/u32-prev.c: New file.
5430
5431         * modules/unistr/u8-set: New file.
5432         * modules/unistr/u16-set: New file.
5433         * modules/unistr/u32-set: New file.
5434         * lib/unistr/u8-set.c: New file.
5435         * lib/unistr/u16-set.c: New file.
5436         * lib/unistr/u32-set.c: New file.
5437         * lib/unistr/u-set.h: New file.
5438
5439         * modules/unistr/u8-startswith: New file.
5440         * modules/unistr/u16-startswith: New file.
5441         * modules/unistr/u32-startswith: New file.
5442         * lib/unistr/u8-startswith.c: New file.
5443         * lib/unistr/u16-startswith.c: New file.
5444         * lib/unistr/u32-startswith.c: New file.
5445         * lib/unistr/u-startswith.h: New file.
5446
5447         * modules/unistr/u8-stpcpy: New file.
5448         * modules/unistr/u16-stpcpy: New file.
5449         * modules/unistr/u32-stpcpy: New file.
5450         * lib/unistr/u8-stpcpy.c: New file.
5451         * lib/unistr/u16-stpcpy.c: New file.
5452         * lib/unistr/u32-stpcpy.c: New file.
5453         * lib/unistr/u-stpcpy.h: New file.
5454
5455         * modules/unistr/u8-stpncpy: New file.
5456         * modules/unistr/u16-stpncpy: New file.
5457         * modules/unistr/u32-stpncpy: New file.
5458         * lib/unistr/u8-stpncpy.c: New file.
5459         * lib/unistr/u16-stpncpy.c: New file.
5460         * lib/unistr/u32-stpncpy.c: New file.
5461         * lib/unistr/u-stpncpy.h: New file.
5462
5463         * modules/unistr/u8-strcat: New file.
5464         * modules/unistr/u16-strcat: New file.
5465         * modules/unistr/u32-strcat: New file.
5466         * lib/unistr/u8-strcat.c: New file.
5467         * lib/unistr/u16-strcat.c: New file.
5468         * lib/unistr/u32-strcat.c: New file.
5469         * lib/unistr/u-strcat.h: New file.
5470
5471         * modules/unistr/u8-strchr: New file.
5472         * modules/unistr/u16-strchr: New file.
5473         * modules/unistr/u32-strchr: New file.
5474         * lib/unistr/u8-strchr.c: New file.
5475         * lib/unistr/u16-strchr.c: New file.
5476         * lib/unistr/u32-strchr.c: New file.
5477
5478         * modules/unistr/u8-strcmp: New file.
5479         * modules/unistr/u16-strcmp: New file.
5480         * modules/unistr/u32-strcmp: New file.
5481         * lib/unistr/u8-strcmp.c: New file.
5482         * lib/unistr/u16-strcmp.c: New file.
5483         * lib/unistr/u32-strcmp.c: New file.
5484
5485         * modules/unistr/u8-strcpy: New file.
5486         * modules/unistr/u16-strcpy: New file.
5487         * modules/unistr/u32-strcpy: New file.
5488         * lib/unistr/u8-strcpy.c: New file.
5489         * lib/unistr/u16-strcpy.c: New file.
5490         * lib/unistr/u32-strcpy.c: New file.
5491         * lib/unistr/u-strcpy.h: New file.
5492
5493         * modules/unistr/u8-strcspn: New file.
5494         * modules/unistr/u16-strcspn: New file.
5495         * modules/unistr/u32-strcspn: New file.
5496         * lib/unistr/u8-strcspn.c: New file.
5497         * lib/unistr/u16-strcspn.c: New file.
5498         * lib/unistr/u32-strcspn.c: New file.
5499         * lib/unistr/u-strcspn.h: New file.
5500
5501         * modules/unistr/u8-strdup: New file.
5502         * modules/unistr/u16-strdup: New file.
5503         * modules/unistr/u32-strdup: New file.
5504         * lib/unistr/u8-strdup.c: New file.
5505         * lib/unistr/u16-strdup.c: New file.
5506         * lib/unistr/u32-strdup.c: New file.
5507         * lib/unistr/u-strdup.h: New file.
5508
5509         * modules/unistr/u8-strlen: New file.
5510         * modules/unistr/u16-strlen: New file.
5511         * modules/unistr/u32-strlen: New file.
5512         * lib/unistr/u8-strlen.c: New file.
5513         * lib/unistr/u16-strlen.c: New file.
5514         * lib/unistr/u32-strlen.c: New file.
5515         * lib/unistr/u-strlen.h: New file.
5516
5517         * modules/unistr/u8-strmblen: New file.
5518         * modules/unistr/u16-strmblen: New file.
5519         * modules/unistr/u32-strmblen: New file.
5520         * lib/unistr/u8-strmblen.c: New file.
5521         * lib/unistr/u16-strmblen.c: New file.
5522         * lib/unistr/u32-strmblen.c: New file.
5523
5524         * modules/unistr/u8-strmbtouc: New file.
5525         * modules/unistr/u16-strmbtouc: New file.
5526         * modules/unistr/u32-strmbtouc: New file.
5527         * lib/unistr/u8-strmbtouc.c: New file.
5528         * lib/unistr/u16-strmbtouc.c: New file.
5529         * lib/unistr/u32-strmbtouc.c: New file.
5530
5531         * modules/unistr/u8-strncat: New file.
5532         * modules/unistr/u16-strncat: New file.
5533         * modules/unistr/u32-strncat: New file.
5534         * lib/unistr/u8-strncat.c: New file.
5535         * lib/unistr/u16-strncat.c: New file.
5536         * lib/unistr/u32-strncat.c: New file.
5537         * lib/unistr/u-strncat.h: New file.
5538
5539         * modules/unistr/u8-strncmp: New file.
5540         * modules/unistr/u16-strncmp: New file.
5541         * modules/unistr/u32-strncmp: New file.
5542         * lib/unistr/u8-strncmp.c: New file.
5543         * lib/unistr/u16-strncmp.c: New file.
5544         * lib/unistr/u32-strncmp.c: New file.
5545
5546         * modules/unistr/u8-strncpy: New file.
5547         * modules/unistr/u16-strncpy: New file.
5548         * modules/unistr/u32-strncpy: New file.
5549         * lib/unistr/u8-strncpy.c: New file.
5550         * lib/unistr/u16-strncpy.c: New file.
5551         * lib/unistr/u32-strncpy.c: New file.
5552         * lib/unistr/u-strncpy.h: New file.
5553
5554         * modules/unistr/u8-strnlen: New file.
5555         * modules/unistr/u16-strnlen: New file.
5556         * modules/unistr/u32-strnlen: New file.
5557         * lib/unistr/u8-strnlen.c: New file.
5558         * lib/unistr/u16-strnlen.c: New file.
5559         * lib/unistr/u32-strnlen.c: New file.
5560         * lib/unistr/u-strnlen.h: New file.
5561
5562         * modules/unistr/u8-strpbrk: New file.
5563         * modules/unistr/u16-strpbrk: New file.
5564         * modules/unistr/u32-strpbrk: New file.
5565         * lib/unistr/u8-strpbrk.c: New file.
5566         * lib/unistr/u16-strpbrk.c: New file.
5567         * lib/unistr/u32-strpbrk.c: New file.
5568         * lib/unistr/u-strpbrk.h: New file.
5569
5570         * modules/unistr/u8-strrchr: New file.
5571         * modules/unistr/u16-strrchr: New file.
5572         * modules/unistr/u32-strrchr: New file.
5573         * lib/unistr/u8-strrchr.c: New file.
5574         * lib/unistr/u16-strrchr.c: New file.
5575         * lib/unistr/u32-strrchr.c: New file.
5576
5577         * modules/unistr/u8-strspn: New file.
5578         * modules/unistr/u16-strspn: New file.
5579         * modules/unistr/u32-strspn: New file.
5580         * lib/unistr/u8-strspn.c: New file.
5581         * lib/unistr/u16-strspn.c: New file.
5582         * lib/unistr/u32-strspn.c: New file.
5583         * lib/unistr/u-strspn.h: New file.
5584
5585         * modules/unistr/u8-strstr: New file.
5586         * modules/unistr/u16-strstr: New file.
5587         * modules/unistr/u32-strstr: New file.
5588         * lib/unistr/u8-strstr.c: New file.
5589         * lib/unistr/u16-strstr.c: New file.
5590         * lib/unistr/u32-strstr.c: New file.
5591         * lib/unistr/u-strstr.h: New file.
5592
5593         * modules/unistr/u8-strtok: New file.
5594         * modules/unistr/u16-strtok: New file.
5595         * modules/unistr/u32-strtok: New file.
5596         * lib/unistr/u8-strtok.c: New file.
5597         * lib/unistr/u16-strtok.c: New file.
5598         * lib/unistr/u32-strtok.c: New file.
5599         * lib/unistr/u-strtok.h: New file.
5600
5601         * modules/unistr/u8-uctomb: New file.
5602         * modules/unistr/u16-uctomb: New file.
5603         * modules/unistr/u32-uctomb: New file.
5604         * lib/unistr/u8-uctomb.c: New file.
5605         * lib/unistr/u16-uctomb.c: New file.
5606         * lib/unistr/u32-uctomb.c: New file.
5607
5608         * MODULES.html.sh (Unicode string functions): Add the new modules.
5609
5610 2007-01-08  Bruno Haible  <bruno@clisp.org>
5611
5612         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
5613         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
5614         subdirectories.
5615
5616 2007-01-08  Karl Berry  <karl@gnu.org>
5617
5618         * doc/error.texi: mention that main() fns must set program_name
5619         when progname is used.
5620
5621 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
5622
5623         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
5624         WCTYPE_H is empty, for the benefit of builds from non-distclean
5625         directories.  Problem reported by Eric Blake in
5626         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
5627
5628 2007-01-08  Bruno Haible  <bruno@clisp.org>
5629
5630         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
5631         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
5632         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
5633         PROVIDE_CANONICALIZE_FILENAME_MODE.
5634         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
5635
5636 2007-01-08  Bruno Haible  <bruno@clisp.org>
5637
5638         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
5639         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
5640         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
5641         * lib/fts.c: Likewise.
5642         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
5643
5644 2006-12-25  Bruno Haible  <bruno@clisp.org>
5645
5646         * modules/utf8-ucs4-safe: New file.
5647         * lib/utf8-ucs4-safe.h: New file.
5648         * lib/unistr/utf8-ucs4-safe.c: New file.
5649
5650         * modules/utf16-ucs4-safe: New file.
5651         * lib/utf16-ucs4-safe.h: New file.
5652         * lib/unistr/utf16-ucs4-safe.c: New file.
5653
5654         * MODULES.html.sh (Unicode string functions): Add the new modules.
5655
5656 2007-01-08  Bruno Haible  <bruno@clisp.org>
5657
5658         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
5659         (Depends-on): Add unitypes.
5660         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
5661         (u8_mbtouc_aux): Move out to separate file.
5662         (u8_mbtouc): Use ucs4_t, uint8_t types.
5663         * lib/unistr/utf8-ucs4.c: New file.
5664
5665         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
5666         (Depends-on): Add unitypes.
5667         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
5668         (u16_mbtouc_aux): Move out to separate file.
5669         (u16_mbtouc): Use ucs4_t, uint16_t types.
5670         * lib/unistr/utf16-ucs4.c: New file.
5671
5672         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
5673         (Depends-on): Add unitypes.
5674         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
5675         (u8_uctomb_aux): Move out to separate file.
5676         (u8_uctomb): Use ucs4_t, uint8_t types.
5677         * lib/unistr/ucs4-utf8.c: New file.
5678
5679         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
5680         (Depends-on): Add unitypes.
5681         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
5682         (u16_uctomb_aux): Move out to separate file.
5683         (u16_uctomb): Use ucs4_t, uint16_t types.
5684         * lib/unistr/ucs4-utf16.c: New file.
5685
5686 2006-12-25  Bruno Haible  <bruno@clisp.org>
5687
5688         * modules/unitypes: New file.
5689         * lib/unitypes.h: New file.
5690         * MODULES.html.sh (func_all_modules): New section "Unicode string
5691         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
5692         this section. Add unitypes.
5693
5694 2007-01-08  Bruno Haible  <bruno@clisp.org>
5695
5696         Avoid variable names that conflict with those from libtool.
5697         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
5698         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
5699         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
5700         library_names_spec to acl_library_names_spec, hardcode_* to
5701         acl_hardcode_*.
5702         Reported by Ralf Wildenhues.
5703
5704 2007-01-08  Bruno Haible  <bruno@clisp.org>
5705
5706         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
5707         definition.
5708         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
5709         definition.
5710         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
5711         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
5712         definition.
5713         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
5714         definition.
5715         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
5716         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
5717         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
5718         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
5719         definition.
5720         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
5721         definition.
5722         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
5723         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
5724         GC_USE_<algorithm>.
5725         * lib/gc-libgcrypt.c: Likewise.
5726         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
5727         * modules/gc-arctwo (configure.ac): Likewise.
5728         * modules/gc-des (configure.ac): Likewise.
5729         * modules/gc-hmac-md5 (configure.ac): Likewise.
5730         * modules/gc-hmac-sha1 (configure.ac): Likewise.
5731         * modules/gc-md2 (configure.ac): Likewise.
5732         * modules/gc-md4 (configure.ac): Likewise.
5733         * modules/gc-md5 (configure.ac): Likewise.
5734         * modules/gc-random (configure.ac): Likewise.
5735         * modules/gc-rijndael (configure.ac): Likewise.
5736         * modules/gc-sha1 (configure.ac): Likewise.
5737
5738 2007-01-08  Bruno Haible  <bruno@clisp.org>
5739
5740         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
5741         macro definition.
5742         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
5743         definition.
5744         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
5745         definition.
5746         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
5747         * modules/fcntl-safer (configure.ac): Likewise.
5748         * modules/fopen-safer (configure.ac): Likewise.
5749         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
5750         GNULIB_FWRITEERROR macro definition.
5751
5752 2007-01-08  Bruno Haible  <bruno@clisp.org>
5753
5754         * m4/gnulib-common.m4: New file.
5755         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
5756         (func_get_filelist): Add m4/gnulib-common.m4.
5757
5758 2007-01-08  Bruno Haible  <bruno@clisp.org>
5759
5760         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
5761         command.
5762
5763 2007-01-08  Jim Meyering  <jim@meyering.net>
5764
5765         Use a more robust test for a "can't happen" condition.
5766         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
5767         narrowed the st_size value.  Presuming the "can't happen" condition
5768         is true, that narrowing could conceivably convert an invalid st_size
5769         value into a valid one.  Instead, use a change based on Matthew
5770         Woehlke's original patch.
5771
5772         Slight readability improvement: use an assert-like macro
5773         in place of literal "abort ()" uses.
5774         * lib/fts.c (fts_assert): Define.
5775         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
5776         Use this macro instead of a bare 'abort'.
5777
5778 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
5779
5780         Don't worry about using IRIX 5.3's wctype.h broken definitions;
5781         simply work around them.
5782         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
5783         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
5784         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
5785         declaring.
5786         Don't bother to define as macros, since the standard doesn't require it.
5787         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
5788         longer worry about IRIX 5.3.
5789         (HAVE_WCTYPE_CTMP_BUG): Remove.
5790
5791 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
5792
5793         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
5794         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
5795         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
5796         Problems reported by Georg Schwarz for IRIX 5.3.
5797
5798         * gnulib-tool (autoconf_minversion): Take the maximum version number
5799         found, not the minimum.  Problem reported by James Youngman.
5800
5801 2007-01-03  Karl Berry  <karl@gnu.org>
5802
5803         * doc/error.texi: new file, explaining interaction with progname.
5804         * doc/gnulib.texi: include it.  Update copyright.
5805
5806 2007-01-03  Simon Josefsson  <simon@josefsson.org>
5807
5808         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
5809         AC_CANONICAL_HOST, to improve autobuild outputs.
5810
5811 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
5812             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
5813
5814         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
5815         sockets, server sockets, and other file descriptors.  Count errors
5816         to compute the return value.  Reorder the code a bit to be easier
5817         to follow.  Don't set event bits that were not requested (except
5818         POLLERR and POLLHUP).
5819
5820 2007-01-01  Bruno Haible  <bruno@clisp.org>
5821
5822         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
5823
5824 2007-01-03  Jim Meyering  <jim@meyering.net>
5825
5826         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
5827
5828 2007-01-02  Bruno Haible  <bruno@clisp.org>
5829
5830         * modules/settime (Include): Require timespec.h.
5831         * modules/nanosleep (Include): Likewise.
5832
5833 2007-01-01  Bruno Haible  <bruno@clisp.org>
5834
5835         * gnulib-tool (func_emit_copyright_notice): Bump year.
5836         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
5837
5838 2007-01-01  Bruno Haible  <bruno@clisp.org>
5839
5840         Improve support for OpenBSD.
5841         * build-aux/config.rpath (libname_spec): Export.
5842         (library_names_spec): New variable. Export.
5843         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
5844         library_names_spec from the config.rpath output. Locate shared library
5845         through the name pattern in library_names_spec.
5846
5847 2007-01-01  Eric Blake  <ebb9@byu.net>
5848
5849         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
5850
5851 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
5852
5853         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
5854         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
5855         assume the C locale, and avoid an "eval" that could cause trouble.
5856         Problem with SORT reported by Bob Proulx.
5857
5858         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
5859         Define.  Trivial patch from Henning Nielsen Lund, originally
5860         sent to bug-grep@gnu.org today.
5861
5862 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
5863
5864         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
5865         struct stat.  Problem reported by Henning Nielsen Lund.
5866         * lib/acl.c: Include acl.h first, to check interface.  Don't
5867         bother to include sys/types.h and sys/stat.h again.
5868
5869 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
5870
5871         Import the following change from libc; problem reported by
5872         Sven Verdoolaege.
5873
5874         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
5875
5876         [BZ #1373]
5877         * lib/argp.h: Remove __NTH for __argp_usage inline function.
5878
5879 2006-12-28  Jim Meyering  <jim@meyering.net>
5880
5881         * build-aux/announce-gen: Do not assume that the package
5882         builds any of tar.gz, tar.bz2, and .xdelta files.
5883         Suggestion from Simon Josefsson.
5884
5885 2006-12-28  Simon Josefsson  <simon@josefsson.org>
5886
5887         * modules/announce-gen: New file.
5888
5889 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
5890
5891         * lib/mbchar.h: Just include <wctype.h>; the wctype module
5892         handles its gotchas now.
5893         * lib/mbswidth.c: Likewise.
5894         * lib/wcwidth.h: Likewise.
5895         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
5896         and iswcntrl; the wctype module does this stuff now.
5897         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
5898         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
5899         * modules/mbchar (Depends-on): Add wctype.
5900         * modules/mbswidth (Depends-on): Likewise.
5901         * modules/wcwidth (Depends-on): Likewise.
5902
5903 2006-12-27  Eric Blake  <ebb9@byu.net>
5904
5905         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
5906         module uses more than what <wctype.h> is required to provide.
5907
5908 2006-12-26  Eric Blake  <ebb9@byu.net>
5909
5910         * gnulib-tool (sed_extract_prog): Avoid space-tab.
5911
5912 2006-12-26  Eric Blake  <ebb9@byu.net>
5913
5914         * modules/absolute-header: New module.
5915         * modules/fcntl (Depends-on): Depend on it.
5916         * modules/inttypes (Depends-on): Likewise.
5917         * modules/stdint (Depends-on): Likewise.
5918         * modules/sys_stat (Depends-on): Likewise.
5919         * modules/wctype (Depends-on): Likewise.
5920         * MODULES.html.sh (Support for building libraries and
5921         executables): Document it.
5922
5923 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
5924
5925         * gnulib-tool (SED): Remove, undoing previous change.
5926         The problem was that it broke coreutils on Solaris, because
5927         "sed --posix" leaked into a makefile.
5928         (sed): New alias, if 'alias' and GNU sed.
5929
5930 2006-12-24  Jim Meyering  <jim@meyering.net>
5931
5932         Work around an fchownat bug in glibc-2.4:
5933         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
5934         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
5935         in spite of the -P option.
5936         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
5937         New macros.
5938         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
5939         * modules/openat (Files): Add lib/fchownat.c.
5940         * lib/openat.c (fchownat): Don't define here.  Move to...
5941         * lib/fchownat.c: ...this new file.
5942
5943 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
5944
5945         Fix bug reported by Bruno Haible in
5946         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
5947         where quotearg.c didn't compile on Mac OS X 10.2 because it
5948         lacks <wchar.h> and wint_t.
5949         * lib/wctype_.h (__wctype_wint_t): New type.
5950         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
5951         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
5952         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
5953         Arg is now of type __wctype_wint_t, not wint_t.
5954         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
5955         substitute HAVE_WINT_T.
5956         * modules/wctype (Files): Add m4/wint_t.m4.
5957         (wctype.h): Substitute HAVE_WINT_T.
5958
5959 2006-12-23  Bruno Haible  <bruno@clisp.org>
5960
5961         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
5962
5963 2006-12-23  Bruno Haible  <bruno@clisp.org>
5964
5965         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
5966         S_ISLNK.
5967         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
5968         mingw.
5969
5970 2006-12-22  Bruno Haible  <bruno@clisp.org>
5971
5972         * lib/copy-file.c: Include acl.h.
5973         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
5974         Close the file descriptors only after being done with copy_acl.
5975         * modules/copy-file (Depends-on): Add acl.
5976
5977 2006-12-22  Bruno Haible  <bruno@clisp.org>
5978
5979         * gnulib-tool (SED): New variable.
5980         Use $SED instead of sed everywhere.
5981
5982 2006-12-22  Bruno Haible  <bruno@clisp.org>
5983
5984         * modules/no-c++: New file.
5985         * m4/no-c++.m4: New file.
5986         * MODULES.html.sh (Support for building libraries and executables):
5987         Add no-c++.
5988
5989 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
5990
5991         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
5992         Include <limits.h>, and use its INT_MAX to rewrite the
5993         j loop so that it does not overflow 'int'.  Problem reported by
5994         Ralf Wildenhues in
5995         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
5996         Play it safe by shifting left by 1 rather than multiplying by 2,
5997         as GCC is less likely to optimize this away when the value
5998         is signed (when it assumes overflow leads to undefined behavior).
5999         Also, don't assume time_t uses two's complement.
6000
6001 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
6002
6003         * MODULES.html.sh: New module wctype.
6004         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
6005         * lib/fnmatch.c: Don't bother to include <wchar.h> before
6006         <wctype.h>, since the new wctype module should fix this.
6007         * lib/quotearg.c: Include <wctype.h> unconditionally, since
6008         the wctype module should arrange for it.
6009         * lib/regex_internal.h: Likewise.
6010         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
6011         since the wctype module should handle this now.
6012         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
6013         * modules/fnmatch (Depends-on): Add wctype.
6014         * modules/quotearg (Depends-on): Likewise.
6015         * modules/regex (Depends-on): Likewise.
6016
6017 2006-12-19  Bruno Haible  <bruno@clisp.org>
6018
6019         * lib/strdup.h [C++]: Wrap definitions in extern "C".
6020         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
6021
6022 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6023
6024         * modules/savewd (Depends-on): Fix dependency on fcntl.
6025
6026 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
6027
6028         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
6029         conforms to C99, rather than relying on the user's environment
6030         setting of STDINT_H.
6031
6032 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
6033         and Eric Blake  <ebb9@byu.net>
6034
6035         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
6036         This is more consistent with the other defines here.
6037         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
6038         Port to z/OS.  Problem reported by Paul Gilmartin.
6039         Change local vars to use gl_ prefix rather than ac_.
6040         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
6041         with other defines.
6042         * modules/double-slash-root: New module.
6043         * modules/dirname (Files): Remove m4/double-slash-root.m4.
6044         (Depends-on): Add double-slash-root.
6045         * MODULES.html.sh (File system functions): Mention new module.
6046
6047 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
6048
6049         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
6050         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
6051         This is for the benefit of gzip, which doesn't do i18n.
6052
6053 2006-12-12  Jim Meyering  <jim@meyering.net>
6054
6055         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
6056         Reported by Andreas Schwab <schwab@suse.de>.
6057
6058 2006-12-12  Bruno Haible  <bruno@clisp.org>
6059
6060         Merge these changes.
6061         2006-09-05  Bruno Haible  <bruno@clisp.org>
6062         * lib/iconvme.c (iconv_string): No need to save and restore errno when
6063         iconv_alloc succeeded.
6064         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
6065         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
6066         test for " && dest " at the end - dest is always != NULL there. Call
6067         iconv with 4xNULL arguments initially, to reset the state. Call iconv
6068         with 2xNULL arguments, also to flush the state storage. Handle the
6069         IRIX iconv behaviour. Realloc the final result, to throw away unused
6070         memory.
6071
6072 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
6073
6074         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
6075         and fchmodat unconditionally, since glibc 2.4 has them.
6076         Problem reported by Arkadiusz Miskiewicz.
6077
6078 2006-12-10  Bruno Haible  <bruno@clisp.org>
6079
6080         * gnulib-tool (func_import): Show the include files only for those
6081         modules that are copied and specified.
6082         Reported by Karl Berry.
6083
6084 2006-12-08  Jim Meyering  <jim@meyering.net>
6085
6086         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
6087         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
6088
6089         * build-aux/announce-gen: Add two new options, both optional:
6090         --bootstrap-tools=TOOL_LIST
6091               a comma-separated list of tools, e.g.,
6092               autoconf,automake,bison,gnulib
6093         --gnulib-snapshot-date=DATE
6094               if gnulib is in the bootstrap tool list,
6095               then report this as the snapshot date.
6096               If not specified, use the current date/time.
6097               If you specify a date here, be sure it's UTC.
6098
6099 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6100
6101         * tests/test-argp-2.sh: Fix test to match actual output.
6102         (func_compare): Fix sed script to be portable.
6103
6104 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
6105
6106         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
6107         workaround for this case.  It is not autoconfigured now; offhand
6108         it's hard to see how to autoconfigure it.
6109
6110 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
6111
6112         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
6113         a directory that is about to be chowned.  Such a directory's
6114         initial file permissions should permit the owner only and this
6115         should not be changed until after the chown, since the group and
6116         other bits would be incorrect if they granted permission before
6117         the chown.
6118
6119         Fix porting problem for iswctype reported by Georg Schwarz in:
6120         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
6121         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
6122         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
6123         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
6124         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
6125
6126 2006-12-03  Jim Meyering  <jim@meyering.net>
6127
6128         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
6129         p->fts_statp may not yet be defined.
6130         (fts_read): Instead, set it in the caller, once p->fts_statp is
6131         sure to be defined, and corresponds to a top-level directory.
6132         This bug made du -x fail.  Here's the coreutils test case:
6133         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
6134         Reported by Mike Frysinger.
6135
6136 2006-12-01  Jim Meyering  <jim@meyering.net>
6137
6138         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
6139         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
6140         Reported by Simon Josefsson.
6141
6142 2006-11-30  Jim Meyering  <jim@meyering.net>
6143
6144         * m4/warning.m4: Use the all-permissive copyright notice
6145         recommended by RMS (rather than LGPL).
6146         * m4/vararrays.m4: Likewise.
6147         * m4/flexmember.m4: Likewise.
6148
6149 2006-11-29  Bruno Haible  <bruno@clisp.org>
6150
6151         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
6152         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
6153         using +=.
6154         Reported by Simon Josefsson <simon@josefsson.org>.
6155
6156 2006-11-28  James Youngman <jay@gnu.org>
6157
6158         * README: Advise users that they might find the bug-gnulib@gnu.org
6159         and autotools-announce@gnu.org mailing lists useful.
6160
6161 2006-11-28  Bruno Haible  <bruno@clisp.org>
6162
6163         * m4/ptrdiff_max.m4: Remove file.
6164
6165 2006-11-21  Bruno Haible  <bruno@clisp.org>
6166
6167         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
6168         _AC_COMPUTE_INT.
6169         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
6170         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
6171         _AC_COMPUTE_INT.
6172         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
6173         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
6174         _AC_COMPUTE_INT.
6175         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
6176
6177 2006-11-28  Jim Meyering  <jim@meyering.net>
6178
6179         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
6180         warning from "gcc -Wshadow" about shadowing the builtin.
6181
6182 2006-11-27  Bruno Haible  <bruno@clisp.org>
6183
6184         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
6185         _AC_COMPUTE_INT.
6186         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
6187
6188 2006-11-27  Bruno Haible  <bruno@clisp.org>
6189             Paul Eggert  <eggert@cs.ucla.edu>
6190
6191         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
6192
6193 2006-11-26  Bruno Haible  <bruno@clisp.org>
6194
6195         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
6196         noinst_LTLIBRARIES.
6197
6198 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
6199             Bruno Haible  <bruno@clisp.org>
6200
6201         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
6202         if compiling with "gcc -ansi".
6203
6204 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
6205
6206         Fix some incompatibilities with gcc -ansi -pedantic.
6207         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
6208         if compiling pedantically with GCC, unless it's C99 or later.
6209         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
6210         it mishandles gcc -ansi -pedantic as well.
6211         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
6212         if gcc -pedantic.
6213         * lib/regexec.c (check_node_accept_bytes): Don't use auto
6214         initializers for struct if -pedantic, unless it's C99 or later.
6215
6216 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
6217
6218         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
6219         Don't close an fd more than once. Identical atimes indicate
6220         success, not failure.
6221
6222 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
6223
6224         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
6225
6226 2006-11-23  Jim Meyering  <jim@meyering.net>
6227
6228         * build-aux/announce-gen: New file.  From coreutils.
6229
6230 2006-11-22  Jim Meyering  <jim@meyering.net>
6231
6232         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
6233         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
6234         (fts_read): Use a temporary to narrow the overused st_size member
6235         before using it in a switch statement.  Reported by Matthew Woehlke.
6236
6237         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
6238         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
6239
6240 2006-11-20  Bruno Haible  <bruno@clisp.org>
6241
6242         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
6243         changequote instead of pairs of brackets.
6244         Reported by Andreas Schwab <schwab@suse.de>.
6245
6246 2006-11-21  Jim Meyering  <jim@meyering.net>
6247
6248         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
6249         so as to remain compatible with older compilers.
6250         Patch from Michael Deutschmann.
6251
6252 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
6253
6254         * MODULES.html.sh (File system functions): Add openat.
6255
6256         * lib/openat.h (rpl_fstatat): New macro, if
6257         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
6258         (fstatat): Define to rpl_fstatat under the same conditions,
6259         unless COMPILING_FSTATAT.
6260         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
6261         seems to have the bug.
6262         * lib/fstatat.c: New file.
6263         * modules/openat (Files): Add it.
6264
6265 2006-11-20  Bruno Haible  <bruno@clisp.org>
6266
6267         * Makefile: New file.
6268
6269 2006-11-20  Jim Meyering  <jim@meyering.net>
6270
6271         The beginnings of syntax-related checks for gnulib.
6272         * lib/Makefile: New file.
6273         * lib/t-idcache: New script.  Ensure that the two halves of
6274         idcache.c stay in sync.
6275
6276         * lib/idcache.c: Adjust comments in user- and group- portions to
6277         be more accurate, and to be consistent with one another.
6278
6279 2006-11-20  Jim Meyering  <jim@meyering.net>
6280
6281         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
6282         continue using the flexible array member (thus, this module performs
6283         half as many malloc calls), with the addition that...
6284         (getgroup, getuser): Consistently record a non-match via an empty
6285         "name" string, and map an empty string match to a NULL return value.
6286         * modules/idcache (Depends-on): Re-add flexmember.
6287
6288         * lib/idcache.c (getuser): Remove all uses of the register keyword.
6289         (getuidbyname, getgroup, getgidbyname): Likewise.
6290
6291         Use cleaner syntax: NULL rather than 0.
6292         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
6293
6294 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
6295
6296         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
6297         It mishandled the case where the group was missing.
6298         Problem reported by Greg Schafer.
6299         * modules/idcache: Likewise.
6300
6301 2006-11-18  Jim Meyering  <jim@meyering.net>
6302
6303         * check-module (%exempt_header): Add exception for some
6304         conditionally-included headers.
6305
6306         * modules/i-ring (Depends-on): Add verify.
6307         (License): Change to LGPL.
6308
6309 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
6310
6311         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
6312         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
6313         and inttostr.h.  Use snprintf rather than uinttostr, so that
6314         LGPLed code doesn't depend on GPLed.
6315
6316 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
6317
6318         * modules/inline (License): Change from GPL to LGPL.
6319
6320 2006-11-17  Jim Meyering  <jim@meyering.net>
6321
6322         * modules/d-type (License): Switch to LGPL.
6323
6324 2006-11-15  Bruno Haible  <bruno@clisp.org>
6325
6326         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
6327
6328 2006-11-15  Eric Blake  <ebb9@byu.net>
6329
6330         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
6331         the module dependency.
6332
6333 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
6334             Bruno Haible  <bruno@clisp.org>
6335
6336         * gnulib-tool (func_create_testdir): Add license consistency check.
6337
6338 2006-11-15  Eric Blake  <ebb9@byu.net>
6339
6340         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
6341         random "(cached)" in configure output.
6342
6343 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6344
6345         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
6346         test for conforming inttypes.h is both announced and cached.
6347
6348         * MODULES.html.sh (seen_modules, seen_files): New variables.
6349         (func_module): Rewrite to use a few less gnulib-tool and sed
6350         invocations.  Avoid a couple of quadratic algorithms for ...
6351         (missed_modules, missed_files): ... these, with ...
6352         (func_append, func_tmpdir): ... these new functions, from
6353         gnulib-tool.  Analogously, install traps for cleanup.
6354
6355         * tests/test-gc.c (main): Remove unused variables.
6356         * tests/test-read-file.c: Include stdlib.h, for 'free'.
6357
6358 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
6359
6360         * modules/inttostr (License): Change to LGPL.
6361
6362 2006-11-14  Eric Blake  <ebb9@byu.net>
6363
6364         * modules/tempname (License): Change to LGPL.
6365
6366 2006-11-14  Eric Blake  <ebb9@byu.net>
6367
6368         * doc/functions.texi (Function Portability): *printf functions on
6369         Cygwin now understand all POSIX size specifiers.
6370
6371 2006-11-14  Bruno Haible  <bruno@clisp.org>
6372
6373         * modules/c-ctype (License): Change to LGPL.
6374
6375 2006-11-12  Bruno Haible  <bruno@clisp.org>
6376
6377         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
6378         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
6379         for GNOME libraries, for which the include files are installed in
6380         subdirectories of $prefix/include.
6381
6382 2006-11-12  Bruno Haible  <bruno@clisp.org>
6383
6384         * m4/lib-link.m4: Require at least autoconf-2.54.
6385         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
6386         name to underscores for the --with option.
6387
6388 2006-11-13  Bruno Haible  <bruno@clisp.org>
6389
6390         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
6391         the tests directory.
6392         Reported by Ralf Wildenhues.
6393
6394 2006-11-13  Bruno Haible  <bruno@clisp.org>
6395
6396         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
6397         (func_emit_initmacro_end): Undo the override here.
6398         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
6399         Works around the famous automake error in coreutils.
6400
6401 2006-11-13  Eric Blake  <ebb9@byu.net>
6402
6403         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
6404         element, not its node.
6405
6406 2006-11-12  Bruno Haible  <bruno@clisp.org>
6407
6408         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
6409         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
6410
6411 2006-11-12  Bruno Haible  <bruno@clisp.org>
6412
6413         * gnulib-tool: New option --local-symlink.
6414         (func_usage): Document it.
6415         (lsymbolic): New variable.
6416         (func_import, func_create_testdir): If --symlink was not specified,
6417         test whether --local-symlink was specified and the file comes from
6418         the local_gnulib_dir.
6419
6420 2006-11-12  Bruno Haible  <bruno@clisp.org>
6421
6422         * gnulib-tool (func_ln): New function.
6423         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
6424
6425 2006-11-12  Bruno Haible  <bruno@clisp.org>
6426
6427         Finish support for source files in subdirectories.
6428         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
6429         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
6430         AUTOMAKE_OPTIONS.
6431         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
6432
6433 2006-11-12  Bruno Haible  <bruno@clisp.org>
6434
6435         * gnulib-tool (func_get_automake_snippet): Synthesize also an
6436         EXTRA_lib_SOURCES augmentation.
6437         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
6438
6439 2006-11-12  Jim Meyering  <jim@meyering.net>
6440
6441         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
6442         file descriptors.  This also averts a failure on systems with
6443         native openat support when a traversed directory lacks "x" access.
6444         * lib/fts_.h: Include "i-ring.h"
6445         (struct FTS) [fts_fd_ring]: New member.
6446         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
6447         (FCHDIR): Add parentheses.
6448         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
6449         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
6450         When descending, rather than simply closing the previous
6451         fts_cwd_fd value, push that file descriptor onto the ring.
6452         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
6453         (fts_open): Initialize the new fd_ring member.
6454         (fts_close): Clear the ring.
6455         (fts_safe_changedir): When possible, use our new fd_ring to skip
6456         the diropen and fstat and dev/ino comparison that would normally
6457         accompany a virtual `chdir ("..")'.
6458
6459         * modules/fts (Depends-on): Add i-ring.
6460         * modules/i-ring: New module.
6461         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
6462         * m4/i-ring.m4: New file.
6463
6464 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6465
6466         * gnulib-tool (func_create_testdir): Fix replacement of
6467         `build-aux' in configure.ac.  Run autotools in gltests
6468         subdirectory.
6469         (func_create_testdir, func_create_megatestdir, test): There is
6470         no need for '--force' in most autotool invocations in a new
6471         tree.  Actually fail the whole test if any of the tools, or the
6472         configure or make stages fail.
6473
6474         Sync from Automake.
6475         * build-aux/gnupload: Revert last change.  Add pointer to upload
6476         instructions of the GNU Maintenance Instructions.
6477         Suggestion by Karl Berry.
6478
6479 2006-11-10  Jim Meyering  <jim@meyering.net>
6480
6481         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
6482
6483 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
6484
6485         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
6486         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
6487         (bind_textdomain_codeset) [! ENABLE_NLS]:
6488         Evaluate all the arguments.  That way, callers get compatible behavior
6489         if the arguments have side effects.  Also, it avoids some GCC
6490         diagnostics in some cases; Joel E. Denny reported problems when Bison
6491         was configured with --enable-gcc-warnigs.
6492
6493 2006-11-10  Jim Meyering  <jim@meyering.net>
6494
6495         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
6496         relevant options in CFLAGS (like -O, -fno-inline) are taken into
6497         account.
6498
6499 2006-11-10  Jim Meyering  <jim@meyering.net>
6500
6501         * modules/inline: New file/module.
6502         * modules/xalloc (Files): Remove m4/inline.m4.
6503         (Depends-on): Add inline, instead.
6504         * modules/oset: Likewise.
6505         * modules/list: Likewise.
6506
6507 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
6508
6509         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
6510         Problem reported by Matthew Woehlke.
6511
6512 2006-11-09  Bruno Haible  <bruno@clisp.org>
6513
6514         * lib/tempname.c (gen_tempname): Remove variant that invokes
6515         __gen_tempname.
6516         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
6517         __gen_tempname.
6518
6519 2006-11-08  Bruno Haible  <bruno@clisp.org>
6520
6521         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
6522         to 'yes' instead of 'cross-compiling'.
6523
6524 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
6525
6526         * lib/quotearg.h (quotearg_free): New decl.
6527         * lib/quotearg.c (quotearg_free): New function.
6528         (slot0, nslots, slotvec0, slotvec):
6529         Now file-scope so that quotearg_free can get at them.
6530
6531 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6532
6533         Sync from Automake.
6534         * build-aux/gnupload: Add missing 'gnu' to example URL.
6535         Report by Karl Berry.
6536
6537 2006-11-08  Bruno Haible  <bruno@clisp.org>
6538
6539         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
6540         Suggested by Paul Eggert.
6541
6542 2006-11-08  Jim Meyering  <jim@meyering.net>
6543
6544         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
6545         It's already included if !_LIBC.
6546         (fts_safe_changedir): Add a comment.
6547
6548 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
6549
6550         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
6551         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
6552         Matthew Woehlke.
6553
6554         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
6555         definitions up, to avoid colliding with change below.
6556         (static_inline) [HAVE_INLINE]: New macro.
6557         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
6558         Provide extern decls when !HAVE_INLINE.  Do not define unless
6559         static_inline is defined, either by us or by xmalloc.c.  Use
6560         static_inline rather than static inline.
6561         (XCALLOC): Optimize sizeof(T) = 1 case.
6562         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
6563
6564 2006-11-07  Bruno Haible  <bruno@clisp.org>
6565
6566         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
6567         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
6568         AC_C_INLINE.
6569         * modules/xalloc (Files): Add m4/inline.m4.
6570
6571 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6572
6573         * README: Fix typo.
6574         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
6575         (Miscellanous Notes): ...from this.
6576
6577 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
6578
6579         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
6580         Mention that offsetof should be used instead of sizeof.
6581         From Bruno Haible.
6582
6583 2006-11-07  Bruno Haible  <bruno@clisp.org>
6584
6585         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
6586
6587 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
6588
6589         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
6590         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
6591         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
6592         (gl_tree_add_before, gl_tree_add_after):
6593         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
6594         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
6595         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
6596         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
6597         (gl_linked_add_after, gl_linked_add_at): Likewise.
6598         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
6599         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
6600         (gl_tree_add_before, gl_tree_add_after): Likewise.
6601         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
6602         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
6603         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
6604
6605 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6606
6607         * lib/gl_oset.h: Use C comment style, not C++ comment style.
6608
6609 2006-11-06  Bruno Haible  <bruno@clisp.org>
6610
6611         * m4/inline.m4: New file.
6612         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
6613         * modules/list (Files): Add m4/inline.m4.
6614         * modules/oset (Files): Likewise.
6615
6616 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
6617
6618         * lib/idcache.c: Include <stddef.h>, for offsetof.
6619         (struct userid.name): Change from char * to a flexible array member.
6620         All uses changed.
6621         * modules/idcache (Depends-on): Add flexmember.
6622
6623         * MODULES.html.sh (Core language properties): New module flexmember.
6624         * modules/flexmember, m4/flexmember.m4: New files.
6625
6626         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
6627         inline functions that are identical with the old xnmalloc_inline,
6628         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
6629         that we can avoid some unnecessary integer multiplications and
6630         divisions in the common case where the element size is known at
6631         compile time.
6632         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
6633         needed.
6634         (xnboundedmalloc): Remove.
6635         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
6636         arguments, for consistency with rest of this header.
6637         (xcharalloc): Rewrite using XNMALLOC.
6638         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
6639         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
6640         versions have been moved to lib/xalloc.h and renamed to be the
6641         non-*_inline versions.
6642         (xmalloc, xrealloc): Implement without reference to the xnmalloc
6643         and xnrealloc functions, since those functions are now inline and
6644         now call us.
6645         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
6646         renaming described above.
6647         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
6648         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
6649         captures the dependency in AC_C_INLINE.
6650
6651         New module canonicalize-lgpl, proposed by Charles Wilson in
6652         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
6653         with a few small changes afterwards.
6654         * MODULES.html.sh (File system functions): New module
6655         canonicalize-lgpl.
6656         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
6657         and canonicalize_file_name.
6658         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
6659         * modules/canonicalize-lgpl: New files.
6660
6661 2006-11-05  Bruno Haible  <bruno@clisp.org>
6662
6663         * gnulib-tool (func_import, func_create_testdir): Create directories
6664         also for files in subdirectories of lib/.
6665
6666 2006-11-05  Bruno Haible  <bruno@clisp.org>
6667
6668         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
6669         ANSI C compliant.
6670
6671 2006-11-03  Bruno Haible  <bruno@clisp.org>
6672
6673         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
6674         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
6675         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
6676         (xnboundedmalloc): New inline function.
6677         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
6678         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
6679         xmalloc.
6680         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
6681         xmalloc.
6682         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
6683         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
6684         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
6685         xmalloc.
6686         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
6687         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
6688         xmalloc.
6689         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
6690         gl_tree_add_after): Use XMALLOC instead of xmalloc.
6691         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
6692         xmalloc.
6693         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
6694         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
6695         gl_tree_add_after): Use XMALLOC instead of xmalloc.
6696         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
6697         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
6698         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
6699         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
6700
6701 2006-11-03  Bruno Haible  <bruno@clisp.org>
6702
6703         * lib/c-ctype.h [C++]: Define functions without name mangling.
6704         * lib/fwriteerror.h [C++]: Likewise.
6705         * lib/gcd.h [C++]: Likewise.
6706         * lib/linebreak.h [C++]: Likewise.
6707
6708 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
6709
6710         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
6711         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
6712         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
6713         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
6714         Check for functions and headers just once.
6715         Check for declaration of canonicalize_file_name.
6716         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
6717
6718 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
6719
6720         * gnulib-tool (func_import): Fix typo in actioncmd.
6721
6722 2006-11-02  Bruno Haible  <bruno@clisp.org>
6723
6724         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
6725         newline sequence in the Makefile.am snippet as a space, like "make"
6726         does.
6727         Reported by Roger Persson <perrog@gmail.com>.
6728
6729 2006-11-01  Bruno Haible  <bruno@clisp.org>
6730
6731         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
6732         already declared in <string.h>.
6733         * lib/strcase.h (strncasecmp): Don't declare it if yes.
6734
6735 2006-11-01  Bruno Haible  <bruno@clisp.org>
6736
6737         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
6738         * lib/strcase.h: Include <string.h>.
6739         (strcasecmp): Define to rpl_strcasecmp here.
6740
6741 2006-11-01  Bruno Haible  <bruno@clisp.org>
6742
6743         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
6744
6745 2006-11-01  Eric Blake  <ebb9@byu.net>
6746
6747         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
6748
6749         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
6750
6751 2006-10-29  Bruno Haible  <bruno@clisp.org>
6752
6753         Make it compile in C++ mode.
6754         * lib/full-write.c (full_rw): Add a cast.
6755
6756 2006-11-01  Bruno Haible  <bruno@clisp.org>
6757
6758         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
6759         be POSIX compliant.
6760         Reported by Roger Persson <perrog@gmail.com>.
6761
6762 2006-11-01  Eric Blake  <ebb9@byu.net>
6763
6764         * lib/getopt_.h: Fix comments.
6765
6766 2006-10-31  Eric Blake  <ebb9@byu.net>
6767
6768         * modules/tmpdir (Depends-on): Add sys_stat.
6769         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
6770         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
6771         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
6772         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
6773         tempname.
6774
6775 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
6776
6777         Avoid some C++ diagnostics reported by Bruno Haible.
6778         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
6779         xmalloc.
6780         (quotearg_alloc): Use xcharalloc rather than xmalloc.
6781         (struct slotvec): Move to top level.
6782         (quotearg_n_options): Rewrite to avoid xmalloc.
6783         * lib/xalloc.h (xcharalloc): New function.
6784         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
6785         [defined __cplusplus]: Add function template that provides result
6786         type propagation.  This part of the change is from Bruno Haible.
6787
6788 2006-10-29  Bruno Haible  <bruno@clisp.org>
6789
6790         Make it compile in C++ mode.
6791         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
6792         * lib/strnlen1.c (strnlen1): Cast memchr result.
6793         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
6794         * lib/clean-temp.c (string_equals, string_hash): Add casts.
6795         (create_temp_dir): Rename local variable 'template'.
6796         (compile_csharp_using_sscli): Add cast.
6797         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
6798         * lib/findprog.c (find_in_path): Likewise.
6799         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
6800         * lib/wait-process.c (register_slave_subprocess): Likewise.
6801
6802 2006-10-22  Bruno Haible  <bruno@clisp.org>
6803
6804         * modules/tsearch: New file.
6805         * lib/tsearch.h: New file.
6806         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
6807         * m4/tsearch.m4: New file.
6808         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
6809
6810 2006-10-29  Eric Blake  <ebb9@byu.net>
6811
6812         * lib/arcfour.c: Assume config.h.
6813         * lib/arctwo.c: Likewise.
6814         * lib/base64.c: Likewise.
6815         * lib/check-version.c: Likewise.
6816         * lib/crc.c: Likewise.
6817         * lib/des.c: Likewise.
6818         * lib/gc-gnulib.c: Likewise.
6819         * lib/gc-libgcrypt.c: Likewise.
6820         * lib/gc-pbkdf2-sha1.c: Likewise.
6821         * lib/getaddrinfo.c: Likewise.
6822         * lib/getdelim.c: Likewise.
6823         * lib/getline.c: Likewise.
6824         * lib/hmac-md5.c: Likewise.
6825         * lib/hmac-sha1.c: Likewise.
6826         * lib/iconvme.c: Likewise.
6827         * lib/md2.c: Likewise.
6828         * lib/md4.c: Likewise.
6829         * lib/memxor.c: Likewise.
6830         * lib/read-file.c: Likewise.
6831         * lib/readline.c: Likewise.
6832         * lib/rijndael-alg-fst.c: Likewise.
6833         * lib/rijndael-api-fst.c: Likewise.
6834         * lib/xgetdomainname.c: Likewise.
6835
6836 2006-10-28  Eric Blake  <ebb9@byu.net>
6837
6838         * lib/xstrndup.c: Assume config.h.
6839
6840 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
6841
6842         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
6843         stat-macros.h is now for our own macros, whereas stat_h is for
6844         macros in the <sys/stat.h> name space.
6845         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
6846         (STAT_MACROS_H): Remove.
6847         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
6848         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
6849         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
6850         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
6851         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
6852         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
6853         Move these macros to ...
6854         * lib/stat_.h: here.  Don't include stat-macros.h.
6855         * lib/canonicalize.c: Don't include stat-macros.h.
6856         * lib/chown.c: Likewise.
6857         * lib/euidaccess.c: Likewise.
6858         * lib/file-type.c: Likewise.
6859         * lib/filemode.c: Likewise.
6860         * lib/glob.c: Likewise.
6861         * lib/isapipe.c: Likewise.
6862         * lib/lchown.c: Likewise.
6863         * lib/lstat.c: Likewise.
6864         * lib/mkdir-p.c: Likewise.
6865         * lib/rmdir.c: Likewise.
6866         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
6867         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
6868         unless mkdir isn't declared, to speed up 'configure'.
6869         Always create sys/stat.h, since it's unlikely any real sys/stat.h
6870         would define all the S_* symbols.
6871         * modules/canonicalize (Depends-on):
6872         Depend on sys_stat, not stat-macros.
6873         * modules/chown: Likewise.
6874         * modules/euidaccess: Likewise.
6875         * modules/filemode: Likewise.
6876         * modules/file-type: Likewise.
6877         * modules/glob: Likewise.
6878         * modules/isapipe: Likewise.
6879         * modules/lchown: Likewise.
6880         * modules/lstat: Likewise.
6881         * modules/mkancesdirs: Likewise.
6882         * modules/rmdir: Likewise.
6883         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
6884         * modules/modechange: Likewise.
6885         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
6886         (configure.ac): Remove gl_STAT_MACROS.
6887         * modules/sys_stat (Depends-on): Remove stat-macros.
6888
6889 2006-10-27  Bruno Haible  <bruno@clisp.org>
6890
6891         * m4/signed.m4: Remove file.
6892         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
6893         invocation.
6894         * modules/vasnprintf (Files): Remove m4/signed.m4.
6895
6896 2006-10-27  Bruno Haible  <bruno@clisp.org>
6897
6898         Update to GNU gettext 0.16.
6899         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
6900         m4/inttypes-h.m4, m4/signed.m4.
6901         * m4/gettext.m4: Update to GNU gettext 0.16.
6902         * m4/intl.m4: New file, from GNU gettext.
6903         * m4/intldir.m4: New file, from GNU gettext.
6904         * config/srclist.txt: Update
6905
6906 2006-10-27  Eric Blake  <ebb9@byu.net>
6907
6908         * MODULES.html.sh: Document tempname.
6909         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
6910         dependencies.
6911         (Files): Move lib/tempname.c...
6912         * modules/tempname: ...to this new module.
6913         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
6914         (gl_PREREQ_TEMPNAME): Move...
6915         * m4/tempname.m4: ...to this new file.
6916         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
6917         * modules/sys_stat (Depends-on): Add stat-macros.
6918         * lib/stat_.h (includes): Pick up stat macros.
6919         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
6920         if stat macros are broken.
6921         * lib/tempname.c (includes): No need to include "stat-macros.h".
6922         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
6923         (direxists, __path_search) [!_LIBC]: Don't compile these in
6924         gnulib; the tmpdir module covers that.
6925         * lib/tempname.h: New file.
6926
6927 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
6928
6929         * COPYING: Explain how gnulib-tool converts licence headers.
6930         Almost all wording by Eric Blake.
6931
6932 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
6933
6934         * lib/mbchar.h (is_basic_table): Make read-only.
6935         * lib/mbchar.c (is_basic_table): Likewise.
6936         Reported by John Darrington.
6937
6938 2006-10-25  Bruno Haible  <bruno@clisp.org>
6939
6940         * lib/progname.h (set_program_name): Undefine before defining.
6941
6942 2006-10-25  Bruno Haible  <bruno@clisp.org>
6943
6944         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
6945         false for non-gcc C++ compilers.
6946         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
6947
6948 2006-10-24  Bruno Haible  <bruno@clisp.org>
6949
6950         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
6951         iconv implementations like Irix iconv.
6952
6953 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
6954
6955         * modules/vararrays: New file.
6956         * m4/vararrays.m4: New file, taken from diffutils.
6957         * MODULES.html.sh: New module vararrays.
6958
6959 2006-10-24  Karl Berry  <karl@gnu.org>
6960
6961         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
6962         Don't call GNU Unix.
6963
6964 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6965
6966         * users.txt: Add Libtool.
6967
6968         Sync from Libtool:
6969
6970         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
6971
6972         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
6973         to gnulib's policy of including config.h unconditionally.
6974
6975 2006-10-24  Bruno Haible  <bruno@clisp.org>
6976
6977         * modules/wcwidth (Files): Add m4/wint_t.m4.
6978         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
6979         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
6980
6981 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
6982
6983         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
6984         to pacify GCC with some -W flags enabled.  Problem reported by
6985         Bruno Haible.
6986
6987 2006-10-24  Jim Meyering  <jim@meyering.net>
6988
6989         * MODULES.html.sh: Remove uinttostr.  It's not a module.
6990         Reported by Karl Berry.
6991
6992 2006-10-23  Bruno Haible  <bruno@clisp.org>
6993
6994         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
6995
6996 2006-10-24  Bruno Haible  <bruno@clisp.org>
6997
6998         * lib/gl_list.h: Use C comment style, not C++ comment style.
6999
7000 2006-10-23  Eric Blake  <ebb9@byu.net>
7001
7002         * lib/getaddrinfo.c (includes): Add missing include.
7003
7004 2006-10-23  Bruno Haible  <bruno@clisp.org>
7005             Paul Eggert  <eggert@cs.ucla.edu>
7006
7007         Ability to rename obstack_free.
7008         * lib/obstack.h (__obstack_free): New macro. Declare instead of
7009         obstack_free.
7010         (obstack_free): Invoke the __obstack_free macro.
7011         * lib/obstack.c (obstack_free): Use __obstack_free macro.
7012
7013 2006-10-23  Bruno Haible  <bruno@clisp.org>
7014             Paul Eggert  <eggert@cs.ucla.edu>
7015
7016         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
7017         __argc, __argv from the declaration. (They are defined as macros on
7018         mingw.)
7019
7020 2006-10-22  Bruno Haible  <bruno@clisp.org>
7021
7022         * doc/gnulib-intro.texi: New file.
7023         * doc/gnulib.texi: Include it.
7024
7025 2006-10-21  Bruno Haible  <bruno@clisp.org>
7026
7027         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
7028         "Introduction", "Miscellanous Notes", "Particular Modules".
7029
7030 2006-10-21  Bruno Haible  <bruno@clisp.org>
7031
7032         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
7033         Change mostlyclean-local rule to avoid sh syntax error from bash
7034         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
7035
7036 2006-10-23  Jim Meyering  <jim@meyering.net>
7037
7038         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
7039         in place of snprintf.
7040
7041         * modules/inttostr (Files): Add lib/uinttostr.c.
7042         * lib/uinttostr.c (inttostr): New file/function.
7043         * lib/inttostr.h (uinttostr): Declare.
7044         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
7045         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
7046         Add uinttostr.
7047         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
7048
7049 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
7050
7051         * lib/canonicalize.c (ELOOP): Define if not already defined.
7052         Problem reported by Bruno Haible in
7053         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
7054
7055 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
7056
7057         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
7058         Problem reported by Perry Smith and Ville Laurikari.
7059
7060         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
7061         uses.
7062
7063 2006-10-19  Bruno Haible  <bruno@clisp.org>
7064
7065         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
7066         for mingw.
7067
7068 2006-10-19  Bruno Haible  <bruno@clisp.org>
7069
7070         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
7071         Needed for mingw.
7072
7073 2006-10-19  Bruno Haible  <bruno@clisp.org>
7074
7075         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
7076
7077 2006-10-19  Bruno Haible  <bruno@clisp.org>
7078
7079         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
7080         it.
7081
7082 2006-10-19  Bruno Haible  <bruno@clisp.org>
7083
7084         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
7085         invocation.
7086
7087 2006-10-19  Bruno Haible  <bruno@clisp.org>
7088
7089         * gnulib-tool (func_create_testdir): Don't include ftruncate and
7090         mountlist by default.
7091
7092 2006-10-16  Bruno Haible  <bruno@clisp.org>
7093
7094         * lib/c-strstr.c: Include c-strstr.h.
7095
7096 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
7097
7098         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
7099         in a slash.
7100
7101 2006-10-18  Bruno Haible  <bruno@clisp.org>
7102
7103         * lib/lock.h [C++]: Wrap definitions in extern "C".
7104
7105 2006-10-18  Bruno Haible  <bruno@clisp.org>
7106
7107         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
7108         gl_LIBOBJS list.
7109
7110 2006-10-18  Bruno Haible  <bruno@clisp.org>
7111
7112         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
7113
7114 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
7115
7116         * lib/xstrtol.h: Include gettext.h.
7117         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
7118         Problem reported by Eric Blake.
7119         * modules/xstrtol (Depends-on): Add gettext-h.
7120
7121 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
7122
7123         * lib/strftime.c (advance): New macro.
7124         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
7125         incomplete type, so you can't add 0 to it.  Problem and patch
7126         reported by Eelco Dolstra for dietlibc.
7127
7128 2006-10-18  Jim Meyering  <jim@meyering.net>
7129
7130         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
7131         type for a local, and rename it: s/up/user_proc/.
7132
7133 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
7134
7135         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
7136         READ_UTMP_USER_PROCESS.
7137         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
7138
7139 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
7140
7141         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
7142         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
7143
7144 2006-10-17  Eric Blake  <ebb9@byu.net>
7145
7146         * lib/sigprocmask.c (sigprocmask): Fix typo.
7147
7148         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
7149
7150         * modules/clean-temp (Makefile.am): Don't add to make output...
7151         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
7152         config.h.
7153
7154 2006-10-17  Bruno Haible  <bruno@clisp.org>
7155
7156         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
7157         differently if DEFAULT_TEXT_DOMAIN is set.
7158
7159 2006-10-16  Bruno Haible  <bruno@clisp.org>
7160
7161         * lib/clean-temp.c: Include fwriteerror.h.
7162
7163 2006-10-16  Bruno Haible  <bruno@clisp.org>
7164
7165         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
7166
7167 2006-10-16  Bruno Haible  <bruno@clisp.org>
7168
7169         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
7170         * lib/sigprocmask.h: Include <sys/types.h>.
7171         (sigset_t): Use the system's definition if present.
7172
7173 2006-10-17  Eric Blake  <ebb9@byu.net>
7174
7175         * lib/xvasprintf.c (includes): Assume config.h.
7176         * lib/xasprintf.c (includes): Likewise.
7177
7178 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
7179
7180         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
7181         at least as wide as intmax_t.
7182
7183 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
7184
7185         (Imported from Automake.)
7186         * build-aux/gnupload: Update to version 1.1 of directive file.
7187
7188 2006-10-16  Eric Blake  <ebb9@byu.net>
7189
7190         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
7191         match Automake 1.10a.
7192
7193 2006-10-14  Bruno Haible  <bruno@clisp.org>
7194
7195         * modules/sigprocmask: New file.
7196         * lib/sigprocmask.h: New file.
7197         * lib/sigprocmask.c: New file.
7198         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
7199         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
7200         request sigprocmask.o.
7201         (gl_PREREQ_SIGPROCMASK): New macro.
7202         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
7203         (Depends-on): Add sigprocmask.
7204         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
7205         gt_SIGNALBLOCKING. Test for 'raise' only once.
7206         * lib/fatal-signal.c: Include sigprocmask.h.
7207         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
7208         unblock_fatal_signals): Define always.
7209         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
7210         sigprocmask.
7211
7212 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
7213
7214         Sync from Automake.
7215         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
7216         which incorrectly sets the mode of an existing destination
7217         directory.  In some cases the unpatched install-sh could do the
7218         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
7219         system.  We hope this is rare in practice, but it's clearly worth
7220         fixing.  Problem reported by Alex Unleashed in
7221         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
7222         Also, don't bother to check for -m bugs unless we're using -m;
7223         suggested by Stepan Kasal.
7224
7225 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
7226
7227         Sync from Automake.
7228         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
7229         `-c' flag, so they appear at the same position as in %FASTDEP%
7230         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
7231         which ignores unknown options only after the first non-option.
7232         Bug report against M4 by Nelson H. F. Beebe.
7233
7234 2006-10-13  Jim Meyering  <jim@meyering.net>
7235
7236         Fix a bug in yesterday's change.
7237         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
7238         p->fts_statp->st_dev would be used uninitialized.
7239         Ensures that we always call fts_stat on the very first entry.
7240         Miklos Szeredi reported that find -xdev stopped working.
7241
7242 2006-10-12  Bruno Haible  <bruno@clisp.org>
7243
7244         * gnulib-tool (func_get_automake_snippet): Append an automatically
7245         computed EXTRA_DIST augmentation.
7246         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
7247         * modules/alloca-opt (Makefile.am): Likewise.
7248         * modules/allocsa (Makefile.am): Likewise.
7249         * modules/arcfour (Makefile.am): Likewise.
7250         * modules/arctwo (Makefile.am): Likewise.
7251         * modules/argmatch (Makefile.am): Likewise.
7252         * modules/argz (Makefile.am): Likewise.
7253         * modules/atexit (Makefile.am): Likewise.
7254         * modules/backupfile (Makefile.am): Likewise.
7255         * modules/byteswap (Makefile.am): Likewise.
7256         * modules/c-strtod (Makefile.am): Likewise.
7257         * modules/c-strtold (Makefile.am): Likewise.
7258         * modules/calloc (Makefile.am): Likewise.
7259         * modules/canon-host (Makefile.am): Likewise.
7260         * modules/canonicalize (Makefile.am): Likewise.
7261         * modules/chdir-long (Makefile.am): Likewise.
7262         * modules/chdir-safer (Makefile.am): Likewise.
7263         * modules/check-version (Makefile.am): Likewise.
7264         * modules/chown (Makefile.am): Likewise.
7265         * modules/cloexec (Makefile.am): Likewise.
7266         * modules/close-stream (Makefile.am): Likewise.
7267         * modules/closeout (Makefile.am): Likewise.
7268         * modules/crc (Makefile.am): Likewise.
7269         * modules/csharpexec (Makefile.am): Likewise.
7270         * modules/cycle-check (Makefile.am): Likewise.
7271         * modules/des (Makefile.am): Likewise.
7272         * modules/dev-ino (Makefile.am): Likewise.
7273         * modules/dirfd (Makefile.am): Likewise.
7274         * modules/dirname (Makefile.am): Likewise.
7275         * modules/dup2 (Makefile.am): Likewise.
7276         * modules/eealloc (Makefile.am): Likewise.
7277         * modules/error (Makefile.am): Likewise.
7278         * modules/euidaccess (Makefile.am): Likewise.
7279         * modules/exclude (Makefile.am): Likewise.
7280         * modules/exitfail (Makefile.am): Likewise.
7281         * modules/fcntl-safer (Makefile.am): Likewise.
7282         * modules/fcntl (Makefile.am): Likewise.
7283         * modules/file-type (Makefile.am): Likewise.
7284         * modules/fileblocks (Makefile.am): Likewise.
7285         * modules/filemode (Makefile.am): Likewise.
7286         * modules/filenamecat (Makefile.am): Likewise.
7287         * modules/fnmatch (Makefile.am): Likewise.
7288         * modules/fopen-safer (Makefile.am): Likewise.
7289         * modules/fpending (Makefile.am): Likewise.
7290         * modules/fprintftime (Makefile.am): Likewise.
7291         * modules/free (Makefile.am): Likewise.
7292         * modules/fsusage (Makefile.am): Likewise.
7293         * modules/ftruncate (Makefile.am): Likewise.
7294         * modules/fts (Makefile.am): Likewise.
7295         * modules/gc-arcfour (Makefile.am): Likewise.
7296         * modules/gc-des (Makefile.am): Likewise.
7297         * modules/gc-hmac-md5 (Makefile.am): Likewise.
7298         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
7299         * modules/gc-md4 (Makefile.am): Likewise.
7300         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
7301         * modules/gc-sha1 (Makefile.am): Likewise.
7302         * modules/gc (Makefile.am): Likewise.
7303         * modules/getaddrinfo (Makefile.am): Likewise.
7304         * modules/getcwd (Makefile.am): Likewise.
7305         * modules/getdelim (Makefile.am): Likewise.
7306         * modules/getdomainname (Makefile.am): Likewise.
7307         * modules/getgroups (Makefile.am): Likewise.
7308         * modules/gethostname (Makefile.am): Likewise.
7309         * modules/gethrxtime (Makefile.am): Likewise.
7310         * modules/getline (Makefile.am): Likewise.
7311         * modules/getloadavg (Makefile.am): Likewise.
7312         * modules/getlogin_r (Makefile.am): Likewise.
7313         * modules/getndelim2 (Makefile.am): Likewise.
7314         * modules/getopt (Makefile.am): Likewise.
7315         * modules/getpagesize (Makefile.am): Likewise.
7316         * modules/getpass-gnu (Makefile.am): Likewise.
7317         * modules/getpass (Makefile.am): Likewise.
7318         * modules/getsubopt (Makefile.am): Likewise.
7319         * modules/gettime (Makefile.am): Likewise.
7320         * modules/gettimeofday (Makefile.am): Likewise.
7321         * modules/getugroups (Makefile.am): Likewise.
7322         * modules/getusershell (Makefile.am): Likewise.
7323         * modules/glob (Makefile.am): Likewise.
7324         * modules/group-member (Makefile.am): Likewise.
7325         * modules/hard-locale (Makefile.am): Likewise.
7326         * modules/hash (Makefile.am): Likewise.
7327         * modules/hmac-md5 (Makefile.am): Likewise.
7328         * modules/hmac-sha1 (Makefile.am): Likewise.
7329         * modules/human (Makefile.am): Likewise.
7330         * modules/idcache (Makefile.am): Likewise.
7331         * modules/imaxabs (Makefile.am): Likewise.
7332         * modules/imaxdiv (Makefile.am): Likewise.
7333         * modules/inet_ntop (Makefile.am): Likewise.
7334         * modules/inet_pton (Makefile.am): Likewise.
7335         * modules/intprops (Makefile.am): Likewise.
7336         * modules/inttostr (Makefile.am): Likewise.
7337         * modules/inttypes (Makefile.am): Likewise.
7338         * modules/isapipe (Makefile.am): Likewise.
7339         * modules/javaversion (Makefile.am): Likewise.
7340         * modules/lchmod (Makefile.am): Likewise.
7341         * modules/lchown (Makefile.am): Likewise.
7342         * modules/localcharset (Makefile.am): Likewise.
7343         * modules/long-options (Makefile.am): Likewise.
7344         * modules/lstat (Makefile.am): Likewise.
7345         * modules/malloc (Makefile.am): Likewise.
7346         * modules/mathl (Makefile.am): Likewise.
7347         * modules/mbchar (Makefile.am): Likewise.
7348         * modules/md2 (Makefile.am): Likewise.
7349         * modules/md4 (Makefile.am): Likewise.
7350         * modules/md5 (Makefile.am): Likewise.
7351         * modules/memcasecmp (Makefile.am): Likewise.
7352         * modules/memchr (Makefile.am): Likewise.
7353         * modules/memcmp (Makefile.am): Likewise.
7354         * modules/memcoll (Makefile.am): Likewise.
7355         * modules/memcpy (Makefile.am): Likewise.
7356         * modules/memmem (Makefile.am): Likewise.
7357         * modules/memmove (Makefile.am): Likewise.
7358         * modules/mempcpy (Makefile.am): Likewise.
7359         * modules/memrchr (Makefile.am): Likewise.
7360         * modules/memset (Makefile.am): Likewise.
7361         * modules/memxor (Makefile.am): Likewise.
7362         * modules/mkancesdirs (Makefile.am): Likewise.
7363         * modules/mkdir-p (Makefile.am): Likewise.
7364         * modules/mkdir (Makefile.am): Likewise.
7365         * modules/mkdtemp (Makefile.am): Likewise.
7366         * modules/mkstemp (Makefile.am): Likewise.
7367         * modules/mktime (Makefile.am): Likewise.
7368         * modules/modechange (Makefile.am): Likewise.
7369         * modules/mountlist (Makefile.am): Likewise.
7370         * modules/nanosleep (Makefile.am): Likewise.
7371         * modules/obstack (Makefile.am): Likewise.
7372         * modules/openat (Makefile.am): Likewise.
7373         * modules/pagealign_alloc (Makefile.am): Likewise.
7374         * modules/pathmax (Makefile.am): Likewise.
7375         * modules/physmem (Makefile.am): Likewise.
7376         * modules/poll (Makefile.am): Likewise.
7377         * modules/posixtm (Makefile.am): Likewise.
7378         * modules/posixver (Makefile.am): Likewise.
7379         * modules/putenv (Makefile.am): Likewise.
7380         * modules/quote (Makefile.am): Likewise.
7381         * modules/quotearg (Makefile.am): Likewise.
7382         * modules/raise (Makefile.am): Likewise.
7383         * modules/read-file (Makefile.am): Likewise.
7384         * modules/readline (Makefile.am): Likewise.
7385         * modules/readlink (Makefile.am): Likewise.
7386         * modules/readtokens (Makefile.am): Likewise.
7387         * modules/readutmp (Makefile.am): Likewise.
7388         * modules/realloc (Makefile.am): Likewise.
7389         * modules/regex (Makefile.am): Likewise.
7390         * modules/rename-dest-slash (Makefile.am): Likewise.
7391         * modules/rename (Makefile.am): Likewise.
7392         * modules/rijndael (Makefile.am): Likewise.
7393         * modules/rmdir (Makefile.am): Likewise.
7394         * modules/rpmatch (Makefile.am): Likewise.
7395         * modules/safe-read (Makefile.am): Likewise.
7396         * modules/safe-write (Makefile.am): Likewise.
7397         * modules/same-inode (Makefile.am): Likewise.
7398         * modules/same (Makefile.am): Likewise.
7399         * modules/save-cwd (Makefile.am): Likewise.
7400         * modules/savedir (Makefile.am): Likewise.
7401         * modules/setenv (Makefile.am): Likewise.
7402         * modules/settime (Makefile.am): Likewise.
7403         * modules/sha1 (Makefile.am): Likewise.
7404         * modules/sig2str (Makefile.am): Likewise.
7405         * modules/snprintf (Makefile.am): Likewise.
7406         * modules/stat-macros (Makefile.am): Likewise.
7407         * modules/stat-time (Makefile.am): Likewise.
7408         * modules/stdbool (Makefile.am): Likewise.
7409         * modules/stdint (Makefile.am): Likewise.
7410         * modules/stdlib-safer (Makefile.am): Likewise.
7411         * modules/stpcpy (Makefile.am): Likewise.
7412         * modules/stpncpy (Makefile.am): Likewise.
7413         * modules/strcase (Makefile.am): Likewise.
7414         * modules/strcasestr (Makefile.am): Likewise.
7415         * modules/strchrnul (Makefile.am): Likewise.
7416         * modules/strcspn (Makefile.am): Likewise.
7417         * modules/strdup (Makefile.am): Likewise.
7418         * modules/strerror (Makefile.am): Likewise.
7419         * modules/strftime (Makefile.am): Likewise.
7420         * modules/strndup (Makefile.am): Likewise.
7421         * modules/strnlen (Makefile.am): Likewise.
7422         * modules/strpbrk (Makefile.am): Likewise.
7423         * modules/strsep (Makefile.am): Likewise.
7424         * modules/strstr (Makefile.am): Likewise.
7425         * modules/strtod (Makefile.am): Likewise.
7426         * modules/strtoimax (Makefile.am): Likewise.
7427         * modules/strtok_r (Makefile.am): Likewise.
7428         * modules/strtol (Makefile.am): Likewise.
7429         * modules/strtoll (Makefile.am): Likewise.
7430         * modules/strtoul (Makefile.am): Likewise.
7431         * modules/strtoull (Makefile.am): Likewise.
7432         * modules/strtoumax (Makefile.am): Likewise.
7433         * modules/strverscmp (Makefile.am): Likewise.
7434         * modules/sys_socket (Makefile.am): Likewise.
7435         * modules/sys_stat (Makefile.am): Likewise.
7436         * modules/sysexits (Makefile.am): Likewise.
7437         * modules/time_r (Makefile.am): Likewise.
7438         * modules/timegm (Makefile.am): Likewise.
7439         * modules/timespec (Makefile.am): Likewise.
7440         * modules/tmpfile-safer (Makefile.am): Likewise.
7441         * modules/trim (Makefile.am): Likewise.
7442         * modules/unistd-safer (Makefile.am): Likewise.
7443         * modules/unlinkdir (Makefile.am): Likewise.
7444         * modules/unlocked-io (Makefile.am): Likewise.
7445         * modules/userspec (Makefile.am): Likewise.
7446         * modules/utime (Makefile.am): Likewise.
7447         * modules/utimecmp (Makefile.am): Likewise.
7448         * modules/utimens (Makefile.am): Likewise.
7449         * modules/vasnprintf (Makefile.am): Likewise.
7450         * modules/vasprintf (Makefile.am): Likewise.
7451         * modules/vsnprintf (Makefile.am): Likewise.
7452         * modules/xalloc (Makefile.am): Likewise.
7453         * modules/xgetcwd (Makefile.am): Likewise.
7454         * modules/xnanosleep (Makefile.am): Likewise.
7455         * modules/xreadlink (Makefile.am): Likewise.
7456         * modules/xstrtod (Makefile.am): Likewise.
7457         * modules/xstrtol (Makefile.am): Likewise.
7458         * modules/xstrtold (Makefile.am): Likewise.
7459         * modules/yesno (Makefile.am): Likewise.
7460         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
7461
7462 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
7463
7464         * modules/error (Makefile.am): Distribute files through
7465         EXTRA_DIST, not lib_SOURCES.
7466
7467 2006-10-12  Eric Blake  <ebb9@byu.net>
7468
7469         * modules/error (Makefile.am): Distribute files in /lib.
7470         * modules/obstack (Makefile.am): Likewise.
7471
7472 2006-10-12  Bruno Haible  <bruno@clisp.org>
7473
7474         * modules/acl (Makefile.am): Distribute all files in lib/ through
7475         EXTRA_DIST.
7476         * modules/arcfour (Makefile.am): Likewise.
7477         * modules/arctwo (Makefile.am): Likewise.
7478         * modules/argmatch (Makefile.am): Likewise.
7479         * modules/argz (Makefile.am): Likewise.
7480         * modules/atexit (Makefile.am): Likewise.
7481         * modules/backupfile (Makefile.am): Likewise.
7482         * modules/c-strtod (Makefile.am): Likewise.
7483         * modules/c-strtold (Makefile.am): Likewise.
7484         * modules/calloc (Makefile.am): Likewise.
7485         * modules/canon-host (Makefile.am): Likewise.
7486         * modules/canonicalize (Makefile.am): Likewise.
7487         * modules/chdir-long (Makefile.am): Likewise.
7488         * modules/chdir-safer (Makefile.am): Likewise.
7489         * modules/check-version (Makefile.am): Likewise.
7490         * modules/chown (Makefile.am): Likewise.
7491         * modules/cloexec (Makefile.am): Likewise.
7492         * modules/close-stream (Makefile.am): Likewise.
7493         * modules/closeout (Makefile.am): Likewise.
7494         * modules/crc (Makefile.am): Likewise.
7495         * modules/cycle-check (Makefile.am): Likewise.
7496         * modules/des (Makefile.am): Likewise.
7497         * modules/dirfd (Makefile.am): Likewise.
7498         * modules/dirname (Makefile.am): Likewise.
7499         * modules/dup2 (Makefile.am): Likewise.
7500         * modules/euidaccess (Makefile.am): Likewise.
7501         * modules/exclude (Makefile.am): Likewise.
7502         * modules/exitfail (Makefile.am): Likewise.
7503         * modules/fcntl-safer (Makefile.am): Likewise.
7504         * modules/file-type (Makefile.am): Likewise.
7505         * modules/fileblocks (Makefile.am): Likewise.
7506         * modules/filemode (Makefile.am): Likewise.
7507         * modules/filenamecat (Makefile.am): Likewise.
7508         * modules/fnmatch (Makefile.am): Likewise.
7509         * modules/fopen-safer (Makefile.am): Likewise.
7510         * modules/fpending (Makefile.am): Likewise.
7511         * modules/fprintftime (Makefile.am): Likewise.
7512         * modules/free (Makefile.am): Likewise.
7513         * modules/fsusage (Makefile.am): Likewise.
7514         * modules/ftruncate (Makefile.am): Likewise.
7515         * modules/fts (Makefile.am): Likewise.
7516         * modules/gc (Makefile.am): Likewise.
7517         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
7518         * modules/getaddrinfo (Makefile.am): Likewise.
7519         * modules/getcwd (Makefile.am): Likewise.
7520         * modules/getdelim (Makefile.am): Likewise.
7521         * modules/getdomainname (Makefile.am): Likewise.
7522         * modules/getgroups (Makefile.am): Likewise.
7523         * modules/gethostname (Makefile.am): Likewise.
7524         * modules/gethrxtime (Makefile.am): Likewise.
7525         * modules/getline (Makefile.am): Likewise.
7526         * modules/getloadavg (Makefile.am): Likewise.
7527         * modules/getlogin_r (Makefile.am): Likewise.
7528         * modules/getopt (Makefile.am): Likewise.
7529         * modules/getpass (Makefile.am): Likewise.
7530         * modules/getpass-gnu (Makefile.am): Likewise.
7531         * modules/getsubopt (Makefile.am): Likewise.
7532         * modules/gettime (Makefile.am): Likewise.
7533         * modules/gettimeofday (Makefile.am): Likewise.
7534         * modules/getugroups (Makefile.am): Likewise.
7535         * modules/getusershell (Makefile.am): Likewise.
7536         * modules/glob (Makefile.am): Likewise.
7537         * modules/group-member (Makefile.am): Likewise.
7538         * modules/hard-locale (Makefile.am): Likewise.
7539         * modules/hash (Makefile.am): Likewise.
7540         * modules/hmac-md5 (Makefile.am): Likewise.
7541         * modules/hmac-sha1 (Makefile.am): Likewise.
7542         * modules/human (Makefile.am): Likewise.
7543         * modules/idcache (Makefile.am): Likewise.
7544         * modules/imaxabs (Makefile.am): Likewise.
7545         * modules/imaxdiv (Makefile.am): Likewise.
7546         * modules/inet_ntop (Makefile.am): Likewise.
7547         * modules/inet_pton (Makefile.am): Likewise.
7548         * modules/inttostr (Makefile.am): Likewise.
7549         * modules/isapipe (Makefile.am): Likewise.
7550         * modules/lchown (Makefile.am): Likewise.
7551         * modules/long-options (Makefile.am): Likewise.
7552         * modules/lstat (Makefile.am): Likewise.
7553         * modules/malloc (Makefile.am): Likewise.
7554         * modules/mathl (Makefile.am): Likewise.
7555         * modules/mbchar (Makefile.am): Likewise.
7556         * modules/md2 (Makefile.am): Likewise.
7557         * modules/md4 (Makefile.am): Likewise.
7558         * modules/md5 (Makefile.am): Likewise.
7559         * modules/memcasecmp (Makefile.am): Likewise.
7560         * modules/memchr (Makefile.am): Likewise.
7561         * modules/memcmp (Makefile.am): Likewise.
7562         * modules/memcoll (Makefile.am): Likewise.
7563         * modules/memcpy (Makefile.am): Likewise.
7564         * modules/memmem (Makefile.am): Likewise.
7565         * modules/memmove (Makefile.am): Likewise.
7566         * modules/mempcpy (Makefile.am): Likewise.
7567         * modules/memrchr (Makefile.am): Likewise.
7568         * modules/memset (Makefile.am): Likewise.
7569         * modules/memxor (Makefile.am): Likewise.
7570         * modules/mkancesdirs (Makefile.am): Likewise.
7571         * modules/mkdir (Makefile.am): Likewise.
7572         * modules/mkdir-p (Makefile.am): Likewise.
7573         * modules/mkdtemp (Makefile.am): Likewise.
7574         * modules/mkstemp (Makefile.am): Likewise.
7575         * modules/mktime (Makefile.am): Likewise.
7576         * modules/modechange (Makefile.am): Likewise.
7577         * modules/mountlist (Makefile.am): Likewise.
7578         * modules/nanosleep (Makefile.am): Likewise.
7579         * modules/openat (Makefile.am): Likewise.
7580         * modules/pagealign_alloc (Makefile.am): Likewise.
7581         * modules/physmem (Makefile.am): Likewise.
7582         * modules/poll (Makefile.am): Likewise.
7583         * modules/posixtm (Makefile.am): Likewise.
7584         * modules/posixver (Makefile.am): Likewise.
7585         * modules/putenv (Makefile.am): Likewise.
7586         * modules/quote (Makefile.am): Likewise.
7587         * modules/quotearg (Makefile.am): Likewise.
7588         * modules/raise (Makefile.am): Likewise.
7589         * modules/read-file (Makefile.am): Likewise.
7590         * modules/readline (Makefile.am): Likewise.
7591         * modules/readlink (Makefile.am): Likewise.
7592         * modules/readtokens (Makefile.am): Likewise.
7593         * modules/readutmp (Makefile.am): Likewise.
7594         * modules/realloc (Makefile.am): Likewise.
7595         * modules/regex (Makefile.am): Likewise.
7596         * modules/rename (Makefile.am): Likewise.
7597         * modules/rename-dest-slash (Makefile.am): Likewise.
7598         * modules/rijndael (Makefile.am): Likewise.
7599         * modules/rmdir (Makefile.am): Likewise.
7600         * modules/rpmatch (Makefile.am): Likewise.
7601         * modules/safe-read (Makefile.am): Likewise.
7602         * modules/safe-write (Makefile.am): Likewise.
7603         * modules/same (Makefile.am): Likewise.
7604         * modules/save-cwd (Makefile.am): Likewise.
7605         * modules/savedir (Makefile.am): Likewise.
7606         * modules/setenv (Makefile.am): Likewise.
7607         * modules/settime (Makefile.am): Likewise.
7608         * modules/sha1 (Makefile.am): Likewise.
7609         * modules/sig2str (Makefile.am): Likewise.
7610         * modules/snprintf (Makefile.am): Likewise.
7611         * modules/stdlib-safer (Makefile.am): Likewise.
7612         * modules/stpcpy (Makefile.am): Likewise.
7613         * modules/stpncpy (Makefile.am): Likewise.
7614         * modules/strcase (Makefile.am): Likewise.
7615         * modules/strcasestr (Makefile.am): Likewise.
7616         * modules/strchrnul (Makefile.am): Likewise.
7617         * modules/strcspn (Makefile.am): Likewise.
7618         * modules/strdup (Makefile.am): Likewise.
7619         * modules/strerror (Makefile.am): Likewise.
7620         * modules/strftime (Makefile.am): Likewise.
7621         * modules/strndup (Makefile.am): Likewise.
7622         * modules/strnlen (Makefile.am): Likewise.
7623         * modules/strpbrk (Makefile.am): Likewise.
7624         * modules/strsep (Makefile.am): Likewise.
7625         * modules/strstr (Makefile.am): Likewise.
7626         * modules/strtod (Makefile.am): Likewise.
7627         * modules/strtoimax (Makefile.am): Likewise.
7628         * modules/strtok_r (Makefile.am): Likewise.
7629         * modules/strtol (Makefile.am): Likewise.
7630         * modules/strtoll (Makefile.am): Likewise.
7631         * modules/strtoul (Makefile.am): Likewise.
7632         * modules/strtoull (Makefile.am): Likewise.
7633         * modules/strtoumax (Makefile.am): Likewise.
7634         * modules/strverscmp (Makefile.am): Likewise.
7635         * modules/time_r (Makefile.am): Likewise.
7636         * modules/timegm (Makefile.am): Likewise.
7637         * modules/tmpfile-safer (Makefile.am): Likewise.
7638         * modules/unistd-safer (Makefile.am): Likewise.
7639         * modules/unlinkdir (Makefile.am): Likewise.
7640         * modules/userspec (Makefile.am): Likewise.
7641         * modules/utime (Makefile.am): Likewise.
7642         * modules/utimecmp (Makefile.am): Likewise.
7643         * modules/utimens (Makefile.am): Likewise.
7644         * modules/vasnprintf (Makefile.am): Likewise.
7645         * modules/vasprintf (Makefile.am): Likewise.
7646         * modules/vsnprintf (Makefile.am): Likewise.
7647         * modules/xalloc (Makefile.am): Likewise.
7648         * modules/xgetcwd (Makefile.am): Likewise.
7649         * modules/xnanosleep (Makefile.am): Likewise.
7650         * modules/xreadlink (Makefile.am): Likewise.
7651         * modules/xstrtod (Makefile.am): Likewise.
7652         * modules/xstrtol (Makefile.am): Likewise.
7653         * modules/xstrtold (Makefile.am): Likewise.
7654         * modules/yesno (Makefile.am): Likewise.
7655
7656 2006-10-12  Jim Meyering  <jim@meyering.net>
7657
7658         * m4/getloadavg.m4: Revert the change below.
7659
7660         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
7661         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
7662         fail with a symlink, which is what coreutils' ./bootstrap now
7663         creates by default.
7664
7665 2006-10-12  Bruno Haible  <bruno@clisp.org>
7666
7667         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
7668         mingw.
7669         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
7670         MSVC and mingw explicitly.
7671
7672 2006-10-11  Simon Josefsson  <jas@extundo.com>
7673             Bruno Haible  <bruno@clisp.org>
7674
7675         Add support for multiple gnulib-tool invocations in the scope of a
7676         single configure.ac file.
7677         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
7678         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
7679         with the same contents as the _LIBADD variable.
7680         (func_emit_initmacro_start, func_emit_initmacro_end,
7681         func_emit_initmacro_done): New functions.
7682         (func_import, func_create_testdir): Invoke them. Allow the identifiers
7683         gl_LIBOBJS and gl_LTLIBOBJS.
7684
7685 2006-10-11  Bruno Haible  <bruno@clisp.org>
7686
7687         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
7688         (func_create_testdir): Don't create po/Makefile.am, don't invoke
7689         autoreconf. Instead, invoke autopoint explicitly but move back the
7690         *.m4 files from gnulib.
7691
7692 2006-10-11  Bruno Haible  <bruno@clisp.org>
7693
7694         * gnulib-tool (func_usage): Make module names after --create-testdir
7695         optional.
7696         (func_create_testdir): If no module was specified, use nearly all
7697         modules.
7698
7699 2006-10-12  Jim Meyering  <jim@meyering.net>
7700
7701         Big performance improvement for fts-based tools that use FTS_NOSTAT.
7702         Avoid spurious inode-mismatch problems on non-POSIX file systems.
7703         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
7704         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
7705         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
7706         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
7707         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
7708         (fts_set_stat_required): New function.
7709         (fts_open): Defer the calls to fts_stat, if possible or requested.
7710         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
7711         into fts_stat itself.
7712         (fts_read): Perform any required (deferred) fts_stat call.
7713         (fts_build): Likewise, for the directory we're about to open and read.
7714         In the readdir loop, carefully decide whether each entry will require
7715         an eventual call to fts_stat, using dirent.d_type info if available.
7716         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
7717         a command line argument into this function.  Update all callers.
7718         Map a return value of FTS_DOT to FTS_D for a command line argument.
7719         * modules/fts (Depends-on): Add d-type.  Alphabetize.
7720         Thanks to Miklos Szeredi for his tenacity and for the initial
7721         bug report about "find" failing on a FUSE-based file system.
7722
7723         * lib/fts.c (fts_open): Use consistent indentation.
7724
7725 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
7726
7727         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
7728         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
7729         reported by Jim Meyering.  All uses of cache variables renamed
7730         to match Autoconf's.
7731         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
7732         the other one.
7733
7734         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
7735         Fix misspelling in diagnostic.
7736
7737 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
7738
7739         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
7740         defined.  Problem reported by Matthew Woehlke.
7741
7742         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
7743         Add support for Tandem NonStop R series.
7744         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
7745         Use new macro.
7746
7747         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
7748         (has_trailing_slash): Omit size arg; all callers changed.
7749         Omit 'inline', since it doesn't help performance and we'd
7750         need to configure it.
7751         Don't count //, ///, etc. as having a trailing slash.
7752         As a side effect, this removes a C99ism reported by Matthew Woehlke.
7753         (rpl_rename_dest_slash): On failure, use rename's errno rather
7754         than (in some cases) an incorrect or junk errno.
7755         Simplify code by removing need to compute length; this does
7756         cause it to make two passes instead of one over the file name,
7757         but it's worth it.
7758
7759         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
7760         change, since Autoconf's version may no longer be appropriate now
7761         that we are using CVS Autoconf's version.  Add support for Tandem.
7762
7763 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
7764             Bruno Haible  <bruno@clisp.org>
7765
7766         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
7767         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
7768         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
7769         gl_AC_TYPE_LONG_LONG.
7770
7771         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
7772         instead of HAVE_LONG_LONG.
7773         * lib/printf-args.c (printf_fetchargs): Likewise.
7774         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
7775         * lib/vasnprintf.c (VASNPRINTF): Likewise.
7776         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
7777         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
7778         gl_AC_TYPE_LONG_LONG.
7779
7780 2006-10-11  Bruno Haible  <bruno@clisp.org>
7781
7782         * m4/longlong.m4: Add comments.
7783         * m4/ulonglong.m4: Likewise.
7784
7785 2006-10-10  Bruno Haible  <bruno@clisp.org>
7786
7787         Make it possible to #define stpcpy, strdup to aliases.
7788         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
7789         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
7790
7791 2006-10-10  Bruno Haible  <bruno@clisp.org>
7792
7793         Make it possible to #define gcd to an alias.
7794         * lib/gcd.c: Include config.h.
7795
7796 2006-10-10  Bruno Haible  <bruno@clisp.org>
7797
7798         Make it possible to #define c_isascii to an alias.
7799         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
7800         defined. Undefine the macros before defining them, to avoid gcc
7801         warnings.
7802         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
7803         define NO_C_CTYPE_MACROS early.
7804
7805 2006-10-10  Bruno Haible  <bruno@clisp.org>
7806
7807         Make it possible to #define set_program_name to an alias.
7808         * lib/progname.c: Don't undefine set_program_name; instead, undefine
7809         ENABLE_RELOCATABLE early.
7810
7811 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
7812
7813         Port to Tandem NSK OSS, which has 64-bit signed int but at most
7814         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
7815         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
7816         More generally, don't assume that 64-bit signed int is available
7817         if unsigned int is, and vice versa.
7818         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
7819         unsigned symbols, not on their signed counterparts.
7820         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
7821         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
7822         (UINT64_C, UINTMAX_C):
7823         Likewise.
7824         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
7825         unsigned counterparts.
7826         (Have_long_long, Unsigned): New macros.
7827         (Int): Renamed from INT.
7828         (strtoimax): Use the new macros.
7829         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
7830         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
7831         * modules/inttypes (inttypes.h): Substitute
7832         HAVE_UNSIGNED_LONG_LONG_INT.
7833         * modules/stdint (stdint.h): Likewise.
7834         (Files): Add m4/ulonglong.m4.
7835
7836 2006-10-10  Bruno Haible  <bruno@clisp.org>
7837
7838         Fix a gcc -Wshadow warning.
7839         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
7840         to 'bucket'.
7841         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
7842         gl_linked_indexof_from_to): Likewise.
7843         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
7844         Likewise.
7845         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
7846         Likewise.
7847         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
7848         Reported by Eric Blake.
7849
7850 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
7851
7852         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
7853         for NetBSD.  Problem reported by Bruno Haible.
7854
7855 2006-10-09  Jim Meyering  <jim@meyering.net>
7856
7857         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
7858         Patch from Bruno Haible.
7859
7860 2006-10-09  Jim Meyering  <jim@meyering.net>
7861
7862         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
7863         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
7864         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
7865
7866 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
7867
7868         Don't include <config.h> twice; this doesn't work in some cases,
7869         e.g., when config.h has "#define intmax_t long long int" and
7870         we include <config.h>, <inttypes.h>, <config.h> in that order.
7871         Problem reported by Matthew Woehlke in:
7872         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
7873         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
7874         * lib/fts-cycle.c: Don't include config.h.
7875         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
7876         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
7877         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
7878         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
7879         inttypes.h.
7880         * lib/xstrtoumax.c: Likewise.
7881         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
7882         __strtol and the like, so that this module is more like its siblings.
7883         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
7884         Remove; no longer needed now that we assume gnulib inttypes.h.
7885
7886 2006-10-08  Bruno Haible  <bruno@clisp.org>
7887
7888         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
7889         option.
7890
7891 2006-10-07  Jim Meyering  <jim@meyering.net>
7892
7893         * modules/inttypes (inttypes.h): Revert what seems to have been
7894         an inadvertent part of today's change: use "|", not "/" in the
7895         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
7896
7897 2006-10-07  Bruno Haible  <bruno@clisp.org>
7898
7899         * modules/sublist: New file.
7900
7901 2006-10-07  Bruno Haible  <bruno@clisp.org>
7902
7903         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
7904         * modules/argz (argz.h): Likewise.
7905         * modules/arpa_inet (arpa/inet.h): Likewise.
7906         * modules/byteswap (byteswap.h): Likewise.
7907         * modules/configmake (configmake.h): Likewise.
7908         * modules/fcntl (fcntl.h): Likewise.
7909         * modules/fnmatch (fnmatch.h): Likewise.
7910         * modules/getopt (getopt.h): Likewise.
7911         * modules/glob (glob.h): Likewise.
7912         * modules/inttypes (inttypes.h): Likewise.
7913         * modules/netinet_in (netinet/in.h): Likewise.
7914         * modules/poll (poll.h): Likewise.
7915         * modules/stdbool (stdbool.h): Likewise.
7916         * modules/stdint (stdint.h): Likewise.
7917         * modules/sys_select (sys/select.h): Likewise.
7918         * modules/sys_socket (sys/socket.h): Likewise.
7919         * modules/sys_stat (sys/stat.h): Likewise.
7920         * modules/sysexits (sysexits.h): Likewise.
7921         * modules/unistd (unistd.h): Likewise.
7922         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
7923         Add a "DO NOT EDIT" comment to the generated file.
7924         (func_import): Likewise for gnulib-comp.m4.
7925
7926 2006-10-07  Bruno Haible  <bruno@clisp.org>
7927
7928         * lib/gl_sublist.h: New file.
7929         * lib/gl_sublist.c: New file.
7930
7931 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
7932
7933         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
7934         name (relative to the original working directory) and the file
7935         name component (relative to the temporary working directory).  All
7936         callers changed.
7937         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
7938         * lib/mkdir-p.c (make_dir_parents): Likewise.
7939         * lib/mkdir-p.h (make_dir_parents): Likewise.
7940
7941 2006-10-06  Eric Blake  <ebb9@byu.net>
7942
7943         Define several macros for use by the clean-temp module.
7944         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
7945         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
7946         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
7947
7948         * lib/clean-temp.h (close_stream_temp): New declaration.
7949         * lib/clean-temp.c (includes): Pull in headers according to what
7950         other modules are in use.
7951         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
7952
7953 2006-10-06  Bruno Haible  <bruno@clisp.org>
7954
7955         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
7956         instead of fopen, fwriteerror.
7957
7958 2006-10-06  Bruno Haible  <bruno@clisp.org>
7959
7960         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
7961         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
7962         int.
7963         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
7964         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
7965         Return an error indicator.
7966         Suggested by Eric Blake.
7967
7968 2006-10-06  Bruno Haible  <bruno@clisp.org>
7969
7970         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
7971         Reported by Eric Blake.
7972
7973 2006-10-06  Bruno Haible  <bruno@clisp.org>
7974
7975         * modules/closeout (Description): Mention stderr too.
7976
7977 2006-10-06  Bruno Haible  <bruno@clisp.org>
7978         and Paul Eggert  <eggert@cs.ucla.edu>
7979
7980         * lib/closeout.c (close_stdout): Also close stderr.
7981         * lib/closeout.h: Update comment.
7982
7983 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
7984
7985         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
7986         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
7987         * lib/dirchownmod.c: Include lchown.h.
7988         * lib/lchown.c: Don't include files that lchown.h now includes.
7989         Don't declare chown, since lchown.h now does that.
7990         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
7991         (lchown): Define to rpl_chown if lchown is declared but
7992         does not exist.  Declare using a prototype if lchown is not
7993         declared.  Add a copyright notice.
7994         * lib/mkstemp.h: Include <unistd.h>.
7995         * lib/openat.c: Include lchown.h.
7996
7997         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
7998         we now test for that separately.
7999         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
8000         rather than O_NOFOLLOW, when testing whether it's possible to
8001         avoid a race condition reliably.
8002         * lib/savewd.c (savewd_chdir): Likewise.
8003
8004         Remove macros that are no longer needed now that stdint.h is
8005         reliable.
8006         * lib/fsusage.c (UINTMAX_MAX): Remove.
8007         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
8008         * lib/utimecmp.c (SIZE_MAX): Remove.
8009
8010         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
8011
8012         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
8013         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
8014         O_NOATIME works.
8015
8016 2006-10-05  Bruno Haible  <bruno@clisp.org>
8017
8018         * lib/gl_list.h (gl_sortedlist_search_from_to,
8019         gl_sortedlist_indexof_from_to): New declarations.
8020         (gl_list_implementation): New fields sortedlist_search_from_to,
8021         sortedlist_indexof_from_to.
8022         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
8023         inline functions.
8024         * lib/gl_list.c (gl_sortedlist_search_from_to,
8025         gl_sortedlist_indexof_from_to): New functions.
8026         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
8027         function.
8028         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
8029         (gl_array_sortedlist_search_from_to): New function.
8030         (gl_array_list_implementation): Update.
8031         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
8032         function.
8033         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
8034         (gl_carray_sortedlist_search_from_to): New function.
8035         (gl_carray_list_implementation): Update.
8036         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
8037         gl_linked_sortedlist_indexof_from_to): New functions.
8038         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
8039         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
8040         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
8041         gl_tree_sortedlist_indexof_from_to): New functions.
8042         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
8043         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
8044         Update.
8045         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
8046         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
8047         Update.
8048
8049 2006-10-05  Bruno Haible  <bruno@clisp.org>
8050
8051         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
8052         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
8053         (struct gl_list_implementation): Add fields search_from_to,
8054         indexof_from_to. Remove fields search, indexof.
8055         (gl_list_search): Use the search_from_to method.
8056         (gl_list_search_from, gl_list_search_from_to): New functions.
8057         (gl_list_indexof): Use the indexof_from_to method.
8058         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
8059         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
8060         (gl_list_search_from, gl_list_search_from_to): New functions.
8061         (gl_list_indexof): Use the indexof_from_to method.
8062         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
8063         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
8064         gl_array_indexof. Add start_index, end_index arguments.
8065         (gl_array_search_from_to): Renamed from gl_array_search. Add
8066         start_index, end_index arguments.
8067         (gl_array_remove, gl_array_list_implementation): Update.
8068         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
8069         gl_carray_indexof. Add start_index, end_index arguments.
8070         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
8071         start_index, end_index arguments.
8072         (gl_carray_remove, gl_carray_list_implementation): Update.
8073         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
8074         gl_linked_search. Add start_index, end_index arguments.
8075         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
8076         start_index, end_index arguments.
8077         (gl_linked_remove): Update.
8078         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
8079         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
8080         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
8081         field to 'size_t'.
8082         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
8083         gl_tree_search. Add start_index, end_index arguments.
8084         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
8085         start_index, end_index arguments.
8086         (gl_tree_remove): Update.
8087         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
8088         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
8089         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
8090         function.
8091         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
8092         gl_tree_search. Add start_index, end_index arguments.
8093         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
8094         start_index, end_index arguments.
8095         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
8096         Update.
8097         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
8098
8099 2006-10-05  Bruno Haible  <bruno@clisp.org>
8100
8101         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
8102
8103         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
8104         fwriteerror_temp): New declarations.
8105         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
8106         (descriptors): New variable.
8107         (cleanup): First, close the descriptors.
8108         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
8109         fclose_temp, fwriteerror_temp): New functions.
8110
8111 2006-10-04  Jim Meyering  <jim@meyering.net>
8112
8113         * lib/fts.c (fts_open): Tiny comment change.
8114
8115 2006-10-04  Bruno Haible  <bruno@clisp.org>
8116
8117         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
8118         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
8119         gl_LOCK_BODY.
8120         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
8121         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
8122         gl_LOCK_EARLY_BODY.
8123         (gl_LOCK): Require gl_LOCK_BODY.
8124
8125 2006-10-04  Bruno Haible  <bruno@clisp.org>
8126
8127         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
8128         (gl_oset_search_atleast): New declaration.
8129         (struct gl_oset_implementation): Add field 'search_atleast'.
8130         (gl_oset_search_atleast): New inline function.
8131         * lib/gl_oset.c (gl_oset_search_atleast): New function.
8132         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
8133         (gl_array_oset_implementation): Update.
8134         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
8135         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
8136         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
8137
8138 2006-10-04  Bruno Haible  <bruno@clisp.org>
8139
8140         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
8141
8142 2006-10-03  Bruno Haible  <bruno@clisp.org>
8143
8144         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
8145         from gl_avltreehash_list_implementation.
8146
8147 2006-10-03  Bruno Haible  <bruno@clisp.org>
8148
8149         * lib/gl_oset.c (gl_oset_add): Fix return type.
8150
8151 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
8152
8153         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
8154
8155 2006-10-02  Eric Blake  <ebb9@byu.net>
8156
8157         * modules/strnlen (Depends-on): Add extensions.
8158
8159 2006-10-02  Eric Blake  <ebb9@byu.net>
8160
8161         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
8162         definition in 2.60+.
8163
8164 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
8165
8166         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
8167         checks.
8168
8169 2006-10-02  Bruno Haible  <bruno@clisp.org>
8170
8171         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
8172         to the AUTOMAKE_OPTIONS.
8173         Reported by Jim Meyering.
8174
8175 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
8176
8177         Work around bug in Solaris 10 /proc file system:
8178         /proc/self/fd/NNN/.. isn't the parent directory of
8179         the directory whose file descriptor is NNN.  This needs to
8180         be worked around at run time, not compile time, since a
8181         program might be built on Solaris 8, where things work, and
8182         run on Solaris 10.
8183         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
8184         to use the following interface instead:
8185         (OPENAT_BUFFER_SIZE): New macro.
8186         (openat_proc_name): New function.
8187         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
8188         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
8189         Likewise.
8190         * lib/openat-proc.c: New file.
8191         * modules/openat (Files): Add lib/openat-proc.c.
8192         (Depends-on): Add same-inode, stdbool.
8193         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
8194
8195 2006-09-29  Bruno Haible  <bruno@clisp.org>
8196
8197         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
8198         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
8199         argument. Set stdout_closed before testing for ferror, not after.
8200         (fwriteerror, fwriteerror_no_ebadf): New functions.
8201
8202 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8203
8204         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
8205
8206 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
8207
8208         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
8209         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
8210
8211 2006-09-28  Jim Meyering  <jim@meyering.net>
8212
8213         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
8214         Include <unistd.h>.
8215
8216 2006-09-28  Bruno Haible  <bruno@clisp.org>
8217
8218         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
8219         * modules/linkedhash-list (Depends-on): Likewise.
8220         * modules/rbtreehash-list (Depends-on): Likewise.
8221
8222 2006-09-28  Bruno Haible  <bruno@clisp.org>
8223
8224         * lib/strndup.h: Simplify the redefinition of strndup.
8225         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
8226         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
8227
8228 2006-09-28  Bruno Haible  <bruno@clisp.org>
8229
8230         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
8231         * lib/gl_linkedhash_list.c: Likewise.
8232         * lib/gl_rbtreehash_list.c: Likewise.
8233
8234 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
8235
8236         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
8237         getaddrinfo.
8238
8239         * lib/__fpending.h: Don't include <stdio_ext.h> unless
8240         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
8241         it causes <stdio_ext.h> to cause a compile-time error.
8242         Problem reported by Nelson H. F. Beebe.
8243         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
8244         of HAVE_DECL___PENDING.
8245
8246         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
8247         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
8248         declaration.
8249
8250 2006-09-27  Jim Meyering  <jim@meyering.net>
8251
8252         This file could end up with a definition for a function
8253         named __strndup, rather than rpl_strndup on a system with
8254         incomplete weak_alias support.
8255         * lib/strndup.c (strndup): Rename from __strndup.
8256         Remove #defines that used to map __strndup to strndup.
8257         Don't use K&R prototypes.
8258         Remove LIBC-related code, since this file is not sync'd with glibc.
8259         * lib/strndup.h: Revamp, accordingly.
8260         * m4/strndup.m4: Modernize.
8261
8262 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
8263
8264         * modules/savewd (Depends-on): Add 'raise'.
8265         * lib/savewd.c: Include <signal.h>, for 'raise'.
8266
8267 2006-09-26  Jim Meyering  <jim@meyering.net>
8268
8269         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
8270         when we detect Darwin 8.7.0's acl_get_file bug.
8271         Rearrange to perform the new (below) run-test while $LIBS
8272         contains any acl-related library.  Set USE_ACL at the end.
8273         (gl_ACL_GET_FILE): New function.
8274
8275 2006-09-26  Eric Blake  <ebb9@byu.net>
8276
8277         * lib/verror.c: Include <config.h> unconditionally.
8278
8279 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
8280
8281         * modules/clock-time (Maintainer): Add self.
8282         * modules/getlogin_r (Depends-on): Add extensions.
8283
8284 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8285
8286         * modules/clock-time: New module.
8287         * modules/nanosleep (Depends-on): Add clock-time.
8288         * modules/gethrxtime (Depends-on): Likewise.
8289         * modules/gettime (Depends-on): Likewise.
8290         * modules/settime (Depends-on): Likewise.
8291
8292         * modules/fts-lgpl: Depend on openat.
8293         * modules/mkancesdirs: Depend on savewd.
8294         * modules/mkdir-p: Likewise.
8295
8296 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8297
8298         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
8299
8300         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
8301         `gl_have_arbitrary_file_name_length_limit' to
8302         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
8303         actually works between configure runs.
8304
8305 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8306             Bruno Haible  <bruno@clisp.org>
8307
8308         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
8309
8310 2006-09-25  Jim Meyering  <jim@meyering.net>
8311
8312         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
8313         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
8314
8315 2006-09-25  Eric Blake  <ebb9@byu.net>
8316
8317         * gnulib-tool (func_import, func_create_testdir): Fix typos in
8318         exec's in 2006-09-18 patch when shuffling fds.
8319
8320 2006-09-25  Bruno Haible  <bruno@clisp.org>
8321
8322         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
8323         Reported by Jim Meyering.
8324
8325 2006-09-24  Jim Meyering  <jim@meyering.net>
8326
8327         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
8328         compare a pointer against a literal "0".  That caused failures with
8329         at least HP-UX's hpcc.
8330
8331 2006-09-22  Simon Josefsson  <jas@extundo.com>
8332
8333         * modules/gc-sha1:
8334         * modules/gc-md4:
8335         * modules/gc-hmac-sha1:
8336         * modules/gc-hmac-md5:
8337         * modules/gc-des:
8338         * modules/gc-arcfour: Distribute more files.
8339
8340 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8341
8342         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
8343         (gl_linked_iterator_from_to): Initialize struct completely.
8344         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
8345         (gl_tree_iterator_from_to): Likewise
8346         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
8347         * lib/gl_array_list.c [lint] (gl_array_iterator)
8348         (gl_array_iterator_from_to): Likewise.
8349         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
8350         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
8351         (gl_carray_iterator_from_to): Likewise.
8352
8353         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
8354         * lib/md4.c (md4_process_block): Remove unused variable.
8355         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
8356         parentheses for clarity.
8357
8358 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8359
8360         * modules/bison-i18n (Depends-on): Add gettext.
8361
8362 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8363
8364         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
8365         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
8366         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
8367         also add missing comma that caused broken test.
8368         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
8369         stdlib.h, for `abort'.
8370         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
8371         variables.
8372         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
8373         include unistd.h if present, for `rmdir'.
8374         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
8375         variables.
8376         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
8377         in the process include standard headers for prototypes.
8378         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
8379         gets declared on GNU/Linux.
8380         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
8381         unistd.h, for `rmdir'.
8382         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
8383
8384         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
8385         always true.
8386         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
8387
8388         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
8389
8390 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8391
8392         * gnulib-tool (func_version): Create output all at once.  This
8393         may help avoid triggering unnecessary SIGPIPEs, and at any
8394         rate it doesn't hurt.
8395
8396 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8397             Bruno Haible  <bruno@clisp.org>
8398
8399         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
8400         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
8401         * m4/signed.m4 (bh_C_SIGNED): Likewise.
8402
8403         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
8404         (gl_FUNC_VASPRINTF): Invoke it.
8405
8406 2006-09-22  Bruno Haible  <bruno@clisp.org>
8407
8408         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
8409         getloadavg.c as first argument.
8410
8411 2006-09-22  Bruno Haible  <bruno@clisp.org>
8412
8413         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
8414         at the beginning of the gl_INIT macro.
8415         * modules/getloadavg (configure.ac): Pass $gl_source_base to
8416         gl_GETLOADAVG.
8417
8418 2006-09-22  Bruno Haible  <bruno@clisp.org>
8419
8420         * gnulib-tool (func_create_megatestdir): Don't include the config-h
8421         module.
8422         Suggested by Ralf Wildenhues.
8423
8424 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
8425
8426         Import this patch from libc:
8427
8428         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
8429
8430         * lib/regex_internal.c (re_string_reconstruct): Handle
8431         offset < pstr->valid_raw_len && pstr->offsets_needed case.
8432         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
8433         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
8434         re_string_context_at.
8435
8436         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
8437         now requires it.
8438         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
8439         gl_REGEX now does it for us.
8440         (gl_REGEX): Add test taken from
8441         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
8442
8443         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
8444         Check that large offsets work.  Modernize Autoconf usages.
8445         Prefer "yes" to mean a good thing rather than a bad.
8446         Don't put "#define mkstemp" in config.h, as this might interfere
8447         with standard system headers that "#define mkstemp mkstemp64".
8448
8449         * modules/mkstemp (Depends-on): Add extensions, so that
8450         mkstemp is visible on some platforms.
8451         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
8452         (Include): Change to "mkstemp.h" from <stdlib.h>.
8453         (Files): Add mkstemp.h.
8454
8455         * lib/mkstemp.h: New file, since some standard headers
8456         #define mkstemp.
8457         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
8458         Include "mkstemp.h".
8459         Make the _LIBC code resemble glibc original more,
8460         e.g., use K&R style.
8461         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
8462         (mkstemp): Remove, since mkstemp.h does this for us.
8463         * lib/stdlib--.h: Include mkstemp.h.
8464
8465         Import this patch from libc:
8466
8467         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
8468
8469         * lib/tempname.c (__gen_tempname): Change attempts_min
8470         into a macro.  Use preprocessor to decide how to initialize
8471         attempts [Coverity CID 67].
8472
8473 2006-09-20  Bruno Haible  <bruno@clisp.org>
8474
8475         * lib/mkdtemp.c: Import from libc.
8476         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
8477                 * sysdeps/posix/tempname.c (__gen_tempname): Change
8478                 attempts_min into a macro.  Use preprocessor to decide how to
8479                 initialize attempts [Coverity CID 67].
8480         2001-11-27  Paul Eggert  <eggert@twinsun.com>
8481                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
8482                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
8483
8484 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8485
8486         * gnulib-tool (func_exit): New function, to allow to pass the
8487         exit status portably through the trap.  Use everywhere.
8488         (--help, --version): Signal a write error.
8489         (trap): catch SIGPIPE, for write errors.
8490         Exit at the end of the trap, with the correct exit status.
8491
8492 2006-09-19  Karl Berry  <karl@gnu.org>
8493
8494         * doc/gnulib.texi: note about the license texinfo files.
8495
8496 2006-09-19  Eric Blake  <ebb9@byu.net>
8497
8498         * gnulib-tool: Avoid space-tab.
8499
8500 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
8501
8502         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
8503         that prevented coreutils 6.1 from building.  Problem reported
8504         by Petter Reinholdtsen.
8505
8506 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
8507
8508         * gnulib-tool (avoidlist): Fix typo that broke options like
8509         --avoid=lock that are used by coreutils bootstrap.
8510
8511 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
8512
8513         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
8514         more systematically.
8515
8516 2006-09-18  Jim Meyering  <jim@meyering.net>
8517
8518         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
8519
8520 2006-09-18  Bruno Haible  <bruno@clisp.org>
8521
8522         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
8523
8524 2006-09-18  Bruno Haible  <bruno@clisp.org>
8525
8526         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
8527         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
8528         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
8529         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
8530         * m4/gettext.m4: Require autoconf >= 2.52.
8531         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
8532         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
8533         of gl_cv_header_inttypes_h.
8534
8535 2006-09-18  Bruno Haible  <bruno@clisp.org>
8536
8537         * lib/javaversion.c: Include configmake.h.
8538
8539 2006-09-18  Bruno Haible  <bruno@clisp.org>
8540
8541         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
8542         avoid that the while loops be executed in a subshell.
8543
8544 2006-09-18  Bruno Haible  <bruno@clisp.org>
8545
8546         * MODULES.html.sh (func_module): Break long lines.
8547         Suggested by Bruce Korb <bkorb@gnu.org>.
8548
8549 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8550
8551         Speed up by a factor of 1.12.
8552         * gnulib-tool (nl): New variable.
8553         (func_import): Rewrite include directive extraction to only read each
8554         directive once.
8555
8556 2006-09-17  Bruno Haible  <bruno@clisp.org>
8557
8558         * modules/javaversion (Makefile.am): Remove DEFS setting.
8559         (Depends-on): Add configmake, for PKGDATADIR definition.
8560
8561 2006-09-17  Bruno Haible  <bruno@clisp.org>
8562
8563         * gnulib-tool (func_create_testdir): Rewrite all files at once.
8564
8565 2006-09-17  Bruno Haible  <bruno@clisp.org>
8566
8567         * gnulib-tool (func_append): New function, stolen from libtool.m4.
8568         (func_modules_transitive_closure, func_modules_add_dummy,
8569         func_modules_to_filelist, func_import, func_create_testdir,
8570         func_create_megatestdir, ...): Use it wherever possible.
8571         Suggested by Ralf Wildenhues.
8572
8573 2006-09-16  Karl Berry  <karl@gnu.org>
8574
8575         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
8576         to avoid sectioning errors.
8577         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
8578         [ifinfo]: blank line after @center-ed titles.
8579         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
8580         Spell FSF address consistently with others.
8581         (These changes approved by rms.)
8582
8583 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8584
8585         Speed up by a factor of 1.61.
8586         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
8587         already checked module names again.
8588
8589 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8590
8591         Speed up by a factor of 1.13.
8592         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
8593         for new_files, and the input to func_add_or_update.
8594
8595 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8596
8597         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
8598         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
8599
8600 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
8601
8602         * modules/mkancesdirs (Depends-on): Add fcntl.
8603         * modules/savewd: New file.
8604         * MODULES.html.sh (File system functions): Add savewd.
8605
8606         * modules/configmake (Makefile.am): Add support for the
8607         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
8608
8609 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
8610
8611         * m4/savewd.m4: New file.
8612
8613 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
8614
8615         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
8616         (dirchownmod): New arg FD.  All callers changed.
8617         Use FD rather than opening the directory ourself, as opening is
8618         now the caller's responsibility.
8619         * lib/dirchownmod.h: Likewise.
8620         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
8621         hosts that require <sys/types.h> before <sys/stat.h>.  Include
8622         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
8623         (test_dir): Remove.
8624         (mkancesdirs): Return length of prefix of FILE that has already
8625         been made, or -2 if there is a child doing the work.  Redo
8626         algorithm so that it is O(N) rather than O(N**2).  Optimize away
8627         ".", and treat ".." specially since it might stray back into
8628         already-created areas.  Use a subprocess if necessary.  New arg
8629         WD; all users changed.  MAKE_DIR function should now return 1
8630         if it creates a directory that is not readable.  Return -2 if
8631         a child process is spun off.
8632         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
8633         Adjust signature to match code.
8634         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
8635         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
8636         all users changed.
8637         * lib/savewd.c, lib/savewd.h: New files.
8638
8639 2006-09-15  Jim Meyering  <jim@meyering.net>
8640
8641         * modules/rename-dest-slash: New module.
8642         * MODULES.html.sh (posix_compat): Add it here.
8643
8644         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
8645
8646 2006-09-15  Jim Meyering  <jim@meyering.net>
8647
8648         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
8649         file.
8650
8651         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
8652
8653 2006-09-15  Jim Meyering  <jim@meyering.net>
8654
8655         * lib/rename-dest-slash.c (has_trailing_slash): Use
8656         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
8657         (rpl_rename_dest_slash): Perform the cheaper trailing slash
8658         test before testing whether SRC is a directory.
8659         Suggestions from Bruno Haible.
8660
8661         Avoid a warning about an unused variable.
8662         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
8663         into the #ifdef block where it's used.
8664
8665         * lib/rename-dest-slash.c: New file.
8666
8667 2006-09-14  Bruno Haible  <bruno@clisp.org>
8668
8669         * lib/allocsa.c: Include <config.h> unconditionally.
8670         * lib/asnprintf.c: Likewise.
8671         * lib/asprintf.c: Likewise.
8672         * lib/c-strcasecmp.c: Likewise.
8673         * lib/c-strcasestr.c: Likewise.
8674         * lib/c-strncasecmp.c: Likewise.
8675         * lib/c-strstr.c: Likewise.
8676         * lib/classpath.c: Likewise.
8677         * lib/clean-temp.c: Likewise.
8678         * lib/concatpath.c: Likewise.
8679         * lib/copy-file.c: Likewise.
8680         * lib/csharpcomp.c: Likewise.
8681         * lib/csharpexec.c: Likewise.
8682         * lib/execute.c: Likewise.
8683         * lib/fatal-signal.c: Likewise.
8684         * lib/findprog.c: Likewise.
8685         * lib/fwriteerror.c: Likewise.
8686         * lib/gl_array_list.c: Likewise.
8687         * lib/gl_array_oset.c: Likewise.
8688         * lib/gl_avltree_list.c: Likewise.
8689         * lib/gl_avltree_oset.c: Likewise.
8690         * lib/gl_avltreehash_list.c: Likewise.
8691         * lib/gl_carray_list.c: Likewise.
8692         * lib/gl_linked_list.c: Likewise.
8693         * lib/gl_linkedhash_list.c: Likewise.
8694         * lib/gl_list.c: Likewise.
8695         * lib/gl_oset.c: Likewise.
8696         * lib/gl_rbtree_list.c: Likewise.
8697         * lib/gl_rbtree_oset.c: Likewise.
8698         * lib/gl_rbtreehash_list.c: Likewise.
8699         * lib/imaxabs.c: Likewise.
8700         * lib/imaxdiv.c: Likewise.
8701         * lib/javacomp.c: Likewise.
8702         * lib/javaexec.c: Likewise.
8703         * lib/javaversion.c: Likewise.
8704         * lib/linebreak.c: Likewise.
8705         * lib/localcharset.c: Likewise.
8706         * lib/lock.c: Likewise.
8707         * lib/mbchar.c: Likewise.
8708         * lib/mbswidth.c: Likewise.
8709         * lib/mkdtemp.c: Likewise.
8710         * lib/pipe.c: Likewise.
8711         * lib/printf-args.c: Likewise.
8712         * lib/printf-parse.c: Likewise.
8713         * lib/progname.c: Likewise.
8714         * lib/progreloc.c: Likewise.
8715         * lib/readlink.c: Likewise.
8716         * lib/sh-quote.c: Likewise.
8717         * lib/stpcpy.c: Likewise.
8718         * lib/stpncpy.c: Likewise.
8719         * lib/strcasecmp.c: Likewise.
8720         * lib/strcasestr.c: Likewise.
8721         * lib/strcspn.c: Likewise.
8722         * lib/striconv.c: Likewise.
8723         * lib/strncasecmp.c: Likewise.
8724         * lib/strnlen1.c: Likewise.
8725         * lib/strstr.c: Likewise.
8726         * lib/strtok_r.c: Likewise.
8727         * lib/tls.c: Likewise.
8728         * lib/tmpdir.c: Likewise.
8729         * lib/unicodeio.c: Likewise.
8730         * lib/unsetenv.c: Likewise.
8731         * lib/vasnprintf.c: Likewise.
8732         * lib/vasprintf.c: Likewise.
8733         * lib/wait-process.c: Likewise.
8734         * lib/xallocsa.c: Likewise.
8735         * lib/xsetenv.c: Likewise.
8736         * lib/xstriconv.c: Likewise.
8737
8738 2006-09-13  Simon Josefsson  <jas@extundo.com>
8739
8740         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
8741         that internally, suggested by Ralf Wildenhues
8742         <Ralf.Wildenhues@gmx.de>.
8743
8744 2006-09-13  Simon Josefsson  <jas@extundo.com>
8745
8746         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
8747         @LIBOBJS@.
8748         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
8749
8750 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
8751
8752         * lib/_fpending.c: Include <config.h> unconditionally, since we no
8753         longer worry about uses that don't define HAVE_CONFIG_H.
8754         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
8755         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
8756         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
8757         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
8758         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
8759         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
8760         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
8761         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
8762         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
8763         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
8764         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
8765         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
8766         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
8767         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
8768         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
8769         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
8770         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
8771         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
8772         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
8773         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
8774         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
8775         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
8776         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
8777         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
8778         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
8779         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
8780         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
8781         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
8782         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
8783         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
8784         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
8785         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
8786         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
8787         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
8788         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
8789         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
8790         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
8791         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
8792         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
8793         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
8794         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
8795         Likewise.
8796
8797 2006-09-13  Eric Blake  <ebb9@byu.net>
8798
8799         * lib/getopt.c: Fix typo in last commit.
8800
8801 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
8802
8803         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
8804         dgettext.
8805
8806 2006-09-12  Jim Meyering  <jim@meyering.net>
8807
8808         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
8809         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
8810         Reported by Nelson H. F. Beebe.
8811
8812 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
8813
8814         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
8815         program_invocation_name and program_invocation_short_name are
8816         initialized.
8817         * lib/argp-namefrob.h: Move declarations of program_invocation_name
8818         and program_invocation_short_name to argp.h, so they are visible
8819         to user programs.
8820         * lib/argp.h: Likewise
8821
8822 2006-09-10  Bruno Haible  <bruno@clisp.org>
8823
8824         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
8825         m4/inttypes_h.m4, m4/uintmax_t.m4.
8826
8827 2006-09-10  Bruno Haible  <bruno@clisp.org>
8828
8829         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
8830         gl_AC_TYPE_UINTMAX_T.
8831
8832 2006-09-10  Bruno Haible  <bruno@clisp.org>
8833
8834         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
8835
8836 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
8837
8838         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
8839         convention.  Text proposed by Bruno Haible.
8840         (struct argp_option): Document the use of N_() wrappers.
8841
8842         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
8843         '\v', and translate the two parts separately, instead of feeding
8844         the whole string to gettext.  This allows to exclude
8845         '\v' from the strings visible to the translator by writing doc
8846         strings as N_("..") "\v" N_("..").
8847
8848 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
8849
8850         * config/srclist.txt: Undo latest change; the bug was fixed.
8851
8852 2006-09-09  Bruno Haible  <bruno@clisp.org>
8853
8854         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
8855         assignments if building a library without libtool.
8856         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
8857         in func_emit_lib_Makefile_am.
8858         (func_import): When building a static library libfoo.a, arrange to
8859         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
8860         (func_create_testdir): Likewise.
8861         * modules/gc (configure.ac, Makefile.am): If building statically,
8862         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
8863         * modules/iconvme (configure.ac, Makefile.am): Likewise.
8864         * modules/striconv (configure.ac, Makefile.am): Likewise.
8865         Based on a suggestion by Ralf Wildenhues.
8866
8867 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
8868
8869         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
8870         Check for unistd.h too, since Autoconf doesn't assume POSIX.
8871         Also:
8872
8873         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
8874         Add year_2050_test to catch glibc bug 2821
8875         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
8876
8877         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
8878         Prefer #ifdef to #if.
8879
8880         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
8881         Return from 'main' instead of calling 'exit'.
8882
8883 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
8884
8885         * lib/mktime.c (guess_time_tm): Fix bug where mktime
8886         returned the maximum time_t value rather than (time_t) -1.
8887         Problem originally reported by William Bardwell
8888         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
8889
8890         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
8891         Moved to here ...
8892         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
8893         ... from here.
8894
8895 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
8896
8897         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
8898         2821 is fixed.
8899
8900 2006-09-08  Jim Meyering  <jim@meyering.net>
8901
8902         Don't make generated files read-only.  That would bother too many
8903         people.  However, do retain the ability to work when targets are
8904         read-only: remove the destination and temporary files before writing
8905         them (when generated via sed or echo), or by using the -f option for
8906         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
8907         * modules/alloca-opt, modules/argz, modules/arpa_inet:
8908         * modules/byteswap, modules/configmake, modules/fcntl:
8909         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
8910         * modules/localcharset, modules/netinet_in, modules/poll:
8911         * modules/stdbool, modules/stdint, modules/sys_select:
8912         * modules/sys_socket, modules/sys_stat, modules/sysexits:
8913
8914 2006-09-08  Jim Meyering  <jim@meyering.net>
8915
8916         Avoid new build failure on FreeBSD 6.0.
8917         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
8918         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
8919         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
8920
8921 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8922
8923         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
8924
8925 2006-09-07  Jim Meyering  <jim@meyering.net>
8926
8927         Fix global typo in last change: use chmod u-w, not chmod u-x.
8928         Spotted by Paul Eggert and Bruce Korb.
8929         * modules/alloca-opt, modules/argz, modules/arpa_inet:
8930         * modules/byteswap, modules/configmake, modules/fcntl:
8931         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
8932         * modules/localcharset, modules/netinet_in, modules/poll:
8933         * modules/stdbool, modules/stdint, modules/sys_select:
8934         * modules/sys_socket, modules/sys_stat, modules/sysexits:
8935
8936 2006-09-06  Jim Meyering  <jim@meyering.net>
8937
8938         Make generated files be read-only.
8939         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
8940         Ensure that each generated file is now read-only.
8941         * modules/argz: Likewise.
8942         * modules/arpa_inet: Likewise.
8943         * modules/byteswap: Likewise.
8944         * modules/configmake: Likewise.
8945         * modules/fcntl: Likewise.
8946         * modules/fnmatch: Likewise.
8947         * modules/getopt: Likewise.
8948         * modules/glob: Likewise.
8949         * modules/inttypes: Likewise.
8950         * modules/netinet_in: Likewise.
8951         * modules/poll: Likewise.
8952         * modules/stdbool: Likewise.
8953         * modules/stdint: Likewise.
8954         * modules/sys_select: Likewise.
8955         * modules/sys_socket: Likewise.
8956         * modules/sys_stat: Likewise.
8957         * modules/sysexits: Likewise.
8958         * modules/localcharset: Same as above, but continue using temporary
8959         file named "t-$@" (why different?) rather than the "$@-t" used
8960         everywhere else.
8961
8962         * modules/sysexits (Makefile.am): Replace literal occurrences
8963         of "sysexit.h" more readable, and more consistent, "$@".
8964
8965 2006-09-06  Bruno Haible  <bruno@clisp.org>
8966
8967         * modules/striconv: New file.
8968         * modules/xstriconv: New file.
8969         * MODULES.html.sh (Internationalization functions): Add striconv,
8970         xstriconv.
8971
8972 2006-09-06  Bruno Haible  <bruno@clisp.org>
8973
8974         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
8975         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
8976         not using libtool correctly.
8977
8978 2006-09-06  Bruno Haible  <bruno@clisp.org>
8979
8980         * lib/striconv.h: New file.
8981         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
8982         iconvstring.c.
8983         * lib/xstriconv.h: New file.
8984         * lib/xstriconv.c: New file.
8985
8986 2006-09-06  Bruno Haible  <bruno@clisp.org>
8987
8988         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
8989         lib_..._LDFLAGS.
8990
8991 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
8992
8993         * lib/argz_.h: Sync from Libtool.
8994
8995         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
8996                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
8997
8998         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
8999
9000 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
9001
9002         * modules/trim: New file.
9003
9004 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
9005
9006         * lib/trim.h: New file.
9007         * lib/trim.c: New file.
9008
9009 2006-09-05  Bruno Haible  <bruno@clisp.org>
9010
9011         * MODULES.html.sh (String handling): Add trim.
9012
9013 2006-09-04  Karl Berry  <karl@gnu.org>
9014
9015         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
9016         until next release.
9017
9018 2006-09-03  Bruno Haible  <bruno@clisp.org>
9019
9020         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
9021         correctly.
9022
9023 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
9024
9025         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
9026         not gl_GETLOADAVG.  Omit unneeded semicolons.
9027         Problems reported by Ralf Wildenhues in
9028         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
9029         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
9030         at the end, which is the usual gnulib style.
9031
9032         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
9033         of doing all the work ourselves.
9034         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
9035         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
9036
9037 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
9038
9039         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
9040         Problem reported by Ralf Wildenhues in
9041         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
9042
9043         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
9044         HAVE_STRUCT_STATFS_F_FSTYPENAME.
9045
9046 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
9047
9048         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
9049         yesterday's patch by changing test -n to test -z.
9050
9051 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
9052
9053         * modules/getloadavg (Files): Add m4/getloadavg.m4.
9054         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
9055         the former is now obsolescent.
9056
9057         * modules/chdir-long (Depends-on): Add fcntl.
9058
9059 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
9060
9061         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
9062         obsolescent, and programs should use gnulib instead.
9063         * m4/getloadavg.m4: New file, with contents taken from Autoconf
9064         but with prefixes changed.
9065
9066 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
9067
9068         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
9069         or stdbool.h, because they might not exist while configuring.
9070
9071         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
9072         Don't include unistd.h or limits.h; not needed, since chdir-long.h
9073         does that for us.
9074         (O_DIRECTORY): Remove.
9075
9076 2006-08-31  Eric Blake  <ebb9@byu.net>
9077
9078         * gnulib-tool: Don't let emacs change spaces to TAB.
9079
9080 2006-08-31  Bruno Haible  <bruno@clisp.org>
9081
9082         * gnulib-tool: When calling func_import more than once, do it in a
9083         subshell.
9084         Reported by Eric Blake <ebb9@byu.net>.
9085
9086 2006-08-31  Bruno Haible  <bruno@clisp.org>
9087
9088         * gnulib-tool (nl): Remove variable.
9089         (sed_transform_lib_file): Use more robust test for config-h module.
9090         (func_import): Fix typo in 2006-08-25 patch.
9091
9092 2006-08-31  Bruno Haible  <bruno@clisp.org>
9093
9094         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
9095         specified, augment Makefile.am variables instead of assigning them.
9096
9097 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
9098
9099         Work around a bug in both the Linux and SunOS 64-bit kernels:
9100         nanosleep mishandles sleeps for longer than 2**31 seconds.
9101         Problem reported by Frank v Waveren in
9102         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
9103         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
9104         Check for nanosleep bug.
9105         (LIB_NANOSLEEP): Append clock_gettime library if needed.
9106
9107 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
9108
9109         Work around a bug in both the Linux and SunOS 64-bit kernels:
9110         nanosleep mishandles sleeps for longer than 2**31 seconds.
9111         Problem reported by Frank v Waveren in
9112         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
9113         * lib/nanosleep.c (BILLION): New constant.
9114         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
9115         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
9116         implementation.
9117
9118 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
9119
9120         * modules/nanosleep (Depends-on): Add gettime.
9121
9122 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
9123         and Simon Josefsson  <jas@extundo.com>
9124         and Oskar Liljeblad  <oskar@osk.mine.nu>
9125
9126         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
9127         * gnulib-tool (func_import): New license type 'unmodifiable license
9128         text'.
9129         * modules/fdl: Use it.  Longer description.
9130         * module/gpl, module/lgpl: New files.
9131
9132 2006-08-30  Jim Meyering  <jim@meyering.net>
9133
9134         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
9135         shadowing the parameter.
9136
9137 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9138
9139         Sync from Libtool:
9140
9141         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9142
9143         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
9144         sharing with gnulib.  Report by Eric Blake.
9145
9146 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
9147
9148         * modules/isapipe: New file.
9149         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
9150
9151 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
9152
9153         * modules/configmake (Makefile.am): Add a comment, and omit
9154         the CONFIGMAKE_ prefix from generated macro names.  Suggested
9155         by Bruno Haible.
9156
9157 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
9158
9159         * m4/isapipe.m4: New file.
9160
9161 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
9162
9163         * lib/isapipe.c, lib/isapipe.h: New files.
9164
9165 2006-08-29  Jim Meyering  <jim@meyering.net>
9166
9167         * modules/configmake (Makefile.am): Make configmake.h depend on
9168         Makefile.  Otherwise, a stale configmake.h could hang around.
9169
9170 2006-08-29  Eric Blake  <ebb9@byu.net>
9171
9172         * lib/error.c (error_at_line, print_errno_message): Match libc, after
9173         resolution of upstream bug 3044.
9174
9175 2006-08-29  Bruno Haible  <bruno@clisp.org>
9176
9177         * modules/localcharset (Depends-on): Add configmake.
9178         (Makefile.am): Remove setting of LIBDIR through DEFS.
9179
9180 2006-08-29  Bruno Haible  <bruno@clisp.org>
9181
9182         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
9183         defined.
9184
9185 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
9186
9187         * modules/fcntl: New file.
9188         * modules/chdir-safer (Depends-on): Add fcntl.
9189         * modules/fts: Likewise.
9190         * modules/mkdir-p: Likewise.
9191
9192         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
9193         This undoes the most recent change, since we're now addressing the
9194         problem in a different way.
9195
9196         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
9197         into output, since the output might be called Makefile.am even
9198         if $makefile_name is something different.
9199         (func_import): Use $makefile_am rather than
9200         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
9201         empty.
9202
9203         * modules/inttypes (Files): Add m4/inttypes-h.m4.
9204
9205 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
9206
9207         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
9208         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
9209         recent change to stdint.m4, since we're now addressing the problem in a
9210         different way.
9211
9212 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
9213
9214         * m4/fcntl_h.m4: New file.
9215
9216 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
9217
9218         * lib/fcntl_.h: New file.
9219         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
9220         the fcntl module.
9221         * lib/dirchownmod.c: Likewise.
9222         * lib/fts.c: Likewise.
9223
9224         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
9225         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
9226         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
9227         just before including <inttypes.h>, to avoid circular inclusion.
9228
9229 2006-08-28  Jim Meyering  <jim@meyering.net>
9230
9231         * doc/visibility.texi: Actually read and correct the grammar of the
9232         sentence affected by yesterday's change.
9233
9234 2006-08-28  Eric Blake  <ebb9@byu.net>
9235
9236         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
9237         needs wrapper.
9238
9239 2006-08-28  Eric Blake  <ebb9@byu.net>
9240
9241         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
9242
9243 2006-08-28  Eric Blake  <ebb9@byu.net>
9244
9245         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
9246
9247 2006-08-28  Bruno Haible  <bruno@clisp.org>
9248
9249         * modules/c-strstr: New file, from GNU gettext.
9250         * MODULES.html.sh (String handling): Add c-strstr.
9251
9252 2006-08-28  Bruno Haible  <bruno@clisp.org>
9253
9254         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
9255         macros.
9256         Reported by Eric Blake.
9257
9258 2006-08-28  Bruno Haible  <bruno@clisp.org>
9259
9260         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
9261         (VASNPRINTF): Return a string of length > INT_MAX without failing.
9262         * lib/vasprintf.c: Include errno.h, limits.h.
9263         (EOVERFLOW): New fallback definition.
9264         (vasprintf): Test here whether the string length is > INT_MAX.
9265         * lib/vsnprintf.c: Include errno.h, limits.h.
9266         (EOVERFLOW): New fallback definition.
9267         (vsnprintf): Fix bug when generated string was too long for the buffer.
9268         Test here whether the string length is > INT_MAX.
9269
9270 2006-08-28  Bruno Haible  <bruno@clisp.org>
9271
9272         * lib/inttypes_.h (SCNX*): Remove definitions.
9273         Reported by Eric Blake.
9274
9275 2006-08-28  Bruno Haible  <bruno@clisp.org>
9276
9277         * lib/c-strstr.h: New file, from GNU gettext.
9278         * lib/c-strstr.c: New file, from GNU gettext.
9279
9280 2006-08-28  Bruno Haible  <bruno@clisp.org>
9281
9282         * gnulib-tool: Reorder some statements.
9283
9284 2006-08-28  Bruno Haible  <bruno@clisp.org>
9285
9286         * gnulib-tool: New option --makefile-name.
9287         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
9288         $makefile_name.
9289         (func_import): Write $makefile_name to the cache file, and read it from
9290         there unless explicitly specified. Use $makefile_name as file name
9291         instead of Makefile.am. Adjust the recommendations accordingly.
9292
9293 2006-08-28  Bruno Haible  <bruno@clisp.org>
9294
9295         * gnulib-tool (func_verify_module): Check against misapplying patch.
9296
9297 2006-08-28  Bruno Haible  <bruno@clisp.org>
9298
9299         * gnulib-tool (func_relativize, func_relconcat): New functions.
9300         Give an error if --local-dir is given with --update.
9301         Remove trailing slashes from $local_gnulib_dir.
9302         (func_import): Store the relativized $local_gnulib_dir in
9303         gnulib-cache.m4, and read it from there if not specified explicitly.
9304
9305 2006-08-28  Bruno Haible  <bruno@clisp.org>
9306
9307         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
9308         is the current directory. Respect also $local_gnulib_dir.
9309
9310 2006-08-28  Bruno Haible  <bruno@clisp.org>
9311             Simon Josefsson  <jas@extundo.com>
9312
9313         BeOS portability.
9314         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
9315
9316 2006-08-27  Jim Meyering  <jim@meyering.net>
9317
9318         * doc/visibility.texi: Remove duplicate word: "pointer".
9319
9320 2006-08-26  Bruno Haible  <bruno@clisp.org>
9321
9322         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
9323         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
9324         (Makefile.am): Create inttypes.h from inttypes_.h.
9325         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
9326
9327         * modules/imaxabs: New file.
9328
9329         * modules/imaxdiv: New file.
9330
9331 2006-08-26  Bruno Haible  <bruno@clisp.org>
9332
9333         * m4/inttypes.m4: New file.
9334         * m4/_inttypes_h.m4: Remove file.
9335         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
9336         PRI_MACROS_BROKEN.
9337         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
9338
9339         * m4/imaxabs.m4: New file.
9340
9341         * m4/imaxdiv.m4: New file.
9342
9343 2006-08-26  Bruno Haible  <bruno@clisp.org>
9344
9345         * lib/inttypes_.h: New file.
9346         * lib/inttypes.h: Remove file.
9347         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
9348
9349         * lib/imaxabs.c: New file.
9350
9351         * lib/imaxdiv.c: New file.
9352
9353 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
9354
9355         New config-h module, so that "make" output needn't be cluttered
9356         by -DHAVE_CONFIG_H.
9357         * MODULES.html.sh (Support for building libraries and executables):
9358         Add config-h.
9359         * modules/config-h: New file.
9360         * gnulib-tool (nl, sed_transform_lib_file): New vars.
9361         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
9362         the config-h module is used.
9363
9364         New configmake module, so that "make" output needn't be cluttered
9365         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
9366         * MODULES.html.sh (Support for building libraries and executables):
9367         Add configmake.
9368         * modules/configmake: New file.
9369
9370 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
9371
9372         * m4/config-h.m4: New file.
9373
9374 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
9375
9376         * config/srclist.txt: Add elisp-comp.
9377
9378 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
9379
9380         * MODULES.html.sh (Support for building libraries and executables):
9381         Add elisp-comp.
9382         * build-aux/elisp-comp: New file.
9383         * modules/elisp-comp: New file.
9384
9385 2006-08-24  Bruno Haible  <bruno@clisp.org>
9386
9387         * gnulib-tool (func_create_testdir): Use non-default values of
9388         sourcebase and m4base.
9389
9390 2006-08-24  Bruno Haible  <bruno@clisp.org>
9391
9392         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
9393         HTML structure.
9394
9395 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
9396
9397         * modules/openat (Depends-on): Add lchown.
9398
9399 2006-08-23  Bruno Haible  <bruno@clisp.org>
9400
9401         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
9402         of gl_LOCK_EARLY instead of gl_LOCK.
9403
9404 2006-08-23  Bruno Haible  <bruno@clisp.org>
9405
9406         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
9407         on OSF/1 to no.
9408         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
9409
9410 2006-08-23  Bruno Haible  <bruno@clisp.org>
9411
9412         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
9413         as unusable.
9414
9415         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
9416         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
9417         (gl_LOCK): New macro.
9418
9419 2006-08-22  Simon Josefsson  <jas@extundo.com>
9420
9421         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
9422         to md5 module.
9423
9424 2006-08-22  Simon Josefsson  <jas@extundo.com>
9425
9426         * MODULES.html.sh: Add "Support for maintaining and release
9427         projects".
9428
9429         * build-aux/gnupload: New file, from coreutils.
9430
9431 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
9432
9433         Avoid the need for AC_LIBSOURCES in m4 macros.
9434         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
9435         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
9436         * modules/check-version (EXTRA_DIST): Add check-version.h.
9437         * modules/crc (EXTRA_DIST): Add crc.h.
9438         * modules/des (EXTRA_DIST): Add des.h.
9439         * modules/gc (EXTRA_DIST): Add gc.h.
9440         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
9441         * modules/getline (EXTRA_DIST): Add getline.h.
9442         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
9443         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
9444         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
9445         * modules/md2 (EXTRA_DIST): Add md2.h.
9446         * modules/md4 (EXTRA_DIST): Add md4.h.
9447         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
9448         * modules/read-file (EXTRA_DIST): Add read-file.h.
9449         * modules/readline (EXTRA_DIST): Add readline.h.
9450         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
9451         rijndael-api-fst.h.
9452
9453 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
9454
9455         * m4/rijndael.m4 (gl_ARCFOUR):
9456         * m4/arctwo.m4 (gl_ARCTWO):
9457         * m4/check-version.m4 (gl_CHECK_VERSION):
9458         * m4/crc.m4 (gl_CRC):
9459         * m4/des.m4 (gl_DES):
9460         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
9461         * m4/gc.m4 (gl_GC):
9462         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
9463         * m4/getline.m4 (gl_FUNC_GETLINE):
9464         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
9465         * m4/hmac-md5.m4 (gl_HMAC_MD5):
9466         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
9467         * m4/md2.m4 (gl_MD2):
9468         * m4/md4.m4 (gl_MD4):
9469         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
9470         * m4/read-file.m4 (gl_FUNC_READ_FILE):
9471         * m4/readline.m4 (gl_FUNC_READLINE):
9472         * m4/rijndael.m4 (gl_RIJNDAEL):
9473         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
9474         to get the necessary .h files and whatnot.
9475
9476 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
9477
9478         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
9479         gnulib rather than the other way around.
9480         * config/srclistvars.sh (COREUTILS): Remove.
9481
9482 2006-08-22  Jim Meyering  <jim@meyering.net>
9483
9484         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
9485
9486         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
9487
9488 2006-08-22  Eric Blake  <ebb9@byu.net>
9489
9490         * modules/regexprops-generic: New file.
9491         * MODULES.html.sh (Support for building documentation): List it.
9492
9493 2006-08-22  Eric Blake  <ebb9@byu.net>
9494
9495         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
9496         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
9497         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
9498         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
9499
9500 2006-08-22  Bruno Haible  <bruno@clisp.org>
9501
9502         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
9503         and lib_LTLIBRARIES like the other lib_* variables.
9504
9505 2006-08-22  Bruno Haible  <bruno@clisp.org>
9506
9507         * build-aux/x-to-1.in: New file, from GNU gettext.
9508
9509 2006-08-22  Bruno Haible  <bruno@clisp.org>
9510
9511         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
9512         <utmpx.h> exists.
9513
9514 2006-08-22  Bruno Haible  <bruno@clisp.org>
9515
9516         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
9517         <utmpx.h> exists.
9518
9519 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
9520
9521         BeOS portability.
9522         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
9523         exist.
9524         Problem reported by Bruno Haible.
9525
9526 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
9527
9528         Avoid the need for AC_LIBSOURCES in m4 macros.
9529         * modules/acl (EXTRA_DIST): Add acl.h.
9530         * modules/argmatch (Files): Add m4/argmatch.m4.
9531         (configure.ac): Add gl_ARGMATCH.
9532         (EXTRA_DIST): Renamed from lib_SOURCES, for
9533         consistency with the other modules.  Remove argmatch.c.
9534         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
9535         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
9536         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
9537         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
9538         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
9539         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
9540         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
9541         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
9542         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
9543         * modules/closeout (EXTRA_DIST): Add closeout.h.
9544         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
9545         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
9546         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
9547         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
9548         dirname.h; remove basename.c and stripslash.c.
9549         * modules/exclude (EXTRA_DIST): Add exclude.h.
9550         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
9551         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
9552         * modules/file-type (EXTRA_DIST): Add file-type.h.
9553         * modules/filemode (EXTRA_DIST): Add filemode.h.
9554         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
9555         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
9556         * modules/fpending (EXTRA_DIST): Add __fpending.h.
9557         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
9558         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
9559         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
9560         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
9561         * modules/getdate (EXTRA_DIST): Add getdate.c.
9562         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
9563         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
9564         * modules/getpass (EXTRA_DIST): Add getpass.h.
9565         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
9566         * modules/group-member (EXTRA_DIST): Add group-member.h.
9567         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
9568         * modules/hash (EXTRA_DIST): Add hash.h.
9569         * modules/human (EXTRA_DIST): Add human.h.
9570         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
9571         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
9572         * modules/lchown (EXTRA_DIST): Add lchown.h.
9573         * modules/long-options (EXTRA_DIST): Add long-options.h.
9574         * modules/lstat (EXTRA_DIST): Add lstat.h.
9575         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
9576         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
9577         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
9578         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
9579         * modules/memxor (EXTRA_DIST): Add memxor.h.
9580         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
9581         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
9582         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
9583         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
9584         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
9585         * modules/physmem (EXTRA_DIST): Add physmem.h.
9586         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
9587         * modules/posixver (EXTRA_DIST): Add posixver.h.
9588         * modules/quote (EXTRA_DIST): Add quote.h.
9589         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
9590         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
9591         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
9592         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
9593         regex_internal.h regexec.c.
9594         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
9595         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
9596         * modules/same (EXTRA_DIST): Add same.h.
9597         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
9598         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
9599         * modules/savedir (EXTRA_DIST): Add savedir.h.
9600         * modules/sha1 (EXTRA_DIST): Add sha1.h.
9601         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
9602         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
9603         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
9604         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
9605         * modules/strdup (EXTRA_DIST): Add strdup.h.
9606         * modules/strftime (EXTRA_DIST): Add strftime.h.
9607         * modules/strndup (EXTRA_DIST): Add strndup.h.
9608         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
9609         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
9610         * modules/time_r (EXTRA_DIST): Add time_r.h.
9611         * modules/timespec (EXTRA_DIST): Add timespec.h.
9612         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
9613         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
9614         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
9615         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
9616         * modules/userspec (EXTRA_DIST): Add userspec.h.
9617         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
9618         * modules/utimens (EXTRA_DIST): Add utimens.h.
9619         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
9620         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
9621         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
9622         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
9623         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
9624         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
9625         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
9626         * modules/yesno (EXTRA_DIST): Add yesno.h.
9627
9628 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
9629
9630         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
9631
9632         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
9633         * m4/dev-ino.m4, same-inode.m4: Remove.
9634
9635         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
9636         * m4/acl.m4 (AC_FUNC_ACL):
9637         * m4/backupfile.m4 (gl_BACKUPFILE):
9638         * m4/c-strtod.m4 (gl_C99_STRTOLD):
9639         * m4/canon-host.m4 (gl_CANON_HOST):
9640         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
9641         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
9642         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
9643         * m4/cloexec.m4 (gl_CLOEXEC):
9644         * m4/close-stream.m4 (gl_CLOSE_STREAM):
9645         * m4/closeout.m4 (gl_CLOSEOUT):
9646         * m4/dirfd.m4 (gl_FUNC_DIRFD):
9647         * m4/dirname.m4 (gl_DIRNAME):
9648         * m4/exclude.m4 (gl_EXCLUDE):
9649         * m4/exitfail.m4 (gl_EXITFAIL):
9650         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
9651         * m4/file-type.m4 (gl_FILE_TYPE):
9652         * m4/filemode.m4 (gl_FILEMODE):
9653         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
9654         * m4/fpending.m4 (gl_FUNC_FPENDING):
9655         * m4/fprintftime.m4 (gl_FPRINTFTIME):
9656         * m4/fts.m4 (gl_FUNC_FTS):
9657         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
9658         * m4/getdate.m4 (gl_GETDATE):
9659         * m4/gethrxtime.m4 (gl_GETHRXTIME):
9660         * m4/getpagesize.m4 (gl_GETPAGESIZE):
9661         * m4/getpass.m4 (gl_FUNC_GETPASS):
9662         * m4/gettime.m4 (gl_GETTIME):
9663         * m4/getugroups.m4 (gl_GETUGROUPS):
9664         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
9665         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
9666         * m4/hard-locale.m4 (gl_HARD_LOCALE):
9667         * m4/hash.m4 (gl_HASH):
9668         * m4/idcache.m4 (gl_IDCACHE):
9669         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
9670         * m4/lchown.m4 (gl_FUNC_LCHOWN):
9671         * m4/long-options.m4 (gl_LONG_OPTIONS):
9672         * m4/lstat.m4 (gl_FUNC_LSTAT):
9673         * m4/md5.m4 (gl_MD5):
9674         * m4/memcasecmp.m4 (gl_MEMCASECMP):
9675         * m4/memcoll.m4 (gl_MEMCOLL):
9676         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
9677         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
9678         * m4/memxor.m4 (gl_MEMXOR):
9679         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
9680         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
9681         * m4/modechange.m4 (gl_MODECHANGE):
9682         * m4/mountlist.m4 (gl_MOUNTLIST):
9683         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
9684         * m4/openat.m4 (gl_FUNC_OPENAT):
9685         * m4/pathmax.m4 (gl_PATHMAX):
9686         * m4/physmem.m4 (gl_PHYSMEM):
9687         * m4/posixtm.m4 (gl_POSIXTM):
9688         * m4/posixver.m4 (gl_POSIXVER):
9689         * m4/quote.m4 (gl_QUOTE):
9690         * m4/quotearg.m4 (gl_QUOTEARG):
9691         * m4/readtokens.m4 (gl_READTOKENS):
9692         * m4/readutmp.m4 (gl_READUTMP):
9693         * m4/regex.m4 (gl_REGEX):
9694         * m4/safe-read.m4 (gl_SAFE_READ):
9695         * m4/safe-write.m4 (gl_SAFE_WRITE):
9696         * m4/same.m4 (gl_SAME):
9697         * m4/save-cwd.m4 (gl_SAVE_CWD):
9698         * m4/savedir.m4 (gl_SAVEDIR):
9699         * m4/settime.m4 (gl_SETTIME):
9700         * m4/sha1.m4 (gl_SHA1):
9701         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
9702         * m4/stat-macros.m4 (gl_STAT_MACROS):
9703         * m4/stat-time.m4 (gl_STAT_TIME):
9704         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
9705         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
9706         * m4/strdup.m4 (gl_FUNC_STRDUP):
9707         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
9708         * m4/strndup.m4 (gl_FUNC_STRNDUP):
9709         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
9710         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
9711         * m4/time_r.m4 (gl_TIME_R):
9712         * m4/timespec.m4 (gl_TIMESPEC):
9713         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
9714         * m4/unlinkdir.m4 (gl_UNLINKDIR):
9715         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
9716         * m4/userspec.m4 (gl_USERSPEC):
9717         * m4/utimecmp.m4 (gl_UTIMECMP):
9718         * m4/utimens.m4 (gl_UTIMENS):
9719         * m4/xalloc.m4 (gl_XALLOC):
9720         * m4/xgetcwd.m4 (gl_XGETCWD):
9721         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
9722         * m4/xreadlink.m4 (gl_XREADLINK):
9723         * m4/xstrtod.m4 (gl_XSTRTOD):
9724         * m4/yesno.m4 (gl_YESNO):
9725         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
9726         to get the necessary .h files and whatnot.
9727
9728 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
9729             Bruno Haible  <bruno@clisp.org>
9730
9731         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
9732         /bin/sh understanding of '!' conditional negation.
9733
9734 2006-08-21  Jim Meyering  <jim@meyering.net>
9735
9736         * modules/openat (Depends-on): Really alphabetize.
9737
9738         * modules/acl (Depends-on): Add error and quote.
9739
9740         * check-module (find_included_lib_files): Add at-func.c to the
9741         ok-to-include-more-than-once white list.
9742
9743         * modules/openat (Depends-on): Add lstat.  Alphabetize.
9744
9745 2006-08-21  Bruno Haible  <bruno@clisp.org>
9746
9747         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
9748         Emit a pkgdata_DATA variable only if some snippets add contents to it.
9749         Reported by Martin Lambers <marlam@marlam.de>.
9750
9751 2006-08-21  Bruno Haible  <bruno@clisp.org>
9752
9753         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
9754         specify an installation location, don't emit a noinst_LIBRARIES or
9755         noinst_LTLIBRARIES assignment.
9756
9757 2006-08-21  Bruno Haible  <bruno@clisp.org>
9758
9759         BeOS portability.
9760         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
9761         BeOS has mbrtowc() but no <wctype.h>.
9762
9763 2006-08-21  Bruno Haible  <bruno@clisp.org>
9764
9765         BeOS portability.
9766         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
9767         exist.
9768
9769 2006-08-21  Bruno Haible  <bruno@clisp.org>
9770
9771         BeOS portability.
9772         * lib/mbchar.h: Include <wctype.h> only if it exists.
9773
9774 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
9775
9776         Remove files that are no longer needed by their respective modules.
9777         * m4/obstack.m4: Remove.
9778         * m4/strerror_r.m4: Remove.
9779         * m4/uint32_t.m4: Remove.
9780         * m4/uintptr_t.m4: Remove.
9781         * m4/ullong_max.m4: Remove.
9782         * m4/xstrtoimax.m4: Remove.
9783         * m4/xstrtoumax.m4: Remove.
9784
9785         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
9786         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
9787         dependencies now capture this.
9788
9789         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
9790         Do not use AC_LIBSOURCES, since gnulib modules now do this.
9791         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
9792         * m4/human.m4 (gl_HUMAN): Likewise.
9793         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
9794         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
9795
9796         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
9797
9798         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
9799         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
9800         stdint.
9801         * m4/human.m4 (gl_HUMAN): Likewise.
9802         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
9803         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
9804         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
9805         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
9806         * m4/xstrtol (gl_XSTRTOL): Likewise.
9807
9808         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
9809         AC_TYPE_LONG_LONG_INT.
9810         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
9811         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
9812         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
9813         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
9814
9815         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
9816         on stdbool.
9817
9818         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
9819         (gl_PREREQ_XSTRTOUL): Remove.
9820
9821         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
9822
9823         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
9824         mode.
9825
9826 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
9827
9828         Add and change modules to make it easier for coreutils to use
9829         gnulib-tool.
9830         * modules/backupfile (Files): Remove m4/d-ino.m4.
9831         (Depends-on): Add d-ino.
9832         * modules/cycle-check (Depends-on): Add stdint.
9833         (lib_SOURCES): Add cycle-check.h.
9834         * modules/d-ino: New module.
9835         * modules/d-type: New module.
9836         * modules/error (Files): Remove m4/strerror_r.m4.
9837         * modules/filemode (Files): Add m4/st_dm_mode.m4.
9838         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
9839         m4/inttypes_h.m4, m4/uintmax_t.m4.
9840         (Depends-on): Add stdint.
9841         (lib_SOURCES): Add fsusage.h.
9842         * modules/getcwd (Files): Remove d-ino.m4.
9843         (Depends-on): Add d-ino.
9844         * modules/getndelim2 (Depends-on): Add stdint.
9845         * modules/glob (Files): Remove m4/d-type.m4.
9846         (Depends-on): Add d-type.
9847         * modules/host-os: New module.
9848         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
9849         m4/inttypes_h.m4, m4/uintmax_t.m4.
9850         * Depends-on: Add stdint.
9851         (lib_SOURCES): Add human.h.
9852         * modules/inttostr (Files): Remove m4/intmax_t.m4,
9853         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
9854         m4/uintmax_t.m4, m4/ulonglong.m4.
9855         (Depends-on): Add stdint.
9856         (EXTRA_DIST): Add inttostr.h.
9857         * modules/lchmod: New module.
9858         * modules/link-follow: New module.
9859         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
9860         (Depends-on): Add lchmod.
9861         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
9862         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
9863         (Depends-on): Add stdint.
9864         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
9865         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
9866         (Depends-on): Add stdint.
9867         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
9868         * modules/perl: New module.
9869         * modules/regex (Depends-on): Add stdint.
9870         * modules/rmdir-errno: New module.
9871         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
9872         m4/intmax_t.m4.
9873         (Depends-on): Add stdint.
9874         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
9875         m4/uintmax_t.m4.
9876         (Depends-on): Add stdint.
9877         * modules/unlink-busy: New module.
9878         * modules/utimecmp (Depends-on): Add stdint.
9879         * modules/uptime: New module.
9880         * modules/winsz-ioctl: New module.
9881         * modules/winsz-termios: New module.
9882         * modules/xnanosleep (Depends-on): Add nanosleep.
9883         * modules/ullong_max: Remove.
9884         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
9885         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
9886         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
9887         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
9888         (Depends-on): Add inttypes.
9889         (lib_SOURCES): Add xstrtol.h.
9890         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
9891         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
9892         * MODULES.html.sh: Move 'assert' into the assert section.
9893         Move 'dummy' into the linking section.
9894         Remove ullong_max.
9895         Add section for compatibility checks for POSIX:2001 functions,
9896         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
9897         winsz-ioctl, and winsz-termios into it.
9898         Add lchmod.
9899         Add top-level Misc section and put host-os, perl, and uptime
9900         into it.
9901
9902 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
9903
9904         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
9905         now assume the stdint module.  Do not include inttypes.h.
9906         * lib/fsusage.h: Likewise.
9907         * lib/getndelim2.c: Likewise.
9908         * lib/human.h: Likewise.
9909         * lib/inttostr.h: Likewise.
9910         * lib/obstack.c: Likewise.
9911         * lib/regex_internal.h: Likewise.
9912         * lib/tempname.c: Likewise.
9913         * lib/utimecmp.c: Likewise.
9914         * lib/xstrtol.h: Likewise.
9915
9916         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
9917
9918         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
9919         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
9920         * lib/xtime.h: Likewise.
9921
9922 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
9923
9924         * modules/openat (Files): Add lib/fchmodat.c.
9925         Fixes problem reported by Jay Youngman.
9926
9927 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
9928
9929         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
9930         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
9931
9932 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
9933             Bruno Haible  <bruno@clisp.org>
9934
9935         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
9936         and is a script that invokes bison. Tighten the code. Add comments.
9937
9938 2006-08-18  Jim Meyering  <jim@meyering.net>
9939
9940         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
9941         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
9942         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
9943         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
9944
9945 2006-08-18  Bruno Haible  <bruno@clisp.org>
9946
9947         * modules/bison-i18n: New file.
9948         * MODULES.html.sh (Internationalization functions): Add it.
9949
9950 2006-08-18  Bruno Haible  <bruno@clisp.org>
9951
9952         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
9953         sys/statvfs.h. When getmntinfo was found, check its declaration and
9954         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
9955
9956 2006-08-18  Bruno Haible  <bruno@clisp.org>
9957
9958         * m4/bison-i18n.m4: New file, from bison.
9959
9960 2006-08-18  Bruno Haible  <bruno@clisp.org>
9961
9962         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
9963         (ME_DUMMY): Treat "kernfs" as a dummy.
9964         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
9965
9966 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
9967
9968         Update from coreutils.
9969
9970         2006-08-15  Jim Meyering  <jim@meyering.net>
9971
9972         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
9973
9974         2006-01-17  Jim Meyering  <jim@meyering.net>
9975
9976         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
9977
9978         2006-01-11  Jim Meyering  <jim@meyering.net>
9979
9980         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
9981         Check for the lchmod function.
9982
9983 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
9984
9985         Update from coreutils.
9986
9987         * lib/__fpending.h: Add copyright notice.
9988         * lib/fprintftime.h: Likewise.
9989         * lib/savedir.c: Use (C) in copyright notice.
9990         * lib/savedir.h: Likewise.
9991
9992         2006-08-15  Jim Meyering  <jim@meyering.net>
9993
9994         * lib/at-func.c: New file, with the logic of all emulated at-functions.
9995         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
9996         in support of the EXPECTED_ERRNO macro.
9997         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
9998         definitions.  Instead, define the appropriate symbols and include
9999         "at-func.c".
10000         * lib/mkdirat.c (mkdirat): Likewise.
10001         * lib/fchmodat.c (fchmodat): Likewise.
10002         (ENOSYS): Remove definition.
10003         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
10004         it.  Don't include "unistd--.h" -- it wasn't ever used.
10005
10006         2006-01-17  Jim Meyering  <jim@meyering.net>
10007
10008         Rewrite fts.c not to change the current working directory,
10009         by using openat, fstatat, fdopendir, etc..
10010
10011         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
10012         (HAVE_OPENAT_SUPPORT): Define.
10013         [_LIBC] (fchdir): Don't undef or define; no longer used.
10014         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
10015         Now, this `function' always succeeds, and consumes its file descriptor
10016         parameter -- so callers must not close such FDs.  Update callers.
10017         (diropen_fd, opendirat, cwd_advance_fd): New functions.
10018         (diropen): Add parameter, SP.  Adjust all callers.
10019         Implement using diropen_fd, rather than open.
10020         (fts_open): Initialize new member, fts_cwd_fd.
10021         Remove fts_rft-setting code.
10022         (fts_close): Close fts_cwd_fd, if necessary.
10023         (__opendir2): Define in terms of opendir or opendirat,
10024         depending on whether the FST_NOCHDIR flag is set.
10025         (fts_build): Since fts_safe_changedir consumes its FD, and since
10026         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
10027         and close the dup'd file descriptor upon failure.
10028         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
10029         (fts_safe_changedir): Tweak semantics to reflect that this function
10030         now calls cwd_advance_fd and hence consumes its FD argument.
10031         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
10032         [struct FTS] (fts_rft): Remove now-unused member.
10033         [struct FTS] (fts_cycle.state): Improve comment.
10034
10035         * lib/openat.c (openat_needs_fchdir): New function.
10036         * lib/openat.h (openat_needs_fchdir): Declare it.
10037
10038 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
10039
10040         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
10041         Problem and fix reported by Pádraig Brady in
10042         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
10043
10044 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
10045
10046         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
10047
10048 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
10049
10050         * lib/memcoll.c (memcoll): Optimize for the common case where the
10051         arguments are bytewise equal.
10052
10053 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
10054
10055         * doc/regexprops-generic.texi: Add a copyright notice.
10056
10057 2006-08-15  Bruno Haible  <bruno@clisp.org>
10058
10059         * modules/tmpdir (License): Change to LGPL.
10060
10061 2006-08-15  Bruno Haible  <bruno@clisp.org>
10062
10063         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
10064         module.
10065
10066 2006-08-14  Simon Josefsson  <jas@extundo.com>
10067
10068         * config/srclist.txt: Add gnupload.
10069
10070 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
10071
10072         Change copyright notice from LGPL 2 to GPL 2, since that's the
10073         standard form used in the gnulib repository.
10074         * tests/test-lock.c: Likewise.
10075         * tests/test-stdint.c: Likewise.
10076         * tests/test-tls.c: Likewise.
10077
10078         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
10079         prelude-manager.  User shorter URLs for GNU projects, without '?'.
10080         Add copyright notice.
10081
10082         * check-module: Add copyright notice.  Output a copyright
10083         notice if "--version" is specified.
10084         * modules/COPYING: New file.
10085         * tests/test-getaddrinfo.c: Add copyright notice.
10086         * tests/test-verify.c: Likewise.
10087
10088 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
10089
10090         Change copyright notice from LGPL 2 to GPL 2, since that's the
10091         standard form used in the gnulib repository.
10092         * lib/lock.c: LGPL -> GPL.
10093         * lib/lock.h: Likewise.
10094         * lib/strnlen1.c: Likewise.
10095         * lib/strnlen1.h: Likewise.
10096         * lib/tls.c: Likewise.
10097         * lib/tls.h: Likewise.
10098         * lib/tmpdir.c: Likewise.
10099
10100         * lib/TODO: Remove; this belongs only in coreutils.
10101
10102 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
10103
10104         Add copyright notices to long-enough files that lack them, since
10105         otherwise the files aren't clearly free.  Use the same notice that
10106         getdate.texi already uses.
10107         * doc/alloca-opt.texi: Add copyright notice.
10108         * doc/alloca.texi: Likewise.
10109         * doc/ctime.texi: Likewise.
10110         * doc/functions.texi: Likewise.
10111         * doc/gcd.texi: Likewise.
10112         * doc/gnulib-tool.texi: Likewise.
10113         * doc/inet_ntoa.texi: Likewise.
10114         * doc/visibility.texi: Likewise.
10115
10116         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
10117         * doc/quote.texi: Add copyright notice.
10118
10119         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
10120         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
10121         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
10122         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
10123         is now obsolete, and give a pointer to the Sun list.
10124         Add copyright notice.
10125
10126 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
10127
10128         * config/srclistvars.sh: Add copyright notice.
10129
10130 2006-08-14  Eric Blake  <ebb9@byu.net>
10131
10132         Import the following change from libc:
10133
10134         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
10135
10136         Upstream bug 2997.
10137         * lib/misc/error.c: Add space between program name and message if file
10138         name is missing.
10139
10140 2006-08-12  Karl Berry  <karl@gnu.org>
10141
10142         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
10143         remove, these originate in gnulib now.
10144
10145 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10146
10147         * doc/Makefile (standards.info standards.html standards.dvi):
10148         Also depend on make-stds.texi.
10149
10150 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
10151
10152         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
10153         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
10154
10155         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
10156         in wchar_t.  Problem reported by Eric Blake.
10157
10158         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
10159         LEN is smaller than SIZE.  Suggested by Bruno Haible.
10160         Also, help the compiler to keep LEN in a register.
10161
10162 2006-08-11  Eric Blake  <ebb9@byu.net>
10163
10164         * users.txt: Sort.  Add tar.
10165
10166 2006-08-11  Bruno Haible  <bruno@clisp.org>
10167
10168         * users.txt: New file.
10169
10170 2006-08-11  Bruno Haible  <bruno@clisp.org>
10171
10172         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
10173         before <wchar.h>. Needed for OSF/1 and BSD/OS.
10174
10175 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
10176
10177         * modules/snprintf (Depends-on): Remove minmax.
10178         (Maintainer): Add self and Bruno.
10179
10180 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
10181
10182         * lib/.cppi-disable: Add snprintf.h, socket_.h.
10183         * lib/snprintf.c: Include <errno.h> and <limits.h>.
10184         (EOVERFLOW): Define if the system does not.
10185         Do not include "minmax.h"; it wasn't used.
10186         (snprintf): Don't assume size_t promotes to an unsigned type.
10187         Fix bug when generated string was too long for the buffer: the
10188         buffer's contents are supposed to be the initial prefix of the
10189         output.  Don't assume vasnprintf returns EOVERFLOW if the size
10190         exceeds INT_MAX; do the check ourselves.
10191
10192         Import the following changes from libc:
10193
10194         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
10195
10196         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
10197         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
10198         set wc to the byte which couldn't be converted.
10199         (re_string_reconstruct): Don't clear valid_raw_len before calling
10200         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
10201         tip_context using re_string_context_at.
10202
10203         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
10204
10205         * lib/posix/regex.h: g++ still cannot handled [restrict].
10206
10207         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
10208
10209         * lib/posix/regex.h: Remove special handling for VMS.
10210
10211 2006-08-10  Jim Meyering  <jim@meyering.net>
10212
10213         * modules/same-inode: New module.
10214         * modules/dev-ino: New module.
10215         * modules/cycle-check: Depend on these modules, rather than simply
10216         including their .h files.
10217         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
10218         required via m4/cycle-check.m4.
10219         * modules/same: Depend on new same-inode module, rather than
10220         including same-inode.h.
10221         * modules/chdir-safer: New file.
10222
10223         * modules/chown (Depends-on): Add stat-macros.
10224
10225 2006-08-10  Jim Meyering  <jim@meyering.net>
10226
10227         * m4/cycle-check.m4: New file.
10228         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
10229         * m4/dev-ino.m4, m4/same-inode.m4: New files.
10230
10231 2006-08-10  Eric Blake  <ebb9@byu.net>
10232
10233         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
10234         in from original proposal.
10235
10236 2006-08-10  Eric Blake  <ebb9@byu.net>
10237         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
10238
10239         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
10240         namespace.
10241
10242 2006-08-10  Bruno Haible  <bruno@clisp.org>
10243
10244         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
10245         as well.
10246
10247 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
10248
10249         Sync from coreutils.
10250
10251         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
10252
10253         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
10254         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
10255
10256 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
10257
10258         * modules/restrict: Remove; no longer needed now that we assume
10259         Autoconf 2.59 or later.
10260         * MODULES.html.sh: Remove 'restrict'.
10261         * modules/argp (Depends-on): Remove 'restrict'.
10262         * modules/base64 (Depends-on): Likewise.
10263         * modules/gc (Depends-on): Likewise.
10264         * modules/getaddrinfo (Depends-on): Likewise.
10265         * modules/glob (Depends-on): Likewise.
10266         * modules/inet_ntop (Depends-on): Likewise.
10267         * modules/inet_pton (Depends-on): Likewise.
10268         * modules/memxor (Depends-on): Likewise.
10269         * modules/regex (Depends-on): Likewise.
10270         * modules/strtok_r (Depends-on): Likewise.
10271         * modules/time_r (Depends-on): Likewise.
10272
10273 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
10274
10275         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
10276         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
10277         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
10278         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
10279         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
10280         * m4/memxor.m4 (gl_MEMXOR): Likewise.
10281         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
10282         gl_C_RESTRICT replaced by AC_C_RESTRICT.
10283
10284         Merge from coreutils.
10285         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
10286         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
10287         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
10288         * m4/time_r.m4 (gl_TIME_R): Likewise.
10289
10290 2006-08-09  Karl Berry  <karl@gnu.org>
10291
10292         * config/srclist.txt: no more gettext-tools, per Bruno.
10293
10294 2006-08-08  Eric Blake  <ebb9@byu.net>
10295
10296         * modules/verror: New module.
10297         * MODULES.html.sh: Document it.
10298
10299 2006-08-08  Eric Blake  <ebb9@byu.net>
10300
10301         * lib/verror.h, lib/verror.c: New files.
10302
10303 2006-08-08  Eric Blake  <ebb9@byu.net>
10304
10305         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
10306         verror_at_line output complies with GNU Coding Standards even when
10307         file is NULL.
10308
10309 2006-08-07  Bruno Haible  <bruno@clisp.org>
10310
10311         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
10312         versions of AIX.
10313         Reported by Ralf Wildenhues.
10314
10315 2006-08-07  Bruno Haible  <bruno@clisp.org>
10316
10317         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
10318         in an AC_DEFUN. Needed so that the autoconf snippets can use
10319         AC_REQUIRE.
10320
10321 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10322
10323         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
10324         Initialize pkgdata_DATA.
10325         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
10326         overriding it.
10327
10328 2006-08-06  Eric Blake  <ebb9@byu.net>
10329
10330         * lib/error.h: Fold in some upstream changes from glibc.
10331         * lib/error.c: Likewise.
10332
10333 2006-08-04  Bruno Haible  <bruno@clisp.org>
10334
10335         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
10336         Make the mostlyclean-local rule depend on mostlyclean-generic.
10337         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
10338
10339 2006-07-31  Bruno Haible  <bruno@clisp.org>
10340
10341         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
10342         <stdlib.h>, <string.h>.
10343
10344 2006-07-30  Bruno Haible  <bruno@clisp.org>
10345
10346         * modules/readlink (License): Change to LGPL.
10347
10348 2006-07-30  Bruno Haible  <bruno@clisp.org>
10349
10350         * modules/javaversion (Makefile.am): Distribute javaversion.java and
10351         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
10352         set PKGDATADIR to point to it.
10353
10354 2006-07-30  Bruno Haible  <bruno@clisp.org>
10355
10356         * modules/csharpexec (configure.ac): Comment out macro invocation.
10357         * modules/javaexec (configure.ac): Likewise.
10358         * modules/javacomp-script (configure.ac): Likewise.
10359
10360         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
10361
10362 2006-07-30  Bruno Haible  <bruno@clisp.org>
10363
10364         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
10365         linked-list.
10366
10367 2006-07-30  Bruno Haible  <bruno@clisp.org>
10368
10369         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
10370
10371 2006-07-30  Bruno Haible  <bruno@clisp.org>
10372
10373         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
10374         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
10375         get removed.
10376
10377 2006-07-29  Bruno Haible  <bruno@clisp.org>
10378
10379         Make it possible for gnulib-tool to work with locally modified or
10380         augmented gnulib repositories.
10381         * gnulib-tool (func_usage): Document --local-dir option.
10382         (local_gnulib_dir): New variable.
10383         Handle --local-dir option.
10384         (func_lookup_file): New function.
10385         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
10386         (func_get_description, func_get_filelist, func_get_description,
10387         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
10388         func_get_automake_snippet, func_get_include_directive,
10389         func_get_license, func_get_maintainer): Use func_lookup_file.
10390         (func_import, func_create_testdir): Use func_lookup_file.
10391
10392 2006-07-29  Bruno Haible  <bruno@clisp.org>
10393
10394         * modules/setenv (Depends-on): Add unistd.
10395
10396 2006-07-29  Bruno Haible  <bruno@clisp.org>
10397
10398         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
10399
10400 2006-07-29  Bruno Haible  <bruno@clisp.org>
10401
10402         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
10403
10404 2006-07-29  Bruno Haible  <bruno@clisp.org>
10405
10406         * gnulib-tool (import, update): If there is no Makefile.am, look at
10407         aclocal.m4, instead of bailing out.
10408
10409 2006-07-29  Bruno Haible  <bruno@clisp.org>
10410
10411         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
10412         Categorize the options by when they are useful.
10413
10414 2006-07-29  Bruno Haible  <bruno@clisp.org>
10415
10416         * gnulib-tool (func_usage): Document option --no-libtool.
10417         Handle option --no-libtool.
10418         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
10419         for changed semantics of $libtool variable.
10420         (func_import): Likewise. If libtool is not used, show this through
10421         an option --no-libtool.
10422         (func_create_testdir): Update.
10423
10424 2006-07-29  Bruno Haible  <bruno@clisp.org>
10425
10426         * gnulib-tool (func_import): Extend error message about missing
10427         --doc-base.
10428
10429 2006-07-29  Bruno Haible  <bruno@clisp.org>
10430
10431         * gnulib-tool (func_import): Don't create the $docbase directory if
10432         there is no file to store there.
10433
10434 2006-07-29  Bruno Haible  <bruno@clisp.org>
10435
10436         * gnulib-tool (autoconf_minversion): If a --dir option is given and
10437         relevant, look for configure.ac there, not in the current directory.
10438         Also use a simple search for AC_PREREQ, not "autoconf --trace".
10439
10440 2006-07-29  Bruno Haible  <bruno@clisp.org>
10441
10442         * gnulib-tool (SORT): New variable.
10443         (func_usage): Undocument --assume-autoconf option.
10444         Remove --assume-autoconf option handling.
10445         (autoconf_minversion): Determine from the contents of configure.ac.
10446         (func_import): Remove autoconf_minversion handling.
10447         Suggested by Eric Blake.
10448
10449 2006-07-29  Bruno Haible  <bruno@clisp.org>
10450
10451         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
10452
10453 2006-07-29  Bruno Haible  <bruno@clisp.org>
10454
10455         * config/srclist.txt (*setenv.[ch]): Remove rules.
10456
10457 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
10458
10459         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
10460
10461 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
10462
10463         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
10464         arpa/inet.h.
10465
10466 2006-07-28  Simon Josefsson  <jas@extundo.com>
10467
10468         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
10469         * modules/inet_pton (Depends-on): Likewise.
10470
10471 2006-07-28  Simon Josefsson  <jas@extundo.com>
10472
10473         * m4/netinet_in_h.m4: New file.
10474
10475 2006-07-28  Simon Josefsson  <jas@extundo.com>
10476
10477         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
10478         #include's.
10479
10480 2006-07-28  Simon Josefsson  <jas@extundo.com>
10481
10482         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
10483         #include's.
10484
10485 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
10486
10487         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
10488         setgid on directories only if they set these bits.
10489         * lib/modechange.h: Remove obsolete comment about masks.
10490
10491 2006-07-28  Eric Blake  <ebb9@byu.net>
10492
10493         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
10494         macro expansion.
10495
10496 2006-07-28  Bruno Haible  <bruno@clisp.org>
10497
10498         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
10499
10500 2006-07-28  Bruno Haible  <bruno@clisp.org>
10501
10502         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
10503
10504 2006-07-28  Bruno Haible  <bruno@clisp.org>
10505
10506         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
10507         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
10508         Define fallbacks.
10509         Avoids link error on FreeBSD 4.x.
10510         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
10511
10512         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
10513         encoding.
10514         * lib/mbswidth.c (iswcntrl): Likewise.
10515
10516 2006-07-27  Bruno Haible  <bruno@clisp.org>
10517
10518         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
10519         test.
10520
10521 2006-07-27  Bruno Haible  <bruno@clisp.org>
10522
10523         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
10524         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
10525         defined.
10526
10527 2006-07-26  Eric Blake  <ebb9@byu.net>
10528
10529         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
10530
10531 2006-07-26  Eric Blake  <ebb9@byu.net>
10532
10533         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
10534         like mingw that lack mkstemp.
10535         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
10536         avoid compilation warning on mingw.
10537
10538 2006-07-26  Bruno Haible  <bruno@clisp.org>
10539
10540         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
10541         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
10542         INT_FAST*_MIN, INTPTR_MIN.
10543
10544 2006-07-25  Bruno Haible  <bruno@clisp.org>
10545
10546         * modules/version-etc (Depends-on): Add stdarg.
10547
10548 2006-07-25  Bruno Haible  <bruno@clisp.org>
10549
10550         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
10551         complex commands.
10552
10553 2006-07-25  Bruno Haible  <bruno@clisp.org>
10554
10555         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
10556         defined in <stdarg.h> or config.h.
10557
10558 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
10559
10560         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
10561         (gl_STDIO_SAFER): Remove.
10562
10563 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
10564
10565         * MODULES.html.sh (File stream based Input/Output):
10566         Add fopen-safer, tmpfile-safer; remove stdio-safer.
10567         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
10568         * modules/fopen-safer, modules/tmpfile-safer: New files.
10569         * modules/stdio-safer: Remove.
10570
10571 2006-07-24  Bruno Haible  <bruno@clisp.org>
10572
10573         * modules/tmpdir: New file.
10574         * MODULES.html.sh (File system functions): Add it.
10575
10576 2006-07-24  Bruno Haible  <bruno@clisp.org>
10577
10578         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
10579         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
10580
10581 2006-07-24  Bruno Haible  <bruno@clisp.org>
10582
10583         * modules/clean-temp: New file.
10584
10585 2006-07-24  Bruno Haible  <bruno@clisp.org>
10586
10587         * m4/tmpdir.m4: New file, from GNU gettext.
10588
10589 2006-07-24  Bruno Haible  <bruno@clisp.org>
10590
10591         * lib/tmpdir.h: New file, from GNU gettext.
10592         * lib/tmpdir.c: New file, from GNU gettext.
10593
10594 2006-07-24  Bruno Haible  <bruno@clisp.org>
10595
10596         * lib/clean-temp.h: New file, from GNU gettext.
10597         * lib/clean-temp.c: New file, from GNU gettext.
10598
10599 2006-07-23  Eric Blake  <ebb9@byu.net>
10600
10601         * modules/stdio-safer (Files): Add tmpfile-safer.c.
10602         (Depends-on): Add binary-io.
10603
10604 2006-07-23  Eric Blake  <ebb9@byu.net>
10605
10606         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
10607
10608 2006-07-23  Eric Blake  <ebb9@byu.net>
10609
10610         * lib/tmpfile-safer.c: New file.
10611         * lib/stdio-safer.h (fopen_safer): Add prototype.
10612         * lib/stdio--.h (tmpfile): Make safer.
10613
10614 2006-07-23  Bruno Haible  <bruno@clisp.org>
10615
10616         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
10617         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
10618         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
10619         gl_linked_remove_at): Use it.
10620
10621 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
10622         and Simon Josefsson <jas@extundo.com>
10623
10624         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
10625
10626         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
10627
10628 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
10629
10630         * modules/close-stream: New file.
10631         * modules/closeout (Description): Make it clear that it exits
10632         with a diagnostic on error.
10633         (Depends-on): Add close-stream.  Remove fpending, stdbool.
10634         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
10635
10636 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
10637
10638         * m4/close-stream.m4: New file.
10639
10640 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
10641
10642         * lib/close-stream.c, lib/close-stream.h: New files.
10643
10644 2006-07-22  Bruno Haible  <bruno@clisp.org>
10645
10646         Merge from GNU gettext 0.15.
10647
10648         2006-05-01  Bruno Haible  <bruno@clisp.org>
10649
10650                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
10651
10652         2006-07-22  Bruno Haible  <bruno@clisp.org>
10653
10654                 * modules/javaversion: New file.
10655                 * MODULES.html.sh (Java): Add javaversion.
10656
10657         2006-03-12  Bruno Haible  <bruno@clisp.org>
10658
10659                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
10660
10661         2005-12-04  Bruno Haible  <bruno@clisp.org>
10662
10663                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
10664                 (untested).
10665
10666         2006-06-21  Bruno Haible  <bruno@clisp.org>
10667
10668                 Avoid warnings from recent versions of mcs.
10669                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
10670                 -o, -L, -r any more. Use options documented since mcs-1.0
10671                 instead. Similarly for -g.
10672
10673         2005-12-04  Bruno Haible  <bruno@clisp.org>
10674
10675                 * build-aux/csharpcomp.sh.in: Suffix for resources is
10676                 .resources, not .resource.
10677
10678         2005-07-09  Bruno Haible  <bruno@clisp.org>
10679
10680                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
10681                 add a .dll suffix.
10682                 Reported by Mark Junker <mjscod@gmx.de>.
10683
10684         2006-07-22  Bruno Haible  <bruno@clisp.org>
10685
10686                 * modules/gettext: Upgrade to gettext-0.15.
10687                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
10688                 m4/visibility.m4.
10689                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
10690
10691 2006-07-22  Bruno Haible  <bruno@clisp.org>
10692
10693         Merge from GNU gettext 0.15.
10694
10695         2006-03-25  Bruno Haible  <bruno@clisp.org>
10696
10697                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
10698
10699         2006-07-21  Bruno Haible  <bruno@clisp.org>
10700
10701                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
10702                 "1.1".
10703
10704         2006-05-09  Bruno Haible  <bruno@clisp.org>
10705
10706                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
10707                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
10708                 for the conftestver execution.
10709
10710         2006-05-01  Bruno Haible  <bruno@clisp.org>
10711
10712                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
10713                 optional target-version argument. Verify that the compiler
10714                 groks source of the specified source-version, or add -source
10715                 option as necessary. Verify that the compiler produces
10716                 bytecode in the specified target-version, or add -target and
10717                 -source options as necessary. Make the result of the test
10718                 available as variable CONF_JAVAC. Also log error output in
10719                 config.log.
10720
10721         2006-03-11  Bruno Haible  <bruno@clisp.org>
10722
10723                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
10724
10725         2006-05-09  Bruno Haible  <bruno@clisp.org>
10726
10727                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
10728                 CLASSPATH_SEPARATOR to a semicolon.
10729
10730         2006-03-12  Bruno Haible  <bruno@clisp.org>
10731
10732                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
10733                 available as variable CONF_JAVA, for subsequent autoconf
10734                 tests. Also log error output in config.log.
10735
10736         2006-07-19  Bruno Haible  <bruno@clisp.org>
10737
10738                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
10739                 that getline works on glibc2 systems. Needed to avoid trouble
10740                 in relocatable.c.
10741                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
10742
10743         2005-12-04  Bruno Haible  <bruno@clisp.org>
10744
10745                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
10746                 launcher (untested).
10747
10748         2005-12-04  Bruno Haible  <bruno@clisp.org>
10749
10750                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
10751
10752         2006-07-22  Bruno Haible  <bruno@clisp.org>
10753
10754                 * gettext.m4: Update from GNU gettext-0.15.
10755                 * nls.m4: Likewise.
10756                 * po.m4: Likewise.
10757                 * inttypes-pri.m4: Likewise.
10758                 * inttypes-h.m4: Renamed from inttypes.m4.
10759                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
10760
10761 2006-07-22  Bruno Haible  <bruno@clisp.org>
10762
10763         Merge from GNU gettext 0.15.
10764
10765         2005-07-05  Bruno Haible  <bruno@clisp.org>
10766
10767                 * printf-args.c (printf_fetchargs): Work around broken
10768                 definition of wint_t on mingw.
10769
10770         2005-02-12  Bruno Haible  <bruno@clisp.org>
10771
10772                 * xallocsa.h: Add extern "C" for C++.
10773
10774         2006-05-17  Bruno Haible  <bruno@clisp.org>
10775
10776                 Cygwin portability.
10777                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
10778
10779         2006-04-30  Bruno Haible  <bruno@clisp.org>
10780
10781                 * progreloc.c: Include <mach-o/dyld.h> if available.
10782                 (find_executable): Use _NSGetExecutablePath when possible.
10783
10784         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
10785
10786                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
10787                 function.
10788
10789         2005-12-29  Bruno Haible  <bruno@clisp.org>
10790
10791                 * progreloc.c (set_program_name_and_installdir): Fix
10792                 compilation error.
10793
10794         2005-12-04  Bruno Haible  <bruno@clisp.org>
10795
10796                 Cygwin portability.
10797                 * progreloc.c: Include <windows.h> also on Cygwin.
10798                 (find_executable): Add support for Cygwin.
10799                 (set_program_name_and_installdir): Handle also platforms with
10800                 nonempty EXEEXT.
10801
10802         2006-07-11  Bruno Haible  <bruno@clisp.org>
10803
10804                 * javacomp.c: Fix a comment.
10805                 Reported by Jim Meyering.
10806
10807         2006-04-30  Bruno Haible  <bruno@clisp.org>
10808
10809                 * javacomp.h (compile_java_class): Add source_version,
10810                 target_version arguments.
10811                 * javacomp.c: Rewritten to choose only a compiler that
10812                 respects the specified source_version and target_version.
10813
10814         2006-06-27  Bruno Haible  <bruno@clisp.org>
10815
10816                 Assume correct S_ISDIR macro.
10817                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
10818
10819         2006-07-22  Bruno Haible  <bruno@clisp.org>
10820
10821                 * javaversion.h: New file, from GNU gettext.
10822                 * javaversion.c: New file, from GNU gettext.
10823                 * javaversion.java: New file, from GNU gettext.
10824                 * javaversion.class: New file, from GNU gettext.
10825
10826         2006-05-17  Bruno Haible  <bruno@clisp.org>
10827
10828                 Cygwin portability.
10829                 * javaexec.c (execute_java_class): Test for jview program
10830                 also on Cygwin.
10831
10832         2006-04-09  Bruno Haible  <bruno@clisp.org>
10833
10834                 * fatal-signal.c: Don't include string.h.
10835                 (at_fatal_signal): Use a copying loop instead of memcpy.
10836
10837         2005-12-04  Bruno Haible  <bruno@clisp.org>
10838
10839                 * csharpexec.c: Add support for 'clix' launcher (untested).
10840                 (execute_csharp_using_sscli): New function.
10841                 (execute_csharp_program): Call it.
10842
10843         2006-06-21  Bruno Haible  <bruno@clisp.org>
10844
10845                 Avoid warnings from recent versions of mcs.
10846                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
10847                 -o, -L, -r any more. Use options documented since mcs-1.0
10848                 instead. Similarly for -g.
10849
10850         2005-07-09  Bruno Haible  <bruno@clisp.org>
10851
10852                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
10853                 add a .dll suffix.
10854                 Reported by Mark Junker <mjscod@gmx.de>.
10855
10856         2006-06-17  Bruno Haible  <bruno@clisp.org>
10857
10858                 * config.charset: Update for NetBSD 3.0.
10859
10860         2006-05-17  Bruno Haible  <bruno@clisp.org>
10861
10862                 Cygwin portability.
10863                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
10864
10865         2006-05-16  Bruno Haible  <bruno@clisp.org>
10866
10867                 * localcharset.c [CYGWIN]: Include <windows.h>.
10868                 (get_charset_aliases): For Cygwin, return the same CPxxx
10869                 aliases list as under WIN32.
10870                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
10871                 the environment variables. Fall back to GetACP().
10872
10873         2006-04-05  Bruno Haible  <bruno@clisp.org>
10874
10875                 * config.charset: Update Juan Manuel Guerrero's address.
10876
10877         2005-02-12  Bruno Haible  <bruno@clisp.org>
10878
10879                 * allocsa.h: Add extern "C" for C++.
10880
10881         2005-02-10  Bruno Haible  <bruno@clisp.org>
10882
10883                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
10884                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
10885
10886         2006-07-22  Bruno Haible  <bruno@clisp.org>
10887
10888                 * gettext.h: Update to GNU gettext-0.15.
10889
10890 2006-07-22  Bruno Haible  <bruno@clisp.org>
10891
10892         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
10893         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
10894         lib-prefix.m4, longdouble.m4, ssize_t.m4.
10895
10896 2006-07-21  Eric Blake  <ebb9@byu.net>
10897
10898         * modules/stdlib-safer: New file.
10899         * MODULES.html.sh (File stream based Input/Output): Add
10900         stdlib-safer.
10901
10902 2006-07-21  Eric Blake  <ebb9@byu.net>
10903
10904         * lib/stdlib-safer.h: New file from coreutils, required by
10905         stdlib--.h.
10906
10907 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
10908
10909         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
10910
10911 2006-07-20  Bruno Haible  <bruno@clisp.org>
10912
10913         * gnulib-tool: Recognize new option --assume-autoconf.
10914         (autoconf_minversion): New variable.
10915         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
10916
10917 2006-07-20  Bruno Haible  <bruno@clisp.org>
10918
10919         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
10920
10921 2006-07-19  Derek R. Price  <derek@ximbiot.com>
10922
10923         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
10924         Reindent and repaginate.
10925
10926 2006-07-19  Derek Price  <derek@ximbiot.com>
10927
10928         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
10929         Correct grammar.
10930
10931 2006-07-17  Bruno Haible  <bruno@clisp.org>
10932
10933         * modules/list: New file.
10934         * modules/array-list: New file.
10935         * modules/carray-list, modules/carray-list-tests: New files.
10936         * modules/linked-list, modules/linked-list-tests: New files.
10937         * modules/avltree-list, modules/avltree-list-tests: New files.
10938         * modules/rbtree-list, modules/rbtree-list-tests: New files.
10939         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
10940         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
10941         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
10942         * modules/oset: New file.
10943         * modules/array-oset: New file.
10944         * modules/avltree-oset, modules/avltree-oset-tests: New files.
10945         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
10946         * tests/test-carray_list.c: New file.
10947         * tests/test-linked_list.c: New file.
10948         * tests/test-avltree_list.c: New file.
10949         * tests/test-rbtree_list.c: New file.
10950         * tests/test-linkedhash_list.c: New file.
10951         * tests/test-avltreehash_list.c: New file.
10952         * tests/test-rbtreehash_list.c: New file.
10953         * tests/test-avltree_oset.c: New file.
10954         * tests/test-rbtree_oset.c: New file.
10955         * MODULES.html.sh (Container data structures): New section.
10956
10957 2006-07-17  Bruno Haible  <bruno@clisp.org>
10958
10959         * m4/gl_list.m4: New file.
10960
10961 2006-07-17  Bruno Haible  <bruno@clisp.org>
10962
10963         * lib/gl_list.h: New file.
10964         * lib/gl_list.c: New file.
10965         * lib/gl_array_list.h: New file.
10966         * lib/gl_array_list.c: New file.
10967         * lib/gl_carray_list.h: New file.
10968         * lib/gl_carray_list.c: New file.
10969         * lib/gl_linked_list.h: New file.
10970         * lib/gl_linked_list.c: New file.
10971         * lib/gl_anylinked_list1.h: New file.
10972         * lib/gl_anylinked_list2.h: New file.
10973         * lib/gl_avltree_list.h: New file.
10974         * lib/gl_avltree_list.c: New file.
10975         * lib/gl_anyavltree_list1.h: New file.
10976         * lib/gl_anyavltree_list2.h: New file.
10977         * lib/gl_rbtree_list.h: New file.
10978         * lib/gl_rbtree_list.c: New file.
10979         * lib/gl_anyrbtree_list1.h: New file.
10980         * lib/gl_anyrbtree_list2.h: New file.
10981         * lib/gl_anytree_list1.h: New file.
10982         * lib/gl_anytree_list2.h: New file.
10983         * lib/gl_linkedhash_list.h: New file.
10984         * lib/gl_linkedhash_list.c: New file.
10985         * lib/gl_anyhash_list1.h: New file.
10986         * lib/gl_anyhash_list2.h: New file.
10987         * lib/gl_avltreehash_list.h: New file.
10988         * lib/gl_avltreehash_list.c: New file.
10989         * lib/gl_rbtreehash_list.h: New file.
10990         * lib/gl_rbtreehash_list.c: New file.
10991         * lib/gl_anytreehash_list1.h: New file.
10992         * lib/gl_anytreehash_list2.h: New file.
10993
10994         * lib/gl_oset.h: New file.
10995         * lib/gl_oset.c: New file.
10996         * lib/gl_array_oset.h: New file.
10997         * lib/gl_array_oset.c: New file.
10998         * lib/gl_avltree_oset.h: New file.
10999         * lib/gl_avltree_oset.c: New file.
11000         * lib/gl_rbtree_oset.h: New file.
11001         * lib/gl_rbtree_oset.c: New file.
11002         * lib/gl_anytree_oset.h: New file.
11003
11004 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
11005
11006         * m4/mkancesdirs.m4: New file.
11007         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
11008         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
11009         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
11010         it.
11011
11012 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
11013
11014         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
11015         * lib/mkancesdirs.h: New files.
11016         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
11017         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
11018         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
11019         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
11020         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
11021         callers changed.  Revamp internals significantly, by not
11022         attempting to create directories that are temporarily more
11023         permissive than the final results.  Do not attempt to use
11024         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
11025         This removes some race conditions, fixes some bugs, and simplifies
11026         things.  Use new dirchownmod function to do owner and mode changes.
11027         * lib/mkdir-p.h: Likewise.
11028         * lib/modechange.c (octal_to_mode): New function.
11029         (struct mode_change): New member mentioned.
11030         (make_node_op_equals): New arg mentioned.  All callers changed.
11031         (mode_compile): Keep track of which mode bits the user has explicitly
11032         mentioned.
11033         (mode_adjust): New arg DIR, so that we implement the X op correctly.
11034         New arg PMODE_BITS, to keep track of which mode bits the user
11035         mentioned; it treats S_ISUID and S_ISGID speciall.
11036         All callers changed.
11037         * lib/modechange.h: Likewise.
11038
11039 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
11040
11041         * MODULES.html.sh: Add mkancestors.
11042         * modules/mkancesdirs: New module.
11043         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
11044         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
11045         The chdir-safer and afs files are now orphans; I'll remove them
11046         unless someone speaks up.
11047         Add lib/dirchownmod.c, lib/dirchownmod.h.
11048         (Depends-on): Remove alloca, chown, save-cwd, dirname.
11049         Add lchown, mkancesdirs.
11050         (Maintainer): Add self.
11051
11052 2006-07-15  Karl Berry  <karl@gnu.org>
11053
11054         * gnulib-tool: help message wording/arrangement.
11055
11056 2006-07-14  Simon Josefsson  <jas@extundo.com>
11057
11058         * doc/gnulib.texi (Libtool and Windows): New section.
11059
11060 2006-07-12  Simon Josefsson  <jas@extundo.com>
11061
11062         * modules/gendocs (License): Fix license, approved by Karl.
11063
11064 2006-07-12  Eric Blake  <ebb9@byu.net>
11065
11066         * MODULES.html.sh: Add gendocs.
11067
11068 2006-07-11  Eric Blake  <ebb9@byu.net>
11069
11070         * modules/fdl: New module, to install doc/fdl.texi.
11071         * MODULES.html.sh: Add new section for documentation modules.
11072         * gnulib-tool: Avoid space-tab.
11073         (--doc-base): New option, to manage files from doc.
11074
11075 2006-07-11  Eric Blake  <ebb9@byu.net>
11076
11077         * m4/absolute-header.m4: Fix comments to match recent change.
11078
11079 2006-07-11  Eric Blake  <ebb9@byu.net>
11080
11081         * gnulib-tool: List --doc-base before --tests-base.
11082
11083 2006-07-11  Derek R. Price  <derek@ximbiot.com>
11084
11085         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
11086
11087 2006-07-11  Bruno Haible  <bruno@clisp.org>
11088
11089         * README: Mention where to put documentation.
11090
11091 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11092
11093         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
11094
11095 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
11096
11097         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
11098         to stdint.m4.
11099
11100 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
11101
11102         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
11103         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
11104         "no/such/file/stdint.h" when there is no such file, so that
11105         the resulting C code can be parsed by dodgy compilers.
11106         Problems reported by Bob Proulx.
11107
11108 2006-07-10  Derek R. Price  <derek@ximbiot.com>
11109
11110         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
11111         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
11112         macros into the GNU _D_EXACT_NAMLEN.
11113         * lib/savedir.c:  Likewise.
11114         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
11115
11116 2006-07-10  Derek R. Price  <derek@ximbiot.com>
11117         and Paul Eggert  <eggert@cs.ucla.edu>
11118
11119         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
11120         * m4/savedir.m4:
11121         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
11122         macros into the GNU _D_EXACT_NAMLEN.
11123
11124 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
11125
11126         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
11127         around the absolute name, to work around a problem with the HP-UX
11128         11.23 native C compiler, reported by Bob Proulx.
11129
11130 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
11131
11132         * doc/maintain.texi, make-stds.texi: Sync from
11133         <http://savannah.gnu.org/projects/gnustandards>.
11134
11135 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
11136
11137         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
11138
11139 2006-07-09  Jim Meyering  <jim@meyering.net>
11140
11141         * m4/glob.m4: Remove a doubled word in a comment.
11142
11143 2006-07-09  Jim Meyering  <jim@meyering.net>
11144
11145         * lib/argp-pv.c: Remove a doubled word in a comment.
11146         * lib/check-version.c (check_version): Likewise.
11147         * lib/javacomp.c (compile_java_class): Likewise.
11148
11149 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
11150
11151         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
11152         for the benefit of people using Autoconf 2.60.  If you want to
11153         support older Autoconf versions you can copy m4/onceonly_2_57.m4
11154         (or m4/onceonly.m4, if pre-2.57) manually.
11155
11156 2006-07-08  Jim Meyering  <jim@meyering.net>
11157
11158         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
11159         comment.
11160         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
11161         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
11162         comment.
11163
11164 2006-07-08  Jim Meyering  <jim@meyering.net>
11165
11166         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
11167
11168 2006-07-07  Simon Josefsson  <jas@extundo.com>
11169
11170         * tests/test-crc.c: Change expected crc value, the test vector
11171         were probably computed using the old broken crc.c?
11172
11173 2006-07-06  Simon Josefsson  <jas@extundo.com>
11174
11175         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
11176         now the canonical place for the M4 file).
11177
11178         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
11179         from the sys_socket dependency now.
11180
11181         * modules/inet_pton (Files): Ditto.
11182
11183         * modules/inet_ntop (Files): Ditto.
11184
11185 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
11186
11187         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
11188         not gl_PREREQ_GETUSERSHELL.
11189
11190 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11191
11192         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
11193         with only one argument, for Autoconf 2.60.
11194         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
11195         expand to nothing, so add a shell command to avoid syntax error.
11196         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
11197
11198 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
11199
11200         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
11201
11202 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
11203
11204         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
11205         no longer needed.  Check for isblank decl.
11206         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
11207         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
11208         of existence.
11209
11210 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
11211
11212         * lib/getloadavg.c: Use __VMS, not VMS.
11213         * lib/getopt.c: Likewise.
11214         * lib/getpagesize.h: Likewise.
11215         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
11216         and probably does not work.
11217
11218 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
11219
11220         * lib/.cppi-disable: Add wcwidth.
11221         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
11222         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
11223         (ISGRAPH): Remove.  All uses changed to isgraph.
11224         (FOLD) [!defined _LIBC]: Remove special case.
11225         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
11226         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
11227         HAVE_ISBLANK.
11228         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
11229         case.
11230
11231 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
11232
11233         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
11234         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
11235         brackets.  Other minor changes to suppress some compiler
11236         warnings.
11237
11238 2006-07-06  Derek R. Price  <derek@ximbiot.com>
11239         and Paul Eggert  <eggert@cs.ucla.edu>
11240
11241         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
11242         of invoking obsolescent AC_HEADER_DIRENT macro.
11243         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
11244         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
11245         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
11246         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
11247         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
11248         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
11249         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
11250         * m4/readdir.m4: Remove; no longer needed.
11251
11252 2006-07-06  Derek R. Price  <derek@ximbiot.com>
11253         and Paul Eggert  <eggert@cs.ucla.edu>
11254
11255         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
11256         Don't worry about this obsolete case any more.
11257         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
11258         directories.
11259         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
11260         worry about this obsolete case any more.
11261         * lib/fts.c: Likewise.
11262         * lib/getcwd.c: Likewise.
11263         * lib/glob.h: Likewise.
11264         * lib/savedir.c: Likewise.
11265
11266 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
11267
11268         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
11269         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
11270         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
11271         needed.
11272         All uses removed.
11273         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
11274         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
11275         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
11276         needed.
11277         * m4/getdate.m4 (gl_GETDATE): Likewise.
11278         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
11279         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
11280         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
11281         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
11282         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
11283         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
11284         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
11285         needed.
11286
11287 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
11288
11289         * lib/memcasecmp.c: Include <limits.h>.
11290         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
11291         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
11292         Don't assume isdigit succeeds only on '0' through '9'.
11293
11294 2006-07-05  Eric Blake  <ebb9@byu.net>
11295
11296         * modules/getaddrinfo (Depends-on): Add snprintf.
11297
11298 2006-07-05  Eric Blake  <ebb9@byu.net>
11299
11300         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
11301         to avoid 'header present but could not be compiled' on cygwin.
11302
11303 2006-07-05  Eric Blake  <ebb9@byu.net>
11304
11305         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
11306         missing from netdb.h.
11307         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
11308
11309 2006-07-05  Derek R. Price  <derek@ximbiot.com>
11310
11311         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
11312         no longer needed.
11313         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
11314         * m4/getdate.m4 (gl_GETDATE): Likewise.
11315         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
11316         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
11317         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
11318         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
11319         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
11320
11321 2006-07-05  Derek R. Price  <derek@ximbiot.com>
11322
11323         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
11324         All uses of is_space replaced by isspace.
11325         * lib/exit.h: Don't talk about STDC_HEADERS.
11326         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
11327         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
11328         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
11329         replaced by isprint etc.
11330         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
11331         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
11332         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
11333         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
11334         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
11335         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
11336
11337 2006-07-05  Bruno Haible  <bruno@clisp.org>
11338
11339         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
11340         the function exists, before testing against AIX.
11341         Reported by Martin Lambers <marlam@marlam.de>.
11342
11343 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
11344
11345         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
11346         From Mark D. Baushke.
11347
11348 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
11349
11350         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
11351         to the absolute name, not just one, to bypass Sun C 5.8's
11352         "warning: #include of /usr/include/... may be non-portable".
11353
11354 2006-07-04  Eric Blake  <ebb9@byu.net>
11355
11356         * modules/dirname-tests: New test module.
11357         * tests/test-dirname.c: New file, replacing dirname.c
11358         TEST_DIRNAME section that was recently deleted.
11359
11360 2006-07-04  Bruno Haible  <bruno@clisp.org>
11361
11362         Assume ANSI C header files and <ctype.h> functions.
11363         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
11364         (mbsnwidth): Use isprint, iscntrl instead.
11365
11366 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
11367
11368         Merge from coreutils.
11369         * MODULES.html.sh: Add xstrtold.
11370         * modules/xstrtold: New file.
11371         * modules/cycle-check (Files): Add lib/same-inode.h.
11372         * modules/dirname (Files): Add m4/double-slash-root.m4.
11373         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
11374         * modules/mkdir-p (Files): Add lib/same-inode.h.
11375         * modules/same (Files): Add lib/same-inode.h.
11376
11377 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
11378
11379         * m4/absolute-header.m4: Renamed from full-header-path.m4.
11380         This is to keep the terminology clean; POSIX talks about
11381         "absolute pathnames", not "full pathnames", but the GNU
11382         Coding Standards say to use "path" for something else;
11383         so use "absolute" to keep both sides happy.
11384         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
11385         Set gl_absolute_header, not gl_full_header_path.
11386         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
11387         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
11388         All uses changed.
11389
11390         Merge from coreutils.
11391
11392         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
11393
11394         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
11395         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
11396         want to require the building of c-strtod.o.
11397         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
11398         needs -lm directly.
11399         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
11400
11401         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
11402
11403         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
11404         --as-needed option if available.  Problem reported by Albert Chin in
11405         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
11406         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
11407         cc merely issues a bunch of annoying warnings for --as-needed
11408         (this problem was reported by Bob Proulx).  Also, try linking with
11409         -lm to detect a bug in binutils 2.16 (this problem was reported
11410         by Ralf Wildenhues).
11411
11412         2006-06-18  Jim Meyering  <jim@meyering.net>
11413
11414         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
11415         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
11416         macro.
11417         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
11418         also check for glibc-2.4's abort-inducing bug.
11419
11420         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
11421         Low-probability clean-up should be to use rmdir to get rid of
11422         the just-created directory, not unlink.
11423
11424         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
11425         configure fail, and request a bug report to inform us about it.
11426         Add a comment that, barring reports to the contrary, in 2007 we'll
11427         assume ftruncate is universally available.
11428
11429         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
11430
11431         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
11432
11433         2006-03-12  Jim Meyering  <jim@meyering.net>
11434
11435         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
11436         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
11437         * m4/same.m4 (gl_SAME): Likewise.
11438         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
11439
11440         2006-03-11  Eric Blake  <ebb9@byu.net>
11441
11442         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
11443         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
11444         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
11445         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
11446
11447 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
11448
11449         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
11450         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
11451         reported by Mark D. Baushke, one in
11452         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
11453
11454         Merge from coreutils.
11455
11456         * lib/.cppi-disable: Add stdint_.h.
11457         * lib/.cvsignore: Add stdint.h.
11458
11459         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
11460
11461         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
11462         both double and long double versions.
11463         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
11464         * lib/xstrtold.c: New file.
11465         * lib/xstrtod.h (xstrtold): New decl.
11466
11467         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
11468
11469         * lib/filemode.c (setst): Remove.
11470         (strmode): Rewrite to avoid setst.  This makes the code shorter,
11471         (arguably) clearer, and the generated code is a bit smaller on my
11472         Debian GNU/Linux stable x86 host.
11473
11474         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
11475
11476         * lib/filemode.c: Include "filemode.h" first, to test the interface.
11477         Assume that filemode.h includes sys/types.h and sys/stat.h.
11478         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
11479         (ftypelet): Reorder to put common cases first, for efficiency.
11480         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
11481         to do 'M'.
11482         (strmode): Renamed from mode_string, and now stores 12 bytes instead
11483         of 10, for compatibility with FreeBSD.  All callers changed.
11484         (filemodestring): Now stores 12 bytes instead of 10, and sets file
11485         types that can't be deduced solely from st_mode.  First arg is now a
11486         const pointer.
11487         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
11488         (strmode): Renamed from mode_string.
11489         (filemodestring): New decl.
11490         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
11491         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
11492         needed.
11493         (S_ISPORT, S_ISWHT): New macros, if not already defined.
11494
11495         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
11496
11497         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
11498         fsusage.h now does that.  Include fsusage.h first, to test interface.
11499         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
11500         at most one method (the old code could have generated decls that
11501         didn't conform to C89, not that this was ever exercised).
11502         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
11503
11504         2006-03-19  Jim Meyering  <jim@meyering.net>
11505
11506         Work even in a chroot where d_ino values for entries in "/"
11507         don't match the stat.st_ino values for the same names.
11508         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
11509         number, iterate through all entries again, using lstat instead.
11510         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
11511         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
11512
11513         * lib/getcwd.c (__getcwd): Clarify a comment.
11514         Use memcpy in place of a call to strcpy.
11515
11516         2006-03-12  Jim Meyering  <jim@meyering.net>
11517
11518         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
11519         matches that of the current directory (which we're about to chdir ".."
11520         out of), then save the dev-ino of the parent, instead.
11521
11522         * lib/same-inode.h (SAME_INODE): New file/macro.
11523         * lib/chdir-safer.c (SAME_INODE): Remove definition.
11524         Include "same-inode.h", instead.
11525         * lib/same.c: Likewise.
11526         * lib/cycle-check.h: Include "same-inode.h".
11527         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
11528         * lib/cycle-check.c (SAME_INODE): Remove definition.
11529         * lib/root-dev-ino.h: Include "same-inode.h".
11530
11531         2006-03-11  Eric Blake  <ebb9@byu.net>
11532
11533         * lib/same.c (same_name): s/base_name/last_component/
11534         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
11535         * lib/filenamecat.c (file_name_concat): Likewise.
11536
11537         2006-03-11  Eric Blake  <ebb9@byu.net>,
11538                     Paul Eggert  <eggert@cs.ucla.edu>
11539
11540         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
11541         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
11542         drive prefix.
11543         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
11544         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
11545         (last_component): New method.
11546         * lib/dirname.c (dir_len): Determine when drive letters need a
11547         subsequent slash.  Preserve // when it is special.
11548         (dir_name): Don't append dot when drive letter is absolute.
11549         [TEST_DIRNAME]: Move into a full-blown gnulib test.
11550         * lib/basename.c (base_name): New semantics - malloc the result.
11551         Preserve // when it is special.  Preserve relative files that look
11552         like drive letters.
11553         (base_len): Preserve // when it is special.
11554         (last_component): New method, similar to old base_name semantics.
11555         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
11556         base_name.  Strip redundant slashes from ///.
11557
11558 2006-07-03  Jim Meyering  <jim@meyering.net>
11559
11560         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
11561         macro is used before the first cycle_check call.
11562
11563 2006-07-03  Eric Blake  <ebb9@byu.net>
11564
11565         * modules/dirname (Depends-on): Add xstrndup.
11566
11567 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
11568
11569         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
11570         test cases, so that config.log is a bit easier to follow.
11571
11572 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
11573
11574         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
11575         both are 64 bits, since this seems to be the tradition, and this
11576         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
11577         we ever run into a host that prefers long long to long in this
11578         case, we'll need another configure-time test.  Problem reported by
11579         Jim Meyering.
11580
11581 2006-07-02  Eric Blake  <ebb9@byu.net>
11582
11583         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
11584
11585 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
11586
11587         * modules/inttypes (Depends-on): No longer depends on stdint.
11588         * modules/stdint (Description): Say more about assumptions.
11589         Say that the fast types might differ.  Say macros are used.
11590         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
11591         (Makefile.am): Revise list of substituted symbols to match
11592         new stdint.m4.
11593         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
11594         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
11595         * tests/test-stdint.c (verify_same_types)
11596         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
11597         the code conforms to C99/C89.
11598         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
11599         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
11600
11601 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
11602
11603         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
11604         but fix a bug, by requiring at least 64 bits.
11605         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
11606         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
11607         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
11608         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
11609
11610         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
11611         changes.  Make 2.59 a prerequisite.  Check and substitute for
11612         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
11613         inttypes.h.  Do not use special include files; just use the
11614         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
11615         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
11616         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
11617         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
11618         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
11619         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
11620         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
11621         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
11622         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
11623         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
11624         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
11625         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
11626         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
11627         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
11628         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
11629         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
11630         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
11631         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
11632         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
11633         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
11634         WINT_MAX.  Check for C99 conformance more strictly, by detecting
11635         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
11636         not check for things that C99 does not require, e.g., int8_t.  If
11637         a test isn't needed unless <stdint.h> isn't working, and is
11638         unlikely to be needed for any other reason, then don't do it
11639         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
11640         size_t, since we assume C89 freestanding at least.  Do not check
11641         for sig_atomic_t, wchar_t, or wint_t, since the code now does
11642         the right thing even if the types are not defined.  Instead use:
11643         (gl_STDINT_TYPE_PROPERTIES): New macro.
11644         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
11645         testing whether <sys/types.h> clashes, as Autoconf does this for
11646         us now.  All uses removed.
11647         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
11648         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
11649         (gl_CHECK_TYPE_SAME):
11650         Remove; no longer needed.
11651         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
11652         exists, since we'll return 0 anyway in that case.
11653         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
11654
11655 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
11656
11657         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
11658         possible collision with system files.
11659         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
11660         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
11661         WCHAR_MIN and WCHAR_MAX in this case.
11662         (<stddef.h>): Do not include; no longer needed.
11663         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
11664         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
11665         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
11666         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
11667         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
11668         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
11669         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
11670         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
11671         !defined(__c99))]: Include in this case too, since it's harmless
11672         now.
11673         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
11674         dangerous to do so.
11675         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
11676         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
11677         (_STDINT_MIN, _STDINT_MAX): New macros.
11678         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
11679         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
11680         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
11681         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
11682         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
11683         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
11684         macros, not typedefs; this simplifies things quite a bit.
11685         Use long int for all types narrower than int64_t.
11686         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
11687         Define in terms of long long int or int64_t or long int,
11688         not int64_t or int32_t.  This saves some compile-time testing.
11689         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
11690         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
11691         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
11692         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
11693         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
11694         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
11695         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
11696         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
11697         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
11698         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
11699         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
11700         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
11701         undef any previous version and define our own version, for
11702         simplicity and consistency with the new macros for types.
11703         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
11704         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
11705         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
11706         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
11707         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
11708         @WINT_T_SUFFIX@ to keep things simple here.
11709         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
11710         Simplify by assuming typical 8/16/32/64 host, since we're
11711         already doing that elsewhere anyway.
11712         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
11713         and assume long long int is 64 bits if available.  This
11714         speeds up 'configure'.
11715
11716 2006-07-01  Eric Blake  <ebb9@byu.net>
11717
11718         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
11719         Reported by Andreas Buening.
11720
11721 2006-07-01  Eric Blake  <ebb9@byu.net>
11722
11723         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
11724
11725 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
11726
11727         * lib/getaddrinfo.c: fixed typo
11728
11729 2006-06-29  Jim Meyering  <jim@meyering.net>
11730
11731         * modules/strftime (Maintainer): Add my name, since with the
11732         FPRINTFTIME changes strftime.c has forked from glibc.
11733
11734 2006-06-29  Eric Blake  <ebb9@byu.net>
11735
11736         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
11737
11738 2006-06-29  Eric Blake  <ebb9@byu.net>
11739
11740         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
11741
11742 2006-06-29  Eric Blake  <ebb9@byu.net>
11743
11744         * lib/stat_.h: New file.
11745
11746 2006-06-29  Eric Blake  <ebb9@byu.net>
11747
11748         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
11749         unused static function.
11750
11751 2006-06-29  Eric Blake  <ebb9@byu.net>
11752
11753         * doc/functions.texi (Function Portability): Document missing lstat
11754         on mingw.
11755
11756 2006-06-29  Eric Blake  <ebb9@byu.net>
11757
11758         * MODULES.html.sh: Add sys_stat.
11759         * modules/sys_stat: New module.
11760         * modules/mkstemp (Depends-on): Add sys_stat.
11761
11762 2006-06-29  Derek R. Price  <derek@ximbiot.com>
11763
11764         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
11765
11766 2006-06-29  Derek R. Price  <derek@ximbiot.com>
11767
11768         * m4/c-bs-a.m4: Removed.
11769
11770 2006-06-29  Derek R. Price  <derek@ximbiot.com>
11771
11772         * lib/strftime.c: Assume strftime() exists.
11773
11774 2006-06-29  Derek Price  <derek@ximbiot.com>
11775
11776         * modules/c-bs-a: Removed - \a is C89.
11777         * MODULES.html.sh: Remove c-bs-a.
11778
11779 2006-06-29  Bruno Haible  <bruno@clisp.org>
11780
11781         * modules/wcwidth (License): Change to LGPL.
11782
11783 2006-06-28  Simon Josefsson  <jas@extundo.com>
11784
11785         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
11786         on _WIN32.
11787
11788         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
11789         getnameinfo.
11790
11791 2006-06-28  Simon Josefsson  <jas@extundo.com>
11792
11793         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
11794
11795 2006-06-28  Simon Josefsson  <jas@extundo.com>
11796
11797         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
11798         functions there.  It will succeed on Windows XP, but on Windows
11799         2000 and (presumably) earlier, it will fail, and use the internal
11800         re-implementation.
11801         (use_win32_p): New function.
11802         (getaddrinfo): Use strtoul on servname, to support numeric ports.
11803         Support AI_NUMERICSERV to disable getservbyname.
11804         (getnameinfo): New function, only supports
11805         NI_NUMERICHOST|NI_NUMERICSERV for now.
11806
11807         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
11808         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
11809         getnameinfo.
11810
11811 2006-06-28  Eric Blake  <ebb9@byu.net>
11812
11813         * modules/wcwidth: New file.
11814         * modules/mbchar (Depends-on): Add wcwidth.
11815         * modules/mbswidth (Depends-on): Add wcwidth.
11816         * MODULES.html.sh: Add wcwidth.
11817
11818 2006-06-28  Eric Blake  <ebb9@byu.net>
11819
11820         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
11821         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
11822
11823 2006-06-28  Eric Blake  <ebb9@byu.net>
11824
11825         * lib/xvasprintf.h: Fix comments.
11826
11827 2006-06-28  Eric Blake  <ebb9@byu.net>
11828
11829         * lib/mbchar.h (wcwidth): Include wcwidth.h.
11830         * lib/mbswidth.c (wcwidth): Move from here...
11831         * lib/wcwidth.h: ...to this new file.
11832
11833 2006-06-28  Derek R. Price  <derek@ximbiot.com>
11834
11835         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
11836
11837         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
11838         it's obsolete.
11839         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
11840
11841 2006-06-28  Derek R. Price  <derek@ximbiot.com>
11842
11843         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
11844         Autoconf 2.60 says this stuff was obsolete.
11845
11846 2006-06-28  Bruno Haible  <bruno@clisp.org>
11847
11848         * modules/wcwidth (Files): Add m4/wchar_t.m4.
11849
11850 2006-06-28  Bruno Haible  <bruno@clisp.org>
11851
11852         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
11853         gt_TYPE_WCHAR_T.
11854
11855 2006-06-28  Bruno Haible  <bruno@clisp.org>
11856
11857         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
11858         declaration for wcwidth.
11859         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
11860
11861 2006-06-28  Bruno Haible  <bruno@clisp.org>
11862
11863         * lib/mkdtemp.c [MINGW]: Include <io.h>.
11864         (mkdir): Define using _mkdir.
11865
11866 2006-06-28  Bruno Haible  <bruno@clisp.org>
11867
11868         * lib/getaddrinfo.h: Fix POSIX URL.
11869         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
11870         _WIN32.
11871         (use_win32_p): Make static.
11872         (getaddrinfo): Reject service name if it is empty or does not consist
11873         solely of decimal digits, or if its value is > 65535.
11874         (getnameinfo): Remove useless casts.
11875
11876 2006-06-27  Simon Josefsson  <jas@extundo.com>
11877
11878         * modules/sys_select: New file, suggested by Bruno Haible, Paul
11879         Eggert and Martin Lambers.
11880
11881 2006-06-27  Simon Josefsson  <jas@extundo.com>
11882
11883         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
11884         Eggert and Martin Lambers.
11885
11886 2006-06-27  Bruno Haible  <bruno@clisp.org>
11887
11888         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
11889         result to 0, not to empty.
11890         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
11891
11892 2006-06-27  Bruno Haible  <bruno@clisp.org>
11893
11894         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
11895
11896 2006-06-26  Simon Josefsson  <jas@extundo.com>
11897
11898         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
11899         present.
11900
11901 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
11902
11903         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
11904         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
11905         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
11906
11907 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
11908
11909         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
11910
11911 2006-06-26  Bruno Haible  <bruno@clisp.org>
11912
11913         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
11914
11915 2006-06-26  Bruno Haible  <bruno@clisp.org>
11916
11917         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
11918
11919 2006-06-26  Bruno Haible  <bruno@clisp.org>
11920
11921         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
11922         SGI C compiler in pre-C99 mode.
11923         Suggested by Mark D. Baushke and Larry Jones.
11924
11925 2006-06-26  Bruno Haible  <bruno@clisp.org>
11926
11927         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
11928         WCHAR_MAX.
11929         Reported by Mark D. Baushke and Larry Jones.
11930
11931 2006-06-26  Bruno Haible  <bruno@clisp.org>
11932
11933         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
11934         in pre-C99 mode.
11935         Suggested by Mark D. Baushke and Larry Jones.
11936
11937 2006-06-23  Simon Josefsson  <jas@extundo.com>
11938             Bruno Haible  <bruno@clisp.org>
11939
11940         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
11941         Emit mostlyclean-local rule.
11942         (func_emit_tests_Makefile_am): Likewise.
11943         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
11944
11945 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
11946
11947         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
11948
11949 2006-06-23  Bruno Haible  <bruno@clisp.org>
11950
11951         * tests/test-stdint.c: Update to match ISO C 99 Technical
11952         Corrigendum 1.
11953
11954 2006-06-23  Bruno Haible  <bruno@clisp.org>
11955
11956         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
11957
11958 2006-06-23  Bruno Haible  <bruno@clisp.org>
11959
11960         * lib/stdint_.h: Treat IRIX like OpenBSD.
11961
11962 2006-06-23  Bruno Haible  <bruno@clisp.org>
11963
11964         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
11965         ISO C 99 Technical Corrigendum 1.
11966
11967 2006-06-22  Simon Josefsson  <jas@extundo.com>
11968
11969         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
11970         MinGW.
11971
11972 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
11973
11974         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
11975         needed.  Some compiler complained about some of them.  Problem reported
11976         by Larry Jones in
11977         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
11978
11979 2006-06-21  Simon Josefsson  <jas@extundo.com>
11980
11981         * tests/test-getaddrinfo.c: New file.
11982
11983         * modules/getaddrinfo-tests: New file.
11984
11985         * MODULES.html.sh: Add inet_pton.
11986
11987         * modules/inet_pton: New file.
11988
11989 2006-06-21  Simon Josefsson  <jas@extundo.com>
11990
11991         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
11992         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
11993         of using the (limited) gnulib implementation on Windows XP.
11994
11995         * m4/inet_pton.m4: New file.
11996
11997 2006-06-21  Simon Josefsson  <jas@extundo.com>
11998
11999         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
12000         variable.
12001
12002         * lib/socket_.h: Don't define WINVER.
12003
12004         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
12005         slightly modified to work in gnulib.
12006
12007 2006-06-21  Simon Josefsson  <jas@extundo.com>
12008
12009         * doc/gnulib.texi (Windows sockets): Add.
12010
12011 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
12012
12013         * lib/read-file.c (fread_file): Start with buffer allocation of
12014         0 bytes rather than 1 byte; this simplifies the code.
12015         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
12016         code to free buffer and save/restore errno.
12017         (internal_read_file): Remove unused local.
12018
12019 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
12020
12021         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
12022         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
12023         Problem reported by Denis Excoffier in
12024         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
12025
12026 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
12027
12028         * modules/sys_socket, modules/socklen: Include sys/types since
12029         FreeBSD 4.x's sys/socket.h needs it.
12030
12031 2006-06-19  Simon Josefsson  <jas@extundo.com>
12032
12033         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
12034
12035 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
12036
12037         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
12038
12039 2006-06-19  Bruno Haible  <bruno@clisp.org>
12040
12041         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
12042         and FULL_PATH_INTTYPES_H in angle brackets.
12043         Reported by Mark D. Baushke <mdb@gnu.org>.
12044
12045 2006-06-17  Eric Blake  <ebb9@byu.net>
12046
12047         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
12048         errno.
12049
12050 2006-06-17  Bruno Haible  <bruno@clisp.org>
12051
12052         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
12053         <sys/inttypes.h>.
12054
12055 2006-06-17  Bruno Haible  <bruno@clisp.org>
12056
12057         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
12058         whether errno is declared. Assume <errno.h> declares errno.
12059
12060 2006-06-17  Bruno Haible  <bruno@clisp.org>
12061
12062         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
12063
12064 2006-06-17  Bruno Haible  <bruno@clisp.org>
12065
12066         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
12067         problem on Solaris 2.5.1.
12068
12069 2006-06-16  Eric Blake  <ebb9@byu.net>
12070
12071         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
12072         * lib/unicodeio.c [!defined errno]: Likewise.
12073         * lib/strtol.c [!defined errno]: Likewise.
12074         * lib/strtod.c [!defined errno]: Likewise.
12075
12076 2006-06-15  Eric Blake  <ebb9@byu.net>
12077
12078         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
12079
12080 2006-06-15  Eric Blake  <ebb9@byu.net>
12081
12082         * config/srclist.txt (ssize_t.m4): Lose sync.
12083
12084 2006-06-15  Bruno Haible  <bruno@clisp.org>
12085
12086         * modules/stdint (Files): Include m4/full-header-path.m4,
12087         m4/size_max.m4, m4/wchar_t.m4.
12088         (Makefile.am): Many more substitutions.
12089         * modules/stdint-tests: New file.
12090         * tests/test-stdint.c: New file.
12091
12092 2006-06-15  Bruno Haible  <bruno@clisp.org>
12093
12094         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
12095         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
12096         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
12097         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
12098         gl_CHECK_TYPE_SAME): New macros.
12099
12100 2006-06-15  Bruno Haible  <bruno@clisp.org>
12101
12102         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
12103
12104 2006-06-15  Bruno Haible  <bruno@clisp.org>
12105
12106         * lib/stdint_.h: Rewritten to be fully auto-configured.
12107         Fixes bug on HP-UX/IA64.
12108
12109 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
12110
12111         * lib/getdate.y (__attribute__): Don't define if already defined.
12112         Problem reported by Larry Jones.
12113         * lib/utimens.c (__attribute__): Likewise.
12114
12115 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
12116
12117         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
12118         reported by Andreas Schwab.
12119
12120 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12121             Bruno Haible  <bruno@clisp.org>
12122
12123         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
12124         check for the declaration of strnlen and a run test that exposes the
12125         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
12126         rpl_strndup.
12127
12128 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12129             Bruno Haible  <bruno@clisp.org>
12130
12131         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
12132
12133 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12134
12135         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
12136         compile test, for Tru64 4.0D.
12137
12138 2006-05-28  Karl Berry  <karl@gnu.org>
12139
12140         * config/srclist.txt (printf-args.c): lose sync.
12141
12142 2006-05-26  Martin Lambers  <marlam@marlam.de>
12143
12144         * lib/getpass.c: Updates the test for the native W32 API, and adds
12145         missing includes, thus fixing compilation warnings.
12146
12147 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
12148
12149         * lib/exclude.c (exclude_fnmatch): New function.
12150         (excluded_file_name): Call exclude_fnmatch.
12151         * lib/exclude.h (excluded_file_name): New prototype
12152
12153 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
12154
12155         * lib/tempname.c (small_open, large_open): New macros.
12156         (__open, __open64) [!_LIBC]: Remove.
12157         (__gen_tempname): Use small_open and large_open instead of __open
12158         and __open64.  This fixes a portability bug on HP-UX 11.11i
12159         reported by Simon Wing-Tang in
12160         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
12161
12162 2006-05-24  Bruno Haible  <bruno@clisp.org>
12163
12164         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
12165         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
12166         Reported by Thorsten Maerz <torte@netztorte.de> via
12167         Aaron Stone <aaron@serendipity.cx>.
12168
12169 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
12170
12171         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
12172         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
12173         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
12174         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
12175         not really conditional on the cache.
12176         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
12177
12178 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
12179
12180         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
12181         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
12182         (my_usleep): Don't mishandle maximum value.
12183
12184 2006-05-19  Jim Meyering  <jim@meyering.net>
12185
12186         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
12187
12188 2006-05-17  Bruno Haible  <bruno@clisp.org>
12189
12190         Cygwin portability.
12191         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
12192
12193 2006-05-17  Bruno Haible  <bruno@clisp.org>
12194
12195         * lib/stdint_.h: Fix recognition of Cygwin.
12196
12197 2006-05-15  Bruno Haible  <bruno@clisp.org>
12198
12199         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
12200         on libtool patch by Ralf Wildenhues.
12201
12202 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
12203
12204         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
12205         test for C99 conformance; (bool) 0.5 is an integer constant
12206         expression, but (bool) -0.5 is not.  Problem reported by Fedor
12207         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
12208
12209 2006-05-11  Simon Josefsson  <jas@extundo.com>
12210
12211         * m4/xvasprintf.m4: Fix obvious typo.
12212
12213 2006-05-11  Jim Meyering  <jim@meyering.net>
12214
12215         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
12216         James Lemley.
12217
12218 2006-05-10  Simon Josefsson  <jas@extundo.com>
12219
12220         * lib/md4.c: Typo fix, update copyright years.
12221         (K1, K2): Don't use L because it turn computations into 64-bit on
12222         64-bit platforms.
12223
12224 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
12225
12226         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
12227         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
12228         unwanted sign propagation, e.g., on hosts with 64-bit int.
12229         There still are some problems with reeelly weird theoretical hosts
12230         (e.g., 33-bit int) but it's not worth worrying about now.
12231         * lib/sha1.c (rol): Likewise.
12232         (K1, K2, K3, K4): Remove unnecessary L suffix.
12233
12234 2006-05-10  Bruno Haible  <bruno@clisp.org>
12235
12236         * lib/des.c: Cast to avoid warnings.
12237
12238 2006-05-09  Bruno Haible  <bruno@clisp.org>
12239
12240         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
12241         (Depends-on): Depend also on xsize, stdarg.
12242         (configure.ac): Add gl_XVASPRINTF.
12243
12244 2006-05-09  Bruno Haible  <bruno@clisp.org>
12245
12246         * m4/xvasprintf.m4: New file.
12247
12248 2006-05-09  Bruno Haible  <bruno@clisp.org>
12249
12250         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
12251         (EOVERFLOW): Define fallback value.
12252         (xstrcat): New function.
12253         (xvasprintf): Recognize the special case of a string concatenation.
12254
12255 2006-05-08  Eric Blake  <ebb9@byu.net>
12256
12257         * gnulib-tool (func_version): Base copyright year on CVS date.
12258         (func_emit_copyright_notice): New function.
12259         (func_emit_lib_Makefile_am): Use it.
12260         (func_emit_tests_Makefile_am): Likewise.
12261         (func_import): Likewise.
12262
12263 2006-05-08  Bruno Haible  <bruno@clisp.org>
12264
12265         * modules/stdarg: New file.
12266         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
12267
12268 2006-05-08  Bruno Haible  <bruno@clisp.org>
12269
12270         * m4/stdarg.m4: New file, from GNU gettext.
12271
12272 2006-05-08  Bruno Haible  <bruno@clisp.org>
12273
12274         * config/srclist.txt (build-aux/config.rpath): different from latest
12275         release.
12276
12277 2006-05-08  Bruno Haible  <bruno@clisp.org>
12278
12279         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
12280
12281 2006-05-05  Jim Meyering  <jim@meyering.net>
12282
12283         * m4/warning.m4: New file, derived from bison's file by the same name.
12284
12285 2006-05-03  Bruno Haible  <bruno@clisp.org>
12286
12287         * lib/stdint_.h: Shorter URL.
12288         * lib/inttypes.h: Likewise.
12289
12290 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
12291
12292         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
12293
12294 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
12295
12296         * lib/verify.h: Document the internals better.  Most of this change
12297         was written by Bruno Haible.
12298
12299 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
12300
12301         * doc/verify.texi: New file, partly based on a proposal by
12302         Bruno Haible.
12303
12304 2006-05-02  Bruno Haible  <bruno@clisp.org>
12305
12306         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
12307         test from here...
12308         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
12309
12310 2006-04-29  Bruno Haible  <bruno@clisp.org>
12311
12312         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
12313         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
12314
12315 2006-04-29  Bruno Haible  <bruno@clisp.org>
12316
12317         * gnulib-tool: Make --update option actually work.
12318
12319 2006-04-29  Bruno Haible  <bruno@clisp.org>
12320
12321         * doc/gcd.texi: New file.
12322         * doc/gnulib.texi: Include it.
12323
12324 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
12325
12326         * lib/getdate.y (get_date): When adding relative date, start with the
12327         initial time, not with the result of the first mktime call.
12328
12329 2006-04-25  Bruno Haible  <bruno@clisp.org>
12330
12331         * gnulib-tool (func_import): Output the include directives in three
12332         blocks, sorted separately.
12333         Reported by Ben Pfaff <blp@cs.stanford.edu>.
12334
12335 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
12336
12337         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
12338         to define main with arguments, for C++.  Reported by Eric Blake.
12339         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
12340         Prefer 'int main ()' to 'int main (void)', for C++.
12341         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
12342         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
12343         for 'main', for C99 and C++.
12344
12345 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
12346
12347         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
12348         Don't assume that exit status -1 is valid.
12349         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
12350         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
12351         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
12352         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
12353         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
12354         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
12355         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
12356         functions can be used without declaring them, or that you can
12357         exit with status -1.
12358         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
12359
12360 2006-04-24  Karl Berry  <karl@gnu.org>
12361
12362         * config/srclist.txt (longdouble.m4): sync lost.
12363
12364 2006-04-24  Eric Blake  <ebb9@byu.net>
12365
12366         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
12367
12368 2006-04-24  Bruno Haible  <bruno@clisp.org>
12369
12370         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
12371         poll() implementation in AIX.
12372         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12373
12374 2006-04-24  Bruno Haible  <bruno@clisp.org>
12375
12376         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
12377         assigned exactly once.
12378
12379 2006-04-23  Claudio Fontana  <claudio@gnu.org>
12380             Bruno Haible  <bruno@clisp.org>
12381
12382         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
12383         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
12384         for AM_CPPFLAGS.
12385
12386 2006-04-23  Bruno Haible  <bruno@clisp.org>
12387
12388         * modules/copy-file: Depend on unistd.
12389         * modules/execute: Likewise.
12390         * modules/fatal-signal: Likewise.
12391         * modules/findprog: Likewise.
12392         * modules/mkdtemp : Likewise.
12393         * modules/pipe: Likewise.
12394         * modules/wait-process: Likewise.
12395
12396 2006-04-23  Bruno Haible  <bruno@clisp.org>
12397
12398         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
12399         condition was already detected.
12400         Reported by Ben Pfaff <blp@cs.stanford.edu>.
12401
12402 2006-04-23  Bruno Haible  <bruno@clisp.org>
12403
12404         * lib/copy-file.c: Include <unistd.h> unconditionally.
12405         * lib/execute.c: Likewise.
12406         * lib/fatal-signal.c: Likewise.
12407         * lib/findprog.c: Likewise.
12408         * lib/mkdtemp.c: Likewise.
12409         * lib/pipe.h: Likewise.
12410         * lib/pipe.c: Likewise.
12411         * lib/wait-process.h: Likewise.
12412
12413 2006-04-23  Bruno Haible  <bruno@clisp.org>
12414
12415         * gnulib-tool (func_usage): Fix --import description. Document
12416         --update.
12417         (func_import): Create temporary file in a temporary directory, if
12418         --dry-run is specified. Silence errors from 'grep' when there are no
12419         m4 files in $m4dir.
12420         (func_create_testdir): Silence errors from 'grep' when there are no
12421         m4 files in $m4dir.
12422         Reported by Karl Berry <karl@freefriends.org>.
12423
12424 2006-04-20  Bruno Haible  <bruno@clisp.org>
12425
12426         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
12427         one argument, so that the code will be portable to Autoconf 2.60.
12428         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
12429         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
12430         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
12431
12432 2006-04-19  Derek Price  <derek@ximbiot.com>
12433             Eric Blake  <ebb9@byu.net>
12434
12435         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
12436         rather than "/full/path.h".  Update comment to match.  Shorten &
12437         generalize m4_translit call via AS_TR_CPP.
12438
12439 2006-04-19  Derek Price  <derek@ximbiot.com>
12440             Eric Blake  <ebb9@byu.net>
12441
12442         * lib/inttypes.h: Correct grammar in comment.
12443
12444 2006-04-18  Derek Price  <derek@ximbiot.com>
12445             Paul Eggert  <eggert@cs.ucla.edu>
12446
12447         * modules/inttypes: New file.
12448         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
12449
12450 2006-04-18  Derek Price  <derek@ximbiot.com>
12451             Paul Eggert  <eggert@cs.ucla.edu>
12452
12453         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
12454         New files.
12455
12456 2006-04-18  Derek Price  <derek@ximbiot.com>
12457             Paul Eggert  <eggert@cs.ucla.edu>
12458
12459         * lib/inttypes.h: New file.
12460         * lib/strtoimax.c: Assume <inttypes.h>.
12461
12462 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
12463
12464         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
12465         isn't mounted.  Problem reported by Kir Kolyshkin.
12466
12467 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
12468
12469         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
12470         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
12471         Derek R. Price.
12472         * lib/regex.h (RE_DUP_MAX): Update comment to match current
12473         implementation.
12474
12475 2006-04-12  Eric Blake  <ebb9@byu.net>
12476
12477         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
12478         is now done automatically by the corresponding Autoconf macro.
12479
12480 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
12481
12482         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
12483         time_r.h.
12484
12485 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
12486
12487         Merge regex changes from libc, removing some of our
12488         POSIX-conformance changes that were rejected and redoing them in a
12489         less-intrusive way.
12490
12491         * lib/regcomp.c (re_compile_internal, init_dfa):
12492         Length arg is now size_t, not Idx.  All uses changed.
12493         (peek_token): Forward decl now says internal_function.
12494         (__re_error_msgid, __re_error_msgid_idx):
12495         Now static rather than extern with attribute_hidden.
12496         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
12497         For some reason libc prefers K&R style defns for external functions.
12498         (regerror) [!defined _LIBC]: Likewise.
12499         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
12500         (seek_collating_symbol_entry, lookup_collation_sequence_value):
12501         (build_range_exp, build_collating_symbol):
12502         Use K&R-style defn.
12503         (re_compile_fastmap): Use '\0' to memset, not 0.
12504         (utf8_sb_map): Make the calculations more obvious.
12505         (init_dfa, parse_bracket_exp, build_charclass_op):
12506         Call calloc and cast result, as glibc does.
12507         (init_word_char, fetch_token, peek_token, peek_token_bracket):
12508         (build_range_exp, build_collating_symbol):
12509         Now internal functions.
12510
12511         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
12512
12513         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
12514         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
12515         Don't depend on VMS; depend on __VMS instead, for POSIX
12516         namespace cleanness.
12517         (regoff_t): Define to ssize_t, not long int.
12518
12519         Remove the REG_ macros named below.  Instead, make the old names
12520         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
12521         __USE_GNU_REGEX.
12522         (REG_BACKSLASH_ESCAPE_IN_LISTS):
12523         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
12524         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
12525         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
12526         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
12527         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
12528         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
12529         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
12530         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
12531         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
12532         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
12533         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
12534         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
12535         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
12536         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
12537         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
12538         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
12539         (REG_NREGS):
12540         Remove.  All uses replaced by the old RE_* names.
12541         (RE_BACKSLASH_ESCAPE_IN_LISTS):
12542         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
12543         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
12544         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
12545         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
12546         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
12547         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
12548         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
12549         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
12550         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
12551         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
12552         Don't bother having these macros be independent of each others'
12553         values, since they no longer exist in the POSIX name space.
12554
12555         Rename the following member names back to their old names,
12556         unless !__USE_GNU_REGEX.  All uses changed back.
12557         (buffer): Renamed from re_buffer.
12558         (allocated): Renamed from re_allocated.
12559         (used): Renamed from re_used.
12560         (syntax): Renamed from re_syntax.
12561         (fastmap): Renamed from re_fastmap.
12562         (translate): Renamed from re_translate.
12563         (can_be_null): Renamed from re_can_be_null.
12564         (regs_allocated): Renamed from re_regs_allocated.
12565         (fastmap_accurate): Renamed from re_fastmap_accurate.
12566         (no_sub): Renamed from re_no_sub.
12567         (not_bol): Renamed from re_not_bol.
12568         (not_eol): Renamed from re_not_eol.
12569         (newline_anchor): Renamed from re_newline_anchor.
12570         (num_regs): Renamed from rm_num_regs.
12571         (start): Renamed from rm_start.
12572         (end): Renamed from rm_end.
12573
12574         (free_state): Move up a bit.
12575
12576         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
12577         #define to be empty.
12578         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
12579         when that is what is intended.
12580         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
12581         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
12582         (MAX): New macro.
12583         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
12584         All uses changed back to re_malloc, etc.  It's now the caller's
12585         responsibility to check for overflow; all callers changed.
12586         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
12587         (re_x2nrealloc): Remove.
12588         (free_state): Remove decl.
12589
12590         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
12591         (re_set_registers, re_exec):
12592         Use K&R-style defn.
12593
12594         2006-01-31  Roland McGrath  <roland@redhat.com>
12595
12596         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
12597         Reported by Mike Frysinger <vapier@gentoo.org>.
12598
12599         2006-01-15  Andreas Jaeger  <aj@suse.de>
12600
12601         [BZ #1950]
12602         * lib/regex_internal.c (re_string_reconstruct): Adjust for
12603         build_wcs_upper_buffer change.
12604         (build_wcs_upper_buffer): Change return type.
12605
12606         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
12607
12608         * lib/regex_internal.h: Include <stdint.h> if available.
12609
12610         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
12611
12612         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
12613
12614         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
12615
12616         * lib/regcomp.c: Adjust for changed secondary hash function.
12617
12618         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
12619
12620         * lib/regex.h: Pretty printing.
12621         Clean up namespace a bit.
12622
12623         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
12624
12625         * lib/regexec.c (update_cur_sifted_state, check_arrival,
12626         check_arrival_add_next_nodes): Avoid using uninitialized variable.
12627
12628         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
12629                     Ulrich Drepper  <drepper@redhat.com>
12630
12631         [BZ #1302]
12632         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
12633         changed.
12634         (bitset_word_t): Renamed from bitset_word.  All uses changed.
12635
12636         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
12637
12638         [BZ #281]
12639         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
12640         * lib/regcomp.c: Remove unnecessary uses of
12641         unsigned RE_TRANSLATE_TYPE.
12642         * lib/regex_internal.h: Likewise.
12643         * lib/regex_internal.c: Likewise.
12644         * lib/regexec.c: Likewise.
12645         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
12646
12647         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
12648
12649         * lib/regexec.c (find_recover_state): Remove unnecessary
12650         initialization.
12651         (transit_state_bkref): Make DFA a const pointer.
12652         (get_subexp): Likewise.
12653         (check_arrival): Likewise.
12654         (update_cur_sifted_state): Likewise.
12655         (re_search_internal): Likewise.
12656         (prune_impossible_nodes): Likewise.
12657         (acquire_init_state_context): Likewise.
12658         (proceed_next_node): Likewise.
12659         (set_regs): Likewise.
12660         (free_fail_stack_return): Likewise.
12661         (check_arrival_expand_ecl): Mark DFA parameter as const.
12662         (check_arrival_expand_ecl_sub): Likewise.
12663         (check_subexp_limits): Likewise.
12664         (sub_epsilon_src_nodes):  Likewise.
12665         (add_epsilon_src_nodes):  Likewise.
12666         (merge_state_array): Likewise.
12667         (update_regs): Likewise.
12668         (build_trtable): Likewise.
12669         (sift_states_backward): Mark MCTX parameter as const.
12670         (build_sifted_states): Likewise.
12671         (update_cur_sifted_state): Likewise.
12672         (sift_states_mkref): Likewise.
12673         (check_arrival_expand_ecl): Mark eclosure as const.
12674         (check_dst_limits_calc_pos_1): Likewise.
12675         * lib/regex_internal.h (re_match_context_t): Make dfa a const
12676         pointer.
12677
12678         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
12679
12680         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
12681         (transit_state_sb): Likewise.
12682         (transit_state_mb): Likewise.
12683         (sift_states_iter_mb): Likewise.
12684         (check_arrival_add_next_nodes): Likewise.
12685         (check_node_accept_bytes): Change first parameter to pointer-to-const.
12686         [_LIBC] (re_search_2_stub): Use mempcpy.
12687
12688         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
12689         mbrtowc for very simple UTF-8 case.
12690
12691         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
12692         a pointer-to-const.
12693         (re_acquire_state_context): Likewise.
12694         * lib/regex_internal.h: Adjust prototypes.
12695
12696         * lib/regex.c: Prevent using C++ compilers.
12697
12698         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
12699         (re_acquire_state_context): Likewise.
12700
12701 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
12702
12703         * modules/regex (Depends-on): Add ssize_t.
12704
12705 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
12706
12707         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
12708         translation table.
12709
12710 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
12711
12712         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
12713
12714 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
12715             Bruno Haible  <bruno@clisp.org>
12716
12717         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
12718         <sys/types.h> and <inttypes.h>.
12719
12720 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12721
12722         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
12723         `__error_t_defined', so argp.h will not typedef the former.
12724
12725 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
12726
12727         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
12728         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
12729         glibc names.  Even if glibc is changed to conform to POSIX, the
12730         traditional names will be available anyway, since regex depends on
12731         the extensions module.  Also, fix a longstanding typo in the
12732         implementation of Spencer ERE test #75 from grep 2.3.  Problems
12733         reported by Emanuele Giaquinta.  Also, change sense of cached
12734         variable, so that the message makes sense.
12735
12736 2006-03-24  Simon Josefsson  <jas@extundo.com>
12737
12738         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
12739         including some doc fixes.
12740         (base64_encode_alloc): Fix +1 bug on allocation failures.
12741
12742 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12743
12744         * lib/base64.c (base64_encode): Do not read past end of array with
12745         unsanitized input on systems with CHAR_BIT > 8.
12746
12747 2006-03-24  Eric Blake  <ebb9@byu.net>
12748
12749         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
12750
12751 2006-03-22  Karl Berry  <karl@gnu.org>
12752
12753         * config/srclist.txt (*setenv.[ch]): get from coreutils.
12754         * config/srclistvars.sh (COREUTILS): new var.
12755
12756 2006-03-17  Jim Meyering  <jim@meyering.net>
12757
12758         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
12759         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
12760
12761 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
12762
12763         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
12764         no longer needs it.  Instead, check that regoff_t is as least
12765         as wide as ptrdiff_t.
12766
12767         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
12768         so that our regex.h stays compatible with the installed regex.
12769         This is helpful for installers who configure --without-included-regex.
12770         Problem reported by Emanuele Giaquinta.
12771
12772 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
12773
12774         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
12775         Typedef to long int, not to off_, as POSIX will likely change
12776         in that direction.
12777
12778 2006-03-15  Eric Blake  <ebb9@byu.net>
12779
12780         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
12781
12782 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
12783
12784         * lib/argp-help.c (validate_uparams): Fix typo
12785         * lib/argp-parse.c (argp_default_options): Consistently begin help
12786         messages with a lowercase letter.
12787
12788 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
12789
12790         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
12791         overrun buffers and shouldn't be used (much as gets shouldn't be
12792         used).
12793         * lib/time_r.c (asctime_r, ctime_r): Likewise.
12794
12795 2006-03-08  Simon Josefsson  <jas@extundo.com>
12796
12797         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
12798         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12799
12800 2006-03-08  Simon Josefsson  <jas@extundo.com>
12801
12802         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
12803         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12804
12805 2006-03-08  Simon Josefsson  <jas@extundo.com>
12806
12807         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
12808         signal that configure disabled the device.
12809
12810 2006-03-08  Simon Josefsson  <jas@extundo.com>
12811
12812         * build-aux/maint.mk: Fix refresh-po, to handle no translated
12813         languages.
12814
12815 2006-03-07  Simon Josefsson  <jas@extundo.com>
12816
12817         * modules/getopt (Depends-on): Add unistd.
12818
12819         * modules/unistd: New file.
12820
12821 2006-03-07  Simon Josefsson  <jas@extundo.com>
12822
12823         * modules/gc-random: New file.
12824
12825 2006-03-07  Simon Josefsson  <jas@extundo.com>
12826
12827         * m4/unistd_h.m4: New file.
12828
12829 2006-03-07  Simon Josefsson  <jas@extundo.com>
12830
12831         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
12832         test to be side-effect free by storing the result in the cache
12833         variable gl_cv_lib_readline, and moving the assignment of
12834         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
12835         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
12836
12837 2006-03-07  Simon Josefsson  <jas@extundo.com>
12838
12839         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
12840         error on missing devices (the functions will return an error).
12841
12842         * m4/gc.m4: Move random stuff to gc-random.m4
12843
12844 2006-03-07  Simon Josefsson  <jas@extundo.com>
12845
12846         * lib/unistd_.h: New file.
12847
12848 2006-03-07  Simon Josefsson  <jas@extundo.com>
12849
12850         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
12851
12852 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
12853
12854         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
12855         Problem reported by Juan Manuel Guerrero.
12856
12857 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
12858
12859         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
12860         the unistd module.
12861         * lib/getlogin_r.c: Likewise.
12862         * lib/getlogin_r.h: Likewise.
12863         * lib/glob.c: Likewise.
12864         * lib/pagealign_alloc.c: Likewise.
12865         * lib/unistd_.h: Remove; no longer needed.
12866
12867 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
12868
12869         * MODULES.html.sh (Support for systems lacking POSIX:2001):
12870         Add unistd.
12871         * modules/c-stack (Depends-on): Add unistd.
12872         * modules/getlogin_r: Likewise.
12873         * modules/glob: Likewise.
12874         * modules/pagealign_alloc: Likewise.
12875         * modules/unistd (Files): Remove lib/unistd_.h.
12876         (EXTRA_DIST): Remove.
12877         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
12878         need unistd_.h.
12879         (MOSTLYCLEANFILES): Remove unistd.h-t.
12880
12881 2006-03-03  Simon Josefsson  <jas@extundo.com>
12882
12883         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
12884
12885 2006-03-03  Simon Josefsson  <jas@extundo.com>
12886
12887         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
12888         libidn and bison.
12889
12890 2006-03-03  Simon Josefsson  <jas@extundo.com>
12891
12892         * build-aux/maint.mk: Add indent target.
12893
12894 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
12895
12896         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
12897         our replacement poll.h in any case, to avoid a differing
12898         declaration from a system header.  Seen on AIX.
12899
12900 2006-03-01  Simon Josefsson  <jas@extundo.com>
12901
12902         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
12903         <kasal@ucw.cz>.
12904
12905 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
12906
12907         * modules/gettime (Depends-on): Add extensions module.
12908         * modules/nanosleep (Depends-on): Likewise.
12909         * modules/settime (Depends-on): Likewise.
12910
12911 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
12912
12913         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
12914         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
12915         pedantically.
12916         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
12917         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
12918
12919         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
12920         not "==".  Reported by Ralf Wildenhues.
12921
12922 2006-03-01  Karl Berry  <karl@gnu.org>
12923
12924         * doc/Copyright/request-*: new files, synced from gnuorg.
12925
12926 2006-03-01  Karl Berry  <karl@gnu.org>
12927
12928         * config/srclist.txt (Copyright/*): new entries.
12929
12930 2006-02-28  Simon Josefsson  <jas@extundo.com>
12931
12932         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
12933
12934 2006-02-27  Simon Josefsson  <jas@extundo.com>
12935
12936         * lib/base64.h: Indent #define's.  From Jim Meyering
12937         <jim@meyering.net>.
12938
12939 2006-02-27  Jim Meyering  <jim@meyering.net>
12940
12941         Revert the change of 2006-02-24, so these files can continue
12942         to be sync'd from gettext.
12943         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
12944         of `config.h'.
12945
12946 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
12947
12948         * modules/intprops: New file.
12949         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
12950         Add intprops.
12951         * modules/getloadavg (Files): Remove lib/intprops.h.
12952         (Depends-on): Add intprops.
12953         * modules/human: Likewise.
12954         * modules/inttostr: Likewise.
12955         * modules/openat: Likewise.
12956         * modules/sig2str: Likewise.
12957         * modules/userspec: Likewise.
12958         * modules/utimecmp: Likewise.
12959         * modules/xnanosleep: Likewise.
12960         * modules/xstrtol: Likewise.
12961
12962 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
12963
12964         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
12965         * modules/lock-tests (TESTS): Use $(EXEEXT).
12966         * modules/tls-tests: Likewise.
12967         * modules/argp-tests: Likewise.
12968         (check_PROGRAMS): New var, replacing...
12969         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
12970
12971 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12972
12973         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
12974         `config.h'.
12975
12976 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
12977
12978         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
12979
12980 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
12981
12982         Sync from coreutils.
12983         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
12984         gl_CHDIR_SAFER.
12985
12986 2006-02-22  Jim Meyering  <jim@meyering.net>
12987
12988         Sync from coreutils.
12989         * m4/chdir-safer.m4: New file.
12990
12991 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
12992
12993         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
12994         AT_FDCWD exceeds INT_MAX.
12995         * lib/openat.h (AT_FDCWD): Likewise.
12996
12997 2006-02-17  Eric Blake  <address@hidden>
12998
12999         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
13000
13001 2006-02-16  Simon Josefsson  <jas@extundo.com>
13002
13003         * modules/getaddrinfo (Depends-on): Add sys_socket.
13004
13005 2006-02-15  Simon Josefsson  <jas@extundo.com>
13006
13007         * build-aux/maint.mk: Add dsyntax-check rule.
13008
13009 2006-02-15  Eric Blake  <ebb9@byu.net>
13010
13011         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
13012         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
13013         'present but cannot compile' warnings on cygwin.
13014         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
13015         use ws2tcpip.h if sys/socket.h works.
13016         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
13017         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
13018
13019 2006-02-14  Simon Josefsson  <jas@extundo.com>
13020
13021         * modules/maintainer-makefile (Files): Rename.
13022
13023         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
13024         and (the local) Makefile.cfg to maint-cfg.mk.
13025
13026         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
13027         to the latter.
13028
13029         * modules/maintainer-makefile: New module.
13030
13031         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
13032         severaly stripped to make it possible to build it up from scratch
13033         with reliable tests.
13034
13035         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
13036         fixes to permit overriding the default actions when configure and
13037         makefile are not available.
13038
13039 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
13040
13041         Sync from coreutils.
13042         * modules/lstat (Depends-on): Don't depend on xalloc.
13043         (License): Change from GPL to LGPL, since this is now simply a
13044         replacement for a libc function.
13045
13046 2006-02-14  Jim Meyering  <jim@meyering.net>
13047
13048         Sync from coreutils.
13049
13050         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
13051         failure on deficient systems, and simplify gnulib lgpl dependencies.
13052         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
13053         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
13054
13055         * lib/xalloc-die.c: Remove unused definition of N_.
13056
13057 2006-02-14  Jim Meyering  <jim@meyering.net>
13058
13059         Sync from coreutils.
13060         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
13061         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
13062         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
13063         double-quote uses of that variable, to accommodate the rare case in
13064         which getmntent is available in none of the libraries checked.  This
13065         happens at least on FreeBSD 5.0.
13066
13067 2006-02-13  Simon Josefsson  <jas@extundo.com>
13068
13069         * gnulib-tool (Usage): Fix --import, from
13070         karl@freefriends.org (Karl Berry).
13071
13072 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
13073
13074         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
13075
13076 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
13077
13078         * lib/argp-namefrob.h: Restore changes accidentally lost during the
13079         "autoupdate" on 2005-12-12.
13080
13081 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
13082
13083         * modules/closeout (Depends-on): Remove atexit.
13084
13085 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
13086
13087         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
13088         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
13089
13090 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
13091
13092         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
13093         __EXTENSIONS__ if this causes compilation to fail.  Problem
13094         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
13095         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
13096
13097 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
13098
13099         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
13100         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
13101         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
13102         All uses changed.
13103
13104 2006-01-26  Simon Josefsson  <jas@extundo.com>
13105
13106         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
13107         prototype is visible on mingw32.
13108
13109         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
13110         for mingw32.
13111
13112         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
13113         mingw32).
13114
13115 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
13116
13117         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
13118         attempt to open for write; this always fails, at least on POSIX
13119         hosts.  This reinstates the 2006-01-09 change, which was
13120         inadvertently removed.
13121
13122 2006-01-26  Bruno Haible  <bruno@clisp.org>
13123
13124         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
13125         Reported by Paul Eggert.
13126
13127 2006-01-26  Bruno Haible  <bruno@clisp.org>
13128             Paul Eggert  <eggert@cs.ucla.edu>
13129
13130         * lib/stdbool_.h (_Bool)
13131         [(! (defined __cplusplus || defined __BEOS__)
13132           && !defined __GNUC__
13133           && !(defined __HP_cc || defined __xlc__
13134                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
13135                || defined __sgi))]:
13136         #define to signed char in these cases too; this simplifies
13137         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
13138         etc., separately) and makes it more conservative.
13139
13140 2006-01-25  Simon Josefsson  <jas@extundo.com>
13141
13142         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
13143         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
13144         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
13145
13146 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
13147
13148         * lib/argp-namefrob.h: Bugfix. Remove stray #
13149
13150 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
13151
13152         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
13153         so that we test the test.
13154         Check for yet another HP-UX cc bug involving *bool |= bool.
13155
13156 2006-01-25  Karl Berry  <karl@gnu.org>
13157
13158         * config/srclist.txt (vasnprintf.c): sync lost.
13159
13160 2006-01-25  Jim Meyering  <jim@meyering.net>
13161
13162         Sync from the stable (b5) branch of coreutils:
13163
13164         * lib/fts.c (fts_children): Don't let close() clobber errno from
13165         failed fchdir().
13166
13167         * lib/fts.c (fts_stat): When following a symlink-to-directory,
13168         don't necessarily interpret stat-fails+lstat-succeeds as indicating
13169         a dangling symlink.  That can also happen at least for ELOOP.
13170         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
13171         FYI, this bug predates the inclusion of fts.c in coreutils.
13172
13173         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
13174         in their own block, so pre-c99 compilers don't object.
13175
13176         Avoid the double-free (first in fts_read, second in fts_close) that
13177         would occur when an `active' directory is made inaccessible (e.g.,
13178         via chmod a-x) during a traversal.
13179         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
13180         before returning.  Reproduce this failure by
13181         mkdir -p a/b; cd a; chmod a-x . b
13182         Reported by Stavros Passas.
13183
13184 2006-01-25  Jim Meyering  <jim@meyering.net>
13185
13186         * lib/fileblocks.c: Remove more useless parentheses.
13187         * lib/readutmp.h: Likewise.
13188
13189 2006-01-25  Bruno Haible  <bruno@clisp.org>
13190
13191         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
13192         warnings.
13193         Reported by Paul Eggert.
13194
13195 2006-01-25  Bruno Haible  <bruno@clisp.org>
13196
13197         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
13198         rid of a trap command. For Solaris sh.
13199         Reported by Mark D. Baushke <mdb@gnu.org>.
13200
13201 2006-01-24  Simon Josefsson  <jas@extundo.com>
13202
13203         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
13204         Bruno.
13205
13206 2006-01-24  Karl Berry  <karl@gnu.org>
13207
13208         * config/srclist.txt (argp-namefrob.h): sync lost.
13209
13210 2006-01-24  Jim Meyering  <jim@meyering.net>
13211
13212         * modules/openat (Files): Add lib/intprops.h.
13213         From Mark D. Baushke.
13214
13215 2006-01-24  Jim Meyering  <jim@meyering.net>
13216
13217         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
13218         Reported by Mark D. Baushke.
13219
13220 2006-01-24  Jim Meyering  <jim@meyering.net>
13221
13222         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
13223
13224 2006-01-24  Bruno Haible  <bruno@clisp.org>
13225
13226         * modules/strnlen (Maintainer): Change from glibc to all.
13227
13228 2006-01-24  Bruno Haible  <bruno@clisp.org>
13229
13230         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
13231         Patch by Paul Eggert.
13232
13233 2006-01-24  Bruno Haible  <bruno@clisp.org>
13234
13235         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
13236         already has it.
13237         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
13238         2005-11-26.
13239
13240         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
13241         'signed char' to avoid problems with the built-in _Bool type.
13242         Reported by Paul Eggert on 2005-11-26.
13243
13244 2006-01-24  Bruno Haible  <bruno@clisp.org>
13245
13246         * gnulib-tool (func_import): Avoid constructing complicated sed
13247         expressions inside backquote.
13248         Report and solution by Mark D. Baushke <mdb@gnu.org>.
13249
13250 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
13251
13252         These changes imported from libc.
13253         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
13254         test and two separate function calls.
13255         * lib/strndup.c (__strndup): Add libc_hidden_def.
13256
13257 2006-01-23  Simon Josefsson  <jas@extundo.com>
13258
13259         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
13260         Remove the test_*_SOURCES variable: automake infers it by default.
13261         * modules/tls-tests: Likewise.
13262
13263 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
13264
13265         Work around porting bugs reported by Dieter in
13266         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
13267         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
13268         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
13269         Include "getopt.h" first, to check interface.
13270         (getenv): Declare only if defined HAVE_DECL_GETENV &&
13271         !HAVE_DECL_GETENV.
13272         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
13273         (__strndup): Revert to K&R-style function dfns, the glibc style.
13274         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
13275         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
13276         Include strnlen.h first, to get prototype properly.
13277         (strnlen): Renamed from __strnlen.
13278         Remove weak alias.
13279
13280 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
13281
13282         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
13283
13284 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
13285
13286         * config/srclist.txt: Adjust to reflect glibc reorganization.
13287         This affects only comments.
13288
13289 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
13290
13291          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
13292          Reported by Bruce Korb <bkorb@gnu.org>.
13293
13294 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
13295
13296         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
13297         to pacify gcc -Wswitch-default.
13298
13299 2006-01-22  Bruno Haible  <bruno@clisp.org>
13300
13301         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
13302         temporary buffer for sprintf, take into account the precision also
13303         for 'd', 'i', 'u', 'o', 'x', 'X'.
13304
13305 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
13306
13307         * modules/argp-tests: New module
13308         * tests/test-argp.c: New file
13309         * tests/test-argp-2.sh: New file
13310
13311 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
13312
13313         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
13314         (__argp_base_name): Removed
13315         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
13316         typo.
13317         (__argp_base_name): Provide macro definition or extern declaration
13318         depending on the configuration
13319
13320 2006-01-20  Simon Josefsson  <jas@extundo.com>
13321
13322         * modules/inet_ntop (Depends-on): Depend on sys_socket.
13323
13324 2006-01-20  Simon Josefsson  <jas@extundo.com>
13325
13326         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
13327
13328 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
13329
13330         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
13331         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
13332         Suggested by Bruno Haible.
13333
13334 2006-01-20  Karl Berry  <karl@gnu.org>
13335
13336         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
13337         until changes propagate, I guess.
13338
13339 2006-01-19  Simon Josefsson  <jas@extundo.com>
13340
13341         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
13342
13343 2006-01-19  Simon Josefsson  <jas@extundo.com>
13344
13345         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
13346
13347 2006-01-19  Simon Josefsson  <jas@extundo.com>
13348
13349         * gnulib-tool: Set check_PROGRAMS.
13350
13351         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
13352         modules/des-tests, modules/gc-arcfour-tests,
13353         modules/gc-arctwo-tests, modules/gc-des-tests,
13354         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
13355         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
13356         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
13357         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
13358         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
13359         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
13360         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
13361         test_*_SOURCES.
13362
13363 2006-01-18  Simon Josefsson  <jas@extundo.com>
13364
13365         * modules/socklen (Depends-on): Depend on sys_socket.
13366
13367 2006-01-18  Simon Josefsson  <jas@extundo.com>
13368
13369         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
13370         modules/des-tests, modules/gc-arcfour-tests,
13371         modules/gc-arctwo-tests, modules/gc-des-tests,
13372         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
13373         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
13374         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
13375         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
13376         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
13377         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
13378         $(EXEEXT) to automake TESTS variable, for mingw32.
13379
13380 2006-01-17  Simon Josefsson  <jas@extundo.com>
13381
13382         * modules/socklen (Include): Need sys/socket.h.
13383
13384 2006-01-17  Bruno Haible  <bruno@clisp.org>
13385
13386         * modules/ssize_t (Include): Add <sys/types.h>.
13387
13388 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
13389
13390         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
13391         it's not portable and it doesn't work with cross-compiles.
13392         Problem reported by Bruno Haible.  Fix missing-$ typo in
13393         'test "gl_cv_ignore_unused_libraries" ...' that prevented
13394         -zignore from being used with Sun's C compiler.
13395
13396 2006-01-12  Simon Josefsson  <jas@extundo.com>
13397
13398         * lib/base64.c: Fix warning, reported by Bruno Haible
13399         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
13400
13401 2006-01-12  Bruno Haible  <bruno@clisp.org>
13402
13403         * modules/ldd: New file.
13404         * build-aux/ldd.sh.in: New file.
13405         * MODULES.html.sh (Support for building libraries and executables): Add
13406         ldd.
13407
13408 2006-01-12  Bruno Haible  <bruno@clisp.org>
13409
13410         * m4/ldd.m4: New file.
13411
13412 2006-01-12  Bruno Haible  <bruno@clisp.org>
13413
13414         * gnulib-tool (func_import, func_create_testdir): Don't go into an
13415         endless loop while replacing $auxdir with build-aux.
13416
13417 2006-01-11  Simon Josefsson  <jas@extundo.com>
13418
13419         * lib/stdint_.h (SIZE_MAX): Add missing (.
13420
13421 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
13422
13423         Sync from coreutils.
13424         * lib/md5.c: Fix commentary typos.
13425         (alignof, UNALIGNED_P): No need for a GCC-specific version.
13426         * lib/md5.h (__attribute__): Remove; unused.
13427         * lib/sha1.c: Fix commentary to match md5 better.
13428         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
13429         so that we don't need to worry about alignment.  All uses changed.
13430         This merges the 2005-10-28 md5 change into sha1.
13431
13432 2006-01-11  Jim Meyering  <jim@meyering.net>
13433
13434         Sync from coreutils.
13435         * lib/md5.c (OP): Fix spacing.
13436
13437 2006-01-11  Bruno Haible  <bruno@clisp.org>
13438
13439         Ensure automatic ordering between gl_LOCK and gl_ARGP.
13440         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
13441         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
13442
13443 2006-01-11  Bruno Haible  <bruno@clisp.org>
13444
13445         Ensure automatic ordering between gl_LOCK and gl_ARGP.
13446         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
13447         the "early" section as well.
13448
13449 2006-01-11  Bruno Haible  <bruno@clisp.org>
13450
13451         Avoid "ar: no archive members specified" error on MacOS X.
13452         * gnulib-tool (func_modules_add_dummy): New function.
13453         (func_import, func_create_testdir): Invoke it.
13454
13455 2006-01-11  Bruno Haible  <bruno@clisp.org>
13456
13457         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
13458         with $auxdir in AC_CONFIG_FILES statements.
13459
13460 2006-01-11  Bruno Haible  <bruno@clisp.org>
13461
13462         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
13463         Initialize also noinst_HEADERS to empty.
13464
13465 2006-01-11  Bruno Haible  <bruno@clisp.org>
13466
13467         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
13468         variables.
13469         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
13470         autoreconf.
13471
13472 2006-01-11  Bruno Haible  <bruno@clisp.org>
13473
13474         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
13475         overridable by the user.
13476         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
13477
13478 2006-01-10  Simon Josefsson  <jas@extundo.com>
13479
13480         * modules/sys_socket: New file.
13481
13482 2006-01-10  Simon Josefsson  <jas@extundo.com>
13483
13484         * m4/sys_socket_h.m4: New file.
13485
13486 2006-01-10  Simon Josefsson  <jas@extundo.com>
13487
13488         * lib/socket_.h: New file.
13489
13490 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
13491
13492         * modules/readutmp (Maintainer): Add myself.
13493
13494 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
13495
13496         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
13497         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
13498         People who are still concerned with buggy memcmp implementations
13499         can invoke gl_FUNC_MEMCMP themselves.
13500
13501 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
13502
13503         * lib/regex_internal.h (BITSET_WORD_BITS):
13504         Work around a bug in 64-bit PGC (before version 6.1-2), where the
13505         preprocessor mishandles large unsigned values as if they were signed.
13506         Problem reported by Claudio Fontana in
13507         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
13508
13509 2006-01-10  Jim Meyering  <jim@meyering.net>
13510
13511         Avoid the double-free (first in fts_read, second in fts_close) that
13512         would occur when an `active' directory is made inaccessible (e.g.,
13513         via chmod a-x) during a traversal.
13514         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
13515         before returning.  Reproduce this failure by
13516         mkdir -p a/b; cd a; chmod a-x . b
13517         Reported by Stavros Passas.
13518
13519         Sync from coreutils.
13520         * lib/sha1.c: Tweak grammar in a comment.
13521
13522 2006-01-10  Jim Meyering  <jim@meyering.net>
13523
13524         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
13525         Patch by Joerg Sonnenberger.
13526
13527 2006-01-10  Bruno Haible  <bruno@clisp.org>
13528
13529         * modules/readutmp: Depend on module free.
13530         * modules/strtok_r: Depend on module restrict.
13531
13532 2006-01-10  Bruno Haible  <bruno@clisp.org>
13533
13534         * modules/gettext (configure.ac): Add an invocation of
13535         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
13536
13537 2006-01-10  Bruno Haible  <bruno@clisp.org>
13538
13539         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
13540         Reported by Werner Lemberg <wl@gnu.org>.
13541
13542 2006-01-10  Bruno Haible  <bruno@clisp.org>
13543
13544         * lib/localcharset.c: Update from GNU gettext.
13545
13546 2006-01-10  Bruno Haible  <bruno@clisp.org>
13547
13548         * lib/argp.h (__const): Remove macro. Use const instead.
13549         * lib/argp-fmtstream.h (__const): Likewise.
13550         * lib/glob_.h (__const): Remove macro.
13551         * lib/glob-libc.h: Use const instead of __const.
13552
13553 2006-01-10  Bruno Haible  <bruno@clisp.org>
13554
13555         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
13556         variable.
13557         Needed to avoid an automake error regarding the 'gettext' module.
13558
13559 2006-01-09  Simon Josefsson  <jas@extundo.com>
13560
13561         * modules/inet_ntop (Depends-on): Add restrict.
13562
13563 2006-01-09  Simon Josefsson  <jas@extundo.com>
13564
13565         * modules/gc-rijndael-tests (License): Put under LGPL.
13566
13567         * modules/gc-des-tests (License): Likewise.
13568
13569         * modules/gc-arcfour-tests (License): Likewise.
13570
13571         * modules/gc-arctwo-tests (License): Likewise.
13572
13573         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
13574
13575         * modules/gc-hmac-sha1-tests (Files): Likewise.
13576
13577         * modules/gc-hmac-md5-tests (License): Likewise.
13578
13579         * modules/gc-sha1-tests (License): Likewise.
13580
13581         * modules/gc-md5-tests (License): Likewise.
13582
13583         * modules/gc-md4-tests (License): Likewise.
13584
13585         * modules/gc-md2-tests (License): Likewise.
13586
13587         * modules/gc-tests (License): Likewise.
13588
13589         * modules/des-tests (License): Likewise.
13590
13591         * modules/md4-tests (License): Likewise.
13592
13593         * modules/md2-tests (License): Likewise.
13594
13595 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
13596
13597         Sync from coreutils:
13598
13599         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
13600         * modules/lib-ignore: New file.
13601         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
13602         chdir-safer.m4, lchmod.m4.
13603         * modules/openat: Add mkdirat.c, openat-priv.h.
13604
13605 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
13606
13607         Sync from coreutils.
13608         * m4/lib-ignore.m4: New file.
13609         * m4/lchmod.m4: New file.
13610
13611 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
13612
13613         Sync from coreutils.
13614         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
13615         for write access: POSIX says that must fail.
13616         * lib/fts.c (diropen): Likewise.
13617         * lib/save-cwd.c (save_cwd): Likewise.
13618         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
13619         well, for minor improvements on hosts that lack O_DIRECTORY.
13620         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
13621         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
13622         Fall back on chown if open failed with EACCES.
13623
13624         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
13625         Report an error at compile-time if only a 1-second nominal clock
13626         resolution is found.
13627
13628         * lib/lchmod.h: New file.
13629         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
13630         (make_dir_parents): Use lchown rather than chown, and
13631         lchmod rather than chmod.
13632
13633         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
13634         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
13635         "proc" reported by n0dalus.
13636
13637         * lib/mountlist.c: Include <limits.h>.
13638         (dev_from_mount_options)
13639         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
13640         New function.  It no longer assumes "dev=" has the System V meaning
13641         on Linux (since it doesn't).  It also parses "dev=" more carefully.
13642         (read_file_system_list)
13643         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
13644         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
13645         dev= in that case.
13646
13647         * lib/posixtm.h (PDS_PRE_2000): New macro.
13648         * lib/posixtm.c (year): Arg is now syntax_bits rather than
13649         allow_century.  All usages changed.  Reject dates outside the range
13650         1969-1999 if PDS_PRE_2000 is used.
13651
13652 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
13653
13654         Sync from coreutils.
13655         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
13656         (Time of day items): Mention the possibility of leap seconds.
13657         Problem reported by Dr. David Alan Gilbert.
13658
13659 2006-01-09  Jim Meyering  <jim@meyering.net>
13660
13661         Sync from coreutils.
13662
13663         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
13664
13665         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
13666
13667         * lib/modechange.c (mode_compile): Reject an invalid mode string
13668         that starts with an octal digit.  From Andreas Gruenbacher.
13669
13670         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
13671         and dup to open_safer and dup_safer, respectively.
13672         (openat_permissive): Fix typo in comment.
13673
13674         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
13675         "gettext.h"; either no longer needed or are guaranteed by openat.h.
13676         (_): Remove; no longer needed.
13677         (openat): Renamed from rpl_openat; no need for rpl_openat
13678         since openat.h renames openat for us.
13679         Replace most of the body with a call to openat_permissive,
13680         to avoid duplicate code.
13681         Port to (probably hypothetical) environments were mode_t is
13682         wider than int.
13683         (openat_permissive): Require mode arg, so that we can check
13684         types better.  Put it just after flags.  Change cwd failure
13685         indicator from pointer-to-bool to pointer-to-errno-value.
13686         All callers changed.
13687         Invoke openat_save_fail and/or openat_restore_fail if
13688         cwd_errno is null, so that openat can call us.
13689         (openat_permissive, fdopendir, fstatat, unlinkat):
13690         Simplify errno handling to avoid some duplicate code,
13691         as it's OK to set errno on success.
13692         * lib/openat.h: Revamp code so that function macros depend on
13693         __OPENAT_PREFIX only, not also on AT_FDCWD.
13694         (openat_ro): Remove.  Caller changed to use openat_permissive.
13695         (openat_permissive): Now a macro, if not a function.
13696         (openat_restore_fail, openat_save_fail): Now always functions,
13697         since mkdirat needs them even if __OPENAT_PREFIX is defined.
13698
13699         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
13700         and openat.c.
13701         * lib/mkdirat.c: Include openat-priv.h.
13702         Remove definitions of macros defined therein.
13703         * lib/openat.c: Likewise.
13704
13705         * lib/mkdirat.c (mkdirat): New file and function.
13706         * lib/openat.h (mkdirat): Declare.
13707
13708         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
13709
13710         * lib/openat.h (openat_permissive): Declare.
13711         (openat_ro): Define.
13712
13713         * lib/openat.c (EXPECTED_ERRNO): New macro.
13714         (openat_permissive): New function -- used in remove.c rewrite.
13715         (all functions): Set errno just before returning, only if there
13716         was an actual failure.
13717         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
13718
13719         Emulate openat-family functions using Linux's procfs, if possible.
13720         Idea and some code based on Ulrich Drepper's glibc changes.
13721
13722         * lib/openat.c: (BUILD_PROC_NAME): New macro.
13723         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
13724         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
13725         before falling back on save_cwd and restore_cwd.
13726         (fdopendir, fstatat, unlinkat): Likewise.
13727
13728         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
13729         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
13730
13731         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
13732         as second argument to va_arg.  Otherwise, some versions of gcc
13733         warn that `if this code is reached, the program will abort'.
13734
13735 2006-01-09  Jim Meyering  <jim@meyering.net>
13736
13737         Sync from coreutils.
13738         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
13739         Require openat-priv.h.
13740
13741 2006-01-09  Bruno Haible  <bruno@clisp.org>
13742
13743         * modules/strnlen (Include): Use strnlen.h.
13744
13745 2006-01-09  Bruno Haible  <bruno@clisp.org>
13746
13747         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
13748
13749 2006-01-09  Bruno Haible  <bruno@clisp.org>
13750
13751         * lib/sysexit_.h (EX_OK): New macro.
13752         Suggested by Martin Lambers <marlam@marlam.de>.
13753
13754 2006-01-09  Bruno Haible  <bruno@clisp.org>
13755
13756         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
13757         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
13758
13759 2006-01-09  Bruno Haible  <bruno@clisp.org>
13760
13761         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
13762         numbers.
13763
13764 2006-01-09  Bruno Haible  <bruno@clisp.org>
13765
13766         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
13767         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
13768         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
13769         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
13770
13771 2006-01-09  Bruno Haible  <bruno@clisp.org>
13772
13773         * build-aux/javacomp.sh.in: New file, moved from lib/.
13774         * modules/javacomp-script (Files): Update.
13775         (configure.ac): Add AC_CONFIG_FILES invocation.
13776         (EXTRA_DIST): Remove variable.
13777
13778         * build-aux/javaexec.sh.in: New file, moved from lib/.
13779         * modules/javaexec (Files): Update.
13780         (configure.ac): Add AC_CONFIG_FILES invocation.
13781         (EXTRA_DIST): Remove javaexec.sh.in.
13782
13783         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
13784         * modules/csharpcomp-script (Files): Update.
13785         (configure.ac): Add AC_CONFIG_FILES invocation.
13786         (EXTRA_DIST): Remove variable.
13787
13788         * build-aux/csharpexec.sh.in: New file, moved from lib/.
13789         * modules/csharpexec (Files): Update.
13790         (configure.ac): Add AC_CONFIG_FILES invocation.
13791         (EXTRA_DIST): Remove csharpexec.sh.in.
13792
13793 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
13794
13795         Sync from coreutils.
13796
13797         Add POSIX ACL support
13798         * lib/acl.h (copy_acl, set_acl): Add declarations.
13799         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
13800         systems other than Linux.
13801         (chmod_or_fchmod): New function: use fchmod when possible,
13802         and chmod otherwise.
13803         (file_has_acl): Add a POSIX ACL implementation, with a
13804         Linux-specific subcase.
13805         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
13806         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
13807         acls are unsupported.
13808         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
13809         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
13810         are unsupported.
13811
13812 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
13813
13814         Sync from coreutils.
13815         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
13816
13817 2006-01-07  Bruno Haible  <bruno@clisp.org>
13818
13819         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
13820         gl_EARLY.
13821
13822 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
13823
13824         * lib/strftime.c (tzname): Don't declare if it is already #defined.
13825         Problem reported for Mingw by Mark Junker.
13826
13827 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
13828
13829         * README: Gnulib normally doesn't generate a tarball.
13830
13831 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
13832
13833         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
13834         long int, not int, for nanosecond counts, so that people who are
13835         used to POSIX struct timespec won't be surprised.  Reported by Jim
13836         Meyering.
13837
13838 2005-12-28  Bruno Haible  <bruno@clisp.org>
13839
13840         * build-aux/config.rpath: Update from GNU gettext.
13841
13842 2005-12-16  Jim Meyering  <jim@meyering.net>
13843
13844         * modules/fprintftime: New module.
13845         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
13846
13847 2005-12-16  Jim Meyering  <jim@meyering.net>
13848
13849         * m4/fprintftime.m4: New file.
13850
13851 2005-12-16  Jim Meyering  <jim@meyering.net>
13852
13853         * lib/fprintftime.c, lib/fprintftime.h: New files.
13854
13855 2005-12-15  Simon Josefsson  <jas@extundo.com>
13856
13857         * modules/socklen (configure.ac): Fix M4 macro name, to align with
13858         new m4/socklen.m4.
13859
13860 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
13861
13862         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
13863         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
13864
13865 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
13866
13867         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
13868         * lib/argp-help.c (fill_in_uparams): Check if the constructed
13869         struct uparams is valid. Fall back to the default values if it is
13870         not.
13871
13872 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
13873
13874         * modules/argp (Files): Add argp-pin.c
13875         (Depends-on): dirname
13876         (lib_SOURCES): Add argp-pin.c
13877
13878 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
13879
13880         * m4/argp.m4:  Check if program_invocation_name and
13881         program_invocation_short_name are declared and define appropriate
13882         macros if they are not.
13883
13884 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
13885
13886         * lib/argp-help.c (__argp_base_name): New function
13887         (__argp_short_program_name): Rewrite using __argp_base_name
13888         * lib/argp-namefrob.h: Define program_invocation_name and
13889         program_invocation_short_name if requested
13890         (__argp_base_name): Add prototype
13891         * lib/argp-parse.c (argp_def): Use gettext wrappers
13892         (argp_default_parser): Use __argp_base_name
13893         * lib/argp-pin.c: New file. Defines program_invocation_name and
13894         program_invocation_short_name on systems that lack them.
13895
13896 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
13897
13898         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
13899         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
13900         porting problem reported by Georg Schwarz in
13901         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
13902
13903 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
13904
13905         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
13906         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
13907         porting problem reported by Georg Schwarz in
13908         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
13909
13910 2005-12-05  Bruno Haible  <bruno@clisp.org>
13911
13912         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
13913         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
13914         Reported by Mark Junker <mjscod@gmx.de>.
13915
13916 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
13917
13918         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
13919         Use implementation from Albert Chin, with some
13920         comments/corrections by Stepan Kasal and myself.
13921
13922 2005-12-02  Bruno Haible  <bruno@clisp.org>
13923
13924         * gnulib-tool (func_import): Accept GPLed build tool modules when
13925         --lgpl is given.
13926         * modules/csharpcomp-script: New file.
13927         * modules/csharpcomp: Depend on it.
13928         * modules/javacomp-script: New file.
13929         * modules/javacomp: Depend on it.
13930         Suggested by Simon Josefsson.
13931
13932 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
13933
13934         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
13935         statement, to work around an HP-UX 10.20 compiler bug reported by
13936         Peter O'Gorman.
13937
13938 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
13939
13940         * modules/savedir (Depends-on): Add openat.
13941
13942 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
13943
13944         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
13945         (uintmax_t) [defined uintmax_t]: Do not declare.
13946         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
13947         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
13948         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
13949         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
13950         sake of portability to weird hosts that C allows (though we don't
13951         know of any practical examples).
13952
13953         * lib/savedir.h (fdsavedir): New decl.
13954         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
13955         contains most of the former guts of savedir.
13956         (savedir): Use savedirstream.
13957         Include "openat.h".
13958
13959 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
13960
13961         * modules/obstack (Files): Add m4/ulonglong.m4.
13962         Problem reported by Davide Angelocola.
13963
13964 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
13965
13966         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
13967         coreutils no longer futzes with rounding modes.
13968
13969 2005-11-14  Jim Meyering  <jim@meyering.net>
13970
13971         * lib/mkstemp-safer.c: Include <config.h>, required for possible
13972         replacement of mkstemp.
13973
13974 2005-11-10  Simon Josefsson  <jas@extundo.com>
13975
13976         * lib/readline.c: Remove EOL.
13977
13978 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
13979
13980         * modules/gethrxtime (Depends-on): Add gettime.
13981
13982 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
13983
13984         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
13985         or gettimeofday; no longer needed.
13986
13987 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
13988
13989         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
13990         time business.
13991         (gethrxtime) [! (HAVE_NANOUPTIME
13992         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
13993         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
13994         our own approximation.
13995
13996 2005-11-08  Eric Blake  <ebb9@byu.net>
13997
13998         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
13999
14000 2005-11-08  Eric Blake  <ebb9@byu.net>
14001
14002         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
14003
14004 2005-11-04  Bruno Haible  <bruno@clisp.org>
14005
14006         * gnulib-tool: Implement --update mode.
14007
14008 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
14009
14010         Fix porting problem reported by Theodoros V. Kalamatianos.
14011         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
14012         Don't assume that futimes failing means we must fail.
14013
14014 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
14015
14016         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
14017         variables to suggest the intended function of the PATH_MAX check.
14018
14019 2005-10-30  Kean Johnston  <jkj@sco.com>
14020
14021         Trivial changes to support SCO systems.
14022         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
14023         as PATH_MAX.
14024         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
14025         where __ptr is null when no I/O is pending.
14026
14027 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
14028
14029         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
14030         leave errno alone.  Problem reported by Dmitry V. Levin.
14031
14032 2005-10-28  Simon Josefsson  <jas@extundo.com>
14033
14034         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
14035         Test more.
14036
14037         * tests/test-gc-md2.c, tests/test-md2.c: New files.
14038
14039         * modules/md2, modules/md2-tests: New files.
14040
14041 2005-10-28  Simon Josefsson  <jas@extundo.com>
14042
14043         * m4/inet_ntop.m4: More tests.
14044
14045         * m4/gc-md2.m4, md2.m4: New file.
14046
14047 2005-10-28  Simon Josefsson  <jas@extundo.com>
14048
14049         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
14050         "restrict" keywords, as per POSIX.  Protect the function
14051         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
14052         Don't use K&R prototypes.  Check the sprintf return values.
14053         Re-define EAFNOSUPPORT if not present.  Indent.
14054
14055         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
14056         suggested by Bruno Haible <bruno@clisp.org>.
14057
14058         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
14059
14060         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
14061
14062         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
14063         libgcrypt).
14064
14065         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
14066
14067         * lib/md2.h, lib/md2.c: New files.
14068
14069 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
14070
14071         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
14072         errno alone.  Problem reported by Frederic Jolliton.
14073
14074 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
14075
14076         * modules/verify (License): Change from GPL to LGPL.  This is a
14077         tiny module and there are apparently near-equivalents that are
14078         under the BSD license.
14079
14080 2005-10-24  Simon Josefsson  <jas@extundo.com>
14081
14082         * modules/sha1: Relicense to LGPL.
14083
14084 2005-10-24  Simon Josefsson  <jas@extundo.com>
14085
14086         * lib/md4.h: Shrink buffer size, now that we changed the type.
14087
14088 2005-10-23  Simon Josefsson  <jas@extundo.com>
14089
14090         * gnulib-tool (func_import): Fix --tests-base.
14091
14092 2005-10-22  Simon Josefsson  <jas@extundo.com>
14093
14094         * modules/arcfour (Depends-on): Need stdint.
14095
14096 2005-10-22  Simon Josefsson  <jas@extundo.com>
14097
14098         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
14099         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
14100
14101 2005-10-22  Simon Josefsson  <jas@extundo.com>
14102
14103         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
14104         suggested by Bruno Haible <bruno@clisp.org>.
14105
14106 2005-10-22  Simon Josefsson  <jas@extundo.com>
14107
14108         * lib/crc.h: Include stddef.h, for size_t.
14109
14110 2005-10-22  Simon Josefsson  <jas@extundo.com>
14111
14112         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
14113         arcfour_context struct (simplify test vector testing in GNU
14114         Shishi).
14115
14116 2005-10-21  Simon Josefsson  <jas@extundo.com>
14117
14118         * modules/des, modules/des-tests: New files.
14119
14120         * modules/gc-des, modules/gc-des-tests: New files.
14121
14122         * tests/test-des.c, tests/test-gc-des.c: New file.
14123
14124 2005-10-21  Simon Josefsson  <jas@extundo.com>
14125
14126         * modules/arctwo, modules/arctwo-tests: New files.
14127
14128         * tests/test-arctwo.c: New file.
14129
14130         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
14131
14132         * tests/test-gc-arctwo.c: New file.
14133
14134 2005-10-21  Simon Josefsson  <jas@extundo.com>
14135
14136         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
14137         Bruno Haible <bruno@clisp.org>.
14138
14139         * m4/gc-des.m4: New file.
14140
14141 2005-10-21  Simon Josefsson  <jas@extundo.com>
14142
14143         * m4/arctwo.m4: New file.
14144
14145         * m4/gc-arctwo.m4: New file.
14146
14147 2005-10-21  Simon Josefsson  <jas@extundo.com>
14148
14149         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
14150         block.
14151
14152 2005-10-21  Simon Josefsson  <jas@extundo.com>
14153
14154         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
14155         <bruno@clisp.org>.
14156
14157         * lib/hmac-sha1.c (hmac_sha1): Likewise.
14158
14159         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
14160         Bruno Haible <bruno@clisp.org>.
14161
14162         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
14163         <bruno@clisp.org>.
14164
14165 2005-10-21  Simon Josefsson  <jas@extundo.com>
14166
14167         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
14168
14169 2005-10-21  Simon Josefsson  <jas@extundo.com>
14170
14171         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
14172
14173 2005-10-21  Simon Josefsson  <jas@extundo.com>
14174
14175         * lib/des.h, lib/des.c: New files.
14176
14177         * lib/gc-gnulib.c: Support DES.c
14178
14179 2005-10-21  Simon Josefsson  <jas@extundo.com>
14180
14181         * lib/arctwo.h, lib/arctwo.c: New files.
14182
14183         * lib/gc-gnulib.c: Support ARCTWO.
14184
14185 2005-10-21  Simon Josefsson  <jas@extundo.com>
14186
14187         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
14188         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
14189
14190 2005-10-21  Simon Josefsson  <jas@extundo.com>
14191
14192         * gnulib-tool (func_import, func_create_testdir): Define automake
14193         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
14194         Makefile.am snippet),
14195         suggested by Bruno Haible <bruno@clisp.org>.
14196
14197         * modules/gc (Makefile.am): Use it.
14198
14199 2005-10-21  Bruno Haible  <bruno@clisp.org>
14200
14201         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
14202         patch.
14203
14204 2005-10-19  Simon Josefsson  <jas@extundo.com>
14205
14206         * tests/test-gc-rijndael.c: New file.
14207
14208         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
14209
14210 2005-10-19  Simon Josefsson  <jas@extundo.com>
14211
14212         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
14213         interface too.
14214
14215 2005-10-19  Simon Josefsson  <jas@extundo.com>
14216
14217         * tests/test-gc-arcfour.c: New file.
14218
14219         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
14220
14221 2005-10-19  Simon Josefsson  <jas@extundo.com>
14222
14223         * modules/gc-md4, modules/gc-md4-tests: New file.
14224
14225         * tests/test-gc-md4.c: New file.
14226
14227 2005-10-19  Simon Josefsson  <jas@extundo.com>
14228
14229         * m4/gc-md4.m4: New file.
14230
14231 2005-10-19  Simon Josefsson  <jas@extundo.com>
14232
14233         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
14234         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
14235         <kasal@ucw.cz>.
14236
14237 2005-10-19  Simon Josefsson  <jas@extundo.com>
14238
14239         * m4/gc-arcfour.m4: New file.
14240
14241         * m4/gc-rijndael.m4: New file.
14242
14243 2005-10-19  Simon Josefsson  <jas@extundo.com>
14244
14245         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
14246
14247 2005-10-19  Simon Josefsson  <jas@extundo.com>
14248
14249         * lib/gc-gnulib.c: Support ARCFOUR.
14250
14251 2005-10-19  Simon Josefsson  <jas@extundo.com>
14252
14253         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
14254         support.
14255
14256         * lib/gc.h: Add ECB enum type.
14257
14258         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
14259
14260 2005-10-18  Simon Josefsson  <jas@extundo.com>
14261
14262         * tests/test-md5.c: New file.
14263
14264         * modules/md5-tests: New file.
14265
14266 2005-10-18  Simon Josefsson  <jas@extundo.com>
14267
14268         * tests/test-md4.c: New file.
14269
14270         * modules/md4, modules/md4-tests: New files.
14271
14272 2005-10-18  Simon Josefsson  <jas@extundo.com>
14273
14274         * m4/md4.m4: New file.
14275
14276 2005-10-18  Simon Josefsson  <jas@extundo.com>
14277
14278         * lib/md4.h, lib/md4.c: New files, based on md5.?.
14279
14280 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
14281
14282         * gnulib-tool (func_create_testdir): Omit the second check whether
14283         BUILT_SOURCES in nonempty.
14284
14285 2005-10-17  Simon Josefsson  <jas@extundo.com>
14286
14287         * tests/test-rijndael.c: New file.
14288
14289 2005-10-17  Simon Josefsson  <jas@extundo.com>
14290
14291         * modules/sha1: Depend on stdint instead of md5.
14292
14293         * modules/md5: Depend on stdint, remove uint32_t.
14294
14295 2005-10-17  Simon Josefsson  <jas@extundo.com>
14296
14297         * modules/gc-sha1-tests: New file.
14298
14299         * tests/test-gc-sha1.c: New file.
14300
14301 2005-10-17  Simon Josefsson  <jas@extundo.com>
14302
14303         * m4/md5.m4: Remove call to uint32_t.m4.
14304
14305 2005-10-17  Simon Josefsson  <jas@extundo.com>
14306
14307         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
14308
14309         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
14310         md5.h.
14311
14312         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
14313
14314         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
14315
14316 2005-10-17  Simon Josefsson  <jas@extundo.com>
14317
14318         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
14319
14320 2005-10-17  Simon Josefsson  <jas@extundo.com>
14321
14322         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
14323
14324 2005-10-17  Simon Josefsson  <jas@extundo.com>
14325
14326         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
14327
14328         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
14329
14330 2005-10-17  Bruno Haible  <bruno@clisp.org>
14331
14332         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
14333         that it can also be used in a test.
14334
14335 2005-10-16  Bruno Haible  <bruno@clisp.org>
14336
14337         * gnulib-tool (func_emit_tests_Makefile_am): Also define
14338         TESTS_ENVIRONMENT, so that individual tests can augment it.
14339
14340         * gnulib-tool (func_create_testdir): Use an intermediate target for
14341         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
14342         macros, like $(ALLOCA_H), which cannot be passed through the command
14343         line.
14344
14345 2005-10-15  Simon Josefsson  <jas@extundo.com>
14346
14347         * modules/rijndael-tests: New file.
14348
14349         * modules/rijndael: New file.
14350
14351 2005-10-15  Simon Josefsson  <jas@extundo.com>
14352
14353         * m4/rijndael.m4: New file.
14354
14355 2005-10-15  Simon Josefsson  <jas@extundo.com>
14356
14357         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
14358
14359         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
14360
14361 2005-10-14  Simon Josefsson  <jas@extundo.com>
14362
14363         * tests/test-arcfour.c: New file.
14364
14365         * modules/arcfour, modules/arcfour-tests: New files.
14366
14367 2005-10-14  Simon Josefsson  <jas@extundo.com>
14368
14369         * m4/arcfour.m4: New file.
14370
14371 2005-10-14  Simon Josefsson  <jas@extundo.com>
14372
14373         * lib/arcfour.h, lib/arcfour.c: New files.
14374
14375 2005-10-14  Roland McGrath  <roland@redhat.com>
14376
14377         Import from libc.  [BZ #1331]
14378         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
14379         macro argument.
14380         Reported by Matej Vela <vela@debian.org>.
14381
14382 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
14383
14384         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
14385         include <wchar.h>; no longer needed.
14386
14387 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
14388
14389         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
14390
14391 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
14392         and  Ulrich Drepper  <drepper@redhat.com>
14393
14394         Import from libc.
14395         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
14396         instead of inline stream orientation test and two separate
14397         function calls.  Pay no attention to USE_IN_LIBIO.
14398
14399 2005-10-13  Simon Josefsson  <jas@extundo.com>
14400
14401         * modules/gc-hmac-md5-tests: New file.
14402
14403         * tests/test-gc-hmac-sha1.c: New file.
14404
14405         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
14406
14407         * modules/gc-hmac-md5-tests: New file.
14408
14409         * tests/test-gc-md5.c: New file.
14410
14411         * modules/gc-md5-tests: New file.
14412
14413 2005-10-13  Simon Josefsson  <jas@extundo.com>
14414
14415         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
14416         Move memory allocation outside of loop.
14417
14418 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
14419
14420         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
14421         intermediate directory is in a read-only file system.  Problem
14422         reported by Eric Blake.
14423
14424 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
14425
14426         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
14427
14428 2005-10-12  Simon Josefsson  <jas@extundo.com>
14429
14430         * tests/test-hmac-sha1.c: New file.
14431
14432         * modules/hmac-sha1-tests: New file.
14433
14434         * modules/hmac-sha1: New file.
14435
14436 2005-10-12  Simon Josefsson  <jas@extundo.com>
14437
14438         * modules/gc-sha1: New file.
14439
14440 2005-10-12  Simon Josefsson  <jas@extundo.com>
14441
14442         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
14443
14444         * tests/test-gc-pbkdf2-sha1.c: New file.
14445
14446 2005-10-12  Simon Josefsson  <jas@extundo.com>
14447
14448         * modules/gc-md5, modules/gc-hmac-md5: New files.
14449
14450         * modules/gc (Files): Remove md5, memxor and hmac files.
14451
14452 2005-10-12  Simon Josefsson  <jas@extundo.com>
14453
14454         * m4/gc-pbkdf2-sha1.m4: New file.
14455
14456         * m4/gc-hmac-sha1.m4: New file.
14457
14458         * m4/gc-sha1: New file.
14459
14460         * m4/hmac-sha1.m4: New file.
14461
14462 2005-10-12  Simon Josefsson  <jas@extundo.com>
14463
14464         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
14465
14466         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
14467
14468 2005-10-12  Simon Josefsson  <jas@extundo.com>
14469
14470         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
14471         suggested by Bruno Haible <bruno@clisp.org>.
14472
14473 2005-10-12  Simon Josefsson  <jas@extundo.com>
14474
14475         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
14476
14477 2005-10-12  Simon Josefsson  <jas@extundo.com>
14478
14479         * lib/gc-pbkdf2-sha1.c: New file.
14480
14481         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
14482
14483 2005-10-12  Simon Josefsson  <jas@extundo.com>
14484
14485         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
14486
14487         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
14488
14489 2005-10-12  Simon Josefsson  <jas@extundo.com>
14490
14491         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
14492         GC_USE_HMAC_MD5, respectively.
14493
14494         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
14495         (gc_md5): Fix typo.
14496
14497         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
14498
14499         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
14500
14501         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
14502
14503 2005-10-12  Bruno Haible  <bruno@clisp.org>
14504
14505         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
14506         Reported by Stepan Kasal <kasal@ucw.cz>.
14507
14508 2005-10-11  Simon Josefsson  <jas@extundo.com>
14509
14510         * tests/test-crc.c: New file.
14511
14512         * modules/crc, modules/crc-tests: New files.
14513
14514 2005-10-11  Simon Josefsson  <jas@extundo.com>
14515
14516         * m4/crc.m4: New file.
14517
14518 2005-10-11  Simon Josefsson  <jas@extundo.com>
14519
14520         * lib/gc.h: Add gc_hash and gc_hash_buffer.
14521
14522         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
14523
14524         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
14525
14526 2005-10-11  Simon Josefsson  <jas@extundo.com>
14527
14528         * lib/crc.h, lib/crc.c: New files.
14529
14530         * lib/gc.h (gc_hash_buffer): Add doc.
14531
14532 2005-10-11  Bruno Haible  <bruno@clisp.org>
14533
14534         * modules/c-strcasestr: New file.
14535         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
14536
14537 2005-10-11  Bruno Haible  <bruno@clisp.org>
14538
14539         * modules/c-strcase: New file.
14540         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
14541
14542 2005-10-11  Bruno Haible  <bruno@clisp.org>
14543
14544         * lib/strcasecmp.c: Include limits.h.
14545         (strcasecmp): Avoid integer overflow on exotic platforms.
14546         * lib/strncasecmp.c: Include limits.h.
14547         (strncasecmp): Avoid integer overflow on exotic platforms.
14548         Reported by Paul Eggert.
14549
14550 2005-10-11  Bruno Haible  <bruno@clisp.org>
14551
14552         * lib/c-strcasestr.h: New file, from GNU gettext.
14553         * lib/c-strcasestr.c: New file, from GNU gettext.
14554
14555 2005-10-11  Bruno Haible  <bruno@clisp.org>
14556
14557         * lib/c-strcase.h: New file, from GNU gettext.
14558         * lib/c-strcasecmp.c: New file, from GNU gettext.
14559         * lib/c-strncasecmp.c: New file, from GNU gettext.
14560
14561 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
14562
14563         * modules/mempcpy (License): GPL -> LGPL.
14564         * modules/strchrnul (License): Likewise.
14565         * modules/sysexits (License): Likewise.
14566
14567 2005-10-08  Simon Josefsson  <jas@extundo.com>
14568
14569         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
14570
14571 2005-10-07  Simon Josefsson  <jas@extundo.com>
14572
14573         * m4/memxor.m4: Remove gl_C_RESTRICT call.
14574
14575 2005-10-06  Simon Josefsson  <jas@extundo.com>
14576
14577         * tests/test-hmac-md5.c: New file.
14578
14579         * modules/hmac-md5-tests: New file.
14580
14581         * modules/hmac-md5: New file.
14582
14583 2005-10-06  Simon Josefsson  <jas@extundo.com>
14584
14585         * m4/hmac-md5.m4: New file.
14586
14587         * m4/memxor.m4: Require gl_C_RESTRICT.
14588
14589 2005-10-06  Simon Josefsson  <jas@extundo.com>
14590
14591         * lib/memxor.c (memxor): Avoid casts and warnings.
14592
14593 2005-10-06  Simon Josefsson  <jas@extundo.com>
14594
14595         * lib/hmac-md5.c: New file.
14596
14597         * lib/hmac.h: New file.
14598
14599 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
14600
14601         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
14602         promotes to int, not unsigned int, to catch the AIX 5.3
14603         compiler bug.
14604
14605 2005-10-05  Simon Josefsson  <jas@extundo.com>
14606
14607         * modules/memxor: New file.
14608
14609         * modules/iconv (Files): Move config.rpath to havelib, it is used
14610         there.
14611
14612         * modules/havelib (Files): Add config.rpath.
14613
14614 2005-10-05  Simon Josefsson  <jas@extundo.com>
14615
14616         * m4/memxor.m4: New file.
14617
14618 2005-10-05  Simon Josefsson  <jas@extundo.com>
14619
14620         * lib/memxor.c (memxor): Fix compiler error.
14621
14622         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
14623         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
14624
14625         * lib/memxor.h, lib/memxor.c: New files.
14626
14627         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
14628         we assume all systems have it, suggested by Jim Meyering
14629         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
14630         any systems lack sys/socket.h; mingw32 is known to lack it, but we
14631         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
14632         same reasons.
14633
14634 2005-10-05  Simon Josefsson  <jas@extundo.com>
14635
14636         * config/srclist.txt: Add glibc bug 1423 for md5.h.
14637
14638 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
14639
14640         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
14641         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
14642         needed, since the source code now assumes these .h files.
14643
14644 2005-10-05  Derek Price  <derek@ximbiot.com>
14645
14646         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
14647
14648 2005-10-05  Bruno Haible  <bruno@clisp.org>
14649
14650         * modules/stdint (License): Change to LGPL.
14651
14652 2005-10-04  Simon Josefsson  <jas@extundo.com>
14653
14654         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
14655         D. Baushke" <mdb@gnu.org>.
14656
14657 2005-10-04  Bruno Haible  <bruno@clisp.org>
14658
14659         * lib/verify.h (verify_true): Provide alternative definition for C++.
14660
14661 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
14662
14663         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
14664         (SSIZE_MAX): New macro, if not already defined.
14665         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
14666         than 2 GiB.
14667
14668 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
14669
14670         Sync from coreutils.
14671         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
14672         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
14673         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
14674         ULLONG_MAX doesn't work with 2.7.2.1.
14675
14676 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
14677
14678         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
14679         From Ben Pfaff.
14680
14681         * modules/exclude (Depends-on): Depend on verify.
14682         * modules/strtoimax (Depends-on): Likewise.
14683         * modules/utimecmp (Depends-on): Likewise.
14684
14685 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
14686
14687         * lib/exclude.c: Include verify.h.
14688         (verify): Remove.  All callers changed to use verify.h's version.
14689         * lib/strtoimax.c: Likewise.
14690         * lib/utimecmp.c: Likewis.e
14691
14692         Sync from coreutils.
14693         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
14694         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
14695         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
14696         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
14697         bother returning ENOSYS if settimeofday or stime fails; just let
14698         them return whatever errno they want to return.
14699         * lib/utimens.c: Include unistd.h, for dup2.
14700         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
14701         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
14702
14703 2005-10-02  Jim Meyering  <jim@meyering.net>
14704
14705         Sync from coreutils.
14706         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
14707         from glibc-2.2.5 that fails for read-only files.
14708
14709 2005-10-02  Jim Meyering  <jim@meyering.net>
14710
14711         Sync from coreutils.
14712         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
14713         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
14714         `#if HAVE_CONFIG_H'.
14715         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
14716         Remove AT_FDCWD test.
14717         Do not consume the fd unless successful.
14718         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
14719         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
14720         block, so that we don't even try to compile it if settimeofday is
14721         available.  This works around a compilation failure on OSF1 V5.1,
14722         due to stime requiring a `long int*' while tv_sec is `int'.
14723
14724 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
14725
14726         Sync from coreutils.
14727         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
14728         against `yes', rather than just testing for nonempty.
14729
14730 2005-10-01  Simon Josefsson  <jas@extundo.com>
14731
14732         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
14733         and Darwin.
14734
14735         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
14736         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
14737         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
14738         freeaddrinfo and gai_strerror are declared by the POSIX headers.
14739         Check if struct addrinfo is declared.
14740
14741 2005-10-01  Simon Josefsson  <jas@extundo.com>
14742
14743         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
14744         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
14745         AI_* and EAI_* definitions.  Protect function declarations.
14746
14747 2005-10-01  Jim Meyering  <jim@meyering.net>
14748
14749         Sync from coreutils.
14750
14751         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
14752         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
14753         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
14754         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
14755         in the inet and nsl libraries.  Required on Solaris 5.7.
14756
14757 2005-10-01  Jim Meyering  <jim@meyering.net>
14758
14759         Sync from coreutils.
14760         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
14761         in the inet and nsl libraries.  Required on Solaris 5.7.
14762
14763 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
14764
14765         * lib/getdelim.c (getdelim): Remove unused variables.
14766
14767 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
14768
14769         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
14770         so that the code works even with ancient cpp.  Portability problem
14771         with GCC 2.7.2.1 reported by Thomas M.Ott.
14772
14773 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
14774
14775         * modules/regex (Depends-on): Add strcase.
14776
14777         * modules/gethostname (Licence): Change from GPL to LGPL, since
14778         gethostname.c is a trivial implementation of a standard library
14779         function.
14780         * modules/poll (License): Change from GPL to LGPL, since it's
14781         derived from LGPL code.
14782
14783 2005-09-27  Jim Meyering  <jim@meyering.net>
14784
14785         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
14786         HAVE_CONFIG_H.
14787
14788         * lib/intprops.h (signed_type_or_expr__): Define.
14789         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
14790         for unsigned types.
14791
14792 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
14793
14794         * lib/verify.h (verify_expr): Remove, replacing with:
14795         (verify_true): New macro that returns true instead of void.
14796         (verify_type__): Remove.
14797         (verify): Use verify_true rather than verify_type__.
14798
14799 2005-09-26  Bruno Haible  <bruno@clisp.org>
14800
14801         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
14802         is necessary.
14803         (lib_SOURCES): Remove mbchar.c.
14804         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
14805         (Files): Add m4/mbrtowc.m4.
14806         * modules/mbiter: Likewise.
14807         * modules/mbuiter: Likewise.
14808
14809 2005-09-26  Bruno Haible  <bruno@clisp.org>
14810
14811         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
14812         compile mbchar.c if they are not both present.
14813         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
14814         * m4/mbiter.m4 (gl_MBITER): Likewise.
14815         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
14816         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
14817         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
14818
14819 2005-09-25  Jim Meyering  <jim@meyering.net>
14820
14821         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
14822         also uses socklen_t.
14823
14824 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
14825
14826         * lib/utimens.c (ENOSYS): Define if not already defined.
14827         (futimens): Support having a null PATH if the file descriptor
14828         is nonnegative.
14829
14830         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
14831         Remove.
14832         (__attribute): Define to empty unless GCC 3.1 or later.
14833         This works around a core dump on OpenBSD 3.4, which has GCC
14834         2.95.3, which dumps core when given __attribute__(()).  It also
14835         simplifies other tests, since we really don't want to bother with
14836         worrying about which ancient version of GCC supported what.
14837         Original problem reported by Yoann Vandoorselaere, with part of
14838         the fix suggested by Derek Price.
14839
14840 2005-09-24  Jim Meyering  <jim@meyering.net>
14841
14842         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
14843         so we can once again use a positive bitfield width of 1 -- now we
14844         don't have to explain why we were using a bitfield width of 2.
14845
14846 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
14847
14848         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
14849         and similarly for the other external symbols.  Problem reported
14850         by James Gallager.
14851
14852         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
14853         bug reported by Jim Meyering.
14854
14855         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
14856         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
14857         not needed, since socklen is a prerequisite module.
14858
14859 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
14860
14861         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
14862         Problem reported by Eric Blake.
14863         (getaddrinfo): Initialize se so that it's not garbage.
14864         Redo internal storage allocation so that it doesn't make unportable
14865         assumptions about alignment.
14866         Fix a memory leak.
14867
14868         * lib/utimens.c (futimens): Use futimesat if available.
14869         Prefer it to futimes since it doesn't have the futimes bug.
14870
14871         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
14872         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
14873         Instead, declare a function that returns a pointer to an array,
14874         and use verify_type__ to declare the size of the array.
14875         Problem and germ of a solution reported by Bruno Haible.
14876         (verify_type__): Use 2, not 1, for bitfield size, to avoid
14877         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
14878
14879 2005-09-23  Jim Meyering  <jim@meyering.net>
14880
14881         Sync from coreutils.
14882         Correct build failure (socklen_t not defined) on at least
14883         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
14884         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
14885
14886 2005-09-23  Jim Meyering  <jim@meyering.net>
14887
14888         * modules/getaddrinfo (Depends-on): Add socklen.
14889
14890 2005-09-23  Bruno Haible  <bruno@clisp.org>
14891
14892         * tests/test-verify.c: New file.
14893
14894 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
14895
14896         Sync from coreutils.
14897
14898         * modules/argmatch (Depends-on): Add verify.
14899         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
14900         unistd-safer.
14901         * modules/save-cwd (Depends-on): Likewise.
14902
14903         * modules/openat (Files): Add lib/openat-die.c.
14904         (Depends-on): Remove error, exitfail.
14905         Add dirname.
14906
14907         * modules/verify: New file.
14908         * MODULES.html.sh (Diagnostics <assert.h>): New section,
14909         with "verify" module.
14910
14911 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
14912
14913         Sync from coreutils.
14914
14915         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
14916         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
14917         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
14918         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
14919         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
14920         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
14921         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
14922         Don't bother checking for string.h, stdlib.h, unistd.h.
14923         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
14924         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
14925         module's job.
14926         * m4/jm-macros.m4 (gl_MACROS): Likewise.
14927         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
14928
14929         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
14930         (gl_GETDATE): Use it.
14931
14932         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
14933
14934 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
14935
14936         Sync from coreutils.
14937
14938         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
14939         stat-time.h.
14940         * lib/argmatch.h: Include verify.h
14941         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
14942         (ARGMATCH_ASSERT): Remove; unused.
14943         * lib/canonicalize.c: Assume STDC_HEADERS.
14944         * lib/exclude.c: Include "strcase.h".
14945         * lib/regex_internal.h [!defined _LIBC]: Likewise.
14946         * lib/getusershell.c: Include stdio--.h rather than stdio.h
14947         and stdio-safer.h.
14948         (getusershell): Call fopen, not fopen_safer.
14949         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
14950         Do not include unistd-safer.h.
14951         (save_cwd): Don't call fd_safer; no longer needed
14952         now that we include fcntl--.h.
14953
14954         * lib/getdate.y (relative_time): New type.
14955         (RELATIVE_TIME_0): New constant.
14956         (parser_control): Use relative_time instead of doing it ourselves.
14957         (%union): Add new relative_time rel member.
14958         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
14959         Now typeless.
14960         (relunit, relunit_snumber): Now of type rel.
14961         (zone, rel, relunit, get_date): Adjust to above changes.
14962
14963         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
14964         Do not include unistd-safer.h.
14965         (getloadavg): Don't call fd_safer; no longer needed
14966         now that we include fcntl--.h.
14967
14968         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
14969         (make_dir_parents): Treat ENOSYS like EEXIST.
14970
14971         Improve quality of diagnostics on restore_cwd failure.
14972         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
14973         (make_dir_parents): Last arg is now int * (for errno), not bool *.
14974         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
14975         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
14976         each time through the loop.  Do not diagnose restore_cwd failure;
14977         that is the caller's job (and perhaps the caller does not care).
14978
14979         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
14980         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
14981         If the file already exists but is not a directory, don't bother
14982         to try to make its parents.
14983         Close potential file descriptor leak if we can't chdir("/") (!).
14984         Don't always return true if chdir($PWD) fails; return true only
14985         if the requested action was done successfully (except for the
14986         chdir($PWD)).
14987         Don't log final directory unless we actually made it.
14988         Refactor to avoid duplicate code to fix up permissions.
14989         Don't attempt to fix up parent permissions if chdir($PWD) fails.
14990
14991         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
14992         to make it a bit faster and (I hope) clearer.
14993         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
14994         Fix bug in formats like %2N.
14995
14996         * lib/verify.h: New file.
14997
14998 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
14999
15000         Sync from coreutils.
15001         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
15002
15003 2005-09-22  Jim Meyering  <jim@meyering.net>
15004
15005         Sync from coreutils.
15006
15007         * m4/lstat.m4 (gl_FUNC_LSTAT):
15008         Use AC_LIBSOURCES to require lstat.c and lstat.h.
15009         Remove obsolete comment.
15010         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
15011         * m4/xstrtod.m4: Likewise.
15012
15013         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
15014
15015 2005-09-22  Jim Meyering  <jim@meyering.net>
15016
15017         Sync from coreutils.
15018
15019         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
15020
15021         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
15022         the .tm_year member, since otherwise gcc-4.0 would now warn about
15023         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
15024
15025         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
15026         order to avoid an unsuppressible warning from gcc on 64-bit systems.
15027
15028         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
15029         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
15030         when run in a time zone for which daylight savings time is in effect
15031         for the starting date.
15032
15033         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
15034         stop us from restricting permissions of just-created absolute-named
15035         directories.
15036         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
15037         to restore initial working directory.
15038         * lib/mkdir-p.c (make_dir_parents): New parameter:
15039         different_working_dir, to tell caller if/when we change the working
15040         directory and are unable to return to the initial one.
15041         * lib/mkdir-p.h (make_dir_parents): Update prototype.
15042         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
15043         `return false'.  This fixes a bug introduced on 2004-07-30.
15044
15045         * lib/openat.c (fdopendir): Be sure to close the supplied
15046         file descriptor before returning.  This makes our replacement
15047         implementation a little closer to Solaris's, where fdopendir
15048         ties the file descriptor to the returned DIR* pointer.
15049         * lib/openat.c (unlinkat): New function.
15050         * lib/openat.h (unlinkat): Add prototype.
15051         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
15052         (openat_restore_fail): Rename from openat_restore_die.
15053         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
15054
15055         Provide an alternative to exiting immediately upon save_cwd or
15056         restore_cwd failure.  Now, an application can arrange e.g.,
15057         to perform a longjump in that case.
15058         * lib/openat.c: Include dirname.h.
15059         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
15060         (rpl_openat, fdopendir, fstatat): Call openat_save_die
15061         and openat_restore_die rather than calling error directly.
15062         Don't include "error.h" or "exitfail.h"; they're no longer needed.
15063
15064         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
15065         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
15066         define.
15067
15068         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
15069         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
15070                             int utc, int nanoseconds);
15071         Background:
15072         date should not have to allocate a megabyte of virtual memory to
15073         handle a format argument like +%1048575T.  When implemented with
15074         strftime, it must allocate such a buffer, use strftime to fill it
15075         in, print it, then free it.
15076         With fprintftime, it simply prints everything and exits.
15077         With no need for memory allocation, that's one fewer way to fail.
15078         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
15079         optional field width, not before, so we accept %9:z, not %:9z.
15080         (my_strftime): Be sure to use L_('x') for literals.
15081
15082         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
15083         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
15084         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
15085         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
15086         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
15087         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
15088         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
15089         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
15090         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
15091         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
15092         * lib/xgethostname.c, lib/xreadlink.c:
15093         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
15094
15095         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
15096         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
15097         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
15098         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
15099         and don't include <sys/file.h>).
15100
15101 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
15102
15103         Sync from coreutils.
15104
15105         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
15106         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
15107         [!LDAV_DONE]: Avoid unused variable warning.
15108
15109 2005-09-21  Bruno Haible  <bruno@clisp.org>
15110
15111         * lib/unicodeio.h (unicode_to_mb): New declaration.
15112
15113 2005-09-20  Derek Price  <derek@ximbiot.com>
15114
15115         * lib/getaddrinfo.c: Don't include <netdb.h> included from
15116         getaddrinfo.h.
15117
15118 2005-09-20  Bruno Haible  <bruno@clisp.org>
15119
15120         * gnulib-tool: Remove trailing slashes from the values specified for
15121         --source-base, --m4-base, --tests-base, --aux-dir.
15122         Suggested by Simon Josefsson <jas@extundo.com>.
15123
15124 2005-09-20  Bruno Haible  <bruno@clisp.org>
15125
15126         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
15127         func_modules_to_filelist, func_import, func_create_testdir): Make all
15128         sorting results locale-independent, so that gnulib-cache.m4 doesn't
15129         change when gnulib-tool is invoked in a different locale.
15130
15131 2005-09-19  Simon Josefsson  <jas@extundo.com>
15132
15133         * m4/socklen.m4: Fix typo.
15134
15135 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
15136
15137         Use a consistent style for including <config.h>.
15138         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
15139         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
15140         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
15141         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
15142         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
15143         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
15144         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
15145         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
15146         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
15147         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
15148         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
15149         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
15150         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
15151         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
15152         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
15153         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
15154         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
15155         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
15156         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
15157         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
15158         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
15159         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
15160         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
15161         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
15162         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
15163         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
15164         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
15165         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
15166         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
15167         lib/xstrtoumax.c, lib/yesno.c:
15168         Standardize inclusion of config.h.
15169         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
15170         lib/inttostr.h:  Removed inclusion of config.h from header files.
15171         * lib/inttostr.c:  Adjusted in-tree users.
15172         * lib/timespec.h: Remove superfluous warning to include config.h.
15173         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
15174         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
15175         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
15176         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
15177         config.h with HAVE_CONFIG_H.
15178
15179 2005-09-19  Jim Meyering  <jim@meyering.net>
15180
15181         * modules/pathmax (License): Change to LGPL.
15182
15183 2005-09-19  Derek Price  <derek@ximbiot.com>
15184
15185         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
15186
15187 2005-09-19  Bruno Haible  <bruno@clisp.org>
15188
15189         * gnulib-tool (import): Provide default for --tests-base.
15190
15191 2005-09-19  Bruno Haible  <bruno@clisp.org>
15192
15193         * doc/quote.texi: New file, extracted from gnulib.texi.
15194         * doc/ctime.texi: New file, extracted from gnulib.texi.
15195         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
15196         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
15197         * doc/gnulib.texi: Include them.
15198
15199 2005-09-18  Bruno Haible  <bruno@clisp.org>
15200
15201         Portability fix.
15202         * gnulib-tool (func_readlink): New function.
15203         (func_ln_if_changed): Use it.
15204
15205 2005-09-18  Bruno Haible  <bruno@clisp.org>
15206
15207         * gnulib-tool: Support --with-tests also with --import.
15208         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
15209         (func_import): Use variables $testsbase and $inctests. Emit a
15210         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
15211         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
15212         SUBDIRS += $testsdir.
15213         (func_create_testdir): Update.
15214
15215 2005-09-18  Bruno Haible  <bruno@clisp.org>
15216
15217         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
15218         instead of $dry_run.
15219         (func_cp_if_changed, func_mv_if_changed): Remove functions.
15220         (func_ln_if_changed): Don't handle dry-run here.
15221         (func_import): In dry-run mode, detect more precisely which actions
15222         would be performed, and don't use "...ing" verbs.
15223
15224 2005-09-18  Bruno Haible  <bruno@clisp.org>
15225
15226         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
15227         (func_import): Use join on two temporary files instead of three nested
15228         loops, in order to determine which files are new or old.
15229
15230 2005-09-18  Bruno Haible  <bruno@clisp.org>
15231
15232         * gnulib-tool (func_import): Comment out code that spits out the
15233         new files with --dry-run.
15234
15235 2005-09-18  Bruno Haible  <bruno@clisp.org>
15236
15237         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
15238
15239 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
15240
15241         * lib/stat-time.h: New file.
15242         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
15243         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
15244         in a different way.
15245         (timespec_cmp): New function.
15246         * lib/utimecmp.c: Include stat-time.h.
15247         (SYSCALL_RESOLUTION): Depend on whether various struct stat
15248         members exist, not on the obsolescent ST_MTIM_NSEC.
15249         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
15250
15251 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
15252
15253         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
15254
15255 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
15256
15257         * MODULES.html.sh (File system functions): Add stat-time.
15258         * modules/stat-time: New file.
15259         * modules/timespec (Files): Remove m4/st_mtim.m4; this
15260         is now done in a different way, by the stat-time module.
15261         * modules/utimecmp (Depends-on): Add stat-time.
15262
15263 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
15264
15265         * m4/st_mtim.m4: Remove.  Superseded by...
15266         * m4/stat-time.m4: New file.
15267         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
15268         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
15269
15270 2005-09-15  Derek Price  <derek@ximbiot.com>
15271
15272         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
15273
15274 2005-09-15  Derek Price  <derek@ximbiot.com>
15275
15276         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
15277         * lib/regex_internal.c: Ditto, using this...
15278         (__GNUC_PREREQ): ...new macro.
15279         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
15280         using...
15281         (__GNUC_PREREQ): ...this new macro.
15282
15283         * lib/strstr.h: Include string.h. Define strstr as a macro here.
15284
15285 2005-09-15  Derek Price  <derek@ximbiot.com>
15286             Paul Eggert  <eggert@cs.ucla.edu>
15287
15288         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
15289         changes, consolidating in...
15290         * lib/regex_internal.h: ...this file.
15291
15292 2005-09-13  Jim Meyering  <jim@meyering.net>
15293
15294         * lib/canon-host.c: Filter through gnu indent and reword comments
15295         slightly.
15296         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
15297
15298 2005-09-13  Derek Price  <derek@ximbiot.com>
15299
15300         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
15301         failure.
15302         Reported by Jim Meyering  <jim@meyering.net>.
15303
15304 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
15305
15306         * lib/base64.c: Typo.
15307         (base64_encode): Put b64str in initialized data section.
15308
15309 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
15310
15311         Merge glibc and coreutils changes into gnulib, plus a few
15312         extra fixes.
15313         * lib/md5.c: Use #error rather than a string.
15314         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
15315         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
15316         (__attribute__): Define to empty for non recent-GCC.
15317         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
15318         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
15319         Renamed from their non-__ counterparts, with new macros replacing
15320         them if not _LIBC.  Add __THROW attribute.
15321         (rol): Remove.
15322         (struct md5_ctx): Align buffer if using GCC.
15323         * lib/sha1.h (struct sha1_ctx): Likewise.
15324         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
15325         The old name was backwards.
15326         (NOTSWAP): Remove; not used.
15327         (rol): New macro, moved here from md5.h.
15328         (sha1_process_block): Remove a FIXME that doesn't make sense.
15329
15330 2005-09-12  Derek Price  <derek@ximbiot.com>
15331
15332         Return usable errors from canon-host.
15333         * lib/canon-host.h: New file.
15334         * lib/canon-host.c (canon_host): Wrap...
15335         (canon_host_r): ...this new function, which now relies exclusively on
15336         getaddrinfo.
15337         (ch_strerror): New function.
15338         (last_cherror): New global.
15339         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
15340         interface.
15341         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
15342         void *.
15343         (freeaddrinfo): Free ai->ai_canonname when set.
15344
15345 2005-09-12  Derek Price  <derek@ximbiot.com>
15346
15347         Make canon-host require getaddrinfo.
15348         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
15349         AC_LIBSOURCE canon-host.h.  Call...
15350         (gl_PREREQ_CANON_HOST): ...this new function, which requires
15351         gl_GETADDRINFO.
15352         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
15353
15354 2005-09-12  Derek Price  <derek@ximbiot.com>
15355
15356         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
15357         LGPL.
15358         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
15359
15360 2005-09-12  Derek Price  <derek@ximbiot.com>
15361
15362         * lib/gai_strerror.c: Include config.h when available.  Include
15363         getaddrinfo.h before other headers to test interface.
15364         Reported by Larry Jones <lawrence.jones@ugs.com>.
15365
15366 2005-09-12  Derek Price  <derek@ximbiot.com>
15367             Paul Eggert  <eggert@cs.ucla.edu>
15368
15369         * modules/glob (Files): Add glob-libc.h.
15370
15371 2005-09-12  Derek Price  <derek@ximbiot.com>
15372             Paul Eggert  <eggert@cs.ucla.edu>
15373
15374         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
15375         glob_.h, glob-libc.h.
15376         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
15377
15378 2005-09-12  Derek Price  <derek@ximbiot.com>
15379             Paul Eggert  <eggert@cs.ucla.edu>
15380
15381         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
15382         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
15383         protecting things that should be done only in gnulib contexts.
15384         * lib/glob_.h: New file, containing only the glob things needed for
15385         gnulib.
15386         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
15387         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
15388         (glob, globfree, glob_pattern_p): Now defined simply in terms of
15389         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
15390         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
15391         and to respect the namespace rules better.
15392
15393 2005-09-08  Simon Josefsson  <jas@extundo.com>
15394
15395         * modules/socklen: New file.
15396
15397 2005-09-08  Simon Josefsson  <jas@extundo.com>
15398
15399         * m4/socklen.m4: New file.
15400
15401 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
15402
15403         * modules/utimens (Files): Add m4/utimbuf.m4, since
15404         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
15405         Reported by Sergey Poznyakoff.
15406
15407 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
15408
15409         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
15410         definitions, since that's the preferred style in glibc.
15411         Fix a minor spacing issue, and update copyright notice to match
15412         glibc's.
15413
15414 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
15415
15416         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
15417
15418 2005-09-06  Simon Josefsson  <jas@extundo.com>
15419
15420         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
15421         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
15422
15423 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
15424
15425         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
15426         warning.
15427
15428 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
15429
15430         * config/srclist.txt: Add glibc bug 1302.
15431
15432 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
15433
15434         Change bitset word type from unsigned int to unsigned long int,
15435         as this has better performance on typical 64-bit hosts.
15436         Port bitset code to hosts with unusual word sizes.
15437         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
15438         (build_collating_symbol):
15439         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
15440         argument is a bitset.  This is merely a style issue, but it makes
15441         it clearer that an entire array is expected.
15442         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
15443         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
15444         Port to the case where bitset_word is not the same as unsigned int.
15445         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
15446         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
15447         Likewise.
15448         * lib/regexec.c (check_dst_limits_calc_pos_1,
15449         check_subexp_matching_top):
15450         (build_trtable, group_nodes_into_DFAstates):
15451         Likewise.
15452         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
15453         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
15454         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
15455         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
15456         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
15457         * lib/regcomp.c (optimize_subexps, lower_subexp):
15458         Work even if bitset_word has holes in its bitwise representation.
15459         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
15460         * lib/regexec.c (check_dst_limits_calc_pos_1,
15461         check_subexp_matching_top):
15462         Likewise.
15463         * lib/regex_internal.c (re_string_reconstruct):
15464         Don't assume UCHAR_MAX == 255.
15465         * lib/regex_internal.h (bitset_set_all): Likewise.
15466         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
15467         All uses changed.
15468         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
15469         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
15470         All uses changed.
15471         (BITSET_WORD_MAX): New macro.
15472         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
15473         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
15474         (bitset_empty, bitset_copy):
15475         Prefer sizeof (bitset) to multiplying it out ourselves.
15476         (bitset_not_merge): Remove; unused.
15477         (bitset_contain): Return bool, not unsigned int with one bit on.
15478         All callers changed.
15479         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
15480         alignment than re_node_set; do this by defining a new internal
15481         type struct dests_alloc and using it to allocate memory.
15482
15483 2005-09-05  Bruno Haible  <bruno@clisp.org>
15484
15485         * gnulib-tool (func_import): Fix comparison in handling of symbolic
15486         links.
15487
15488 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
15489
15490         * modules/size_max (Makefile.am): Add size_max.h
15491
15492 2005-09-04  Derek Price  <derek@ximbiot.com>
15493
15494         * gnulib-tool (func_import): Fix reversed $symbolic logic.
15495
15496 2005-09-03  Simon Josefsson  <jas@extundo.com>
15497
15498         * gnulib-tool: Fix typo.
15499
15500 2005-09-03  Simon Josefsson  <jas@extundo.com>
15501
15502         * config/srclist.txt: Add glibc bug 1293.
15503
15504 2005-09-03  Derek Price  <derek@ximbiot.com>
15505
15506         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
15507         From Larry Jones <lawrence.jones@ugs.com>.
15508
15509 2005-09-02  Simon Josefsson  <jas@extundo.com>
15510
15511         * modules/socklen: New file.
15512
15513 2005-09-02  Simon Josefsson  <jas@extundo.com>
15514
15515         * modules/havelib: New module.
15516
15517         * modules/gettext, modules/iconv, modules/lock, modules/readline:
15518         Use havelib.
15519
15520 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
15521
15522         Check for arithmetic overflow when calculating sizes, to prevent
15523         some buffer-overflow issues.  These patches are conservative, in the
15524         sense that when I couldn't determine whether an overflow was possible,
15525         I inserted a run-time check.
15526         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
15527         macros.
15528         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
15529         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
15530         (re_xnrealloc, re_x2nrealloc): New inline functions.
15531         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
15532         parse_bracket_exp):
15533         (build_equiv_class, build_charclass): Check for arithmetic overflow
15534         in size expression calculations.
15535         * lib/regex_internal.c (re_string_realloc_buffers):
15536         (build_wcs_upper_buffer, re_node_set_add_intersect):
15537         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
15538         (re_dfa_add_node, register_state): Likewise.
15539         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
15540         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
15541         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
15542         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
15543
15544 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
15545
15546         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
15547         m4/ulonglong.m4.  Problem reported by Martin Lambers.
15548
15549 2005-09-02  Bruno Haible  <bruno@clisp.org>
15550
15551         Support for lib vs. lib64 distinction on biarch platforms.
15552         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
15553         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
15554         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
15555
15556 2005-09-02  Bruno Haible  <bruno@clisp.org>
15557
15558         * gnulib-tool (import): In the other first-use case, provide defaults
15559         as well.
15560
15561 2005-09-02  Bruno Haible  <bruno@clisp.org>
15562
15563         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
15564         patches not yet found in the latest gettext release.
15565
15566 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
15567
15568         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
15569         to avoid a collision with bits/local_lim.h in glibc.
15570         All uses changed.  Problem reported by Dmitry V. Levin in
15571         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
15572
15573         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
15574         bugs in int versus size_t comparisons.
15575         (re_string_context_at): Fix bug where the code assumed that
15576         Idx is signed.
15577
15578         Use bool where appropriate.
15579         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
15580         All callers changed.
15581         (calc_eclosure_iter): Likewise, for ROOT arg.
15582         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
15583         (build_charclass_op): Likewise, for NON_MATCH arg.
15584         * lib/regex_internal.c (re_string_allocate, re_string_construct):
15585         (re_string_construct_common): Likewise, for ICASE arg.
15586         * lib/regexec.c (re_search_2_stub, re_search_stub):
15587         Likewise, for RET_LEN arg.
15588         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
15589         (set_regs): Likewise, for FL_BACKTRACK arg.
15590         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
15591         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
15592         (calc_eclosure_iter, parse_bracket_exp):
15593         Use bool for internal variables that are booleans.
15594         * lib/regexec.c (re_search_internal, check_matching,
15595         proceed_next_node):
15596         (set_regs, build_sifted_states, sift_states_bkref):
15597         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
15598         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
15599         (find_collation_sequence_value):
15600         Likewise.
15601         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
15602         (re_node_set_compare):
15603         Return bool, not int. All callers changed.
15604         * lib/regexec.c (check_halt_node_context, check_dst_limits):
15605         (build_trtable, check_node_accept): Likewise.
15606         * lib/regex_internal.h: Include stdbool.h.
15607
15608         Fix bugs uncovered when converting to bool.
15609         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
15610         failure instead of charging ahead blindly.
15611         * lib/regex_internal.c (register_state): Likewise.
15612         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
15613         for freeing internal storage.
15614         (group_nodes_into_DFA_states): Use unsigned int, not int, for
15615         bitset pieces used as boolean, to avoid undefined behavior
15616         on hosts that do int overflow checking.
15617
15618 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
15619
15620         * config/srclist.txt: Add glibc bugs 1285-1287.
15621
15622 2005-09-01  Jim Meyering  <jim@meyering.net>
15623
15624         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
15625         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
15626         Require gl_STAT_MACROS, too.
15627
15628 2005-09-01  Bruno Haible  <bruno@clisp.org>
15629
15630         * gnulib-tool (import): In the first-use case, provide defaults.
15631
15632 2005-09-01  Bruno Haible  <bruno@clisp.org>
15633
15634         * gnulib-tool (func_import): Remove the .tmp files.
15635
15636 2005-09-01  Bruno Haible  <bruno@clisp.org>
15637
15638         * gnulib-tool (func_import): Fix handling of symbolic links.
15639
15640 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
15641
15642         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
15643         old glibc regex code mishandles strings longer than 2**31 bytes.
15644         This patch fixes this when the regex code is used in gnulib
15645         (i.e., outside glibc).
15646
15647         This patch should not affect the use of the regex code inside
15648         glibc.  No doubt this problem also needs to be handled for glibc
15649         as well, but the result will be an incompatible change to the
15650         glibc ABI, and the old ABI will have to be supported too.  That
15651         can be the the subject for another patch.
15652
15653         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
15654         governing whether the rest of this patch is active.  By default,
15655         the macro is disabled and the patch has no effect.
15656         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
15657         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
15658         (struct re_pattern_buffer, re_search, re_search_2, re_match):
15659         (re_match_2, re_set_registers): Use the new types.
15660         * lib/regex_internal.h (Idx, re_hashval_t): New types.
15661         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
15662         New macros.
15663         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
15664         (re_string_context_at, bin_tree_t, re_dfastate_t):
15665         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
15666         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
15667         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
15668         (re_string_char_size_at, re_string_wchar_at):
15669         (re_string_elem_size_at):
15670         Use the new types and macros to port to 64-bit hosts.
15671         Use unsigned types for internal values, so that the code
15672         mostly works even for arrays larger than SSIZE_MAX.
15673         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
15674         (search_duplicated_node, calc_eclosure_iter, fetch_number):
15675         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
15676         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
15677         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
15678         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
15679         (calc_inveclosure, parse_dup_op, build_range_exp):
15680         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
15681         (fetch_number, create_token_tree, mark_opt_subexp):
15682         Likewise.
15683         * lib/regex_internal.c (re_string_construct_common,
15684         create_ci_newstate):
15685         (create_cd_newstate, re_string_allocate, re_string_construct):
15686         (re_string_realloc_buffers, build_wcs_upper_buffer):
15687         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
15688         (re_string_reconstruct, re_string_peek_byte_case):
15689         (re_string_fetch_byte_case, re_string_context_at):
15690         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
15691         (re_node_set_init_copy, re_node_set_add_intersect):
15692         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
15693         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
15694         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
15695         (re_acquire_state, re_acquire_state_context, register_state):
15696         Likewise.
15697         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
15698         search_cur_bkref_entry):
15699         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
15700         (re_search_internal, re_search_2_stub, re_search_stub)
15701         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
15702         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
15703         (update_cur_sifted_state, check_dst_limits):
15704         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
15705         (check_subexp_limits, sift_states_bkref, merge_state_array):
15706         (check_subexp_matching_top, get_subexp, get_subexp_sub):
15707         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
15708         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
15709         (expand_bkref_cache, check_node_accept_bytes):
15710         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
15711         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
15712         (acquire_init_state_context, check_halt_node_context):
15713         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
15714         (sift_states_backward, clean_state_log_if_needed):
15715         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
15716         (find_recover_state, transit_state_sb, transit_state_mb):
15717         (transit_state_bkref, build_trtable, match_ctx_clean):
15718         Likewise.
15719         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
15720         to work around an assumption that REG_MISSING is negative.
15721
15722         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
15723         (seek_collating_symbol_entry) [defined _LIBC]:
15724         (lookup_collation_sequence_value) [defined _LIBC]:
15725         (build_range_exp, build_collating_symbol) [defined _LIBC]:
15726         Use prototypes rather than old-style function definitions.
15727         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
15728         (transit_state_sb) [0]:
15729         (find_collation_sequence_value) [defined _LIBC]: Likewise.
15730
15731         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
15732         rm_eo.
15733
15734         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
15735         (optimize_subexps, lower_subexp):
15736         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
15737         since the signed shift might overflow.  Use 1u<<31 instead.
15738         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
15739         Likewise.
15740         * lib/regexec.c (check_dst_limits_calc_pos_1,
15741         check_subexp_matching_top): Likewise.
15742
15743         * lib/regcomp.c (optimize_subexps, lower_subexp):
15744         Use CHAR_BIT rather than 8, for clarity.
15745         * lib/regexec.c (check_dst_limits_calc_pos_1):
15746         (check_subexp_matching_top): Likewise.
15747         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
15748         have to worry about portability issues when shifting it left.
15749         Remove no-longer-needed test for table_size > 0.
15750         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
15751         in a word, as the resulting behavior is undefined.
15752         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
15753         in one case, a <= should have been an <, and in another case the
15754         whole test was missing.
15755         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
15756         the standard name CHAR_BIT.
15757         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
15758         this is not true on one's complement and signed-magnitude hosts.
15759
15760         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
15761         next_last_offset.
15762         (struct re_dfa_t): Remove unused member states_alloc.
15763         * lib/regcomp.c (init_dfa): Don't initialize unused members.
15764
15765 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
15766
15767         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
15768         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
15769         and large-file glibc and in 32-bit large-file Solaris.
15770
15771 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
15772
15773         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
15774         lengths fit in regoff_t; this isn't true if regoff_t is the same
15775         width as size_t.
15776         * lib/regex.c (re_search_internal): 5th arg is LAST_START
15777         (= START + RANGE) instead of RANGE.  This avoids overflow
15778         problems when regoff_t is the same width as size_t.
15779         All callers changed.
15780         (re_search_2_stub): Check for overflow when adding the
15781         sizes of the two strings.
15782         (re_search_stub): Check for overflow when adding START
15783         to RANGE; if it occurs, substitute the extreme value.
15784
15785 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
15786
15787         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
15788
15789 2005-08-31  Jim Meyering  <jim@meyering.net>
15790
15791         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
15792         a pointer-to-const.
15793         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
15794         (register_state): Likewise.
15795         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
15796         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
15797         (group_nodes_into_DFAstates): Likewise.
15798
15799 2005-08-31  Jim Meyering  <jim@meyering.net>
15800
15801         * check-module: Add a FIXME comment.
15802
15803 2005-08-31  Eric Blake  <ebb9@byu.net>
15804
15805         * modules/unistd-safer (Files): Add unistd--.h.
15806         * modules/stdio-safer (Files): Add stdio--.h.
15807
15808 2005-08-31  Derek Price  <derek@ximbiot.com>
15809
15810         * lib/getdelim.c (getdelim): Return EOF on EOF.
15811         Reported by Larry Jones <lawrence.jones@ugs.com>.
15812
15813 2005-08-31  Bruno Haible  <bruno@clisp.org>
15814
15815         Avoid unnecessary diffs in the generated lib/Makefile.am.
15816         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
15817         the generated files.
15818         (func_import): Don't set cmd.
15819
15820 2005-08-31  Bruno Haible  <bruno@clisp.org>
15821
15822         * lib/strstr.c: Include <stddef.h>, for NULL.
15823         * lib/strcasestr.c: Likewise.
15824         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
15825
15826 2005-08-31  Bruno Haible  <bruno@clisp.org>
15827
15828         * gnulib-tool: New option --macro-prefix.
15829         (func_import): Use macro_prefix.
15830         (import): Handle option --macro-prefix.
15831
15832 2005-08-31  Bruno Haible  <bruno@clisp.org>
15833
15834         * gnulib-tool (import): Rename most ac_* variables to cached_*.
15835         Also use new variables cached_lgpl, cached_libtool.
15836
15837 2005-08-31  Bruno Haible  <bruno@clisp.org>
15838
15839         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
15840         always instantiating them.
15841
15842 2005-08-31  Bruno Haible  <bruno@clisp.org>
15843
15844         * gnulib-tool (func_import): Read the previous cached settings
15845         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
15846         earlier added by gnulib but are now dropped. Warn when a gnulib file
15847         overwrites a non-gnulib file.
15848
15849 2005-08-31  Bruno Haible  <bruno@clisp.org>
15850
15851         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
15852         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
15853         projects that don't keep autogenerated files in CVS. Put into
15854         actioncmd only the specified modules, not the transitive closure.
15855
15856 2005-08-31  Bruno Haible  <bruno@clisp.org>
15857
15858         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
15859         Create directories that shall be filled.
15860         (import): Don't look for gl_* macros in configure.ac. Recurse across
15861         all directories containing a gnulib-cache.m4 files, if meaningful.
15862
15863 2005-08-31  Bruno Haible  <bruno@clisp.org>
15864
15865         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
15866         (import): Set seen_libtool when we see gl_LIBTOOL.
15867
15868 2005-08-31  Bruno Haible  <bruno@clisp.org>
15869
15870         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
15871         declaration macro definitions from generated gnulib.m4.
15872
15873 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
15874
15875         * lib/iconvme.h: Add prototype for iconv_alloc.
15876
15877 2005-08-29  Simon Josefsson  <jas@extundo.com>
15878
15879         * lib/iconvme.c: Fix errno.
15880
15881 2005-08-29  Bruno Haible  <bruno@clisp.org>
15882
15883         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
15884         that it works when the directory contains spaces.
15885
15886 2005-08-29  Bruno Haible  <bruno@clisp.org>
15887
15888         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
15889
15890 2005-08-29  Bruno Haible  <bruno@clisp.org>
15891
15892         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
15893         Emit more advice.
15894
15895 2005-08-29  Bruno Haible  <bruno@clisp.org>
15896         and Stepan Kasal  <kasal@ucw.cz>
15897
15898         * check-module: If more parameters are given, check each of them
15899         separately; add more exceptions, as noted by Jim Meyering.
15900         (check_module): New procedure.
15901         (%exempt_header): Now contains all exceptions.
15902
15903 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
15904
15905         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
15906
15907 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
15908
15909         * lib/iconvme.c: Split iconv_string into iconv_alloc.
15910
15911 2005-08-28  Bruno Haible  <bruno@clisp.org>
15912
15913         * m4/gnulib-tool.m4: New file.
15914
15915 2005-08-27  Jim Meyering  <jim@meyering.net>
15916
15917         * modules/unistd-safer (Files): Add pipe-safer.c.
15918         * modules/fcntl-safer (Files): Add creat-safer.c.
15919
15920 2005-08-27  Jim Meyering  <jim@meyering.net>
15921
15922         * m4/stdlib-safer.m4: New file.  From coreutils.
15923         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
15924         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
15925         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
15926         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
15927         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
15928
15929 2005-08-27  Jim Meyering  <jim@meyering.net>
15930
15931         * lib/fopen-safer.c: Merge minor changes from coreutils.
15932         * lib/dup-safer.c: Likewise.
15933         * lib/fd-safer.c: Likewise.
15934
15935         Merge from coreutils.
15936         * lib/stdio--.h: New file.
15937         * lib/stdlib--.h: New file.
15938         * lib/mkstemp-safer.c: New file.
15939
15940         GNU tar needs these.
15941         * lib/pipe-safer.c: New file.
15942         * lib/creat-safer.c: New file.
15943         * lib/fcntl--.h (creat): Define to creat_safer.
15944         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
15945         * lib/unistd--.h (pipe): Define to pipe_safer.
15946         * lib/unistd-safer.h: Declare pipe_safer.
15947
15948 2005-08-26  Simon Josefsson  <jas@extundo.com>
15949
15950         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
15951         Haible <bruno@clisp.org>.
15952
15953 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
15954
15955         * lib/regex_internal.h: Remove all references to
15956         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
15957         or better.
15958         (bitset_not, bitset_merge, bitset_not_merge):
15959         (bitset_mask, re_string_allocate, re_string_construct):
15960         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
15961         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
15962         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
15963         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
15964         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
15965         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
15966         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
15967         (re_acquire_state_context):
15968         Remove unnecessary forward decls.
15969         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
15970         Put __attribute at function definition,
15971         now that the function decl has been removed.
15972         * lib/regex_internal.c (re_string_peek_byte_case):
15973         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
15974         Likewise.
15975
15976 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
15977
15978         * m4/regex.m4: Add AC_PREREQ(2.50).
15979         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
15980
15981 2005-08-25  Simon Josefsson  <jas@extundo.com>
15982
15983         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
15984         __fsetlocking.
15985
15986 2005-08-25  Simon Josefsson  <jas@extundo.com>
15987
15988         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
15989         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
15990         GLIBC specific code.
15991
15992 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
15993
15994         Make regex safe for g++.  This fixes one real bug (an "err"
15995         that should have been "*err").  g++ problem reported by
15996         Sam Steingold.
15997         * lib/regex_internal.h (re_calloc): New macro, consistent with
15998         re_malloc etc.  All callers of calloc changed to use re_calloc.
15999         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
16000         not int.  All callers changed.
16001         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
16002         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
16003         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
16004         (find_recover_state): Change "err" to "*err"; this fixes what
16005         appears to be a real bug.
16006         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
16007         versus int.
16008
16009 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
16010
16011         * modules/regex (Depends-on): Add malloc, since the code
16012         assumes that !malloc(0) means failure.
16013
16014 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
16015
16016         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
16017
16018         alloca modernization/simplification for regex.
16019         * lib/regex.c: Remove portability cruft for alloca.  This no longer
16020         needs to be at the start of the file, and can be moved into
16021         regex_internal.h and simplified.
16022         * lib/regex_internal.h: Include <alloca.h>.
16023         (__libc_use_alloca) [!defined _LIBC]: New macro.
16024         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
16025         now works outside glibc.
16026
16027 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
16028
16029         * config/srclist.txt: Add glibc bugs 1241, 1245.
16030
16031 2005-08-25  Jim Meyering  <jim@meyering.net>
16032
16033         * lib/open-safer.c: Include <config.h>.
16034         Otherwise, we'd lose LARGEFILE support in any file using
16035         e.g. "fcntl--.h"
16036
16037 2005-08-25  Bruno Haible  <bruno@clisp.org>
16038
16039         * m4/minmax.m4: Require autoconf 2.52.
16040         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
16041         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
16042         alternatives of translit over the alphabet.
16043         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
16044
16045 2005-08-24  Simon Josefsson  <jas@extundo.com>
16046
16047         * tests/test-getpass.c: New file.
16048
16049 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
16050
16051         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
16052         for GNU regex features.
16053
16054 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
16055
16056         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
16057         * lib/regex.h (regerror): Likewise.
16058
16059         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
16060         requires this.  (The code never needed it.)
16061
16062         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
16063         All uses of recently-renamed identifiers changed to use the new,
16064         POSIX-compliant names.  The code will build and run just fine
16065         without these changes, but it's better to eat our own dog food
16066         and use the standard-conforming names.
16067
16068         * lib/regex.h: Fix a multitude of POSIX name space violations.
16069         These changes have an effect only for programs that define
16070         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
16071         do not change anything for programs compiled in the normal way.
16072         Also, there is no effect on the ABI.
16073
16074         (_REGEX_SOURCE): New macro.
16075         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
16076         defined and _GNU_SOURCE is not; this fixes a name space violation.
16077
16078         Rename the following macros to obey POSIX requirements.
16079         The old names are still visible as macros if _REGEX_SOURCE is defined.
16080         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
16081         RE_BACKSLASH_ESCAPE_IN_LISTS.
16082         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
16083         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
16084         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
16085         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
16086         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
16087         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
16088         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
16089         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
16090         (REG_INTERVALS): renamed from RE_INTERVALS.
16091         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
16092         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
16093         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
16094         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
16095         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
16096         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
16097         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
16098         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
16099         RE_UNMATCHED_RIGHT_PAREN_ORD.
16100         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
16101         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
16102         (REG_DEBUG): renamed from RE_DEBUG.
16103         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
16104         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
16105         unusual, since we can't clash with the POSIX REG_ICASE.
16106         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
16107         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
16108         (REG_NO_SUB): renamed from RE_NO_SUB.
16109         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
16110         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
16111         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
16112         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
16113         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
16114         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
16115         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
16116         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
16117         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
16118         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
16119         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
16120         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
16121         RE_SYNTAX_POSIX_MINIMAL_BASIC.
16122         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
16123         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
16124         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
16125         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
16126         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
16127         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
16128         (REG_FIXED): Renamed from REGS_FIXED.
16129         (REG_NREGS): Renamed from RE_NREGS.
16130
16131         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
16132         of other REG_* macros, since POSIX says the user is allowed to
16133         #undef these macros selectively.
16134
16135         (reg_errcode_t): Update comment stating what other tables need
16136         to be consistent.
16137
16138         Rename the following enum values to obey POSIX requirements.
16139         The old names are still visible as macros.
16140         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
16141         is not defined, since GNU is supposed to be a superset of POSIX as
16142         much as possible, and since we want reg_errcode_t to be a signed
16143         type for implementation consistency.
16144         (_REG_NOERROR): Renamed from REG_NOERROR.
16145         (_REG_NOMATCH): Renamed from REG_NOMATCH.
16146         (_REG_BADPAT): Renamed from REG_BADPAT.
16147         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
16148         (_REG_ECTYPE): Renamed from REG_ECTYPE.
16149         (_REG_EESCAPE): Renamed from REG_EESCAPE.
16150         (_REG_ESUBREG): Renamed from REG_ESUBREG.
16151         (_REG_EBRACK): Renamed from REG_EBRACK.
16152         (_REG_EPAREN): Renamed from REG_EPAREN.
16153         (_REG_EBRACE): Renamed from REG_EBRACE.
16154         (_REG_BADBR): Renamed from REG_BADBR.
16155         (_REG_ERANGE): Renamed from REG_ERANGE.
16156         (_REG_ESPACE): Renamed from REG_ESPACE.
16157         (_REG_BADRPT): Renamed from REG_BADRPT.
16158         (_REG_EEND): Renamed from REG_EEND.
16159         (_REG_ESIZE): Renamed from REG_ESIZE.
16160         (_REG_ERPAREN): Renamed from REG_ERPAREN.
16161         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
16162         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
16163         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
16164         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
16165
16166         (_REG_RE_NAME, _REG_RM_NAME): New macros.
16167         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
16168         changed.  But support the old name if the new one is not defined
16169         and if _REGEX_SOURCE.
16170
16171         Change the following member names in struct re_pattern_buffer.
16172         The old names are still supported if !_REGEX_SOURCE.
16173         The new names are always supported, regardless of _REGEX_SOURCE.
16174         (re_buffer): Renamed from buffer.
16175         (re_allocated): Renamed from allocated.
16176         (re_used): Renamed from used.
16177         (re_syntax): Renamed from syntax.
16178         (re_fastmap): Renamed from fastmap.
16179         (re_translate): Renamed from translate.
16180         (re_can_be_null): Renamed from can_be_null.
16181         (re_regs_allocated): Renamed from regs_allocated.
16182         (re_fastmap_accurate): Renamed from fastmap_accurate.
16183         (re_no_sub): Renamed from no_sub.
16184         (re_not_bol): Renamed from not_bol.
16185         (re_not_eol): Renamed from not_eol.
16186         (re_newline_anchor): Renamed from newline_anchor.
16187
16188         Change the following member names in struct re_registers.
16189         The old names are still supported if !_REGEX_SOURCE.
16190         The new names are always supported, regardless of _REGEX_SOURCE.
16191         (rm_num_regs): Renamed from num_regs.
16192         (rm_start): Renamed from start.
16193         (rm_end): Renamed from end.
16194
16195         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
16196         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
16197         Prepend __ to parameter names.
16198
16199         Undo yesterday's changes.
16200
16201 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
16202
16203         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
16204         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
16205         lib/regex.c.
16206
16207 2005-08-24  Jim Meyering  <jim@meyering.net>
16208
16209         Sync from coreutils.
16210         * m4/fcntl-safer.m4: New file.
16211
16212         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
16213         and object files for this module.
16214
16215 2005-08-24  Jim Meyering  <jim@meyering.net>
16216
16217         Sync from coreutils.
16218         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
16219
16220 2005-08-24  Jim Meyering  <jim@meyering.net>
16221
16222         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
16223         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
16224
16225 2005-08-24  Jim Meyering  <jim@meyering.net>
16226
16227         * modules/fcntl-safer: New module.
16228         * modules/fts (Depends-on): Add fcntl-safer.
16229         * MODULES.html.sh (File descriptor based Input/Output):
16230         Add fcntl-safer.
16231
16232 2005-08-24  Bruno Haible  <bruno@clisp.org>
16233
16234         Support for unit test modules.
16235         * modules/README: Mention tests modules.
16236         * modules/TEMPLATE-TESTS: New file.
16237         * gnulib-tool: New options --extract-tests-module, --with-tests and
16238         --tests-base (unused for the moment).
16239         (testsbase, inctests): New variables.
16240         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
16241         (func_verify_module): Exclude TEMPLATE-TESTS.
16242         (func_verify_nontests_module, func_verify_tests_module): New functions.
16243         (func_get_dependencies): Add implicit dependency for tests modules.
16244         (func_get_tests_module): New function.
16245         (func_modules_transitive_closure): When --with-tests was specified,
16246         include the unit tests as well, unless explicitly avoided.
16247         (func_emit_lib_Makefile_am): Ignore the tests modules here.
16248         (func_emit_tests_Makefile_am): New function.
16249         (func_create_testdir): When --with-tests was specified, emit a
16250         tests/ directory.
16251         * MODULES.html.sh (Future developments): Update.
16252
16253 2005-08-24  Bruno Haible  <bruno@clisp.org>
16254
16255         * modules/tls-tests: New file.
16256         * tests/test-tls.c: New file, from GNU gettext.
16257
16258 2005-08-24  Bruno Haible  <bruno@clisp.org>
16259
16260         * modules/lock-tests: New file.
16261         * tests/test-lock.c: New file, from GNU gettext.
16262
16263 2005-08-24  Bruno Haible  <bruno@clisp.org>
16264
16265         * lib/lock.h: Add multiple inclusion guard.
16266         * lib/tls.h: Add multiple inclusion guard.
16267
16268 2005-08-24  Bruno Haible  <bruno@clisp.org>
16269
16270         * gnulib-tool: Add support for the --aux-dir option to
16271         --create-testdir, --create-megatestdir, --test, --megatest.
16272         (func_create_testdir, func_create_megatestdir): Optionally emit a
16273         AC_CONFIG_AUX_DIR directive.
16274         (create-testdir, create-megatestdir, test, megatest): Provide a
16275         default value for $auxdir.
16276
16277 2005-08-24  Bruno Haible  <bruno@clisp.org>
16278
16279         * gnulib-tool (import): Use compound statement instead of subshell
16280         where possible.
16281
16282 2005-08-24  Bruno Haible  <bruno@clisp.org>
16283
16284         * gnulib-tool (import): Change --aux-dir default to "build-aux".
16285
16286 2005-08-24  Bruno Haible  <bruno@clisp.org>
16287
16288         * gnulib-tool (func_version): Update.
16289
16290 2005-08-24  Bruno Haible  <bruno@clisp.org>
16291
16292         * gnulib-tool (func_import, func_create_testdir,
16293         func_create_megatestdir): Quote all autoconf macro arguments.
16294
16295 2005-08-24  Bruno Haible  <bruno@clisp.org>
16296
16297         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
16298         option --force, because --force causes the aclocal.m4 of each
16299         subdirectory to be newer than the corresponding config.h.in.
16300
16301 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
16302
16303         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
16304         All contents moved to gl_REGEX.
16305         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
16306         assume that it does.
16307
16308 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
16309
16310         * lib/regex.h (REG_NOSYS)
16311         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
16312         Define, since POSIX requires it as of 2001.
16313         (_REG_ENOSYS)
16314         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
16315         New private symbol, used to keep the enum signed in all cases.
16316         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
16317         Youngman in
16318         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
16319
16320         * lib/regex_internal.c (re_string_skip_chars, register_state):
16321         (calc_state_hash):
16322         Remove forward decls; no longer needed now that we use prototypes.
16323         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
16324         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
16325         (clean_state_log_if_needed): Likewise.
16326
16327 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
16328
16329         * config/srclist.txt: Add glibc bugs 1231-1233.
16330
16331 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
16332
16333         Fix problems reported by Sam Steingold in
16334         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
16335         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
16336         assumed that reg_errcode_t is a signed type, which is not
16337         necessarily true if _XOPEN_SOURCE is not defined.
16338         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
16339         since some compilers warn about it otherwise.
16340
16341 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
16342
16343         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
16344         (init_word_char, create_initial_state, duplicate_node_closure):
16345         (fetch_token, peek_token_bracket, build_range_exp):
16346         (build_collating_symbol): Remove forward decls; no longer needed
16347         now that we use prototypes.
16348
16349         * lib/regcomp.c:
16350         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
16351         (re_compile_fastmap_iter, regcomp, regerror, regfree):
16352         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
16353         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
16354         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
16355         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
16356         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
16357         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
16358         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
16359         (build_range_exp, build_collating_symbol, parse_bracket_exp):
16360         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
16361         (build_charclass, build_charclass_op, fetch_number, create_tree):
16362         (create_token_tree, mark_opt_subexp, duplicate_tree):
16363         Use prototypes rather than old-style definitions.
16364
16365         * lib/regex_internal.c:
16366         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
16367         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
16368         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
16369         (re_string_reconstruct, re_string_peek_byte_case):
16370         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
16371         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
16372         (re_node_set_init_copy, re_node_set_add_intersect):
16373         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
16374         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
16375         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
16376         (re_acquire_state, re_acquire_state_context, register_state):
16377         (create_ci_newstate, create_cd_newstate, free_state):
16378         Likewise.
16379         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
16380         re_search_2):
16381         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
16382         (re_search_internal, prune_impossible_nodes):
16383         (acquire_init_state_context, check_matching, static):
16384         (check_halt_node_context, check_halt_state_context, proceed_next_node):
16385         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
16386         (update_regs, sift_states_backward, build_sifted_states):
16387         (clean_state_log_if_needed, merge_state_array):
16388         (update_cur_sifted_state, add_epsilon_src_nodes):
16389         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
16390         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
16391         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
16392         (find_recover_state, check_subexp_matching_top, transit_state_mb):
16393         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
16394         (check_arrival, check_arrival_add_next_nodes):
16395         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
16396         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
16397         (check_node_accept_bytes, check_node_accept, extend_buffers):
16398         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
16399         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
16400         (sift_ctx_init):
16401         Likewise.
16402
16403         * lib/regex_internal.h:
16404         (re_string_allocate, re_string_construct, re_string_reconstruct):
16405         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
16406         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
16407         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
16408         (re_string_context_at, re_string_peek_byte_case):
16409         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
16410         is defined, since we now use prototypes always.
16411
16412         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
16413         C89 or better.  All uses removed.
16414
16415 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
16416
16417         * config/srclist.txt: Add glibc bugs 1220-1227.
16418
16419 2005-08-20  Jim Meyering  <jim@meyering.net>
16420
16421         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
16422         of unused local, dfa.
16423
16424 2005-08-20  Bruno Haible  <bruno@clisp.org>
16425
16426         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
16427
16428 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
16429
16430         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
16431         (re_node_set_insert_last, re_dfa_add_node):
16432         Rename local variables to avoid GCC shadowing warnings.
16433
16434 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
16435
16436         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
16437         [defined lint]: Suppress bogus uninitialized-variable warnings.
16438
16439         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
16440         and let the caller return REG_ESPACE if out of space.  This
16441         removes an uninitialied-variable warning with GCC 4.0.1, and also
16442         avoids taking the address of a local variable.  All callers
16443         changed.
16444
16445 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
16446
16447         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
16448         $LIBCSRC/posix/regexec.c.
16449         Add glibc bug 1217 for regcomp.c.
16450
16451 2005-08-19  Jim Meyering  <jim@meyering.net>
16452
16453         * lib/regexec.c (proceed_next_node): Redo local variables to
16454         avoid GCC shadowing warnings.
16455
16456 2005-08-18  Bruno Haible  <bruno@clisp.org>
16457
16458         * lib/strstr.c (strstr): Fix return value in multibyte case.
16459         * lib/strcasestr.c (strcasestr): Likewise.
16460
16461 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
16462
16463         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
16464
16465 2005-08-17  Jim Meyering  <jim@meyering.net>
16466
16467         Make the %s format (seconds since the epoch) work for a negative
16468         number and when used with a zero-padded field width, e.g. %015s.
16469
16470         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
16471         label so that it precedes the code to set `digits'.  Otherwise,
16472         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
16473         print `00-22'.  Now, it prints `-0022', as it should.
16474
16475 2005-08-17  Bruno Haible  <bruno@clisp.org>
16476
16477         * modules/strstr (Files): Add m4/mbrtowc.m4.
16478         (Depends-on): Add mbuiter.
16479
16480 2005-08-17  Bruno Haible  <bruno@clisp.org>
16481
16482         * modules/strcasestr: New file.
16483         * MODULES.html.sh (String handling, based on ANSI C 89): Add
16484         strcasestr.
16485
16486 2005-08-17  Bruno Haible  <bruno@clisp.org>
16487
16488         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
16489
16490 2005-08-17  Bruno Haible  <bruno@clisp.org>
16491
16492         * modules/mbuiter: New file.
16493         * MODULES.html.sh (Extended multibyte and wide character utilities):
16494         Add mbuiter.
16495
16496 2005-08-17  Bruno Haible  <bruno@clisp.org>
16497
16498         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
16499         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
16500
16501 2005-08-17  Bruno Haible  <bruno@clisp.org>
16502
16503         * m4/strcasestr.m4: New file.
16504
16505 2005-08-17  Bruno Haible  <bruno@clisp.org>
16506
16507         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
16508         * lib/strstr.c: Completely rewritten, with multibyte locale support.
16509
16510 2005-08-17  Bruno Haible  <bruno@clisp.org>
16511
16512         * lib/strcasestr.h: New file.
16513         * lib/strcasestr.c: New file.
16514
16515 2005-08-17  Bruno Haible  <bruno@clisp.org>
16516
16517         * lib/strcasecmp.c: Use mbuiter.h.
16518
16519 2005-08-17  Bruno Haible  <bruno@clisp.org>
16520
16521         * lib/mbuiter.h: New file.
16522
16523 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
16524
16525         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
16526         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
16527         and gl_GETOPT are both invoked via different paths (as happens
16528         with GNU tar CVS because it uses both argp and getopt), the former
16529         wins.
16530
16531 2005-08-16  Bruno Haible  <bruno@clisp.org>
16532
16533         * modules/tls: New file.
16534         * MODULES.html.sh (Multithreading): Add tls.
16535
16536 2005-08-16  Bruno Haible  <bruno@clisp.org>
16537
16538         * modules/strnlen1: New file.
16539         * MODULES.html.sh (String handling): Add strnlen1.
16540
16541 2005-08-16  Bruno Haible  <bruno@clisp.org>
16542
16543         * modules/strcase (Files): Add m4/mbrtowc.m4.
16544         (Depends-on): Add strnlen1, mbchar.
16545
16546 2005-08-16  Bruno Haible  <bruno@clisp.org>
16547
16548         * modules/mbiter: New file.
16549         * MODULES.html.sh (Extended multibyte and wide character utilities):
16550         Add mbiter.
16551
16552 2005-08-16  Bruno Haible  <bruno@clisp.org>
16553
16554         * modules/mbfile: New file.
16555         * MODULES.html.sh (Extended multibyte and wide character utilities):
16556         Add mbfile.
16557
16558 2005-08-16  Bruno Haible  <bruno@clisp.org>
16559
16560         * modules/mbchar: New file.
16561         * MODULES.html.sh (Extended multibyte and wide character utilities):
16562         New section.
16563
16564 2005-08-16  Bruno Haible  <bruno@clisp.org>
16565
16566         * m4/tls.m4: New file, from GNU gettext.
16567
16568 2005-08-16  Bruno Haible  <bruno@clisp.org>
16569
16570         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
16571         always.
16572         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
16573
16574 2005-08-16  Bruno Haible  <bruno@clisp.org>
16575
16576         * m4/mbiter.m4: New file.
16577
16578 2005-08-16  Bruno Haible  <bruno@clisp.org>
16579
16580         * m4/mbfile.m4: New file.
16581
16582 2005-08-16  Bruno Haible  <bruno@clisp.org>
16583
16584         * m4/mbchar.m4: New file.
16585
16586 2005-08-16  Bruno Haible  <bruno@clisp.org>
16587
16588         * lib/tls.h: New file, from GNU gettext.
16589         * lib/tls.c: New file, from GNU gettext.
16590
16591 2005-08-16  Bruno Haible  <bruno@clisp.org>
16592
16593         * lib/strnlen1.h: New file.
16594         * lib/strnlen1.c: New file.
16595
16596 2005-08-16  Bruno Haible  <bruno@clisp.org>
16597
16598         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
16599         (mbi_init): Update.
16600         (mbi_avail, mbi_advance): Let the iteration end before the terminating
16601         NUL byte, not after it.
16602
16603 2005-08-16  Bruno Haible  <bruno@clisp.org>
16604
16605         * lib/strcase.h (strcasecmp): Add note in comments.
16606         * lib/strncasecmp.c: Use code from strcasecmp.c.
16607         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
16608         (strcasecmp): Work correctly in multibyte locales.
16609
16610 2005-08-16  Bruno Haible  <bruno@clisp.org>
16611
16612         * lib/mbiter.h: New file.
16613
16614 2005-08-16  Bruno Haible  <bruno@clisp.org>
16615
16616         * lib/mbfile.h: New file.
16617
16618 2005-08-16  Bruno Haible  <bruno@clisp.org>
16619
16620         * lib/mbchar.h: New file.
16621         * lib/mbchar.c: New file.
16622
16623 2005-08-16  Bruno Haible  <bruno@clisp.org>
16624
16625         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
16626         the valid ones. Makes the comparison operations transitive:
16627         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
16628         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
16629
16630 2005-08-15  Simon Josefsson  <jas@extundo.com>
16631
16632         * modules/ssize_t (License): Change to 'unlimited'.
16633
16634         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
16635
16636 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
16637
16638         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
16639         Add comments for each pending glibc patch.
16640
16641 2005-08-15  Bruno Haible  <bruno@clisp.org>
16642
16643         * lib/regex.h (__restrict_arr): Don't define to __restrict if
16644         __cplusplus is defined.
16645
16646 2005-08-14  Jim Meyering  <jim@meyering.net>
16647
16648         Sync from coreutils.
16649
16650         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
16651         Use the hash-table-based cycle-detection code not just when
16652         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
16653         Reported by James Youngman in
16654         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
16655         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
16656         FTS_TIGHT_CYCLE_CHECK.
16657         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
16658         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
16659         once again.
16660         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
16661         * lib/fts.c (fd_safer): Remove decl.
16662         Include fcntl--.h rather than unistd-safer.h
16663         (fts_safe_changedir): Don't call fd_safer; no longer needed
16664         now that we include fcntl--.h.
16665
16666 2005-08-12  Simon Josefsson  <jas@extundo.com>
16667
16668         * modules/getndelim2: Use ssize_t module.
16669         * modules/getnline: Likewise.
16670         * modules/safe-read: Likewise.
16671         * modules/xreadlink: Likewise.
16672
16673         * modules/ssize_t: New file.
16674
16675 2005-08-12  Simon Josefsson  <jas@extundo.com>
16676
16677         * m4/readline.m4: Look for termcap, curses or ncurses if required.
16678
16679 2005-08-12  Simon Josefsson  <jas@extundo.com>
16680
16681         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
16682         ssize_t.
16683
16684 2005-08-12  Simon Josefsson  <jas@extundo.com>
16685
16686         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
16687         readline, getdelim and check_version.
16688         (Support for systems lacking ISO C 99: Sizes of integer types):
16689         Add size_max.
16690
16691 2005-08-12  Bruno Haible  <bruno@clisp.org>
16692
16693         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
16694
16695 2005-08-11  Simon Josefsson  <jas@extundo.com>
16696
16697         * modules/readline: New file.
16698
16699         * modules/strnlen (Files): Add strnlen.h.
16700
16701 2005-08-11  Simon Josefsson  <jas@extundo.com>
16702
16703         * m4/readline.m4: New file.
16704
16705 2005-08-11  Simon Josefsson  <jas@extundo.com>
16706
16707         * lib/readline.h, readline.c: New file.
16708
16709 2005-08-11  Simon Josefsson  <jas@extundo.com>
16710
16711         * doc/gnulib.texi (Initial import, Finishing touches): Mention
16712         gl_AVOID.
16713
16714 2005-08-11  Bruno Haible  <bruno@clisp.org>
16715
16716         * lib/strnlen.h (strnlen): Change parameter name to match comment.
16717
16718 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
16719
16720         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
16721
16722 2005-08-10  Simon Josefsson  <jas@extundo.com>
16723
16724         * tests/test-iconvme.c: New file.
16725
16726 2005-08-10  Simon Josefsson  <jas@extundo.com>
16727
16728         * m4/strnlen.m4: New file.
16729
16730         * m4/strndup.m4: Don't check for strnlen declaration, done in
16731         strnlen.m4.
16732
16733 2005-08-10  Simon Josefsson  <jas@extundo.com>
16734
16735         * lib/strndup.c: Use strnlen.h.
16736
16737         * lib/strnlen.h: New file.
16738
16739 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
16740
16741         * README: Typos.
16742
16743 2005-08-02  Simon Josefsson  <jas@extundo.com>
16744
16745         * modules/readline: New file.
16746
16747 2005-08-02  Simon Josefsson  <jas@extundo.com>
16748
16749         * modules/getdelim: New file.
16750
16751         * modules/getline: Rewrite, don't use getndelim2.
16752
16753 2005-08-02  Simon Josefsson  <jas@extundo.com>
16754
16755         * m4/getline.m4: Separate out getdelim stuff into separate module.
16756
16757         * m4/getdelim.m4: New file.
16758
16759 2005-08-02  Simon Josefsson  <jas@extundo.com>
16760
16761         * lib/getline.h, getline.c: Rewrite.
16762
16763         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
16764
16765 2005-07-31  Bruno Haible  <bruno@clisp.org>
16766
16767         * lib/lock.h (gl_lock_initializer): New macro.
16768         (gl_lock_define_initialized): Use it.
16769         (gl_rwlock_initializer): New macro.
16770         (gl_rwlock_define_initialized): Use it.
16771         (gl_recursive_lock_initializer): New macro.
16772         (gl_recursive_lock_define_initialized): Use it.
16773
16774 2005-07-30  Karl Berry  <karl@gnu.org>
16775
16776         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
16777         Report from Ben Pfaff, regarding getopt.
16778
16779 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
16780
16781         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
16782         normal way.
16783         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
16784         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
16785         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
16786         (gl_GETOPT): Use the new macros.  Most of the implementation
16787         is moved to the new macros.  This is for programs like Emacs
16788         that don't want all the functionality of gl_GETOPT.
16789
16790 2005-07-26  Bruno Haible  <bruno@clisp.org>
16791
16792         * m4/lock.m4: Update from GNU gettext.
16793
16794 2005-07-26  Bruno Haible  <bruno@clisp.org>
16795
16796         * lib/lock.h: Update from GNU gettext.
16797         * lib/lock.c: Update from GNU gettext.
16798
16799 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
16800
16801         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
16802         obsolescent AC_TRY_RUN.  Include the default includes files, for
16803         'exit'.
16804
16805 2005-07-24  Bruno Haible  <bruno@clisp.org>
16806
16807         * modules/visibility: New file.
16808         * MODULES.html.sh (Misc): Add visibility.
16809
16810 2005-07-24  Bruno Haible  <bruno@clisp.org>
16811
16812         * m4/visibility.m4: New file.
16813
16814 2005-07-24  Bruno Haible  <bruno@clisp.org>
16815
16816         * doc/visibility.texi: New file.
16817
16818 2005-07-22  Bruno Haible  <bruno@clisp.org>
16819
16820         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
16821         $(ALLOCA_H), redundant through BUILT_SOURCES.
16822         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
16823         redundant through BUILT_SOURCES.
16824         * modules/byteswap (Makefile.am): Remove explicit dependency on
16825         $(BYTESWAP_H), redundant through BUILT_SOURCES.
16826         * modules/fnmatch (Makefile.am): Remove explicit dependency on
16827         $(FNMATCH_H), redundant through BUILT_SOURCES.
16828         * modules/getopt (Makefile.am): Remove explicit dependency on
16829         $(GETOPT_H), redundant through BUILT_SOURCES.
16830         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
16831         redundant through BUILT_SOURCES.
16832         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
16833         redundant through BUILT_SOURCES.
16834         * modules/stdbool (Makefile.am): Remove explicit dependency on
16835         $(STDBOOL_H), redundant through BUILT_SOURCES.
16836         * modules/stdint (Makefile.am): Remove explicit dependency on
16837         $(STDINT_H), redundant through BUILT_SOURCES.
16838         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
16839         Remove explicit dependency on $(SYSEXITS_H).
16840         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
16841
16842 2005-07-18  Simon Josefsson  <jas@extundo.com>
16843
16844         * lib/check-version.c (check_version): Accept identical versions too.
16845
16846 2005-07-18  Bruno Haible  <bruno@clisp.org>
16847
16848         * modules/lock: New file.
16849         * MODULES.html.sh (Multithreading): New section.
16850
16851 2005-07-18  Bruno Haible  <bruno@clisp.org>
16852
16853         * m4/lock.m4: New file, from GNU gettext.
16854
16855 2005-07-18  Bruno Haible  <bruno@clisp.org>
16856
16857         * lib/lock.h: New file, from GNU gettext.
16858         * lib/lock.c: New file, from GNU gettext.
16859
16860 2005-07-18  Bruno Haible  <bruno@clisp.org>
16861
16862         * lib/lock.h (gl_once_t): New type.
16863         (gl_once_define, gl_once): New macros.
16864         * lib/lock.c (fresh_once): New variable.
16865         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
16866         functions.
16867
16868 2005-07-16  Simon Josefsson  <jas@extundo.com>
16869
16870         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
16871         workaround, suggested by Bruno.
16872
16873 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
16874
16875         * modules/xalloc (Depends-on): Add xalloc-die.
16876         * modules/xvasprintf (Depends-on): Add xalloc-die.
16877
16878 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
16879
16880         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
16881         with a minor change.
16882
16883 2005-07-15  Bruno Haible  <bruno@clisp.org>
16884
16885         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
16886         When using lib/poll.c, define poll as rpl_poll.
16887
16888 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
16889
16890         * modules/argp (Depends-on): Remove unlocked-io.
16891
16892 2005-07-14  Derek Price  <derek@ximbiot.com>
16893
16894         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
16895         for glob symlink bug.
16896
16897 2005-07-14  Bruno Haible  <bruno@clisp.org>
16898
16899         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
16900         Instead, test for *_unlocked function declarations directly.
16901
16902 2005-07-11  Simon Josefsson  <jas@extundo.com>
16903
16904         * modules/size_max: New file.
16905
16906         * modules/xsize: Depend on size_max module for size_max.m4.
16907
16908 2005-07-11  Simon Josefsson  <jas@extundo.com>
16909
16910         * lib/size_max.h: New file.
16911
16912 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
16913
16914         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
16915         copyright symbol and the year.
16916         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
16917         (version_etc_va): Use parameterized copyright notice.
16918         Reword to conform to the current GNU coding standards.
16919
16920 2005-07-11  Karl Berry  <karl@gnu.org>
16921
16922         * doc/gnulib.texi (Quoting): new node.
16923         (Initial import): more info, from Patrice.
16924
16925 2005-07-11  Bruno Haible  <bruno@clisp.org>
16926
16927         * gnulib-tool (func_usage): Document option --avoid.
16928         (Command line options): Handle --avoid.
16929         (func_acceptable): New function.
16930         (func_modules_transitive_closure): Use it.
16931
16932 2005-07-11  Bruno Haible  <bruno@clisp.org>
16933
16934         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
16935         Reported by Jim Meyering.
16936
16937 2005-07-10  Bruno Haible  <bruno@clisp.org>
16938
16939         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
16940         Needed when size_t is smaller than 'unsigned int'.
16941         Reported by Paul Eggert.
16942
16943 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
16944
16945         * modules/argp (Depends-on): Add unlocked-io
16946
16947 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
16948
16949         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
16950         block of defines.
16951
16952 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
16953
16954         * config/srclist.txt: Comment out regcomp.c, since we have a porting
16955         fix now.
16956
16957 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
16958         and Paul Eggert  <eggert@cs.ucla.edu>
16959
16960         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
16961         in wint_t, not wchar_t.  Remove now-unnecessary cast.
16962
16963 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
16964
16965         * modules/regex (Files): Add lib/regex_internal.c,
16966         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
16967         (Depends-on): Add extensions.
16968         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
16969
16970 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
16971
16972         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
16973         pathconf.
16974         * m4/same.m4 (gl_SAME): Likewise.
16975         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
16976
16977         * m4/regex.m4: Adjust to new libc regex implementation.
16978         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
16979         all the .c and .h parts of (the new) regex.
16980         Quote the m4 stuff better.
16981         Check for RE_ICASE bug of old gnulib.
16982         Check for REG_STARTEND of recent libc.
16983         Rename local variables from jm_* to gl_*.
16984         Quote operand of "test -f".
16985         Say "recent enough" version of libc, not "version 2".
16986         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
16987         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
16988         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
16989         Remove check for btowc, isascii.
16990         Require AM_LANGINFO_CODESET.
16991
16992 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
16993
16994         * lib/regex.c, regex.h: Sync from libc.
16995         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
16996         * lib/regexec.c:
16997         New files, synced from libc, except that regex_internal.h
16998         currently has a small porting fix.
16999
17000 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
17001
17002         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
17003         regex_internal.c, regexec.c.
17004         Add regex_internal.h too, but as a comment, since the libc version
17005         is currently broken in gnulib mode.
17006
17007 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
17008
17009         Support programs like Emacs that use gnulib but not gettext.
17010         * MODULES.html.sh (Internationalization functions): Add gettext-h.
17011         * modules/gettext-h: New file.
17012         * modules/gettext (Files): Remove lib/gettext.h.
17013         (Depends-on): Add gettext-h.
17014         (Makefile.am): Remove lib_SOURCES.
17015         * modules/argmatch, modules/c-stack, modules/closeout:
17016         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
17017         * modules/execute, modules/file-type, modules/getaddrinfo:
17018         * modules/getopt, modules/human, modules/javacomp:
17019         * modules/javaexec, modules/mkdir-p, modules/obstack:
17020         * modules/openat, modules/pagealign_alloc, modules/pipe:
17021         * modules/quotearg, modules/regex, modules/rpmatch:
17022         * modules/unicodeio, modules/userspec, modules/version-etc:
17023         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
17024         * modules/xsetenv:
17025         Depend on gettext-h, not gettext.
17026
17027 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
17028
17029         * gnulib-tool (func_import): Add support for 'public domain' license.
17030         * modules/alloca, modules/atexit, modules/memmove:
17031         Now public domain, not GPL.
17032         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
17033         * modules/realloc, modules/strerror, modules/strtod:
17034         Now LGPL, not GPL.
17035
17036 2005-07-05  Bruno Haible  <bruno@clisp.org>
17037
17038         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
17039         autoconf CVS. Needed for mingw.
17040
17041 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
17042
17043         Remove the dependency of the strftime module on the tzset module.
17044         * modules/strftime (Depends-on): Remove dependency on tzset.
17045
17046 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
17047
17048         Remove the dependency of the strftime module on the tzset module.
17049         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
17050         gl_FUNC_TZSET_CLOBBER.
17051
17052 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
17053
17054         Remove the dependency of the strftime module on the tzset module.
17055         * lib/strftime.c (my_strftime)
17056         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
17057         Copy the input structure, to work around some of the bug with
17058         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
17059         Solaris releases, you should also use the tzset module, but we won't
17060         require it as a dependency any more since we don't want LGPLed code
17061         to depend on GPLed code.
17062
17063 2005-07-02  Jim Meyering  <jim@meyering.net>
17064
17065         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
17066         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
17067         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
17068         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
17069
17070 2005-07-02  Jim Meyering  <jim@meyering.net>
17071
17072         * lib/backupfile.c (backup_args): Change a `0' to NULL.
17073
17074 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
17075
17076         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
17077         declares only 'struct timespec;' (!).
17078
17079 2005-07-01  Jim Meyering  <jim@meyering.net>
17080
17081         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
17082         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
17083         * lib/save-cwd.c, tempname.c:
17084         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
17085         and don't include <sys/file.h>).
17086
17087 2005-06-29  Jim Meyering  <jim@meyering.net>
17088
17089         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
17090         type name.  Use the variable name instead.
17091         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
17092         Likewise.
17093
17094 2005-06-28  Simon Josefsson  <jas@extundo.com>
17095
17096         * modules/check-version (Files): Add check-version.m4.
17097
17098 2005-06-28  Simon Josefsson  <jas@extundo.com>
17099
17100         * m4/check-version.m4: New file, suggested by Jim Meyering
17101         <jim@meyering.net>.
17102
17103 2005-06-28  Simon Josefsson  <jas@extundo.com>
17104
17105         * lib/check-version.h, lib/check-version.c: New files.
17106
17107 2005-06-28  Simon Josefsson  <jas@extundo.com>
17108
17109         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
17110         collision with global variable.  Better indentation.  Don't
17111         increment buffer pointer beyond buffer end.  Based on comments
17112         from Paul Eggert <eggert@cs.ucla.edu>.
17113
17114         * lib/base64.h: Indent.
17115
17116 2005-06-28  Simon Josefsson  <jas@extundo.com>
17117
17118         * doc/gnulib.texi (Library version handling): New section.
17119
17120 2005-06-28  Jim Meyering  <jim@meyering.net>
17121
17122         * check-module (find_included_lib_files): Hard-code another
17123         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
17124         but modules/fts-lgpl (correctly) does not list those files.
17125
17126         * modules/canonicalize (Files): Add lib/pathmax.h.
17127
17128 2005-06-25  Simon Josefsson  <jas@extundo.com>
17129
17130         * modules/check-version: New file.
17131
17132 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
17133
17134         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
17135         initializer of struct addrinfo, as an indication that we don't
17136         care how many members the structure has.
17137
17138 2005-06-24  Derek Price  <derek@ximbiot.com>
17139         and Bruno Haible  <bruno@clisp.org>
17140
17141         Remove stat module & update lstat.
17142         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
17143         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
17144         * m4/stat.m4: Remove this file.
17145
17146 2005-06-24  Derek Price  <derek@ximbiot.com>
17147         and Bruno Haible  <bruno@clisp.org>
17148
17149         Remove stat module & update lstat.
17150         * lib/stat.c: Remove this file...
17151         (slash_aware_lstat): ...moving this content and its support...
17152         * lib/lstat.c (rpl_lstat): ...into here.
17153         * lib/lstat.h: New file.
17154
17155 2005-06-24  Derek Price  <derek@ximbiot.com>
17156         and Bruno Haible  <bruno@clisp.org>
17157
17158         Remove stat module & update lstat.
17159         * config/srclist.txt (libc sources): Remove stat.
17160
17161 2005-06-24  Derek Price  <derek@ximbiot.com>
17162         and Bruno Haible  <bruno@clisp.org>
17163
17164         Remove stat module & update lstat.
17165         * MODULES.html.sh (stat): Remove.
17166         * MODULES.html: Regenerated.
17167         * modules/lstat (Description): Correct function name.
17168         (Files): Add "lstat.h".
17169         (Depends-on): Remove stat, add xalloc, stat-macros.
17170         * modules/stat: Remove this file.
17171         (Include): Add "lstat.h", remove <sys/stat.h>.
17172
17173 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
17174
17175         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
17176         (ranged_convert): Don't save conversion in a temporary struct.
17177         This causes a warning with GCC 4.0.0, and anyway in the typical
17178         case it's not worth the extra 100 bytes or so of code.
17179         (ranged_convert, __mktime_internal): When calling a function via a
17180         pointer P, use P () rather than (*P) (), as we now assume C89 or
17181         better.
17182
17183 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
17184
17185         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
17186         "who -r" failed to give output.  Problem reported by Tim Waugh.
17187
17188         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
17189         (xcalloc): Use it to avoid needless tests.
17190         Problem reported by Jim Meyering.
17191
17192 2005-06-20  Derek Price  <derek@ximbiot.com>
17193
17194         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
17195         unnecessary for Autoconfs > 2.59c.
17196
17197 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
17198
17199         * lib/argp.h (__option_is_short): Check upper limit of
17200         __key. Isprint() requires its argument to have the value
17201         of an unsigned char or EOF.
17202
17203 2005-06-16  Jim Meyering  <jim@meyering.net>
17204
17205         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
17206         when either N or S is zero.
17207
17208 2005-06-16  Derek Price  <derek@ximbiot.com>
17209
17210         * m4/bison.m4: Declare YACC & YFLAGS precious.
17211
17212 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
17213
17214         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
17215         multibyte string or pattern, fall back on unibyte matching.
17216         Problem reported by James Youngman.
17217
17218 2005-06-08  Bruno Haible  <bruno@clisp.org>
17219
17220         * modules/csharpcomp: New file.
17221         * MODULES.html.sh (C#): Add csharpcomp.
17222
17223 2005-06-08  Bruno Haible  <bruno@clisp.org>
17224
17225         * m4/csharpcomp.m4: New file, from GNU gettext.
17226
17227 2005-06-08  Bruno Haible  <bruno@clisp.org>
17228
17229         * lib/csharpcomp.h: New file, from GNU gettext.
17230         * lib/csharpcomp.c: New file, from GNU gettext.
17231         * lib/csharpcomp.sh.in: New file, from GNU gettext.
17232
17233 2005-06-08  Bruno Haible  <bruno@clisp.org>
17234
17235         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
17236         warning on mingw.
17237
17238 2005-06-07  Derek Price  <derek@ximbiot.com>
17239
17240         Sync from CVS.
17241         * lib/glob_.h: Indent nested #ifdef.
17242
17243 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
17244
17245         Sync from coreutils.
17246         Use "file name" when talking about file names, instead of "filename"
17247         or "path", as per the GNU coding standards.
17248         * lib/mkdir-p.c: Renamed from makepath.c.
17249         (make_dir_parents): Renamed from make_path.  All callers changed.
17250         * lib/mkdir-p.h: Likewise.  All includers changed.
17251         * lib/filenamecat.c: Renamed from path-concat.c.
17252         (file_name_concat): Renamed from path_concat.  All callers changed.
17253         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
17254         * lib/filenamecat.h: Likewise.  All includers changed.
17255         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
17256         in comments or local variable names.
17257         * lib/basename.c: Likewise.
17258         * lib/canonicalize.c, canonicalize.h: Likewise.
17259         * lib/dirname.c, dirname.h: Likewise.
17260         * lib/euidaccess.c: Likewise.
17261         * lib/exclude.c: Likewise
17262         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
17263         * lib/fsusage.c, fsuage.h: Likewise.
17264         * lib/fts.c, fts_.h: Likewise.
17265         * lib/getcwd.c: Likewise.
17266         * lib/getloadavg.c: Likewise.
17267         * lib/mkstemp.c: Likewise.
17268         * lib/mountlist.c, mountlist.h: Likewise.
17269         * lib/openat.c, openat.h: Likewise.
17270         * lib/readlink-stub.c: Likewise.
17271         * lib/readutmp.c, readutmp.h: Likewise.
17272         * lib/rename.c: Likewise.
17273         * lib/rmdir.c: Likewise.
17274         * lib/same.c: Likewise.
17275         * lib/savedir.c: Likewise.
17276         * lib/stripslash.c: Likewise.
17277         * lib/tempname.c: Likewise.
17278         * lib/xreadlink.c: Likewise.
17279         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
17280         All uses changed.
17281         * lib/exclude.h: Likewise.
17282
17283         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
17284         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
17285         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
17286         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
17287         * lib/pathmax.h: Include <limits.h> unconditionally, since other
17288         files have been getting away with it for years (MORE/BSD 4.3
17289         is extinct now).
17290         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
17291         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
17292
17293         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
17294         Define to 256, not 255, as per modern POSIX.
17295
17296 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
17297
17298         Sync from coreutils.
17299         Use "file name" when talking about file names, instead of "filename"
17300         or "path", as per the GNU coding standards.
17301         * MODULES.html.sh: mkdir-p renamed from makepath.
17302         filenamecat renamed from path-concat.
17303         * modules/filenamecat: Renamed from modules/path-concat.
17304         (Files): filenamecat.h and filenamecat.c renamed from
17305         path-concat.h and path-concat.c.
17306         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
17307         (Include): filenamecat.h, not path-concat.h.
17308         * modules/mkdir-p: Renamed from modules/makepath.
17309         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
17310         makepath.c.
17311         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
17312         (Include): mkdir-p.h, not makepath.h.
17313
17314 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
17315
17316         Sync from coreutils.
17317         * m4/mkdir-p.m4: Renamed from makepath.m4.
17318         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
17319         Rename files from makepath.c to mkdir-p.c, and from
17320         makepath.h to mkdir-p.h.
17321         * m4/filenamecat.m4: Renamed from path-concat.m4.
17322         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
17323         Rename files from path-concat.c to filenamecat.c,
17324         and from path-concat.h to filenamecat.h.
17325         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
17326         "file name" in local variables or comments.
17327         * m4/rename.m4: Likewise.
17328
17329 2005-06-01  Bruno Haible  <bruno@clisp.org>
17330
17331         * modules/csharpexec: New file.
17332         * MODULES.html.sh (C#): New section.
17333
17334 2005-06-01  Bruno Haible  <bruno@clisp.org>
17335
17336         * m4/csharp.m4: New file, from GNU gettext.
17337         * m4/csharpexec.m4: New file, from GNU gettext.
17338
17339 2005-06-01  Bruno Haible  <bruno@clisp.org>
17340
17341         * lib/csharpexec.h: New file, from GNU gettext.
17342         * lib/csharpexec.c: New file, from GNU gettext.
17343         * lib/csharpexec.sh.in: New file, from GNU gettext.
17344
17345 2005-05-31  Derek Price  <derek@ximbiot.com>
17346             Paul Eggert  <eggert@cs.ucla.edu>
17347
17348         Sync from cvs.
17349         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
17350
17351 2005-05-31  Derek Price  <derek@ximbiot.com>
17352             Paul Eggert  <eggert@cs.ucla.edu>
17353
17354         Sync from cvs.
17355         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
17356
17357 2005-05-29  Derek Price  <derek@ximbiot.com>
17358
17359         * config/srclist.txt (glob_.h, glob.c): Add these files.
17360
17361 2005-05-29  Derek Price  <derek@ximbiot.com>
17362
17363         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
17364         * modules/glob: New file.
17365         * modules/getlogin_r: Add link to POSIX spec in description.
17366
17367 2005-05-29  Derek Price  <derek@ximbiot.com>
17368             Paul Eggert  <eggert@cs.ucla.edu>
17369
17370         * m4/glob.m4: New file.
17371
17372 2005-05-29  Derek Price  <derek@ximbiot.com>
17373             Paul Eggert  <eggert@cs.ucla.edu>
17374
17375         * lib/glob_.h, lib/glob.c: New files.
17376
17377 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
17378
17379         * modules/fts (Files): Remove m4/inttypes-pri.m4.
17380         * modules/fts-lgpl (Depends-on): Remove gettext.
17381
17382 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
17383
17384         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
17385         and don't require gt_INTTYPES_PRI.
17386
17387 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
17388
17389         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
17390
17391         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
17392         the configuration hassle isn't worth it.
17393         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
17394         (LONGEST_MODIFIER, PRIuMAX): Remove.
17395
17396 2005-05-27  Bruno Haible  <bruno@clisp.org>
17397
17398         * lib/getlogin_r.h: Remove second include of <stddef.h>.
17399
17400 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
17401
17402         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
17403         _POSIX_PTHREAD_SEMANTICS for Solaris.
17404
17405 2005-05-25  Derek Price  <derek@ximbiot.com>
17406
17407         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
17408
17409 2005-05-25  Derek Price  <derek@ximbiot.com>
17410             Paul Eggert  <eggert@cs.ucla.edu>
17411
17412         * modules/getlogin_r, m4/getlogin_r.m4: New files.
17413         * lib/getlogin_r.c, getlogin_r.h: New files.
17414
17415 2005-05-25  Bruno Haible  <bruno@clisp.org>
17416             Derek Price  <derek@ximbiot.com>
17417
17418         * lib/getlogin_r.h: Simplify API documentation.
17419
17420 2005-05-23  Derek Price  <derek@ximbiot.com>
17421
17422         * modules/minmax (Files): Add m4/minmax.m4.
17423         (configure.ac): Add gl_MINMAX.
17424
17425 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
17426
17427         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
17428         so that unistd-safer.h (GPL'ed code) need not be included.
17429
17430 2005-05-22  Bruno Haible  <bruno@clisp.org>
17431
17432         * m4/minmax.m4: New file.
17433         Based on a patch by Derek Price <derek@ximbiot.com>.
17434
17435 2005-05-22  Bruno Haible  <bruno@clisp.org>
17436
17437         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
17438         (INT64_MIN): Fix definition.
17439         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
17440
17441         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
17442         NEED_SIGNED_INT_TYPES.
17443
17444         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
17445         HAVE_SYSTEM_INTTYPES.
17446
17447 2005-05-22  Bruno Haible  <bruno@clisp.org>
17448
17449         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
17450         Also include <sys/param.h> if it defines MIN, MAX.
17451         Based on a patch by Derek Price <derek@ximbiot.com>.
17452
17453 2005-05-21  Jim Meyering  <jim@meyering.net>
17454
17455         * modules/fts (Files): Add m4/inttypes-pri.m4.
17456         (Depends-on): Add lstat and remove gettext.  Alphabetize.
17457
17458 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
17459
17460         New fts module.
17461         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
17462         (setup_dir, free_dir): New functions.
17463         (enter_dir, leave_dir): Define trivial
17464         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
17465         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
17466         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
17467         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
17468         Move to fts-cycle.c.
17469         (fts_open): Use setup_dir.
17470         (fts_close): Use free_dir.
17471         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
17472         This adds a label and some gotos, but the alternatives were messier.
17473         Check for memory allocation failure when entering a dir.
17474         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
17475         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
17476         (FTS): New member fts_cycle, that is a union that contains the
17477         old active_dir_ht and cycle_state.  All uses changed to mention
17478         fts_cycle.ht and fts_cycle.state.
17479         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
17480         fts.c, with the following changes:
17481         (setup_dir, free_dir): New functions.
17482         (enter_dir): Now returns bool.  Return true if successful, false
17483         if memory exhausted.  All callers changed.
17484         Do not bother partly cleaning up on
17485         memory allocation failure; that is free_dir's job.
17486         However, free ad if hash_insert fails, to avoid memory leak.
17487         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
17488         fts->fts_options to see which union member to use.
17489
17490 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
17491
17492         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
17493         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
17494
17495 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
17496
17497         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
17498
17499 2005-05-20  Jim Meyering  <jim@meyering.net>
17500
17501         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
17502         Now a macro, to pacify GCC.
17503
17504 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
17505
17506         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
17507         of -1.
17508
17509 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
17510
17511         * lib/chown.c (rpl_chown): Return -1 on failure.
17512
17513 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
17514
17515         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
17516         Don't check for stddef.h.
17517         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
17518         don't use its results.
17519         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
17520         since we include them unconditionally.  Don't require
17521         AM_STDBOOL_H, since stdbool is a prerequisite.
17522         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
17523         since we assume C89 or better.
17524         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
17525         as we don't use their results.
17526         Don't check for fchdir, memmove, memset, strrchr, as we use
17527         them unconditionally.
17528         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
17529         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
17530
17531 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
17532
17533         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
17534         Include <stddef.h> unconditionally, since we assume C89 now.
17535         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
17536         * lib/fts.c: Include fts_.h first, to check interface.
17537         Do not include intprops.h; no longer needed.
17538         Include cycle-check.h and hash.h, since fts_.h no longer does.
17539         Remove unnecessary casts of closedir to void.
17540         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
17541         decide whether to decrement nlinks.
17542         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
17543         (FTS): Use struct hash_table * instead of Hash_table, so that
17544         we no longer need to include hash.h here.
17545
17546 2005-05-18  Jim Meyering  <jim@meyering.net>
17547
17548         * modules/dirfd (License): Change to LGPL.  Most of the code
17549         is already in the public domain.
17550
17551 2005-05-18  Jim Meyering  <jim@meyering.net>
17552
17553         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
17554         Reported by Yoann Vandoorselaere.
17555
17556 2005-05-17  Jim Meyering  <jim@meyering.net>
17557
17558         * m4/fts.m4: New file, from coreutils.
17559
17560 2005-05-17  Jim Meyering  <jim@meyering.net>
17561
17562         * lib/fts.c, lib/fts_.h: New files, from coreutils.
17563
17564 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
17565
17566         Sync from coreutils.
17567         * m4/unlinkdir.m4: New file.
17568
17569 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
17570
17571         Sync from coreutils.
17572         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
17573         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
17574         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
17575         White space changes only.
17576         * lib/makepath.c (make_path): Port to hosts where leading "//" is
17577         special.
17578         * lib/yesno.c: Include getline.h, not ctype.h.
17579         (yesno): Don't remove leading white space; POSIX doesn't allow it.
17580         Use getline to remove arbitrary restriction on response length.
17581
17582 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
17583
17584         * config/srclist-update: Spell out "Street" in FSF postal
17585         mail address; this is the style the FSF seems to prefer.
17586
17587         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
17588         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
17589         this updates FSF postal mail address.
17590
17591         Sync from coreutils.
17592         * modules/unlinkdir: New file.
17593         * modules/yesno (Depends-on): Add getline.
17594         * MODULES.html.sh (File system functions): Add unlinkdir.
17595
17596 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
17597
17598         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
17599         lib/strsep.h:
17600         Change the initial comment to refer to GPL, not LGPL.
17601         gnulib-tool will change it to LGPL as needed.
17602
17603         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
17604         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
17605         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
17606         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
17607         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
17608         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
17609         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
17610         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
17611         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
17612         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
17613         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
17614         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
17615         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
17616         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
17617         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
17618         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
17619         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
17620         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
17621         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
17622         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
17623         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
17624         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
17625         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
17626         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
17627         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
17628         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
17629         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
17630         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
17631         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
17632         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
17633         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
17634         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
17635         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
17636         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
17637         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
17638         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
17639         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
17640         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
17641         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
17642         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
17643         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
17644         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
17645         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
17646         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
17647         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
17648         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
17649         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
17650         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
17651         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
17652         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
17653         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
17654         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
17655         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
17656         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
17657         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
17658         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
17659         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
17660         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
17661         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
17662         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
17663         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
17664         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
17665         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
17666         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
17667         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
17668         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
17669         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
17670         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
17671         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
17672         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
17673         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
17674         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
17675         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
17676         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
17677         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
17678         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
17679         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
17680         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
17681         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
17682         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
17683         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
17684         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
17685         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
17686         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
17687         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
17688         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
17689         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
17690         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
17691         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
17692         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
17693         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
17694         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
17695         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
17696         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
17697         lib/yesno.c, lib/yesno.h:
17698         Update FSF postal mail address.
17699
17700 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
17701
17702         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
17703         tests/test-memmem.c, tests/test-stpncpy.c:
17704         Update FSF postal mail address.
17705
17706 2005-05-13  Bruno Haible  <bruno@clisp.org>
17707
17708         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
17709         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
17710         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
17711         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
17712         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
17713         Add support for 64-bit integers in the MSVC compiler.
17714
17715 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
17716
17717         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
17718
17719 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
17720
17721         * gnulib-tool (func_import): Sort and uniquify recommended includes.
17722
17723 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
17724
17725         * doc/getdate.texi (General date syntax): Don't say that date
17726         date --iso-8601=ns generates acceptable dates; it doesn't yet.
17727         Problem reported by Nic Ferrier.
17728
17729 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
17730
17731         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
17732         specified in ai_socktype. Fix invalid ai_protocol
17733         check. ai_protocol is usually set to 0 or depending on
17734         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
17735         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
17736         ai_socktype / ai_protocol in the returned addrinfo structure.
17737
17738 2005-05-10  Simon Josefsson  <jas@extundo.com>
17739
17740         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
17741         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
17742
17743 2005-05-10  Karl Berry  <karl@gnu.org>
17744
17745         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
17746         (from http://www.gnu.org/licenses).
17747         * doc/COPYING.LIB: also rename to COPYING.LESSER.
17748         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
17749         fdl.texi suffices.
17750
17751 2005-05-10  Karl Berry  <karl@gnu.org>
17752
17753         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
17754         (COPYING.DOC): remove.
17755
17756         * config/srclist-update: new FSF address.
17757
17758 2005-05-10  Derek Price  <derek@ximbiot.com>
17759
17760         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
17761         possible.
17762
17763 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
17764             Bruno Haible  <bruno@clisp.org>
17765
17766         * modules/inet_ntop: New file.
17767         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
17768         inet_ntop.
17769
17770 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
17771             Bruno Haible  <bruno@clisp.org>
17772
17773         * m4/inet_ntop.m4: New file.
17774
17775 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
17776             Bruno Haible  <bruno@clisp.org>
17777
17778         * lib/inet_ntop.h: New file.
17779         * lib/inet_ntop.c: New file, from glibc with modifications.
17780
17781 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
17782
17783         * modules/time_r (License): Change to LGPL.
17784         * modules/extensions (License): Change to LGPL.  Actually,
17785         the license is more permissive than that, but currently gnulib-tool
17786         doesn't know how to handle more-permissive licenses.
17787
17788         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
17789         Problem reported by Dave Love.
17790
17791 2005-05-08  Jim Meyering  <jim@meyering.net>
17792
17793         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
17794         blank.
17795
17796 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
17797
17798         * modules/argmatch (Depends-on): Add stdbool.
17799         * modules/backupfile (Depends-on): Likewise.
17800         * modules/chdir-long (Depends-on): Likewise.
17801         * modules/closeout (Depends-on): Likewise.
17802         * modules/cycle-check (Depends-on): Likewise.
17803         * modules/dirname (Depends-on): Likewise.
17804         * modules/fnmatch (Depends-on): Likewise.
17805         * modules/fsusage (Depends-on): Likewise.
17806         * modules/fwriteerror (Depends-on): Likewise.
17807         * modules/getcwd (Depends-on): Likewise.
17808         * modules/getloadavg (Depends-on): Likewise.
17809         * modules/hard-locale (Depends-on): Likewise.
17810         * modules/makepath (Depends-on): Likewise.
17811         * modules/mountlist (Depends-on): Likewise.
17812         * modules/nanosleep (Depends-on): Likewise.
17813         * modules/posixtm (Depends-on): Likewise.
17814         * modules/quotearg (Depends-on): Likewise.
17815         * modules/readtokens (Depends-on): Likewise.
17816         * modules/readtokens0 (Depends-on): Likewise.
17817         * modules/readutmp (Depends-on): Likewise.
17818         * modules/save-cwd (Depends-on): Likewise.
17819         * modules/strftime (Depends-on): Likewise.
17820         * modules/userspec (Depends-on): Likewise.
17821         * modules/utimecmp (Depends-on): Likewise.
17822         * modules/xgetcwd (Depends-on): Likewise.
17823         * modules/xnanosleep (Depends-on): Likewise.
17824         * modules/xstrtod (Depends-on): Likewise.
17825         * modules/yesno (Depends-on): Likewise.
17826
17827 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
17828
17829         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
17830         needless checks.
17831
17832 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
17833
17834         Merge from coreutils.  Among other things,
17835         add bulletproofing for cases where stdin, stdout, or stderr are closed.
17836         * lib/fd-safer.c: New file.
17837         * lib/fcntl-safer.h, open-safer.c: Remove.
17838         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
17839         * lib/dup-safer.c: Include unistd-safer.h first.
17840         Don't include errno.h.
17841         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
17842         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
17843         * lib/file-type.c: Rely on file-type.h change.
17844         * lib/getloadavg.c: Include unistd-safer.h.
17845         (getloadavg): Use safer open.
17846         * lib/getusershell.c: Include "stdio-safer.h".
17847         (getusershell): Use safer fopen.
17848         * lib/long-options.c (long_options): Use NULL rather than 0.
17849         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
17850         'free'.
17851         * lib/modechange.c: Likewise.
17852         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
17853         (MODE_DONE): New constant.
17854         (struct mode_change): Remove 'next' member.
17855         (make_node_op_equals): New function; like the old one of the
17856         same name, except it allocates an array.
17857         (mode_compile, mode_create_from_ref): Use it.
17858         (mode_compile): Allocate result as an array, not a linked list.
17859         Parse octal string ourself, so that we catch mistakes like "+0".
17860         (mode_adjust): Arg is an array, not a linked list.
17861         * lib/modechange.c: Include stat-macros.h, xalloc.h.
17862         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
17863         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
17864         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
17865         Remove.  This is now stat-macros.h's job.
17866         (talloc): Remove.  All callers replaced by xalloc, so that
17867         our invokers don't have to worry about reporting memory failures.
17868         (make_node_op_equals): Remove.
17869         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
17870         New constants.
17871         (struct mode_change): Moved here from modechange.h.
17872         (mode_append_entry): Remove.
17873         (mode_compile): Remove MASKED_OPS arg, since it encouraged
17874         apps to have incorrect behavior.  Use simpler algorithm for head
17875         and tail.  Don't futz with umask; that's now the job of mode_adjust.
17876         Detect more invalid usages rather than having somewhat-random behavior.
17877         Don't insert an "a=" action, as that leads to incorrect behavior.
17878         (mode_compile, mode_create_from_ref): Return NULL on error instead
17879         of an enum, since now there's only one way to have an error.  All
17880         callers changed.
17881         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
17882         at the correct time.  Simplify calculation of "+u" and its ilk.
17883         Don't mishandle "+X".
17884         (mode_free): Remove "register" and localize decls.
17885         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
17886         (struct mode_change): Move to modechange.c; callers don't
17887         need to see this stuff.
17888         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
17889         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
17890         (mode_change, mode_adjust): Reflect the new signatures noted above.
17891         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
17892         that might redefine system include files.
17893         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
17894         (my_usleep): Use NULL rather than (void *) 0.
17895         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
17896         Use siginterrupt to specify that system calls should be interrupted.
17897         (rpl_nanosleep): Move initialization of suspended closer to call of
17898         my_usleep.
17899         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
17900         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
17901         (desirable_utmp_entry): New function.
17902         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
17903         using x2nrealloc, to simplify logic.
17904         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
17905         size calculation.  Do not assume utmp file is a regular file.
17906         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
17907         (READ_UTMP_CHECK_PIDS): New constant.
17908         * lib/save-cwd.c: Include unistd-safer.h.
17909         (save_cwd): Use fd_safer.
17910         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
17911         [!_LIBC] Include "stat-macros.h" instead.
17912         * lib/unistd-safer.h (fd_safer): New decl.
17913
17914 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
17915
17916         * modules/getloadavg (Depends-on): Add unistd-safer.
17917         * modules/getusershell (Depends-on): Add stdio-safer.
17918         * modules/lstat (Depends-on): Remove xalloc.
17919         * modules/mkstemp (Depends-on): Add stat-macros.
17920         * modules/modechange (Depends-on): Remove xstrtol.
17921         Add stat-macros, xalloc.
17922         * modules/save-cwd (Depends-on): Add unistd-safer.
17923         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
17924         * modules/unistd-safer (Files): Add lib/fd-safer.c
17925         (Makefile.am): Remove lib_SOURCES.
17926
17927         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
17928         Remove fcntl-safer; unistd-safer supersedes it.
17929
17930 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
17931
17932         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
17933         AC_HEADER_STAT.
17934         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
17935         (gl_PREREQ_CHOWN): Remove.
17936         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
17937         it.  Don't require AC_HEADER_STAT.
17938         (gl_PREREQ_LSTAT): Remove.
17939         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
17940         Don't require AC_HEADER_STAT.
17941         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
17942         (gl_PREREQ_RMDIR): Remove.
17943         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
17944         mention stat-macros.h or AC_HEADER_STAT, since we'll make
17945         the stat-macros module a prerequisite.
17946         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
17947         * m4/filemode.m4 (gl_FILEMODE): Likewise.
17948         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
17949         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
17950         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
17951         variable names.
17952         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
17953         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
17954         variable prefixes.
17955         * m4/fcntl-safer.m4: Remove.
17956         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
17957         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
17958         Invoke gl_PREREQ_FD_SAFER.
17959         (gl_PREREQ_FD_SAFER): New macro.
17960         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
17961         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
17962         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
17963         Remove duplicate call to AC_LIBOBJ(readutmp).
17964         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
17965
17966         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
17967         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
17968
17969 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
17970
17971         * MODULES.html.sh (Misc): Add byteswap.
17972
17973 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
17974
17975         * modules/getcwd (Depends-on): Add extensions.
17976         * modules/openat (Depends-on): Likewise.
17977
17978 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
17979
17980         * modules/byteswap: New file.
17981
17982 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
17983
17984         * m4/byteswap.m4: New file.
17985
17986 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
17987
17988         * lib/byteswap_.h: New file.
17989
17990 2005-04-25  Karl Berry  <karl@gnu.org>
17991
17992         * m4/gettext.m4: Update from GNU gettext 0.14.4.
17993
17994 2005-04-25  Albert Chin  <china@thewrittenword.com>
17995
17996         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
17997         Toolkit C bug.
17998
17999 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
18000
18001         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
18002         (func_ln_if_changed) Remove forcibly for no error message
18003         in case file does not exist.
18004
18005 2005-04-19  Simon Josefsson  <jas@extundo.com>
18006
18007         * gnulib-tool (Options): Make --symlink mean --symbolic.
18008
18009 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
18010
18011         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
18012
18013 2005-04-16  Simon Josefsson  <jas@extundo.com>
18014
18015         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
18016
18017 2005-04-15  Simon Josefsson  <jas@extundo.com>
18018
18019         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
18020
18021 2005-04-15  Simon Josefsson  <jas@extundo.com>
18022
18023         * gnulib-tool: Rename --symlink to --symbolic.
18024
18025 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
18026
18027         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
18028         symbolic links to files instead of copying/moving.  Add --aux-dir,
18029         specifying directory relative --dir where auxiliary build tools
18030         are placed.
18031
18032 2005-04-14  Bruno Haible  <bruno@clisp.org>
18033
18034         * modules/allocsa (License): Change to LGPL.
18035         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
18036
18037 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
18038
18039         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
18040         that "UTC +1 second" continues to work.  Problem reported
18041         by Dmitry V. Levin.
18042         (relunit_snumber): New rule.
18043         (relunit): Use it.
18044
18045 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
18046
18047         * lib/getdate.y (universal_time_zone_table): New constant.
18048         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
18049         universal_time_zone_table.
18050         (lookup_zone): Prefer universal_time_zone_table to
18051         local_time_zone_table, so that "GMT" time stamps are allowed in
18052         London during the summer.  Problem reported by Ian Abbott.
18053
18054 2005-04-12  Jim Meyering  <jim@meyering.net>
18055
18056         * lib/human.c (humblock): Set *options even when returning due to
18057         xstrtoumax conversion failure.  Thanks to a used-uninitialized
18058         warning from gcc-4.
18059
18060 2005-04-09  Jim Meyering  <jim@meyering.net>
18061
18062         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
18063         -Wuninitialized: initialize tm0.tm_year.
18064
18065 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
18066
18067         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
18068         count, since there's no maximum.  All uses changed.
18069         Add member dsts_seen.
18070         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
18071         not being INT_MAX.
18072         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
18073         Use pc_rels_seen to decide whther a date is absolute.
18074
18075         * lib/getdate.y (number): Don't overwrite year.
18076         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
18077         check.
18078
18079 2005-04-02  Simon Josefsson  <jas@extundo.com>
18080
18081         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
18082         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
18083
18084 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
18085
18086         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
18087         where no absolute path name can be longer than PATH_MAX.
18088
18089 2005-03-27  Jim Meyering  <jim@meyering.net>
18090
18091         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
18092
18093 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
18094
18095         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
18096         "one's complement" -> "ones' complement" in comment, as per Knuth.
18097         "value of type" -> "type or expression" in comment.
18098         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
18099
18100 2005-03-26  Jim Meyering  <jim@meyering.net>
18101
18102         Comment nits.
18103         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
18104         Correct typos: s/or/of/.
18105
18106 2005-03-26  Jim Meyering  <jim@meyering.net>
18107
18108         * modules/check-include-files: Move to ../ and rename to...
18109         * check-module: ...this.
18110
18111 2005-03-25  Jim Meyering  <jim@meyering.net>
18112
18113         * modules/xvasprintf (Files): Add xalloc.h.
18114
18115 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
18116
18117         * modules/gettext (Files): config/config.rpath ->
18118         build-aux/config.rpath
18119         * modules/iconv (Files): Likewise.
18120         Problem reported by Oskar Liljeblad.
18121
18122 2005-03-23  Jim Meyering  <jim@meyering.net>
18123
18124         * modules/check-include-files: New script to check for
18125         missing dependencies, multiple includes, etc.
18126
18127         * modules/c-strtold (Depends-on): Add xalloc.
18128         * modules/c-strtod (Depends-on): Add xalloc.
18129         * modules/hash (Depends-on): Add xalloc.
18130         (Files): Remove lib/xalloc.h.
18131
18132         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
18133         * modules/userspec (Files): Add lib/inttostr.h.
18134
18135 2005-03-23  Jim Meyering  <jim@meyering.net>
18136
18137         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
18138
18139 2005-03-22  Jim Meyering  <jim@meyering.net>
18140
18141         * modules/stat-macros: New module.
18142         * modules/canonicalize, modules/euidaccess, modules/file-type,
18143         * modules/filemode, modules/lchown, modules/makepath,
18144         * modules/rmdir, modules/stat: Depend on new stat-macros module
18145         rather than listing lib/stat-macros.h manually.
18146         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
18147
18148 2005-03-22  Jim Meyering  <jim@meyering.net>
18149
18150         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
18151
18152 2005-03-22  Bruno Haible  <bruno@clisp.org>
18153
18154         * config/srclist.txt: Replace target directory 'config' with
18155         'build-aux'.
18156         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
18157         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
18158         ../build-aux/.
18159
18160 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
18161
18162         * modules/chdir-long (Depends-on): Add mempcpy.
18163
18164         * modules/acl, modules/backupfile, modules/c-strtod,
18165         modules/c-strtold, modules/canon-host, modules/canonicalize,
18166         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
18167         modules/exclude, modules/exitfail, modules/file-type,
18168         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
18169         modules/getdate, modules/getline, modules/getpagesize,
18170         modules/getpass, modules/getugroups, modules/group-member,
18171         modules/hard-locale, modules/hash, modules/human, modules/idcache,
18172         modules/inttostr, modules/long-options, modules/makepath,
18173         modules/md5, modules/memcasecmp, modules/memcoll,
18174         modules/modechange, modules/mountlist, modules/path-concat,
18175         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
18176         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
18177         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
18178         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
18179         modules/strftime, modules/strndup, modules/strverscmp,
18180         modules/timespec, modules/unlocked-io, modules/userspec,
18181         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
18182         modules/yesno:
18183         Remove lib_SOURCES line from Makefile.am section, as this is now
18184         done automatically by the corresponding Autoconf macro.
18185
18186 2005-03-21  Jim Meyering  <jim@meyering.net>
18187
18188         Changes imported from coreutils.
18189
18190         * lib/cycle-check.c: Don't include xalloc.h.
18191
18192         * lib/path-concat.c: Don't include assert.h.
18193         (path_concat): Remove assertion that would have triggered
18194         for ABASE starting with more than one slash.
18195         Reported by Andreas Schwab.
18196
18197         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
18198         properly when ABASE is an absolute file name.
18199         Correct the description of this function.
18200         Include <assert.h>.
18201         Add an assertion and a test driver.
18202         This fixes a bug introduced on 2004-07-02.
18203         Andreas Schwab reported the resulting failure of cp --parents:
18204         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
18205
18206 2005-03-21  Jim Meyering  <jim@meyering.net>
18207
18208         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
18209         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
18210
18211 2005-03-21  Jim Meyering  <jim@meyering.net>
18212         and  Paul Eggert  <eggert@cs.ucla.edu>
18213
18214         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
18215         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
18216         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
18217         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
18218         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
18219         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
18220         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
18221         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
18222         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
18223         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
18224         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
18225         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
18226         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
18227         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
18228         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
18229         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
18230         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
18231         for these modules.
18232
18233 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
18234
18235         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
18236         (which shouldn't happen), generate nothing instead of returning 0
18237         immediately, so that nstrftime (NULL, ...) doesn't return 0.
18238
18239 2005-03-16  Bruno Haible  <bruno@clisp.org>
18240
18241         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
18242         HAVE_LONGLONG_64BIT.
18243
18244 2005-03-16  Bruno Haible  <bruno@clisp.org>
18245
18246         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
18247         HAVE_LONGLONG_64BIT.
18248
18249 2005-03-16  Bruno Haible  <bruno@clisp.org>
18250
18251         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
18252         HAVE_LONGLONG_64BIT.
18253
18254 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
18255
18256         * lib/strftime.c (my_strftime): Prepend space to format so that we can
18257         reliably distinguish strftime failure from empty output on POSIX
18258         hosts.
18259
18260 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
18261
18262         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
18263         (iconv_string): Don't guess a size-zero buffer, as that might cause
18264         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
18265         result would be 'too large', where 'too large' is (heuristically)
18266         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
18267         overflow concerns.  This will prevent some unwanted malloc failures
18268         when the inputs are very large.
18269
18270 2005-03-15  Karl Berry  <karl@gnu.org>
18271
18272         * config/srclist.txt (config.rpath): from gettext.
18273         * config/config.rpath: update.
18274
18275 2005-03-15  Bruno Haible  <bruno@clisp.org>
18276
18277         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
18278         to 'negate'.
18279
18280         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
18281         variable.
18282
18283         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
18284         results.
18285
18286 2005-03-14  Simon Josefsson  <jas@extundo.com>
18287
18288         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
18289         <fx@gnu.org>.
18290
18291 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
18292
18293         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
18294         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
18295         intprops.h.
18296         * lib/strtol.c: Likewise.
18297
18298 2005-03-14  Jim Meyering  <jim@meyering.net>
18299
18300         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
18301         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
18302         to be nonzero so that we (and caller) can detect the difference
18303         between a valid zero-length expansion and an error return, even
18304         when the underlying strftime fails before writing anything into
18305         that location.
18306
18307 2005-03-14  Bruno Haible  <bruno@clisp.org>
18308
18309         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
18310         Update from GNU gettext 0.14.3.
18311
18312 2005-03-10  Jim Meyering  <jim@meyering.net>
18313
18314         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
18315
18316 2005-03-10  Jim Meyering  <jim@meyering.net>
18317
18318         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
18319         so that this module works on systems without fchdir.
18320
18321 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
18322
18323         Factor int-properties macros into a single file, except for
18324         glibc-related files.
18325         * lib/intprops.h: New file.
18326         * lib/getloadavg.c: Include it instead of limits.h.
18327         (INT_STRLEN_BOUND): Remove.
18328         * lib/human.c: Include intprops.h.
18329         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
18330         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
18331         302/1000.
18332         * lib/inttostr.h: Include intprops.h instead of limits.h.
18333         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
18334         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
18335         for consistency with intprops.h.
18336         (time_t_is_integer, twos_complement_arithmetic): Use them.
18337         * lib/sig2str.h: Include <signal.h>, intprops.h.
18338         (INT_STRLEN_BOUND): Remove.
18339         * lib/strftime.c (TYPE_SIGNED): Remove.
18340         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
18341         * lib/strtol.c: Adjust comments to match intprops.h.
18342         * lib/userspec.c: Include intprops.h.
18343         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
18344         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
18345         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
18346         instead of rolling our own expressions.
18347         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
18348
18349         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
18350         instead of int.
18351         (my_strftime): Do not mishandle years close to INT_MAX, by doing
18352         the right thing even if adding 1900 would overflow.  Similarly
18353         for tm_mon + 1 and tm_yday + 1.
18354         Make %Y always equivalent to %C%y, and similarly for %G and %g.
18355         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
18356         (DO_SIGNED_NUMBER): New macro.
18357         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
18358
18359 2005-03-07  Bruno Haible  <bruno@clisp.org>
18360
18361         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
18362
18363 2005-03-07  Bruno Haible  <bruno@clisp.org>
18364
18365         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
18366
18367 2005-03-04  Derek R. Price  <derek@ximbiot.com>
18368
18369         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
18370         (func_import): Only replace files via --import when they have actually
18371         changed.
18372
18373 2005-03-03  Derek R. Price  <derek@ximbiot.com>
18374
18375         * m4/mmap-anon.m4: New file.
18376         * m4/pagealign_alloc.m4: New file.
18377
18378 2005-03-03  Derek R. Price  <derek@ximbiot.com>
18379             Bruno Haible  <bruno@clisp.org>
18380
18381         * modules/pagealign_alloc: New file.
18382         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
18383
18384 2005-03-03  Derek R. Price  <derek@ximbiot.com>
18385             Bruno Haible  <bruno@clisp.org>
18386
18387         * lib/pagealign_alloc.h: New file.
18388         * lib/pagealign_alloc.c: New file.
18389
18390 2005-03-03  Bruno Haible  <bruno@clisp.org>
18391
18392         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
18393         Use an all-permissive copyright notice, recommended by RMS.
18394
18395 2005-03-02  Bruno Haible  <bruno@clisp.org>
18396
18397         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
18398         of AIX, the replacement has to be done only after <string.h> is
18399         included, therefore not in config.h. stpncpy.h does the replacement,
18400         and stpncpy.c uses it.
18401
18402 2005-03-02  Bruno Haible  <bruno@clisp.org>
18403
18404         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
18405         stpncpy.c uses it.
18406
18407 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
18408
18409         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
18410         The workaround isn't strictly needed for POSIX conformance, and
18411         it's too much of a pain to configure and maintain.  We'll ask
18412         people to fix their kernels instead.
18413         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
18414         (NANOSLEEP_BUG_WORKAROUND): Remove.
18415         (xnanosleep): Remove the workaround.
18416
18417 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
18418
18419         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
18420         Reported by Derek Price.
18421         (Include): Add "timespec.h".
18422
18423         * modules/xnanosleep (Depends-on): Remove gethrxtime.
18424
18425 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
18426
18427         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
18428         to detect nanosleep bug.
18429
18430 2005-03-01  Bruno Haible  <bruno@clisp.org>
18431
18432         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
18433
18434 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
18435
18436         * modules/gethrxtime: New file.
18437         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
18438         (Depends-on): Add gethrxtime.
18439         (configure.ac): Add gl_XNANOSLEEP.
18440         (Makefile.am): Remove lib_SOURCES line.
18441
18442 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
18443
18444         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
18445         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
18446
18447 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
18448
18449         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
18450         * lib/timespec.h (gettime): Return void, since it always
18451         succeeds now.  All uses changed.
18452         * lib/gettime.c (gettime) Likewise.
18453         [HAVE_NANOTIME]: Prefer nanotime.
18454         Assume gettimeofday succeeds, as POSIX requires.
18455         Assime time () succeeds, since other code already does.
18456         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
18457         (timespec_subtract): Remove.
18458         (NANOSLEEP_BUG_WORKAROUND): New constant.
18459         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
18460         things considerably.  Use it only on GNU/Linux hosts, since the
18461         workaround shouldn't be needed elsewhere.
18462
18463 2005-02-24  Bruno Haible  <bruno@clisp.org>
18464
18465         * modules/gettext (Files): Add m4/glibc2.m4.
18466
18467 2005-02-24  Bruno Haible  <bruno@clisp.org>
18468
18469         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
18470         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
18471         * m4/progtest.m4:
18472         Update from GNU gettext 0.14.2.
18473         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
18474
18475 2005-02-24  Bruno Haible  <bruno@clisp.org>
18476
18477         * lib/localcharset.c: Update from GNU gettext 0.14.2.
18478         * lib/config.charset: Update from GNU gettext 0.14.2.
18479
18480 2005-02-24  Bruno Haible  <bruno@clisp.org>
18481
18482         * lib/gettext.h: Update from GNU gettext 0.14.2.
18483
18484 2005-02-23  Simon Josefsson  <jas@extundo.com>
18485
18486         * m4/iconvme.m4: New file.
18487
18488 2005-02-23  Jim Meyering  <jim@meyering.net>
18489
18490         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
18491         change.
18492         Thanks to Bruno Haible for catching it.
18493
18494 2005-02-22  Simon Josefsson  <jas@extundo.com>
18495
18496         * modules/iconvme: New file.
18497
18498         * MODULES.html.sh: Add iconvme.
18499
18500 2005-02-22  Simon Josefsson  <jas@extundo.com>
18501
18502         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
18503
18504 2005-02-22  Simon Josefsson  <jas@extundo.com>
18505
18506         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
18507
18508 2005-02-22  Jim Meyering  <jim@meyering.net>
18509
18510         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
18511         s/ifndef/ifdef/.
18512
18513 2005-02-20  Neil Conway  <neilc@samurai.com>
18514
18515         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
18516         returned by OSX/Darwin if the specified buffer is not large
18517         enough for the hostname.
18518
18519 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
18520
18521         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
18522         pass it to _help, otherwise the latter coredumps trying to
18523         dereference state.root_argp.
18524
18525 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
18526
18527         * modules/chdir-long (Depends-on): Add memrchr.
18528         * modules/memrchr (Files): Add lib/memrchr.h.
18529         (Include): "memrchr.h".
18530
18531 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
18532
18533         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
18534
18535 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
18536
18537         * lib/memrchr.h: New file.
18538         * lib/chdir-long.c: Include it.
18539         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
18540         Don't bother including stddef.h.
18541
18542 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
18543
18544         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
18545         inclusion.
18546         Include <sys/types.h>, for dev_t.
18547         (ME_DUMMY, ME_REMOTE): Move from here....
18548         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
18549         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
18550         Dmitry V. Levin.
18551         Include mountlist.h first, to test the interface.
18552
18553 2005-01-29  Bruno Haible  <bruno@clisp.org>
18554
18555         * lib/progname.c (program_name): Initialize.
18556         Needed when linking statically on MacOS X.
18557
18558 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
18559
18560         Sync from coreutils.
18561         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
18562         (Depends-on): Add c-strtod.
18563         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
18564
18565 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
18566
18567         Sync from coreutils.
18568         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
18569
18570         Remove files that are specific to coreutils.
18571         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
18572
18573 2005-01-28  Bruno Haible  <bruno@clisp.org>
18574
18575         * modules/javacomp: New file.
18576         * MODULES.html.sh (Java): Add javacomp.
18577
18578 2005-01-28  Bruno Haible  <bruno@clisp.org>
18579
18580         * m4/javacomp.m4: New file, from GNU gettext.
18581
18582 2005-01-28  Bruno Haible  <bruno@clisp.org>
18583
18584         * lib/javacomp.sh.in: New file, from GNU gettext.
18585         * lib/javacomp.h: New file, from GNU gettext.
18586         * lib/javacomp.c: New file, from GNU gettext.
18587
18588 2005-01-26  Simon Josefsson  <jas@extundo.com>
18589
18590         * lib/gai_strerror.c: Use GPL in header.
18591
18592 2005-01-26  Bruno Haible  <bruno@clisp.org>
18593
18594         * modules/javaexec: New file.
18595         * MODULES.html.sh (Java): Add javaexec.
18596
18597 2005-01-26  Bruno Haible  <bruno@clisp.org>
18598
18599         * m4/javaexec.m4: New file, from GNU gettext.
18600
18601 2005-01-26  Bruno Haible  <bruno@clisp.org>
18602
18603         * lib/javaexec.sh.in: New file, from GNU gettext.
18604         * lib/javaexec.h: New file, from GNU gettext.
18605         * lib/javaexec.c: New file, from GNU gettext.
18606
18607 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
18608
18609         * modules/lchown (Depends-on): Remove lchown.h
18610
18611 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
18612
18613         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
18614         must be defined if the header file was not found, in order
18615         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
18616
18617 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
18618
18619         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
18620         initializers for struct pentry_state.
18621         (__argp_error): Check return value of __asprintf
18622         (__argp_failure): Translate error message
18623
18624         * lib/argp-parse.c: Removed braces around the expansion of N_()
18625
18626 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
18627
18628         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
18629         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
18630         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
18631         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
18632         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
18633         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
18634         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
18635         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
18636         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
18637         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
18638         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
18639         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
18640         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
18641         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
18642         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
18643         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
18644         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
18645         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
18646         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
18647         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
18648         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
18649         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
18650         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
18651         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
18652         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
18653         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
18654         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
18655         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
18656         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
18657         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
18658         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
18659         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
18660         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
18661         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
18662         xstrtol.m4, xstrtoumax.m4, yesno.m4:
18663         Use an all-permissive copyright notice, recommended by RMS.
18664
18665 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
18666
18667         * modules/chdir-long (Depends-on): Remove mempcpy.
18668
18669 2005-01-21  Jim Meyering  <jim@meyering.net>
18670
18671         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
18672         same value as for Solaris 9.
18673
18674         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
18675         component length.  This included changing the parameter to be
18676         of type `char *' rather than `char const *'.
18677         * lib/chdir-long.h (chdir_long): Update prototype.
18678
18679         * lib/openat.c (fdopendir, fstatat): New functions.
18680         * lib/openat.h: Include headers required for use of DIR and struct
18681         stat.
18682         [AT_SYMLINK_NOFOLLOW]: Define.
18683         (fdopendir, fstatat): Add prototypes.
18684
18685 2005-01-21  Bruno Haible  <bruno@clisp.org>
18686
18687         * modules/classpath: New file.
18688         * MODULES.html.sh (Java): Add classpath.
18689
18690 2005-01-21  Bruno Haible  <bruno@clisp.org>
18691
18692         * lib/classpath.h: New file, from GNU gettext.
18693         * lib/classpath.c: New file, from GNU gettext.
18694
18695 2005-01-20  Simon Josefsson  <jas@extundo.com>
18696
18697         * modules/version-etc-fsf: New file.
18698
18699 2005-01-20  Simon Josefsson  <jas@extundo.com>
18700
18701         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
18702         * lib/version-etc.c: Remove version_etc_copyright.
18703         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
18704         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
18705
18706 2005-01-20  Simon Josefsson  <jas@extundo.com>
18707
18708         * lib/base64.h (isbase64): Add.
18709
18710         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
18711         using a unsigned prototype, don't inline.
18712         (base64_decode): Use it.
18713
18714 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
18715
18716         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
18717         it.
18718
18719 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
18720
18721         * lib/save-cwd.c (save_cwd): Remove code to support the case
18722         where fchdir is missing or flaky.
18723
18724 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
18725
18726         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
18727
18728 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
18729
18730         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
18731         AC_LIBSOURCES now does this.
18732         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
18733         with new ullong_max module.
18734
18735 2005-01-19  Bruno Haible  <bruno@clisp.org>
18736
18737         * modules/sh-quote: New file.
18738         * MODULES.html.sh (Executing programs): Add sh-quote.
18739
18740 2005-01-19  Bruno Haible  <bruno@clisp.org>
18741
18742         * lib/sh-quote.h: New file, from GNU gettext.
18743         * lib/sh-quote.c: New file, from GNU gettext.
18744
18745 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
18746
18747         Merge from coreutils.
18748         * m4/ullong_max.m4: New file.
18749         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
18750         (gl_MACROS): Assume localeconv exists.
18751
18752 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
18753
18754         Merge changes from coreutils, as described below in several
18755         changelogs dated today.
18756
18757         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
18758         (O_DIRECTORY): Remove; not needed here, since "." must be
18759         a directory.  All uses removed.
18760         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
18761         universal on Suns, and we also need to test for IRIX.
18762         Revamp code to use 'if' rather than '#if'.
18763         Avoid unnecessary comparison of cwd->desc to 0.
18764
18765         * lib/utimens.c (futimens): Robustify the previous patch, by checking
18766         for known valid error numbers rather than observed invalid ones.
18767
18768 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
18769
18770         * modules/ullong_max: New file.
18771
18772         * modules/chdir-long, modules/openat: New files.
18773         * modules/save-cwd (Depends-on): Depend on chdir-long.
18774         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
18775
18776 2005-01-18  Jim Meyering  <jim@meyering.net>
18777
18778         Merge from coreutils.
18779         * m4/chdir-long.m4, m4/openat.m4: New files.
18780         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
18781         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
18782         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
18783         is sane and DOES follow symlinks.  Besides, testing 20 different
18784         systems found no broken chown implementations.
18785         Prompted by a change in rsync's copy of this macro.
18786         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
18787
18788         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
18789
18790         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
18791         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
18792         NULL-means-set-to-current-time semantics.
18793         Remove temporary file immediately, rather than waiting
18794         for configure's at-exit trap code to do it.
18795
18796 2005-01-18  Jim Meyering  <jim@meyering.net>
18797
18798         * lib/version-etc.c (version_etc_copyright): Update copyright date.
18799
18800         * lib/utimens.c (futimens): Account for the fact that futimes
18801         can also fail with errno == ENOSYS or errno == ENOENT.
18802         Patch from Dmitry V. Levin.
18803
18804         Change the name of the robust chdir function from chdir to chdir_long.
18805         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
18806         (restore_cwd): Use chdir_long, not chdir.
18807         * lib/chdir-long.c: Renamed from chdir.c.
18808         * lib/chdir-long.h: Renamed from chdir.h.
18809         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
18810         Hurd.
18811
18812 2005-01-18  Bruno Haible  <bruno@clisp.org>
18813
18814         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
18815         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
18816         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
18817         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
18818         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
18819         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
18820         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
18821         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
18822         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
18823         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
18824         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
18825         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
18826         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
18827         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
18828         Use an all-permissive copyright notice, recommended by RMS.
18829
18830 2005-01-18  Bob Proulx  <bob@proulx.com>
18831
18832         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
18833         simplify offsetof() macro construct to avoid compile failure with
18834         native HP-UX 11.0 ANSI C compiler.
18835
18836 2005-01-17  Bruno Haible  <bruno@clisp.org>
18837
18838         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
18839         redundant because stpncpy.m4 takes care of it.
18840
18841 2005-01-17  Bruno Haible  <bruno@clisp.org>
18842
18843         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
18844
18845 2005-01-17  Bruno Haible  <bruno@clisp.org>
18846
18847         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
18848         used.
18849
18850 2005-01-17  Bruno Haible  <bruno@clisp.org>
18851
18852         * lib/fwriteerror.h (fwriteerror): Change specification to include
18853         fclose.
18854         * lib/fwriteerror.c: Include <stdbool.h>.
18855         (fwriteerror): At the end, close the file stream. Record whether
18856         stdout was already closed.
18857
18858 2005-01-17  Bruno Haible  <bruno@clisp.org>
18859
18860         * lib/execute.c (environ): Declare if needed.
18861         * lib/pipe.c (environ): Likewise.
18862         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
18863
18864 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
18865
18866         * modules/argp: Depend on vsnprintf
18867
18868 2005-01-10  Jim Meyering  <jim@meyering.net>
18869
18870         * modules/closeout (Depends-on): Add atexit.
18871
18872 2005-01-06  Bruno Haible  <bruno@clisp.org>
18873
18874         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
18875
18876 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
18877
18878         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
18879         definitions to be after all include files, to avoid collisions.
18880         Problem reported by Bob Proulx.
18881
18882 2005-01-04  Jim Meyering  <jim@meyering.net>
18883
18884         Changes imported from coreutils.
18885         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
18886         as the mkstemp template, use a temporary directory and an
18887         8.3-friendly template to avoid trouble on systems like DJGPP.
18888         Reported by Juan M. Guerrero via Stepan Kasal.
18889         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
18890         close. Remove the temporary directory right away, rather than waiting
18891         for configure's at-exit trap code to do it.
18892         Suggestion from Stepan Kasal.
18893
18894 2005-01-01  Simon Josefsson  <jas@extundo.com>
18895
18896         * gnulib-tool: Print #include directives when --import'ing.
18897
18898 2004-12-28  Simon Josefsson  <jas@extundo.com>
18899
18900         * tests/test-base64.c: Include required header files.  Remove
18901         unused variables.
18902
18903 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
18904
18905         * modules/error (Depends-on): Remove gettext.
18906
18907 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
18908
18909         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
18910         not needed.  This removes a dependency on the gettext module.
18911         [defined _LIBC]: Do not include <libintl.h>; not needed.
18912
18913 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
18914
18915         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
18916         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
18917
18918 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
18919
18920         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
18921         HAVE_DECL_STRTOLD.
18922
18923 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
18924
18925         * modules/getdate (Depends-on): Remove alloca-opt.
18926
18927 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
18928
18929         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
18930
18931 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
18932
18933         * lib/argp-parse.c: Include <stddef.h>.
18934         (alignof, alignto): New macros.
18935         (parser_init): Don't assume that void * is aligned sufficiently
18936         for struct option.
18937
18938         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
18939         need to extend the stack.
18940         (YYINITDEPTH): New macro, so that the initial stack isn't overly
18941         large.
18942
18943 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
18944
18945         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
18946
18947 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
18948
18949         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
18950         (2004-10-24) change.  Apparently this was a false alarm.
18951
18952         * modules/getdate: Depend on alloca-opt, not alloca.
18953
18954 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
18955
18956         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
18957         Remove now-obsolete comment about AIX.
18958         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
18959         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
18960         (YYMAXDEPTH): New macro.
18961
18962 2004-12-18  Simon Josefsson  <jas@extundo.com>
18963
18964         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
18965
18966 2004-12-18  Bruno Haible  <bruno@clisp.org>
18967
18968         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
18969
18970 2004-12-18  Bruno Haible  <bruno@clisp.org>
18971
18972         * lib/fatal-signal.c (fatal_signals): Make non-const.
18973         (init_fatal_signals): New function.
18974         (uninstall_handlers, install_handlers): Ignore signals that were set to
18975         SIG_IGN.
18976         (at_fatal_signal): Call init_fatal_signals.
18977         (init_fatal_signal_set): Likewise. Ignore signals that were set to
18978         SIG_IGN.
18979         Reported by Paul Eggert.
18980
18981 2004-12-18  Bruno Haible  <bruno@clisp.org>
18982
18983         * doc/alloca.texi: New file.
18984         * doc/alloca-opt.texi: New file.
18985
18986 2004-12-17  Jim Meyering  <jim@meyering.net>
18987
18988         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
18989         Otherwise, install-sh could exit with improper exit status when
18990         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
18991
18992 2004-12-16  Simon Josefsson  <jas@extundo.com>
18993
18994         * tests/test-base64.c: Add license.
18995
18996 2004-12-15  Stepan Kasal  <address@hidden>
18997
18998         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
18999
19000 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
19001
19002         * modules/getcwd (Files): Add m4/d-ino.m4.
19003         Suggested by Mark D. Baushke.
19004
19005 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
19006
19007         * lib/getdate.y (textint): New member "negative".
19008         (time_zone_hhmm): New function.
19009         Expect 14 shift-reduce conflicts, not 13.
19010         (o_colon_minutes): New rule.
19011         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
19012         (yylex): Set the "negative" member of signed numbers.
19013
19014 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
19015
19016         * doc/getdate.texi (Time of day items, Time zone items):
19017         Describe new formats +00:00, UTC+00:00.
19018
19019 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
19020
19021         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
19022         spurious "-l"s.  Problem reported by Stepan Kasal.
19023
19024 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
19025
19026         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
19027         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
19028
19029 2004-12-04  Simon Josefsson  <jas@extundo.com>
19030
19031         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
19032         Vandoorselaere <yoann@prelude-ids.org>.
19033
19034 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
19035
19036         Changes imported from coreutils.
19037         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
19038         exist.
19039         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
19040
19041 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
19042
19043         Changes imported from coreutils.
19044         * lib/hard-locale.c: Assume <locale.h> exists.
19045         Include "strdup.h".
19046         (GLIBC_VERSION): New macro.
19047         (hard_locale): Assume setlocale exists.
19048         Rewrite to avoid #ifdef.
19049         Use strdup rather than malloc + strcpy.
19050         * lib/human.c: Assume <locale.h> exists.
19051         (human_readable): Assume localeconv exists.
19052
19053 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
19054
19055         * modules/hard-locale (Depends-on): Add strdup.
19056
19057 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
19058
19059         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
19060         convert T2, not T.  (Imported from libc.)
19061
19062 2004-11-30  Simon Josefsson  <jas@extundo.com>
19063
19064         * modules/restrict (License): Change to LGPL.
19065
19066 2004-11-30  Simon Josefsson  <jas@extundo.com>
19067
19068         * m4/restrict.m4: Add copyright and copying conditions.
19069
19070 2004-11-30  Simon Josefsson  <jas@extundo.com>
19071
19072         * m4/base64.m4: New file.
19073
19074 2004-11-30  Simon Josefsson  <jas@extundo.com>
19075
19076         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
19077         base64.
19078
19079         * tests/test-base64.c: New file.
19080
19081         * modules/base64: New file.
19082
19083 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
19084
19085         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
19086         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
19087
19088         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
19089
19090 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
19091
19092         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
19093         (__getcwd.c): Don't restore errno; glibc doesn't.
19094         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
19095         first, falling back to our code only if its results look suspicious.
19096         Ensure that the resulting buffer is only as large as necessary.
19097
19098         * lib/readutmp.c: Include readutmp.h first.
19099         Include <errno.h>, since readutmp.h no longer does that.
19100         * lib/readutmp.h: Don't include <errno.h>,
19101         <sys/param.h>, <time.h>; not needed to establish interface.
19102         (errno): Remove decl.
19103         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
19104         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
19105         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
19106
19107 2004-11-28  Simon Josefsson  <jas@extundo.com>
19108
19109         * lib/base64.h, base64.c: New file.
19110
19111 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
19112
19113         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
19114
19115 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
19116
19117         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
19118         (Depends-on): Remove pathmax, same.  Add mempcpy.
19119         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
19120         (Makefile.am): Append getcwd.h to lib_SOURCES.
19121         (Include): Add getcwd.h.
19122         (Maintainer): Change from Jim Meyering to "all, glibc",
19123         since getdate now uses intended-for-glibc code.
19124         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
19125         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
19126
19127 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
19128
19129         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
19130         HP's ANSI C compiler.
19131         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
19132         Declaring int functions causes warnings on some modern systems and
19133         shouldn't be needed to compile on ancient ones.
19134         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
19135         defined.
19136
19137         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
19138         with the following changes.
19139         (__set_errno): Parenthesize properly.
19140         Include <stdbool.h>.
19141         (MIN, MAX, MATCHING_INO): New macros.
19142         (__getcwd): Define with prototype, not K&R form.
19143         Use heuristics to allocate default buffer on stack if possible.
19144         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
19145         behavior, and to avoid the PATH_MAX limit when computing
19146         ../../../../...
19147         Use MATCHING_INO to compare inode number to file.
19148         Check for arithmetic overflow in size calculations.
19149         Fix bug in reallocation of dot array that caused getcwd to fail
19150         on directories nested deeper than 75.
19151         Be more careful about saving errno on error.
19152         Do not use realloc; use only free+malloc, as this is a bit
19153         more flexible and avoids a needless copy operation.
19154         Do not inspect st_dev and st_ino for symbolic links; POSIX
19155         doesn't specify the latter.
19156         Check for closedir errors.
19157         Avoid needless casts.
19158         Use "#ifdef weak_alias" around weak_alias, to be like other
19159         glibc code.
19160         The following changes to getcwd.c have effect only when used in
19161         gnulib; they have no effect inside glibc proper.
19162         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
19163         as alloca isn't used.
19164         (alloca, __alloca): Likewise.
19165         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
19166         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
19167         unconditionally, as gnulib assumes C89 or better.
19168         Do not include <sys/param.h>.
19169         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
19170         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
19171         better.
19172         (NULL) [!defined NULL]: Remove; we assume C89 or better.
19173         Include <dirent.h> in a way that is compatible with modern Autoconf.
19174         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
19175         New macros, if not already defined.
19176         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
19177         Use "_LIBC", not "defined _LIBC", for consistency.
19178         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
19179         a mempcpy module.
19180         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
19181         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
19182         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
19183         credit only to Jim Meyering and adjust the copyright dates.
19184         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
19185         <stdlib.h>, <unistd.h>, "pathmax.h".
19186         Instead, include "xgetcwd.h" (first) and "getcwd.h".
19187         (INITIAL_BUFFER_SIZE): Remove.
19188         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
19189
19190 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
19191
19192         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
19193         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
19194         Use the _ONCE methods, for efficiency.
19195         Check for fcntl.h.  In test program, include <errno.h>
19196         and <fcntl.h> if available.  Remove old K&R cruft from
19197         test program.  Check for common errors in GNU/Linux,
19198         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
19199         don't do AC_LIBOBJ, as that's getcwd.m4's job.
19200         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
19201         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
19202         name accordingly.
19203         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
19204         accommodate new getcwd.c.
19205         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
19206         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
19207         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
19208         that's all we need now.
19209
19210 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
19211
19212         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
19213         argp-parse.c depends on getopt internals, that means we should
19214         always use our getopt, to be on the safe side.
19215         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
19216         order not to spoil the result of an eventual previous invocation
19217         of gl_GETOPT_SUBSTITUTE.
19218
19219 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
19220
19221         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
19222         redefinition warnings. To avoid them, include the defines
19223         in `#if !defined __need_getopt ... #endif'. The only place
19224         where __getopt_argv_const is used is in definitions
19225         of getopt_long and getopt_long_only below, which are as well
19226         protected by `#ifndef __need_getopt'.
19227         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
19228         __need_getopt after including <stdio.h> and <unistd.h> These
19229         headers might have defined it.
19230
19231 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
19232
19233         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
19234
19235 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
19236
19237         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
19238         (futimens): New function, which uses futimes if available.
19239         (futimens, utimens): Support timespec==NULL, with same semantics
19240         as utime and utimens.
19241         * lib/utimens.h (futimens): New decl.
19242
19243 2004-11-23  Jim Meyering  <jim@meyering.net>
19244
19245         * lib/getopt_.h: Remove trailing blanks.
19246
19247 2004-11-23  Jim Meyering  <jim@meyering.net>
19248
19249         * lib/__fpending.c: Add comment.
19250
19251 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
19252
19253         * modules/canonicalize (Depends-on): Add xreadlink.
19254         Problem reported by James Youngman.
19255
19256 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
19257
19258         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
19259         New macros.
19260         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
19261         optopt): Use them instead of invoking ## directly; otherwise, the
19262         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
19263
19264 2004-11-19  Bruno Haible  <bruno@clisp.org>
19265
19266         * lib/strtok_r.c: Move comments from here...
19267         * lib/strtok_r.h: ... to here.
19268
19269 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
19270
19271         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
19272         implementations that mishandle size_t overflow.
19273
19274 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
19275
19276         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
19277         might fail.  Problem reported by Yoann Vandoorselaere.
19278         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
19279         implementations that mishandle size_t overflow.
19280
19281 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
19282
19283         * modules/canon-host (Depends-on): Add strdup.
19284
19285 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
19286
19287         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
19288
19289 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
19290
19291         * lib/canon-host.c: Include "strdup.h".
19292         (canon_host): Use getaddrinfo if available, so that IPv6 works.
19293         Use strdup instead of malloc/strcpy to duplicate strings.
19294
19295         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
19296         (human_space_before_unit): New constant.
19297         * lib/human.c (human_readable): Support it.
19298
19299         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
19300         (xgetcwd): Set errno correctly when failing.
19301         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
19302         the failure is actually due to a PATH_MAX problem.
19303
19304         Further getopt changes to make it more likely that glibc will
19305         buy the changes back.
19306         * lib/getopt.c (POSIXLY_CORRECT): New constant.
19307         (getopt): Use it, so to preserve glibc semantic
19308         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
19309         when compiling for libc.
19310         * lib/getopt_.h (__getopt_argv_const): Bring it back.
19311         (getopt_long, getopt_long_only): Use it.
19312
19313         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
19314         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
19315         (getopt): Argv is now char * const *, as per standard.
19316         (_getopt_internal_r, _getopt_internal): Argv is now char **,
19317         not char *__getopt_argv_const *.
19318         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
19319         _getopt_long_only_r): Likewise.
19320         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
19321         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
19322         _getopt_long_r, _getopt_long_only_r): Likewise.
19323         * lib/getopt_.h (__getopt_argv_const): Remove.
19324         (getopt): Argv is now char * const *, as per standard.
19325
19326         * lib/getdate.y (tORDINAL): New token.
19327         (day, relunit): Allow it for relative times.
19328         (relative_time_table): Use tORDINAL for ordinals.
19329
19330 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
19331
19332         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
19333         Document that "second" isn't allowed as an ordinal number.
19334
19335 2004-11-16  Jim Meyering  <jim@meyering.net>
19336
19337         * modules/closeout (Depends-on): Add fpending.
19338
19339 2004-11-15  Jim Meyering  <jim@meyering.net>
19340
19341         * lib/closeout.c: Include "__fpending.h" once again.
19342         Include <stdbool.h>.
19343         (close_stdout): Don't fail just because stdout was closed initially,
19344         since some programs don't write to stdout in the normal course of
19345         operation (other than --version and --help), and we don't want this
19346         function to make e.g. `touch file >&-' fail.
19347         But do fail if it was closed and someone has tried to write to it.
19348         E.g., `printf foo >&-' must fail.
19349
19350 2004-11-13  Jim Meyering  <jim@meyering.net>
19351
19352         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
19353
19354 2004-11-12  Simon Josefsson  <jas@extundo.com>
19355
19356         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
19357         small doc fix is still pending.
19358
19359 2004-11-11  Simon Josefsson  <jas@extundo.com>
19360
19361         * modules/strtok_r: New file.
19362
19363         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
19364         strtok_r.
19365
19366 2004-11-11  Simon Josefsson  <jas@extundo.com>
19367
19368         * m4/strtok_r.m4: New file.
19369
19370         * m4/getopt.m4: Replace opterr.
19371
19372 2004-11-11  Simon Josefsson  <jas@extundo.com>
19373
19374         * lib/strtok_r.h, strtok_r.c: New file.
19375
19376 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
19377
19378         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
19379         of replacing opterr, getopt, etc.  This should handle the
19380         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
19381
19382 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
19383
19384         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
19385         we can stop lying to compilers about the constness of argv when we
19386         are compiled outside glibc.
19387         (getopt, getopt_long, getopt_long_only): Use it.
19388         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
19389         _getopt_internal, getopt): Likewise.
19390         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
19391         _getopt_long_only_r): Likewise.
19392         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
19393         _getopt_long_r, _getopt_long_only_r): Likewise.
19394
19395         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
19396         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
19397         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
19398         the other external symbols.
19399         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
19400         declaration, since the above renaming now works around collisions.
19401
19402 2004-11-11  Jim Meyering  <jim@meyering.net>
19403
19404         * lib/linebreak.c: Remove trailing blanks.
19405         * lib/alloca_.h: Likewise.
19406         * lib/acosl.c: Likewise.
19407         * lib/euidaccess.c: Likewise.
19408         * lib/allocsa.h: Likewise.
19409
19410 2004-11-10  Simon Josefsson  <jas@extundo.com>
19411
19412         * m4/getaddrinfo.m4: New file.
19413
19414 2004-11-10  Simon Josefsson  <jas@extundo.com>
19415
19416         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
19417
19418 2004-11-10  Simon Josefsson  <jas@extundo.com>
19419
19420         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
19421         getaddrinfo.
19422
19423         * modules/getaddrinfo: New file.
19424
19425 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
19426
19427         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
19428
19429 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
19430
19431         * lib/mktime.c (SHR): New macro, which is a portable
19432         substitute for >> that should work even on Crays.
19433         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
19434         Problem reported by Mark D. Baushke in
19435         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
19436         * lib/getdate.y (SHR): Likewise.
19437         (tm_diff): Use it.
19438         * lib/strftime.c (SHR): Likewise.
19439         (tm_diff): Use it.
19440         * lib/quotearg.c (struct quoting_options): Use unsigned int for
19441         quote_these_too, so that right shifts are well defined.  All uses
19442         changed.
19443
19444 2004-11-10  Jim Meyering  <jim@meyering.net>
19445
19446         Ensure that no close failure goes unreported.
19447         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
19448         return early when it seems there's nothing to flush.
19449         Don't include __fpending.h.
19450
19451 2004-11-10  Jim Meyering  <jim@meyering.net>
19452
19453         * modules/closeout (Depends-on): Remove fpending.
19454
19455 2004-11-10  Jim Meyering  <jim@meyering.net>
19456
19457         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
19458
19459 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
19460
19461         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
19462         gl_FUNC_STRFTIME.
19463         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
19464         and AC_REQUIRE when possible, to avoid duplicate checks.
19465         Check for <wchar.h>.
19466
19467 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
19468
19469         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
19470
19471 2004-11-09  Bruno Haible  <bruno@clisp.org>
19472
19473         * m4/sockpfaf.m4: New file.
19474
19475 2004-11-05  Bruno Haible  <bruno@clisp.org>
19476
19477         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
19478         Reported by Mark D. Baushke <mdb@cvshome.org>.
19479
19480 2004-11-04  Bruno Haible  <bruno@clisp.org>
19481
19482         2004-09-11  Bruno Haible  <bruno@clisp.org>
19483                 * allocsa.valgrind: New file.
19484         2004-02-06  Bruno Haible  <bruno@clisp.org>
19485                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
19486                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
19487                 Reported by Christopher Seip <chris.seip@hp.com>.
19488
19489 2004-11-04  Bruno Haible  <bruno@clisp.org>
19490
19491         * modules/allocsa (Files): Add lib/allocsa.valgrind.
19492         (Makefile.am): Distribute it.
19493
19494 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
19495
19496         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
19497         with errno == ERANGE if the buffer is too small.
19498         Problem reported by Mark D. Baushke.
19499
19500 2004-11-03  Albert Chin  <china@thewrittenword.com>
19501             Paul Eggert  <eggert@cs.ucla.edu>
19502
19503         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
19504         equivalent, substitute $ac_type for equivalent type rather than
19505         blindly using uint32_t *always* which won't work if uint32_t is not
19506         available.  Define _UINT32_T to work around typedef of uint32_t if
19507         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
19508         2.5.1.
19509
19510 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
19511
19512         * m4/jm-macros.m4: Sync from coreutils.
19513         (gl_MACROS): Check for mbrlen, for pathchk.
19514         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
19515
19516 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
19517
19518         * lib/xreadlink.c (MAXSIZE): New macro.
19519         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
19520         size does not exceed MAXSIZE.  Avoid cast.
19521         As suggested by Mark D. Baushke in
19522         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
19523         if readlink fails with buffer size just under MAXSIZE, try again
19524         with MAXSIZE.
19525
19526 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
19527
19528         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
19529
19530 2004-11-02  Derek R. Price  <derek@ximbiot.com>
19531         and  Paul Eggert  <eggert@cs.ucla.edu>
19532
19533         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
19534         (get_date): Overparenthesize to avoid GCC warning.
19535
19536 2004-11-02  Bruno Haible  <bruno@clisp.org>
19537
19538         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
19539         returns void.
19540
19541 2004-11-02  Bruno Haible  <bruno@clisp.org>
19542
19543         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
19544         function returns void.
19545
19546 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
19547
19548         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
19549         fflush_unlocked, flockfile, funlockfile, funlockfile,
19550         fputs_unlocked, putc_unlocked.
19551
19552 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
19553
19554         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
19555         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
19556         already declared.
19557
19558 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
19559
19560         * modules/getdate (Files): Add doc/getdate.texi.
19561         (Depends-on): Add setenv, xalloc.
19562
19563 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
19564
19565         * lib/getdate.y: Add support for TZ="foo" within a date string.
19566         Fix some bugs near time_t boundaries.  Reject dates with
19567         out-of-range components, e.g., "Sept 31".
19568         Include <stdlib.h>, "setenv.h", "xalloc.h".
19569         (ISDIGIT_LOCALE): Remove; unused.
19570         Note that the TZ and time functions used here are not reentrant.
19571         (mktime_ok, get_tz): New functions.
19572         (TZBUFSIZE): New constant.
19573         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
19574         This requires that we sometimes generate our own TZ="XXX..." setting.
19575
19576 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
19577
19578         * doc/getdate.texi: New file, from coreutils with modifications for
19579         the new TZ parsing.
19580
19581 2004-10-27  Derek R. Price  <derek@ximbiot.com>
19582
19583         * lib/mktime.c (not_equal_tm): Remove redundant check.
19584
19585 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
19586
19587         * modules/regex (lib_SOURCES): Add regex.c.
19588         Reported by James Youngman in
19589         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
19590
19591 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
19592
19593         * lib/getdate.y: Use Bison 1.875 features, and some minor
19594         code cleanups.  This change does not affect semantics.
19595         Don't include <stdlib.h>; no longer needed.
19596         Don't include unlocked-io.h; only the "#if TEST" code uses
19597         stdio, and performance isn't crucial there.
19598         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
19599         Bison 1.875 features as described below.
19600         All uses of "PC." replaced by "pc->".
19601         (YYSTYPE): Add a forward declaration.
19602         (yylex, yyerror): Use full prototypes in forward decls.
19603         Use "%pure-parser" rather than obsolescent "%pure_parser".
19604         Use %parse-param and %lex-param instead of obsolescent
19605         YYPARSE_PARAM and YYLEX_PARAM.
19606         (meridian_table, month_and_day_table, time_units_table,
19607         relative_time_table, time_zone_table, military_table,
19608         lookup_zone, lookup_word, get_date):
19609         Use NULL instead of 0 where appropriate.
19610         (to_hour): Avoid abort (), to avoid a dependency on
19611         stdlib.h.
19612         (yyerror, yylex): Now accepts parser_control * arg.
19613         (main) [TEST]: Use '\0' rather than 0 for char.
19614
19615 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
19616
19617         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
19618
19619 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
19620
19621         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
19622         It's now the caller's responsibility to handle the case where
19623         !HAVE_GETPAGESIZE && !defined getpagesize.
19624
19625         * lib/mktime.c (leapyear): Arg is long int, not int.
19626
19627 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
19628
19629         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
19630
19631 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
19632
19633         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
19634         missing.  Problem reported by James Youngman.
19635
19636 2004-10-16  Simon Josefsson  <jas@extundo.com>
19637
19638         * gnulib-tool: Fix comments.  Fix parse problem.
19639         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
19640
19641 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
19642
19643         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
19644         implementation of getopt_long.  Problem reported by Alexander Taler in:
19645         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
19646
19647 2004-10-15  Bruno Haible  <bruno@clisp.org>
19648
19649         * gnulib-tool: Untabify. Initialize supplied_libname.
19650         (func_usage): More homogenous output.
19651         (func_modules_transitive_closure, func_modules_to_filelist,
19652         func_emit_lib_Makefile_am): New functions.
19653         (func_import): New function, extracted from big case statement. Use
19654         func_get_license, func_modules_transitive_closure,
19655         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
19656         opt_lgpl. Don't use test -a, as it's not portable.
19657         (func_create_testdir): Use func_modules_transitive_closure,
19658         func_modules_to_filelist, func_emit_lib_Makefile_am.
19659
19660 2004-10-15  Bruno Haible  <bruno@clisp.org>
19661
19662         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
19663
19664 2004-10-15  Bruno Haible  <bruno@clisp.org>
19665
19666         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
19667         the portions belonging to each module.
19668         Suggested by Derek Robert Price <derek@ximbiot.com>.
19669
19670 2004-10-12  Simon Josefsson  <jas@extundo.com>
19671
19672         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
19673         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
19674         to real functions.
19675
19676 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
19677
19678         * modules/vsnprintf: New file.
19679
19680 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
19681
19682         * m4/vsnprintf.m4: New file.
19683
19684 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
19685
19686         * lib/vsnprintf.h: New file.
19687         * lib/vsnprintf.c: New file.
19688
19689 2004-10-11  Bruno Haible  <bruno@clisp.org>
19690
19691         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
19692         vsnprintf.
19693
19694 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
19695
19696         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
19697
19698 2004-10-07  Bruno Haible  <bruno@clisp.org>
19699
19700         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
19701         fits into the provided buffer.
19702
19703 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
19704
19705         * lib/diacrit.c, diacrit.h: Add GPL notice.
19706
19707         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
19708         notice.
19709         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
19710         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
19711         This avoids a potential constant-folding bug.
19712
19713 2004-10-05  Bruno Haible  <bruno@clisp.org>
19714
19715         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
19716         for the declaration of strsep.
19717
19718 2004-10-05  Bruno Haible  <bruno@clisp.org>
19719
19720         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
19721
19722 2004-10-04  Simon Josefsson  <jas@extundo.com>
19723
19724         * modules/memmem: New file.
19725         * tests/test-memmem.c: New file.
19726         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
19727
19728 2004-10-04  Simon Josefsson  <jas@extundo.com>
19729
19730         * m4/memmem.m4: New file.
19731
19732 2004-10-04  Simon Josefsson  <jas@extundo.com>
19733
19734         * lib/memmem.h: New file.
19735         * lib/memmem.c: New file, taken from glibc.
19736
19737 2004-10-04  Simon Josefsson  <jas@extundo.com>
19738
19739         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
19740         '#ifdef USE_UNLOCKED_IO'.
19741
19742 2004-10-04  Simon Josefsson  <jas@extundo.com>
19743
19744         * config/srclist.txt: Add memmem from glibc.
19745
19746 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
19747
19748         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
19749
19750         * modules/argmatch, modules/argp, modules/closeout, modules/error,
19751         modules/exclude, modules/getdate, modules/getline,
19752         modules/getndelim2, modules/getpass, modules/getpass-gnu,
19753         modules/getusershell, modules/linebuffer, modules/md5,
19754         modules/mountlist, modules/posixtm, modules/readtokens,
19755         modules/readutmp, modules/regex, modules/sha1,
19756         modules/version-etc, modules/yesno:
19757         Remove dependency on unlocked-io.
19758
19759 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
19760
19761         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
19762
19763         * m4/unlocked-io.m4: Add copyright notice.
19764         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
19765
19766 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
19767
19768         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
19769         * lib/xmalloc.c (xmemdup): Likewise.
19770         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
19771         XFREE): Remove these long-obsolescent macros.
19772         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
19773         * lib/xstrdup.c: Remove.
19774
19775         * lib/regex.c (re_comp): Cast gettext return value to char *,
19776         Problem reported by Martin Neitzel via Mark D. Baushke.
19777
19778 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
19779
19780         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
19781         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
19782         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
19783         regex.c, sha1.c, version-etc.c, yesno.c:
19784         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
19785         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
19786         the includer's responsibility.
19787
19788         Sync from coreutils.
19789
19790         * lib/modechange.c (mode_compile): Don't decrement a pointer that
19791         points to the start of a string, as the C Standard says the
19792         resulting behavior is undefined.
19793
19794         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
19795         simple -> simple_backups, numbered_existing ->
19796         numbered_existing_backups, numbered -> numbered_backups
19797         to avoid shadowing problems.  All uses changed.
19798         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
19799         * lib/backupfile.c (check_extension, numbered_backup):
19800         Rename locals to avoid shadowing 'basename'.
19801         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
19802         once.
19803
19804         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
19805         * lib/.cvsignore: Add getopt.h.
19806
19807 2004-10-04  Bruno Haible  <bruno@clisp.org>
19808
19809         * modules/README: New file.
19810         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
19811         not a module.
19812
19813 2004-10-02  Jim Meyering  <jim@meyering.net>
19814
19815         * lib/dirfd.h, getpagesize.h: Add copyright notice.
19816
19817 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
19818
19819         * modules/strsep: New file.
19820
19821 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
19822
19823         * m4/strsep.m4: New file.
19824
19825 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
19826
19827         * lib/strsep.h: New file.
19828         * lib/strsep.c: New file.
19829
19830 2004-10-01  Simon Josefsson  <jas@extundo.com>
19831
19832         * lib/snprintf.c (snprintf): Handle size==0.
19833
19834 2004-10-01  Simon Josefsson  <jas@extundo.com>
19835             Bruno Haible  <bruno@clisp.org>
19836
19837         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
19838         (snprintf): Declare 'args'.
19839
19840 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
19841
19842         * lib/snprintf.c: Remove comments as to why each header is needed.
19843
19844 2004-10-01  Bruno Haible  <bruno@clisp.org>
19845
19846         * MODULES.html.sh: Add strsep.
19847
19848 2004-09-30  Simon Josefsson  <jas@extundo.com>
19849
19850         * modules/snprintf: New file.
19851
19852 2004-09-30  Simon Josefsson  <jas@extundo.com>
19853
19854         * m4/snprintf.m4: New file.
19855
19856 2004-09-30  Simon Josefsson  <jas@extundo.com>
19857
19858         * lib/snprintf.h, lib/snprintf.c: New files.
19859
19860 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
19861
19862         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
19863         (hol_entry_help): Never translate an empty string.
19864         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
19865         * lib/argp.h (OPTION_NO_TRANS): New option.
19866
19867 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
19868
19869         * modules/argp (Maintainer): Replace Simon Josefsson
19870         by Sergey Poznyakoff.
19871
19872 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
19873
19874         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
19875         changes merged back into glibc.
19876
19877 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
19878
19879         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
19880
19881 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
19882
19883         * lib/xvasprintf.c: Include xalloc.h.
19884         (xvasprintf): Use xalloc_die, not xmalloc_die.
19885
19886 2004-09-29  Bruno Haible  <bruno@clisp.org>
19887
19888         * modules/alloca-opt: New file, derived from modules/alloca.
19889         * modules/allocsa: Depend on alloca-opt instead of alloca.
19890         * modules/setenv: Likewise.
19891         * modules/vasnprintf: Likewise.
19892         * MODULES.html.sh: Add alloca-opt.
19893
19894 2004-09-28  Simon Josefsson  <jas@extundo.com>
19895
19896         * gnulib-tool: New parameter --lgpl, to asseert that modules are
19897         LGPL, and to replace license template from GPL to LGPL.
19898
19899 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
19900
19901         * modules/dummy: Change license to LGPL.
19902
19903 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
19904
19905         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
19906
19907 2004-09-24  Simon Josefsson  <jas@extundo.com>
19908
19909         * modules/minmax (License): Change from GPL to LGPL.
19910
19911 2004-09-23  Simon Josefsson  <jas@extundo.com>
19912
19913         * gnulib-tool (--import): Typo.
19914
19915 2004-09-23  Simon Josefsson  <jas@extundo.com>
19916
19917         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
19918
19919 2004-09-22  Bruno Haible  <bruno@clisp.org>
19920
19921         * modules/*: Add 'License' field.
19922         * gnulib-tool: Accept --extract-license option.
19923         (func_get_license): New function.
19924
19925 2004-09-21  Bruno Haible  <bruno@clisp.org>
19926
19927         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
19928         Reported by Simon Josefsson.
19929
19930 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
19931
19932         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
19933         gl_AC_TYPE_LONG_LONG.
19934
19935 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
19936
19937         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
19938
19939 2004-09-18  Simon Josefsson  <jas@extundo.com>
19940         and  Paul Eggert  <eggert@cs.ucla.edu>
19941
19942         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
19943         calls with autoreconf.  Define GL_LIB.
19944
19945 2004-09-14  Karl Berry  <karl@gnu.org>
19946
19947         * config/srclist.txt: unsync setenv.c, sigh.
19948
19949 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
19950
19951         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
19952         Problem reported by Bruno Haible in:
19953         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
19954
19955 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
19956
19957         * config/srclist.txt: Comment out argp-pvh.c.
19958
19959 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
19960
19961         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
19962         in case some system header has #define'd it.  Problem reported by
19963         Soeren D. Schulze in
19964         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
19965
19966 2004-09-09  Karl Berry  <karl@gnu.org>
19967
19968         * regex.[ch]: delete from the root.  These were supposed to be
19969                 synced with emacs cvs, but this has not happened for about
19970                 a year, and anyway nothing else uses emacs regex.[ch].
19971                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
19972                 lib/regex[.ch] is untouched.
19973
19974 2004-09-09  Bruno Haible  <bruno@clisp.org>
19975
19976         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
19977
19978 2004-09-09  Bruno Haible  <bruno@clisp.org>
19979
19980         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
19981         modifications.
19982         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
19983
19984 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
19985
19986         * modules/xvasprintf: New file.
19987         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
19988
19989 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
19990
19991         * lib/xvasprintf.h: New file.
19992         * lib/xvasprintf.c: New file.
19993         * lib/xasprintf.c: New file.
19994
19995 2004-09-08  Bruno Haible  <bruno@clisp.org>
19996
19997         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
19998
19999 2004-09-08  Bruno Haible  <bruno@clisp.org>
20000
20001         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
20002         length is > INT_MAX.
20003         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
20004         more.
20005
20006 2004-09-08  Bruno Haible  <bruno@clisp.org>
20007
20008         * lib/stdint_.h: New file, taken from GNU clisp.
20009
20010 2004-09-08  Bruno Haible  <bruno@clisp.org>
20011             Oskar Liljeblad  <oskar@osk.mine.nu>
20012
20013         * modules/stdint: New file.
20014         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
20015
20016 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
20017
20018         Import from coreutils.
20019         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
20020         strings on unbounded length.  alloca's performance benefits aren't
20021         that important here.
20022         (V_STRDUP): Remove.
20023         (parse_with_separator): New function, with most of the internals
20024         of the old parse_user_spec.  Allow user to omit both user and group,
20025         for compatibility with FreeBSD.
20026         Clone only the user name, not the entire spec.
20027         Do not set *uid, *gid unless entirely successful.
20028         Avoid memory leak in some failing cases.
20029         Fix regression for USER.GROUP reported by Dmitry V. Levin in
20030         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
20031         (parse_user_spec): Rewrite to use parse_with_separator.
20032
20033 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
20034
20035         * modules/userspec: Don't depend on alloca.
20036
20037 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
20038
20039         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
20040
20041 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
20042
20043         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
20044         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
20045         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
20046
20047 2004-08-16  Simon Josefsson  <jas@extundo.com>
20048
20049         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
20050         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
20051         Add --dry-run for --import.
20052         Let user provided command line parameters override configure.ac
20053         settings.
20054
20055 2004-08-12  Simon Josefsson  <jas@extundo.com>
20056
20057         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
20058         as discussed with Paul Eggert in threads rooted at
20059         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
20060         and
20061         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
20062         Before, the test was empty, and relied on ELIDE_CODE in source
20063         code.)
20064         (gl_PREREQ_GETOPT): New macro.
20065         (gl_GETOPT): Use them.
20066
20067 2004-08-12  Simon Josefsson  <jas@extundo.com>
20068
20069         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
20070         * lib/getopt_.h: Renamed from getopt.h.
20071
20072 2004-08-12  Simon Josefsson  <jas@extundo.com>
20073
20074         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
20075         Change default library name from libfoo to libgnu.
20076         Now, if you have a configure.ac that says:
20077                 gl_SOURCE_BASE(gl)
20078                 gl_M4_BASE(gl/m4)
20079                 gl_MODULES(error getopt etcetera)
20080                 gl_INIT
20081         you can import all you need by running:
20082                 ../gnulib/gnulib-tool --import
20083
20084         * modules/getopt (Files): Rename getopt.h to getopt_.h.
20085         (Makefile.am): Rewrite, use logic from argz.
20086         (Include): Use <getopt.h> instead of "getopt.h".
20087
20088 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
20089
20090         * modules/argp (Files): Add m4/unlocked-io.m4.
20091         (Depends-on): Add extensions.
20092
20093 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
20094
20095         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
20096         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
20097         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
20098         Check for program_invocation_name, program_invocation_short_name,
20099         flockfile, funlockfile, features.h, _getopt_long_only_r.
20100
20101 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
20102
20103         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
20104         its complicated substitute.
20105         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
20106         and program_invocation_name.
20107         (__argp_basename) [!_LIBC]: Remove; the only use was
20108         replaced by its body.
20109         (__argp_short_program_name): Change condition from
20110         !defined __argp_short_program_name to
20111         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
20112         to match argp-namefrob.h.
20113         (__argp_failure): Don't assume strerror_r returns char *.
20114         * lib/argp-parse.c (N_): Define unconditionally.
20115         (argp_default_options): Fill out initializers with 0 to avoid
20116         gcc warnings.
20117
20118 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
20119
20120         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
20121         getopt1.c.
20122
20123 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
20124
20125         Merge from coreutils.
20126
20127         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
20128
20129         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
20130         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
20131
20132 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
20133
20134         Merge from coreutils.
20135
20136         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
20137         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
20138         for Reliant Unix 5.43.
20139
20140         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
20141         (union fooround): Use uintmax_t, not long int.
20142         The rest is a merge from libc:
20143         [defined _LIBC]: Include <shlib-compat.h>.
20144         (_obstack) [defined _LIBC]: Remove after 2.3.4.
20145
20146         * lib/settime.c (settime): Recode to avoid warning with
20147         Sun Forte C 6U2.
20148
20149         * lib/strverscmp.c: Convert to UTF-8.
20150
20151 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
20152
20153         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
20154         m4/uintmax_t.m4.
20155
20156 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
20157
20158         * modules/xalloc-die: New file.
20159         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
20160
20161         * modules/md5 (Files): Add m4/uint32_t.m4.
20162         * modules/sha1: Renamed from modules/sha.
20163         (Files):
20164         Rename lib/sha.h to lib/sha1.h.
20165         Rename lib/sha.c to lib/sha1.c.
20166         Rename m4/sha.m4 to m4/sha1.m4.
20167         (lib_SOURCES): Likewise.
20168         (configure.ac): Rename gl_SHA to gl_SHA1.
20169         (Include): sha.h -> sha1.h.
20170
20171 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
20172
20173         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
20174         * m4/sha1.m4: Renamed from sha.m4.
20175         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
20176
20177 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
20178
20179         * lib/obstack.h (obstack_empty_p):
20180         Don't assume that chunk->contents is suitably aligned.
20181         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
20182         Likewise. Problem reported by Benno in
20183         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
20184
20185         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
20186         readable.  This could be improved further but it'd take some work.
20187
20188 2004-08-08  Simon Josefsson  <jas@extundo.com>
20189
20190         * modules/xgethostname (Depends-on): Remove exit and error (not
20191         used).
20192
20193         * modules/getpass-gnu: Add getpass.h.
20194         (Depends-on): Add stdbool.
20195         * modules/getpass: Add getpass.h.
20196
20197 2004-08-08  Simon Josefsson  <jas@extundo.com>
20198
20199         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
20200         Check getpass declaration.
20201
20202 2004-08-08  Simon Josefsson  <jas@extundo.com>
20203
20204         * lib/xgethostname.c: Don't include error.h (not used).
20205
20206         * lib/getpass.h: Add.
20207         * lib/getpass.c: Include getpass.h first.
20208
20209 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
20210
20211         * lib/xalloc-die.c: New file.
20212         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
20213         All uses removed.
20214         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
20215         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
20216         xalloc-die.c.
20217         (_, N_, xalloc_die): Move to xalloc-die.c.
20218         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
20219         so that we needn't mess with xalloc_msg_memory_exhausted.
20220
20221         * lib/sha1.h: Renamed from sha.h.
20222         (SHA1_H): Renamed from _SHA_H.
20223         (sha1_ctx): Renamed from sha_ctx.
20224         (sha1_init_ctx): Renamed from sha_init_ctx.
20225         (sha1_process_block): Renamed from sha_process_block.
20226         (sha1_process_bytes): Renamed from sha_process_bytes.
20227         (sha1_finish_ctx): Renamed from sha_finish_ctx.
20228         (sha1_read_ctx): Renamed from sha_read_ctx.
20229         (sha1_stream): Renamed from sha_stream.
20230         (sha1_buffer): Renamed from sha_buffer.
20231         * lib/sha1.c: Likewise; renamed from sha.c.
20232         Do not include <sys/types.h>.
20233         Include <stddef.h> rather than <stdlib.h>.
20234
20235 2004-08-08  Bruno Haible  <bruno@clisp.org>
20236
20237         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
20238         FILESYSTEM_PREFIX_LEN.
20239         * lib/progreloc.c: Likewise.
20240         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
20241
20242 2004-08-06  Simon Josefsson  <jas@extundo.com>
20243
20244         * modules/progname (Depends-on): Don't depend on stdbool.
20245
20246 2004-08-06  Simon Josefsson  <jas@extundo.com>
20247
20248         * modules/getsubopt: New file.
20249         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
20250         getsubopt.
20251
20252 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
20253
20254         More merge from coreutils.
20255
20256         * m4/utimens.m4, m4/utimecmp.m4: New files.
20257         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
20258         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
20259         prereq.m4, sha.m4: Import changes from coreutils.
20260
20261 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
20262
20263         More merge from coreutils.
20264         * modules/raise, modules/readtokens0, modules/utimens:
20265         * modules/utimecmp, module/xnanosleep: New files.
20266         * modules/strftime: Add lib/strftime.h.
20267         Change include from <time.h> to "strftime.h".
20268         * modules/yesno: Add lib/yesno.h.
20269         * modules/backupfile: Remove lib/addext.c.
20270         * modules/euidaccess: Add stat-macros.h.
20271         * modules/canonicalize, modules/euidaccess,
20272         modules/filemode, modules/lchown, modules/makepath,
20273         modules/rmdir, modules/stat: Likewise.
20274
20275 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
20276
20277         Merge from tar.
20278         * lib/argp-help.c (make_hol, hol_append): Don't assume that
20279         SIZE_MAX is a valid preprocessor constant.
20280         (__argp_basename): Change from "#ifndef _LIBC"
20281         to "#ifndef __argp_short_program_name", so that
20282         we don't compile these functions for tar.
20283
20284         More merges from coreutils.
20285         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
20286         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
20287         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
20288         * lib/addext.c: Remove; no longer needed.
20289         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
20290         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
20291         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
20292         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
20293         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
20294         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
20295         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
20296         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
20297         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
20298         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
20299         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
20300         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
20301         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
20302         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
20303         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
20304         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
20305         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
20306         Import changes from coreutils.
20307
20308 2004-08-05  Simon Josefsson  <jas@extundo.com>
20309
20310         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
20311
20312 2004-08-05  Simon Josefsson  <jas@extundo.com>
20313
20314         * m4/getsubopt.m4: New file.
20315
20316 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
20317
20318         Merge from coreutils.
20319
20320         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
20321         * m4/getcwd-path-max.m4: New files.
20322
20323         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
20324         FILESYSTEM_PREFIX_LEN ->
20325         FILE_SYSTEM_PREFIX_LEN.
20326         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
20327         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
20328         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
20329         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
20330
20331         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
20332         prerequisite modules now handle the DOS stuff.
20333         Don't check for unistd.h.
20334
20335 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
20336
20337         Merge from coreutils.
20338
20339         * lib/.gdb-history: Remove; this doesn't belong here.
20340
20341         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
20342         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
20343         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
20344         * lib/getcwd.c: New files.
20345
20346         * lib/dirname.h: Include <stdbool.h>.
20347         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
20348         for consistency with POSIX terminology.  All uses changed.
20349         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
20350         (strip_trailing_slashes): Use bool for booleans.
20351         * lib/stripslash.c (strip_trailing_slashes): Likewise.
20352
20353         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
20354         sometimes returns a positive errno value even when it succeeds.
20355         (print_errno_message) [!LIBC]: Fall back on strerror if
20356         __strerror_r fails.
20357
20358         * lib/path-concat.c (mempcpy): Don't define if a system header defines
20359         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
20360         (longest_relative_suffix): New function.
20361         (path_concat): Use it.  Assume first argument is not NULL.
20362         Port to DOS.  Omit redundant separators.
20363         Report an error instead of returning NULL.
20364         Use mempcpy instead of memcpy.
20365         (xpath_concat): Remove: not declared or used.
20366
20367         * lib/same.h: Include <stdbool.h>
20368         (same_name): Return bool, not int.
20369         * lib/same.c (same_name): Likewise.
20370         (errno): Don't declare; we assume C89 or better now.
20371
20372         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
20373         if not already defined.
20374
20375         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
20376         * lib/dup-safer.c (errno): Likewise.
20377
20378 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
20379
20380         Merge from coreutils.
20381         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
20382         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
20383         * modules/path-concat: Don't depend on strdup.
20384
20385 2004-08-03  Simon Josefsson  <jas@extundo.com>
20386
20387         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
20388         * lib/progname.h: Don't include stdbool.h.
20389
20390 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
20391
20392         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
20393         * MODULES.html.sh (func_all_modules): Remove fatal.
20394
20395 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
20396
20397         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
20398
20399 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
20400
20401         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
20402         working.
20403
20404 2004-08-02  Simon Josefsson  <jas@extundo.com>
20405
20406         * lib/getsubopt.h: New file, with comments from Bruno Haible.
20407         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
20408         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
20409
20410 2004-08-01  Simon Josefsson  <jas@extundo.com>
20411
20412         * lib/xgetdomainname.c: Include stdlib.h, for free().
20413
20414 2004-07-19  Bruno Haible  <bruno@clisp.org>
20415
20416         * MODULES.html.sh (func_all_modules): Add dummy.
20417
20418 2004-07-16  Simon Josefsson  <jas@extundo.com>
20419
20420         * modules/dummy: New file.
20421
20422 2004-07-16  Simon Josefsson  <jas@extundo.com>
20423
20424         * lib/dummy.c: New file.
20425
20426 2004-07-16  Bruno Haible  <bruno@clisp.org>
20427
20428         * lib/backupfile.h: Add extern "C" for C++.
20429         * lib/closeout.h: Likewise.
20430         * lib/copy-file.h: Likewise.
20431         * lib/findprog.h: Likewise.
20432         * lib/full-write.h: Likewise.
20433         * lib/pathname.h: Likewise.
20434         * lib/progname.h: Likewise.
20435         * lib/stpcpy.h: Likewise.
20436         * lib/stpncpy.h: Likewise.
20437         * lib/strcase.h: Likewise.
20438         * lib/strstr.h: Likewise.
20439         * lib/xalloc.h: Likewise.
20440
20441         * lib/mbswidth.h: Add extern "C" for C++.
20442         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
20443
20444 2004-07-13  Robert Millan  <robertmh@gnu.org>
20445
20446         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
20447
20448 2004-07-09  Simon Josefsson  <jas@extundo.com>
20449
20450         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
20451         failed without this.)
20452
20453 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
20454
20455         * modules/chown (Files): Add lib/fchown-stub.c, since
20456         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
20457
20458 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
20459
20460         * lib/fchown-stub.c: New file.
20461
20462 2004-06-24  Jim Meyering  <jim@meyering.net>
20463
20464         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
20465
20466 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
20467
20468         * modules/argz: Omit "#include".
20469
20470         * MODULES.html.sh (func_all_modules): Add calloc, to match
20471         2004-06-01 addition of calloc module.
20472
20473 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
20474
20475         * m4/argz.m4: New file, which is autoupdated from libtool.
20476
20477 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
20478
20479         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
20480         libtool.
20481
20482 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
20483
20484         * config/srclist-update: Don't insist on "USA." before the
20485         close-comment, as libtool omits the period and puts the */ on a
20486         separate line.
20487         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
20488         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
20489
20490 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
20491
20492         * modules/argz: New file.
20493         * MODULES.html.sh (func_all_modules): Add argz.
20494
20495 2004-06-12  Jim Meyering  <jim@meyering.net>
20496         and  Paul Eggert  <eggert@cs.ucla.edu>
20497
20498         * modules/hash (Files): Add lib/xalloc.h.
20499         * modules/pipe (Depends-on): Add wait-process.
20500         * modules/stat (Depends-on): Add xalloc.
20501         * modules/userspec (Files): Add lib/userspec.h.
20502         * modules/xstrto
20503
20504         Upgrade from gettext-0.13.
20505         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
20506         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
20507         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
20508
20509 2004-06-10  Jim Meyering  <jim@meyering.net>
20510
20511         * lib/calloc.c: New file.
20512
20513 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
20514
20515         * lib/getdate.y (yylex): Allow space between sign and number.
20516         Problem reported by Dan Jacobson.
20517
20518 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
20519
20520         Merge from coreutils CVS.
20521
20522         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
20523         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
20524         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
20525         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
20526         xstrtol.m4: Fix copyright date and/or serial number.
20527
20528         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
20529         See if we need an fchown replacement.
20530         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
20531         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
20532         and use the replacement function if we detect either defect.
20533
20534         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
20535         gl_UTIMECMP.
20536
20537 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
20538         and  Jim Meyering  <jim@meyering.net>
20539
20540         Merge from coreutils CVS.
20541
20542         * lib/stat-macros.h: New file, with contents from file-type.h
20543         and coreutils' system.h.
20544         * lib/file-type.c: Include "stat-macros.h".
20545         * lib/file-type.h (file_type): Move all macro definitions to new file,
20546         stat-macros.h.
20547
20548         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
20549         Wrap old code with this conditional.
20550         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
20551         function that does not dereference symlinks.
20552         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
20553
20554         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
20555         dependency problems.
20556         (xreadlink): Accept new arg SIZE, for efficiency.
20557         All decls and uses changed.
20558         * lib/xreadlink.h: Include <stddef.h>, for size_t.
20559
20560         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
20561         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
20562
20563         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
20564         sysexits.h.
20565
20566 2004-06-01  Jim Meyering  <jim@meyering.net>
20567
20568         * m4/calloc.m4: New file.
20569
20570 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
20571
20572         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
20573         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
20574         Also, fix a typo in a diagnostic.
20575
20576 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
20577
20578         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
20579         or AC_FUNC_REALLOC.
20580
20581 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
20582
20583         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
20584         macros to be defined.
20585         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
20586         the allocator returns NULL because the requested size is zero.
20587
20588 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
20589
20590         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
20591         var.  Add comment explaining why libc still defines it.  This
20592         merges the following patch from glibc:
20593         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
20594
20595 2004-05-20  Andreas Schwab  <schwab@suse.de>
20596
20597         * m4/free.m4: Replace free if it not known to work, not the other
20598         way round.
20599
20600 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
20601
20602         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
20603         present in glibc since revision 1.1 of this file.
20604         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
20605         obstack_alignment_mask, obstack_alloc, obstack_base,
20606         obstack_blank, obstack_blank_fast, obstack_chunk_size,
20607         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
20608         obstack_grow0, obstack_init, obstack_int_grow,
20609         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
20610         obstack_next_free, obstack_object_size, obstack_ptr_grow,
20611         obstack_ptr_grow_fast, obstack_room): Remove declarations of
20612         nonexistent functions.
20613
20614 2004-05-18  Karl Berry  <karl@gnu.org>
20615
20616         * config/srclist.txt: break link for vasnprintf.c.
20617
20618 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
20619
20620         Port obstack to the AS/400, where pointers are 16 bytes wide and
20621         you cannot cast an integer to a valid pointer.  This patch is
20622         currently waiting to be integrated into glibc; see
20623         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
20624
20625         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
20626         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
20627         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
20628         (struct obstack): temp member is now a union of a pointer and
20629         an integer, instead of an integer.  All integer uses changed.
20630         This does not affect the physical layout of struct obstack,
20631         except on hosts (like the AS/400) where the size or alignment of
20632         void * is greater than that of ptrdiff_t.
20633         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
20634         __STDC__)]: Store temporary in pointer member of union, not
20635         integer member.
20636         * lib/obstack.c: Include <stddef.h>, for offsetof.
20637         (struct fooalign): Remove; it doesn't need a name.
20638         (union fooround): Change double to long double, and add void *.
20639         (DEFAULT_ALIGNMENT): Use offsetof to compute.
20640         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
20641         not a macro.  Hence the values are always int; so remove all
20642         casts-to-int in uses.
20643
20644 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
20645
20646         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
20647         we can get this patch merged into glibc.
20648
20649 2004-05-17  Derek R. Price  <derek@ximbiot.com>
20650             Paul Eggert  <eggert@cs.ucla.edu>
20651
20652         * m4/argp: Depend on alloca.
20653
20654 2004-05-17  Derek R. Price  <derek@ximbiot.com>
20655             Paul Eggert  <eggert@cs.ucla.edu>
20656
20657         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
20658         freecoding.
20659
20660 2004-05-17  Bruno Haible  <bruno@clisp.org>
20661
20662         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
20663         precision that consists of a '.' followed by an empty digit string.
20664         Patch by Tor Lillqvist <tml@iki.fi>.
20665
20666 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
20667
20668         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
20669         for backward compatibility with older code.  We need our own
20670         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
20671         it under some other name, and our alloca.h will define it.
20672
20673 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
20674             Derek Price  <derek@ximbiot.com>
20675
20676         * lib/alloca.c: Include <alloca.h>, to get our interface.
20677         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
20678         include <alloca.h> first.  Use C89 prototype for alloca; this
20679         requires including <stddef.h> for size_t.  Use extern "C" if C++.
20680         Use #elif for simplicity, since we can assume C89 now.
20681         Don't try to source the system alloca.h since it will not be found
20682         and to prevent recursively including its replacement.
20683         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
20684         * lib/regex.c: Likewise.
20685
20686 2004-05-16  Derek Price  <derek@ximbiot.com>
20687             Paul Eggert  <eggert@cs.ucla.edu>
20688
20689         getline cleanup.  This changes the getndelim2 API: both order of
20690         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
20691         no delimiter).
20692
20693         * lib/getline.c: Don't include stddef.h or stdio.h, since our
20694         interface does that.
20695         (getline): Always use getdelim, so that we don't have two
20696         copies of this code.
20697         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
20698         if available.
20699         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
20700         (GETNDELIM2_MAXIMUM): New macro.
20701         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
20702         instead of the old practice of delim2==0.  All callers changed.
20703         Return -1 on overflow, instead of returning junk.
20704         Do not set *linesize unless allocation succeeds.
20705         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
20706         that we include sys/types.h.
20707         * lib/getnline.h: Likewise.
20708         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
20709         (getndelim2): Reorder arguments.
20710         * lib/getnline.c (getnline, getndelim):
20711         Don't discard the NMAX argument.
20712         (getnline): Invoke getndelim, to avoid code duplication.
20713         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
20714         of (size_t) -1 by callers of the getnline family.
20715
20716 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
20717
20718         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
20719         Check for gettimeofday.
20720         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
20721         Check for settimeofday, stime.
20722
20723 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
20724
20725         * lib/nanosleep.c (suspended): Change its type from int to
20726         sig_atomic_t volatile.
20727         (first_call): Make it private to rpl_nanosleep, and have it
20728         be zero initially as that's a bit faster.
20729         (my_usleep): Round up fractional times instead of truncating them,
20730         as this is the usual meaning for 'sleep'.
20731
20732         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
20733         doesn't work.
20734         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
20735         (ENOSYS): Define if not defined.
20736         (settime): Fall back on stime if it exists and settimeofday fails.
20737         But don't bother with fallbacks if a method fails with errno == EPERM.
20738
20739 2004-05-11  Jim Meyering  <jim@meyering.net>
20740
20741         Prior to this change, the save_cwd caller required read access to the
20742         current directory on most systems (ones with the fchdir function).
20743
20744         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
20745         fails, try write-only, and finally, resort to using xgetcwd.
20746
20747 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
20748
20749         * lib/obstack.c, obstack.h: Import changes from libc.
20750
20751 2004-04-28  Bruno Haible  <bruno@clisp.org>
20752
20753         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
20754         also implicitly appends .exe to executables.
20755         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
20756         accepts Windows pathnames.
20757         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
20758         Treat Cygwin like Windows, since it now accepts Windows pathnames.
20759         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
20760         Treat Cygwin like Windows, since it now accepts Windows pathnames.
20761         Reported by Derek Robert Price <derek@ximbiot.com>.
20762
20763 2004-04-21  Karl Berry  <karl@gnu.org>
20764
20765         * config/srclist.txt (localcharset.c): break sync.
20766
20767 2004-04-20  Paul Eggert  <eggert@twinsun.com>
20768
20769         * m4/host-os.m4: Add a copyright notice.
20770
20771 2004-04-20  Jim Meyering  <jim@meyering.net>
20772
20773         Change UTILS_ to gl_ in AC_DEFINE'd names.
20774         Change utils_- and jm_-prefixed variables, too.
20775         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
20776         UTILS_FUNC_MKDIR_TRAILING_SLASH.
20777         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
20778
20779         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
20780         Don't emit trailing blanks.
20781         Also rename jm_-prefixed variables to have gl_ prefix.
20782
20783         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
20784         Also rename jm_-prefixed variables to have gl_ prefix.
20785
20786         * m4/jm-macros.m4: Reflect the renamings.
20787         * m4/prereq.m4: Likewise.
20788
20789 2004-04-20  Jim Meyering  <jim@meyering.net>
20790
20791         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
20792         memory.
20793
20794 2004-04-20  Jim Meyering  <jim@meyering.net>
20795             Bruno Haible  <bruno@clisp.org>
20796
20797         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
20798         memory when realloc fails.
20799
20800 2004-04-19  Jim Meyering  <jim@meyering.net>
20801
20802         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
20803         now that readutmp.c may call `free (0)'.
20804
20805 2004-04-19  Bruno Haible  <bruno@clisp.org>
20806
20807         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
20808         * m4/inttypes_h.m4: Likewise.
20809         * m4/stdint_h.m4: Likewise.
20810         * m4/intmax_t.m4: Likewise.
20811         * m4/uintmax_t.m4: Likewise.
20812
20813 2004-04-18  Jim Meyering  <jim@meyering.net>
20814
20815         * m4/prereq.m4: Don't forbid jm_ prefix.
20816
20817         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
20818         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
20819         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
20820         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
20821         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
20822         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
20823         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
20824         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
20825         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
20826         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
20827         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
20828         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
20829         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
20830         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
20831         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
20832         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
20833         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
20834         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
20835         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
20836
20837 2004-04-18  Jim Meyering  <jim@meyering.net>
20838
20839         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
20840         failure, don't leak memory and do call END_UTMP_ENT.
20841
20842 2004-04-16  Jim Meyering  <jim@meyering.net>
20843
20844         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
20845         coreutils' stat program.
20846         (gl_PREREQ): Don't require jm_PREREQ_STAT.
20847
20848 2004-04-11  Paul Eggert  <eggert@twinsun.com>
20849
20850         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
20851         C89.
20852         (CHAR_BIT): Remove, since we assume C89.
20853         Include <stdint.h> if available, as per current Autoconf CVS advice.
20854
20855 2004-03-31  Jim Meyering  <jim@meyering.net>
20856
20857         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
20858         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
20859         * m4/xalloc.m4: Likewise.
20860
20861 2004-03-30  Paul Eggert  <eggert@twinsun.com>
20862
20863         Merge from coreutils.
20864
20865         * m4/inttostr.m4: New file.
20866         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
20867         Require AM_STDBOOL_H and gl_TIMESPEC instead.
20868         Require gl_CLOCK_TIME.
20869         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
20870
20871 2004-03-30  Paul Eggert  <eggert@twinsun.com>
20872
20873         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
20874         not bool, to be more consistent with Unix conventions.
20875         Suggested by Bruno Haible.
20876
20877         Merge from coreutils.
20878
20879         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
20880         * lib/umaxtostr.c: New files.
20881
20882         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
20883         the usual <time.h> dance.
20884         (get_date): Change signature to support fractional time stamps.
20885         All callers changed.
20886         * lib/getdate.y: Include "getdate.h" first, as we can now
20887         assume C89 and don't need to worry about 'const'.
20888         Similarly, include "unlocked-io.h" near start, not in middle.
20889         Include <limits.h>.
20890         (textint.value): Use long int rather than int.
20891         (textint.digits): Use size_t rather than int.
20892         (BILLION, LOG10_BILLION): New constants.
20893         (parser_control): New member rel_ns.  Members day_ordinal,
20894         time_zone, month, day, hour, minutes, rel_year, rel_month,
20895         rel_day, rel_hour, rel_minutes, rel_seconds
20896         are now long int, not int.  Member seconds is now struct timespec,
20897         not int.  New member timespec_seen.  Members dates_seen, days_seen,
20898         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
20899         not int.
20900         (%union.intval): Now long int, not int.
20901         New member timespec.
20902         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
20903         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
20904         (spec): Now is a timespec or an item list.
20905         (timespec, items): New nonterminals.
20906         (time, rel, relunit, number, get_date):
20907         Add support for fractional seconds.
20908         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
20909         (gmtime, localtime, mktime): Remove decls; not needed with C89.
20910         (to_hour): First arg is now long int, not int.
20911         (to_year): Returns long int, not int.
20912         Don't treat year -70 like 70.
20913         (tm_diff): Returns long int, not int.
20914         (lookup_word): Use bool instead of int when appropriate.
20915         (yylex): Use size_t for count, not int.
20916         Detect overflow when parsing large integer constants.
20917         Add support for fractions.
20918         (get_date): Make pointers 'const' if possible.
20919         Use more-portable code to detect integer overflow.
20920         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
20921         Don't use ctime; it's not reliable if the year has >4 digits.
20922
20923         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
20924         This is for compatibility with BSD.
20925
20926         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
20927         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
20928         From coreutils' system.h.
20929
20930         * lib/userspec.c: Don't include "posixver.h".
20931         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
20932         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
20933         compatible extension.  Simplify code by removing a boolean int
20934         that was always nonzero if a string was nonnull.
20935
20936 2004-03-30  Jim Meyering  <jim@meyering.net>
20937
20938         Merge from coreutils.
20939
20940         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
20941         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
20942         on some systems one must include <grp.h> before it.
20943         Reported by Christian Krackowizer.
20944
20945 2004-03-30  Jim Meyering  <jim@meyering.net>
20946
20947         Merge from coreutils.
20948
20949         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
20950
20951         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
20952         an empty input stream.
20953
20954         * lib/readtokens.c: Include <stdbool.h>.
20955         (readtoken): Use `size_t' rather than int/long.
20956         All callers adjusted.
20957         Use `bool' rather than `int' where appropriate.
20958         Use memset rather than an explicit loop.
20959         Use x2nrealloc rather than xrealloc.
20960         Allow the use of `\0' as a delimiter.
20961         (readtokens): Likewise.
20962         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
20963
20964 2004-03-30  Jim Meyering  <jim@meyering.net>
20965
20966         * m4/realloc.m4: Remove file, since now it does no more than
20967         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
20968         the `configure.ac' section of module/realloc.
20969         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
20970
20971 2004-03-30  Bruno Haible  <bruno@clisp.org>
20972
20973         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
20974         nonnull.
20975
20976 2004-03-29  Paul Eggert  <eggert@twinsun.com>
20977
20978         Merge changes to getloadavg.c from coreutils and Emacs.
20979
20980         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
20981         Define to an expression, not to the empty string.
20982         Include cloexec.h and xalloc.h.
20983         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
20984         Use set_cloexec_flag rather than rolling our own.
20985         * lib/cloexec.c, lib/cloexec.h: New files.
20986
20987 2004-03-29  Paul Eggert  <eggert@twinsun.com>
20988
20989         * m4/cloexec.m4: New file.
20990
20991 2004-03-18  Paul Eggert  <eggert@twinsun.com>
20992
20993         * lib/getopt.h: Sync with libc CVS.
20994
20995 2004-03-18  Paul Eggert  <eggert@twinsun.com>
20996             Bruno Haible  <bruno@clisp.org>
20997
20998         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
20999         mbswidth.
21000
21001 2004-03-18  Paul Eggert  <eggert@twinsun.com>
21002             Bruno Haible  <bruno@clisp.org>
21003
21004         * lib/mbswidth.h: Include <wchar.h> only if
21005         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
21006         <wchar.h>.
21007         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
21008
21009 2004-03-09  Paul Eggert  <eggert@twinsun.com>
21010
21011         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
21012         Sync with libc CVS.
21013         * lib/getopt_int.h: New file, also synced from libc.
21014
21015 2004-03-09  Paul Eggert  <eggert@twinsun.com>
21016
21017         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
21018         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
21019         Bring back getopt.c, getopt.h, getopt1.c.
21020
21021 2004-03-07  Paul Eggert  <eggert@twinsun.com>
21022
21023         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
21024         All uses changed.  Check for sa_sigaction member; this fixes
21025         a bug first reported by Jason Andrade in
21026         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
21027
21028 2004-03-07  Paul Eggert  <eggert@twinsun.com>
21029
21030         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
21031         '#if' expressions.  Unlike the code it replaces, it does not
21032         depend on (defined _SC_PAGESIZE).  However, it does depend on
21033         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
21034         first reported by Jason Andrade in
21035         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
21036
21037 2004-02-25  Simon Josefsson  <jas@extundo.com>
21038
21039         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
21040
21041 2004-02-25  Simon Josefsson  <jas@extundo.com>
21042
21043         * lib/strdup.h: New file.
21044         * lib/strdup.c: Include it.
21045         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
21046         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
21047
21048 2004-02-23  Karl Berry  <karl@gnu.org>
21049
21050         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
21051         (from fencepost.gnu.org:/gd/gnuorg).
21052
21053 2004-02-23  Karl Berry  <karl@gnu.org>
21054
21055         * config/srclistvars.sh (GNUORG) [karl]: redefine.
21056         * config/srclist.txt: add maintain/standards documents.
21057
21058 2004-02-18  Bruno Haible  <bruno@clisp.org>
21059
21060         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
21061         Reported by Derek Robert Price <derek@ximbiot.com>.
21062
21063 2004-02-16  Karl Berry  <karl@gnu.org>
21064
21065         * config/mkinstalldirs, install-sh: update from automake.
21066
21067 2004-02-06  Karl Berry  <karl@gnu.org>
21068
21069         * m4/po.m4: update from gettext 0.14.1.
21070
21071 2004-02-06  Karl Berry  <karl@gnu.org>
21072
21073         * lib/config.charset: update from gettext 0.14.1.
21074
21075 2004-02-05  Paul Eggert  <eggert@twinsun.com>
21076
21077         Add comments and code, prompted by suggestions from Bruno Haible
21078         for sh-quote.
21079         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
21080         describing the enum quoting_style values.
21081         * lib/quotearg.c (quotearg_alloc): New function.
21082         (quotearg_buffer_restyled): Treat lone { and } as special.
21083         Treat = as special.  Work around bug with older shells
21084         that "see" a '\' that is really the 2nd byte of a multibyte char.
21085         Quote empty string with shell_quoting_style.
21086
21087 2004-02-03  Bruno Haible  <bruno@clisp.org>
21088
21089         * m4/pipe.m4: New file, from GNU gettext.
21090
21091 2004-02-03  Bruno Haible  <bruno@clisp.org>
21092
21093         * lib/pipe.h: New file, from GNU gettext.
21094         * lib/pipe.c: New file, from GNU gettext.
21095
21096 2004-01-27  Bruno Haible  <bruno@clisp.org>
21097
21098         * m4/execute.m4: New file, from GNU gettext.
21099
21100 2004-01-27  Bruno Haible  <bruno@clisp.org>
21101
21102         * lib/execute.h: New file, from GNU gettext.
21103         * lib/execute.c: New file, from GNU gettext.
21104         * lib/w32spawn.h: New file, from GNU gettext.
21105
21106 2004-01-24  Paul Eggert  <eggert@twinsun.com>
21107
21108         Merge from diffutils.
21109
21110         * lib/file-type.c (file_type): Add typed memory objects.
21111         * lib/file-type.h (S_TYPEISTMO): New macro.
21112
21113         * lib/c-stack.h (c_stack_action): Remove argv argument.
21114         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
21115         (die): Don't calculate message unless segv_action returns.
21116         (get_stack_location, min_address_from_argv, max_address_from_argv,
21117         volatile stack_base, volatile_stack_size): Remove.
21118         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
21119         that every segmentation violation is a stack overflow.  (Ouch!)
21120         See Debian bug 136249 (still outstanding) for more info about why
21121         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
21122
21123 2004-01-24  Paul Eggert  <eggert@twinsun.com>
21124
21125         Exit-status fix from coreutils.
21126
21127         Use exit_failure consistently in place of EXIT_FAILURE,
21128         so that program exit statuses are consistent on failure.
21129
21130         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
21131         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
21132         * lib/argmatch.h: Comment fix to match the above.
21133         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
21134         Now a macro referring to exit_failure, instead of a separate
21135         variable.  Include "exitfail.h" to get it.
21136         * lib/xstrtol.h: Include "exitfail.h".
21137         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
21138
21139         * lib/long-options.c (parse_long_options): Use prototype
21140         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
21141         for clarity.
21142
21143 2004-01-21  Jim Meyering  <jim@meyering.net>
21144
21145         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
21146         so as not to conflict with a different-sized __mktime_internal
21147         function in GNU libc.
21148         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
21149         Problem building statically-linked `ls' reported by Michael Brunnbauer.
21150
21151 2004-01-20  Karl Berry  <karl@gnu.org>
21152
21153         * config/config.guess: update from config.
21154
21155         * config/srclistvars.sh: GNUWWWLICENSES for karl.
21156
21157 2004-01-20  Bruno Haible  <bruno@clisp.org>
21158
21159         Safer stack allocation.
21160         * lib/setenv.c: Include allocsa.h.
21161         (alloca): Remove fallback definition.
21162         (freea): Remove macro.
21163         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
21164         instead of freea.
21165
21166 2004-01-20  Bruno Haible  <bruno@clisp.org>
21167
21168         * m4/eealloc.m4: New file, from GNU gettext.
21169
21170 2004-01-20  Bruno Haible  <bruno@clisp.org>
21171
21172         * m4/allocsa.m4: New file, from GNU gettext.
21173
21174 2004-01-20  Bruno Haible  <bruno@clisp.org>
21175
21176         * lib/xallocsa.h: New file, from GNU gettext.
21177         * lib/xallocsa.c: New file, from GNU gettext.
21178
21179 2004-01-20  Bruno Haible  <bruno@clisp.org>
21180
21181         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
21182
21183 2004-01-20  Bruno Haible  <bruno@clisp.org>
21184
21185         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
21186         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
21187         specially.
21188
21189 2004-01-20  Bruno Haible  <bruno@clisp.org>
21190
21191         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
21192         patch.
21193
21194 2004-01-20  Bruno Haible  <bruno@clisp.org>
21195
21196         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
21197
21198 2004-01-20  Bruno Haible  <bruno@clisp.org>
21199
21200         * lib/eealloc.h: New file.
21201
21202 2004-01-20  Bruno Haible  <bruno@clisp.org>
21203
21204         * lib/binary-io.h: Avoid warnings on Cygwin.
21205
21206 2004-01-20  Bruno Haible  <bruno@clisp.org>
21207
21208         * lib/allocsa.h: New file, from GNU gettext.
21209         * lib/allocsa.c: New file, from GNU gettext.
21210
21211 2004-01-18  Karl Berry  <karl@gnu.org>
21212
21213         * doc/gpl.texi, doc/lgpl.texi: new files.
21214
21215 2004-01-18  Karl Berry  <karl@gnu.org>
21216
21217         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
21218         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
21219
21220 2004-01-15  Paul Eggert  <eggert@twinsun.com>
21221
21222         Merge from coreutils.
21223
21224         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
21225         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
21226         (gl_DEFAULT_POSIX2_VERSION): Move
21227         the documentation from 'configure' into 'config.hin',
21228         so that 'configure --help' isn't burdened by it and
21229         we don't have to worry about its formatting there.
21230         Reword the documentation so that it's more succinct
21231         and can be run together into a single paragraph.
21232         * m4/same.m4 (gl_SAME): Check for pathconf.
21233
21234 2004-01-15  Paul Eggert  <eggert@twinsun.com>
21235
21236         Merge from coreutils.
21237
21238         * lib/posixver.c: Include posixver.h.
21239
21240         * lib/same.c: Include <stdbool.h>, <limits.h>.
21241         (_POSIX_NAME_MAX): Define if not defined.
21242         (MIN): New macro.
21243         (same_name): If file names are silently truncated, report
21244         that the file names are the same if they are the same after
21245         the silent truncation.
21246
21247         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
21248         conversion function.
21249         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
21250         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
21251         longer needed.
21252
21253 2004-01-15  Jim Meyering  <jim@meyering.net>
21254
21255         Merge from coreutils.
21256
21257         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
21258         if no library is required.
21259         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
21260         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
21261         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
21262         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
21263         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
21264         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
21265         value, $ac_cv_search_crypt, if it's "none required".
21266         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
21267         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
21268         not gl_FUNC_GETLOADAVG.
21269         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
21270         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
21271
21272 2004-01-15  Jim Meyering  <jim@meyering.net>
21273
21274         Merge from coreutils.
21275
21276         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
21277         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
21278         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
21279
21280         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
21281         optional configure-time default.
21282
21283         * lib/version-etc.c (version_etc_copyright): Update copyright date.
21284
21285         * lib/xreadlink.c (xreadlink): Correct outdated comment.
21286
21287 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
21288
21289         Merge from coreutils.
21290
21291         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
21292         value, $ac_cv_search_nanosleep, if it's "none required".
21293
21294 2004-01-14  Paul Eggert  <eggert@twinsun.com>
21295
21296         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
21297         with like-named macro in fnmatch.c.
21298         (EXT): Use an internal constant instead.
21299
21300         Merge fnmatch patches from glibc.
21301         * lib/fnmatch.c (mbsinit): Remove define.
21302         Add libc_hidden_ver (__fnmatch, fnmatch).
21303         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
21304         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
21305
21306 2004-01-14  Karl Berry  <karl@gnu.org>
21307
21308         * config/install-sh: update from automake.
21309
21310 2004-01-13  Karl Berry  <karl@gnu.org>
21311
21312         * config/install-sh: update from automake.
21313
21314 2004-01-09  Karl Berry  <karl@gnu.org>
21315
21316         * config/install-sh: update from automake.
21317
21318 2004-01-05  Karl Berry  <karl@gnu.org>
21319
21320         * config/config.{sub,guess}: update from config.
21321
21322 2003-12-31  Karl Berry  <karl@gnu.org>
21323
21324         * config/depcomp: update from automake.
21325
21326 2003-12-14  Karl Berry  <karl@gnu.org>
21327
21328         * lib/config.charset: update from gettext-runtime.
21329
21330 2003-12-03  Paul Eggert  <eggert@twinsun.com>
21331
21332         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
21333         Bug reported by Alfred M. Szmidt.
21334
21335 2003-12-03  Bruno Haible  <bruno@clisp.org>
21336
21337         * m4/gettext.m4: Upgrade from gettext-0.13.
21338         * m4/po.m4: Upgrade from gettext-0.13.
21339         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
21340         * m4/intmax.m4: New file, from gettext-0.13.
21341         * m4/printf-posix.m4: New file, from gettext-0.13.
21342
21343 2003-11-29  Karl Berry  <karl@gnu.org>
21344
21345         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
21346
21347 2003-11-25  Paul Eggert  <eggert@twinsun.com>
21348             Bruno Haible  <bruno@clisp.org>
21349
21350         * lib/printf-parse.h: Don't include sys/types.h.
21351         (ARG_NONE): New macro.
21352         (char_directive): Change type of *arg_index fields to size_t.
21353         * lib/printf-parse.c: Don't include sys/types.h.
21354         (SSIZE_MAX): Remove macro.
21355         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
21356         Remove unnecessary overflow check.
21357         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
21358         fields.
21359
21360 2003-11-25  Bruno Haible  <bruno@clisp.org>
21361
21362         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
21363
21364 2003-11-25  Bruno Haible  <bruno@clisp.org>
21365
21366         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
21367         gt_TYPE_SSIZE_T.
21368
21369 2003-11-24  Paul Eggert  <eggert@twinsun.com>
21370
21371         * modules/alloca: Remove dependency on xalloc.
21372
21373 2003-11-24  Paul Eggert  <eggert@twinsun.com>
21374
21375         * lib/alloca.c: Remove dependency on xalloc module.
21376         (xalloc_die): Remove.
21377         (memory_full) [!defined emacs]: New macro.
21378         [!defined emacs]: Don't include xalloc.h.
21379         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
21380         address arithmetic overflows.  Change datatypes a bit to avoid
21381         unnecessary casts.
21382
21383 2003-11-22  Jim Meyering  <jim@meyering.net>
21384
21385         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
21386         s/size/size_t/.
21387
21388 2003-11-21  Karl Berry  <karl@gnu.org>
21389
21390         * config/config.{sub,guess}: update from config.
21391
21392 2003-11-18  Karl Berry  <karl@gnu.org>
21393
21394         * config/config.{sub,guess}: update from config.
21395
21396         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
21397
21398 2003-11-17  Paul Eggert  <eggert@twinsun.com>
21399
21400         * README: Mention that S+T cannot overflow if S is the size of
21401         an existing object and T is sufficiently small.
21402
21403 2003-11-17  Jim Meyering  <jim@meyering.net>
21404
21405         On systems without utime and without a utimes function capable of
21406         dealing with a NULL struct utimbuf* argument, this utime replacement
21407         could -- in unusual circumstances -- leak a file descriptor.
21408         * lib/utime.c: Include <unistd.h> and <errno.h>.
21409         (utime_null): Be sure to close `fd' and to preserve errno.
21410         Reported by Geoff Collyer via Arnold Robbins.
21411
21412 2003-11-17  Bruno Haible  <bruno@clisp.org>
21413
21414         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
21415         (Depends-on): Add xsize.
21416
21417 2003-11-17  Bruno Haible  <bruno@clisp.org>
21418
21419         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
21420
21421 2003-11-17  Bruno Haible  <bruno@clisp.org>
21422
21423         * lib/vasnprintf.c (alloca): Remove fallback definition.
21424         (freea): Remove definition.
21425         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
21426         Reported by Paul Eggert.
21427
21428 2003-11-16  Paul Eggert  <eggert@twinsun.com>
21429             Bruno Haible  <bruno@clisp.org>
21430
21431         Protect against address arithmetic overflow.
21432         * lib/printf-args.h: Include stddef.h.
21433         (arguments): Change type of field 'count' to size_t.
21434         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
21435         'unsigned int' where appropriate.
21436         * lib/printf-parse.h: Include sys/types.h.
21437         (char_directive): Change type of *arg_index fields to ssize_t.
21438         (char_directives): Change type of fields 'count', max_*_length to
21439         size_t.
21440         * lib/printf-parse.c: Include sys/types.h and xsize.h.
21441         (SSIZE_MAX): Define fallback value.
21442         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
21443         instead of 'int' where appropriate. Check a_allocated, d_allocated
21444         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
21445         * lib/vasnprintf.c: Include xsize.h.
21446         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
21447         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
21448         overflow. Avoid wraparound when converting a width or precision from
21449         decimal to binary.
21450
21451 2003-11-16  Bruno Haible  <bruno@clisp.org>
21452
21453         Update from GNU gettext.
21454         * lib/printf-parse.c: Generalize to it can be compiled for wide
21455         strings.
21456         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
21457         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
21458         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
21459         SNPRINTF): New macros.
21460         Don't include <alloca.h> if the file is used inside libintl.
21461         (local_wcslen): New function, for Solaris 2.5.1.
21462         (VASNPRINTF): Use it instead of wcslen.
21463
21464 2003-11-16  Bruno Haible  <bruno@clisp.org>
21465
21466         * lib/xsize.h (xmax): New function.
21467         (xsum, xsum3, xsum4): Declare as "pure" functions.
21468
21469 2003-11-12  Paul Eggert  <eggert@twinsun.com>
21470
21471         * modules/xalloc (Files): Undo latest change, since xalloc.h
21472         no longer needs SIZE_MAX or PTRDIFF_MAX.
21473
21474 2003-11-12  Paul Eggert  <eggert@twinsun.com>
21475
21476         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
21477         gl_PTRDIFF_MAX.
21478
21479 2003-11-12  Paul Eggert  <eggert@twinsun.com>
21480
21481         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
21482         "return", to pacify some unknown compiler.  Problem reported
21483         by Joerg Schilling.
21484
21485 2003-11-12  Paul Eggert  <eggert@twinsun.com>
21486
21487         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
21488         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
21489         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
21490         heuristic is just as accurate as far as we know, and it removes a
21491         dependency on size_max.m4 and ptrdiff_max.m4.
21492
21493 2003-11-11  Bruno Haible  <bruno@clisp.org>
21494
21495         * modules/xsize (Files): Add m4/size_max.m4.
21496         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
21497
21498 2003-11-11  Bruno Haible  <bruno@clisp.org>
21499
21500         * m4/size_max.m4: New file.
21501         * m4/ptrdiff_max.m4: New file.
21502         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
21503         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
21504         (gl_XALLOC): Invoke it.
21505
21506 2003-11-11  Bruno Haible  <bruno@clisp.org>
21507
21508         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
21509         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
21510         defined.
21511
21512 2003-11-10  Paul Eggert  <eggert@twinsun.com>
21513
21514         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
21515         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
21516         rejected some allocations of exactly SIZE_MAX - 2 bytes.
21517         From Bruno Haible.
21518         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
21519         not (size_t) -1, since it's defined here.
21520
21521 2003-11-09  Karl Berry  <karl@gnu.org>
21522
21523         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
21524
21525 2003-11-06  Paul Eggert  <eggert@twinsun.com>
21526
21527         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
21528         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
21529         Reject sizes of exactly SIZE_MAX bytes.
21530         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
21531         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
21532
21533 2003-11-05  Bruno Haible  <bruno@clisp.org>
21534
21535         * lib/xsize.h: Include limits.h, to avoid a possible collision with
21536         SIZE_MAX defined in <limits.h> on Solaris.
21537
21538 2003-11-04  Jim Meyering  <jim@meyering.net>
21539
21540         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
21541         variable names, rather than @VAR@.
21542         * modules/poll: Likewise.
21543
21544 2003-11-04  Bruno Haible  <bruno@clisp.org>
21545
21546         * modules/xsize: New file.
21547         * modules/linebreak: Depend on xsize.
21548         * MODULES.html.sh (func_all_modules): Add xsize.
21549
21550 2003-11-04  Bruno Haible  <bruno@clisp.org>
21551
21552         * m4/xsize.m4: New file.
21553
21554 2003-11-04  Bruno Haible  <bruno@clisp.org>
21555
21556         * lib/xsize.h: New file.
21557         * lib/linebreak.c: Include xsize.h.
21558         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
21559         argument for overflow.
21560         Suggested by Paul Eggert.
21561
21562 2003-11-03  Karl Berry  <karl@gnu.org>
21563
21564         * config/config.{guess,sub}: update from config.
21565
21566 2003-11-03  Jim Meyering  <jim@meyering.net>
21567
21568         * modules/userspec (lib_SOURCES): Add userspec.h.
21569         (Include): Add "userspec.h".
21570         Improve description.
21571
21572 2003-11-03  Jim Meyering  <jim@meyering.net>
21573
21574         * lib/userspec.c: Include "userspec.h".
21575         * lib/userspec.h: New file.
21576
21577 2003-11-03  Bruno Haible  <bruno@clisp.org>
21578
21579         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
21580
21581 2003-11-03  Bruno Haible  <bruno@clisp.org>
21582
21583         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
21584         available, to avoid (extremely rare) race condition.
21585         Suggested by Paul Eggert.
21586
21587 2003-11-02  Karl Berry  <karl@gnu.org>
21588
21589         * config/srclist.txt (vasprintf.c): sync broken, sigh.
21590
21591 2003-10-31  Paul Eggert  <eggert@twinsun.com>
21592
21593         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
21594         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
21595         (read_filesystem_list): Set and use me_type_malloced.
21596         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
21597         whatever the type happens to be), for brevity and consistency.
21598         Check for size calculation overflow on Alphas running OSF/1.
21599
21600 2003-10-31  Jim Meyering  <jim@meyering.net>
21601
21602         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
21603
21604         * lib/linebuffer.c: Include <string.h> for declaration of memset.
21605
21606 2003-10-30  Paul Eggert  <eggert@twinsun.com>
21607             Bruno Haible  <bruno@clisp.org>
21608
21609         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
21610         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
21611
21612 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
21613
21614         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
21615         netbsd*-gnu*.  Suggested by Robert Millan.
21616
21617 2003-10-29  Paul Eggert  <eggert@twinsun.com>
21618
21619         * modules/group-member: Depend on stdbool.
21620
21621 2003-10-29  Paul Eggert  <eggert@twinsun.com>
21622
21623         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
21624
21625 2003-10-29  Paul Eggert  <eggert@twinsun.com>
21626
21627         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
21628         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
21629         after the 'gnu' in these cases.  This fixes some bugs in the
21630         previous change, and is based on suggestions by Robert Millan.
21631
21632 2003-10-29  Paul Eggert  <eggert@twinsun.com>
21633
21634         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
21635         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
21636         no longer needed.
21637         * lib/quotearg.c (quotearg_n_options): Use it.
21638         * lib/group-member.c: Include <stdbool.h>.
21639         (free_group_info): Arg is now const *; don't free arg.
21640         (get_group_info): Now returns bool and accepts struct group_info *,
21641         rather than returning a malloc'ed struct group_info *.
21642         All uses changed.  Check for overflow in internal size calculation.
21643
21644         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
21645         rather than xmalloc/xrealloc.
21646         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
21647         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
21648         conformance bug: the old code used a pointer after freeing the
21649         storage that it addressed.
21650         * lib/hash.c (hash_initialize): Simplify the code by using
21651         xalloc_oversized rather than doing it by hand.
21652         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
21653         the buffer preserved.  Use free and xmalloc instead.
21654         * lib/quotearg.c (quotearg_n_options): Likewise.
21655         Use a simpler test for size overflow.  Don't use xalloc_oversized
21656         because unsigned int might be wider than size_t (!); this suggests
21657         that we should switch from unsigned int to size_t for slot numbers.
21658
21659 2003-10-28  Paul Eggert  <eggert@twinsun.com>
21660
21661         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
21662         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
21663         NetBSD kernels.  Requested by Richard Stallman.
21664
21665 2003-10-27  Paul Eggert  <eggert@twinsun.com>
21666
21667         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
21668         to allocate the returned structure.  Do not allocate a subarray,
21669         as x2nrealloc will do that.
21670         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
21671         instead of xnrealloc.
21672         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
21673
21674 2003-10-27  Bruno Haible  <bruno@clisp.org>
21675
21676         * lib/stdbool_.h: Better support for BeOS.
21677
21678 2003-10-26  Paul Eggert  <eggert@twinsun.com>
21679
21680         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
21681         now uses inline.
21682
21683 2003-10-26  Paul Eggert  <eggert@twinsun.com>
21684
21685         * lib/xalloc.h (xalloc_oversized): New static inline function, for
21686         callers that want to do their own size-overflow checking.  Include
21687         <stdbool.h>, since xalloc_oversized returns bool.
21688         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
21689         to use xalloc_oversized.
21690
21691         Add two functions x2realloc, x2nrealloc, for programs that grow
21692         arrays dynamically by doubling their sizes.
21693         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
21694         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
21695         New functions.
21696
21697         Port to C99 semantics for 'inline' of external functions.
21698         Bug reported by Bruno Haible.
21699         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
21700         with the old contents of xnmalloc.
21701         (xnmalloc, xmalloc): Use it.
21702         (xnrealloc_inline): New static inline function,
21703         with the old contents of xnrealloc.
21704         (xnrealloc, xrealloc): Use it.
21705
21706         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
21707         that.
21708
21709 2003-10-26  Karl Berry  <karl@gnu.org>
21710
21711         * config/srclist.txt (COPYING.DOC): no longer available from
21712         /gd/gnuorg; don't know where the ultimate source is.
21713
21714 2003-10-25  Paul Eggert  <eggert@twinsun.com>
21715
21716         Fix several address-calculation bugs in the hash modules,
21717         plus some minor code cleanup.
21718
21719         * lib/hash.h: Include <stdbool.h>, for bool.
21720         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
21721         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
21722         hash_get_n_entries, hash_get_max_bucket_length,
21723         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
21724         hash_rehash): Use size_t rather than unsigned.
21725         * lib/hash.c (struct hash_table, hash_get_n_buckets,
21726         hash_get_n_buckets_used, hash_get_n_entries,
21727         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
21728         hash_get_entries, hash_do_for_each, hash_string, is_prime,
21729         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
21730         Likewise.
21731         (SIZE_MAX): Define if not defined.
21732         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
21733         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
21734         hash_print):
21735         Use const * when possible.
21736         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
21737         (check_tuning): Fix bug: if tuning parameters were very close to
21738         0 or 1, rounding errors could have caused subscript violations.
21739         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
21740         (hash_initialize): Add 'fail:' label
21741         to free table and return NULL, and use it to simplify code.
21742         Use calloc rather than clearing the storage ourself.
21743         (hash_initialize, hash_rehash): Check for arithmetic overflow in
21744         buffer size calculations.
21745         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
21746         Include <stddef.h>, for size_t.
21747         * lib/hash-pjw.c (hash_pjw): Likewise.
21748         Switch to method described by Bruno Haible.
21749         Include <limits.h>, for CHAR_BIT.
21750         (SIZE_BITS): New macro.
21751
21752 2003-10-23  Paul Eggert  <eggert@twinsun.com>
21753
21754         * m4/getline.m4 (AM_FUNC_GETLINE):
21755         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
21756         hosts.  Problem reported by Derek Robert Price in
21757         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
21758         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
21759         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
21760
21761 2003-10-21  Paul Eggert  <eggert@twinsun.com>
21762
21763         * lib/getndelim2.c (getndelim2): When size calculation overflows,
21764         ceiling the allocation at NMAX bytes rather than silently
21765         discarding input bytes before NMAX is reached.  This makes
21766         a difference only if NMAX exceeds SIZE_MAX / 2.
21767
21768         * lib/obstack.c: Merge from glibc.
21769         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
21770         Add libc_hidden_def (_obstack_newchunk).
21771         (_obstack_free) [! defined _LIBC]: Remove.
21772         [defined _LIBC]: Make a strong alias from obstack_free, rather than
21773         a clone of the function body.
21774         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
21775         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
21776
21777         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
21778         glibc.
21779         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
21780         arg to memcpy.
21781
21782         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
21783         (obstack_ptr_grow_fast, obstack_int_grow_fast):
21784         Don't use lvalue casts, as GCC plans to remove support for them
21785         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
21786         was also present in the non-GCC version, indicating that this
21787         code had always been buggy and had never been widely used.
21788         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
21789         Use the fast variant of each macro, rather than copying the
21790         definiens of the fast variant; that way, we'll be more likely to
21791         catch future bugs in the fast variants.
21792
21793 2003-10-20  Bruno Haible  <bruno@clisp.org>
21794
21795         * modules/wait-process: New file.
21796         * MODULES.html.sh (func_all_modules): Add wait-process.
21797
21798 2003-10-20  Bruno Haible  <bruno@clisp.org>
21799
21800         * m4/wait-process.m4: New file.
21801
21802 2003-10-20  Bruno Haible  <bruno@clisp.org>
21803
21804         * lib/wait-process.h: New file, from GNU gettext.
21805         * lib/wait-process.c: New file, from GNU gettext.
21806
21807 2003-10-19  Jim Meyering  <jim@meyering.net>
21808
21809         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
21810         HPUX 10.20.
21811
21812 2003-10-18  Karl Berry  <karl@gnu.org>
21813
21814         * config/config.guess: update from config.
21815
21816 2003-10-16  Paul Eggert  <eggert@twinsun.com>
21817
21818         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
21819         (getgroups): First arg is int, not size_t.
21820         Don't let 'free' mangle errno.
21821
21822 2003-10-16  Paul Eggert  <eggert@twinsun.com>
21823
21824         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
21825
21826 2003-10-16  Karl Berry  <karl@gnu.org>
21827
21828         * config/config.{guess,sub}: update from config.
21829
21830 2003-10-16  Jim Meyering  <jim@meyering.net>
21831
21832         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
21833         memcpy.
21834
21835 2003-10-15  Paul Eggert  <eggert@twinsun.com>
21836
21837         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
21838         (SIZE_MAX): Remove.
21839         (new_exclude, add_exclude_file): Initial size no longer needs to
21840         be a power of 2.
21841         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
21842         our own address arithmetic overflow checking.
21843
21844         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
21845         (fnmatch): Do not alloca more than 2000 wide characters;
21846         instead, use malloc for large buffers.
21847         Check for address arithmetic overflow, and return -1
21848         with errno set to ENOMEM in that case.
21849         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
21850         (NEW_PATTERN): Do not alloca more than 8000 bytes;
21851         instead, return -1.  Check for address arithmetic overflow.
21852
21853 2003-10-14  Paul Eggert  <eggert@twinsun.com>
21854
21855         Handle invalid suffixes and overflow independently, so that
21856         callers can treat them independently as needed.  Fix some bugs in
21857         suffix handling, e.g., "100k@" was not diagnosed as an invalid
21858         suffix for a human-readable blocksize.  The major caller-visible
21859         change is the addition of a new
21860         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
21861         that both overflow and suffix chars were found.
21862
21863         * lib/human.c (humblock): Don't check separately for invalid suffix
21864         char; that is xstrtoumax's job (now that its bug is fixed).
21865         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
21866         INTMAX_MAX]: New macros.
21867         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
21868         TYPE_MAXIMUM): New macros.
21869         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
21870         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
21871         if overflow occurs, as it's what __strtol does and it's more useful
21872         in practice.
21873         (__xstrtol): If __strtol reports some error other than ERANGE,
21874         reflect it to the caller as LONGINT_INVALID.  If it reports
21875         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
21876         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
21877         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
21878         value.
21879         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
21880         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
21881         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
21882         [defined UINTMAX_MAX]: New macros.
21883
21884 2003-10-14  Bruno Haible  <bruno@clisp.org>
21885
21886         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
21887
21888 2003-10-14  Bruno Haible  <bruno@clisp.org>
21889
21890         * m4/sig_atomic_t: New file, from GNU gettext.
21891         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
21892
21893 2003-10-14  Bruno Haible  <bruno@clisp.org>
21894
21895         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
21896         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
21897         Also use volatile where needed.
21898
21899 2003-10-12  Paul Eggert  <eggert@twinsun.com>
21900
21901         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
21902         Change maintainer from Bruno Haible to 'all'.
21903
21904 2003-10-12  Paul Eggert  <eggert@twinsun.com>
21905
21906         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
21907
21908 2003-10-12  Paul Eggert  <eggert@twinsun.com>
21909
21910         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
21911         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
21912         and define in terms of the other primitives.
21913         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
21914         (SIZE_MAX): Define if not already defined.
21915         (array_size_overflow): New function.
21916         (xalloc_die): Abort instead of exiting if 'error' returns.
21917         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
21918         (xmalloc, xrealloc): Use them.
21919         (xcalloc): Check for address arithmetic overflow.
21920         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
21921         a bit faster than strcpy.
21922
21923 2003-10-10  Simon Josefsson  <jas@extundo.com>
21924
21925         * modules/argp (Depends-on): Add restrict and strcase.
21926
21927 2003-10-10  Simon Josefsson  <jas@extundo.com>
21928
21929         * m4/argp.m4: Add AC_C_INLINE.
21930
21931 2003-10-08  Paul Eggert  <eggert@twinsun.com>
21932
21933         Merge getpass from libc, plus a few fixes.
21934
21935         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
21936         Include <stdbool.h>.
21937         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
21938         __fsetlocking to empty.
21939         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
21940         do include <bits/libc-lock.h>.
21941         Do not include <fcntl.h>; not needed.
21942         [_LIBC]: Include <wchar.h>.
21943         (NOTCANCEL_MODE): New macro.
21944         (flockfile, funlockfile) [_LIBC]: New macros.
21945         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
21946         [!_LIBC]: New macros.
21947         (call_fclose): New function.
21948         (getpass): Use it.  Save tty stream separately; this simplifies the
21949         code and makes it more reliable if stdin happens to equal stdout.
21950         Invoke __fsetlocking on tty.
21951         Handle thread cancellation if needed.
21952         Namespace cleanup (use __tcgetattr, __getline).
21953         Use bool for Booleans.
21954         [USE_IN_LIBIO]: Handle wide streams.
21955         [!_LIBC]: Unconditionally do the fseek, since we don't know what
21956         stream might go where.
21957
21958         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
21959         doesn't have to include <stdio.h> before us.
21960         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
21961         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
21962         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
21963         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
21964         if not declared, so that we can use getpass.c code from libc without
21965         rewriting it.
21966         (flockfile, ftrylockfile, funlockfile): New macros.
21967
21968 2003-10-08  Paul Eggert  <eggert@twinsun.com>
21969
21970         * modules/getpass: Depend on stdbool.
21971
21972 2003-10-08  Paul Eggert  <eggert@twinsun.com>
21973
21974         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
21975
21976 2003-10-07  Karl Berry  <karl@gnu.org>
21977
21978         * config/config.{guess,sub}: update from config.
21979
21980 2003-10-06  Jim Meyering  <jim@meyering.net>
21981             Bruno Haible  <bruno@clisp.org>
21982
21983         This lets translators provide better translations for the
21984         "Written by ..." part of --version output.
21985         * lib/version-etc.h: Include stdarg.h.
21986         (version_etc_copyright): Declare as readonly.
21987         (version_etc): Make this function variadic with a NULL-terminated list
21988         of author name strings.
21989         (version_etc_va): New declaration.
21990         * lib/version-etc.c: Include stdarg.h, stdlib.h.
21991         (version_etc_copyright): Declare as readonly.
21992         (version_etc_va): New function. Provide a different translatable string
21993         for each possible number of authors < 10. Abbreviate when there are 10
21994         authors or more.
21995         (version_etc): Make this function variadic. Call version_etc_va.
21996         Suggestion from Gary V. Vaughan.
21997
21998         * lib/long-options.h (parse_long_options): Change prototype: the
21999         authors string is moved to the end and becomes variadic.
22000         * lib/long-options.c: Include stdarg.h.
22001         (parse_long_options): Make this function variadic, too.
22002         Call version_etc_va, not version_etc.
22003
22004 2003-10-06  Bruno Haible  <bruno@clisp.org>
22005
22006         * modules/version-etc-2: Remove file.
22007         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
22008
22009 2003-10-06  Bruno Haible  <bruno@clisp.org>
22010
22011         * modules/fatal-signal: New file.
22012         * MODULES.html.sh (func_all_modules): Add fatal-signal.
22013
22014 2003-10-06  Bruno Haible  <bruno@clisp.org>
22015
22016         * m4/fatal-signal.m4: New file.
22017         * m4/signalblocking.m4: New file, from GNU gettext.
22018
22019 2003-10-06  Bruno Haible  <bruno@clisp.org>
22020
22021         * lib/version-etc-2.h: Remove file.
22022         * lib/version-etc-2.c: Remove file.
22023
22024 2003-10-06  Bruno Haible  <bruno@clisp.org>
22025
22026         * lib/fatal-signal.h: New file, from GNU gettext.
22027         * lib/fatal-signal.c: New file, from GNU gettext.
22028
22029 2003-10-05  Paul Eggert  <eggert@twinsun.com>
22030
22031         * README: Rework advice for preventing empty .o files.
22032         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
22033         not <sys/types.h>.
22034
22035 2003-10-04  Karl Berry  <karl@gnu.org>
22036
22037         * lib/argp*: update from libc.
22038
22039 2003-10-04  Karl Berry  <karl@gnu.org>
22040
22041         * config/config.{guess,sub}: update from config.
22042
22043 2003-10-02  Bruno Haible  <bruno@clisp.org>
22044
22045         * modules/lchown (Include): Add lchown.h.
22046         * modules/time_r (Include): Use "..." syntax.
22047         * modules/xgetdomainname (Include): Add xgetdomainname.h.
22048
22049 2003-10-01  Simon Josefsson  <jas@extundo.com>
22050
22051         * MODULES.html.sh (func_all_modules): Move gethostname from section
22052         'based on' to section 'lacking' POSIX:2001.
22053
22054 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
22055
22056         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
22057         to output mode on the same stream.
22058
22059 2003-09-29  Paul Eggert  <eggert@twinsun.com>
22060
22061         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
22062         Fix arg typo in previous patch.
22063
22064 2003-09-28  Jim Meyering  <jim@meyering.net>
22065
22066         * lib/error.c: Correct cpp indentation.
22067
22068 2003-09-27  Paul Eggert  <eggert@twinsun.com>
22069
22070         * modules/free: New file.
22071
22072 2003-09-27  Paul Eggert  <eggert@twinsun.com>
22073
22074         * m4/free.m4: New file.
22075
22076 2003-09-27  Paul Eggert  <eggert@twinsun.com>
22077
22078         * lib/minmax.h (MIN, MAX)
22079         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
22080         Omit the special code that used __typeof__, since we worry that
22081         it could be more trouble than it's worth.  See:
22082         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
22083         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
22084
22085         * lib/free.c: New file.
22086
22087 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
22088
22089         Trivial fixes to Makefile.am parts of module listings.
22090         * modules/strstr: Append strstr.h to lib_SOURCES.
22091         * modules/strcase: Likewise, for strcase.h.
22092
22093 2003-09-27  Karl Berry  <karl@gnu.org>
22094
22095         * config/mkinstalldirs: update from automake.
22096
22097 2003-09-26  Paul Eggert  <eggert@twinsun.com>
22098
22099         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
22100         (error_tail): Do not loop, reallocating temporary buffer, since
22101         the output cannot contain more wide characters than the input
22102         contains bytes, the size must be big enough already.  This avoids
22103         one potential size overflow calculation.  Check for size overflow
22104         when calculating temporary buffer size.  Free temporary buffer
22105         when done, if it was allocated with malloc; this plugs a memory
22106         leak.  Remove casts from void * to pointers, that are no longer
22107         needed now that we're assuming C89 or better.
22108
22109         Merge error changes from glibc.
22110
22111         * lib/error.c, error.h: Update copyright notice header to match glibc.
22112         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
22113         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
22114         Disable cancellation while printing error.
22115         * lib/error.h: Prepend __ to parameter names.
22116
22117 2003-09-26  Jim Meyering  <jim@meyering.net>
22118
22119         * lib/error.c (error_tail): Move some declarations
22120         into inner scope where the local variables are used.
22121
22122 2003-09-26  Bruno Haible  <bruno@clisp.org>
22123
22124         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
22125         stpncpy().
22126         Don't define stpncpy through config.h; it's now done through stpncpy.h.
22127
22128 2003-09-26  Bruno Haible  <bruno@clisp.org>
22129
22130         * lib/stpncpy.h (gnu_stpncpy): New declaration.
22131         (stpncpy): Define as alias for gnu_stpncpy.
22132         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
22133
22134 2003-09-25  Simon Josefsson  <jas@extundo.com>
22135
22136         * lib/xgetdomainname.h: New file.
22137         * lib/xgetdomainname.c: New file.
22138
22139 2003-09-25  Simon Josefsson  <jas@extundo.com>
22140             Bruno Haible  <bruno@clisp.org>
22141
22142         * modules/getdomainname: New file.
22143         * modules/xgetdomainname: New file.
22144         * MODULES.html.sh (func_all_modules): Add getdomainname,
22145         xgetdomainname.
22146
22147 2003-09-25  Simon Josefsson  <jas@extundo.com>
22148             Bruno Haible  <bruno@clisp.org>
22149
22150         * m4/getdomainname.m4: New file.
22151
22152 2003-09-25  Simon Josefsson  <jas@extundo.com>
22153             Bruno Haible  <bruno@clisp.org>
22154
22155         * lib/getdomainname.h: New file.
22156         * lib/getdomainname.c: New file.
22157
22158 2003-09-25  Karl Berry  <karl@gnu.org>
22159
22160         * lib/argp-fmtstream.c, argp-help.c: update from libc.
22161
22162 2003-09-25  Karl Berry  <karl@gnu.org>
22163
22164         * config/install-sh: update from automake.
22165
22166 2003-09-25  Bruno Haible  <bruno@clisp.org>
22167
22168         * modules/version-etc-2: New file, from modules/version-etc with
22169         modifications.
22170         * MODULES.html.sh (func_all_modules): Add version-etc-2.
22171
22172 2003-09-25  Bruno Haible  <bruno@clisp.org>
22173
22174         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
22175         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
22176
22177 2003-09-24  Simon Josefsson  <jas@extundo.com>
22178
22179         * modules/xgethostname: Add xgethostname.h.
22180
22181 2003-09-24  Paul Eggert  <eggert@twinsun.com>
22182
22183         * lib/linebuffer.c (freebuffer): Don't free the argument, just
22184         the buffer associated with the argument.  Bug reported by
22185         Simon Josefsson.
22186
22187 2003-09-24  Paul Eggert  <eggert@twinsun.com>
22188
22189         * README: Document assumptions that 'int' is at least 32 bits
22190         wide, that integer arithmetic is 2's complement without overflow,
22191         that there are no holes in integer values, that adding sizes of
22192         two nonoverlapping objects can't overflow, and that all-bits-zero
22193         yields scalar zero.  Fix spelling and capitalization typos.
22194
22195 2003-09-19  Karl Berry  <karl@gnu.org>
22196
22197         * lib/argp.h: update from libc.
22198
22199 2003-09-17  Paul Eggert  <eggert@twinsun.com>
22200
22201         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
22202         to avoid spurious warnings like "AC_RUN_IFELSE was called before
22203         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
22204
22205 2003-09-17  Paul Eggert  <eggert@twinsun.com>
22206
22207         * gnulib-tool: Use "test -h", not "test -L", for portability
22208         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
22209         (tags_regexp): Remove, since \| doesn't conform to POSIX.
22210         (sed_extract_prog): Issue s commands one-by-one, rather than
22211         using \| in one s command.
22212
22213 2003-09-16  Paul Eggert  <eggert@twinsun.com>
22214
22215         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
22216         input error, instead of returning NULL the next time we are called
22217         (and therefore losing track of errno).
22218
22219 2003-09-16  Bruno Haible  <bruno@clisp.org>
22220
22221         * gnulib-tool (func_create_testdir): Warn about duplicated
22222         dependencies.
22223
22224 2003-09-15  Paul Eggert  <eggert@twinsun.com>
22225
22226         * modules/argmatch, modules/fatal, modules/obstack,
22227         modules/xalloc, modules/xgethostname: Sort dependencies by
22228         importance, not alphabetically.
22229
22230 2003-09-15  Paul Eggert  <eggert@twinsun.com>
22231
22232         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
22233         fails, so that the caller gets the proper errno.
22234
22235         * lib/readutmp.c (read_utmp): Likewise.
22236         Check for fstat error.  Close stream and free storage
22237         when failing.
22238
22239 2003-09-14  Karl Berry  <karl@gnu.org>
22240
22241         * config/srclist.txt (strdup.c): disable for c89 changes.
22242
22243 2003-09-14  Jim Meyering  <jim@meyering.net>
22244
22245         * lib/getloadavg.c: Correct cpp indentation.
22246         * lib/strdup.c: Likewise.
22247         * lib/vasnprintf.c: Likewise.
22248
22249 2003-09-14  Bruno Haible  <bruno@clisp.org>
22250
22251         * modules/fwriteerror: New file.
22252         * MODULES.html.sh (func_all_modules): Add fwriteerror.
22253
22254 2003-09-14  Bruno Haible  <bruno@clisp.org>
22255
22256         * lib/fwriteerror.h: New file.
22257         * lib/fwriteerror.c: New file.
22258
22259 2003-09-12  Paul Eggert  <eggert@twinsun.com>
22260
22261         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
22262         modules/xgethostname, modules/xalloc: Depend on exit.
22263
22264 2003-09-12  Paul Eggert  <eggert@twinsun.com>
22265
22266         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
22267
22268         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
22269         and AC_MINIX, too, so that their extensions are available.
22270
22271         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
22272         This macro has been superseded by gl_BACKUPFILE.
22273
22274         More patches to assume C89 or better.
22275
22276         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
22277
22278         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
22279         unconditionally.
22280         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
22281         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
22282         Include <string.h>, <stdlib.h> unconditionally.
22283         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
22284         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
22285         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
22286         headers or for string.h.
22287         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
22288         or strtoul.
22289
22290         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
22291         headers.
22292         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
22293         * m4/userspec.m4 (gl_USERSPEC): Likewise.
22294         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
22295         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
22296         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
22297         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
22298         memcpy, memset.
22299         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
22300         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
22301         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
22302         strtol.
22303         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
22304         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
22305         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
22306         strtoul.
22307
22308 2003-09-12  Paul Eggert  <eggert@twinsun.com>
22309
22310         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
22311         * lib/obstack.c [!defined _LIBC]: Likewise.
22312         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
22313         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
22314         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
22315
22316         More changes to assume C89 or better.
22317
22318         * lib/error.c (error_tail): Assume vprintf.
22319
22320         * lib/argmatch.c (getenv): Remove decl.
22321         * lib/progreloc.c (get_full_program_name): Define via prototype.
22322         * lib/setenv.c (clearenv): Likewise.
22323         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
22324         needed.
22325         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
22326         (malloc, memcpy): Remove decls.
22327         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
22328         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
22329         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
22330         (memcpy): Remove macro.
22331         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
22332         (__P): Remove.  All uses removed.
22333         (PTR): Remove.  All uses changed to void *.
22334         (CHAR_BIT, NULL): Remove.
22335         (spaces, zeros, memset_space, memset_zero)
22336         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
22337         Remove.
22338         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
22339         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
22340         Define with prototype.
22341         Remove now-unnecessary prototype decl.
22342         (extra_args_spec): Assume ANSI C.  All uses changed.
22343         (extra_args_spec_iso): Remove.
22344         (my_strftime, emacs_strftimeu): Define via prototype.
22345         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
22346         unconditionally.
22347         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
22348         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
22349         (strtoul, strtol): Remove decls.
22350         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
22351         LONG_MAX): Remove.
22352         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
22353         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
22354         (LOCALE_PARAM_PROTO): New macro.
22355         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
22356         (INTERNAL (strtol), strtol): Define with a prototype.
22357         (PARAMS): Remove.  All uses removed.
22358         * lib/tempname.c: Include <string.h> unconditionally.
22359         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
22360         * lib/xgethostname.c (main): Define with a prototype.
22361         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
22362         Include <stdlib.h> unconditionally.
22363         (calloc, malloc, realloc, free): Remove decls.
22364         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
22365         Include <stdlib.h> unconditionally.  Sort include file names.
22366         (strtod): Remove.
22367         (xstrtod): Define with a prototype.
22368         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
22369         (strtol, strtoul): Remove decls.
22370
22371 2003-09-11  Paul Eggert  <eggert@twinsun.com>
22372
22373         More patches to assume C89 or better.
22374         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
22375         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
22376         string.h, memchr, STDC_HEADERS.
22377
22378 2003-09-11  Paul Eggert  <eggert@twinsun.com>
22379
22380         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
22381         Include <stdlib.h>, <string.h> unconditionally.
22382         Remove now-unnecessary cast to char *.
22383         * lib/strnlen.c: Include <string.h> unconditionally.
22384         * lib/yesno.c (yesno): Define with a prototype.
22385
22386 2003-09-11  Bruno Haible  <bruno@clisp.org>
22387
22388         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
22389
22390 2003-09-10  Jim Meyering  <jim@meyering.net>
22391
22392         * lib/error.c: Correct indentation of cpp directives.
22393
22394 2003-09-10  Bruno Haible  <bruno@clisp.org>
22395
22396         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
22397         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
22398         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
22399         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
22400         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
22401         <stdlib.h> and <string.h> checks.
22402         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
22403         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
22404
22405 2003-09-10  Bruno Haible  <bruno@clisp.org>
22406
22407         * lib/strcspn.c: Include <string.h> unconditionally.
22408         * lib/strpbrk.c: Include <string.h> unconditionally.
22409         * lib/strstr.c: Include <string.h> unconditionally.
22410         * lib/unicodeio.c: Include <string.h> unconditionally.
22411         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
22412         * lib/unsetenv.c: Likewise.
22413         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
22414         * lib/yesno.c: Include <stdlib.h> unconditionally.
22415         (rpmatch): Add prototype.
22416
22417 2003-09-09  Paul Eggert  <eggert@twinsun.com>
22418
22419         More patches to assume C89 or better.
22420         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
22421         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
22422         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
22423         or for string.h.
22424         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
22425         stdlib.h.
22426         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
22427         C headers.
22428         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
22429         string.h.
22430         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
22431         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
22432         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
22433         or for string.h.
22434         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
22435         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
22436         C headers.
22437         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
22438         memcpy.
22439         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
22440         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
22441         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
22442         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
22443         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
22444         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
22445         string.h, free.
22446         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
22447         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
22448         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
22449         C headers, or for string.h.
22450         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
22451         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
22452         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
22453         headers, memory.h, stdlib.h, string.h, strings.h.
22454         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
22455         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
22456         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
22457         strchr.
22458         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
22459         headers, memory.h, string.h.
22460         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
22461         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
22462         free.
22463         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
22464         headers.
22465         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
22466         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
22467         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
22468         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
22469         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
22470
22471 2003-09-09  Paul Eggert  <eggert@twinsun.com>
22472
22473         More K&R removal.
22474
22475         * lib/acosl.c (main): Use a prototype.
22476         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
22477         tanl.c: Likewise.
22478
22479         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
22480
22481         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
22482         (getopt, etopt_long, getopt_long_only, _getopt_internal)
22483         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
22484         with a prototype.
22485         * lib/getopt.c (const): Remove macro.
22486         Include <string.h> unconditionally.
22487         (my_index): Remove; all uses changed to strchr.
22488         (strlen): Remove decl.
22489         (exchange): Remove forward decl; no longer needed.
22490         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
22491         Define with prototype.
22492         * lib/getopt1.c (const): Remove macro.
22493         (getopt_long, getopt_long_only, main): Define with prototype.
22494
22495         * lib/getugroups.c: Include <string.h> unconditionally.
22496
22497         * lib/getusershell.c: Include <stdlib.h> unconditionally.
22498         (getusershell, setusershell, endusershell, readname, main):
22499         Define with prototypes.
22500
22501         * lib/group-member.c: Include group-member.h first.
22502         Include <stdlib.h> unconditionally.
22503
22504         * lib/hard-locale.c: Include hard-locale.h first.
22505         Include <stdlib.h>, <string.h> unconditionally.
22506
22507         * lib/hash.c (free, malloc): Remove decls.
22508         Include <stdlib.h> unconditionally.
22509
22510         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
22511         (getenv): Do not declare.
22512
22513         * lib/idcache.c: Include <string.h> unconditionally.
22514
22515         * lib/long-options.c: Include long-options.h first, to test interface.
22516         Include <stdlib.h> unconditionally.
22517
22518         * lib/makepath.c: Include makepath.h first, to test interface.
22519         Include <stdlib.h> and <string.h> unconditionally.
22520
22521         * lib/linebuffer.c: Include <stdlib.h>.
22522         (free): Remove decl.
22523
22524         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
22525         stddef.h. rpl_malloc returns void *, not char *.
22526         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
22527         prototype.
22528
22529         * lib/md5.h: Include <limits.h> unconditionally.
22530         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
22531         (__P): Remove; all uses removed.
22532         * lib/md5.c: Include "md5.h" first.
22533         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
22534         md5_buffer, md5_process_bytes, md5_process_block):
22535         Define with prototypes.
22536         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
22537         * lib/sha.c: Include "sha.h" first.
22538         Include <stdlib.h>, <string.h> unconditionally.
22539
22540         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
22541         * lib/memcmp.c (__ptr_t): Likewise.
22542         * lib/memrchr.c (__ptr_t): Likewise.
22543         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
22544         Include <string.h> unconditionally.
22545         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
22546         * lib/memchr.c: Include <stdlib.h> unconditionally.
22547         * lib/memchr.c (LONG_MAX): Remove.
22548         * lib/memrchr.c (LONG_MAX): Likewise.
22549         * lib/memchr.c (__memchr): Define via a prototype.
22550         * lib/memrchr.c (__memrchr): Likewise.
22551         * lib/memcmp.c (__P): Remove, and remove all uses.
22552         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
22553         Remove forward decls; no longer needed.
22554         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
22555         Use types required by C89 in prototype.
22556
22557         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
22558         * lib/savedir.c: Likewise.
22559         * lib/mkdir.c (free): Remove decl.
22560         * lib/rmdir.c (rmdir): Define with a prototype.
22561         * lib/savedir.c: Include savedir.h first, to test interface.
22562
22563         * lib/mktime.c (STDC_HEADERS): Remove.
22564         Include <stdlib.h>, <string.h> unconditionally.
22565
22566         * lib/modechange.c: Include <stdlib.h> unconditionally.
22567         (malloc): Remove decl.
22568
22569         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
22570         (free): Remove decl.
22571
22572         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
22573         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
22574         (This type really should be intptr_t, but that's a C99ism.)
22575         (_obstack_memcpy): Remove: all uses changed to memcpy.
22576         Include <string.h> unconditionally.
22577         (struct obstack): Assume __STDC__ for types of members
22578         chunkfun, freefun, extra_arg.
22579         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
22580         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
22581         obstack_begin, obstack_specify_allocation,
22582         obstack_specify_allocation_with_arg, obstack_chunkfun,
22583         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
22584         Remove unprototyped decls and the macros that use them.
22585         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
22586         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
22587         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
22588         (defined __STDC__ && __STDC__)]:
22589         Remove nonprototyped code.
22590         Include <stdlib.h> unconditionally.
22591         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
22592         _obstack_allocated_p, _obstack_free, obstack_free,
22593         _obstack_memory_used, print_and_abort):
22594         Define using prototypes.
22595         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
22596         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
22597         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
22598         obstack_next_free, obstack_object_size, obstack_room) [0]:
22599         Remove unused, unprototyped code.
22600
22601         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
22602
22603         * lib/physmem.c (physmem_total, physmem_available, main): Define
22604         with prototypes.
22605
22606         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
22607         (main): Define with a prototype.
22608
22609         * lib/posixver.c (getenv): Remove decl.
22610
22611         * lib/putenv.c (malloc): Returns void *, not char *.
22612         Include <string.h> unconditionally.
22613         (strchr, memcpy, NULL): Do not define.
22614
22615         * lib/readtokens.c: Include readtokens.h first, to test interface.
22616         Include <stdlib.h>, <string.h> unconditionally.
22617         (init_tokenbuffer): Define with a prototype.
22618
22619         * lib/regex.c (PARAMS): Remove.  All uses removed.
22620         All uses of _RE_ARGS removed, too.
22621         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
22622         unconditionally.
22623         (bzero): Assume memset exists.
22624         (memcmp, memcpy, NULL): Remove.
22625         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
22626         char, or assignments to local vars of type signed char.
22627         (init_syntax_once, PREFIX(extract_number_and_incr),
22628         PREFIX(print_partial_compiled_pattern),
22629         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
22630         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
22631         PREFIX(regex_grow_registers), PREFIX(regex_compile),
22632         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
22633         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
22634         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
22635         wcs_compile_range, byte_compile_range, truncate_wchar,
22636         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
22637         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
22638         count_mbs_length, wcs_re_match_2_internal,
22639         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
22640         PREFIX(alt_match_null_string_p),
22641         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
22642         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
22643         regfree, PREFIX(extract_number)): Define with prototype.  Remove
22644         now-unnecessary declaration, if any.
22645         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
22646         regcomp, regexec):
22647         Remove now-unnecessary casts among pointer types.
22648         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
22649
22650         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
22651         (free): Remove decl.
22652
22653         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
22654
22655         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
22656         (free): Remove decl.
22657
22658         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
22659         * lib/xgetcwd.c: Likewise.
22660
22661         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
22662         (free): Remove decl.
22663
22664         * lib/strchrnul.c (strchrnul): Define with a prototype.
22665         Fix bug: c_in was not converted to char before searching.
22666
22667         The following changes are not K&R related:
22668
22669         * lib/group-member.h: Include <sys/types.h>, so that this file is
22670         self-contained.
22671         * lib/makepath.h: Likewise.
22672
22673         * lib/getusershell.c (readname, default_index, line_size, readname):
22674         Use size_t, not int, for sizes.
22675         (readname): If the size overflows, report an error instead of
22676         looping forever.
22677
22678 2003-09-09  Paul Eggert  <eggert@twinsun.com>
22679
22680         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
22681         libc.
22682
22683 2003-09-09  Paul Eggert  <eggert@twinsun.com>
22684
22685         * README: New section: portability guidelines.
22686
22687 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
22688
22689         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
22690         C89 spec.
22691
22692 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
22693
22694         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
22695
22696 2003-09-08  Paul Eggert  <eggert@twinsun.com>
22697
22698         Assume C89 or better; remove K&R cruft.
22699         A few of these changes were first proposed by Derek Robert Price
22700         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
22701
22702         * lib/addext.c: Include <string.h> unconditionally.
22703         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
22704         Don't declare getenv or malloc.
22705
22706         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
22707         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
22708         (NULL): Remove.
22709         (find_stack_direction, alloca): Use prototypes.
22710
22711         * lib/atexit.c (atexit): Define using a prototype.
22712
22713         * lib/basename.c, dirname.c, stripslash.c:
22714         Include <string.h> unconditionally.
22715
22716         * lib/bcopy.c: Include <stddef.h>.
22717         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
22718
22719         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
22720
22721         * lib/error.h (error, error_at_line, error_print_progname)
22722         [! (defined (__STDC__) && __STDC__)]: Remove decls.
22723         * lib/error.c: Include error.h first, to check interface.
22724         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
22725         (VA_START): Remove; all uses changeed to va_start.
22726         (exit, strerror): Remove decls.
22727         (error_print_progname): Prototype uncondionally.
22728         Don't include <errno.h>; no longer needed.
22729         (private_strerror): Remove.
22730         (error_tail): Always define.
22731         (error, error_at_line): Assume C89 or better; always use prototypes.
22732         * lib/fatal.c: Include "fatal.h" first, to test interface.
22733         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
22734         (VA_START): Remove; all uses changed to va_start.
22735         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
22736         this case.
22737         (exit): Remove decl.
22738         (fatal): Prototype unconditionally.  Assume va_start works.
22739         Abort at end, to pacify gcc.
22740
22741         * lib/euidaccess.c (main): Define with a prototype.
22742
22743         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
22744
22745         * lib/exitfail.c: Include <stdlib.h> unconditionally.
22746
22747         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
22748         prototypes.
22749         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
22750         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
22751         (getenv): Remove decl.
22752         (fnmatch): Define using a prototype.
22753         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
22754         (FCT): Define using a prototype.
22755
22756         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
22757
22758         * lib/gethostname.c: Include <stddef.h>.
22759         (gethostname): Define with prototype.  Length is size_t, not int.
22760
22761 2003-09-08  Paul Eggert  <eggert@twinsun.com>
22762
22763         Assume C89 or better; remove K&R cruft.
22764         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
22765         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
22766         string.h, getenv, malloc.
22767         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
22768         headers.
22769         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
22770         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
22771         do not check for strerror.
22772         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
22773         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
22774         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
22775         do not check for doprnt or vprintf.
22776         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
22777         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
22778
22779 2003-09-08  Paul Eggert  <eggert@twinsun.com>
22780
22781         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
22782         getversion.c should have been removed then, but was accidentally
22783         preserved.
22784
22785         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
22786         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
22787
22788 2003-09-08  Karl Berry  <karl@gnu.org>
22789
22790         * config/config.sub, config.guess, srclistvars.sh: update from savannah
22791                 config, forget about prep.
22792
22793         * config/depcomp, missing: update from automake.
22794
22795 2003-09-07  Paul Eggert  <eggert@twinsun.com>
22796
22797         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
22798         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
22799
22800 2003-09-07  Paul Eggert  <eggert@twinsun.com>
22801
22802         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
22803         copy_tm_result.  Bug reported by Simon Josefsson in
22804         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
22805
22806 2003-09-06  Paul Eggert  <eggert@twinsun.com>
22807
22808         * m4/time_r.m4: New file.
22809         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
22810         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
22811         is. Check for timegm declaration.
22812         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
22813         Do not check for gmtime_r.
22814         Replace mktime if __mktime_internal does not exist and if mktime
22815         hasn't been replaced already.
22816
22817 2003-09-06  Paul Eggert  <eggert@twinsun.com>
22818
22819         * lib/time_r.c, lib/time_r.h: New files.
22820
22821         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
22822         __localtime_r.
22823         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
22824         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
22825
22826         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
22827         __gmtime_r.
22828         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
22829         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
22830         Include <time_r.h>.
22831
22832         * lib/timegm.c: Switch to glibc implementation, with the following
22833         changes:
22834         [defined HAVE_CONFIG_H]: Include <config.h>.
22835         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
22836         (__mktime_internal) [!defined _LIBC]: New decl.
22837         (__gmtime_r) [!defined _LIBC]: New macro and function.
22838         (timegm): Use a prototype, since gnulib assumes C89.
22839         Do not bother declaring tmp to be const, as it's not really usefu.
22840         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
22841         (timegm): Declare only if HAVE_DECL_TIMEGM.
22842
22843 2003-09-06  Paul Eggert  <eggert@twinsun.com>
22844
22845         * MODULES.html.sh (func_all_modules): Add time_r.
22846         * modules/time_r: New file.
22847         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
22848         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
22849
22850 2003-09-03  Paul Eggert  <eggert@twinsun.com>
22851
22852         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
22853         Bug reported by Lute Kamstra in
22854         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
22855
22856         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
22857         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
22858         course with correspondingly smaller numbers for tomorrow and
22859         yesterday.  From Tadayoshi Funaba.  Originally installed into
22860         sh-utils on 1999-08-07, but the patch got lost (I guess during the
22861         coreutils merge?).
22862
22863 2003-08-31  Simon Josefsson  <jas@extundo.com>
22864
22865         * modules/timegm: New file.
22866         * MODULES.html.sh (func_all_modules): Add timegm.
22867
22868 2003-08-31  Simon Josefsson  <jas@extundo.com>
22869
22870         * m4/timegm.m4: New file.
22871
22872 2003-08-31  Simon Josefsson  <jas@extundo.com>
22873
22874         * lib/timegm.h: New file.
22875         * lib/timegm.c: New file.  Based on
22876         wget-1.8.2/src/http.c:mktime_from_utc.
22877
22878 2003-08-31  Karl Berry  <karl@gnu.org>
22879
22880         * lib/argp.h: update from libc.
22881
22882 2003-08-28  Bruno Haible  <bruno@clisp.org>
22883
22884         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
22885         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
22886         followed by '#define fnmatch fnmatch_posix' gives an error.
22887
22888 2003-08-28  Bruno Haible  <bruno@clisp.org>
22889
22890         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
22891         warning on QNX, which defines O_BINARY to 000000.
22892
22893 2003-08-27  Jim Meyering  <jim@meyering.net>
22894
22895         * m4/mkstemp.m4: Require that the system mkstemp be able to create
22896         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
22897         would fail after 32.  Reported by Danny Levinson.  Details here:
22898         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
22899
22900 2003-08-24  Bruno Haible  <bruno@clisp.org>
22901
22902         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
22903         MSVC7 <stdio.h> is included later.
22904
22905 2003-08-22  Simon Josefsson  <jas@extundo.com>
22906
22907         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
22908
22909 2003-08-20  Karl Berry  <karl@gnu.org>
22910
22911         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
22912
22913 2003-08-20  Bruno Haible  <bruno@clisp.org>
22914
22915         * modules/progname: New file.
22916         * MODULES.html.sh (func_all_modules): Add progname.
22917
22918 2003-08-20  Bruno Haible  <bruno@clisp.org>
22919
22920         * lib/progname.h: New file, from GNU gettext.
22921         * lib/progname.c: New file, from GNU gettext.
22922         * lib/progreloc.c: New file, from GNU gettext.
22923
22924 2003-08-19  Jim Meyering  <jim@meyering.net>
22925
22926         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
22927         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
22928
22929 2003-08-19  Bruno Haible  <bruno@clisp.org>
22930
22931         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
22932         more.
22933
22934 2003-08-19  Bruno Haible  <bruno@clisp.org>
22935
22936         * lib/xstrdup.c: Assume <string.h> exists.
22937
22938 2003-08-18  Paul Eggert  <eggert@twinsun.com>
22939
22940         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
22941         in makefile rules.
22942
22943 2003-08-18  Jim Meyering  <jim@meyering.net>
22944
22945         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
22946         * m4/lib-ld.m4: Likewise.
22947
22948 2003-08-18  Jim Meyering  <jim@meyering.net>
22949
22950         * lib/setenv.h: Indent nested cpp directive.
22951         * lib/vasnprintf.c: Remove trailing blanks.
22952
22953 2003-08-17  Simon Josefsson  <jas@extundo.com>
22954
22955         * modules/xstrndup: New file.
22956         * MODULES.html.sh (func_all_modules): Add xstrndup.
22957
22958 2003-08-17  Simon Josefsson  <jas@extundo.com>
22959
22960         * modules/argp: Fix autoconf macro name. Add more dependencies.
22961
22962 2003-08-17  Simon Josefsson  <jas@extundo.com>
22963
22964         * m4/xstrndup.m4: New file.
22965
22966 2003-08-17  Simon Josefsson  <jas@extundo.com>
22967
22968         * m4/argp.m4: New file.
22969
22970 2003-08-17  Simon Josefsson  <jas@extundo.com>
22971             Bruno Haible  <bruno@clisp.org>
22972
22973         * lib/xstrndup.h: New file.
22974         * lib/xstrndup.c: New file.
22975
22976 2003-08-17  Bruno Haible  <bruno@clisp.org>
22977
22978         * modules/strndup (Files, Include): Add lib/strndup.h.
22979
22980 2003-08-17  Bruno Haible  <bruno@clisp.org>
22981
22982         * modules/euidaccess (Files): Add lib/euidaccess.h.
22983
22984 2003-08-17  Bruno Haible  <bruno@clisp.org>
22985
22986         * lib/strndup.h: New file.
22987
22988 2003-08-17  Bruno Haible  <bruno@clisp.org>
22989
22990         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
22991         like AC_GNU_SOURCE.
22992         * modules/extensions (configure.ac): Comment out the invocation of
22993         gl_USE_SYSTEM_EXTENSIONS.
22994
22995 2003-08-16  Paul Eggert  <eggert@twinsun.com>
22996
22997         Merges from coreutils, etc.
22998         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
22999         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
23000         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
23001         fixing a typo.
23002         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
23003         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
23004
23005 2003-08-16  Paul Eggert  <eggert@twinsun.com>
23006
23007         Document merge from coreutils.
23008         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
23009         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
23010         * modules/utime: Add m4/utimes-null.m4.
23011
23012 2003-08-16  Paul Eggert  <eggert@twinsun.com>
23013
23014         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
23015         space, undoing this 2003-08-12 change:
23016         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
23017
23018 2003-08-16  Paul Eggert  <eggert@twinsun.com>
23019
23020         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
23021         strtoul.c from libc, undoing this 2003-08-12 change:
23022         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
23023
23024 2003-08-16  Jim Meyering  <jim@meyering.net>
23025
23026         Merges from coreutils.
23027         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
23028         prefix.  Adjust cache variables similarly.  Create 500 rather than
23029         just 300 files, to exercise bug on Darwin6.5, too.
23030         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
23031         $missing_dir.
23032         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
23033         AM_SYS_POSIX_TERMIOS.
23034         Reported by mkc@mathdogs.com.
23035         Also change use of $am_cv_sys_posix_termios
23036         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
23037         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
23038         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
23039         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
23040         in /proc/mounts until it finds one with matching device number.  This
23041         is unnecessary when the FILE argument *is* a mount point.  No stat call
23042         is necessary in that case.  So, disable the statvfs-testing code on
23043         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
23044         as RedHat bug# 84846.
23045         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
23046         to 1MB, so as not to render systems with no stack size limit (e.g.,
23047         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
23048         Include <unistd.h>.  On some systems,
23049         it is required for the definition of _SC_PAGESIZE.
23050
23051 2003-08-16  Jim Meyering  <jim@meyering.net>
23052
23053         Merge from coreutils.
23054         * lib/xstrtoimax.c: #else #if -> #elif.
23055         * lib/xstrtoumax.c: Likewise.
23056
23057 2003-08-16  Jim Meyering  <jim@meyering.net>
23058
23059         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
23060         * m4/utimes.m4: Removed.
23061         * m4/utimes-null.m4: Renamed from utimes.m4.
23062
23063         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
23064         to 1MB, so as not to render systems with no stack size limit (e.g.,
23065         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
23066         Include <unistd.h>.  On some systems,
23067         it is required for the definition of _SC_PAGESIZE.
23068
23069 2003-08-16  Jim Meyering  <jim@meyering.net>
23070         and Paul Eggert  <eggert@cs.ucla.edu>
23071
23072         Merges from coreutils, etc.
23073
23074         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
23075         using the latest version from cvs.  This avoids problems with #line
23076         directives using a vendor (Sun) compiler.
23077         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
23078         Don't set GETGROUPS_LIB here; now it's
23079         done via getgroups.m4's wrapper function.
23080         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
23081         rather than just in sh-util/configure.in, so that the
23082         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
23083         same.
23084         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
23085         AC_FUNC_GETLOADAVG where to find getloadavg.c.
23086         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
23087         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
23088         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
23089         Remove code that is now done by the newly-required macros.
23090         Append $(EXEEXT) to DF_PROG.
23091         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
23092         Do not invoke or require the following here,
23093         since prereq.m4 or some gnulib .m4 now does this for us:
23094         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
23095         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
23096         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
23097         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
23098         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
23099         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
23100         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
23101         AC_FUNC_OBSTACK.
23102         Do not replace the following functions, as this is now the job
23103         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
23104         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
23105         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
23106         atexit getpass, strdup, getpagesize.
23107         Replace 'raise'.
23108         Do not check for the following functions, as this is now the job
23109         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
23110         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
23111         setregid.
23112         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
23113         Check for sys/sysctl.h.
23114         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
23115         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
23116         of checking for ssize_t ourselves.
23117
23118         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
23119         Require every macro that gnulib/modules/* suggests for us.
23120         (jm_PREREQ_ADDEXT): New macro.
23121         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
23122         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
23123
23124         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
23125         (gl_PHYSMEM): Use it.
23126         Also check for `table' function.
23127         Check for new headers and functions.
23128         Add check for sys/sysmp.h.
23129         With suggestions from Kaveh Ghazi.
23130         Ignore headers that are present but cannot be compiled.  This
23131         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
23132         C 5.4.
23133
23134 2003-08-15  Paul Eggert  <eggert@twinsun.com>
23135
23136         Document merge from coreutils.
23137         * modules/userspec: Depend on posixver.
23138         * modules/strftime: Depend on tzset.
23139
23140 2003-08-15  Paul Eggert  <eggert@twinsun.com>
23141
23142         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
23143         rather than tab, after '#' in shell-script copyright notices.
23144         Suggested by Bruno Haible.
23145
23146 2003-08-15  Paul Eggert  <eggert@twinsun.com>
23147
23148         * config/srclist-update: Use three spaces, rather than tab, after '#'
23149         in shell-script copyright notices.  Suggested by Bruno Haible.
23150         Remove unnecessary parenthesization in regular expression.
23151
23152 2003-08-15  Jim Meyering  <jim@meyering.net>
23153
23154         Merge from coreutils.
23155         * lib/xgethostname.c: Include <stdlib.h>.
23156         (xghostname): Don't exit for anything other than memory-related
23157         failure; just return NULL.
23158         * lib/userspec.c: Include "posixver.h".
23159         (parse_user_spec): Accept `.' as a separator only
23160         in pre-POSIX-200112 mode.
23161         * lib/strtoimax.c: Use #elif rather than #else #if.
23162         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
23163         Remove function, now that we can rely on a working tzset function.
23164         [!_LIBC]: Ensure that the required autoconf test has been run.
23165         [!defined _NL_CURRENT && HAVE_STRFTIME]:
23166         Use underlying_strftime for %r.
23167         * lib/sha.c: Merge in some clean-up and optimization changes from
23168         glibc.
23169         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
23170         Ensure that it is a multiple of 64.
23171         Rearrange loop exit tests so as to avoid performing an
23172         additional fread after encountering an error or EOF.
23173         * lib/realloc.c: Update copyright date.
23174
23175 2003-08-15  Jim Meyering  <jim@meyering.net>
23176         and Paul Eggert  <eggert@twinsun.com>
23177
23178         Merge from coreutils.
23179         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
23180         member but strut utmpx does not.  Needed for AIX 4.3.3.
23181         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
23182
23183 2003-08-15  Jim Meyering  <jim@meyering.net>
23184         and Paul Eggert  <eggert@cs.ucla.edu>
23185
23186         Merges from coreutils, etc.
23187         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
23188         Require gl_FUNC_TZSET_CLOBBER.
23189         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
23190         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
23191         members.
23192
23193 2003-08-14  Paul Eggert  <eggert@twinsun.com>
23194
23195         Help the merge from coreutils.
23196         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
23197         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
23198         * m4/tzset.m4: Use it too.
23199
23200 2003-08-14  Paul Eggert  <eggert@twinsun.com>
23201
23202         * modules/tzset: New file.
23203
23204 2003-08-14  Jim Meyering  <jim@meyering.net>
23205
23206         Merges from coreutils.
23207         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
23208         variable names, rather than @FNMATCH_H@.
23209         * modules/alloca: Likewise for $(ALLOCA_H).
23210
23211         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
23212         the three copies of the literal target, `fnmatch.h'.
23213         * modules/alloca (alloca.h): Likewise.
23214
23215 2003-08-14  Jim Meyering  <jim@meyering.net>
23216
23217         Merge from coreutils.
23218         * m4/tzset.m4: New file.
23219         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
23220         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
23221         otherwise, AIX 5.1 systems would end up using the latter.
23222         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
23223         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
23224         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
23225         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
23226
23227 2003-08-14  Jim Meyering  <jim@meyering.net>
23228
23229         Merge from coreutils.
23230         * lib/obstack.h: Whitespace changes.
23231         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
23232         and xcalloc return values.
23233         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
23234         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
23235         hang on OSF/1 5.1 for DIR on both local and remote file systems.
23236         Reported by (and fix confirmed by) Nelson H. F. Beebe.
23237         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
23238         error from mntctl.
23239         Use mntctl's return value to drive the entry-processing loop, since
23240         we can't rely on the value of the vmt_length member in the last
23241         entry.  On some systems doing so could result in exhausting
23242         virtual memory.  Based in part on a patch from Mike Jetzer.
23243
23244 2003-08-14  Jim Meyering  <jim@meyering.net>
23245         and Paul Eggert  <eggert@twinsun.com>
23246
23247         Merges from coreutils, plus other fixes.
23248         * lib/physmem.c: Merge in portability changes from gcc/libiberty
23249         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
23250         for credits and details.  Thanks to Kaveh Ghazi for helping
23251         to keep these files in sync.
23252         (ARRAY_SIZE): Define it.
23253         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
23254         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
23255         (memcasecmp): Don't assume size_t fits in unsigned int.
23256         Remove casts and duplicate code.
23257         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
23258         (memcpy): Remove definition.
23259         Merge in some clean-up and optimization changes from glibc.
23260         [BLOCKSIZE]: Move definition to top of file.
23261         Ensure that it is a multiple of 64.
23262         Rearrange loop exit tests so as to avoid performing an
23263         additional fread after encountering an error or EOF.
23264         * lib/md5.h (md5_uintptr): Define.
23265         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
23266         return to the initial working directory.  Preserve errno
23267         for caller.
23268         * lib/idcache.c: Include "xalloc.h".
23269         (xmalloc, xrealloc): Remove decls.
23270         (getuser): Remove casts no longer required in C89.
23271         * lib/human.c: Include stdio.h, for sprintf.
23272         * lib/group-member.c: Include "xalloc.h".
23273         (xmalloc, xrealloc): Remove decls.
23274         (get_group_info): Remove casts no longer required in C89.
23275         * lib/getusershell.c (readname): Remove casts no longer required in
23276         C89.
23277         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
23278         * lib/getline.c: Whitespace fix, from coreutils.
23279
23280 2003-08-13  Paul Eggert  <eggert@twinsun.com>
23281
23282         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
23283         Check for isascii.
23284
23285         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
23286         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
23287         Undo previous (whitespace-only) change.
23288
23289 2003-08-13  Paul Eggert  <eggert@twinsun.com>
23290
23291         * lib/exclude.c: Include <ctype.h>
23292         (IN_CTYPE_DOMAIN): New macro.
23293         (is_space): New fn.
23294         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
23295         and empty lines.
23296
23297         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
23298         Undo previous (whitespace-only) change.
23299
23300 2003-08-13  Paul Eggert  <eggert@twinsun.com>
23301
23302         * config/srclist-update: Change update back to the old behavior,
23303         leaving whitespace alone.  Use one 'sed' command rather than a
23304         pipeline.
23305         (fixlicense): Now a variable, not a function.
23306         (remove_trailing_blanks): Remove.
23307         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
23308         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
23309         Undo previous (whitespace-only) change.
23310
23311 2003-08-12  Paul Eggert  <eggert@twinsun.com>
23312
23313         Merge from coreutils.
23314         * modules/euidaccess: Add lib_SOURCES, include for new
23315         file euidaccess.h
23316
23317 2003-08-12  Paul Eggert  <eggert@twinsun.com>
23318
23319         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
23320         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
23321         Normalize leading white space and remove trailing white space.
23322
23323         Merge from coreutils
23324         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
23325
23326         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
23327         0.12.1.  These files are now being upgraded automatically by
23328         ../config/srclist-update.
23329
23330 2003-08-12  Paul Eggert  <eggert@twinsun.com>
23331
23332         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
23333         Normalize leading white space and remove trailing white space.
23334         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
23335         notice, as per ../config/srclist-update.
23336
23337         Merge from coreutils.
23338         * lib/euidaccess.h: New file.
23339         * lib/euidaccess.c: Include it.
23340         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
23341         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
23342         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
23343
23344 2003-08-12  Paul Eggert  <eggert@twinsun.com>
23345
23346         * config/srclist-update: Add copyright notice.
23347         (remove_id_lines, remove_trailing_blanks): New constants.
23348         (fixfile): Use them to normalize spacing a bit in copied files.
23349         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
23350         Normalize leading white space and remove trailing white space.
23351
23352         * config/texinfo.tex: Sync with texinfo.
23353
23354         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
23355         strtoul.c from libc, to merge coreutils whitespace changes.
23356
23357         * config/srclist.txt: Get the following m4 files from gettext:
23358         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
23359         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
23360         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
23361         wint_t.m4.
23362
23363 2003-08-12  Karl Berry  <karl@gnu.org>
23364
23365         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
23366         been made.
23367
23368 2003-08-11  Paul Eggert  <eggert@twinsun.com>
23369
23370         * modules/gnu-source, m4/gnu-source.m4:
23371         Remove; we're assuming Autoconf 2.54 or later now.
23372         Suggested by Bruno Haible.
23373         * MODULES.html.sh (func_all_modules): Remove gnu-source.
23374
23375 2003-08-11  Bruno Haible  <bruno@clisp.org>
23376
23377         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
23378
23379 2003-08-11  Bruno Haible  <bruno@clisp.org>
23380
23381         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
23382         (vasnprintf): Use it instead of wcslen.
23383
23384 2003-08-11  Bruno Haible  <bruno@clisp.org>
23385
23386         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
23387         value to ensure that _Bool promotes to int. Use #define for _Bool when
23388         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
23389
23390 2003-08-10  Karl Berry  <karl@gnu.org>
23391
23392         * lib/regex.h: update from libc (whitespace fix).
23393
23394 2003-08-09  Paul Eggert  <eggert@twinsun.com>
23395
23396         Merge some files from coreutils.  These changes were
23397         originally made by Jim Meyering.
23398         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
23399         many older Unixes require this.
23400         * lib/alloca.c (alloca): Remove cast to argument of free;
23401         no longer needed in C89.
23402         * lib/alloca_.h, regex.h: Fix white space to match
23403         what GNU indent does.
23404
23405 2003-08-09  Paul Eggert  <eggert@twinsun.com>
23406
23407         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
23408         apparently Emacs's Unicode mode got confused before my 2003-08-05
23409         checkin.
23410
23411 2003-08-08  Paul Eggert  <eggert@twinsun.com>
23412
23413         * m4/extensions.m4: New file.
23414         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
23415         Require gl_USE_SYSTEM_EXTENSIONS.
23416         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
23417         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
23418
23419 2003-08-08  Paul Eggert  <eggert@twinsun.com>
23420
23421         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
23422         * modules/extensions, modules/gnu-source: New files.
23423         * modules/timespec, modules/unlocked-io: Depend on extensions.
23424
23425 2003-08-07  Paul Eggert  <eggert@twinsun.com>
23426
23427         * modules/restrict: New file.
23428         * MODULES.html.sh (func_all_modules): Add restrict.
23429         * modules/regex: Depend on restrict.
23430
23431 2003-08-07  Paul Eggert  <eggert@twinsun.com>
23432
23433         * m4/restrict.m4: New file.
23434         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
23435
23436 2003-08-07  Bruno Haible  <bruno@clisp.org>
23437
23438         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
23439         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
23440
23441 2003-08-07  Bruno Haible  <bruno@clisp.org>
23442
23443         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
23444         makes the module 'getndelim2' compatible with the module 'getline'.
23445
23446 2003-08-05  Paul Eggert  <eggert@twinsun.com>
23447
23448         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
23449         byte with "\201" to avoid glitches when editing that source file
23450         with multi-gnome-terminal.
23451
23452 2003-08-05  Paul Eggert  <eggert@twinsun.com>
23453
23454         * lib/bumpalloc.h: Remove.
23455
23456 2003-08-05  Paul Eggert  <eggert@twinsun.com>
23457
23458         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
23459         * modules/bumpalloc: Remove.
23460
23461 2003-08-04  Paul Eggert  <eggert@twinsun.com>
23462
23463         * lib/getloadavg.c: Change copyright notice and spacing to conform to
23464         GNU coding style.
23465
23466         Merge from coreutils.
23467         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
23468         1. From glibc.
23469         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
23470         from Karl Berry, implemented by Jim Meyering.
23471         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
23472         from Dmitry V. Levin.
23473         Remove anachronistic cast of xrealloc.
23474         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
23475         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
23476         type. Otherwise, it wouldn't compile with at least /bin/cc on
23477         ymp-cray-unicos9.0.2.X.
23478         Combine two mostly-identical uses of alloca into one.
23479         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
23480
23481 2003-08-04  Dave Love  <d.love@dl.ac.uk>
23482
23483         [From Emacs.]
23484
23485         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
23486         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
23487         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
23488         obsolete NLIST_NAME_UNION.
23489         [__GNU__]: Undef BSD and FSCALE.
23490         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
23491
23492 2003-08-03  Paul Eggert  <eggert@twinsun.com>
23493
23494         * lib/stdbool_.h (_Bool): Make it signed char, instead of
23495         an enum type, so that it's guaranteed to promote to int.  See:
23496         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
23497
23498 2003-08-03  Karl Berry  <karl@gnu.org>
23499
23500         * config/depcomp: update from automake.
23501
23502 2003-07-31  Paul Eggert  <eggert@twinsun.com>
23503
23504         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
23505         (strerror): Don't assume that a printable int fits in 14 bytes.
23506
23507 2003-07-31  Bruno Haible  <bruno@clisp.org>
23508
23509         * modules/getpass-gnu: New file.
23510         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
23511
23512 2003-07-31  Bruno Haible  <bruno@clisp.org>
23513
23514         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
23515
23516 2003-07-24  Karl Berry  <karl@gnu.org>
23517
23518         * config/missing: update from automake.
23519
23520 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
23521             Bruno Haible  <bruno@clisp.org>
23522
23523         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
23524         * lib/getline.c (getline, getdelim): Likewise.
23525         Remove _GNU_SOURCE define; now it's defined in config.h through
23526         m4/getline.m4.
23527
23528 2003-07-23  Karl Berry  <karl@gnu.org>
23529
23530         * config/config.sub: update from prep.
23531
23532 2003-07-22  Paul Eggert  <eggert@twinsun.com>
23533
23534         * modules/xalloc (Depends-on): Add exitfail.
23535         * modules/xmemcoll: Likewise.
23536
23537 2003-07-22  Paul Eggert  <eggert@twinsun.com>
23538
23539         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
23540         over-parenthesization in macros.
23541
23542         Sync with coreutils.
23543
23544         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
23545         required by C99.
23546
23547         Use `exit_failure' for xalloc and xmemcoll instead of their own
23548         private exit-failure variables.
23549         * lib/xalloc.h (xalloc_exit_failure): Remove.
23550         * lib/xmalloc.c: Likewise.  Include exitfail.h.
23551         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
23552         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
23553         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
23554         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
23555
23556 2003-07-20  Jim Meyering  <jim@meyering.net>
23557
23558         * modules/closeout (Depends-on): Add exitfail.
23559         Suggestion from Bruno Haible.
23560
23561 2003-07-19  Karl Berry  <karl@gnu.org>
23562
23563         * config/config.sub: update from prep.
23564
23565 2003-07-18  Paul Eggert  <eggert@twinsun.com>
23566
23567         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
23568         Remove.
23569         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
23570         to test that it can stand by itself.  Include "exitfail.h".
23571         Clients should set exit_failure instead.
23572         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
23573
23574 2003-07-18  Bruno Haible  <bruno@clisp.org>
23575
23576         * modules/getndelim2: New file.
23577         * modules/getline: Share files with module getndelim2.
23578         * modules/getnline: Depend on getndelim2 instead of sharing files with
23579         it. Add getnline.c to lib_SOURCES.
23580         * MODULES.html.sh (func_all_modules): Add getndelim2.
23581
23582 2003-07-18  Bruno Haible  <bruno@clisp.org>
23583
23584         * m4/getndelim2.m4: New file.
23585         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
23586         invoke gl_PREREQ_GETNDELIM2.
23587         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
23588         gl_PREREQ_GETNDELIM2.
23589         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
23590         gl_GETNDELIM2.
23591
23592 2003-07-18  Bruno Haible  <bruno@clisp.org>
23593
23594         * lib/getndelim2.h: New file.
23595         * lib/getndelim2.c: Make into a module of its own. Include config.h,
23596         getndelim2.h.
23597         (getndelim2): Make non-static. Change return type to ssize_t.
23598         * lib/getline.h: Change argument names.
23599         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
23600         * lib/getnline.c: Include getndelim2.h.
23601
23602 2003-07-18  Andreas Schwab  <schwab@suse.de>
23603
23604         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
23605
23606 2003-07-17  Karl Berry  <karl@gnu.org>
23607
23608         * config/config.sub: update from prep.
23609
23610 2003-07-17  Bruno Haible  <bruno@clisp.org>
23611
23612         * modules/getnline: New file.
23613         * modules/getline: Add lib/getndelim2.c to source file list.
23614         * MODULES.html.sh (func_all_modules): Add getnline.
23615
23616 2003-07-17  Bruno Haible  <bruno@clisp.org>
23617
23618         * m4/getnline.m4: New file.
23619
23620 2003-07-17  Bruno Haible  <bruno@clisp.org>
23621
23622         * m4/Makefile.am.in: Remove file.
23623         * m4/Makefile.am: Remove file.
23624         * m4/Makefile.in: Remove file.
23625
23626 2003-07-17  Bruno Haible  <bruno@clisp.org>
23627
23628         * lib/getnline.h: New file.
23629         * lib/getnline.c: New file.
23630         * lib/getndelim2.c: New file, extracted from getline.c.
23631         (getndelim2): Renamed from getdelim2, with added nmax argument.
23632         * lib/getline.c: Include getndelim2.c.
23633         (getdelim2): Moved out to getndelim2.c.
23634         (getline, getdelim): Update.
23635
23636 2003-07-17  Bruno Haible  <bruno@clisp.org>
23637
23638         * lib/Makefile.am: Remove file.
23639         * lib/Makefile.in: Remove file.
23640
23641 2003-07-17  Bruno Haible  <bruno@clisp.org>
23642
23643         * configure.in: Remove file.
23644         * Makefile.in: Remove file.
23645
23646 2003-07-17  Bruno Haible  <bruno@clisp.org>
23647
23648         * MODULES.html.sh: Put the </BODY> right before </HTML>.
23649
23650 2003-07-16  Karl Berry  <karl@gnu.org>
23651
23652         * config/srclist-update: was running fixlicense twice, which caused
23653                 texinfo.tex to be nullified for some reason.  Simplify,
23654                 $gplsrc is no longer needed as far as I can see?
23655
23656 2003-07-16  Jim Meyering  <jim@meyering.net>
23657
23658         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
23659
23660 2003-07-15  Paul Eggert  <eggert@twinsun.com>
23661
23662         * config/srclist.txt: Get the following files from gettext-runtime/intl
23663         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
23664         ref-del.sin.  From Bruno Haible.
23665         * config/srclist-update (fixfile): Change grep pattern again, since the
23666         previous fix didn't work (there was another trailing $).  Use
23667         '[$]' to escape the $s.
23668
23669 2003-07-15  Karl Berry  <karl@gnu.org>
23670
23671         * lib/vasnprintf.c: update from gettext.
23672
23673 2003-07-15  Karl Berry  <karl@gnu.org>
23674
23675         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
23676         gets expanded when surrounded by '$'.
23677
23678 2003-07-15  Jim Meyering  <jim@meyering.net>
23679
23680         * modules/save-cwd: Don't depend on error.  From Derek Price.
23681
23682 2003-07-15  Jim Meyering  <jim@meyering.net>
23683
23684         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
23685
23686 2003-07-14  Simon Josefsson  <jas@extundo.com>
23687
23688         * modules/mempcpy: New file.
23689         * MODULES.html.sh (func_all_modules): Add mempcpy.
23690
23691 2003-07-14  Simon Josefsson  <jas@extundo.com>
23692
23693         * m4/mempcpy.m4: New file.
23694
23695 2003-07-14  Simon Josefsson  <jas@extundo.com>
23696
23697         * lib/mempcpy.h: New file.
23698         * lib/mempcpy.c: New file.
23699
23700 2003-07-14  Paul Eggert  <eggert@twinsun.com>
23701
23702         * modules/getdate, modules/posixtm: Depend on mktime.
23703
23704 2003-07-14  Paul Eggert  <eggert@twinsun.com>
23705
23706         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
23707         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
23708         unicodeio.c, unicodeio.h, unlocked-io.h:
23709         Switch from LGPL to GPL.
23710
23711 2003-07-14  Paul Eggert  <eggert@twinsun.com>
23712
23713         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
23714         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
23715         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
23716         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
23717         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
23718         updated automatically by ../config/srclist-update.  This changes
23719         their license from LPGL to GPL.
23720
23721 2003-07-14  Paul Eggert  <eggert@twinsun.com>
23722
23723         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
23724         assumed to refer to the root of the most recent stable gettext version.
23725         * config/srclistvars.sh: Add defaults for eggert.
23726         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
23727         Match "This program" as well as "The program".  This is needed
23728         for gettext.
23729
23730 2003-07-14  Jim Meyering  <jim@meyering.net>
23731
23732         Don't emit diagnostics.  Let callers do that.
23733         * lib/save-cwd.c: Don't include "error.h".
23734         (save_cwd): Don't call error.  Ensure that errno is valid
23735         when returning nonzero.
23736
23737         * lib/save-cwd.h (restore_cwd): Update prototype.
23738         * lib/save-cwd.c (restore_cwd): Remove two parameters.
23739         Simplify.  Don't call error upon failure.  Let callers do that.
23740         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
23741         when auditing is enabled.  But don't bother updating the #if.
23742
23743 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
23744
23745         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
23746         it breaks C++ compilation.
23747         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
23748
23749 2003-07-10  Simon Josefsson  <jas@extundo.com>
23750
23751         * modules/strchrnul (Makefile.am): Add strchrnul.h.
23752
23753 2003-07-10  Jim Meyering  <jim@meyering.net>
23754
23755         * m4/clock_time.m4: Remove trailing blank.
23756         * m4/intmax_t.m4: Likewise.
23757
23758 2003-07-10  Jim Meyering  <jim@meyering.net>
23759
23760         * lib/vasnprintf.c: Remove trailing blanks.
23761         Make cpp indentation consistent.
23762
23763 2003-07-09  Paul Eggert  <eggert@twinsun.com>
23764
23765         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
23766         posixver.c, strftime.c, strnlen.c, strverscmp.c:
23767         Switch from LGPL to GPL.
23768
23769 2003-07-09  Paul Eggert  <eggert@twinsun.com>
23770
23771         * config/srclist.txt: Sort sublists.  Add
23772         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
23773         that differ from gnulib for one reason or another; we'd like this list
23774         to be smaller but for now let's document what we have.
23775
23776 2003-07-08  Paul Eggert  <eggert@twinsun.com>
23777
23778         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
23779         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
23780         and sweeter "eval x=$x".
23781         * config/srclist.txt: Get lib/argp* from glibc.
23782
23783 2003-07-07  Paul Eggert  <eggert@twinsun.com>
23784
23785         * lib/mktime.c: Fix some boundary cases and remove need for floating
23786         point.
23787
23788         Issue a compile-time diagnostic if time_t is floating point, or if
23789         two's complement arithmetic is not in effect, or if arithmetic
23790         right shift does not propagate the sign.  These assumptions were
23791         all in the original code but they weren't checked.
23792
23793         (TIME_T_MIDPOINT, verify): New macros.
23794         (__isleap): Remove; it has integer overflow problems.
23795         (leapyear): New function, without those problems.
23796         (ydhms_tm_diff): Remove; splitting into two parts.
23797         (ydhms_diff): New function, containing the arithmetic part of
23798         the old ydhms_tm_diff function.  Issue a compile-time
23799         diagnostic if we are not using C99 integer division.
23800         Avoid casts when possible.
23801         (guess_time_tm): New function, containing the checking part of
23802         the old ydhms_tm_diff function.  Return the new value, rather than
23803         the difference between it and the old.  Accept a new argument T
23804         so that *T specifies the old value.  Check for overflow in the result.
23805
23806         (__mktime_internal): Use a time_t offset, not a long int offset.
23807         This undoes the 2003-06-04 change, which is no longer needed now
23808         that we have better overflow checking.
23809         (localtime_offset): Likewise.
23810
23811         (__mktime_internal): Avoid harmful overflow on hosts where time_t
23812         and long are 64-bit but int is only 32-bit.
23813         (ydhms_diff): Use long int to store year1 and yday1.
23814         Issue a compile-time diagnostic if long int is not wide enough.
23815
23816         (__mktime_internal): Use long int to store adjusted year and yday.
23817         Use plain C rather than preprocessor commands, if that doesn't
23818         affect efficiency.
23819         Check for overflow (and try to repair) after each probe
23820         rather than checking only at the very end.  This avoids some bugs
23821         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
23822         does not equal GMT offset at maximum time).
23823         Use integer to check for overflow rather than floating point; this
23824         is more portable to non-IEEE hosts, and is a tad faster.
23825         When we detect that we are oscillating between two values,
23826         don't check whether tm_isdst has the requested value, since
23827         we already know the answer.  When tm_isdst has the wrong value,
23828         use a different heuristic to find the right one, based on the
23829         extreme values actually observed in practice in tz2003a,
23830         rather than the (overly optimistic) "previous 3 calendar quarters".
23831
23832         (not_equal_tm, print_tm, check_result): Use "const T" rather than
23833         "T const" to accommodate glibc style.
23834         (check_result): Use less-confusing report format.  "long" -> "long int.
23835         (main): Likewise.
23836         Don't loop if the iteration overflows time_t.
23837         Allow a negative step in the iteration.
23838
23839 2003-07-06  Karl Berry  <karl@gnu.org>
23840
23841         * config/depcomp: update from automake.
23842         * config/config.sub: update from prep.
23843
23844 2003-07-03  Karl Berry  <karl@gnu.org>
23845
23846         * config/config.guess: update from prep.
23847
23848 2003-07-01  Paul Eggert  <eggert@twinsun.com>
23849
23850         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
23851         xreadlink.c now includes it unconditionally.
23852
23853 2003-07-01  Paul Eggert  <eggert@twinsun.com>
23854
23855         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
23856         having it depend on HAVE_SYS_TYPES_H.
23857
23858 2003-07-01  Bruno Haible  <bruno@clisp.org>
23859
23860         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
23861         <sys/types.h> should be sufficient.
23862         Reported by Paul Eggert.
23863
23864 2003-06-26  Karl Berry  <karl@gnu.org>
23865
23866         * config/depcomp: update from automake.
23867
23868 2003-06-26  Bruno Haible  <bruno@clisp.org>
23869
23870         * modules/human: Depend on module stdbool.
23871
23872 2003-06-25  Bruno Haible  <bruno@clisp.org>
23873
23874         * modules/readlink: New file.
23875         * modules/xreadlink: Depend on it.
23876         * MODULES.html.sh (func_all_modules): Add readlink.
23877
23878 2003-06-25  Bruno Haible  <bruno@clisp.org>
23879
23880         * m4/readlink.m4: New file.
23881
23882 2003-06-25  Bruno Haible  <bruno@clisp.org>
23883
23884         * lib/readlink.c: New file.
23885
23886 2003-06-22  Karl Berry  <karl@gnu.org>
23887
23888         * config/srclist.txt: update mkinstalldirs from automake.
23889         * config/mkinstalldirs: update.
23890
23891 2003-06-22  Bruno Haible  <bruno@clisp.org>
23892
23893         Portability to mingw32.
23894         * m4/ssize_t.m4: New file, from GNU gettext.
23895         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
23896         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
23897
23898 2003-06-22  Bruno Haible  <bruno@clisp.org>
23899
23900         * modules/safe-read: Add m4/ssize_t.m4.
23901         * modules/xreadlink: Add m4/ssize_t.m4.
23902
23903 2003-06-20  Bruno Haible  <bruno@clisp.org>
23904
23905         Assume C89, so PARAMS isn't needed.
23906         * lib/unicodeio.h (PARAMS): Remove.
23907         * lib/unicodeio.c: Don't use PARAMS.
23908
23909 2003-06-18  Karl Berry  <karl@gnu.org>
23910
23911         * config/config.{guess,sub}: update from prep.
23912
23913 2003-06-18  Jim Meyering  <jim@meyering.net>
23914
23915         Merge changes from coreutils.
23916         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
23917         Remove explicit declarations of xmalloc and realloc.
23918         Include xalloc.h.
23919         (read_utmp): Remove anachronistic cast of xmalloc.
23920
23921 2003-06-17  Paul Eggert  <eggert@twinsun.com>
23922
23923         Assume C89, so PARAMS isn't needed.
23924         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
23925         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
23926         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
23927         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
23928         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
23929         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
23930         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
23931         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
23932         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
23933         lib/xstrtod.h, lib/xstrtol.h: Likewise.
23934         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
23935         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
23936         no longer needed. Anyway, config.h should always be included before any
23937         other file.
23938
23939 2003-06-11  Simon Josefsson  <jas@extundo.com>
23940
23941         * modules/sysexits: New file.
23942         * MODULES.html.sh (func_all_modules): Add sysexits.
23943
23944 2003-06-11  Simon Josefsson  <jas@extundo.com>
23945
23946         * lib/sysexit_.h: New file.
23947
23948 2003-06-11  Derek Price  <derek@ximbiot.com>
23949
23950         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
23951         necessary.
23952
23953 2003-06-11  Bruno Haible  <bruno@clisp.org>
23954
23955         * m4/sysexits.m4: New file.
23956
23957 2003-06-10  Simon Josefsson  <jas@extundo.com>
23958
23959         * lib/argp.h: New file, from glibc.
23960         * lib/argp-ba.c: New file, from glibc.
23961         * lib/argp-eexst.c: New file, from glibc.
23962         * lib/argp-fmtstream.c: New file, from glibc.
23963         * lib/argp-fmtstream.h: New file, from glibc.
23964         * lib/argp-fs-xinl.c: New file, from glibc.
23965         * lib/argp-help.c: New file, from glibc.
23966         * lib/argp-namefrob.h: New file, from glibc.
23967         * lib/argp-parse.c: New file, from glibc.
23968         * lib/argp-pv.c: New file, from glibc.
23969         * lib/argp-pvh.c: New file, from glibc.
23970         * lib/argp-xinl.c: New file, from glibc.
23971
23972 2003-06-10  Simon Josefsson  <jas@extundo.com>
23973
23974         * modules/strchrnul: New file.
23975
23976 2003-06-10  Simon Josefsson  <jas@extundo.com>
23977
23978         * modules/argp: New file.
23979
23980 2003-06-10  Simon Josefsson  <jas@extundo.com>
23981
23982         * m4/strchrnul.m4: New file.
23983
23984 2003-06-10  Simon Josefsson  <jas@extundo.com>
23985
23986         * lib/strchrnul.h: New file.
23987         * lib/strchrnul.c: New file.
23988
23989 2003-06-10  Bruno Haible  <bruno@clisp.org>
23990
23991         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
23992
23993 2003-06-07  Karl Berry  <karl@gnu.org>
23994
23995         * config/config.{guess,sub}: update from prep.
23996
23997 2003-06-07  Jim Meyering  <jim@meyering.net>
23998
23999         * modules/strtod: Use $(...) notation, not @...@ for
24000         AC_REPLACE'd variables.
24001         * modules/localcharset: Likewise.
24002
24003 2003-06-07  Jim Meyering  <jim@meyering.net>
24004
24005         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
24006         in place of my name in the copyright comment.
24007         Remove definition and uses of __P.
24008
24009         From coreutils.
24010         * lib/stat.c: Don't declare xmalloc explicitly.
24011         Instead, include "xalloc.h".
24012         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
24013         xrealloc, and xcalloc return values.
24014         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
24015         Improve comment.
24016         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
24017
24018 2003-06-07  Bruno Haible  <bruno@clisp.org>
24019
24020         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
24021         avoid AC_CONFIG_LINKS.
24022         * modules/fnmatch (Makefile.am): Use explicit creation rule for
24023         fnmatch.h, to avoid AC_CONFIG_LINKS.
24024         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
24025
24026 2003-06-07  Bruno Haible  <bruno@clisp.org>
24027
24028         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
24029         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
24030         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
24031         directory.
24032         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
24033         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
24034         directory.
24035
24036 2003-06-06  Jim Meyering  <jim@meyering.net>
24037
24038         Merge from coreutils.
24039         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
24040         Consolidate declarations and initializations of *_base* locals.
24041
24042         Merge from coreutils.
24043         This avoids a core dump on systems without GNU putenv,
24044         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
24045         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
24046         (unsetenv): New static function, from GNU libc.
24047         (rpl_putenv): Use it.
24048
24049         * lib/modechange.c: Remove trailing blanks.
24050
24051         Merge from coreutils.
24052         * lib/fsusage.c: Remove declaration of statfs.
24053         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
24054
24055         * lib/posixtm.c: Include <stdbool.h> unconditionally.
24056
24057 2003-06-06  Jim Meyering  <jim@meyering.net>
24058
24059         * lib/stdbool_.h: Renamed from stdbool.h.in.
24060
24061 2003-06-06  Jim Meyering  <jim@meyering.net>
24062             Bruno Haible  <bruno@clisp.org>
24063
24064         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
24065         Adjust Makefile.am snippet not to redirect directly to target.
24066         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
24067
24068 2003-06-05  Paul Eggert  <eggert@twinsun.com>
24069
24070         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
24071         mismatch, look in future quarters as well as past.  This fixes a
24072         bug when processing fall-backwards gaps immediately after a long
24073         period of daylight-saving time.
24074
24075         * lib/mktime.c: Assume freestanding C89 or better.
24076         (HAVE_LIMITS_H): Remove.  Assume it's 1.
24077         (__P): Remove; not used.
24078         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
24079         (mktime, not_equal_tm, print_tm, check_result,
24080         main): Use prototypes.  Use const * where appropriate.
24081         (main): Fix typo in testing code that uncovered by above changes.
24082         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
24083
24084 2003-06-04  Paul Eggert  <eggert@twinsun.com>
24085
24086         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
24087         locale.h, localeconv.  This merges changes from coreutils.
24088
24089         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
24090         It can be removed after the next Autoconf is released.
24091         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
24092         needed.
24093
24094 2003-06-04  Paul Eggert  <eggert@twinsun.com>
24095
24096         * lib/mktime.c: Fix Debian bug 177940
24097         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
24098         (localtime_offset): Now long int, not time_t, because we want it
24099         to be guaranteed to be signed.  All uses changed.
24100         (__mktime_internal): If overflow would occur when adding offset,
24101         don't add it.
24102
24103         Merge 'human' changes from coreutils.  Rewrite to support
24104         locale-specific notations like thousands separators.
24105         * lib/human.c: Simplify authorship notice.
24106         Include human.h immediately after config.h.
24107         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
24108         <limits.h>: Do not include, since human.h does.
24109         (SIZE_MAX, UINTMAX_MAX): New macros.
24110         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
24111         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
24112         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
24113         (power_letter): Renamed from suffixes.
24114         (generate_suffix_backwards): Remove.
24115         (adjust_value): Now takes int style (because of human.h changes)
24116         and long double value (for greater precision on some platforms).
24117         (group_number): New function.
24118         (human_readable): Use it.  Use integer options, not enum.
24119         Put the options before the sizes in the arg list.
24120         Support all the new options.
24121         The old human_readable function has been removed;
24122         use inttostr.h instead.
24123         (human_readable, default_block_size, humblock):
24124         Use uintmax_t, not int, for block sizes.
24125         (human_readable_inexact, block_size_types): Remove.
24126         (block_size_opts): New constant.
24127         (human_options): Renamed from human_block_size, with new signature
24128         that allows block sizes up to UINTMAX_MAX.  All callers changed.
24129         * lib/human.h: Add copyright and authorship notice.
24130         Include <limits.h> and <stdbool.h> unconditionally.
24131         (PARAMS): Remove.  All uses removed.
24132         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
24133         (enum human_inexact_style): Remove tag; now a nameless enum.
24134         (human_floor, human_ceiling, human_round_to_even): Now have
24135         values 2, 0, 1 rather than -1, 1, 0.
24136         (human_group_digits, human_suppress_point_zero, human_autoscale,
24137         human_base_1024, human_SI, human_B): New constants.
24138         (human_readable_inexact, human_block_size): Remove.
24139         (human_readable): Size args are now uintmax_t, not int.
24140         (human_options): New decl.
24141
24142         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
24143         unnecessary now that we assume C89 or better.  This change
24144         imported from coreutils.
24145
24146         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
24147         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
24148         in the 2003-05-30 sync from glibc.
24149
24150         .h files should stand alone, but we shouldn't include <sys/types.h>
24151         if we can get away with just <stddef.h>.
24152
24153         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
24154         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
24155         rather than <sys/types.h>, as we merely need size_t.
24156         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
24157         to get size_t.
24158         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
24159         Include <stdio.h>, to get FILE.
24160         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
24161         memcasecmp.h has included <stddef.h> and all we need is size_t.
24162         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
24163         our interface, instead of including <sys/types.h>
24164
24165 2003-06-04  Paul Eggert  <eggert@twinsun.com>
24166
24167         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
24168         now, as glibc mktime is buggy on non-glibc systems.
24169
24170 2003-06-03  Karl Berry  <karl@gnu.org>
24171
24172         * config/config.sub: update from prep.
24173
24174 2003-06-02  Paul Eggert  <eggert@twinsun.com>
24175
24176         [from coreutils]
24177         Fix some minor time-related bugs with POSIX time arguments.
24178         Some valid time stamps were being rejected (notably -1, and
24179         time stamps before 1900 on 64-bit hosts).  And some invalid
24180         time stamps were being accepted, e.g. September 31.
24181
24182         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
24183         that we can return (time_t) -1 successfully.
24184         * lib/posixtm.c: Likewise.
24185         [HAVE_STDBOOL_H]: Include <stdbool.h>.
24186         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
24187         (t): Remove static var.
24188         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
24189         of static var.  All uses changed.
24190         (year): Do not reject years before 1900; they can occur with
24191         64-bit time_t.
24192         (posix_time_parse): Do not check for out-of-range components;
24193         that is now the caller's responsibility, since our checks were
24194         only approximations.
24195         (posixtime): Use mktime to check for out-of-range components,
24196         since it knows them exactly.
24197         If mktime returns (time_t) -1, check whether an error actually occurred
24198         by invoking localtime on -1.
24199         (main) [TEST_POSIXTIME]: Check for input data errors, and report
24200         posixtime failures better.
24201         Improve the test data (in comments only).
24202
24203 2003-06-02  Karl Berry  <karl@gnu.org>
24204
24205         * config/mkinstalldirs (version): new variable.
24206         (--version): new option.
24207         (usage): improve message.
24208
24209 2003-05-30  Karl Berry  <karl@gnu.org>
24210
24211         * lib/mktime.c: update from libc.
24212
24213 2003-05-30  Bruno Haible  <bruno@clisp.org>
24214
24215         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
24216         * config/config.rpath: Upgrade to gettext-0.12.1.
24217
24218 2003-05-30  Bruno Haible  <bruno@clisp.org>
24219
24220         * m4/gettext.m4: Upgrade to gettext-0.12.1.
24221         * m4/nls.m4: New file, from gettext-0.12.1.
24222         * m4/po.m4: New file, from gettext-0.12.1.
24223         * m4/progtest.m4: Upgrade to gettext-0.12.1.
24224
24225 2003-05-30  Bruno Haible  <bruno@clisp.org>
24226
24227         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
24228         * lib/localcharset.h: Likewise.
24229         * lib/localcharset.c: Likewise.
24230
24231 2003-05-29  Karl Berry  <karl@gnu.org>
24232
24233         * config/config.rpath: update from gettext.
24234
24235 2003-05-28  Paul Eggert  <eggert@twinsun.com>
24236
24237         Assume the headers required for C89 freestanding compilers.
24238         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
24239         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
24240         * m4/human.m4 (gl_HUMAN): Likewise.
24241         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
24242         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
24243         * m4/userspec.m4 (gl_USERSPEC): Likewise.
24244         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
24245         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
24246         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
24247
24248 2003-05-28  Paul Eggert  <eggert@twinsun.com>
24249
24250         Assume the headers required for C89 freestanding compilers.
24251         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
24252         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
24253         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
24254         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
24255         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
24256         define, since <limits.h> is guaranteed to do that.
24257         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
24258         * lib/exclude.c: Include <stdbool.h> unconditionally.
24259         * lib/tempname.c: Include <stddef.h> unconditionally.
24260         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
24261         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
24262         <stddef.h> does that.
24263         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
24264         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
24265         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
24266         needed.
24267         * lib/xstrtol.c: Likewise.
24268         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
24269         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
24270
24271         * lib/addext.c (addext): Use assignment rather than cast, to avoid
24272         warnings on some platforms.
24273
24274         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
24275         arbitrarily.
24276
24277 2003-05-26  Jim Meyering  <jim@meyering.net>
24278
24279         Merge in a change from coreutils:
24280         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
24281         that is guaranteed to be `no'.  Use `no_such_member' to indicate
24282         that condition, rather than `-1' which is slightly misleading.
24283         Change the name of the cache variable to have the gl_ prefix.
24284         Prompted by a patch from Richard Dawe for DJGPP.
24285
24286 2003-05-24  Karl Berry  <karl@gnu.org>
24287
24288         * config/config.guess: update from prep.
24289
24290 2003-05-22  Karl Berry  <karl@gnu.org>
24291
24292         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
24293
24294 2003-05-20  Karl Berry  <karl@gnu.org>
24295
24296         * config/config.guess: update from prep.
24297
24298 2003-05-18  Karl Berry  <karl@gnu.org>
24299
24300         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
24301         might actually be set by the user.
24302
24303         * config/depcomp, install-sh, mdate-sh: update from automake.
24304
24305 2003-05-17  Bruno Haible  <bruno@clisp.org>
24306
24307         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
24308         invalid expansion for AC_EGREP_CPP.
24309         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
24310         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
24311         Suggested by Akim Demaille <akim@epita.fr> in
24312         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
24313
24314 2003-05-12  Jim Meyering  <jim@meyering.net>
24315
24316         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
24317         the space-padded-by-default conversion specifiers, %e, %k, %l.
24318
24319 2003-05-12  Bruno Haible  <bruno@clisp.org>
24320
24321         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
24322         the string is longer than 4 KB.
24323
24324 2003-05-11  Karl Berry  <karl@gnu.org>
24325
24326         * config/config.{guess,sub}: update from prep.
24327
24328 2003-05-09  Bruno Haible  <bruno@clisp.org>
24329
24330         * modules/error: Add m4/strerror_r.m4 to file list.
24331
24332 2003-05-03  Bruno Haible  <bruno@clisp.org>
24333
24334         Upgrade to Unicode-4.0.
24335         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
24336         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
24337         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
24338         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
24339         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
24340         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
24341         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
24342         Change width of U+E0100..U+E01EF from 1 to 0.
24343
24344 2003-04-25  Jim Meyering  <jim@meyering.net>
24345
24346         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
24347         of type size_t, not int.
24348
24349 2003-04-25  Bruno Haible  <bruno@clisp.org>
24350
24351         * lib/copy-file.c: Include <stddef.h>, for size_t.
24352
24353 2003-04-21  Paul Eggert  <eggert@twinsun.com>
24354
24355         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
24356         code which expansion is under static control.  Patch imported from
24357         Akim Demaille's patch to Bison; see
24358         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
24359
24360 2003-04-14  Bruno Haible  <bruno@clisp.org>
24361
24362         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
24363
24364 2003-04-11  Jim Meyering  <jim@meyering.net>
24365
24366         Merge changes from Coreutils.
24367
24368         2003-03-22  Jim Meyering  <jim@meyering.net>
24369
24370         * lib/strftime.c (widen): Cast alloca return value to proper type.
24371
24372         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
24373
24374         From GNU libc.
24375         * lib/strftime.c (my_strftime): Handle very large width
24376         specifications for numeric values correctly.  Improve checks for
24377         overflow.
24378
24379         2003-01-19  Jim Meyering  <jim@meyering.net>
24380
24381         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
24382         definitions.
24383         (nl_get_alt_digit) [! defined my_strftime]: Define.
24384         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
24385         _nl_get_alt_digit and _nl_get_walt_digit.
24386
24387         * lib/strftime.c (my_strftime): Merge in locale-related changes from
24388         libc. These changes have no effect outside of _LIBC.
24389
24390 2003-04-10  Bruno Haible  <bruno@clisp.org>
24391
24392         * modules/findprog: New file.
24393         * MODULES.html.sh (func_all_modules): Add it.
24394
24395 2003-04-10  Bruno Haible  <bruno@clisp.org>
24396
24397         * m4/findprog.m4: New file.
24398         * m4/eaccess.m4: New file.
24399
24400 2003-04-10  Bruno Haible  <bruno@clisp.org>
24401
24402         * lib/findprog.h: New file, from GNU gettext.
24403         * lib/findprog.c: New file, from GNU gettext.
24404
24405 2003-04-05  Jim Meyering  <jim@meyering.net>
24406
24407         Merge changes from Coreutils.
24408
24409         * lib/exclude.h (PARAMS): Remove definition and uses.
24410         * lib/exclude.c: Remove uses of `PARAMS'.
24411
24412         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
24413         Add test-cases for DOS filenames. Declare program_name.
24414         (main): Set up program_name.  Patch by Rich Dawe.
24415
24416         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
24417         error from mntctl.
24418         Use mntctl's return value to drive the entry-processing loop, since
24419         we can't rely on the value of the vmt_length member in the last
24420         entry.  On some systems doing so could result in exhausting
24421         virtual memory.  Based in part on a patch from Mike Jetzer.
24422
24423 2003-04-04  Bruno Haible  <bruno@clisp.org>
24424
24425         * modules/linebreak: New file.
24426         * MODULES.html.sh (func_all_modules): Add it.
24427
24428 2003-04-04  Bruno Haible  <bruno@clisp.org>
24429
24430         * m4/linebreak.m4: New file.
24431
24432 2003-04-04  Bruno Haible  <bruno@clisp.org>
24433
24434         * lib/linebreak.h: New file, from GNU gettext.
24435         * lib/linebreak.c: New file, from GNU gettext with slight
24436         modifications.
24437         * lib/lbrkprop.h: New file, from GNU gettext.
24438
24439 2003-04-03  Bruno Haible  <bruno@clisp.org>
24440
24441         * modules/utf8-ucs4: New file.
24442         * modules/utf16-ucs4: New file.
24443         * modules/ucs4-utf8: New file.
24444         * modules/ucs4-utf16: New file.
24445         * MODULES.html.sh (func_all_modules): Add them.
24446
24447 2003-04-03  Bruno Haible  <bruno@clisp.org>
24448
24449         * m4/utf-ucs4.m4: New file.
24450         * m4/ucs4-utf.m4: New file.
24451
24452 2003-04-03  Bruno Haible  <bruno@clisp.org>
24453
24454         * lib/utf8-ucs4.h: New file, from GNU gettext.
24455         * lib/utf16-ucs4.h: New file, from GNU gettext.
24456         * lib/ucs4-utf8.h: New file, from GNU gettext.
24457         * lib/ucs4-utf16.h: New file, from GNU gettext.
24458
24459 2003-04-02  Bruno Haible  <bruno@clisp.org>
24460
24461         * modules/binary-io: New file.
24462         * MODULES.html.sh (func_all_modules): Add it.
24463
24464 2003-04-02  Bruno Haible  <bruno@clisp.org>
24465
24466         * lib/binary-io.h: New file, from GNU gettext.
24467
24468 2003-04-01  Bruno Haible  <bruno@clisp.org>
24469
24470         * modules/pathname: New file.
24471         * MODULES.html.sh (func_all_modules): Add it.
24472
24473 2003-04-01  Bruno Haible  <bruno@clisp.org>
24474
24475         * lib/pathname.h: New file, from GNU gettext.
24476         * lib/concatpath.c: New file, from GNU gettext.
24477
24478 2003-03-30  Bruno Haible  <bruno@clisp.org>
24479
24480         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
24481
24482 2003-03-30  Bruno Haible  <bruno@clisp.org>
24483
24484         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
24485         function chown() doesn't exist.
24486
24487 2003-03-28  Bruno Haible  <bruno@clisp.org>
24488
24489         * modules/copy-file: New file.
24490         * MODULES.html.sh (func_all_modules): Add it.
24491
24492 2003-03-28  Bruno Haible  <bruno@clisp.org>
24493
24494         * m4/copy-file.m4: New file.
24495
24496 2003-03-28  Bruno Haible  <bruno@clisp.org>
24497
24498         * lib/copy-file.h: New file, from GNU gettext.
24499         * lib/copy-file.c: New file, from GNU gettext.
24500
24501 2003-03-18  Jim Meyering  <jim@meyering.net>
24502
24503         * lib/quote.c (quote_n): Fix typo in comment.
24504
24505 2003-03-18  Bruno Haible  <bruno@clisp.org>
24506
24507         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
24508         checking.
24509         * m4/onceonly_2_57.m4: Likewise.
24510
24511 2003-03-17  Bruno Haible  <bruno@clisp.org>
24512
24513         * m4/onceonly.m4: Require autoconf 2.54 or newer.
24514         (m4_quote): Remove macro.
24515         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
24516
24517 2003-03-14  Jim Meyering  <jim@meyering.net>
24518
24519         Merge changes from Coreutils.
24520         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
24521         to be const, in order to avoid warnings.
24522         (obstack_room): Likewise.
24523         (obstack_empty_p): Likewise.
24524
24525 2003-03-14  Bruno Haible  <bruno@clisp.org>
24526
24527         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
24528         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
24529
24530 2003-03-13  Paul Eggert  <eggert@twinsun.com>
24531
24532         Merge changes from Bison.
24533         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
24534         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
24535         when compiling Bison 1.875's `bitset bset = obstack_alloc
24536         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
24537         * lib/hash.c: Include <stdbool.h> unconditionally.
24538
24539 2003-03-13  Paul Eggert  <eggert@twinsun.com>
24540
24541         * m4/onceonly.m4 (m4_quote): New macro.
24542         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
24543         Quote AC_FOREACH variable-expansions properly.
24544
24545 2003-03-13  Paul Eggert  <eggert@twinsun.com>
24546
24547         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
24548
24549 2003-03-09  Paul Eggert  <eggert@twinsun.com>
24550
24551         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
24552         Reported by Bruce Becker; see:
24553         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
24554
24555 2003-03-03  Paul Eggert  <eggert@twinsun.com>
24556             Bruno Haible  <bruno@clisp.org>
24557
24558         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
24559         Reported by John Hughes, see
24560         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
24561
24562 2003-02-20  Bruno Haible  <bruno@clisp.org>
24563
24564         * MODULES.html.sh (func_all_modules): Add poll.
24565
24566 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
24567
24568         * modules/poll: New file.
24569
24570 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
24571
24572         * lib/poll_.h: New file.
24573         * lib/poll.c: New file.
24574
24575 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
24576
24577         * m4/poll.m4: New file.
24578
24579 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
24580
24581         * modules/mathl: New file.
24582
24583 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
24584
24585         * lib/mathl.h: New file.
24586         * lib/acosl.c: New file.
24587         * lib/asinl.c: New file.
24588         * lib/atanl.c: New file.
24589         * lib/ceill.c: New file.
24590         * lib/cosl.c: New file.
24591         * lib/expl.c: New file.
24592         * lib/floorl.c: New file.
24593         * lib/frexpl.c: New file.
24594         * lib/ldexpl.c: New file.
24595         * lib/logl.c: New file.
24596         * lib/sincosl.c: New file.
24597         * lib/sinl.c: New file.
24598         * lib/sqrtl.c: New file.
24599         * lib/tanl.c: New file.
24600         * lib/trigl.c: New file.
24601         * lib/trigl.h: New file.
24602
24603 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
24604
24605         * m4/mathl.m4: New file.
24606
24607 2003-02-18  Bruno Haible  <bruno@clisp.org>
24608
24609         * MODULES.html.sh (func_all_modules): Add mathl.
24610
24611 2003-02-17  Bruno Haible  <bruno@clisp.org>
24612
24613         * modules/mkdtemp: New module.
24614         * MODULES.html.sh (func_all_modules): Add it.
24615
24616 2003-02-17  Bruno Haible  <bruno@clisp.org>
24617
24618         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
24619
24620 2003-02-17  Bruno Haible  <bruno@clisp.org>
24621
24622         * lib/mkdtemp.h: New file, from GNU gettext.
24623         * lib/mkdtemp.c: New file, from GNU gettext.
24624
24625 2003-02-02  Jim Meyering  <jim@meyering.net>
24626
24627         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
24628         e.g. glibc-2.2.93.
24629
24630 2003-01-31  Bruno Haible  <bruno@clisp.org>
24631
24632         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
24633         'rpl_rename'.
24634         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
24635         'rpl_strnlen'.
24636         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
24637         'rpl_strtod'.
24638         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
24639         'rpl_utime'.
24640
24641 2003-01-31  Bruno Haible  <bruno@clisp.org>
24642
24643         * lib/rename.c: #undef rename before defining rpl_rename.
24644         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
24645
24646 2003-01-30  Bruno Haible  <bruno@clisp.org>
24647
24648         * modules/vasnprintf, modules/vasprintf: New modules.
24649         * MODULES.html.sh (func_all_modules): Add them.
24650
24651 2003-01-30  Bruno Haible  <bruno@clisp.org>
24652
24653         * m4/signed.m4: New file, from GNU gettext.
24654         * m4/longdouble.m4: New file, from GNU gettext.
24655         * m4/wchar_t.m4: New file, from GNU gettext.
24656         * m4/wint_t.m4: New file, from GNU gettext.
24657         * m4/vasnprintf.m4: New file.
24658         * m4/vasprintf.m4: New file.
24659
24660 2003-01-30  Bruno Haible  <bruno@clisp.org>
24661
24662         * lib/printf-args.h: New file, from GNU gettext.
24663         * lib/printf-args.c: New file, from GNU gettext.
24664         * lib/printf-parse.h: New file, from GNU gettext.
24665         * lib/printf-parse.c: New file, from GNU gettext.
24666         * lib/vasnprintf.h: New file, from GNU gettext.
24667         * lib/vasnprintf.c: New file, from GNU gettext.
24668         * lib/asnprintf.c: New file, from GNU gettext.
24669         * lib/vasprintf.h: New file, from GNU gettext with modifications.
24670         * lib/vasprintf.c: New file, from GNU gettext.
24671         * lib/asprintf.c: New file, from GNU gettext.
24672
24673 2003-01-29  Bruno Haible  <bruno@clisp.org>
24674
24675         * modules/stpncpy: New module.
24676         * MODULES.html.sh (func_all_modules): Add it.
24677
24678 2003-01-29  Bruno Haible  <bruno@clisp.org>
24679
24680         * m4/stpncpy.m4: New file.
24681
24682 2003-01-29  Bruno Haible  <bruno@clisp.org>
24683
24684         * lib/stpncpy.h: New file, from GNU gettext with modifications.
24685         * lib/stpncpy.c: New file, from GNU gettext with modifications.
24686
24687 2003-01-28  Bruno Haible  <bruno@clisp.org>
24688
24689         * modules/c-ctype: New module.
24690         * MODULES.html.sh (func_all_modules): Add it.
24691
24692 2003-01-28  Bruno Haible  <bruno@clisp.org>
24693
24694         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
24695         Paul Eggert.
24696         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
24697         Paul Eggert.
24698
24699 2003-01-27  Bruno Haible  <bruno@clisp.org>
24700
24701         * modules/xsetenv: New module.
24702         * MODULES.html.sh (func_all_modules): Add it.
24703
24704 2003-01-27  Bruno Haible  <bruno@clisp.org>
24705
24706         * lib/xsetenv.h: New file, from GNU gettext.
24707         * lib/xsetenv.c: New file, from GNU gettext.
24708
24709 2003-01-23  Jim Meyering  <jim@meyering.net>
24710
24711         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
24712         from working on systems without dirfd (at least Irix and OSF1/Tru64).
24713
24714 2003-01-23  Bruno Haible  <bruno@clisp.org>
24715
24716         * modules/minmax: New module.
24717         * MODULES.html.sh (func_all_modules): Add it.
24718
24719 2003-01-23  Bruno Haible  <bruno@clisp.org>
24720
24721         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
24722         Eggert.
24723
24724 2003-01-22  Bruno Haible  <bruno@clisp.org>
24725
24726         * modules/exit: New module.
24727         * MODULES.html.sh (func_all_modules): Add it.
24728
24729 2003-01-22  Bruno Haible  <bruno@clisp.org>
24730
24731         * lib/exit.h: New file, from GNU gettext.
24732
24733 2003-01-19  Bruno Haible  <bruno@clisp.org>
24734
24735         * gnulib-tool: Recognize option --extract-maintainer.
24736         (func_get_maintainer): New function.
24737         * modules/*: Add Maintainer entry.
24738
24739 2003-01-16  Jim Meyering  <jim@meyering.net>
24740
24741         * m4/regex.m4: The `regex' struct is both input and output.
24742         Initialize it before each use.  Patch by Tim Waugh.
24743
24744 2003-01-16  Bruno Haible  <bruno@clisp.org>
24745
24746         * MODULES.html.sh: Add a table of contents. Add the module name as
24747         leftmost column. Add hyperlinks.
24748
24749 2003-01-15  Bruno Haible  <bruno@clisp.org>
24750
24751         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
24752
24753 2003-01-15  Bruno Haible  <bruno@clisp.org>
24754
24755         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
24756         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
24757         suffix.
24758
24759 2003-01-15  Bruno Haible  <bruno@clisp.org>
24760
24761         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
24762
24763 2003-01-15  Bruno Haible  <bruno@clisp.org>
24764
24765         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
24766         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
24767
24768 2003-01-14  Jim Meyering  <jim@meyering.net>
24769
24770         * lib/same.c (same_name): Tweak a comment.
24771
24772 2003-01-14  Bruno Haible  <bruno@clisp.org>
24773
24774         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
24775         when a string comparison is sufficient.
24776
24777 2003-01-14  Bruno Haible  <bruno@clisp.org>
24778
24779         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
24780         'unsigned int'.
24781
24782 2003-01-14  Bruno Haible  <bruno@clisp.org>
24783
24784         * lib/hash-pjw.c: Add comment about low quality of this function.
24785
24786 2003-01-13  Bruno Haible  <bruno@clisp.org>
24787
24788         * modules/stpcpy: Distribute lib/stpcpy.h.
24789         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
24790
24791 2003-01-13  Bruno Haible  <bruno@clisp.org>
24792
24793         * modules/*: Add a description.
24794         * modules/strpbrk: Fix Makefile.am snippet.
24795         * modules/strtoimax: Fix dependencies.
24796         * modules/strtoumax: Likewise.
24797
24798 2003-01-13  Bruno Haible  <bruno@clisp.org>
24799
24800         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
24801         * modules/alloca (Makefile.am): All object files depend on alloca.h.
24802         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
24803
24804 2003-01-13  Bruno Haible  <bruno@clisp.org>
24805
24806         * gnulib-tool (func_create_testdir): Store config/* files in the main
24807         directory.
24808         * config.rpath: Move to ...
24809         * config/config.rpath: ... here.
24810         * modules/gettext: Contains config/config.rpath, not config.rpath.
24811         * modules/iconv: Likewise.
24812
24813 2003-01-12  Paul Eggert  <eggert@twinsun.com>
24814
24815         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
24816         to avoid collisions with libcurses and libreadline.
24817
24818         * m4/getstr.m4: Remove.
24819         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
24820
24821 2003-01-12  Paul Eggert  <eggert@twinsun.com>
24822
24823         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
24824         to avoid collisions with libcurses and libreadline.
24825
24826         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
24827         * lib/getstr.h, getstr.c: Remove.
24828         * lib/getline.c: Include "getline.h", to check interface.
24829         Move body of old getstr.c here: this defines MIN_CHUNK and
24830         declares getdelim2, which is renamed from getstr.
24831         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
24832
24833         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
24834         All uses changed.
24835         * lib/linebuffer.h: Likewise.
24836         (readline): Remove backward-compatibility macro.
24837
24838 2003-01-12  Paul Eggert  <eggert@twinsun.com>
24839
24840         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
24841         to avoid collisions with libcurses and libreadline.
24842         * getstr: Remove.
24843         * MODULES.html.sh: Remove getstr.
24844         * modules/getline: Depend on unlocked-io, not getstr.
24845
24846 2003-01-12  Jim Meyering  <jim@meyering.net>
24847
24848         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
24849
24850 2003-01-10  Bruno Haible  <bruno@clisp.org>
24851
24852         * modules/alloca: Change Makefile.am requirements. Simplify Include
24853         requirements. Add lib/alloca_.h to file list.
24854
24855 2003-01-10  Bruno Haible  <bruno@clisp.org>
24856
24857         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
24858
24859 2003-01-10  Bruno Haible  <bruno@clisp.org>
24860
24861         * lib/alloca_.h: New file.
24862         * lib/getdate.y: Unconditionally include alloca.h.
24863         * lib/makepath.c: Likewise.
24864         * lib/setenv.c: Likewise.
24865         * lib/userspec.c: Likewise.
24866
24867 2003-01-09  Karl Berry  <karl@gnu.org>
24868
24869         * MODULES.html.sh: include `dirname $0` in PATH, to find
24870         gnulib-tool.
24871
24872 2003-01-09  Bruno Haible  <bruno@clisp.org>
24873
24874         * modules/stdbool: Change configure.ac, Makefile.am requirements.
24875         Simplify Include requirements. Add lib/stdbool.h.in to file list.
24876
24877 2003-01-09  Bruno Haible  <bruno@clisp.org>
24878
24879         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
24880
24881 2003-01-09  Bruno Haible  <bruno@clisp.org>
24882
24883         * lib/stdbool.h.in: New file.
24884
24885 2003-01-09  Bruno Haible  <bruno@clisp.org>
24886
24887         * gnulib-tool (func_all_modules): Ignore files ending in ~.
24888         * MODULES.html.sh: Likewise.
24889
24890 2003-01-08  Jim Meyering  <jim@meyering.net>
24891
24892         * lib/full-write.c: Undefine and define-away `const' after inclusion
24893         of errno.h, not before.  Suggestion from Bruno Haible.
24894
24895 2003-01-08  Bruno Haible  <bruno@clisp.org>
24896
24897         * modules/full-read: Depend on full-write.
24898
24899 2003-01-08  Bruno Haible  <bruno@clisp.org>
24900
24901         * lib/safe-read.c: Include specification header first, to ensure its
24902         selfcontainedness.
24903         * lib/full-write.c: Likewise.
24904
24905 2003-01-07  Jim Meyering  <jim@meyering.net>
24906
24907         * lib/full-write.c: Rework so that it may serve to define full_read,
24908         too.
24909         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
24910
24911 2003-01-07  Bruno Haible  <bruno@clisp.org>
24912
24913         * lib/strtoimax.c: Include <stdint.h> as an alternative to
24914         <inttypes.h>.
24915         * lib/xstrtol.h: Likewise.
24916         * lib/xstrtoimax.c: Likewise.
24917         * lib/xstrtoumax.c: Likewise.
24918         * lib/human.h: Likewise.
24919
24920         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
24921         on systems that have <inttypes.h> but not <stdint.h>.
24922
24923 2003-01-07  Bruno Haible  <bruno@clisp.org>
24924
24925         * MODULES.html.sh: Add copyright notice.
24926         (missed_files): Omit CVS directory entries.
24927         (func_module): Make it work with sed-3.02.
24928         * MODULES.txt: Remove file.
24929
24930 2003-01-06  Jim Meyering  <jim@meyering.net>
24931
24932         * lib/version-etc.c: Update year in translatable copyright string.
24933
24934 2003-01-03  Karl Berry  <karl@gnu.org>
24935
24936         * config/config.{guess,sub}: update from prep.
24937
24938 2003-01-02  Karl Berry  <karl@gnu.org>
24939
24940         * doc/COPYING.DOC: belatedly updated to 1.2.
24941
24942 2003-01-01  Karl Berry  <karl@gnu.org>
24943
24944         * gnulib-tool (func_verify_module): report module name $module in
24945         error message, not $1.
24946         * gnulib-tool (create-testdir): don't complain if destdir couldn't
24947         be created, only if it doesn't exist.
24948         * gnulib-tool (last_checkin_date): don't expand the $Date here.
24949
24950 2002-12-31  Paul Eggert  <eggert@twinsun.com>
24951
24952         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
24953
24954 2002-12-31  Paul Eggert  <eggert@twinsun.com>
24955
24956         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
24957         memcmp if strcoll doesn't work.
24958
24959 2002-12-31  Bruno Haible  <bruno@clisp.org>
24960
24961         * lib/utime.c (utime_null): No need to call ftruncate if the file was
24962         nonempty.
24963
24964 2002-12-31  Bruno Haible  <bruno@clisp.org>
24965
24966         * lib/memcoll.c (STRCOLL): New macro.
24967         (memcoll): Use it.
24968
24969 2002-12-31  Bruno Haible  <bruno@clisp.org>
24970
24971         * lib/localcharset.h: New file.
24972         * lib/localcharset.c: Include it.
24973         * lib/unicodeio.c: Likewise.
24974
24975 2002-12-31  Bruno Haible  <bruno@clisp.org>
24976
24977         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
24978         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
24979
24980 2002-12-31  Bruno Haible  <bruno@clisp.org>
24981
24982         * lib/getline.h: Include <stddef.h>, for size_t.
24983
24984         * lib/unicodeio.h: Include <stddef.h>, for size_t.
24985         * lib/unicodeio.c: Don't include <stddef.h>.
24986
24987 2002-12-31  Bruno Haible  <bruno@clisp.org>
24988
24989         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
24990         HAVE_TM_ZONE.
24991
24992 2002-12-24  Karl Berry  <karl@gnu.org>
24993
24994         * config/config.guess: update from prep.
24995
24996 2002-12-24  Bruno Haible  <bruno@clisp.org>
24997
24998         General infrasructure.
24999         * m4/README: Rewritten.
25000         * m4/onceonly.m4: New file.
25001         * m4/onceonly_2_57.m4: New file.
25002
25003         Module atexit.
25004         * m4/atexit.m4: New file.
25005
25006         Module strtod.
25007         * m4/strtod.m4: New file.
25008
25009         Module strtol.
25010         * m4/strtol.m4: New file.
25011
25012         Module strtoul.
25013         * m4/strtoul.m4: New file.
25014
25015         Module memchr.
25016         * m4/memchr.m4: New file.
25017
25018         Module memcmp.
25019         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
25020         (jm_FUNC_MEMCMP): Invoke it.
25021
25022         Module memcpy.
25023         * m4/memcpy.m4: New file.
25024
25025         Module memmove.
25026         * m4/memmove.m4: New file.
25027
25028         Module memset.
25029         * m4/memset.m4: New file.
25030
25031         Module strcspn.
25032         * m4/strcspn.m4: New file.
25033
25034         Module strpbrk.
25035         * m4/strpbrk.m4: New file.
25036
25037         Module strstr.
25038         * m4/strstr.m4: New file.
25039
25040         Module strerror.
25041         * m4/strerror.m4: New file.
25042
25043         Module mktime.
25044         * m4/mktime.m4: Renamed from jm-mktime.m4.
25045         (gl_PREREQ_MKTIME): New macro.
25046         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
25047
25048         Module malloc.
25049         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
25050         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
25051         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
25052
25053         Module realloc.
25054         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
25055         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
25056         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
25057
25058         Module strftime.
25059         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
25060         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
25061         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
25062         gl_TM_GMTOFF.
25063         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
25064
25065         Module xalloc.
25066         * m4/xalloc.m4: New file.
25067
25068         Module alloca.
25069         * m4/alloca.m4: New file.
25070
25071         Module putenv.
25072         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
25073         (jm_FUNC_PUTENV): Invoke it.
25074
25075         Module setenv.
25076         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
25077         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
25078         when invoked twice.
25079         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
25080         gt_FUNC_SETENV.
25081
25082         Module memrchr.
25083         * m4/memrchr.m4: New file.
25084
25085         Module stpcpy.
25086         * m4/stpcpy.m4: New file.
25087
25088         Module strcase.
25089         * m4/strcase.m4: New file.
25090
25091         Module strdup.
25092         * m4/strdup.m4: New file.
25093
25094         Module strnlen.
25095         * m4/strnlen.m4: New file.
25096
25097         Module strndup.
25098         * m4/strndup.m4: New file.
25099
25100         Module xstrtod.
25101         * m4/xstrtod.m4: New file.
25102
25103         Module xstrtol.
25104         * m4/xstrtol.m4: New file.
25105
25106         Module getdate.
25107         * m4/getdate.m4: New file.
25108
25109         Module unlocked-io.
25110         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
25111         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
25112         * m4/jm-glibc-io.m4n: Remove file.
25113
25114         Module long-options.
25115         * m4/long-options.m4: New file.
25116
25117         Module md5.
25118         * m4/md5.m4: New file.
25119
25120         Module sha.
25121         * m4/sha.m4: New file.
25122
25123         Module getstr.
25124         * m4/getstr.m4: New file.
25125
25126         Module getline.
25127         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
25128         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
25129         <sys/types.h>, for size_t. Use the function name gnu_getline, not
25130         simply getline. Infoke gl_PREREQ_GETLINE.
25131
25132         Module obstack.
25133         * m4/obstack.m4: New file.
25134
25135         Module hash.
25136         * m4/hash.m4: New file.
25137
25138         Module readtokens.
25139         * m4/readtokens.m4: New file.
25140
25141         Module strverscmp.
25142         * m4/strverscmp.m4: New file.
25143
25144         Module stdbool.
25145         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
25146         OSF/1.
25147
25148         Module strtoll.
25149         * m4/strtoll.m4: New file.
25150
25151         Module strtoull.
25152         * m4/strtoull.m4: New file.
25153
25154         Module strtoimax.
25155         * m4/strtoimax.m4: New file.
25156
25157         Module strtoumax.
25158         * m4/strtoumax.m4: New file.
25159
25160         Module xstrtoimax.
25161         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
25162         jm_AC_PREREQ_XSTRTOIMAX.
25163         Moved the strtol prerequisites to strtol.m4.
25164         Moved the strtoll prerequisites to strtoll.m4.
25165         Moved the strtoimax prerequisites to strtoimax.m4.
25166
25167         Module xstrtoumax.
25168         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
25169         jm_AC_PREREQ_XSTRTOUMAX.
25170         Moved the strtoul prerequisites to strtoul.m4.
25171         Moved the strtoull prerequisites to strtoull.m4.
25172         Moved the strtoumax prerequisites to strtoumax.m4.
25173
25174         Module chown.
25175         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
25176         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
25177
25178         Module dup2.
25179         * m4/dup2.m4: New file.
25180
25181         Module ftruncate.
25182         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
25183         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
25184
25185         Module getgroups.
25186         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
25187         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
25188
25189         Module gettimeofday.
25190         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
25191         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
25192         gl_PREREQ_GETTIMEOFDAY.
25193
25194         Module mkdir.
25195         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
25196         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
25197
25198         Module mkstemp.
25199         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
25200         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
25201         jm_AC_TYPE_UINTMAX_T.
25202         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
25203
25204         Module stat.
25205         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
25206         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
25207
25208         Module lstat.
25209         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
25210         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
25211
25212         Module timespec.
25213         * m4/timespec.m4 (gl_TIMESPEC): New macro.
25214         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
25215         * m4/st_mtim.m4: Indentation.
25216
25217         Module nanosleep.
25218         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
25219         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
25220         gl_PREREQ_NANOSLEEP.
25221
25222         Module regex.
25223         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
25224         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
25225         (gl_REGEX): New macro.
25226
25227         Module rename.
25228         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
25229         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
25230
25231         Module rmdir.
25232         * m4/rmdir.m4: New file.
25233
25234         Module utime.
25235         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
25236         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
25237         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
25238
25239         Module dirname.
25240         * m4/dirname.m4: New file.
25241
25242         Module getopt.
25243         * m4/getopt.m4: New file.
25244
25245         Module unistd-safer.
25246         * m4/unistd-safer.m4: New file.
25247
25248         Module fnmatch.
25249         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
25250         declaration.
25251         (gl_PREREQ_FNMATCH_EXTRA): New macro.
25252         (gl_FUNC_FNMATCH_POSIX): New macro.
25253         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
25254         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
25255         simply fnmatch.
25256
25257         Module exclude.
25258         * m4/exclude.m4: New file.
25259
25260         Module human.
25261         * m4/human.m4: New file.
25262
25263         Module acl.
25264         * m4/acl.m4: Nop.
25265
25266         Module backupfile.
25267         * m4/backupfile.m4: New file.
25268         * m4/d-ino.m4: Indentation.
25269
25270         Module fsusage.
25271         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
25272         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
25273         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
25274
25275         Module dirfd.
25276         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
25277         requirements.
25278
25279         Module euidaccess.
25280         * m4/euidaccess.m4: New file.
25281
25282         Module file-type.
25283         * m4/file-type.m4: New file.
25284
25285         Module fileblocks.
25286         * m4/fileblocks.m4: New file.
25287
25288         Module filemode.
25289         * m4/filemode.m4: New file.
25290
25291         Module isdir.
25292         * m4/isdir.m4: New file.
25293
25294         Module lchown.
25295         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
25296         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
25297
25298         Module makepath.
25299         * m4/makepath.m4: New file.
25300
25301         Module modechange.
25302         * m4/modechange.m4: New file.
25303
25304         Module mountlist.
25305         * m4/mountlist.m4: New file.
25306         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
25307         Indentation.
25308
25309         Module path-concat.
25310         * m4/path-concat.m4: New file.
25311
25312         Module pathmax.
25313         * m4/pathmax.m4: New file.
25314
25315         Module same.
25316         * m4/same.m4: New file.
25317
25318         Module save-cwd.
25319         * m4/save-cwd.m4: New file.
25320
25321         Module savedir.
25322         * m4/savedir.m4: New file.
25323
25324         Module xgetcwd.
25325         * m4/xgetcwd.m4: New file.
25326         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
25327
25328         Module xreadlink.
25329         * m4/xreadlink.m4: New file.
25330
25331         Module safe-read.
25332         * m4/safe-read.m4: New file.
25333
25334         Module safe-write.
25335         * m4/safe-write.m4: New file.
25336
25337         Module closeout.
25338         * m4/closeout.m4: New file.
25339
25340         Module stdio-safer.
25341         * m4/stdio-safer.m4: New file.
25342
25343         Module getpass.
25344         * m4/getpass.m4: New file.
25345
25346         Module getugroups.
25347         * m4/getugroups.m4: New file.
25348
25349         Module group-member.
25350         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
25351         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
25352
25353         Module idcache.
25354         * m4/idcache.m4: New file.
25355
25356         Module userspec.
25357         * m4/userspec.m4: New file.
25358
25359         Module gettime.
25360         * m4/clock_time.m4: New file.
25361         * m4/gettime.m4: New file.
25362
25363         Module settime.
25364         * m4/settime.m4: New file.
25365
25366         Module posixtm.
25367         * m4/posixtm.m4: New file.
25368
25369         Module gethostname.
25370         * m4/gethostname.m4: New file.
25371
25372         Module canon-host.
25373         * m4/canon-host.m4: New file.
25374
25375         Module gettext.
25376         * m4/codeset.m4: New file, from gettext-0.11.5.
25377         * m4/gettext.m4: New file, from gettext-0.11.5.
25378         * m4/glibc21.m4: New file, from gettext-0.11.5.
25379         * m4/iconv.m4: New file, from gettext-0.11.5.
25380         * m4/intdiv0.m4: New file, from gettext-0.11.5.
25381         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
25382         * m4/inttypes.m4: New file, from gettext-0.11.5.
25383         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
25384         * m4/isc-posix.m4: New file, from gettext-0.11.5.
25385         * m4/lcmessage.m4: New file, from gettext-0.11.5.
25386         * m4/lib-ld.m4: New file, from gettext-0.11.5.
25387         * m4/lib-link.m4: New file, from gettext-0.11.5.
25388         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
25389         * m4/progtest.m4: New file, from gettext-0.11.5.
25390         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
25391         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
25392         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
25393
25394         Module localcharset.
25395         * m4/localcharset.m4: New file.
25396
25397         Module hard-locale.
25398         * m4/hard-locale.m4: New file.
25399
25400         Module mbswidth.
25401         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
25402         onceonly macros.
25403         * m4/mbrtowc.m4: Add comment.
25404
25405         Module memcasecmp.
25406         * m4/memcasecmp.m4: New file.
25407
25408         Module memcoll.
25409         * m4/memcoll.m4: New file.
25410
25411         Module unicodeio.
25412         * m4/unicodeio.m4: New file.
25413
25414         Module rpmatch.
25415         * m4/rpmatch.m4: New file.
25416
25417         Module yesno.
25418         * m4/yesno.m4: New file.
25419
25420         Module exitfail.
25421         * m4/exitfail.m4: New file.
25422
25423         Module c-stack.
25424         * m4/c-stack.m4 (gl_C_STACK): New macro.
25425         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
25426
25427         Module error.
25428         * m4/error.m4 (gl_ERROR): New macro.
25429         (jm_PREREQ_ERROR): Use onceonly macros.
25430
25431         Module fatal.
25432         * m4/fatal.m4: New file.
25433
25434         Module getloadavg.
25435         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
25436         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
25437
25438         Module getpagesize.
25439         * m4/getpagesize.m4: New file.
25440
25441         Module getusershell.
25442         * m4/getusershell.m4: New file.
25443
25444         Module physmem.
25445         * m4/physmem.m4: New file.
25446
25447         Module posixver.
25448         * m4/posixver.m4: New file.
25449
25450         Module quotearg.
25451         * m4/quotearg.m4: New file.
25452
25453         Module quote.
25454         * m4/quote.m4: New file.
25455
25456         Module readutmp.
25457         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
25458
25459         Module sig2str.
25460         * m4/sig2str.m4: New file.
25461
25462         Other.
25463         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
25464         ulonglong.m4.
25465         * m4/intmax_t.m4: New file.
25466         * m4/d-type.m4: Indentation.
25467         * m4/jm-macros.m4: Update.
25468         * m4/prereq.m4 (jm_PREREQ): Update.
25469         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
25470         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
25471         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
25472         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
25473         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
25474         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
25475         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
25476         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
25477         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
25478         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
25479         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
25480         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
25481         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
25482         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
25483         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
25484         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
25485         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
25486         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
25487         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
25488
25489 2002-12-24  Bruno Haible  <bruno@clisp.org>
25490
25491         * MODULES.txt: Update according to m4/ changes.
25492
25493         Module gettext.
25494         * config.rpath: New file, from gettext-0.11.5.
25495
25496         * modules/*: New module descriptions.
25497         * gnulib-tool: New file.
25498         * MODULES.html.sh: New file.
25499
25500 2002-12-21  Karl Berry  <karl@gnu.org>
25501
25502         * doc/fdl.texi: update to version 1.2.
25503
25504 2002-12-19  Karl Berry  <karl@gnu.org>
25505
25506         * config/config.guess: update from prep.
25507
25508 2002-12-18  Bruno Haible  <bruno@clisp.org>
25509
25510         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
25511         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
25512
25513 2002-12-17  Bruno Haible  <bruno@clisp.org>
25514
25515         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
25516         stdlib.h, string.h.
25517
25518 2002-12-17  Bruno Haible  <bruno@clisp.org>
25519
25520         * lib/canon-host.c (strdup): Remove unused declaration.
25521
25522         * lib/fsusage.c: Include full_read.h.
25523         (get_fs_usage): Use full_read instead of safe_read.
25524
25525         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
25526
25527 2002-12-12  Karl Berry  <karl@gnu.org>
25528
25529         * config/config.guess: update from prep.
25530
25531 2002-12-11  Bruno Haible  <bruno@clisp.org>
25532
25533         * m4/setenv.m4: New file, from gettext-0.11.5.
25534
25535 2002-12-11  Bruno Haible  <bruno@clisp.org>
25536
25537         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
25538         not unsetenv().
25539         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
25540         modifications:
25541
25542         2002-12-11  Bruno Haible  <bruno@clisp.org>
25543
25544                 * setenv.c (alloca): Fall back to malloc.
25545                 (freea): New macro.
25546                 (setenv): Use freea() to free memory allocated with alloca().
25547
25548         2002-11-13  Bruno Haible  <bruno@clisp.org>
25549
25550                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
25551                 function declarations.
25552                 * unsetenv.c (unsetenv): Likewise.
25553
25554         2002-03-04  Bruno Haible  <bruno@clisp.org>
25555
25556                 Portability to AIX 4.3.3.
25557                 * unsetenv.c: New file, extracted from setenv.c.
25558                 * setenv.c: Move the unsetenv() function to unsetenv.c.
25559
25560         2001-12-20  Bruno Haible  <bruno@clisp.org>
25561
25562                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
25563                 use malloc instead. For SunOS 4.
25564
25565         2001-12-11  Bruno Haible  <bruno@clisp.org>
25566
25567                 * setenv.c: Declare alloca.
25568                 (compar_fn_t): New typedef.
25569                 (KNOWN_VALUE, STORE_VALUE): Use it.
25570
25571         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
25572         setenv.h.
25573
25574 2002-12-10  Paul Eggert  <eggert@twinsun.com>
25575
25576         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
25577         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
25578         Choose values that are less likely to collide with system fnmatch
25579         options.
25580         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
25581         defined (e.g., a pure POSIX system).
25582         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
25583         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
25584
25585 2002-12-06  Paul Eggert  <eggert@twinsun.com>
25586
25587         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
25588         a pain in practice to deal with generated m4 files.  This change
25589         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
25590
25591         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
25592         and jm-glibc-io.m4, as they are no longer a special case.
25593         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
25594         kludge and the auto-generation stuff.  Check only whether the
25595         functions are declared, not whether they exist, since older hosts
25596         that don't declare the functions can't use the optimization anyway.
25597
25598 2002-12-06  Jim Meyering  <jim@meyering.net>
25599
25600         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
25601
25602         Merge in changes from libc's misc/error.c, in preparation
25603         for the merge of gnulib's changes back into libc.
25604
25605         * lib/error.c (_): Define only if not already defined.
25606         Move definition to follow all #include directives.
25607         Include unlocked-io.h only if !_LIBC.
25608         [_LIBC]: Include <libio/libioP.h>.
25609         [USE_IN_LIBIO]: Include <libio/iolibio.h>
25610         (fflush): Tweak definition to use INTUSE.
25611         (putc): Define.
25612
25613 2002-12-05  Paul Eggert  <eggert@twinsun.com>
25614
25615         * lib/alloca.c [defined emacs]: Include "lisp.h".
25616         (xalloc_die) [defined emacs]: New macro.
25617         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
25618         [! defined emacs]: Include <xalloc.h>.
25619         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
25620         (pointer): Typedef to POINTER_TYPE *.
25621         (malloc): Remove decl; we now always use xmalloc.
25622         (alloca): Use old-style definition, since Emacs needs this.
25623         Check for arithmetic overflow when computing combined size.
25624
25625 2002-12-04  Paul Eggert  <eggert@twinsun.com>
25626
25627         Do not generate unlocked-io.h automatically, since it's easier to
25628         maintain it by hand.
25629
25630         * lib/unlocked-io.h: New file, from GNU diffutils,
25631         but with proper copyright notice and attribution.
25632         * lib/gen-uio: Remove.
25633         * lib/Makefile.am: Add copyright notice.
25634         (libfetish_a_SOURCES): Add unlocked-io.h.
25635         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
25636         (DISTCLEANFILES, io_functions): Remove macros.
25637         (EXTRA_DIST): Remove gen_uio.
25638         (unlocked-io.h): Remove rule.
25639
25640 2002-12-04  Jim Meyering  <jim@meyering.net>
25641
25642         Reflect the fact that stat.c and lstat.c are no longer generated.
25643         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
25644         (DISTCLEANFILES): Likewise.
25645         (EXTRA_DIST): Likewise.
25646         (all_local): Don't depend on stat.c or lstat.c.
25647         (stat.c, lstat.c): Remove rules.
25648         (EXTRA_DIST): Remove xstat.in.
25649
25650         * lib/xstat.in: Remove file.  Contents moved into stat.c.
25651         * lib/stat.c: New file.  Contents mostly from xstat.in.
25652         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
25653         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
25654
25655         * lib/safe-read.c: Rework so that it may serve to define safe_write,
25656         too.
25657         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
25658
25659 2002-12-03  Jim Meyering  <jim@meyering.net>
25660
25661         * lib/safe-read.c, safe-write.c: Change variable names and comments,
25662         but not semantics, to minimize the differences between these two files.
25663         (safe_read): Change comment to mention SAFE_READ_ERROR.
25664
25665         * lib/safe-read.c (IS_EINTR): Define.
25666         (safe_read): Use IS_EINTR in place of in-function cpp directives.
25667
25668 2002-12-02  Jim Meyering  <jim@meyering.net>
25669
25670         * lib/safe-read.c (EINTR): Define.
25671         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
25672         (INT_MAX): Provide fallback.
25673         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
25674
25675         * lib/safe-read.h (SAFE_READ_ERROR): Define.
25676
25677 2002-12-02  Bruno Haible  <bruno@clisp.org>
25678
25679         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
25680         Define, taken from safe-read.c.
25681         (INT_MAX): Provide fallback.
25682         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
25683         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
25684
25685         * lib/safe-read.c (EINTR): Remove definition.
25686         (safe_read): Don't use EINTR if it is absent.
25687
25688 2002-12-01  Jim Meyering  <jim@meyering.net>
25689
25690         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
25691         zero.
25692         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
25693
25694 2002-11-27  Paul Eggert  <eggert@twinsun.com>
25695
25696         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
25697         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
25698         with `if (! (value < limit)) abort ();', for readability.
25699
25700 2002-11-26  Karl Berry  <karl@gnu.org>
25701
25702         * lib/strdup.c: copy from libc again, with jim's ok.
25703         * lib/.cppi-disable: re-add strdup.c
25704
25705 2002-11-25  Karl Berry  <karl@gnu.org>
25706
25707         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
25708         instead of "strtol.c".
25709
25710 2002-11-25  Karl Berry  <karl@gnu.org>
25711
25712         * config/install-sh: update from automake for variable quoting, $0 in
25713         error msgs, etc.
25714
25715         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
25716         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
25717         entry.
25718
25719 2002-11-25  Jim Meyering  <jim@meyering.net>
25720
25721         * lib/mktime.c: Sync from libc, now that it has the latest fix.
25722
25723 2002-11-24  Karl Berry  <karl@gnu.org>
25724
25725         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
25726         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
25727
25728 2002-11-24  Jim Meyering  <jim@meyering.net>
25729
25730         Update from coreutils:
25731
25732         * lib/mktime.c: Merge in changes from libc.
25733
25734         Avoid a link-time failure on some Linux systems.
25735         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
25736         (otherwise).
25737         (__mon_yday): Declare with the STATIC attribute.
25738         (__mktime_internal): Likewise.
25739         Based on a report from Greg Schafer.
25740
25741 2002-11-23  Jim Meyering  <jim@meyering.net>
25742
25743         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
25744         Use `unsigned', not `int', as type of index.
25745
25746         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
25747
25748         * lib/fsusage.c: Remove unneeded parentheses around operands of
25749         `defined'.
25750
25751 2002-11-22  Paul Eggert  <eggert@twinsun.com>
25752
25753         * lib/quotearg.h: Allow multiple inclusion by surrounding with
25754         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
25755         so that we can be included first.
25756         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
25757         * lib/quotearg.c: Include quotearg.h immediately after config.h.
25758         No need to include stddef.h or sys/types.h any more.
25759         Surround local include files with "", not "<>".
25760         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
25761         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
25762         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
25763         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
25764         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
25765         (ISPRINT): Remove; no longer needed now that we assume C89.
25766
25767         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
25768         Preserve errno.
25769
25770         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
25771         quotearg_char): Use SIZE_MAX rather than
25772         (size_t) -1 when we are talking about "infinity".
25773
25774         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
25775
25776 2002-11-22  Paul Eggert  <eggert@twinsun.com>
25777
25778         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
25779         hint that one should use `if (! x) abort ();' rather than `assert
25780         (x);', and anyway it's one less thing to worry about configuring.
25781         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
25782         hash_rehash, hash_insert): Use abort rather than assert.
25783
25784 2002-11-22  Bruno Haible  <bruno@clisp.org>
25785
25786         * lib/safe-read.h: Assume C89. Add comments.
25787         (safe_read): Change return type to size_t.
25788         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
25789         byte counts > SSIZE_MAX correctly.
25790         * lib/safe-write.h: New file.
25791         * lib/safe-write.c: New file.
25792         * lib/full-read.h: New file.
25793         * lib/full-read.c: New file.
25794         * lib/full-write.h: Assume C89. Add comments.
25795         * lib/full-write.c: Include safe-write.h.
25796         (full_write): Rewritten to use safe_write.
25797         Suggested by Jim Meyering and Paul Eggert.
25798
25799 2002-11-21  Jim Meyering  <jim@meyering.net>
25800
25801         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
25802
25803         Merge in changes from the coreutils.
25804
25805         2002-09-25  Paul Eggert  <eggert@twinsun.com>
25806         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
25807         <stdint.h>.
25808         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
25809         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
25810         int.  Work more efficiently if X is the same width as uintmax_t.
25811         Do not compare X to -1, to avoid bogus compiler warning.
25812         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
25813         Don't assume that f_frsize and f_bsize are the same type.
25814
25815         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
25816         warning on FreeBSD.
25817
25818         * lib/makepath.c (make_path): Restore umask *before* creating the final
25819         component.
25820         (make_path): Minor reformatting.
25821
25822         * lib/xmalloc.c: Adjust to work with new autoconf macros,
25823         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
25824         HAVE_MALLOC/HAVE_REALLOC.
25825
25826         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
25827         dummy ones.  At least on GNU/Linux systems, `auto' means something
25828         else.
25829         From Michael Stone.
25830
25831 2002-11-21  Bruno Haible  <bruno@clisp.org>
25832
25833         Remove case insensitive option matching.
25834         * lib/argmatch.h (argcasematch): Remove declaration.
25835         (ARGCASEMATCH): Remove macro.
25836         (__xargmatch_internal): Remove case_sensitive argument.
25837         (XARGMATCH): Update.
25838         (XARGCASEMATCH): Remove macro.
25839         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
25840         case_sensitive argument.
25841         (argcasematch): Remove function.
25842         (__xargmatch_internal): Remove case_sensitive argument.
25843         (main): Use XARGMATCH instead of XARGCASEMATCH.
25844
25845         * lib/xmalloc.c: Change compile-time error message. Add comment about
25846         required autoconf version.
25847
25848 2002-11-20  Paul Eggert  <eggert@twinsun.com>
25849
25850         Merge argmatch cleanups from Bison.  Assume C89.
25851
25852         * lib/argmatch.c: Include config.h here, not in argmatch.h.
25853         Include stdlib.h, for EXIT_FAILURE.
25854         Always include <string.h>, since we assume C89.
25855         (EXIT_FAILURE): Remove pre-C89 bug workaround.
25856         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
25857         Include <stddef.h> instead, since it's all we need for size_t.
25858         (PARAMS): Remove.  All uses removed.
25859         (ARRAY_CARDINALITY): Do not bother to #undef.
25860         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
25861         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
25862         Remove unnecessary parentheses.
25863         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
25864         Insert necessary parentheses.
25865         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
25866         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
25867
25868 2002-11-19  Bruno Haible  <bruno@clisp.org>
25869
25870         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
25871         * lib/mbswidth.h: Include <stddef.h>, for size_t.
25872
25873         * lib/mbswidth.h (PARAMS): Remove macro.
25874         (mbswidth, mbsnwidth): Use ANSI C function declarations.
25875         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
25876
25877         * lib/gcd.h (PARAMS): Remove macro.
25878         (gcd): Use ANSI C function declarations.
25879         * lib/gcd.c (gcd): Likewise.
25880
25881 2002-11-15  Bruno Haible  <bruno@clisp.org>
25882
25883         * lib/strcspn.c: Include <stddef.h>.
25884         (strcspn): Use ANSI C function declaration. Change return type to
25885         size_t. Use NULL.
25886         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
25887         (strpbrk): Use NULL.
25888         * lib/strpbrk.h (PARAMS): Remove macro.
25889         (strpbrk): Use ANSI C function declaration.
25890         * lib/strstr.c: Don't include <sys/types.h>.
25891         * lib/strstr.h (PARAMS): Remove macro.
25892         (strstr): Use ANSI C function declarations.
25893
25894 2002-11-14  Karl Berry  <karl@gnu.org>
25895
25896         * config/mkinstalldirs: `do' on separate line, instead of
25897         `for var; do'.
25898
25899 2002-11-06  Bruno Haible  <bruno@clisp.org>
25900
25901         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
25902         * lib/gcd.c (gcd): Likewise.
25903
25904 2002-11-05  Bruno Haible  <bruno@clisp.org>
25905
25906         * lib/gcd.h: New file, from gettext-0.11.5.
25907         * lib/gcd.c: New file, from gettext-0.11.5.
25908
25909 2002-11-05  Bruno Haible  <bruno@clisp.org>
25910
25911         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
25912         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
25913         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
25914         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
25915
25916         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
25917         <libintl.h>.
25918         * lib/makepath.c: Include gettext.h instead of <locale.h> and
25919         <libintl.h>.
25920
25921         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
25922         * lib/human.c: Include gettext.h instead of <libintl.h>.
25923         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
25924         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
25925         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
25926         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
25927         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
25928         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
25929         (textdomain): Remove definition.
25930         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
25931
25932         * lib/long-options.c: Remove include of <libintl.h> and definition of
25933         _.
25934         * lib/same.c: Remove include of <libintl.h> and definition of _.
25935
25936 2002-11-04  Owen Taylor  <otaylor@redhat.com>
25937
25938         * lib/config.charset: A few additions for Solaris.
25939
25940 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
25941
25942         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
25943         * lib/localcharset.c (locale_charset): Declare as extern "C".
25944
25945 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
25946
25947         * lib/config.charset: msdos in uk_UA uses CP1125.
25948
25949 2002-11-04  Bruno Haible  <bruno@clisp.org>
25950
25951         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
25952         * lib/strcase.h: New file, from GNU gettext-0.11.5.
25953         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
25954         * lib/strstr.h: New file, from GNU gettext-0.11.5.
25955         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
25956
25957 2002-11-04  Bruno Haible  <bruno@clisp.org>
25958
25959         * lib/localcharset.c (locale_charset): Don't return an empty string.
25960
25961 2002-11-04  Bruno Haible  <bruno@clisp.org>
25962
25963         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
25964         aliases.
25965
25966 2002-11-04  Bruno Haible  <bruno@clisp.org>
25967
25968         * lib/config.charset: Update for newest glibc. Add canonical names
25969         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
25970
25971 2002-11-04  Bruno Haible  <bruno@clisp.org>
25972
25973         * lib/config.charset: Add support for NetBSD.
25974
25975 2002-11-04  Bruno Haible  <bruno@clisp.org>
25976
25977         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
25978
25979 2002-11-01  Bruno Haible  <bruno@clisp.org>
25980
25981         * configure.in: Add AC_CONFIG_AUX_DIR call.
25982         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
25983         test/Makefile.
25984         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
25985
25986 2002-09-28  Karl Berry  <karl@gnu.org>
25987
25988         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
25989         installed automake until the next release, since changes have been
25990         made.
25991
25992 2002-09-25  Karl Berry  <karl@gnu.org>
25993
25994         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
25995         * lib/getopt*: copy from libc/posix.
25996         * lib/gettext.h: copy from gettext.
25997         * lib/.cppi-disable: add strdup.c, gettext.h.
25998
25999 2002-09-25  Karl Berry  <karl@gnu.org>
26000
26001         * config/srclist.txt: enable gettext.h check.
26002         * config/config.{guess,sub}: update from prep.
26003         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
26004                 from automake 1.6.3.
26005         See srclist*.
26006
26007 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
26008
26009         * regex.c (PATFETCH): Remove the translating fetch.
26010         (PATFETCH_RAW): Rename to PATFETCH.
26011         (set_image_of_range): New fun.
26012         (SET_RANGE_TABLE_WORK_AREA): Use it.
26013         (regex_compile): Don't translate the pattern chars so eagerly.
26014         Only do it when inserting an `exactn' bytecode or when handling
26015         a char-range.
26016         (mutually_exclusive_p): Avoid empty statement.
26017
26018 2002-07-06  Jim Meyering  <meyering@lucent.com>
26019
26020         * m4/README: Don't mention Makefile.am.in.
26021         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
26022
26023 2002-07-01  Jim Meyering  <meyering@lucent.com>
26024
26025         * lib/c-stack.c: Include sys/time.h.
26026         From Volker Borchert.
26027
26028 2002-06-26  Paul Eggert  <eggert@twinsun.com>
26029
26030         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
26031
26032 2002-06-26  Paul Eggert  <eggert@twinsun.com>
26033
26034         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
26035         New macro.  Use it uniformly instead of
26036         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
26037         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
26038         reported by Vin Shelton.
26039
26040 2002-06-22  Paul Eggert  <eggert@twinsun.com>
26041
26042         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
26043         Do not assume SA_SIGINFO behavior.
26044         Bug reported by Jim Meyering on NetBSD 1.5.2.
26045
26046 2002-06-22  Jim Meyering  <meyering@lucent.com>
26047
26048         * m4/c-stack.m4: New file, from diffutils-2.8.2.
26049         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
26050
26051         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
26052         now that configure.ac uses AC_GNU_SOURCE.
26053         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
26054         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
26055
26056         Update to latest tools.  Suggestions from Paul Eggert.
26057         * m4/stdbool.m4: New file, from diffutils-2.8.2.
26058         * m4/gnu-source.m4: Update from diffutils-2.8.2.
26059         * m4/fnmatch.m4: Likewise.
26060         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
26061         to AC_HEADER_STDBOOL
26062
26063 2002-06-22  Jim Meyering  <meyering@lucent.com>
26064
26065         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
26066         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
26067
26068 2002-06-22  Jim Meyering  <meyering@lucent.com>
26069
26070         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
26071
26072         * lib/exitfail.c, exitfail.h: Likewise.
26073         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
26074
26075         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
26076         of fnmatch.h.
26077         (EXTRA_DIST): Add fnmatch_loop.c.
26078         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
26079
26080         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
26081         * lib/fnmatch.c: Update from diffutils-2.8.2.
26082         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
26083         * lib/fnmatch.h: Remove file.
26084
26085 2002-06-21  Jim Meyering  <meyering@lucent.com>
26086
26087         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
26088         * m4/mbrtowc.m4: Likewise.
26089
26090         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
26091         * m4/mbswidth.m4: Reflect name change:
26092         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
26093         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
26094
26095         * m4/lib-link.m4: Update from gettext-0.11.2.
26096         * m4/gettext.m4: Likewise.
26097
26098         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
26099         From Alfred M. Szmidt.
26100
26101 2002-06-18  Paul Eggert  <eggert@twinsun.com>
26102
26103         * lib/file-type.h: Report an error if neither S_ISREG nor
26104         S_IFREG is defined, instead of using a test specific to glibc
26105         2.2.  This should be safe, since POSIX requires S_ISREG and
26106         Unix Version 7 had S_IFREG.  We don't need to check for
26107         <sys/types.h> since we don't use any symbols that it defines.
26108
26109 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
26110
26111         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
26112         $@-t, so that each temporary file name is unique and valid in the first
26113         8 characters, for operation under DOS.
26114
26115 2002-06-15  Paul Eggert  <eggert@twinsun.com>
26116
26117         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
26118
26119 2002-06-15  Jim Meyering  <meyering@lucent.com>
26120
26121         Work even with DJGPP 2.03, which lacks support for symlinks.
26122         From Richard Dawe.
26123         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
26124         is defined.
26125         * lib/lchown.c (S_ISLNK): Likewise.
26126
26127 2002-06-15  Jim Meyering  <meyering@lucent.com>
26128
26129         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
26130         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
26131         have been included before this file.
26132
26133 2002-06-14  Jim Meyering  <meyering@lucent.com>
26134
26135         * lib/file-type.h: Use the version from diffutils-2.8.2.
26136         * lib/file-type.c: Likewise.
26137
26138 2002-06-07  Jim Meyering  <meyering@lucent.com>
26139
26140         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
26141         They're needed at least for NetBSD 1.5.2.
26142         ($statxfs_includes): Include those same headers.
26143         ($statxfs_includes): Include sys/vfs.h if available.
26144         ($statxfs_includes): Likewise for sys/statvfs.h.
26145         Check for the following members in both structs statfs and statvfs:
26146         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
26147
26148 2002-06-01  Jim Meyering  <meyering@lucent.com>
26149
26150         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
26151         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
26152
26153 2002-05-28  Jim Meyering  <meyering@lucent.com>
26154
26155         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
26156         Reported by Volker Borchert.
26157
26158 2002-05-27  Jim Meyering  <meyering@lucent.com>
26159
26160         Fix a problem seen only on nonconforming systems whereby ls.c's
26161         use of localtime, and then of gettimeofday would cause trouble:
26162         the localtime call used to initialize rpl_gettimeofday's save
26163         mechanism would clobber ls's current local time information so
26164         that in any long listing the first file would always be listed
26165         with date 1970-01-01.  Analysis by Volker Borchert.
26166
26167         * lib/gettimeofday.c (localtime): Undefine.
26168         (rpl_localtime): New function.
26169
26170 2002-05-27  Jim Meyering  <meyering@lucent.com>
26171
26172         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
26173         localtime.
26174
26175         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
26176         use the replacement function; it wouldn't resolve at link time.
26177         Reported by Volker Borchert.
26178
26179 2002-05-22  Jim Meyering  <meyering@lucent.com>
26180
26181         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
26182         file-type.h.
26183         * lib/file-type.h: New file.
26184         * lib/file-type.c (file_type): New file/function.  Extracted from
26185         diffutils.
26186
26187 2002-04-30  Jim Meyering  <meyering@lucent.com>
26188
26189         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
26190
26191 2002-04-29  Paul Eggert  <eggert@twinsun.com>
26192
26193         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
26194
26195 2002-04-29  Paul Eggert  <eggert@twinsun.com>
26196
26197         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
26198         Do not check for alloca.h (no longer used) or stdbool.h (was never
26199         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
26200
26201 2002-04-29  Paul Eggert  <eggert@twinsun.com>
26202
26203         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
26204
26205 2002-04-29  Jim Meyering  <meyering@lucent.com>
26206
26207         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
26208         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
26209         Use AC_FUNC_STRNLEN here instead.
26210
26211         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
26212         With autoconf-2.53a, it's part of AC_PROG_CC.
26213
26214 2002-04-28  Paul Eggert  <eggert@twinsun.com>
26215
26216         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
26217         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
26218
26219 2002-04-28  Paul Eggert  <eggert@twinsun.com>
26220
26221         * lib/sig2str.h, lib/sig2str.c: New files.
26222         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
26223
26224 2002-04-28  Paul Eggert  <eggert@twinsun.com>
26225
26226         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
26227         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
26228         of 127, since 64 is the largest conceivable number for ancient
26229         nonstandard hosts.
26230         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
26231
26232 2002-04-28  Jim Meyering  <meyering@lucent.com>
26233
26234         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
26235
26236 2002-04-24  Jim Meyering  <meyering@lucent.com>
26237
26238         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
26239         (jm_PREREQ): Use it.
26240
26241         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
26242         mach/mach.h fcntl.h.
26243         Check for this function: setlocale.
26244
26245 2002-04-24  Jim Meyering  <meyering@lucent.com>
26246
26247         * lib/gettext.h: New file, from Gettext.
26248         * lib/Makefile.am (INCLUDES): Remove -I../intl.
26249         (libfetish_a_SOURCES): Add gettext.h.
26250
26251 2002-04-16  Jim Meyering  <meyering@lucent.com>
26252
26253         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
26254         ut_pid, ut_id, ut_exit.
26255
26256 2002-04-16  Jim Meyering  <meyering@lucent.com>
26257
26258         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
26259         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
26260         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
26261
26262 2002-04-12  Jim Meyering  <meyering@lucent.com>
26263
26264         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
26265         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
26266         existence of the getmntinfo function.  Needed for Darwin 5.3.
26267
26268         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
26269         This is necessary at least on Darwin 5.3.
26270
26271         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
26272         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
26273         strnlen.o in the library, and that makes some versions of ranlib
26274         object.
26275
26276 2002-04-12  Jim Meyering  <meyering@lucent.com>
26277
26278         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
26279
26280 2002-04-09  Jim Meyering  <meyering@lucent.com>
26281
26282         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
26283         to be more precise.  Rather than saying we're checking whether the
26284         function `works', say what we're testing.
26285         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
26286         Reported by Bruno Haible.
26287
26288 2002-03-10  Jim Meyering  <meyering@lucent.com>
26289
26290         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
26291         Suggestion from Santiago Vila.
26292
26293 2002-03-08  Jim Meyering  <meyering@lucent.com>
26294
26295         * lib/rename.c: Mention that this wrapper is needed also on
26296         mips-dec-ultrix4.4 systems.
26297
26298 2002-03-02  Jim Meyering  <meyering@lucent.com>
26299
26300         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
26301         not HAVE_CLOCK_SETTIME.
26302
26303 2002-02-27  Paul Eggert  <eggert@twinsun.com>
26304
26305         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
26306         Check for clock_settime.
26307
26308 2002-02-27  Paul Eggert  <eggert@twinsun.com>
26309
26310         * lib/nanosleep.h: Rename to....
26311         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
26312
26313         * lib/gettime.c: New file.
26314         * lib/settime.c: New file.
26315         * lib/stime.c: Remove.
26316
26317         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
26318         timespec.h.  Remove nanosleep.h.
26319
26320 2002-02-25  Paul Eggert  <eggert@twinsun.com>
26321
26322         * m4/acl.m4: New file.
26323         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
26324         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
26325
26326 2002-02-25  Paul Eggert  <eggert@twinsun.com>
26327
26328         * lib/acl.c, lib/acl.h: New files.
26329         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
26330
26331 2002-02-24  Jim Meyering  <meyering@lucent.com>
26332
26333         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
26334         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
26335         cause trouble.  Reported by Nelson Beebe.
26336
26337 2002-02-23  Paul Eggert  <eggert@twinsun.com>
26338
26339         * lib/path-concat.c (xpath_concat): Reorder code to pacify
26340         compilers that don't know that xalloc_die never returns.
26341
26342 2002-02-20  Jim Meyering  <meyering@lucent.com>
26343
26344         * lib/getdate.c: Regenerate using bison-1.33.
26345
26346 2002-02-17  Jim Meyering  <meyering@lucent.com>
26347
26348         * config/config.guess (main): Don't use `head -1'; it's no longer
26349         portable. Use `sed 1q' instead.
26350
26351 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
26352
26353         * m4/codeset.m4: Upgrade to gettext-0.11.
26354         * m4/gettext.m4: Upgrade to gettext-0.11.
26355         * m4/glibc21.m4: Upgrade to gettext-0.11.
26356         * m4/iconv.m4: Upgrade to gettext-0.11.
26357         * m4/isc-posix.m4: Upgrade to gettext-0.11.
26358         * m4/lcmessage.m4: Upgrade to gettext-0.11.
26359         * m4/lib-ld.m4: New file, from gettext-0.11.
26360         * m4/lib-link.m4: New file, from gettext-0.11.
26361         * m4/lib-prefix.m4: New file, from gettext-0.11.
26362         * m4/progtest.m4: Upgrade to gettext-0.11.
26363
26364 2002-02-15  Paul Eggert  <eggert@twinsun.com>
26365
26366         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
26367         (jm_PREREQ): Use it.
26368
26369 2002-02-15  Paul Eggert  <eggert@twinsun.com>
26370
26371         * lib/posixver.c, lib/posixver.h: New files.
26372         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
26373
26374 2002-02-02  Paul Eggert  <eggert@twinsun.com>
26375             Bruno Haible  <bruno@clisp.org>
26376
26377         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
26378         (fwrite_success_callback): New declaration.
26379         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
26380         print_unicode_char. Call failure callback instead of error.
26381         (fwrite_success_callback): New function.
26382         (exit_failure_callback): New function.
26383         (fallback_failure_callback): New function.
26384         (print_unicode_char): Call unicode_to_mb.
26385
26386 2002-01-26  Jim Meyering  <meyering@lucent.com>
26387
26388         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
26389         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
26390
26391 2002-01-26  Jim Meyering  <meyering@lucent.com>
26392
26393         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
26394
26395 2002-01-22  Paul Eggert  <eggert@twinsun.com>
26396
26397         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
26398
26399 2002-01-22  Jim Meyering  <meyering@lucent.com>
26400
26401         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
26402         Otherwise, some versions of automake would omit the rule that makes
26403         Makefile from Makefile.in.
26404
26405 2002-01-21  Paul Eggert  <eggert@twinsun.com>
26406
26407         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
26408         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
26409         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
26410         (memcoll): Set errno to zero if there is no error.
26411
26412         * lib/quotearg.c (quotearg_buffer_restyled):
26413         Fix bug with quoting buffers containing NUL when backslashing escapes.
26414         This bug was exposed by the other changes in this patch.
26415         (quotearg_n_options): New arg ARGSIZE.
26416         All callers changed.
26417         (quoting_options_from_style): New function.
26418         (quotearg_n_style): Use it.
26419         (quotearg_n_style_mem): New function.
26420
26421         * lib/quotearg.h (quotearg_n_style_mem): New function.
26422
26423 2002-01-19  Jim Meyering  <meyering@lucent.com>
26424
26425         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
26426         Remove useless quotes: DF_PROG="df".
26427         * m4/strnlen.m4: New file.
26428
26429 2002-01-16  Paul Eggert  <eggert@twinsun.com>
26430
26431         * lib/backupfile.c (ISDIGIT): Comment fix.
26432         * lib/getdate.y (ISDIGIT): Likewise.
26433         * lib/posixtm.c (ISDIGIT, year): Likewise.
26434         * lib/strverscmp.c (ISDIGIT): Likewise.
26435         * lib/userspec.c (ISDIGIT): Likewise.
26436
26437 2002-01-16  Jim Meyering  <meyering@lucent.com>
26438
26439         * lib/getdate.y: Add three semicolons, each just before a closing
26440         brace. Bison (as of version 1.31) no longer papers over that mistake.
26441
26442 2002-01-05  Jim Meyering  <meyering@lucent.com>
26443
26444         * lib/version-etc.c (version_etc_copyright): Update copyright year.
26445
26446 2001-12-19  Paul Eggert  <eggert@twinsun.com>
26447
26448         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
26449         not silently exit merely because the output buffer happens to
26450         have nothing pending.
26451
26452 2001-12-18  Paul Eggert  <eggert@twinsun.com>
26453
26454         See the big note in ../ChangeLog.
26455         * lib/human.c (suffixes): Prefer K to k for 1024.
26456         (generate_suffix_backwards): New function.
26457         (human_readable_inexact): Use it.
26458         * lib/xstrtol.c (__xstrtol): If there is no number but there
26459         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
26460         Accept 'K' as well as 'k'.
26461
26462 2001-12-15  Jim Meyering  <meyering@lucent.com>
26463
26464         * lib/regex.h (__restrict_arr): Update from libc.
26465
26466         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
26467         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
26468         (STREQ): Define.
26469
26470 2001-12-14  Jim Meyering  <meyering@lucent.com>
26471
26472         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
26473         Suggestion from Bruno Haible.
26474
26475 2001-12-10  Jim Meyering  <meyering@lucent.com>
26476
26477         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
26478         xrealloc, Instead, include "xalloc.h".
26479         (initbuffer): Don't cast xmalloc return value to char*.
26480         (readline): Reword comment.
26481         Don't cast xrealloc return value to char*
26482         Return NULL, not 0.
26483
26484 2001-12-09  Jim Meyering  <meyering@lucent.com>
26485
26486         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
26487         about `signed and unsigned type in conditional expression'.
26488         * lib/posixtm.c (posix_time_parse): Likewise.
26489
26490         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
26491
26492         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
26493         to avoid a pedantic warning.
26494
26495         * lib/getstr.c: Don't include assert.h.
26496         (getstr): Remove warning-evoking assertions.
26497         Return -1 if offset parameter is out of bounds.
26498         Change the type of a local from int to size_t.
26499
26500         * lib/strftime.c (my_strftime_localtime_r): Include this function
26501         definition in the `#if ! HAVE_TM_GMTOFF' block.
26502
26503         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
26504         Include xalloc.h instead.
26505
26506 2001-12-02  Jim Meyering  <meyering@lucent.com>
26507
26508         * lib/tempname.c: Don't declare getenv, thus reverting the change of
26509         2001-11-18.  It's no longer necessary, now that stdlib.h is always
26510         included.
26511
26512         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
26513         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
26514
26515 2001-11-30  Akim Demaille  <akim@epita.fr>
26516
26517         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
26518         before being defined.
26519
26520 2001-11-27  Paul Eggert  <eggert@twinsun.com>
26521
26522         * lib/quotearg.h (quotearg_n, quotearg_n_style):
26523         First arg is int, not unsigned.
26524         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
26525         (SIZE_MAX, UINT_MAX): New macros.
26526         (quotearg_n_options): Abort if N is negative.
26527         Avoid overflow check on hosts where size_t is 64 bits and int
26528         is 32 bits, as overflow is impossible there.
26529         Fix off-by-one typo that caused unnecessary reallocation.
26530
26531 2001-11-27  Jim Meyering  <meyering@lucent.com>
26532
26533         * lib/tempname.c: Merge with version from libc.
26534         * lib/regex.c: Likewise.
26535
26536         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
26537         systems for which STDC_HEADERS is 0, it was not included, resulting in
26538         a warning about an integer-to-pointer conversion problem with getenv.
26539         Reported by Volker Borchert.
26540
26541 2001-11-26  Jim Meyering  <meyering@lucent.com>
26542
26543         * lib/gtod.h: Remove file.
26544         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
26545         * lib/gettimeofday.c: Don't include gtod.h.
26546         (GTOD_init): Remove function.
26547         (rpl_gettimeofday): Do its job here instead, rather than aborting.
26548         Suggestion from Volker Borchert.
26549
26550 2001-11-23  Jim Meyering  <meyering@lucent.com>
26551
26552         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
26553         it.
26554         * lib/hash.c (struct hash_table): Define it here instead.
26555
26556 2001-11-22  Jim Meyering  <meyering@lucent.com>
26557
26558         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
26559
26560 2001-11-20  Jim Meyering  <meyering@lucent.com>
26561
26562         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
26563         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
26564
26565 2001-11-19  Jim Meyering  <meyering@lucent.com>
26566
26567         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
26568         directory.  Use "conftestXXXXXX" as the template.
26569         Suggestion from Paul Eggert.
26570
26571         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
26572         immediately, so the test doesn't mistakenly hit the max-open-files
26573         limit.
26574
26575 2001-11-18  Paul Eggert  <eggert@twinsun.com>
26576
26577         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
26578         (TEMPORARIES): New macro.
26579         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
26580         removes an artificial limitation (e.g. HP-UX 10.20, where
26581         TMP_MAX is 17576).
26582
26583 2001-11-18  Jim Meyering  <meyering@lucent.com>
26584
26585         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
26586
26587 2001-11-18  Jim Meyering  <meyering@lucent.com>
26588
26589         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
26590         on SunOS 4.
26591
26592         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
26593         files will be created before anything else.
26594
26595 2001-11-17  Paul Eggert  <eggert@twinsun.com>
26596
26597         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
26598         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
26599
26600 2001-11-17  Jim Meyering  <meyering@lucent.com>
26601
26602         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
26603         Prompted by a report from Bob Proulx.
26604
26605         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
26606         Instead, require UTILS_FUNC_MKSTEMP.
26607
26608 2001-11-17  Jim Meyering  <meyering@lucent.com>
26609
26610         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
26611         Now, that's done as part of AC_FUNC_STRTOD.
26612
26613 2001-11-17  Jim Meyering  <meyering@lucent.com>
26614
26615         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
26616         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
26617         rather than group writable.  Patch by Juan F. Codagnone.
26618
26619         * lib/readtokens.c: Remove explicit declarations of xmalloc and
26620         xrealloc, Instead, include "xalloc.h".
26621
26622         * lib/mountlist.c: Include unlocked-io.h after all system headers.
26623         Remove explicit declarations of xmalloc, xrealloc,
26624         and xstrdup.  Instead, include "xalloc.h".
26625
26626         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
26627         unlocked-io.h.
26628         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
26629         Likewise.
26630         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
26631
26632         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
26633         Reported by Padraig Brady.
26634
26635         * lib/mkstemp.c: #undef mkstemp.
26636         Include config.h.
26637         (rpl_mkstemp): Rename from mkstemp.
26638         Protoize.
26639
26640 2001-11-16  Jim Meyering  <meyering@lucent.com>
26641
26642         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
26643         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
26644         determine the amount of total physical memory, use pstat_getstatic.
26645         HPUX-11 doesn't define _SC_PHYS_PAGES.
26646         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
26647         If sysconf couldn't be used to determine the amount of available
26648         physical memory, use both pstat_getstatic and pstat_getdynamic.
26649         Based on a patch from Bob Proulx.
26650
26651 2001-11-10  Jim Meyering  <meyering@lucent.com>
26652
26653         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
26654         (jm_PREREQ): Use it.
26655
26656 2001-11-09  Jim Meyering  <meyering@lucent.com>
26657
26658         * m4/jm-macros.m4: Require autoconf-2.52f.
26659         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
26660         Use these AC_-prefixed names, not the AM_-prefixed ones.
26661
26662         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
26663
26664 2001-11-05  Jim Meyering  <meyering@lucent.com>
26665
26666         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
26667
26668 2001-11-04  Jim Meyering  <meyering@lucent.com>
26669
26670         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
26671         $DEFS.
26672
26673 2001-11-03  Jim Meyering  <meyering@lucent.com>
26674
26675         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
26676         of AC_DEFUN.
26677
26678         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
26679         know the name of the variable in the macro definition.
26680
26681 2001-11-03  Jim Meyering  <meyering@lucent.com>
26682
26683         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
26684         in argmatch_to_argument call.
26685
26686         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
26687         argument.
26688
26689         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
26690         e.g., a fault due to an attempt to free a NULL pointer.
26691
26692 2001-11-01  Jim Meyering  <meyering@lucent.com>
26693
26694         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
26695         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
26696
26697 2001-11-01  Jim Meyering  <meyering@lucent.com>
26698
26699         * lib/dirfd.c, lib/dirfd.h: New files.
26700         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
26701
26702         * lib/hash.c (hash_print) [TESTING]: Clean up.
26703
26704 2001-10-22  Paul Eggert  <eggert@twinsun.com>
26705
26706         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
26707         to avoid a warning if -Wall.
26708
26709 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
26710
26711         * README: New file
26712         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
26713         (per RMS's instructions, this is now the canonical source)
26714         * lgpl/, gpl/: New directories.
26715
26716 2001-10-21  Paul Eggert  <eggert@twinsun.com>
26717
26718         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
26719
26720 2001-10-21  Jim Meyering  <meyering@lucent.com>
26721
26722         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
26723         this code would end up calling gettext even in packages built
26724         with --disable-nls.
26725         * lib/getopt.c (_): Likewise.
26726         * lib/regex.c (_): Likewise.
26727
26728 2001-10-20  Paul Eggert  <eggert@twinsun.com>
26729
26730         * m4/error.m4 (jm_PREREQ_ERROR):
26731         Do not invoke AC_CHECK_FUNCS with strerror_r, as
26732         AC_FUNC_STRERROR_R does that.
26733         Check for strerror declaration.
26734
26735         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
26736         are supposed to have them these days.
26737         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
26738         Merge changes from latest Autoconf CVS.
26739         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
26740         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
26741         POSIX decided to standardize on the int flavor of strerror_r.
26742
26743 2001-10-20  Paul Eggert  <eggert@twinsun.com>
26744
26745         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
26746         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
26747         Use strerror_r that is only a macro, even if it is not a function.
26748         (strerror): Check for HAVE_DECL_STRERROR before declaring.
26749         (private_strerror): Use prototypes, not old-style function definition.
26750         (print_errno_message): New function.
26751         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
26752         char*-flavored one.
26753         (error_tail, error, error_at_line): Use it.
26754
26755 2001-10-11  Jim Meyering  <meyering@lucent.com>
26756
26757         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
26758         and quote_n (1, ... to avoid clobbering a buffer.
26759
26760 2001-10-05  Jim Meyering  <meyering@lucent.com>
26761
26762         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
26763         hash-pjw.h.
26764         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
26765         * lib/hash-pjw.h: New file.
26766
26767 2001-09-30  Jim Meyering  <meyering@lucent.com>
26768
26769         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
26770         `struct fsstat' has the `f_fstypename' member.
26771         Use that to define FS_TYPE, which is now used to make
26772         the getfsstat link test tighter.
26773
26774 2001-09-30  Jim Meyering  <meyering@lucent.com>
26775
26776         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
26777         Include <sys/ucred.h>, for Apple Darwin.
26778         Include sys/mount.h and sys/fs_types.h only if available.
26779         (FS_TYPE): Define.
26780         (read_filesystem_list): Use FS_TYPE.
26781
26782 2001-09-29  Paul Eggert  <eggert@twinsun.com>
26783
26784         * lib/exclude.c (excluded_filename): 0 -> false, since it's
26785         a boolean context.
26786
26787 2001-09-29  Jim Meyering  <meyering@lucent.com>
26788
26789         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
26790         [one-argument getmntent function]): Include stdio.h before mntent.h.
26791         SunOS 4.1.x needs it for the declaration of `FILE'.
26792         Patch by Volker Borchert.
26793
26794         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
26795         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
26796         sys/fs_types.h, and make the link-test for getfsstat guard #include
26797         directives with appropriate #if HAVE_*_H tests so that we can
26798         detect getfsstat on Apple Darwin1.3.7 systems.
26799         Reported by Nelson Beebe.
26800         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
26801
26802 2001-09-28  Paul Eggert  <eggert@twinsun.com>
26803
26804         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
26805         #defines strtoimax.  Also treat the other strto* functions
26806         like strtoimax.
26807
26808         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
26809         Check for strtoul and strtoumax,
26810         as those declarations are made even in the signed case.
26811         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
26812         Likewise, for strtol and strtoimax.
26813
26814 2001-09-28  Paul Eggert  <eggert@twinsun.com>
26815
26816         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
26817         #defines strtoimax.  Also treat the other strto* functions
26818         like strtoimax.
26819
26820         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
26821         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
26822         (strtoimax, strtoumax): Do not declare if already defined as a macro.
26823
26824 2001-09-26  Jim Meyering  <meyering@lucent.com>
26825
26826         Most macros in unlocked-io.h had the wrong number of arguments.
26827         * lib/gen-uio: New script.
26828         (USE_UNLOCKED_IO): Define to 1 if not already defined.
26829         * lib/unlocked-io.hin: Remove file.
26830         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
26831         rather than trying to embed it here.
26832         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
26833         Reported by Padraig Brady.
26834
26835 2001-09-25  Volker Borchert  <bt@teknon.de>
26836
26837         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
26838         `result'.
26839
26840 2001-09-24  Jim Meyering  <meyering@lucent.com>
26841
26842         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
26843
26844 2001-09-23  Jim Meyering  <meyering@lucent.com>
26845
26846         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
26847         instead of the mere test for existence of mntent.h.  The latter
26848         would get a false-positive on AIX 3.4 systems.
26849         In the outer getmntent if-block, don't die if neither of the getmntent
26850         tests succeeds.  Instead, just fall through and continue with the
26851         remaining tests.
26852
26853 2001-09-23  Jim Meyering  <meyering@lucent.com>
26854
26855         * lib/mountlist.c: Remove useless parentheses in #if directives.
26856         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
26857         the deprecated MOUNTED symbol is no longer defined in mntent.h.
26858
26859 2001-09-22  Jim Meyering  <meyering@lucent.com>
26860
26861         * m4/gettext.m4: New file.  From gettext.
26862         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
26863         * m4/progtest.m4: Likewise
26864         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
26865         * m4/glibc21.m4: Likewise.
26866
26867         * m4/libintl.m4: Remove.  No longer used.
26868
26869 2001-09-22  Jim Meyering  <meyering@lucent.com>
26870
26871         * lib/localcharset.c: Update from latest gettext.
26872         * lib/config.charset: Likewise.
26873
26874 2001-09-20  Jim Meyering  <meyering@lucent.com>
26875
26876         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
26877         strtoimax.
26878         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
26879         strtoumax.
26880
26881 2001-09-20  Jim Meyering  <meyering@lucent.com>
26882
26883         * lib/xstrtol.c (strtoimax): Guard declaration with
26884         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
26885         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
26886         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
26887         (strtoumax): Likewise, for completeness (it wasn't necessary).
26888
26889 2001-09-17  Paul Eggert  <eggert@twinsun.com>
26890
26891         * lib/strtoimax.c (HAVE_LONG_LONG):
26892         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
26893         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
26894         to work around bug in IBM C compiler.
26895
26896 2001-09-17  Jim Meyering  <meyering@lucent.com>
26897
26898         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
26899         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
26900         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
26901         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
26902         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
26903         whenever the right hand side need not be expanded by the shell.
26904
26905 2001-09-16  Paul Eggert  <eggert@twinsun.com>
26906
26907         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
26908         library.  It's not correct, as some older glibcs are buggy.
26909         fnmatch wasn't fixed until glibc 2.2.
26910
26911         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
26912         special shell magic here.
26913
26914 2001-09-16  Jim Meyering  <meyering@lucent.com>
26915
26916         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
26917         * m4/jm-macros.m4: Require it.
26918
26919 2001-09-16  Jim Meyering  <meyering@lucent.com>
26920
26921         * lib/mkdir.c: New file.
26922
26923 2001-09-15  Jim Meyering  <meyering@lucent.com>
26924
26925         * m4/jm-macros.m4: Check for help2man.
26926
26927 2001-09-11  Jim Meyering  <meyering@lucent.com>
26928
26929         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
26930         The body, by Paul Eggert, was moved here from configure.in.
26931         * m4/jm-macros.m4: Require UTILS_HOST_OS.
26932
26933 2001-09-04  Paul Eggert  <eggert@twinsun.com>
26934
26935         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
26936         (jm_PREREQ): Use it.
26937
26938 2001-09-04  Paul Eggert  <eggert@twinsun.com>
26939
26940         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
26941         Use ssize_t, not int, to store result of readlink.
26942         Check for ssize_t overflow as well as size_t overflow,
26943         as POSIX says the result of readlink is implementation-defined
26944         when ssize_t overflows.
26945         Remove unnecessary cast to char*.
26946         Use free+malloc instead of realloc, as the storage doesn't need
26947         to be preserved and it's clearer and can be more efficient that way.
26948         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
26949         * lib/xreadlink.h (xreadlink): Update prototype.
26950
26951 2001-09-04  Paul Eggert  <eggert@twinsun.com>
26952
26953         * lib/xgetcwd.c: Revert some of the previous change; intead,
26954         fix the HAVE_GETCWD_NULL code to behave more like the
26955         !HAVE_GETCWD_NULL code used to.
26956
26957         Include "xalloc.h".
26958         (xgetcwd): Do not return NULL when memory is exhausted; instead,
26959         invoke xalloc_die.
26960
26961 2001-09-03  Paul Eggert  <eggert@twinsun.com>
26962
26963         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
26964         sys/param.h, as pathmax.h includes them.
26965
26966 2001-09-03  Paul Eggert  <eggert@twinsun.com>
26967
26968         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
26969         (jm_PREREQ_XGETCWD): New macro.
26970
26971         * m4/getcwd.m4: New file.
26972
26973 2001-09-03  Paul Eggert  <eggert@twinsun.com>
26974
26975         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
26976         like the HAVE_GETCWD_NULL code.
26977         Include pathmax.h if not HAVE_GETCWD.
26978         Do not include xalloc.h.
26979         (INITIAL_BUFFER_SIZE): New symbol.
26980         Do not use xmalloc / xrealloc, since the caller is responsible for
26981         handling errors.  Preserve errno around `free' during failure.
26982         Do not overrun buffer when using getwd.
26983
26984 2001-09-03  Paul Eggert  <eggert@twinsun.com>
26985
26986         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
26987         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
26988         getcwd (NULL, 0).
26989
26990 2001-09-03  Paul Eggert  <eggert@twinsun.com>
26991
26992         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
26993         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
26994         spotted by Jim Meyering.
26995
26996 2001-09-03  Jim Meyering  <meyering@lucent.com>
26997
26998         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
26999         failure.
27000
27001 2001-09-02  Jim Meyering  <meyering@lucent.com>
27002
27003         * lib/error.c: Update from GNU libc.
27004
27005 2001-09-01  Jim Meyering  <meyering@lucent.com>
27006
27007         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
27008         Used by df.
27009
27010 2001-09-01  Jim Meyering  <meyering@lucent.com>
27011
27012         * lib/xreadlink.c: New file.
27013         * lib/xreadlink.h: New file.
27014         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
27015         xreadlink.h.
27016
27017         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
27018         doesn't conflict with sparc Solaris 7's definition in
27019         /usr/include/sys/int_types.h.
27020
27021         * lib/exclude.c: Use `""', not `<>' to #include non-system header
27022         files.
27023         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
27024         and strncasecmp as r-values.  Unixware didn't have declarations.
27025
27026 2001-08-31  Paul Eggert  <eggert@twinsun.com>
27027
27028         * lib/xstrtol.h: Add copyright notice.
27029         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
27030         LONGINT_INVALID_SUFFIX_CHAR.
27031
27032 2001-08-31  Paul Eggert  <eggert@twinsun.com>
27033
27034         * lib/xstrtol.c (strtoimax): New decl.
27035
27036 2001-08-31  Paul Eggert  <eggert@twinsun.com>
27037
27038         * lib/xgetcwd.c: Don't include pathmax.h.
27039         Include stdlib.h and unistd.h if available.
27040         Include xalloc.h.
27041         (xmalloc, xstrdup, free): Remove decls.
27042         (xgetcwd): Don't assume sizes fit in unsigned.
27043         Check for overflow when computing sizes.
27044         Simplify reallocation code.
27045
27046 2001-08-31  Paul Eggert  <eggert@twinsun.com>
27047
27048         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
27049         a directory's st_size can have an arbitrary value, so the old
27050         usage could waste an arbitrary amount of memory.  All uses
27051         changed.
27052         * lib/savedir.h: Update prototype.
27053
27054 2001-08-31  Paul Eggert  <eggert@twinsun.com>
27055
27056         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
27057
27058         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
27059         old strtoimax.c.
27060
27061         Also, make the following further changes to make this file's
27062         configuration more similar to that of strtol.c:
27063         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
27064         (strtoumax, uintmax_t, strtoull, strtol): Remove.
27065         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
27066         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
27067         changed to signed values.
27068
27069         And make the following changes as well:
27070         Fix copyright notice, as 1999 was missing.
27071         (verify): New macro.
27072         (strtoimax): Check sizes at compile-time, not run-time.
27073         Prefer strtol to strtoll if both work.
27074         (main): Remove; it was not that useful and was a pain to maintain.
27075
27076         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
27077
27078 2001-08-31  Jim Meyering  <meyering@lucent.com>
27079
27080         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
27081         Use an initial, malloc'd, buffer of length 128 rather than
27082         a statically allocated one of length 1024.
27083
27084 2001-08-30  Paul Eggert  <eggert@twinsun.com>
27085
27086         Simplify code, partly by assuming autoconf 2.52 semantics.
27087
27088         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
27089
27090         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
27091         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
27092         All uses removed.
27093         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
27094         Move AC_REQUIRE to next-to-top level, to avoid confusion.
27095         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
27096         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
27097         jm_AC_HEADER_INTTYPES_H.
27098         * m4/jm-macros.m4 (jm_MACROS): Likewise.
27099
27100         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
27101
27102         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
27103         Quote first arg of AC_DEFUN.
27104         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
27105         since they are needed to parse the include file even if we need
27106         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
27107         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
27108         but with opposite signedness.
27109
27110 2001-08-30  Paul Eggert  <eggert@twinsun.com>
27111
27112         Merge 'exclude' changes from tar 1.13.22.
27113         This fixes one or two unlikely storage allocation overflow bugs,
27114         but doesn't change user-visible behavior otherwise.
27115
27116 2001-08-30  Paul Eggert  <eggert@twinsun.com>
27117
27118         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
27119         (jm_PREREQ_EXCLUDE): New macro.
27120
27121 2001-08-30  Paul Eggert  <eggert@twinsun.com>
27122
27123         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
27124         tm to be declared.
27125
27126 2001-08-30  Paul Eggert  <eggert@twinsun.com>
27127
27128         * lib/hash.c: Remove '2001' from copyright notice.
27129
27130 2001-08-30  Paul Eggert  <eggert@twinsun.com>
27131
27132         * lib/full-write.h: New file.
27133         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
27134         * lib/full-write.c: Correct credits, as cccp.c no longer
27135         exists and anyway it was so heavily changed from the old cccp
27136         code as to be unrecognizable.  Include full-write.h.
27137         (full_write) Return size_t, with short writes meaning failure.
27138         All callers changed.  This fixes a bug with large buffers
27139         on 64-bit hosts.
27140         * lib/utime.c: Include full-write.h.
27141
27142 2001-08-30  Paul Eggert  <eggert@twinsun.com>
27143
27144         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
27145         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
27146         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
27147         Include if available.
27148         (<xalloc.h>): Include
27149         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
27150         (verify): New macro.  Use it to verify that EXCLUDE macros do not
27151         collide with FNM macros.
27152         (struct patopts): New struct.
27153         (struct exclude): Use it, as exclude patterns now come with options.
27154         (new_exclude): Support above changes.
27155         (new_exclude, add_exclude_file):
27156         Initial size must now be a power of two to simplify overflow checking.
27157         (free_exclude, fnmatch_no_wildcards): New function.
27158         (excluded_filename): No longer requires options arg, as the options
27159         are determined by add_exclude.  Now returns bool, not int.
27160         (excluded_filename, add_exclude):
27161         Add support for the fancy new exclusion options.
27162         (add_exclude, add_exclude_file): Now takes int options arg.
27163         Check for arithmetic overflow when computing sizes.
27164         (add_exclude_file): xrealloc might modify errno, so don't
27165         realloc until after errno might be used.
27166
27167         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
27168         New macros.
27169         (free_exclude): New decl.
27170         (add_exclude, add_exclude_file): Now takes int options arg.
27171         (excluded_filename): No longer requires options arg, as the options
27172         are determined by add_exclude.  Now returns bool, not int.
27173
27174 2001-08-30  Paul Eggert  <eggert@twinsun.com>
27175
27176         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
27177
27178 2001-08-27  Jim Meyering  <meyering@lucent.com>
27179
27180         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
27181
27182         * lib/version-etc.c (N_): Remove definition.
27183         Revert most of last change.
27184         Instead, simply don't mark the `Copyright...' string for translation.
27185         Based on advice from Paul Eggert.
27186
27187         * lib/strtoxmax.c: Tweak comment.
27188
27189 2001-08-26  Jim Meyering  <meyering@lucent.com>
27190
27191         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
27192
27193         * m4/xstrtoimax.m4: New file.
27194         * m4/xstrtoumax.m4: Add comments explaining why we
27195         AC_REPLACE_FUNCS(strtol).
27196
27197 2001-08-26  Jim Meyering  <meyering@lucent.com>
27198
27199         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
27200         of copyright with `%s' so translators don't get an untranslated
27201         message in 2002.
27202         (COPYRIGHT_YEAR): Define.
27203         (version_etc): Use fprintf rather than fputs.
27204         Suggestion from Ulrich Drepper.
27205
27206         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
27207
27208         * lib/strtoll.c: New file, from GNU libc.
27209         * lib/xstrtoimax.c: New file.
27210
27211         * lib/xstrtol.h: Add xstrtoimax.
27212         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
27213         * lib/strtoimax.c: New file.  Likewise, but first define
27214         STRTOUXMAX_SIGNED.
27215
27216         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
27217         ...
27218         * lib/strtoxmax.c: ... then renamed to this.
27219
27220 2001-08-18  Paul Eggert  <eggert@twinsun.com>
27221
27222         * m4/inttypes.m4: Add AC_PREREQ(2.13).
27223         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
27224         (jm_AC_TYPE_INTMAX_T): New macro.
27225         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
27226
27227         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
27228
27229         * m4/longlong.m4: Renamed from ulonglong.m4.
27230         * m4/inttypes.m4: Renamed from inttypes_h.m4.
27231         * m4/uintmax_t.m4: Removed.
27232
27233 2001-08-13  Paul Eggert  <eggert@twinsun.com>
27234
27235         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
27236         Port to Solaris 8, where 'sed' requires a space after the 'r'
27237         command, and where sh dislikes "$/".  Clean up the spacing a bit.
27238         Redirect output to $tmp just once.
27239
27240 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
27241
27242         * lib/addext.c (<errno.h>): Include.
27243         (errno): Declare if not defined.
27244         (addext): Work correctly when pathconf returns -1 and leaves
27245         errno alone because there is no limit.  Also, work even if
27246         pathconf returns a value greater than SIZE_MAX.
27247
27248 2001-08-12  Jim Meyering  <meyering@lucent.com>
27249
27250         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
27251         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
27252         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
27253         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
27254         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
27255         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
27256         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
27257         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
27258         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
27259         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
27260         utime.m4, utimes.m4, xstrtoumax.m4:
27261         Quote the first argument in each use of AC_DEFUN.
27262
27263 2001-08-12  Jim Meyering  <meyering@lucent.com>
27264
27265         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
27266         Simply `return getcwd (NULL, 0);'.
27267         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
27268         Use 1300 as initial value for length, not PATH_MAX.
27269
27270         * lib/pathmax.h: Clean up cpp syntax.
27271
27272 2001-08-12  Jim Meyering  <meyering@lucent.com>
27273
27274         * lib/gettimeofday.c: New file.
27275         * lib/gtod.h: New file.
27276         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
27277
27278 2001-08-05  Jim Meyering  <meyering@lucent.com>
27279
27280         * m4/jm-macros.m4: Require autoconf-2.52.
27281
27282 2001-08-04  Jim Meyering  <meyering@lucent.com>
27283
27284         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
27285         stmt, to get in sync with glibc.
27286
27287 2001-08-03  Paul Eggert  <eggert@twinsun.com>
27288
27289         The following changes are from gettext 0.10.39 as maintained by
27290         Bruno Haible.
27291
27292         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
27293         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
27294         with inverted sense.  All uses changed.
27295
27296         * lib/mbswidth.c: Don't include <limits.h>.
27297         Include <stdlib.h> and <string.h> unconditionally.
27298         (iswcntrl, mbsinit, ISCNTRL): New macros.
27299         (mbsnwidth): Use K&R style function declarations.
27300         Don't bother checking for MB_LEN_MAX == 1, since the compiler
27301         can optimize it when MB_CUR_MAX == 1.
27302         The width of control characters is zero, not 1.
27303
27304 2001-08-03  Paul Eggert  <eggert@twinsun.com>
27305
27306         The following changes are from gettext 0.10.39 as maintained by
27307         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
27308
27309         * m4/codeset.m4: Upgrade to serial AM1.
27310         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
27311         all uses changed.  Quote first arg of AC_DEFUN.
27312         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
27313
27314         * m4/iconv.m4: Upgrade to serial AM2.
27315         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
27316         Add --with-libconv-prefix.
27317         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
27318         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
27319         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
27320         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
27321         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
27322
27323         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
27324         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
27325         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
27326         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
27327         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
27328         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
27329         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
27330         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
27331         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
27332
27333         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
27334         string.h any more.
27335
27336         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
27337         not the default value.
27338
27339         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
27340         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
27341         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
27342         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
27343         Also check for iswcntrl, used for wcwidth fallback.
27344         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
27345         to Autoconf 2.13.
27346
27347 2001-08-03  Jim Meyering  <meyering@lucent.com>
27348
27349         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
27350         as it was in the original.  Reported by Paul Eggert.
27351
27352 2001-07-16  Jim Meyering  <meyering@lucent.com>
27353
27354         * m4/gettimeofday.m4: New file.
27355         Prompted by a report from Bernhard Baehr.
27356
27357 2001-07-15  Jim Meyering  <meyering@lucent.com>
27358
27359         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
27360         stuff. Now it's in ../Makefile.cfg.
27361
27362 2001-07-15  Jim Meyering  <meyering@lucent.com>
27363
27364         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
27365         (BUILT_SOURCES): Add unlocked-io.h.
27366         (io_functions): Define.
27367         (unlocked-io.h): New rule.
27368         (DISTCLEANFILES): Add unlocked-io.h.
27369         (all-local): Depend on unlocked-io.h, to ensure it is created.
27370
27371         * lib/unlocked-io.hin: New file
27372
27373         * lib/regex.c: Update from glibc.
27374
27375 2001-07-05  Jim Meyering  <meyering@lucent.com>
27376
27377         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
27378         recommendation.
27379         (libfetish_a_SOURCES): Put all .h files here instead.
27380         Remove a thus-exposed (better checks in automake) duplicate and
27381         two unnecessary .h files.
27382
27383 2001-07-04  Jim Meyering  <meyering@lucent.com>
27384
27385         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
27386         that generates jm-glibc-io.m4 so that it doesn't trigger any make
27387         distcheck failure.
27388
27389 2001-07-02  Jim Meyering  <meyering@lucent.com>
27390
27391         The following changes were prompted by suggestions from Bruno Haible.
27392
27393         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
27394         is now generated.
27395         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
27396         definition of EXTRA_DIST.
27397         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
27398         ensure that the generated file is created/updated whenever the list
27399         of $(unlocked_functions) is changed.
27400         (jm-glibc-io.m4): New rule.
27401         (unlocked-io.h): New rule -- currently unused.
27402
27403 2001-06-24  Jim Meyering  <meyering@lucent.com>
27404
27405         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
27406         unmatched right bracket, rather than kludging it with an extra,
27407         falsely-matching quote in a comment.  Patch by Akim Demaille.
27408
27409 2001-06-11  Jim Meyering  <meyering@lucent.com>
27410
27411         * lib/regex.c: Update from GNU libc.
27412
27413 2001-05-27  Jim Meyering  <meyering@lucent.com>
27414
27415         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
27416         Check for ut_type in struct utmp.
27417
27418 2001-05-27  Jim Meyering  <meyering@lucent.com>
27419
27420         * lib/readutmp.h (UT_TYPE): Define.
27421
27422 2001-05-24  Jim Meyering  <meyering@lucent.com>
27423
27424         * lib/argmatch.c: Include "quote.h".
27425         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
27426         quote function.  Reported by Göran Uddeborg.
27427
27428 2001-05-22  Jim Meyering  <meyering@lucent.com>
27429
27430         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
27431         now that we use the package-supplied version unconditionally.
27432         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
27433
27434 2001-05-21  Jim Meyering  <meyering@lucent.com>
27435
27436         * m4/regex.m4: Change a couple backticks to single quotes to avoid
27437         shell syntax errors.
27438
27439 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
27440
27441         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
27442
27443 2001-05-20  Paul Eggert  <eggert@twinsun.com>
27444
27445         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
27446         Don't bother to check library strftime, since
27447         we'll be using our own my_strftime function anyway.
27448         Define my_strftime instead of strftime.
27449
27450 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
27451
27452         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
27453         which is not yet declared.
27454
27455 2001-05-15  Jim Meyering  <meyering@lucent.com>
27456
27457         * m4/regex.m4: Use proper quoting so brackets appear in the test
27458         program.
27459         Reported by, and with help from, Bruno Haible.
27460
27461 2001-05-13  Jim Meyering  <meyering@lucent.com>
27462
27463         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
27464         undefined.
27465
27466 2001-05-11  Paul Eggert  <eggert@twinsun.com>
27467
27468         dirname code cleanup.  base_name now behaves more compatibly
27469         with POSIX basename when given file names that have trailing
27470         slashes, and similarly for dir_name.  Add new primitives
27471         base_len and dir_len.  Put the directory-name-related decls
27472         into dirname.h.
27473
27474         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
27475         * lib/backupfile.c (base_name): Likewise.
27476         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
27477         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
27478         * lib/makepath.c (strip_trailing_slashes): Likewise.
27479         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
27480         ISSLASH): Likewise.
27481         * lib/rename.c (strip_trailing_slashes): Likewise.
27482         * lib/same.c (base_name): Likewise.
27483         * lib/stripslash.c (ISSLASH): Likewise.
27484
27485         * lib/addext.c: Include <dirname.h> after size_t is defined.
27486         * lib/backupfile.c: Likewise.
27487
27488         * lib/addext.c (addext): Use base_len to trim redundant
27489         trailing slashes instead of doing it ourselves.
27490         But do not trim the last slash if it is not redundant.
27491
27492         * lib/backupfile.c (find_backup_file_name,
27493         max_backup_version): Use base_len instead of rolling it ourselves.
27494         Handle the case of "" and (on DOS) "C:" correctly.
27495
27496         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
27497         needed. Include <string.h>, <dirname.h>.
27498         (base_name): Allow file names ending in slashes, other than names
27499         that are all slashes.  In this case, return the basename followed
27500         by the slashes.  This is more general, and can be used in places
27501         where the original base_name purposely had an assertion failure.
27502         (base_len): New function.
27503
27504         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
27505         Do not include <assert.h>; no longer needed.
27506         Include xalloc.h.
27507         (memrchr): Remove decl.
27508         (dir_name_r): Remove.
27509         (dir_len): Renamed from dirlen.  All callers changed.
27510         Rewrite in terms of base_name, for simplicity and consistency.
27511         (dir_name): Never return NULL.  All callers changed.
27512         Do not include <stdlib.h> in test program; no longer needed.
27513         return 0; is fine for test program.
27514
27515         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
27516         New macros.
27517         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
27518
27519         * lib/path-concat.c (path_concat): Use base_len to compute
27520         base length, not strlen; this means we cannot rely on memcpy
27521         to null-terminate.
27522
27523         * lib/same.c (STREQ): Remove.
27524         (same_name): Handle the case where the basename ends in trailing '/'.
27525
27526         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
27527         a slash was stripped.  Do not strip the last slash after a
27528         file system prefix.
27529
27530 2001-05-11  Paul Eggert  <eggert@twinsun.com>
27531
27532         * lib/Makefile.am (libfetish_a_SOURCES):
27533         Add strftime.c, since we now compile it on all hosts.
27534
27535         * lib/strftime.c (my_strftime):
27536         Define to nstrftime if emacs, but only if my_strftime is not defined.
27537         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
27538         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
27539         Add one more extra argument: a nanoseconds value.
27540         All uses changed.
27541         (ns): New macro.
27542         (my_strftime function): Add %N format.
27543         (emacs_strftimeu): Renamed from emacs_strftime,
27544         with extra ut argument.
27545
27546 2001-05-09  Paul Eggert  <eggert@twinsun.com>
27547
27548         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
27549
27550 2001-04-21  Jim Meyering  <meyering@lucent.com>
27551
27552         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
27553         doesn't interfere.
27554
27555 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
27556
27557         * m4/ftruncate.m4: Check for chsize.
27558         Link with ftruncate.o unconditionally if ftruncate is missing.
27559         This was required when cross-compiling to i586-mingw32msvc.
27560
27561 2001-04-08  Jim Meyering  <meyering@lucent.com>
27562
27563         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
27564         recomputed; that's necessary when the offset spans a DST transition.
27565         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
27566
27567 2001-04-02  Jim Meyering  <meyering@lucent.com>
27568
27569         * lib/regex.h, regex.c: Update from GNU libc.
27570
27571 2001-03-24  Jim Meyering  <meyering@lucent.com>
27572
27573         * m4/jm-macros.m4: Require autoconf-2.49d.
27574
27575 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
27576
27577         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
27578
27579 2001-03-19  Paul Eggert  <eggert@twinsun.com>
27580
27581         * lib/version-etc.c (version_etc_copyright): Update to 2001.
27582
27583 2001-03-17  Jim Meyering  <meyering@lucent.com>
27584
27585         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
27586         now that the version in autoconf is equivalent.
27587         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
27588
27589         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
27590         Suggestion from Akim Demaille.
27591
27592         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
27593         (jm_PREREQ_TEMPNAME): New function.
27594
27595 2001-03-16  Paul Eggert  <eggert@twinsun.com>
27596
27597         * lib/tempname.c (uint64_t): Define to uintmax_t if
27598         not defined, and if UINT64_MAX is not defined.
27599         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
27600         Reported by John David Anglin.
27601
27602 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
27603
27604         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
27605         resolve alias if codeset is empty.
27606         * lib/config.charset (BeOS): Use wildcard syntax.
27607
27608 2001-03-13  Jim Meyering  <meyering@lucent.com>
27609
27610         * lib/path-concat.c (path_concat)
27611         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
27612         concatenating e.g., `C:' and `foo'.
27613         From Bruno Haible.
27614
27615 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
27616
27617         * lib/localcharset.c (locale_charset): Don't use
27618         setlocale(LC_CTYPE,NULL). Don't return NULL.
27619         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
27620
27621 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
27622
27623         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
27624         support for DOS/DJGPP.
27625
27626 2001-03-01  Paul Eggert  <eggert@twinsun.com>
27627
27628         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
27629         lacks mkstemp.  Compile our own tempname.c if we compile our own
27630         mkstemp.c, as mkstemp relies on tempname.
27631
27632 2001-03-01  Jim Meyering  <meyering@lucent.com>
27633
27634         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
27635         AH_VERBATIM really does output its argument verbatim.
27636
27637 2001-02-28  Paul Eggert  <eggert@twinsun.com>
27638
27639         * lib/Makefile.am (libfetish_a_SOURCES):
27640         Add dup-safer.c, fopen-safer.c.
27641         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
27642
27643         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
27644         * lib/unistd-safer.h: New files.
27645
27646 2001-02-25  Paul Eggert  <eggert@twinsun.com>
27647
27648         The mkstemp replacement is taken from glibc 2.2.2, with some
27649         portability fixes for use outside glibc, as follows:
27650
27651         * lib/tempname.c (struct_stat64): New macro.
27652         (direxists, __gen_tempname): Use it.
27653         This avoids a portability problem with Solaris 8.
27654
27655         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
27656         (<stddef.h>, <stdint.h>, <string.h>):
27657         Include only if STDC_HEADERS || _LIBC.
27658         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
27659         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
27660         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
27661         (__set_errno): Define this macro if <errno.h> doesn't.
27662         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
27663         Define these macros if <stdio.h> doesn't.
27664         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
27665         Define these macros if <sys/stat.h>
27666         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
27667         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
27668         __xstat64): Define if not _LIBC.
27669         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
27670         (__gen_tempname): Invoke gettimeofday only if
27671         HAVE_GETTIMEOFDAY || _LIBC;
27672         otherwise, fall back on plain "time".
27673         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
27674
27675         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
27676
27677         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
27678
27679 2001-02-18  Paul Eggert  <eggert@twinsun.com>
27680
27681         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
27682
27683 2001-02-17  Paul Eggert  <eggert@twinsun.com>
27684
27685         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
27686         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
27687         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
27688         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
27689
27690 2001-02-17  Paul Eggert  <eggert@twinsun.com>
27691
27692         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
27693         Remove workaround macros for hosts that have mbrtowc but not
27694         mbstate_t, as we now insist on proper declarations for both
27695         before using mbrtowc.
27696
27697 2001-02-17  Jim Meyering  <meyering@lucent.com>
27698
27699         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
27700         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
27701         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
27702         UnixWare 7.1.1.
27703
27704         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
27705         rather than AC_CACHE_VAL.
27706
27707 2001-02-17  Jim Meyering  <meyering@lucent.com>
27708
27709         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
27710         around included file name.
27711
27712         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
27713
27714         * lib/strftime.c: Update from GNU libc (the only changes were to
27715         comments).
27716
27717 2001-02-17  Jim Meyering  <meyering@lucent.com>
27718
27719         * lib/regex.c: Update from libc.
27720
27721 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
27722
27723         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
27724         clash.
27725
27726 2001-02-16  Paul Eggert  <eggert@twinsun.com>
27727
27728         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
27729         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
27730         Reported by Mark Hounschell via Paul Eggert.
27731
27732 2001-02-07  Jim Meyering  <meyering@lucent.com>
27733
27734         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
27735
27736 2001-02-05  Jim Meyering  <meyering@lucent.com>
27737
27738         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
27739         it includes the patch required for `large file' support with at least
27740         HP-UX's 10.20 /bin/cc.
27741
27742 2001-02-03  Jim Meyering  <meyering@lucent.com>
27743
27744         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
27745         AS_IF, now that it works once again (mysteriously).
27746         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
27747
27748 2001-01-30  Jim Meyering  <meyering@lucent.com>
27749
27750         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
27751         * m4/chown.m4: Rename conftestchown to conftest.chown.
27752         * m4/rename.m4: s/conftestdir/conftest.d1/ and
27753         s/conftestdir2/conftest.d2/.
27754         * m4/utimes.m4: s/conftestdata/conftest.data/
27755         Inspired by Pavel Roskin's change in autoconf.
27756
27757 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
27758
27759         * lib/config.charset: Update for FreeBSD 4.2.
27760
27761 2001-01-27  Jim Meyering  <meyering@lucent.com>
27762
27763         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
27764         a use of AS_IF.
27765         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
27766
27767 2001-01-26  Jim Meyering  <meyering@lucent.com>
27768
27769         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
27770         quotearg.c includes it.
27771
27772 2001-01-26  Jim Meyering  <meyering@lucent.com>
27773
27774         * lib/quotearg.c: Include stddef.h.
27775         * lib/quote.c: Include stddef.h.
27776         Reported by Axel Kittenberger.
27777
27778         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
27779         line in double quotes so that it evokes a better diagnostic.
27780         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
27781         Reported by Axel Kittenberger.
27782
27783 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
27784
27785         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
27786         as if it was a `charset'.
27787
27788 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
27789
27790         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
27791         has const.
27792
27793 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
27794
27795         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
27796         to avoid a warning.  Add back 'const' to inptr.
27797
27798 2001-01-20  Jim Meyering  <meyering@lucent.com>
27799
27800         Be sure that headers are checked before used in code compiled
27801         for the type checks.
27802         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
27803         In place of that, invoke jm_CHECK_ALL_TYPES.
27804         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
27805         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
27806         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
27807         The check for ssize_t was mistakenly run before the test for unistd.h.
27808
27809         The configure-time check for stdbool.h was missing.
27810         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
27811         (jm_PREREQ_HASH): New function.
27812
27813 2001-01-17  Jim Meyering  <meyering@lucent.com>
27814
27815         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
27816         for autoconf-2.49c.
27817         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
27818
27819 2001-01-16  Jim Meyering  <meyering@lucent.com>
27820
27821         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
27822         From Bruno Haible.
27823
27824 2001-01-14  Jim Meyering  <meyering@lucent.com>
27825
27826         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
27827         foo and bar.  Create conftestdir/ in the script, not in the C code.
27828         Remove directories in the script, not in the C code.
27829         Remove conftestdir{,2} before trying to create the directory.
27830         Make the entire configure script fail if the mkdir fails.
27831
27832 2001-01-14  Jim Meyering  <meyering@lucent.com>
27833
27834         * lib/rename.c: New file.  From Volker Borchert.
27835         Include stdlib.h, string.h or strings.h, and xalloc.h.
27836         Use strip_trailing_slashes rather than open-coding it.
27837
27838 2001-01-03  Paul Eggert  <eggert@twinsun.com>
27839
27840         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
27841
27842 2001-01-03  Jim Meyering  <meyering@lucent.com>
27843
27844         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
27845         of local `inptr' to avoid warning with some system declarations of
27846         iconv.
27847
27848 2001-01-02  Volker Borchert  <bt@teknon.de>
27849
27850         * m4/rename.m4: New file.
27851         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
27852
27853 2001-01-01  Jim Meyering  <meyering@lucent.com>
27854
27855         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
27856         even on systems with utmpx.h.  It's necessary for the declaration of
27857         utmp's ut_user member.  Reported by Andreas Jaeger.
27858
27859         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
27860         available. They are required for the declarations of getgrgid and
27861         getpwuid resp.
27862         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
27863         Reported by Andreas Jaeger.
27864
27865 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
27866
27867         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
27868         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
27869         so `make install' also works in VPATH builds.
27870
27871 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
27872
27873         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
27874         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
27875         can be used in subdirectories.
27876
27877 2000-12-29  Paul Eggert  <eggert@twinsun.com>
27878
27879         * lib/modechange.c: Do not assume that mode_t uses the
27880         traditional octal encoding.  E.g. "chmod 1 FOO" should set
27881         the other-execute bit of FOO even if S_IXOTH != 1.
27882
27883         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
27884         WOTH, XOTH, ALLM): New macros.
27885         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
27886          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
27887         Use them.
27888         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
27889         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
27890         (mode_compile):
27891         No need to use uintmax_t; unsigned long is long enough.
27892         Don't bother to get suffix since we don't use it.
27893
27894 2000-12-26  Jim Meyering  <meyering@lucent.com>
27895
27896         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
27897         better with autoheader.
27898
27899 2000-12-24  Jim Meyering  <meyering@lucent.com>
27900
27901         * lib/hash.c (is_prime): Return explicit boolean values.
27902         (hash_get_first): Return NULL to appease Irix5.6's 89.
27903         Reported by Nelson Beebe.
27904
27905 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
27906
27907         * lib/localcharset.c (locale_charset): Add support for Win32.
27908
27909 2000-12-18  Paul Eggert  <eggert@twinsun.com>
27910
27911         * lib/physmem.h, lib/physmem.c: New files.
27912
27913         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
27914         (noinst_HEADERS): Add physmem.h.
27915
27916         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
27917         't' for compatibility with Solaris 8 sort.
27918
27919 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
27920
27921         * lib/config.charset: Add support for BeOS.
27922
27923 2000-12-17  Jim Meyering  <meyering@lucent.com>
27924
27925         * m4/dos.m4 (jm_AC_DOS): New file and macro.
27926         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
27927
27928 2000-12-16  Jim Meyering  <meyering@lucent.com>
27929
27930         This bug had a serious impact on chown: `chown N:M FILE' (for integer
27931         N and M) would have treated it like `chown N:N FILE'.
27932
27933         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
27934
27935 2000-12-16  Jim Meyering  <meyering@lucent.com>
27936
27937         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
27938         SHELLS_FILE to a file name that's useful on djgpp systems.
27939         Include stdlib.h.
27940         (ADDITIONAL_DEFAULT_SHELLS): Define.
27941         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
27942         Based mostly on a patch from Prashant TR.
27943
27944 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
27945
27946         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
27947         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
27948         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
27949
27950 2000-12-08  Andreas Schwab  <schwab@suse.de>
27951
27952         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
27953         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
27954
27955 2000-12-07  Jim Meyering  <meyering@lucent.com>
27956
27957         * lib/stripslash.c (ISSLASH): Define.
27958         (strip_trailing_slashes): Use ISSLASH rather than comparing against
27959         `/'.
27960         From Prashant TR.
27961
27962         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
27963         (dir_name_r): Declare this function as static.
27964         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
27965         manifest itself on a name containing a mix of slashes and
27966         backslashes.
27967         Make this function work with names starting with a DOS-style
27968         drive letter and colon prefix.
27969         (dir_name): Append `.' if necessary.
27970         Based mostly on patches from Prashant TR and Eli Zaretskii.
27971
27972         * lib/dirname.h (dir_name_r): Remove prototype.
27973
27974 2000-12-06  Paul Eggert  <eggert@twinsun.com>
27975
27976         * m4/off_t-format.m4: Remove this file.
27977         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
27978
27979 2000-12-06  Jim Meyering  <meyering@lucent.com>
27980
27981         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
27982         replacement strtoull, we may well need the replacement strtoul, too.
27983         Check for declarations of strtoul and strtoull.
27984         Check for strtol.  Mainly as a cue to cause automake to include
27985         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
27986         Check for limits.h -- strtol.c needs it.
27987
27988 2000-12-05  Jim Meyering  <meyering@lucent.com>
27989
27990         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
27991
27992 2000-12-04  Jim Meyering  <meyering@lucent.com>
27993
27994         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
27995         Also include memory.h, stdlib.h, unistd.h if appropriate.
27996         Reported by Andreas Jaeger (conflicting declaration of malloc).
27997
27998 2000-12-02  Jim Meyering  <meyering@lucent.com>
27999
28000         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
28001         * m4/jm-macros.m4 (jm_MACROS): require it.
28002
28003 2000-12-02  Jim Meyering  <meyering@lucent.com>
28004
28005         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
28006
28007 2000-12-01  Paul Eggert  <eggert@twinsun.com>
28008
28009         * lib/memrchr.c: Include <config.h> before any system include file.
28010
28011 2000-11-30  Jim Meyering  <meyering@lucent.com>
28012
28013         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
28014
28015 2000-11-30  Jim Meyering  <meyering@lucent.com>
28016
28017         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
28018
28019 2000-11-29  Paul Eggert  <eggert@twinsun.com>
28020
28021         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
28022
28023 2000-11-26  Jim Meyering  <meyering@lucent.com>
28024
28025         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
28026
28027 2000-11-22  Paul Eggert  <eggert@twinsun.com>
28028
28029         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
28030         size of (size_t) -1; it's not portable.
28031
28032 2000-11-17  Jim Meyering  <meyering@lucent.com>
28033
28034         * lib/strstr.c: Update from GNU libc.
28035
28036 2000-11-17  Akim Demaille  <akim@epita.fr>
28037
28038         * lib/obstack.h: Formatting changes.
28039         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
28040         prevent type checking.
28041         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
28042         cast the value to (void *): assigning a `foo *' to a `void *'
28043         variable is valid.
28044         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
28045
28046 2000-11-16  Jim Meyering  <meyering@lucent.com>
28047
28048         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
28049
28050 2000-11-11  Jim Meyering  <meyering@lucent.com>
28051
28052         * lib/error.c: Add a couple #includes, merging from GNU libc version.
28053
28054 2000-11-10  Jim Meyering  <meyering@lucent.com>
28055
28056         * lib/obstack.h: Update from GNU libc.
28057         * lib/obstack.c: Likewise.
28058
28059 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
28060
28061         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
28062
28063 2000-11-06  Paul Eggert  <eggert@twinsun.com>
28064
28065         * lib/getusershell.c (setusershell): Use rewind rather than
28066         fseek/fseeko, to avoid configuration hassles with fseeko.
28067         Don't bother opening SHELLS_FILE if shellstream is NULL;
28068         it's not necessary.
28069
28070 2000-11-05  Jim Meyering  <meyering@lucent.com>
28071
28072         * lib/makepath.h (make_dir): Declare.
28073         * lib/makepath.c (make_dir): Remove `static' attribute.
28074         Tweak a comment.
28075
28076 2000-11-04  Jim Meyering  <meyering@lucent.com>
28077
28078         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
28079
28080 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
28081
28082         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
28083         last one in a bucket, advance to the next bucket.
28084
28085 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
28086
28087         * lib/fnmatch.c: Do not comment out all the code if we are using
28088         the GNU C library, because in some cases we are replacing buggy
28089         code in the GNU C library itself.
28090
28091 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
28092
28093         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
28094         (regex_compile): Catch bogus \(\1\).
28095
28096 2000-10-30  Paul Eggert  <eggert@twinsun.com>
28097
28098         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
28099         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
28100         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
28101
28102 2000-10-30  Paul Eggert  <eggert@twinsun.com>
28103
28104         * lib/error.h, getline.h, modechange.h:
28105         Remove "2000" from Copyright line, as the file hasn't been
28106         changed this year other than in the copyright notice.
28107
28108         * lib/xalloc.h: Add "2000" to Copyright line, as this file
28109         was changed this year.
28110
28111 2000-10-29  Jim Meyering  <meyering@lucent.com>
28112
28113         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
28114         renaming.
28115         * m4/ls-mntd-fs.m4: Likewise
28116
28117 2000-10-29  Jim Meyering  <meyering@lucent.com>
28118
28119         * lib/xstat.in: Fix grammar in comment.
28120
28121 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
28122
28123         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
28124         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
28125         doesn't define __restrict_arr.
28126
28127 2000-10-28  Jim Meyering  <meyering@lucent.com>
28128
28129         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
28130         (jm_PREREQ_MEMCHR): New function.
28131
28132 2000-10-28  Jim Meyering  <meyering@lucent.com>
28133
28134         * lib/memchr.c: Update from libc.
28135         Adjust for portability:
28136         [HAVE_STDLIB_H]: Include stdlib.h.
28137         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
28138         Undef __memchr, too.
28139         [!weak_alias]: Define __memchr to memchr.
28140
28141         * lib/regex.c: Update from libc.
28142         * lib/regex.h: Likewise.
28143         * lib/getopt1.c: Likewise.
28144         * lib/memcmp.c: Likewise.
28145
28146         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
28147         Avoid using fseek, when possible -- it's broken by design.
28148         Patch by Ulrich Drepper.
28149
28150 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
28151
28152         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
28153         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
28154         Giving in to popular pressure to shut up the compiler with casts.
28155
28156 2000-10-26  Jim Meyering  <meyering@lucent.com>
28157
28158         * lib/strftime.c: Update from libc.
28159
28160 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
28161
28162         * regex.c: More `unsigned char' -> `re_char' changes.
28163         Also change several `int' into `re_wchar_t'.
28164         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
28165         (PUSH_FAILURE_POINTER): Don't cast any more.
28166         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
28167         We want GCC to complain, since this piece of code makes
28168         re_match non-reentrant, which *should* be fixed.
28169         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
28170         (EXTEND_BUFFER): Use RETALLOC.
28171         (SET_LIST_BIT): Don't cast.
28172         (re_wchar_t): New type.
28173         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
28174         that those two functions will always properly return.
28175         (IMMEDIATE_QUIT_CHECK): Cast to void.
28176         (analyse_first): Use recursion rather than an explicit stack.
28177         (re_compile_fastmap): Can't fail anymore.
28178         (re_search_2): Don't check re_compile_fastmap for failure.
28179         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
28180         Now also sets the new value (passed in a new argument).
28181         (re_match_2_internal): Use it.
28182         Also, use a new var `reg' of type size_t when looping through regs
28183         rather than reuse the inappropriate `mcnt'.
28184
28185 2000-10-25  Jim Meyering  <meyering@lucent.com>
28186
28187         * lib/obstack.c: Update from libc.
28188
28189 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
28190
28191         * regex.c (regex_compile): Change the way of handling a range from
28192         a char less than 256 to a char not less than 256.
28193
28194 2000-10-24  Andrew Innes  <andrewi@gnu.org>
28195
28196         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
28197         NT-Emacs only.
28198         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
28199         so that re_search functions only quit when callers expect them to.
28200
28201 2000-10-23  Jim Meyering  <meyering@lucent.com>
28202
28203         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
28204         wrong.  That set_locale call must not have any side effects.
28205         From Paul Eggert.
28206
28207 2000-10-22  Jim Meyering  <meyering@lucent.com>
28208
28209         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
28210         [CYCLIC]: Remove now-unused definition.
28211
28212         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
28213         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
28214         Suggestion from Ulrich Drepper.
28215
28216 2000-10-21  Jim Meyering  <meyering@lucent.com>
28217
28218         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
28219         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
28220         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
28221
28222 2000-10-21  Jim Meyering  <meyering@lucent.com>
28223
28224         * lib/dirname.c (memrchr): Declare if necessary.
28225         (dir_name): Remove the restriction that there be no
28226         trailing slashes.  Now, this code skips past them, effectively
28227         ignoring them.
28228         [TEST_DIRNAME] (main): New unit tests.
28229
28230         * lib/memrchr.c: New file from GNU libc.
28231         Undef __memrchr, too.
28232         [!weak_alias]: Define __memrchr to memrchr.
28233         Guard weak_alias use with `#ifdef weak_alias'.
28234
28235 2000-10-21  Jim Meyering  <meyering@lucent.com>
28236
28237         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
28238         (dir_name): Use dir_name_r.
28239         * lib/dirname.h (dir_name_r): Declare it.
28240
28241 2000-10-17  Jim Meyering  <meyering@lucent.com>
28242
28243         * lib/quote.h (PARAMS): Define and use.
28244         Reported by Akim Demaille.
28245
28246         * lib/getopt.c: Update from libc.
28247
28248 2000-10-16  Jim Meyering  <meyering@lucent.com>
28249
28250         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
28251         setlocale.
28252         From Jan Fedak.
28253
28254 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
28255
28256         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
28257
28258 2000-09-25  Jim Meyering  <meyering@lucent.com>
28259
28260         * lib/md5.h (rol): Define (from GnuPG).
28261
28262         * lib/sha.c: Give credit (GnuPG) where due.
28263         (M): Use rol rather than open-coding it.
28264         Add a FIXME comment.
28265
28266 2000-09-21  Jim Meyering  <meyering@lucent.com>
28267
28268         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
28269         Reported by Michael Stone.
28270
28271 2000-09-20  Jim Meyering  <meyering@lucent.com>
28272
28273         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
28274         (noinst_HEADERS): Add sha.h.
28275         Based on code from Scott G. Miller and from GnuPG.
28276
28277 2000-09-18  Jim Meyering  <meyering@lucent.com>
28278
28279         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
28280         LIBS. Otherwise, everyone ends up linking with -lelf for some
28281         configurations.
28282         Reported by Mike Stone.
28283
28284 2000-09-15  Jim Meyering  <meyering@lucent.com>
28285
28286         * lib/regex.c: Update from libc.
28287
28288 2000-09-10  Jim Meyering  <meyering@lucent.com>
28289
28290         * lib/getopt.c (_getopt_internal): Update from glibc.
28291
28292 2000-09-09  Jim Meyering  <meyering@lucent.com>
28293
28294         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
28295         think it should be used as a general replacement for isascii.
28296         * lib/fnmatch.c: Likewise.
28297         * lib/mbswidth.c: Likewise
28298         * lib/regex.c: Likewise.
28299
28300         Don't use atoi.
28301         * lib/userspec.c: Include sys/param.h and limits.h.
28302         Include xstrtol.h.
28303         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
28304         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
28305         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
28306         UID, GID.  Check range.
28307
28308 2000-09-06  Jim Meyering  <meyering@lucent.com>
28309
28310         * lib/getopt.c (_getopt_internal): Update from glibc.
28311
28312 2000-08-30  Jim Meyering  <meyering@lucent.com>
28313
28314         * lib/strftime.c: Merge in changes from GNU libc.
28315
28316 2000-08-26  Jim Meyering  <meyering@lucent.com>
28317
28318         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
28319         * m4/fpending.m4: New file.
28320
28321 2000-08-26  Jim Meyering  <meyering@lucent.com>
28322
28323         * lib/closeout.c: Include "__fpending.h".
28324         (close_stdout_status): Return right away if there's nothing to flush.
28325
28326         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
28327         * lib/__fpending.c: New file.
28328         * lib/__fpending.h: New file.
28329
28330 2000-08-20  Jim Meyering  <meyering@lucent.com>
28331
28332         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
28333         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
28334         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
28335
28336 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
28337
28338         Improve fileutils installation on systems where running
28339         programs (like install) can't be unlinked.
28340         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
28341         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
28342
28343 2000-08-07  Paul Eggert  <eggert@twinsun.com>
28344
28345         Standardize on "memory exhausted" instead of "Memory exhausted"
28346         or "virtual memory exhausted".
28347         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
28348         "virtual memory exhausted".
28349         * lib/same.c (same_name): Invoke xalloc_die instead of printing
28350         our own message.
28351         * lib/userspec.c (parse_user_spec): Likewise.
28352         * lib/bumpalloc.h: comment fix
28353         * lib/same.c, userspec.c: Include xalloc.h.
28354
28355         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
28356         not char *const and pointing to a constant array.
28357         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
28358         (xrealloc): Comment fix.
28359
28360         * lib/userspec.c (parse_user_spec):
28361         Don't translate a message until just before returning,
28362         to avoid unnecessary translation.
28363
28364 2000-08-07  Jim Meyering  <meyering@lucent.com>
28365
28366         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
28367         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
28368         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
28369         getgroups.c, gethostname.c, getopt.h, group-member.c,
28370         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
28371         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
28372         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
28373         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
28374         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
28375         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
28376         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
28377         yesno.c: Back out Copyright date changes for each file with no change
28378         this year.  This eases coordination with other programs using the same
28379         source code modules.  From Paul Eggert.
28380
28381 2000-08-06  Paul Eggert  <eggert@twinsun.com>
28382
28383         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
28384         not char, for compatibility with glibc 2.1.3 strftime.c.
28385
28386 2000-08-03  Greg McGary  <greg@mcgary.org>
28387
28388         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
28389         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
28390         (EXTEND_BUFFER): Use them.
28391
28392 2000-08-01  Jim Meyering  <meyering@lucent.com>
28393
28394         * lib/dirname.c (ISSLASH): Define.
28395         (BACKSLASH_IS_PATH_SEPARATOR): Define.
28396         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
28397         both `\' and `/' may be use as path separators.
28398         Based on a patch from Prashant TR.
28399
28400 2000-07-31  Paul Eggert  <eggert@twinsun.com>
28401
28402         * lib/quotearg.c (quotearg_n_options): Don't make the initial
28403         slot vector a constant, since it might get modified.
28404
28405 2000-07-31  Jim Meyering  <meyering@lucent.com>
28406
28407         * lib/xmalloc.c: Use `virtual memory exhausted', not
28408         `Memory exhausted'.
28409         * lib/obstack.c (print_and_abort): Likewise.
28410
28411 2000-07-30  Paul Eggert  <eggert@twinsun.com>
28412
28413         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
28414         buffer, so that the caller can always quote one small
28415         component of a "memory exhausted" message in slot 0.
28416         From a suggestion by Jim Meyering.
28417
28418 2000-07-30  Jim Meyering  <meyering@lucent.com>
28419
28420         * lib/makepath.c (make_path): Quote the other instance, too.
28421
28422         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
28423         (STATIC_BUF_SIZE): Define.
28424         (quotearg_n_options): Use only statically allocated storage when
28425         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
28426         than STATIC_BUF_SIZE.
28427
28428 2000-07-29  Jim Meyering  <meyering@lucent.com>
28429
28430         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
28431         * lib/dirname.c (dir_name): Likewise.
28432
28433         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
28434         `/'.
28435
28436         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
28437         (dir_name): Assert that there are no trailing slashes.
28438
28439 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
28440
28441         * lib/mbswidth.h (mbswidth): Add a flags argument.
28442         (mbswidth): New declaration.
28443         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
28444         * lib/mbswidth.c (mbswidth): Add a flags argument.
28445         (mbsnwidth): New function.
28446
28447 2000-07-24  Jim Meyering  <meyering@lucent.com>
28448
28449         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
28450
28451 2000-07-23  Paul Eggert  <eggert@twinsun.com>
28452
28453         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
28454
28455 2000-07-23  Paul Eggert  <eggert@twinsun.com>
28456
28457         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
28458         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
28459         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
28460         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
28461         invoke multibyte primitives.
28462
28463 2000-07-23  Paul Eggert  <eggert@twinsun.com>
28464
28465         * lib/quotearg.c:
28466         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
28467         so that mbstate_t is always defined.
28468
28469         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
28470         be 1 in at least one GCC installation, and this configuration
28471         error is likely to be common.  Ignoring MB_LEN_MAX hurts
28472         performance on hosts that have mbrtowc but have only unibyte
28473         locales, but I assume these hosts are rare.
28474
28475 2000-07-23  Paul Eggert  <eggert@twinsun.com>
28476
28477         * lib/mbswidth.c (_XOPEN_SOURCE):
28478         Don't define; this causes problems on Solaris 7.
28479         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
28480
28481 2000-07-23  Jim Meyering  <meyering@lucent.com>
28482
28483         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
28484         too: getgrgid, getpwuid, getuid.
28485
28486 2000-07-23  Jim Meyering  <meyering@lucent.com>
28487
28488         * lib/basename.c (base_name): Add an assertion.
28489
28490 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
28491
28492         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
28493         shadow its mbsinit function.
28494
28495 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
28496
28497         * lib/mbswidth.h: New file.
28498         * lib/mbswidth.c: New file.
28499         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
28500         (noinst_HEADERS): Add mbswidth.h.
28501
28502 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
28503
28504         * lib/config.charset: Add support for FreeBSD. Improve support for
28505         HP-UX and IRIX 6.
28506
28507 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
28508
28509         * m4/mbswidth.m4: New file.
28510         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
28511
28512 2000-07-15  Jim Meyering  <meyering@lucent.com>
28513
28514         * lib/makepath.c: Include quote.h.
28515         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
28516         corresponding argument in a `quote (...)' call.
28517         Give better diagnostics.
28518
28519         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
28520         (noinst_HEADERS): Add quote.h.
28521
28522         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
28523         from tar's src/misc.c.
28524         * lib/quote.h: New file.  Prototypes for same.
28525
28526 2000-07-14  Paul Eggert  <eggert@twinsun.com>
28527
28528         From a suggestion by Bruno Haible.
28529         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
28530         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
28531         to decide whether to define the BeOS workaround macro;
28532         this adjusts to the change to AC_MBSTATE_T.
28533
28534 2000-07-14  Jim Meyering  <meyering@lucent.com>
28535
28536         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
28537         jm_AC_TYPE_UINTMAX_T.
28538
28539 2000-07-13  Paul Eggert  <eggert@twinsun.com>
28540
28541         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
28542
28543         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
28544         quotearg_buffer_restyled): Add support for
28545         clocale_quoting_style.  Undo previous change to
28546         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
28547         and "{RIGHT QUOTATION MARK}" msgids.
28548
28549 2000-07-10  Paul Eggert  <eggert@twinsun.com>
28550
28551         From a suggestion by Bruno Haible.
28552         * m4/mbstate_t.m4 (AC_MBSTATE_T):
28553         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
28554         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
28555         and mbstate_t, to a single-part test that simply defines mbstate_t.
28556         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
28557         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
28558
28559 2000-07-10  Jim Meyering  <meyering@lucent.com>
28560
28561         * m4/strerror_r.m4: Mirror the correction made in autoconf.
28562
28563         * m4/gnu-source.m4: Output to confdefs.h directly.
28564         Suggestion from Akim Demaille.
28565
28566 2000-07-09  Paul Eggert  <eggert@twinsun.com>
28567
28568         The old behavior of quoting `like this' doesn't look good with
28569         newer, ISO-style fonts.  See:
28570         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
28571
28572         Instead, quote "like this" by default.  Let the translator
28573         tailor the locale-specific quoting behavior by providing
28574         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
28575
28576         * lib/quotearg.c (N_): New macro.
28577         (gettext_default): New function.
28578         (quotearg_buffer_restyled): Use
28579         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
28580         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
28581
28582 2000-07-09  Jim Meyering  <meyering@lucent.com>
28583
28584         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
28585         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
28586
28587         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
28588         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
28589
28590 2000-07-09  Jim Meyering  <meyering@lucent.com>
28591
28592         * lib/Most files: Update copyright dates to include 2000.
28593
28594 2000-07-08  Jim Meyering  <meyering@lucent.com>
28595
28596         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
28597         if not defined.
28598         (xgethostname): Remove now-unnecessary #ifdef.
28599         Move declaration of `err' into loop where it's used.
28600
28601 2000-07-05  Paul Eggert  <eggert@twinsun.com>
28602         and Bruno Haible  <haible@clisp.cons.org>
28603
28604         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
28605         only if the test for an object-type mbstate_t fails.  This
28606         prevents us from mistakenly reporting that mbstate_t is a
28607         system object type after we "#define mbstate_t int" to work
28608         around its lack.
28609
28610 2000-07-05  Paul Eggert  <eggert@twinsun.com>
28611         and Bruno Haible  <haible@clisp.cons.org>
28612
28613         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
28614
28615 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
28616
28617         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
28618         to strerror_r.
28619         Include <ctype.h> for use of isalpha.
28620
28621 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
28622
28623         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
28624         by allocating a larger buffer. Test the gethostname return value for
28625         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
28626         returns an error and ENAMETOOLONG isn't defined.
28627
28628 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
28629
28630         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
28631         dimension.
28632
28633 2000-07-04  Jim Meyering  <meyering@lucent.com>
28634
28635         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
28636         of the deprecated AC_CHECKING.
28637
28638 2000-07-04  Jim Meyering  <meyering@lucent.com>
28639
28640         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
28641         Reported by Bruno Haible.
28642
28643 2000-07-04  Jim Meyering  <meyering@lucent.com>
28644
28645         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
28646         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
28647         lacks mbrtowc.
28648
28649 2000-07-03  Paul Eggert  <eggert@twinsun.com>
28650
28651         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
28652         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
28653
28654 2000-07-03  Paul Eggert  <eggert@twinsun.com>
28655         and Bruno Haible  <haible@clisp.cons.org>
28656
28657         * lib/quotearg.c (mbrtowc):
28658         Assign to *pwc, and return 1 only if result is nonzero.
28659         (iswprint): Use ISPRINT when substituting our own mbrtowc.
28660
28661 2000-07-03  Jim Meyering  <meyering@lucent.com>
28662
28663         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
28664
28665 2000-07-03  Jim Meyering  <meyering@lucent.com>
28666
28667         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
28668         This is necessary to get a definition of e.g., UTMP_FILE on
28669         HP-UX 10.20.
28670         From Bob Proulx.
28671
28672 2000-07-02  Jim Meyering  <meyering@lucent.com>
28673
28674         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
28675
28676         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
28677         AC_LIBOBJ(function_name).
28678         * m4/chown.m4: Likewise.
28679         * m4/fnmatch.m4: Likewise.
28680         * m4/ftruncate.m4: Likewise.
28681         * m4/getgroups.m4: Likewise.
28682         * m4/getline.m4: Likewise.
28683         * m4/group-member.m4: Likewise.
28684         * m4/jm-macros.m4: Likewise.
28685         * m4/lstat.m4: Likewise.
28686         * m4/malloc.m4: Likewise.
28687         * m4/memcmp.m4: Likewise.
28688         * m4/nanosleep.m4: Likewise.
28689         * m4/putenv.m4: Likewise.
28690         * m4/realloc.m4: Likewise.
28691         * m4/regex.m4: Likewise.
28692         * m4/stat.m4: Likewise.
28693         * m4/strftime.m4: Likewise.
28694
28695 2000-07-02  Jim Meyering  <meyering@lucent.com>
28696
28697         * lib/quotearg.c (mbstate_t): Don't define here.
28698
28699 2000-07-02  Jim Meyering  <meyering@lucent.com>
28700
28701         * lib/nanosleep.c (SIGCONT): Define if not already defined.
28702
28703 2000-07-01  Jim Meyering  <meyering@lucent.com>
28704
28705         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
28706
28707 2000-07-01  Jim Meyering  <meyering@lucent.com>
28708
28709         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
28710         problem.
28711
28712 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
28713
28714         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
28715         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
28716
28717 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
28718
28719         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
28720         per change in ../m4/ls-mntd-fs.m4.
28721         (read_filesystem_list): Ignore symbolic links.
28722
28723 2000-06-29  Jim Meyering  <meyering@lucent.com>
28724
28725         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
28726         for declaration of strcmp.
28727
28728         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
28729
28730         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
28731         Avoid warning by casting result to `char *' to remove `const'.
28732
28733 2000-06-28  Jim Meyering  <meyering@lucent.com>
28734
28735         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
28736         included by quotearg.c, for which we perform this test.  From
28737         Bruno Haible.
28738
28739 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
28740
28741         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
28742         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
28743         <utmpx.h> exists, put readutmp.o into LIBOBJS.
28744
28745 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
28746
28747         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
28748
28749 2000-06-26  Paul Eggert  <eggert@twinsun.com>
28750
28751         savedir now sets errno on failure and invokes xmalloc to get memory.
28752         Fix a couple of other minor bugs while we're at it.
28753
28754         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
28755         (NAMLEN): Remove macro.
28756         (malloc, realloc): Remove decls.
28757         (stpcpy): Likewise.
28758         ("xalloc.h"): Include.
28759         (NAME_SIZE_DEFAULT): New macro.
28760         (savedir): Use xmalloc / xrealloc to allocate memory.
28761         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
28762         Skip "" directory entries.
28763         Use strlen to calculate directory entry length, since the old method
28764         is rarely used these days and isn't worth supporting.
28765         Don't use a pointer after freeing it.
28766         Check for integer overflow when calculating allocation size.
28767         Use memcpy to copy entries, instead of stpcpy.
28768         Set errno properly when returning NULL.
28769         Check for readdir error.
28770
28771 2000-06-26  Jim Meyering  <meyering@lucent.com>
28772
28773         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
28774
28775 2000-06-25  Jim Meyering  <meyering@lucent.com>
28776
28777         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
28778         Linux header bug when _XOPEN_SOURCE is defined to 500.
28779
28780 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
28781
28782         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
28783         deficiency.
28784
28785 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
28786
28787         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
28788         Include xalloc.h.
28789         Don't include <stdlib.h>.  Don't declare malloc, realloc.
28790
28791 2000-06-24  Jim Meyering  <meyering@lucent.com>
28792
28793         * m4/strerror_r.m4: Revive this file -- to try out an experimental
28794         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
28795         for which strerror does return char*, but which lacks a conveniently
28796         accessible declaration of the function.  If the compile-test says
28797         strerror_r doesn't work, then resort to a `run'-test that works on
28798         BeOS and segfaults on DEC Unix.
28799
28800 2000-06-24  Jim Meyering  <meyering@lucent.com>
28801
28802         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
28803
28804 2000-06-23  Paul Eggert  <eggert@twinsun.com>
28805
28806         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
28807         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
28808
28809 2000-06-23  Paul Eggert  <eggert@twinsun.com>
28810
28811         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
28812         (mbrtowc, mbstate_t): Define substitutes if
28813         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
28814         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
28815         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
28816
28817 2000-06-23  Jim Meyering  <meyering@lucent.com>
28818
28819         * m4/afs.m4: Add missing AC_MSG_RESULT.
28820         Reported by Bruno Haible.
28821
28822         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
28823         Suggestion from Bruno Haible.
28824
28825 2000-06-23  Jim Meyering  <meyering@lucent.com>
28826
28827         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
28828
28829 2000-06-21  Jim Meyering  <meyering@lucent.com>
28830
28831         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
28832
28833 2000-06-21  Jim Meyering  <meyering@lucent.com>
28834
28835         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
28836         (noinst_HEADERS): Add getstr.h.
28837
28838         * lib/getline.c (getstr): Move into a separate file.
28839         * lib/getstr.c (getstr): New file, extracted from getline.c, with
28840         the following changes: new parameter, delim2; both delim[12]
28841         parameters have type `int', not `char'.  The latter would lose
28842         with 8-bit delimiters.
28843         * lib/getstr.h: New file.
28844
28845 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
28846
28847         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
28848         than 1024, return a memory chunk of least possible size, instead
28849         of size PATH_MAX + 2. In the loop, increment the size proportionally.
28850         Use free/xmalloc instead of xrealloc to avoid copying for very long
28851         paths.
28852
28853 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
28854
28855         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
28856         the empty string.
28857
28858 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
28859
28860         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
28861         address, not strdup.  Include <stdlib.h> and don't declare free().
28862
28863 2000-06-19  Jim Meyering  <meyering@lucent.com>
28864
28865         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
28866
28867 2000-06-18  Jim Meyering  <meyering@lucent.com>
28868
28869         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
28870
28871         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
28872         `checking whether...' message to be consistent with that of the
28873         lstat test.
28874
28875 2000-06-18  Jim Meyering  <meyering@lucent.com>
28876
28877         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
28878         Besides, these days every porting target provides a mkdir function.
28879
28880         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
28881         needed. (this snippet comes from src/system.h).
28882
28883 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
28884
28885         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
28886
28887 2000-06-15  Paul Eggert  <eggert@twinsun.com>
28888
28889         * lib/human.c (adjust_value): New function.
28890         (human_readable_inexact): Apply rounding style even when
28891         printing approximate values.
28892
28893 2000-06-14  Paul Eggert  <eggert@twinsun.com>
28894
28895         * lib/human.c (human_readable_inexact): Allow an input block
28896         size that is not a multiple of the output block size, and vice versa.
28897         Reported by Piergiorgio Sartor.
28898
28899 2000-06-14  Paul Eggert  <eggert@twinsun.com>
28900
28901         * lib/getdate.y (get_date): Apply relative times after time
28902         zone indicator, not before.  Reported by Todd A. Jacobs.
28903
28904 2000-06-13  Jim Meyering  <meyering@lucent.com>
28905
28906         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
28907
28908         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
28909
28910 2000-06-12  Paul Eggert  <eggert@twinsun.com>
28911
28912         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
28913
28914 2000-06-12  Jim Meyering  <meyering@lucent.com>
28915
28916         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
28917         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
28918         optional argument.
28919         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
28920         the optional argument, `lib'.
28921
28922 2000-06-08  Jim Meyering  <meyering@lucent.com>
28923
28924         * m4/largefile.m4: Remove file (now that it's part of autoconf).
28925
28926 2000-06-04  Paul Eggert  <eggert@twinsun.com>
28927
28928         Rewrite largefile configuration so that we don't need to run
28929         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
28930         AC_CANONICAL_HOST in configure.in -- jmm]
28931
28932         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
28933         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
28934         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
28935         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
28936         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
28937         All uses changed.
28938         Instead of inspecting the output of getconf, try to compile the
28939         test program without and with the macro definition.
28940         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
28941         for getconf.  Instead, check for the needed flags by compiling
28942         test programs.
28943
28944 2000-06-04  Paul Eggert  <eggert@twinsun.com>
28945
28946         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
28947
28948 2000-06-04  Jim Meyering  <meyering@lucent.com>
28949
28950         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
28951         SunOS 4.1.4 for which gid_t is an unsigned type.
28952
28953 2000-06-03  Jim Meyering  <meyering@lucent.com>
28954
28955         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
28956         now that autoconf requires that.
28957
28958         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
28959         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
28960         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
28961
28962 2000-06-03  Jim Meyering  <meyering@lucent.com>
28963
28964         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
28965
28966 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
28967
28968         * m4/glibc21.m4: New file.
28969         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
28970
28971 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
28972
28973         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
28974         newer, don't install charset.alias.
28975         * lib/config.charset: Change the Linux/glibc rules so they become empty
28976         on glibc-2.1 or newer.
28977
28978 2000-06-02  Jim Meyering  <meyering@lucent.com>
28979
28980         * lib/mountlist.c: Back out last change.  Instead, do this...
28981         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
28982         me_dummy member using the same `ignore'-testing code.
28983         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
28984         fs_type strings.
28985         From Mark D. Roth.
28986
28987 2000-05-29  Jim Meyering  <meyering@lucent.com>
28988
28989         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
28990         mounts with the `ignore' attribute.  Based on a patch from
28991         Mark D. Roth.
28992
28993 2000-05-28  Jim Meyering  <meyering@lucent.com>
28994
28995         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
28996         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
28997         * m4/stat.m4: Likewise.
28998         * m4/lstat.m4: Likewise.
28999         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
29000
29001         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
29002         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
29003
29004 2000-05-26  Jim Meyering  <meyering@lucent.com>
29005
29006         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
29007
29008 2000-05-24  Jim Meyering  <meyering@lucent.com>
29009
29010         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
29011         autoconf requires that.
29012         * m4/lib-check.m4: Likewise.
29013         * m4/jm-macros.m4: Likewise.
29014         * m4/strftime.m4: Likewise.
29015
29016         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
29017         AC_CHECK_DECLS, now that autoconf requires that.
29018
29019 2000-05-22  Jim Meyering  <meyering@lucent.com>
29020
29021         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
29022         * m4/lstat.m4: Likewise.
29023
29024 2000-05-22  Jim Meyering  <meyering@lucent.com>
29025
29026         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
29027
29028 2000-05-20  Jim Meyering  <meyering@lucent.com>
29029
29030         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
29031         (jm_PREREQ): Use it.
29032
29033 2000-05-18  Jim Meyering  <meyering@lucent.com>
29034
29035         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
29036         back, too, since it may have been modified by allocate_entry.
29037         (hash_delete): Rewrite to use neither the assignment operator
29038         nor the comma operator in an if-expression.
29039
29040 2000-05-15  Paul Eggert  <eggert@twinsun.com>
29041
29042         * lib/closeout.c:
29043         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
29044         Remove; no longer needed.
29045         "quotearg.h": Add include.
29046         (file_name): Do not bother to explicitly initialize to NULL; it's less
29047         efficient on some hosts.
29048         (close_stdout_status): Remove test as to whether stdout was already
29049         closed; it breaks for the case "echo x | sort >&-".
29050         Quote file name colons.
29051         Do not assume that _("write error") lacks format strings.
29052
29053 2000-05-15  Jim Meyering  <meyering@lucent.com>
29054
29055         * lib/version-etc.c (version_etc_copyright): Update the copyright
29056         string used in all --version output.
29057
29058 2000-05-14  Jim Meyering  <meyering@lucent.com>
29059
29060         * lib/closeout.c (close_stdout_set_file_name): New function.
29061         (close_stdout_status): Use new file-scoped global.
29062         Return right away if fstat says the stdout file descriptor is invalid.
29063         * lib/closeout.h (close_stdout_set_file_name): Declare.
29064
29065 2000-05-10  Jim Meyering  <meyering@lucent.com>
29066
29067         * lib/closeout.c [default_exit_status]: New file-scoped variable.
29068         (close_stdout_set_status): New function.
29069         * lib/closeout.h (close_stdout_set_status): Declare.
29070
29071 2000-05-09  Jim Meyering  <meyering@lucent.com>
29072
29073         * m4/gettext.m4: Rename this...
29074         * m4/libintl.m4: ...to this.
29075
29076 2000-05-08  Jim Meyering  <meyering@lucent.com>
29077
29078         * lib/long-options.c: Don't include closeout.h.
29079         (parse_long_options): Don't call close_stdout for --version.
29080
29081 2000-05-06  Paul Eggert  <eggert@twinsun.com>
29082
29083         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
29084         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
29085         2.1.3 bug.  This avoids a clash when files like regex.c define
29086         _GNU_SOURCE.
29087
29088 2000-05-06  Jim Meyering  <meyering@lucent.com>
29089
29090         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
29091         (AC_REPLACE_FUNCS): Add strnlen.
29092
29093         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
29094         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
29095
29096         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
29097         AC_SEARCH_LIBS call for nanosleep.
29098         (LIB_NANOSLEEP): Set and AC_SUBST.
29099
29100 2000-05-06  Jim Meyering  <meyering@lucent.com>
29101
29102         * lib/strnlen.c: Undefine __strnlen and strnlen.
29103         [!weak_alias]: Define __strnlen to strnlen.
29104
29105         * lib/atexit.c: New file, from libiberty.
29106
29107 2000-05-06  Jim Meyering  <meyering@lucent.com>
29108
29109         * lib/closeout.c (close_stdout_status): Also check for errors on the
29110         stderr stream.
29111
29112 2000-05-05  Jim Meyering  <meyering@lucent.com>
29113
29114         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
29115         AC_SEARCH_LIBS call for clock_gettime.
29116         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
29117
29118         * m4/search-libs.m4: Update from autoconf.
29119
29120         su doesn't work on Solaris 2.6.
29121         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
29122         <shadow.h>.  Reported by Dragos Harabor.
29123
29124 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
29125
29126         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
29127         memcpy instead of xmalloc, xrealloc, path_concat.
29128         (locale_charset): Treat empty environment variables as absent.
29129         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
29130
29131 2000-05-04  Jim Meyering  <meyering@lucent.com>
29132
29133         * lib/getopt.c: Update from glibc.
29134         * lib/obstack.c: Likewise.
29135         * lib/obstack.h: Likewise.
29136         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
29137         file
29138
29139         * lib/regex.h: Likewise.
29140         * lib/strndup.c: Likewise.
29141         * lib/strnlen.c: New file, from glibc.
29142
29143 2000-05-03  Jim Meyering  <meyering@lucent.com>
29144
29145         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
29146
29147 2000-05-02  Paul Eggert  <eggert@twinsun.com>
29148
29149         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
29150         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
29151         compile-time test, rather than inspecting host and OS, to
29152         decide whether to define _LARGEFILE_SOURCE.
29153
29154 2000-05-01  Jim Meyering  <meyering@lucent.com>
29155
29156         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
29157
29158         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
29159         Based on a patch from Bruno Haible.
29160
29161 2000-05-01  Jim Meyering  <meyering@lucent.com>
29162
29163         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
29164
29165 2000-04-29  Jim Meyering  <meyering@lucent.com>
29166
29167         * lib/path-concat.c: Declare strdup only if it's not defined.
29168         * lib/canon-host.c: Likewise.
29169
29170 2000-04-28  Jim Meyering  <meyering@lucent.com>
29171
29172         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
29173         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
29174         is included first, then limits.h is included by locale.h by libintl.h.
29175         From John David Anglin.
29176
29177 2000-04-25  Jim Meyering  <meyering@lucent.com>
29178
29179         * lib/makepath.c (S_IRWXUGO): Define.
29180         (make_path): Always perform explicit chmod if MODE specifies any
29181         of the `special' permission bits.  Prompted by a bug report against
29182         install from Mate Wierdl and Joost van Baal.
29183
29184 2000-04-18  Jim Meyering  <meyering@lucent.com>
29185
29186         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
29187         (jm_PREREQ): Use it.
29188
29189 2000-04-18  Jim Meyering  <meyering@lucent.com>
29190
29191         * lib/README: New file.
29192
29193         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
29194         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
29195
29196 2000-04-17  Jim Meyering  <meyering@lucent.com>
29197
29198         Get it right :-)
29199         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
29200         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
29201         Suggestion from Akim Demaille.
29202
29203 2000-04-17  Jim Meyering  <meyering@lucent.com>
29204
29205         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
29206         the definition of it to rpl_strftime also defined-away the system's
29207         declaration.
29208
29209 2000-04-15  Jim Meyering  <meyering@lucent.com>
29210
29211         Use `C' to denote so-called `contiguous' files, the same way
29212         that tar does.
29213         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
29214         (ftypelet): Use S_ISCTG.
29215         From Michael Deutschmann.
29216
29217 2000-04-14  Jim Meyering  <meyering@lucent.com>
29218
29219         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
29220         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
29221         clobbered.
29222
29223 2000-04-14  Jim Meyering  <meyering@lucent.com>
29224
29225         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
29226
29227 2000-04-13  Jim Meyering  <meyering@lucent.com>
29228
29229         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
29230         AH_VERBATIM to insert required #ifndef into config.h.in.
29231         Suggestion from Akim Demaille.
29232
29233 2000-04-12  Jim Meyering  <meyering@lucent.com>
29234
29235         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
29236         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
29237         Christian Krackowizer.
29238
29239         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
29240         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
29241         (AC_SYS_LARGEFILE): Require.
29242         (AM_C_PROTOTYPES): Require.
29243
29244 2000-04-08  Jim Meyering  <meyering@lucent.com>
29245
29246         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
29247         names don't conflict.  Reported by Eli Zaretskii.
29248
29249 2000-04-07  Jim Meyering  <meyering@lucent.com>
29250
29251         * lib/putenv.c: Move inclusion of errno.h so it follows that of
29252         sys/types.h, to work around system header problems on AIX 3.2.5.
29253         From Bruno Haible.
29254
29255 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
29256
29257         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
29258         bug.  Deal with the different error behavior of Irix iconv.
29259
29260 2000-04-05  Paul Eggert  <eggert@twinsun.com>
29261
29262         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
29263         IRIX if the installer said otherwise.
29264
29265 2000-04-05  Jim Meyering  <meyering@lucent.com>
29266
29267         Portability tweaks required for ultrix4.3.
29268         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
29269         (jm_CHECK_DECLS): Add getutent to the list of functions.
29270         (_jm_DECL_HEADERS): Add utmpx.h.
29271         From John David Anglin.
29272
29273         * m4/strftime.m4: Back out the 2000-04-02 change.
29274         Instead of that change, simply undefine putenv in the test program.
29275
29276 2000-04-05  Jim Meyering  <meyering@lucent.com>
29277
29278         Portability tweaks required for ultrix4.3.
29279         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
29280         getutent.
29281         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
29282         * lib/canon-host.c: Declare strdup.
29283         * lib/path-concat.c: Likewise.
29284         From John David Anglin.
29285
29286 2000-04-04  Jim Meyering  <meyering@lucent.com>
29287
29288         Be more DOS 8.3-friendly.
29289         * lib/ref-add.sin: Renamed from ref-add.sed.in.
29290         * lib/ref-del.sin: Renamed from ref-del.sed.in.
29291         * lib/Makefile.am: Reflect renaming.
29292         Reported by Eli Zaretskii.
29293
29294         Use a temporary file name that won't clash with `charset.alias'
29295         in the DOS 8.3 name space.
29296         * lib/Makefile.am (charset_tmp): Define.
29297         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
29298         (uninstall-local): Likewise.
29299         Reported by Eli Zaretskii.
29300
29301 2000-04-03  Jim Meyering  <meyering@lucent.com>
29302
29303         * m4/gettext.m4: Fix typo in comment.
29304
29305         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
29306         textutils/configure.in).  Suggestion from Paul Eggert.
29307         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
29308
29309 2000-04-02  Paul Eggert  <eggert@twinsun.com>
29310
29311         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
29312         variable in the shell rather than using putenv, which isn't
29313         portable.  This avoids the configure-time inter-test dependency
29314         on the potentially-renamed putenv function.
29315
29316 2000-03-30  Paul Eggert  <eggert@twinsun.com>
29317
29318         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
29319         before checking struct stat.st_blksize, so that
29320         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
29321
29322 2000-03-29  Paul Eggert  <eggert@twinsun.com>
29323
29324         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
29325         since strftime.c uses HAVE_STRFTIME to decide whether to use
29326         the underlying strftime.
29327
29328 2000-03-29  Paul Eggert  <eggert@twinsun.com>
29329
29330         * lib/time/strftime.c (my_strftime): Make sure we call the system
29331         strftime, not ourselves, when invoking the underlying strftime.
29332
29333 2000-03-24  Jim Meyering  <meyering@lucent.com>
29334
29335         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
29336         (charset_alias): Define.
29337         (install-exec-local): Factor out common code.
29338         (uninstall-local): Split lines longer than 80.
29339         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
29340         (SUFFIXES): Define.
29341         (.sed.in.sed): New rule.  Don't redirect directly to $@.
29342         (CLEANFILES): Add ref-add.sed and ref-del.sed.
29343
29344 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
29345
29346         * lib/config.charset: Output a line containing "Packages using this
29347         file".
29348         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
29349         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
29350         ref-del.sed): New rules.
29351
29352 2000-03-17  Jim Meyering  <meyering@lucent.com>
29353
29354         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
29355         Otherwise, include <strings.h>
29356
29357 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
29358
29359         * lib/unicodeio.c (utf8_wctomb): New function.
29360         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
29361         format instead of in UCS-4 with platform dependent endianness.
29362
29363 2000-03-10  Jim Meyering  <meyering@lucent.com>
29364
29365         * m4/lib-check.m4: Look for getspnam in -lgen, too.
29366         From Marco Franzen.
29367
29368 2000-03-07  Paul Eggert  <eggert@twinsun.com>
29369
29370         * lib/savedir.c (savedir): Work even if directory size is
29371         negative; this can happen with some screwy NFS configurations.
29372
29373 2000-03-06  Jim Meyering  <meyering@lucent.com>
29374
29375         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
29376         if it's NULL (because we ran out of memory).  From Bruno Haible.
29377
29378 2000-03-05  Jim Meyering  <meyering@lucent.com>
29379
29380         * lib/localcharset.c ("path-concat.h"): Include.
29381         (get_charset_aliases): Use path_concat instead of ANSI string
29382         concatenation.
29383
29384         * lib/unicodeio.h (PARAMS): Define.
29385         Use it to guard prototype.
29386
29387 2000-03-04  Jim Meyering  <meyering@lucent.com>
29388
29389         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
29390         for lib/localcharset.c.
29391
29392 2000-03-04  Jim Meyering  <meyering@lucent.com>
29393
29394         * lib/Makefile.am (install-exec-local): Create $(libdir) before
29395         installing into it.
29396         (uninstall-local): Uncomment this rule so `make distcheck' works
29397         once again.
29398
29399         * lib/unicodeio.c (<errno.h>): Include it.
29400         (errno): Declare if not defined.
29401
29402         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
29403
29404         * lib/config.charset: New version, incorporating remarks from a linux
29405         i18n mailing list.  From Bruno Haible.
29406
29407 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
29408
29409         * m4/codeset.m4: New file.
29410         * m4/iconv.m4: New file.
29411         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
29412
29413 2000-03-03  Jim Meyering  <meyering@lucent.com>
29414
29415         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
29416
29417 2000-03-02  Jim Meyering  <meyering@lucent.com>
29418
29419         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
29420         the messages come out on separate lines.
29421
29422         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
29423         rather than jm_CHECK_DECLARATIONS.
29424         * m4/decl.m4: Remove now-unused file.
29425
29426         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
29427         geteuid.
29428
29429 2000-03-02  Jim Meyering  <meyering@lucent.com>
29430
29431         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
29432
29433 2000-03-01  Jim Meyering  <meyering@lucent.com>
29434
29435         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
29436         * lib/unicodeio.c: Likewise.
29437
29438 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
29439
29440         * lib/config.charset: New file.
29441         * lib/localcharset.c: New file.
29442         * lib/unicodeio.h, lib/unicodeio.c: New files.
29443         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
29444         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
29445         (noinst_HEADERS): Add unicodeio.h.
29446         (all-local, install-exec-local, charset.alias): New targets.
29447
29448 2000-02-28  Paul Eggert  <eggert@twinsun.com>
29449
29450         * lib/quotearg.c (ALERT_CHAR): New macro.
29451         (quotearg_buffer_restyled): Use it.
29452
29453 2000-02-27  Jim Meyering  <meyering@lucent.com>
29454
29455         * m4/check-decl.m4: Add getenv to the list.
29456
29457 2000-02-27  Jim Meyering  <meyering@lucent.com>
29458
29459         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
29460         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
29461
29462         * lib/backupfile.c: Guard inclusion of stdlib.h with
29463         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
29464         Declare malloc if needed.
29465
29466         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
29467         `#ifndef HAVE_DECL..'
29468         now that autoconf always defines the HAVE_DECL_ symbols.
29469         * lib/human.c: Likewise.
29470         * lib/same.c: Likewise.
29471         * lib/strtoumax.c: Likewise.
29472
29473         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
29474         declaration check was not run.
29475         * lib/hash.c: Likewise.
29476         * lib/human.c: Likewise.
29477         * lib/same.c: Likewise.
29478         * lib/strtoumax.c: Likewise.
29479
29480         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
29481         `.', then first look up the entire `.'-containing string as a login
29482         name.
29483
29484 2000-02-23  Jim Meyering  <meyering@lucent.com>
29485
29486         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
29487         in place of my hack.
29488
29489 2000-02-18  Paul Eggert  <eggert@twinsun.com>
29490
29491         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
29492         (textint): New typedef.
29493         (parser_control): Member year changed from int to textint.
29494         All uses changed.
29495         (YYSTYPE): Removed; replaced by %union with int and textint members.
29496         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
29497         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
29498         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
29499         (tSNUMBER, tUNUMBER): Now of type <textintval>.
29500         (date, number, to_year): Use width of number in digits, not its value,
29501         to determine whether it's a 2-digit year, or a 2-digit time.
29502         (yylex): Store number of digits of numeric tokens.
29503         Reported by John Kendall.
29504
29505         (parser_control): Changed from struct parser_control to typedef (for
29506         consistency).  All uses changed.
29507
29508         (tID): Removed; not used.
29509         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
29510
29511 2000-02-14  Paul Eggert  <eggert@twinsun.com>
29512
29513         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
29514         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
29515
29516 2000-02-12  Jim Meyering  <meyering@lucent.com>
29517
29518         * lib/userspec.c (ISDIGIT): Define it.
29519         (isdigit): Remove definition.
29520         (is_number): Use ISDIGIT, not isdigit.
29521         <libintl.h>: Include.
29522         (_ and N_): Define.
29523         (parse_user_spec): Mark translatable strings.
29524
29525 2000-02-10  Jim Meyering  <meyering@lucent.com>
29526
29527         With these changes, nanosleep.[ch] are finally enough like the other
29528         lib/* replacement files to compile on a few more losing systems.
29529
29530         * lib/nanosleep.h: Don't include config.h.
29531         Remove prototype from declaration of nanosleep.
29532         (PARAMS): Remove now-unneeded definition.
29533         * lib/nanosleep.c: #undef nanosleep.
29534         (rpl_nanosleep): Rename from nanosleep.
29535
29536 2000-02-10  Jim Meyering  <meyering@lucent.com>
29537
29538         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
29539         gnu_nanosleep to rpl_nanosleep.
29540
29541 2000-02-09  Jim Meyering  <meyering@lucent.com>
29542
29543         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
29544         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
29545
29546 2000-02-08  Akim Demaille  <akim@epita.fr>
29547
29548         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
29549         `[' and `]' and remove uses of `changequote'.
29550         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
29551         (AC_SYS_LARGEFILE): Likewise.
29552         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
29553         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
29554         of changequote.
29555         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
29556         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
29557         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
29558         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
29559
29560 2000-02-05  Jim Meyering  <meyering@lucent.com>
29561
29562         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
29563         Remove explicit use of AC_HEADER_TIME.  It is required by
29564         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
29565         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
29566         in autoconf whereby the expansion of the latter ended up preceding
29567         the expansion of its prerequisite, AC_HEADER_TIME.
29568         Reported by Volker Borchert.
29569
29570 2000-02-03  Jim Meyering  <meyering@lucent.com>
29571
29572         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
29573
29574 2000-02-03  Jim Meyering  <meyering@lucent.com>
29575
29576         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
29577         rather than with `#if HAVE_UTMPNAME'.
29578
29579 2000-02-02  Jim Meyering  <meyering@lucent.com>
29580
29581         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
29582         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
29583         Reported by Eli Zaretskii.
29584
29585 2000-02-01  Jim Meyering  <meyering@lucent.com>
29586
29587         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
29588
29589 2000-01-31  Jim Meyering  <meyering@lucent.com>
29590
29591         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
29592         functions.  Add the time.h and sys/time.h headers along with the
29593         AC_REQUIRE'ment of AC_HEADER_TIME.
29594
29595 2000-01-31  Jim Meyering  <meyering@lucent.com>
29596
29597         * lib/nanosleep.h (nanosleep): Guard declaration with
29598         `#if ! HAVE_DECL_NANOSLEEP'.
29599         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
29600         the declaration in that vendor's sys/timers.h.
29601         Reported by Christian Krackowizer.
29602
29603         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
29604         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
29605         (ISPRINT): Likewise.
29606         Reported by Tom Tromey.
29607
29608 2000-01-30  Jim Meyering  <meyering@lucent.com>
29609
29610         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
29611
29612         * m4/prereq.m4 (utmp_includes): Define.
29613         Check for ut_user and ut_name members in both struct utmpx
29614         and struct utmp.
29615
29616 2000-01-30  Jim Meyering  <meyering@lucent.com>
29617
29618         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
29619         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
29620         header files where only utmpx.ut_user is declared.
29621
29622         * lib/readutmp.h (UT_USER): Define.
29623
29624 2000-01-29  Jim Meyering  <meyering@lucent.com>
29625
29626         * m4/lib-check.m4: New file containing library-related checks from
29627         fileutils and sh-utils (textutils had none).
29628
29629 2000-01-28  Jim Meyering  <meyering@lucent.com>
29630
29631         * m4/perl.m4: Change format of warning message to look more like that
29632         from the missing script.  Suggestion from François Pinard.
29633
29634 2000-01-25  Jim Meyering  <meyering@lucent.com>
29635
29636         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
29637         well as time.h in the compile check.
29638         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
29639         Fix typo in cross-compiling case: s/yes/no/.
29640
29641 2000-01-23  Jim Meyering  <meyering@lucent.com>
29642
29643         * m4/jm-macros.m4: Move df-related tests here from
29644         fileutils/configure.in
29645
29646         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
29647         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
29648
29649         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
29650         s/space/ac_fsusage_space/.
29651         (jm_FILE_SYSTEM_USAGE): Take two parameters.
29652
29653         * m4/ftruncate.m4: New file (derived from part of
29654         fileutils/configure.in).
29655         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
29656         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
29657
29658         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
29659         AC_SUBST these here, rather than just in sh-util/configure.in, so
29660         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
29661         all the same.
29662         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
29663         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
29664         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
29665         (AC_SUBST(POW_LIBM)): Likewise.
29666         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
29667
29668 2000-01-23  Jim Meyering  <meyering@lucent.com>
29669
29670         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
29671         obstack.c.
29672
29673 2000-01-22  Jim Meyering  <meyering@lucent.com>
29674
29675         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
29676
29677         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
29678
29679         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
29680         configure.in
29681         (AC_CHECK_HEADERS): Likewise for sh-utils.
29682         (AC_CHECK_HEADERS): Likewise for textutils.
29683         Merge the three lists of headers.
29684
29685         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
29686         from fileutils' configure.in.
29687
29688         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
29689         code. Moved tests into their own function (_jm_DECL_HEADERS) in
29690         check-decl.m4.
29691
29692         * m4/check-decl.m4: Use #if rather than #ifdef.
29693         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
29694         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
29695         (_jm_DECL_HEADERS): Define new function.
29696         (jm_CHECK_DECLARATIONS): Require it.
29697
29698 2000-01-22  Jim Meyering  <meyering@lucent.com>
29699
29700         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
29701         [! HAVE_DECL_STRTOULL]: Declare strtoull.
29702         Required for some AIX systems.  Reported by Christian Krackowizer.
29703         [TESTING] (main): New function.
29704
29705         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
29706         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
29707         letters.
29708
29709         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
29710         iswprint.
29711
29712         * lib/strverscmp.c (ISDIGIT): Define.
29713         (strverscmp): Use ISDIGIT, not isdigit.
29714
29715 2000-01-19  Jim Meyering  <meyering@lucent.com>
29716
29717         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
29718         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
29719         defines `struct timespec' in <sys/time.h>
29720
29721         * m4/c-bs-a.m4: Remove uses of changequote altogether.
29722         Thanks to Akim for explaining.
29723
29724 2000-01-17  Paul Eggert  <eggert@twinsun.com>
29725
29726         * lib/nanosleep.c (nanosleep):
29727         Don't use SA_INTERRUPT to decide whether to call sigaction, as
29728         POSIX.1 doesn't require SA_INTERRUPT and some systems
29729         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
29730         it's been part of POSIX.1 since day 1 (in 1988).
29731
29732 2000-01-17  Jim Meyering  <meyering@lucent.com>
29733
29734         * lib/interlock: Remove unused file.  Reported by François Pinard.
29735
29736 2000-01-16  Paul Eggert  <eggert@twinsun.com>
29737
29738         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
29739         alert, backslash, formfeed, and vertical tab unnecessarily in
29740         shell quoting style.
29741
29742 2000-01-16  Jim Meyering  <meyering@lucent.com>
29743
29744         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
29745         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
29746         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
29747         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
29748
29749 2000-01-16  Jim Meyering  <meyering@lucent.com>
29750
29751         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
29752         because the latter didn't work.
29753
29754 2000-01-15  Jim Meyering  <meyering@lucent.com>
29755
29756         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
29757         (AC_REPLACE_FUNCS): Add memcpy and memset.
29758         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
29759         Add strpbrk.
29760         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
29761
29762 2000-01-12  Jim Meyering  <meyering@lucent.com>
29763
29764         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
29765         (jm_PREREQ): Use it.
29766         (jm_PREREQ_READUTMP): New macro.
29767         (jm_PREREQ): Use it.
29768
29769 2000-01-11  Paul Eggert  <eggert@twinsun.com>
29770
29771         Quote multibyte characters correctly.
29772         * m4/c-bs-a.m4: New file.
29773         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
29774         (jm_PREREQ): Use it.
29775
29776 2000-01-11  Paul Eggert  <eggert@twinsun.com>
29777
29778         * m4/uintmax_t.m4: Port to autoconf 2.13.
29779
29780 2000-01-08  Jim Meyering  <meyering@ascend.com>
29781
29782         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
29783         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
29784
29785 2000-01-04  Jim Meyering  <meyering@ascend.com>
29786
29787         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
29788         jm_STRUCT_DIRENT_D_TYPE.
29789         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
29790         jm_STRUCT_DIRENT_D_INO.
29791         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
29792         jm_STRUCT_UTIMBUF.
29793         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
29794         renamings.
29795         * m4/utime.m4: Likewise.
29796
29797         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
29798         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
29799
29800 2000-01-03  Paul Eggert  <eggert@twinsun.com>
29801
29802         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
29803         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
29804
29805 2000-01-02  Jim Meyering  <meyering@ascend.com>
29806
29807         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
29808         remember if this is necessary.
29809
29810 1999-12-26  Jim Meyering  <meyering@ascend.com>
29811
29812         * m4/jm-macros.m4: Use it here.
29813         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
29814
29815 1999-12-23  Jim Meyering  <meyering@ascend.com>
29816
29817         * m4/jm-macros.m4: Check for clock_gettime (moved from
29818         fileutils/configure.in)
29819         Check for gettimeofday.
29820
29821 1999-12-20  Jim Meyering  <meyering@ascend.com>
29822
29823         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
29824         autoconf-2.14a-1999-12-20.
29825
29826 1999-12-19  Jim Meyering  <meyering@ascend.com>
29827
29828         * m4/lstat-slash.m4: New file.
29829         * m4/jm-macros.m4: Use the new macro:
29830         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
29831
29832 1999-12-07  Jim Meyering  <meyering@ascend.com>
29833
29834         * m4/perl.m4: Require that File::Compare be available, too.
29835         Too many systems seem to lack it.
29836
29837         * m4/strftime.m4: Add checks for most of the cpp macros tested in
29838         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
29839
29840 1999-11-18  Paul Eggert  <eggert@twinsun.com>
29841
29842         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
29843         problem with the QNX 4.25 shell, which doesn't propagate exit
29844         status of failed commands inside shell assignments.
29845
29846 1999-11-17  Jim Meyering  <meyering@ascend.com>
29847
29848         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
29849
29850 1999-11-07  Jim Meyering  <meyering@ascend.com>
29851
29852         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
29853
29854 1999-11-06  Jim Meyering  <meyering@ascend.com>
29855
29856         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
29857         * m4/jm-macros.m4 (jm_MACROS): Use it here.
29858
29859 1999-11-05  Jim Meyering  <meyering@ascend.com>
29860
29861         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
29862         configure.in of textutils, fileutils, and sh-utils into this one
29863         (shared between those packages) file.
29864         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
29865         AC_STRUCT_ST_BLKSIZE.
29866
29867 1999-11-03  Jim Meyering  <meyering@ascend.com>
29868
29869         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
29870         of AC_CHECK_TYPE checks includes unistd.h.
29871         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
29872         Suggestion from Akim Demaille.
29873
29874 1999-10-30  Jim Meyering  <meyering@ascend.com>
29875
29876         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
29877         m4-quoted string.
29878         * m4/ls-mntd-fs.m4: Likewise.
29879         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
29880         * m4/jm-winsz1.m4: Likewise.
29881
29882         * m4/const.m4: Remove file, since the fix made it into the experimental
29883         version of autoconf.
29884         * m4/mktime.m4: Likewise.
29885
29886         * m4/check-type.m4: Remove file, now that the latest version of
29887         AC_CHECK_TYPE takes a third arg to specify additional #includes.
29888
29889         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
29890         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
29891         AC_CHECK_TYPE.
29892
29893 1999-10-04  Jim Meyering  <meyering@ascend.com>
29894
29895         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
29896
29897 1999-09-22  Paul Eggert  <eggert@twinsun.com>
29898
29899         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
29900         2.95.1 bug with HP-UX 10.20.
29901
29902 1999-09-17  Jim Meyering  <meyering@ascend.com>
29903
29904         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
29905         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
29906         due to missing strdup (against sh-utils-2.0).
29907
29908 1999-08-29  Jim Meyering  <meyering@ascend.com>
29909
29910         * m4/jm-macros.m4: Require jm_BISON.
29911         * m4/bison.m4: New file.
29912
29913 1999-08-17  Paul Eggert  <eggert@twinsun.com>
29914
29915         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
29916         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
29917
29918 1999-08-05  Jim Meyering  <meyering@ascend.com>
29919
29920         * m4/getline.m4: Rename test file from conftestdata to conftest.data
29921         to avoid conflicts with `conftest' on 8+3 filesystems.
29922         Suggestion from Eli Zaretskii.
29923
29924 1999-08-04  Jim Meyering  <meyering@ascend.com>
29925
29926         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
29927         fileutils and sh-utils (textutils's getline test was inadequate).
29928         (AM_FUNC_GETLINE): Run this test.
29929         (AC_CHECK_FUNCS): Check for getdelim.
29930         Reported by Bob Proulx.
29931
29932 1999-08-02  Jim Meyering  <meyering@ascend.com>
29933
29934         * m4/jm-macros.m4: Add a comment.
29935
29936 1999-08-01  Paul Eggert  <eggert@twinsun.com>
29937
29938         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
29939         <inttypes.h> defines strtoumax as a macro (and not as a
29940         function).
29941
29942 1999-08-01  Paul Eggert  <eggert@twinsun.com>
29943
29944         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
29945         that we can shift, multiply and divide unsigned long long
29946         values; Ultrix cc can't do it.
29947
29948 1999-08-01  Paul Eggert  <eggert@twinsun.com>
29949
29950         * m4/mktime.m4: New file, which is a preview of what should appear
29951         in the next public autoconf release.
29952
29953 1999-08-01  Paul Eggert  <eggert@twinsun.com>
29954
29955         * m4/lfs.m4: Remove this file.
29956         * m4/largefile.m4: New file.  It contains the old contents of
29957         lfs.m4, except that all names with prefix AC_LFS have been
29958         changed to use the prefix AC_SYS_LARGEFILE instead, to be
29959         compatible with future autoconf versions.  Also, some minor m4
29960         quoting problems have been fixed.
29961
29962 1999-08-01  Paul Eggert  <eggert@twinsun.com>
29963
29964         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
29965         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
29966         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
29967         and simplify the shell code.
29968
29969 1999-08-01  Jim Meyering  <meyering@ascend.com>
29970
29971         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
29972         m4.
29973
29974 1999-07-20  Jim Meyering  <meyering@ascend.com>
29975
29976         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
29977
29978 1999-07-15  Jim Meyering  <meyering@ascend.com>
29979
29980         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
29981
29982 1999-05-22  Jim Meyering  <meyering@ascend.com>
29983
29984         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
29985
29986 1999-05-20  Jim Meyering  <meyering@ascend.com>
29987
29988         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
29989         Add a colon after each `then' in case $4 is empty.
29990
29991 1999-05-16  Jim Meyering  <meyering@ascend.com>
29992
29993         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
29994
29995 1999-05-10  Jim Meyering  <meyering@ascend.com>
29996
29997         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
29998
29999         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
30000         AC_FUNC_MKTIME.
30001
30002 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
30003
30004         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
30005
30006 1999-05-04  Paul Eggert  <eggert@twinsun.com>
30007
30008         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
30009         not CPPFLAGS, so that linking works correctly in IRIX.
30010
30011 1999-04-30  Paul Eggert  <eggert@twinsun.com>
30012
30013         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
30014
30015 1999-04-20  Paul Eggert  <eggert@twinsun.com>
30016
30017         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
30018         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
30019         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
30020         jm_AC_TYPE_UNSIGNED_LONG_LONG.
30021         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
30022
30023         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
30024
30025 1999-04-20  Jim Meyering  <meyering@ascend.com>
30026
30027         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
30028         AC_REPLACE xstroull if necessary.  From Paul Eggert.
30029         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
30030
30031 1999-04-18  Jim Meyering  <meyering@ascend.com>
30032
30033         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
30034         * m4/jm-macros.m4: Use it.
30035
30036 1999-04-06  Jim Meyering  <meyering@ascend.com>
30037
30038         * m4/strftime.m4: Remove test for %f.
30039
30040 1999-03-29  Jim Meyering  <meyering@ascend.com>
30041
30042         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
30043         superset of the AC_TYPE_* checks in the textutils, fileutils,
30044         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
30045         AC_TYPE_PID_T.
30046
30047 1999-03-28  Jim Meyering  <meyering@ascend.com>
30048
30049         * m4/jm-macros.m4: Define GNU_PACKAGE here.
30050         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
30051         replaced e.g., in the *.sh files of the sh-utils.
30052
30053 1999-03-20  Jim Meyering  <meyering@ascend.com>
30054
30055         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
30056         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
30057         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
30058
30059 1999-03-19  Jim Meyering  <meyering@ascend.com>
30060
30061         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
30062
30063 1999-03-12  Jim Meyering  <meyering@ascend.com>
30064
30065         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
30066
30067 1999-03-07  Jim Meyering  <meyering@ascend.com>
30068
30069         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
30070         declared.
30071
30072 1999-02-17  Jim Meyering  <meyering@ascend.com>
30073
30074         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
30075         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
30076
30077 1999-02-07  Jim Meyering  <meyering@ascend.com>
30078
30079         * m4/group-member.m4: New file -- extracted from sh-utils'
30080         configure.in.
30081
30082         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
30083         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
30084
30085 1999-02-06  Jim Meyering  <meyering@ascend.com>
30086
30087         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
30088         * m4/fnmatch.m4: Likewise.
30089         * m4/getgroups.m4: Likewise.
30090         * m4/lstat.m4: Likewise.
30091         * m4/malloc.m4: Likewise.
30092         * m4/putenv.m4: Likewise.
30093         * m4/realloc.m4: Likewise.
30094         * m4/regex.m4: Likewise.
30095         * m4/stat.m4: Likewise.
30096         * m4/strftime.m4: Likewise.
30097         Suggestion from Alain Magloire.
30098
30099         * m4/chown.m4: Use `.$ac_objext', not `.o'.
30100         * m4/fnmatch.m4: Likewise.
30101         * m4/getgroups.m4: Likewise.
30102         * m4/getline.m4: Likewise.
30103         * m4/lstat.m4: Likewise.
30104         * m4/malloc.m4: Likewise.
30105         * m4/memcmp.m4: Likewise.
30106         * m4/putenv.m4: Likewise.
30107         * m4/realloc.m4: Likewise.
30108         * m4/regex.m4: Likewise.
30109         * m4/stat.m4: Likewise.
30110         * m4/strftime.m4: Likewise.
30111         Suggestion from Alain Magloire.
30112
30113         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
30114         an argument.
30115
30116         * m4/regex.m4: Add a run-time Test for proper operation of
30117         re_compile_pattern.
30118
30119 1999-01-31  Jim Meyering  <meyering@ascend.com>
30120
30121         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
30122
30123 1999-01-30  Jim Meyering  <meyering@ascend.com>
30124
30125         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
30126
30127         * m4/jm-mktime.m4: Make this a wrapper around the official
30128         AM_FUNC_MKTIME rather than my private copy, now that the official one
30129         is up to date.
30130         * m4/mktime.m4: Remove file.
30131
30132         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
30133         * m4/uptime.m4: Likewise.
30134         * m4/uintmax_t.m4: Likewise.
30135
30136 1999-01-28  Jim Meyering  <meyering@ascend.com>
30137
30138         * m4/jm-macros.m4: Use jm_AFS.
30139         * m4/afs.m4: New file (from fileutils' configure.in).
30140
30141         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
30142         * m4/chown.m4: Likewise.
30143         * m4/d-ino.m4: Likewise.
30144         * m4/d-type.m4: Likewise.
30145         * m4/fnmatch.m4: Likewise.
30146         * m4/getgroups.m4: Likewise.
30147         * m4/gettext.m4: Likewise.
30148         * m4/jm-mktime.m4: Likewise.
30149         * m4/jm-winsz2.m4: Likewise.
30150         * m4/lcmessage.m4: Likewise.
30151         * m4/ls-mntd-fs.m4: Likewise.
30152         * m4/malloc.m4: Likewise.
30153         * m4/memcmp.m4: Likewise.
30154         * m4/putenv.m4: Likewise.
30155         * m4/realloc.m4: Likewise.
30156         * m4/st_mtim.m4: Likewise.
30157         * m4/strftime.m4: Likewise.
30158
30159 1999-01-16  Jim Meyering  <meyering@ascend.com>
30160
30161         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
30162         (ARGMATCH_DIE_DECL): Define.
30163
30164 1999-01-12  Jim Meyering  <meyering@ascend.com>
30165
30166         * m4/Makefile.am.in: Rewrite to avoid using fmt.
30167         Reported by Lars Hecking.
30168
30169 1999-01-10  Jim Meyering  <meyering@ascend.com>
30170
30171         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
30172         gross kludge.
30173         * m4/inttypes_h.m4: Likewise.
30174         * m4/lstat.m4: Likewise.
30175         * m4/malloc.m4: Likewise.
30176         * m4/readdir.m4: Likewise.
30177         * m4/realloc.m4: Likewise.
30178         * m4/st_dm_mode.m4: Likewise.
30179         * m4/stat.m4: Likewise.
30180         * m4/utimbuf.m4: Likewise.
30181         * m4/utimes.m4: Likewise.
30182
30183         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
30184         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
30185         comments in config.h.in are meaningful.
30186
30187         * m4/jm-macros.m4: Require autoconf-2.13 here.
30188
30189         * m4/regex.m4: By default, don't use the included regex.c on systems
30190         with glibc 2.  Suggestion from Uli Drepper.
30191
30192 1999-01-02  Jim Meyering  <meyering@ascend.com>
30193
30194         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
30195
30196 1998-12-18  Jim Meyering  <meyering@ascend.com>
30197
30198         * m4/Makefile.am.in (Makefile.am): Simplify rule.
30199         Based on a suggestion from Lars Hecking.
30200
30201 1998-11-16  Paul Eggert  <eggert@twinsun.com>
30202
30203         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
30204
30205 1998-11-16  Jim Meyering  <meyering@ascend.com>
30206
30207         * m4/lfs.m4: Double-quote the `uname...` expression.
30208
30209 1998-11-14  Jim Meyering  <meyering@ascend.com>
30210
30211         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
30212         * m4/stat.m4: Likewise.
30213
30214 1998-11-03  Jim Meyering  <meyering@ascend.com>
30215
30216         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
30217         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
30218
30219 1998-10-18  Jim Meyering  <meyering@ascend.com>
30220
30221         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
30222
30223 1998-10-17  Jim Meyering  <meyering@ascend.com>
30224
30225         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
30226         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
30227         calls for those previously hard-coded headers.  Instead, take a new
30228         parameter.
30229         (jm_CHECK_DECLARATIONS): Reflect interface change.
30230         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
30231         (jm_CHECK_DECL_LOCALTIME_R): New macro.
30232
30233         * m4/mktime.m4: Test for spring-forward gap before long-running test.
30234
30235 1998-10-14  Jim Meyering  <meyering@ascend.com>
30236
30237         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
30238         instead of "TZ=America/Vancouver".  From Paul Eggert.
30239
30240 1998-10-11  Jim Meyering  <meyering@ascend.com>
30241
30242         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
30243         This adds a test for a recently added compatibility fix for mktime.c.
30244         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
30245
30246 1998-09-27  Jim Meyering  <meyering@ascend.com>
30247
30248         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
30249
30250         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
30251         ../configure.in, including a change from Gordon Matzigkeit to allow
30252         cross-compiling for the Hurd.
30253
30254         * m4/glibc.m4: New file/macro to test for the GNU C Library
30255         versions 1 and 2.  From Gordon Matzigkeit.
30256         Indent.
30257
30258 1998-09-21  Jim Meyering  <meyering@ascend.com>
30259
30260         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
30261
30262 1998-08-18  Paul Eggert  <eggert@twinsun.com>
30263
30264         Port nanosecond-resolution times to UnixWare 2.1.2 and
30265         pedantic Solaris 2.6.
30266
30267         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
30268         AC_STRUCT_ST_MTIM.
30269         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
30270         Generate name of ns member, instead of just 1 or undef.
30271         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
30272
30273 1998-08-15  Jim Meyering  <meyering@ascend.com>
30274
30275         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
30276         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
30277         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
30278         instead of jm_TYPE_SSIZE_T.
30279
30280 1998-08-12  Jim Meyering  <meyering@ascend.com>
30281
30282         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
30283
30284 1998-08-02  Jim Meyering  <meyering@ascend.com>
30285
30286         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
30287         in acconfig.h manually.
30288
30289 1998-07-31  Paul Eggert  <eggert@twinsun.com>
30290
30291         * m4/st_mtim.m4: New file.
30292
30293 1998-07-28  Jim Meyering  <meyering@ascend.com>
30294
30295         * m4/utimes.m4: Undef stat.
30296
30297 1998-07-25  Jim Meyering  <meyering@ascend.com>
30298
30299         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
30300         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
30301
30302 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
30303
30304         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
30305         uid and gid actually remain unchanged.
30306
30307 1998-07-07  Jim Meyering  <meyering@ascend.com>
30308
30309         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
30310
30311 1998-07-04  Jim Meyering  <meyering@ascend.com>
30312
30313         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
30314         to prove that this macro can be used in packages without regex.c.
30315
30316 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
30317
30318         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
30319         is to be used.
30320
30321 1998-07-03  Jim Meyering  <meyering@ascend.com>
30322
30323         * m4/gettext.m4: Add -lintl if it's found to be necessary.
30324
30325         * m4/gettext.m4: New file -- from gettext-0.10.35.
30326         * m4/lcmessage.m4: Likewise.
30327         * m4/progtest.m4: Likewise.
30328
30329         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
30330         * m4/jm-macros.m4: Require the new macro.
30331
30332 1998-06-29  Jim Meyering  <meyering@ascend.com>
30333
30334         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
30335         for the definition of NGROUPS (used in a system header included
30336         by sys/mount.h).
30337
30338 1998-06-28  Jim Meyering  <meyering@ascend.com>
30339
30340         * m4/ls-mntd-fs.m4: New file.
30341         * m4/fstypename.m4: New file.
30342
30343         * m4/jm-macros.m4: Require the new macro.
30344         * m4/jm-glibc-io.m4: New file.
30345
30346 1998-05-19  Jim Meyering  <meyering@ascend.com>
30347
30348         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
30349         * m4/lchown.m4: New file.
30350
30351         * m4/Makefile.am.in: New file.
30352         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
30353
30354 1998-05-14  Jim Meyering  <meyering@ascend.com>
30355
30356         * m4/Makefile.am (EXTRA_DIST): Add them.
30357         * m4/jm-macros.m4: New file.
30358         * m4/utimbuf.m4: New file.
30359
30360 1998-05-12  Jim Meyering  <meyering@ascend.com>
30361
30362         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
30363
30364 1998-05-11  Jim Meyering  <meyering@ascend.com>
30365
30366         * m4/isc-posix.m4: New file.
30367
30368 1998-05-10  Jim Meyering  <meyering@ascend.com>