fprintftime: remove stray semicolon from previous change
[gnulib.git] / ChangeLog
1 2009-10-28  Jim Meyering  <meyering@redhat.com>
2
3         fprintftime: remove stray semicolon from previous change
4         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
5
6         fprintftime: avoid a warning about ignored fwrite return value
7         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
8         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
9         that is unsafe.
10         * modules/fprintftime (Depends-on): Add ignore-value.
11
12         exclude: avoid an unwarranted warning
13         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
14
15 2009-10-27  Eric Blake  <ebb9@byu.net>
16
17         fseek: avoid compilation failure when fflush is replaced
18         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
19         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
20         module is in use.
21         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
22         module is not in use; since REPLACE_FSEEK worked otherwise.
23         (GNULIB_FTELLO): Likewise for ftell.
24         Reported by Ian Beckwith and others.
25
26 2009-10-27  Bruno Haible  <bruno@clisp.org>
27
28         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
29         Reported by Jim Meyering.
30
31 2009-10-27  Jim Meyering  <jim@meyering.net>
32             Bruno Haible  <bruno@clisp.org>
33
34         Avoid warning despite dropping the return value of fwrite.
35         * lib/unicodeio.c: Include ignore-value.h.
36         (fwrite_success_callback): Explicitly ignore fwrite's return value.
37         * modules/unicodeio (Depends-on): Add ignore-value.
38
39 2009-10-26  Eric Blake  <ebb9@byu.net>
40
41         areadlinkat: fix fallback path
42         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
43         pointer and zero.
44
45 2009-10-22  Pádraig Brady  <P@draigBrady.com>
46
47         Use a better IO block size for modern systems
48         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
49         * lib/md2.c: Likewise.
50         * lib/md4.c: Likewise.
51         * lib/md5.c: Likewise.
52         * lib/sha1.c: Likewise.
53         * lib/sha256.c: Likewise.
54         * lib/sha512.c: Likewise.
55
56 2009-10-22  Eric Blake  <ebb9@byu.net>
57
58         tests: avoid several compiler warnings
59         * tests/test-getcwd.c (main): Avoid buffer underflow.
60         * tests/test-getdate.c (main): String literals are not safe with
61         putenv, so use setenv.  Declare unused argument.
62         * modules/getdate-tests (Depends-on): Add setenv.
63         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
64         problems with string literals in char *.
65         * tests/test-hash.c (main): Avoid shadowing declaration.
66         (insert_new): Treat string literals as char const *.
67         * tests/test-getopt.h (test_getopt): Likewise.
68         (getopt_loop): Alter types to minimize casting elsewhere.
69         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
70         (test_getopt_long_posix): Likewise.
71         (do_getopt_long): Add wrapper to minimize casting.
72         * tests/test-atexit.c (clear_temp_file): Use void.
73         * tests/test-areadlink-with-size.c (main): Declare unused
74         arguments.
75         * tests/test-areadlink.c (main): Likewise.
76         * tests/test-areadlinkat-with-size.c (main): Likewise.
77         * tests/test-areadlinkat.c (main): Likewise.
78         * tests/test-canonicalize-lgpl.c (main): Likewise.
79         * tests/test-canonicalize.c (main): Likewise.
80         * tests/test-dirent-safer.c (main): Likewise.
81         * tests/test-dirname.c (main): Likewise.
82         * tests/test-dup2.c (main): Likewise.
83         * tests/test-fchdir.c (main): Likewise.
84         * tests/test-fcntl-h.c (main): Likewise.
85         * tests/test-fcntl-safer.c (main): Likewise.
86         * tests/test-fdopendir.c (main): Likewise.
87         * tests/test-fdutimensat.c (main): Likewise.
88         * tests/test-fflush.c (main): Likewise.
89         * tests/test-filenamecat.c (main): Likewise.
90         * tests/test-filevercmp.c (main): Likewise.
91         * tests/test-fopen-safer.c (main): Likewise.
92         * tests/test-fopen.c (main): Likewise.
93         * tests/test-fpending.c (main): Likewise.
94         * tests/test-fpurge.c (main): Likewise.
95         * tests/test-freading.c (main): Likewise.
96         * tests/test-fstatat.c (main): Likewise.
97         * tests/test-fsync.c (main): Likewise.
98         * tests/test-futimens.c (main): Likewise.
99         * tests/test-getndelim2.c (main): Likewise.
100         * tests/test-gettimeofday.c (main): Likewise.
101         * tests/test-getopt.c (main): Likewise.
102         * tests/test-i-ring.c (main): Likewise.
103         * tests/test-inttypes.c (main): Likewise.
104         * tests/test-link.c (main): Likewise.
105         * tests/test-lstat.c (main): Likewise.
106         * tests/test-math.c (main): Likewise.
107         * tests/test-md5.c (main): Likewise.
108         * tests/test-memchr2.c (main): Likewise.
109         * tests/test-memrchr.c (main): Likewise.
110         * tests/test-mkdir.c (main): Likewise.
111         * tests/test-mkdirat.c (main): Likewise.
112         * tests/test-mkfifoat.c (main): Likewise.
113         * tests/test-open.c (main): Likewise.
114         * tests/test-openat-safer.c (main): Likewise.
115         * tests/test-openat.c (main): Likewise.
116         * tests/test-quotearg.c (main): Likewise.
117         * tests/test-rawmemchr.c (main): Likewise.
118         * tests/test-readlink.c (main): Likewise.
119         * tests/test-remove.c (main): Likewise.
120         * tests/test-rename.c (main): Likewise.
121         * tests/test-renameat.c (main): Likewise.
122         * tests/test-rmdir.c (main): Likewise.
123         * tests/test-sha1.c (main): Likewise.
124         * tests/test-signal.c (main): Likewise.
125         * tests/test-sigaction.c (main): Likewise.
126         * tests/test-stat.c (main): Likewise.
127         * tests/test-stat-time.c (main): Likewise.
128         * tests/test-stddef.c (main): Likewise.
129         * tests/test-stdint.c (main): Likewise.
130         * tests/test-stdio.c (main): Likewise.
131         * tests/test-stdlib.c (main): Likewise.
132         * tests/test-strchrnul.c (main): Likewise.
133         * tests/test-strerror.c (main): Likewise.
134         * tests/test-string.c (main): Likewise.
135         * tests/test-strtod.c (main): Likewise.
136         * tests/test-strverscmp.c (main): Likewise.
137         * tests/test-symlink.c (main): Likewise.
138         * tests/test-symlinkat.c (main): Likewise.
139         * tests/test-sys_stat.c (main): Likewise.
140         * tests/test-sys_time.c (main): Likewise.
141         * tests/test-time.c (main): Likewise.
142         * tests/test-unistd.c (main): Likewise.
143         * tests/test-unlink.c (main): Likewise.
144         * tests/test-unlinkat.c (main): Likewise.
145         * tests/test-utimens.c (main): Likewise.
146         * tests/test-utimensat.c (main): Likewise.
147         * tests/test-version-etc.c (main): Likewise.
148         * tests/test-wchar.c (main): Likewise.
149         * tests/test-wctype.c (main): Likewise.
150         * tests/test-xprintf-posix.c (main): Likewise.
151         * tests/test-posixtm.c (main): Likewise.
152         (STREQ): Delete unused macro.
153         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
154         shadowed variables.
155         * tests/test-memchr.c (main): Likewise.
156
157 2009-10-21  Eric Blake  <ebb9@byu.net>
158
159         areadlinkat: avoid failure on older glibc
160         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
161         rather than mis-comparing 0 against FUNC_RESULT of char*.
162
163 2009-10-21  Bruno Haible  <bruno@clisp.org>
164
165         * modules/stpncpy (License): Relicense under LGPLv2+.
166         Reported by David Lutterkort <lutter@redhat.com>.
167
168 2009-10-20  Eric Blake  <ebb9@byu.net>
169
170         utimensat: work around Solaris 9 bug
171         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
172         has trailing slash bugs.
173         * tests/test-lutimens.h (test_lutimens): Enhance test.
174         * tests/test-utimens.h (test_utimens): Likewise.
175         * doc/posix-functions/utime.texi (utime): Enhance documentation.
176         * doc/posix-functions/utimes.texi (utimes): Likewise.
177         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
178         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
179         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
180         * doc/posix-functions/futimens.texi (futimens): Likewise.
181
182         fdutimensat: new module
183         * modules/fdutimensat: New file.
184         * lib/fdutimensat.c (fdutimensat): Likewise.
185         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
186         * MODULES.html.sh (File system functions): Mention module.
187         * modules/fdutimensat-tests: New test.
188         * tests/test-fdutimensat.c: Likewise.
189
190         doc: regenerate INSTALL
191         * doc/INSTALL: Reflect recent autoconf update.
192         * doc/INSTALL.ISO: Likewise.
193         * doc/INSTALL.UTF-8: Likewise.
194
195 2009-10-20  Pádraig Brady  <P@draigBrady.com>
196
197         acl: warn if ACL support is not detected
198         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
199
200 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
201
202         * lib/nproc.h: Add extern "C" block for C++.
203
204 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
205             Bruno Haible  <bruno@clisp.org>
206
207         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
208         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
209         * doc/posix-functions/isalpha.texi: Likewise.
210         * doc/posix-functions/isblank.texi: Likewise.
211         * doc/posix-functions/iscntrl.texi: Likewise.
212         * doc/posix-functions/isdigit.texi: Likewise.
213         * doc/posix-functions/isgraph.texi: Likewise.
214         * doc/posix-functions/islower.texi: Likewise.
215         * doc/posix-functions/isprint.texi: Likewise.
216         * doc/posix-functions/ispunct.texi: Likewise.
217         * doc/posix-functions/isspace.texi: Likewise.
218         * doc/posix-functions/isupper.texi: Likewise.
219         * doc/posix-functions/isxdigit.texi: Likewise.
220
221 2009-10-18  Bruno Haible  <bruno@clisp.org>
222
223         Tests for module 'isblank'.
224         * modules/isblank-tests: New file.
225         * tests/test-isblank.c: New file.
226
227         New module 'isblank'.
228         * lib/isblank.c: New file.
229         * m4/isblank.m4: New file.
230         * modules/isblank: New file.
231         * doc/posix-functions/isblank.texi: Mention the new module.
232
233 2009-10-18  Bruno Haible  <bruno@clisp.org>
234
235         New module 'ctype'.
236         * lib/ctype.in.h: New file.
237         * m4/ctype.m4: New file.
238         * modules/ctype: New file.
239         * doc/posix-headers/ctype.texi: Mention the new module.
240
241 2009-10-18  Jim Meyering  <meyering@redhat.com>
242
243         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
244         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
245         right after its initialization, rather than farther down.
246         Keeping these in close proximity makes it easier to ensure
247         that each such variable is initialized.  E.g.,
248
249             LIB_CLOCK_GETTIME=
250             AC_SUBST([LIB_CLOCK_GETTIME])
251
252         This change also increments these serial numbers.
253         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
254         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
255         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
256
257 2009-10-18  Bruno Haible  <bruno@clisp.org>
258
259         Don't let environment variables perturb build.
260         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
261         (gl_PREREQ_GETHRXTIME): ... not here.
262
263 2009-10-18  Bruno Haible  <bruno@clisp.org>
264
265         Avoid symlink attack in localcharset module.
266         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
267         (O_NOFOLLOW): Define fallback.
268         (get_charset_aliases): Don't open the file if it is a symbolic link.
269         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
270         gl_FCNTL_H.
271         (gl_FCNTL_H): Require it.
272         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
273         * modules/localcharset (Files): Add m4/fcntl_h.m4.
274         Reported by Fergal Glynn <fglynn@veracode.com>.
275
276 2009-10-18  Bruno Haible  <bruno@clisp.org>
277
278         Implement nproc for mingw.
279         * lib/nproc.c: Include <windows.h>
280         (num_processors): On native Windows platforms, try GetSystemInfo.
281
282 2009-10-18  Bruno Haible  <bruno@clisp.org>
283
284         Implement nproc for IRIX.
285         * lib/nproc.c: Include <sys/sysmp.h>.
286         (num_processors): On IRIX systems, try sysmp.
287         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
288
289 2009-10-18  Bruno Haible  <bruno@clisp.org>
290
291         Implement nproc for HP-UX.
292         * lib/nproc.c: Include <sys/pstat.h>
293         (num_processors): On HP-UX systems, try pstat_getdynamic.
294         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
295         pstat_getdynamic.
296
297 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
298             Bruno Haible  <bruno@clisp.org>
299
300         Implement nproc for NetBSD, OpenBSD.
301         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
302         (ARRAY_SIZE): New macro.
303         (num_processors): On BSD systems, try sysctl of HW_NCPU.
304         * m4/nproc.m4: New file.
305         * modules/nproc (Files): Add m4/nproc.m4.
306         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
307         (Makefile.am): Instead, augment lib_SOURCES.
308
309 2009-10-18  Bruno Haible  <bruno@clisp.org>
310
311         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
312         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
313         sys/param.h.
314
315 2009-10-16  Eric Blake  <ebb9@byu.net>
316
317         utimensat: new module
318         * modules/utimensat: New file.
319         * lib/utimensat.c (utimensat): Likewise.
320         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
321         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
322         so we can work around Linux bugs.
323         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
324         * modules/sys_stat (Makefile.am): Substitute them.
325         * lib/sys_stat.in.h (utimensat): Declare it.
326         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
327         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
328         * modules/utimensat-tests: New test.
329         * tests/test-utimensat.c: Likewise.
330
331         utimens: let lutimens work on non-symlinks
332         * lib/utimens.c (lutimens): Fall back to utimens rather than
333         failing with ENOSYS, when file is not a symlink.
334         (utimens): Reduce redirection.
335         * tests/test-lutimens.h (test_lutimens): Update test to cover
336         non-symlinks.
337         * tests/test-utimens.h (test_utimens): Update test to cover
338         symlinks.
339         * tests/test-utimens.c (main): Update caller.
340
341         utimens: cache whether utimensat syscall works
342         * lib/utimens.c (utimensat_works_really): New cache variable.
343         (fdutimens, lutimens): Use it to avoid failing syscall.
344
345         test-stat-time, test-utimens: improve portability
346         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
347         ext4 on alpha, and for cygwin.
348         * tests/test-utimens-common.h: New file.
349         (nap): Factor delays into single function.
350         * tests/test-lutimens.h (test_lutimens): Use new header.
351         * tests/test-futimens.h (test_futimens): Likewise.
352         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
353         timestamps to occur from same machine, as was done previously for
354         test_utimens.
355         * modules/utimens-tests (Files): Ship new file.
356         * modules/futimens-tests (Files): Likewise.
357         Reported in part by Jim Meyering.
358
359         sys_stat: sort replacement declarations
360         * lib/sys_stat.in.h: Sort declarations.
361         * lib/futimens.c (futimens): Fix typo.
362
363 2009-10-15  Jim Meyering  <meyering@redhat.com>
364
365         don't let environment settings perturb build
366         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
367         could cause a configure-time and/or build-time malfunction.
368         Typically, a configure-time function-in-library test is performed
369         via code like this:
370
371           LIB_VAR=
372           AC_SUBST([LIB_VAR])
373           prefix_saved_LIBS=$LIBS
374             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
375                        [test "$ac_cv_search_FUNC" = "none required" ||
376                         LIB_VAR=$ac_cv_search_FUNC])
377           LIBS=$prefix_saved_LIBS
378
379         However, in each of the files affected by this change, the LIB_VAR=
380         initialization was omitted.  Thus, when set in the environment, its
381         value would propagate into generated Makefiles when FUNC is not found
382         in LIB_NAME.
383         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
384         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
385         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
386
387 2009-10-14  Eric Blake  <ebb9@byu.net>
388
389         fchdir: avoid infinite recursion in mingw
390         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
391         recursing.
392
393         test-stat-time: port to mingw
394         * tests/test-stat-time.c (force_unlink): Return a value.
395         (test_ctime) [W32]: Fix compilation error.
396         (nap): Don't call usleep with too large an argument.  Use
397         force_unlink.
398         * doc/pastposix-functions/usleep.texi (usleep): Document the
399         portability issue.
400
401 2009-10-13  Jim Meyering  <meyering@redhat.com>
402
403         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
404         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
405         * modules/pipe-filter-ii: Likewise.
406         * modules/sys_socket-tests: Likewise.
407         * modules/tsearch-tests: Likewise.
408         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
409         (check): Depend on it.
410
411 2009-10-12  Eric Blake  <ebb9@byu.net>
412
413         utimens-tests: port to NFS file systems
414         * tests/test-utimens.h (test_utimens): Refactor utimecmp
415         comparisons to avoid spurious failures from timestamp drift
416         between NFS machines.
417
418 2009-10-12  Eric Blake  <ebb9@byu.net>
419
420         stat-time-tests: minor cleanups
421         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
422         * tests/test-stat-time.c (nap): Separate assignment from call.
423         Suggested by Paolo Bonzini and Bruno Haible.
424
425         sys_stat: guarantee struct timespec
426         * lib/sys_stat.in.h (includes): Always include <time.h>
427         * modules/sys_stat (Depends-on): Add time.
428         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
429         mode_t permission values.
430         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
431         get at subsecond timestamps.
432
433 2009-10-10  Eric Blake  <ebb9@byu.net>
434
435         futimens: new module
436         * modules/futimens: New file.
437         * lib/futimens.c (futimens): Likewise.
438         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
439         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
440         we can work around Linux bugs.
441         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
442         * modules/sys_stat (Makefile.am): Substitute them.
443         * lib/sys_stat.in.h (futimens): Declare it.
444         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
445         * doc/posix-functions/futimens.texi (futimens): Likewise.
446         * modules/futimens-tests: New test.
447         * tests/test-futimens.c: Likewise.
448
449         utimens: introduce fdutimens
450         * lib/utimens.h (fdutimens): New prototype.
451         * lib/utimens.c (gl_futimens): Move guts...
452         (fdutimens): ...to new interface.
453         * tests/test-utimens.c (do_fdutimens): Use it.
454
455         utimens: add UTIME_NOW and UTIME_OMIT support
456         * lib/utimens.c (validate_timespec, update_timespec): New helper
457         functions.
458         (gl_futimens, lutimens): Use them.
459         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
460         stdbool, sys_stat.
461         (Link): Mention resulting library dependency.
462         * modules/utimecmp (Link): Likewise.
463         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
464         (Makefile.am): Pick up library dependency.
465         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
466         definition.
467         * tests/test-sys_stat.c: Test the definitions.
468         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
469         * NEWS: Document library dependency.
470
471         utimecmp: support symlink timestamps
472         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
473         hashing when possible.  Use pathconf when available.
474         (SYSCALL_RESOLUTION): Recognize tighter resolution.
475         * modules/utimecmp (Depends-on): Add lstat.
476
477         utimens: add lutimens interface
478         * lib/utimens.c (lutimens): New function.
479         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
480         * lib/utimens.h (lutimens): Declare new interface.
481         * tests/test-utimens.c (main): Enhance test.
482         * tests/test-lutimens.h (test_lutimens): New file.
483         * modules/utimens-tests (Files): Distribute it.
484         (Depends-on): Add symlink.
485         (configure.ac): Check for usleep.
486
487         utimens: validate futimens usage
488         * lib/utimens.c (gl_futimens): Require valid fd up front, using
489         fewer syscalls on failure later on.  Avoid compiler warning on
490         mingw.
491         * modules/utimens (Depends-on): Add dup2.
492
493         utimens: add test
494         * modules/utimens-tests: New test.
495         * tests/test-utimens.h: New file.
496         * tests/test-futimens.h: Likewise.
497         * tests/test-utimens.c: Likewise.
498
499         doc: mention timestamp portability issues
500         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
501         instead.
502         * doc/posix-functions/utime.texi (utime): Likewise.
503         * doc/posix-functions/utimes.texi (utimes): Likewise.
504         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
505         instead.
506         * doc/posix-functions/futimens.texi (futimens): Mention utimens
507         module.
508         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
509         Mention weakness with symlink timestamps.
510         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
511         to utimensat/futimens instead.
512         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
513
514         test-dup2: enhance test
515         * tests/test-dup2.c (main): Also check AT_FDCWD.
516
517         test-stat-time: avoid more spurious failures
518         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
519         xfs; and avoid race if the two timestamps cross quantization edge.
520
521         relocatable: prefer 'file system' over 'filesystem'
522         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
523         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
524         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
525         * doc/relocatable.texi (Enabling Relocatability): Likewise.
526         * lib/relocatable.c (compute_curr_prefix): Likewise.
527
528 2009-10-10  Jim Meyering  <meyering@redhat.com>
529
530         stat-time-tests: check for the usleep function
531         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
532
533 2009-10-10  Bruno Haible  <bruno@clisp.org>
534
535         * modules/xnanosleep: Put the Link section after the Include section.
536
537 2009-10-09  Eric Blake  <ebb9@byu.net>
538
539         dup2: work around FreeBSD 6.1 bug
540         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
541         * doc/posix-functions/dup2.texi (dup2): Document it.
542         Reported by Nelson H. F. Beebe and Jim Meyering.
543
544         test-stat-time: port to buggy NFS clients
545         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
546         (test_ctime): Also skip test if mtime and ctime are skewed.
547
548         maint: prefer 'file system' over 'filesystem'
549         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
550         * doc/posix-functions/lstat.texi (lstat): Likewise.
551         * lib/file-has-acl.c (file_has_acl): Likewise.
552         * lib/fwriteerror.c [TEST]: Likewise.
553         * tests/test-areadlink.h (test_areadlink): Likewise.
554         * tests/test-areadlinkat-with-size.c (main): Likewise.
555         * tests/test-areadlinkat.c (main): Likewise.
556         * tests/test-canonicalize-lgpl.c (main): Likewise.
557         * tests/test-canonicalize.c (main): Likewise.
558         * tests/test-fstatat.c (main): Likewise.
559         * tests/test-linkat.c (main): Likewise.
560         * tests/test-lstat.h (test_lstat_func): Likewise.
561         * tests/test-mkdir.h (test_mkdir): Likewise.
562         * tests/test-readlink.h (test_readlink): Likewise.
563         * tests/test-remove.c (main): Likewise.
564         * tests/test-rename.h (test_rename): Likewise.
565         * tests/test-renameat.c (main): Likewise.
566         * tests/test-rmdir.h (test_rmdir_func): Likewise.
567         * tests/test-symlink.h (test_symlink): Likewise.
568         * tests/test-symlinkat.c (main): Likewise.
569         * tests/test-unlink.h (test_unlink_func): Likewise.
570         * tests/test-unlinkat.c (main): Likewise.
571
572         maint: make realtime library usage explicit
573         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
574         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
575         * modules/settime (Link): Likewise.
576         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
577
578         test-stat-time: speed up execution
579         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
580         warning on mingw.
581         (nap): New helper function.
582         (prepare_test): Use it to reduce sleep time.
583         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
584         execution.
585         * modules/stat-time-tests (configure.ac): Check for usleep.
586
587 2009-10-09  Jim Meyering  <meyering@redhat.com>
588
589         selinux-h: always use getfilecon wrappers
590         * lib/getfilecon.c: New file.
591         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
592         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
593         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
594         (fgetfilecon): Provide a stub.
595         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
596         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
597         file unconditionally.
598         When <selinux/selinux.h> is found, arrange to use wrappers.
599         * modules/selinux-h (Files): Add getfilecon.c.
600         (Makefile.am): Substitute include-next-related bits
601         into the now-always-generated selinux/selinux.h file.
602         * doc/glibc-functions/lgetfilecon.texi: New file.
603         * doc/glibc-functions/fgetfilecon.texi: New file.
604         * doc/glibc-functions/getfilecon.texi: New file.
605         * doc/glibc-functions/getfilecon-desc.texi: New file.
606         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
607         which to pull in the new files.
608         * MODULES.html.sh (Misc): Add selinux-h.
609
610 2009-10-08  Jim Meyering  <meyering@redhat.com>
611
612         unistd: fix comment typo
613         * lib/unistd.in.h (euidaccess): Fix a comment typo.
614
615 2009-10-08  Eric Blake  <ebb9@byu.net>
616
617         areadlink: use SIZE_MAX consistently
618         * modules/areadlink (Depends-on): Add stdint.
619         * modules/areadlink-with-size (Depends-on): Likewise.
620         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
621         gives NULL; drop sys/types, since unistd gives size_t; and add
622         stdint for SIZE_MAX.
623         (SIZE_MAX): Rely on headers.
624         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
625         and add stdint.
626         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
627         (SIZE_MAX): Likewise.
628         (INITIAL_BUF_SIZE): Turn into enum.
629         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
630
631 2009-10-08  Jim Meyering  <meyering@redhat.com>
632
633         areadlinkat: avoid compilation failure
634         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
635         Fix typo in comment.
636
637 2009-10-07  Eric Blake  <ebb9@byu.net>
638
639         areadlinkat-with-size: new module
640         * modules/areadlinkat-with-size: New module.
641         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
642         * lib/areadlink.h (areadlinkat): Declare it.
643         * MODULES.html.sh (File system functions): Mention it.
644         * modules/areadlinkat-with-size-tests: New test.
645         * tests/test-areadlinkat-with-size.c: New file.
646
647         xreadlinkat: new module
648         * modules/xreadlinkat: New module.
649         * lib/xreadlinkat.c (xreadlinkat): New file.
650         * lib/xreadlink.h (xreadlinkat): Declare it.
651         * MODULES.html.sh (File system functions): Mention it.
652
653         areadlinkat: new module
654         * lib/at-func.c (FUNC_FAIL): New define.
655         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
656         * modules/areadlinkat: New module.
657         * lib/linkat.c (areadlinkat): Move...
658         * lib/areadlinkat.c (areadlinkat): ...to new file.
659         * lib/areadlink.h (areadlinkat): Declare it.
660         * modules/linkat (Depends-on): Add areadlinkat.
661         * MODULES.html.sh (File system functions): Mention it.
662         * modules/areadlinkat-tests: New test.
663         * tests/test-areadlinkat.c: New file.
664
665         areadlink, areadlink-with-size: add tests
666         * modules/areadlink-tests: New test.
667         * modules/areadlink-with-size-tests: Likewise.
668         * tests/test-areadlink.h: New file.
669         * tests/test-areadlink.c: Likewise.
670         * tests/test-areadlink-with-size.c: Likewise.
671
672         maint: minor cleanups
673         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
674         _UNUSED_PARAMETER_ instead.
675         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
676         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
677         * modules/linkat-tests (Files): Distribute test-link.h.
678
679         openat, utimens: whitespace cleanup
680         * lib/openat.c: Prefer space throughout, rather than mix of 8
681         spaces vs. tabs.
682         * lib/at-func.c: Likewise.
683         * lib/utimens.c: Likewise.
684
685         openat: avoid using wrong fd
686         * lib/openat.c (openat_permissive): Reject user's fd if saving the
687         working directory chooses same fd.
688         * lib/at-func.c (AT_FUNC_NAME): Likewise.
689
690         mkdir, mkdirat: fix cygwin 1.5.x bug
691         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
692         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
693         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
694         bug.
695         (gl_PREREQ_MKDIR): Delete unused macro.
696         * modules/mkdir (Files): Track file rename.
697         (configure.ac): Update macro name.
698         * modules/openat (Depends-on): Add mkdir.
699         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
700
701         mkdir, mkdirat: add tests
702         * modules/mkdir-tests: New test.
703         * tests/test-mkdir.h: New file.
704         * tests/test-mkdir.c: Likewise.
705         * tests/test-mkdirat.c: Likewise.
706         * modules/openat-tests (Files): Add new files.
707         (Makefile.am): Run new test.
708
709 2009-10-06  Eric Blake  <ebb9@byu.net>
710
711         doc: tweak *at function documentation
712         * doc/posix-functions/faccessat.texi (faccessat): Mention
713         known issue with replacement.
714         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
715         * doc/posix-functions/linkat.texi (linkat): Likewise.
716         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
717         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
718         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
719         * doc/posix-functions/renameat.texi (renameat): Likewise.
720         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
721
722         openat: fix GNU/Hurd bug in unlinkat
723         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
724         broken.
725         * doc/posix-functions/unlink.texi (unlink): Document this.
726         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
727
728         fdopendir: fix GNU/Hurd bug
729         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
730         allowing non-directory fds.
731         * lib/fdopendir.c (rpl_fdopendir): Work around it.
732         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
733         * modules/dirent (Makefile.am): Substitute it.
734         * lib/dirent.in.h (fdopendir): Declare replacement.
735         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
736         * tests/test-fdopendir.c (main): Test something other than
737         /dev/null, since on Hurd that behaves like a directory.
738
739         test-symlink: port to GNU/Hurd
740         * tests/test-symlink.h (test_symlink): Relax expected errno.
741
742         doc: tweak more cygwin information
743         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
744         now compatible with glibc.
745         * doc/posix-functions/getopt.texi (getopt): Likewise.
746
747         getopt-gnu: add another test
748         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
749         guarantee behavior relied on by m4.
750         * tests/test-getopt.c (main): Use it.
751         * modules/getopt-posix-tests (Depends-on): Add setenv.
752         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
753
754         getopt: fix compilation on darwin
755         * lib/getopt.in.h (includes): Leave breadcrumbs during system
756         include.
757         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
758         Reported by Ludovic Courtès.
759
760 2009-10-06  Bruno Haible  <bruno@clisp.org>
761
762         * modules/size_max (Description): Discourage its use.
763         Reported by Simon Josefsson.
764
765 2009-10-06  Jim Meyering  <meyering@redhat.com>
766
767         linkat: avoid compilation failure
768         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
769
770 2009-10-05  Eric Blake  <ebb9@byu.net>
771
772         linkat: support Linux 2.6.17
773         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
774         linkat on Linux, but allow cache variable override.
775         * lib/linkat.c (rpl_linkat): Define override.
776         * modules/linkat (Depends-on): Add symlinkat.
777         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
778         * modules/unistd (Makefile.am): Substitute it.
779         * lib/unistd.in.h (linkat): Declare replacement.
780         Reported by Pádraig Brady.
781
782         quotearg: port test to systems with C.UTF-8 locale
783         * tests/test-quotearg.c (struct result_strings): Add another
784         member, differentiating between C.ASCII and C.UTF-8 handling.
785         (compare_strings): Add parameter.
786         (main): Adjust all callers.
787
788         getopt: avoid clash with FreeBSD _getopt_internal
789         * lib/getopt.in.h (_getopt_internal): Override the name.
790         * lib/getopt_int.h (includes): Pick up any overrides.
791         Reported by Reuben Thomas.
792
793         hash: allow C89 compilation
794         * lib/hash.c (check_tuning): Move declaration before statement.
795         Reported by Reuben Thomas.
796
797 2009-10-05  Karl Berry  <karl@gnu.org>
798
799         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
800
801 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
802             Bruno Haible  <bruno@clisp.org>
803
804         * lib/uname.c (uname): Use a table-driven algorithm to compute
805         Windows NT versions.
806
807 2009-10-04  Bruno Haible  <bruno@clisp.org>
808
809         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
810         program_invocation_short_name.
811         * modules/progname (configure.ac): Test for presence of
812         program_invocation_short_name.
813         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
814
815 2009-10-04  Bruno Haible  <bruno@clisp.org>
816
817         * lib/progname.c (set_program_name): Fix comment.
818         Reported by Jim Meyering.
819
820 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
821             Bruno Haible  <bruno@clisp.org>
822
823         * lib/uname.c: Include <string.h>.
824         (uname): Do only one call to GetVersionEx in the common case.
825
826 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
827             Bruno Haible  <bruno@clisp.org>
828
829         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
830         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
831         (uname): Add support for Windows CE and various non-x86 CPU types.
832
833 2009-10-03  Bruno Haible  <bruno@clisp.org>
834
835         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
836         invocation to tests/configure.ac.
837         Reported by Ian Beckwith <ianb@erislabs.net>.
838
839 2009-10-02  Eric Blake  <ebb9@byu.net>
840
841         fchdir: avoid compiler warning
842         * lib/fchdir.c (canonicalize_file_name)
843         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
844
845         test-open: support mingw errno values
846         * tests/test-open.h (test_open): Relax test.
847         * tests/test-fopen.h (test_fopen): Likewise.
848         * tests/test-openat-safer.c (main): Likewise.
849
850         open: fix opening directory on mingw
851         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
852
853         test-open: on GNU/Hurd, /dev/null is a directory
854         * tests/test-fopen.h (main): Rename...
855         (test_fopen): ...to this.  Use a guaranteed non-directory when
856         confirming open behavior on trailing slash.
857         * tests/test-openat-safer.c (main): Likewise.
858         * tests/test-open.h (main): Likewise....
859         (test_open): ...to this.
860         * tests/test-fopen.c (main): Adjust caller.
861         * tests/test-fopen-safer.c (main): Likewise.
862         * tests/test-open.c (main): Likewise.
863         * tests/test-fcntl-safer.c (main): Likewise.
864         Reported by Samuel Thibault.
865
866         rename, fchdir: don't ignore chdir failure
867         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
868         * lib/rename.c (rpl_rename) [W32]: Likewise.
869         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
870         an empty destination directory if source cannot be renamed,
871         although there is still possibility for failure.
872         * doc/posix-functions/rename.texi (rename): Document the race.
873         Reported by Jim Meyering.
874
875         maint: cleanup whitespace in recent commits
876         * lib/rename.c (rpl_rename): Remove tabs.
877         * tests/test-link.h (test_link): Likewise.
878         * lib/fchdir.c (get_name): Likewise.
879         Reported by Jim Meyering.
880
881 2009-10-02  Ben Pfaff  <blp@gnu.org>
882
883         relocatable-prog-wrapper: Add missing dependency on
884         double-slash-root.
885         * modules/relocatable-prog-wrapper: Add dependency.
886         Reported by Ian Beckwith <ianb@erislabs.net>.
887
888 2009-10-02  Eric Blake  <ebb9@byu.net>
889
890         renameat: fix Solaris bugs
891         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
892         needed fixing.
893         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
894         * modules/stdio (Makefile.am): Substitute it.
895         * lib/stdio.in.h (renameat): Declare replacement.
896         * lib/renameat.c (rpl_renameat): Implement fix.
897
898         renameat: new module
899         * modules/renameat: New file.
900         * lib/renameat.c (renameat): Likewise.
901         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
902         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
903         * modules/stdio (Makefile.am): Substitute them.
904         * lib/stdio.in.h (renameat): Declare it.
905         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
906         * doc/posix-functions/renameat.texi (renameat): Likewise.
907         * modules/renameat-tests: New test.
908         * tests/test-renameat.c: Likewise.
909
910         rename: fix mingw bugs
911         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
912         directory overwrite bugs.
913
914         rename: fix another cygwin 1.5 bug
915         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
916         checks.
917         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
918         unnecessary cygwin workarounds.  Also work around bug with moving
919         full directory onto an empty one.
920         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
921
922         rename-dest-slash: merge into rename module
923         * modules/rename-dest-slash (Status): Mark obsolete.
924         (Depends-on): Add rename.
925         (Files): Let rename do it all.
926         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
927         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
928         * m4/rename-dest-slash.m4: ...so this file can be deleted.
929         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
930         * lib/rename.c (rpl_rename): Update comments.
931
932         rename: fix cygwin 1.5.x bugs
933         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
934         * lib/rename.c (rpl_rename): Work around them.
935         * modules/rename (Depends-on): Add same-inode.
936
937         rename: fix Solaris 10 bug
938         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
939         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
940         was the only bug.
941
942         rename: fix Solaris 9 bug
943         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
944         on non-directory.  Avoid calling exit.
945         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
946         strdup.
947         * modules/rename-tests (Depends-on): Drop lstat.
948         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
949         (gl_PREREQ_RENAME): Delete unused macro.
950
951         rename-dest-slash: fix NetBSD bug
952         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
953         links.
954         * modules/rename-dest-slash (Depends-on): Add same-inode.
955
956         rename-tests: new test, exposes several platform bugs
957         * modules/rename-tests: New file.
958         * tests/test-rename.h: Likewise.
959         * tests/test-rename.c: Likewise.
960         * doc/posix-functions/rename.texi (rename): Improve documentation,
961         including bugs that will eventually be fixed in gnulib.
962
963 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
964
965         * lib/uname.c: Include <stdlib.h>
966         (uname): Assume version info is available.
967
968 2009-10-02  Jim Meyering  <meyering@redhat.com>
969
970         gnu-web-doc-update: correct --help output
971         * build-aux/gnu-web-doc-update: Make --help output relevant.
972
973         gnu-web-doc-update: add standard options
974         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
975
976         gnu-web-doc-update: New module.
977         Use this script to automatically update the on-line web documentation
978         for your GNU project at http://www.gnu.org/software/$pkg/manual/
979         * modules/gnu-web-doc-update: New file, from coreutils.
980         * build-aux/gnu-web-doc-update: New script.
981
982 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
983
984         link: LoadLibrary is not needed.
985         * lib/link.c: Use GetModuleHandle.
986
987 2009-10-01  Eric Blake  <ebb9@byu.net>
988
989         getopt: bump serial number
990         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
991         change.
992
993         tests: tighten link, rmdir, and remove tests
994         * tests/test-link.h (includes): No need to use <config.h> here.
995         Clean up if directory hard link was created, otherwise test for
996         trailing '.'.
997         * tests/test-linkat.c (main): Simplify.
998         * tests/test-remove.c (main): Enhance test for trailing '.'.
999         * tests/test-rmdir.h (test_rmdir_func): Likewise.
1000
1001 2009-10-01  Jim Meyering  <meyering@redhat.com>
1002
1003         maint.mk: requiring "make major" was annoying, for a "minor" release.
1004         What is intended is "stable", to contrast with alpha and beta,
1005         so require "make stable", not "make major".
1006         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
1007         (get_tool_versions): Likewise.
1008         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
1009
1010 2009-09-30  Ben Pfaff  <blp@gnu.org>
1011
1012         Fix broken build of replacement for Windows tmpfile().
1013         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
1014         flags argument added along with the 'mkostemp' module.
1015
1016 2009-09-28  Bruno Haible  <bruno@clisp.org>
1017
1018         Avoid identifier clash with POSIX function 'remove' defined as a macro.
1019         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
1020         to 'remove_elt'.
1021         (gl_list_remove): Update.
1022         * lib/gl_list.c (gl_list_remove): Update.
1023         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
1024         to 'remove_elt'.
1025         (gl_oset_remove): Update.
1026         * lib/gl_list.c (gl_oset_remove): Update.
1027         Reported by Eric Blake.
1028
1029 2009-09-28  Eric Blake  <ebb9@byu.net>
1030
1031         doc: mention yet more cygwin 1.7 status
1032         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
1033         cygwin.
1034         * doc/glibc-functions/execvpe.texi (execvpe): New file.
1035         * doc/gnulib.texi (Glibc unistd.h): Mention it.
1036
1037         argp: fix test failure
1038         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
1039         that are not upper-case.  Pass correct range to tolower.
1040
1041 2009-09-27  Jim Meyering  <meyering@redhat.com>
1042
1043         test-yesno: work around sparc-dash here-document infelicity
1044         Without this change, the literal \177 byte in a here document
1045         would make dash 0.5.5.1-3 access uninitialized memory.
1046         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
1047         Instead, use a marker, "@", and filter through tr to create the desired
1048         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
1049
1050 2009-09-27  Bruno Haible  <bruno@clisp.org>
1051
1052         Disable untested support for new flavours of ACLs on AIX.
1053         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
1054         progress.
1055         * lib/set-mode-acl.c (qset_acl): Likewise.
1056
1057 2008-12-07  Bruno Haible  <bruno@clisp.org>
1058
1059         Add support for new flavours of ACLs on AIX. (Untested.)
1060         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
1061         (file_has_acl): Add support for newer AIX.
1062         * lib/set-mode-acl.c (qset_acl): Likewise.
1063         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
1064         Rainer Tammer <tammer@tammer.net>.
1065
1066 2009-09-26  Eric Blake  <ebb9@byu.net>
1067
1068         argp: fix compilation of getopt
1069         * lib/getopt.in.h (includes): Use different guard than glibc.
1070         Reported by Sergey Poznyakoff.
1071
1072         doc: mention more cygwin 1.7 status
1073         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
1074         bug.
1075         * doc/posix-functions/execl.texi (execl): Likewise.
1076         * doc/posix-functions/execle.texi (execle): Likewise.
1077         * doc/posix-functions/execlp.texi (execlp): Likewise.
1078         * doc/posix-functions/execv.texi (execv): Likewise.
1079         * doc/posix-functions/execve.texi (execve): Likewise.
1080         * doc/posix-functions/execvp.texi (execvp): Likewise.
1081         * doc/glibc-functions/canonicalize_file_name.texi
1082         (canonicalize_file_name): Cygwin 1.7 now provides this.
1083         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
1084         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
1085         on AT_SYMLINK_NOFOLLOW.
1086
1087 2009-09-24  Eric Blake  <ebb9@byu.net>
1088
1089         test-linkat: make test more robust
1090         * tests/test-linkat.c (main): Avoid collision with EEXIST.
1091
1092         getopt: fix inclusion guards for cygwin
1093         * modules/getopt-posix (Depends-on): Add include-next.
1094         (Makefile.am): Substitute more items in replacement header.
1095         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
1096         <getopt.h>.
1097         * lib/getopt.in.h (includes): Use split inclusion guard, and
1098         prefer <getopt.h> over include <unistd.h> when one is present.
1099         (option): Also override name of 'struct option'.
1100
1101         same-inode: revert prior change; it is not yet ready
1102         * NEWS: Undo mention of this change.
1103         * lib/same-inode.h (same-inode.h): Undo tri-state change.
1104         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
1105         * lib/cycle-check.c (cycle_check): Likewise.
1106         * lib/same.c (same_name): Likewise.
1107         * lib/at-func2.c (at_func2): Likewise.
1108
1109 2009-09-23  Eric Blake  <ebb9@byu.net>
1110
1111         linkat: new module
1112         * modules/linkat: New file.
1113         * lib/at-func2.c (at_func2): Likewise.
1114         * lib/linkat.c (linkat): Likewise.
1115         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
1116         * lib/openat-priv.h (at_func2): Add declaration.
1117         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
1118         * modules/unistd (Makefile.am): Substitute them.
1119         * lib/unistd.in.h (linkat): Declare it.
1120         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
1121         * doc/posix-functions/linkat.texi (linkat): Likewise.
1122         * doc/posix-functions/link.texi (link): Tweak wording.
1123         * tests/test-link.c (main): Move guts...
1124         * tests/test-link.h (test_link): ...into new file.
1125         * modules/linkat-tests: New test.
1126         * tests/test-linkat.c: Likewise.
1127         * modules/link-tests (Files): Ship new file.
1128         (Depends-on): Add stdbool.
1129
1130         dirname: add library-safe mdir_name
1131         * lib/dirname.h (mdir_name): New prototype.
1132         * lib/dirname.c (dir_name): Move guts...
1133         (mdir_name): ...to new function that avoids xalloc_die.
1134
1135         fchdir: another mingw fix
1136         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
1137         * lib/fchdir.c (get_name): New helper method; skips canonicalize
1138         on mingw (where it has not yet been ported), and make it optional
1139         elsewhere.
1140         (_gl_register_fd): Use it.
1141
1142         same-inode: make SAME_INODE tri-state, to port to mingw
1143         * NEWS: Mention this change.
1144         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
1145         st_ino always being 0.
1146         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
1147         * lib/cycle-check.c (cycle_check): Likewise.
1148         * lib/same.c (same_name): Likewise.
1149
1150         lstat: avoid mingw compilation error
1151         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
1152         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
1153         lstat ourselves.
1154         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
1155         was adequate.
1156         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
1157         the checks for lstat.
1158         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
1159
1160         link: fix test failure on Solaris 9
1161         * lib/link.c (rpl_link): Don't assume link will catch bogus
1162         trailing slash on source.
1163
1164         test-symlinkat: enhance test
1165         * tests/test-readlink.c (main): Move guts...
1166         * tests/test-readlink.h (test_readlink): ...into new file.
1167         * tests/test-symlink.c (main): Move guts...
1168         * tests/test-symlink.h (test_symlink): ...into new file.
1169         * tests/test-symlinkat.c (main): Use new files for further
1170         coverage.
1171         (do_symlink, do_readlink): New helper functions.
1172         * modules/symlink-tests (Files): Ship new file.
1173         (Depends-on): Add stdbool.
1174         * modules/readlink-tests (Files): Ship new file.
1175         (Depends-on): Add stdbool.
1176         * modules/symlinkat-tests (Files): Use new files.
1177
1178 2009-09-23  Eric Blake  <ebb9@byu.net>
1179
1180         readlink: document portability issue with symlink length
1181         * doc/posix-functions/lstat.texi (lstat): Mention that some file
1182         systems have bogus st_size on symlinks, and mention the
1183         areadlink-with-size module.
1184         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
1185         * doc/posix-functions/readlink.texi (readlink): Mention the
1186         areadlink module, and ERANGE failure.
1187         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
1188         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
1189
1190         readlink: fix Solaris 9 bug with trailing slash
1191         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
1192         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
1193         * doc/posix-functions/readlink.texi (readlink): Document this.
1194         * modules/readlink-tests: New test.
1195         * tests/test-readlink.c: Likewise.
1196
1197         readlink: fix cygwin 1.5.x bug with return type
1198         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
1199         * lib/unistd.in.h (readlink): Use ssize_t.
1200         * lib/readlink.c (readlink): Likewise.
1201         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
1202         * modules/unistd (Makefile.am): Substitute it.
1203         * lib/unistd.in.h (readlink): Declare replacement.
1204         * doc/posix-functions/readlink.texi (readlink): Document this.
1205
1206         symlink: use throughout gnulib
1207         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
1208         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
1209         symlink is not used.
1210         * modules/symlinkat (Depends-on): Add symlink.
1211         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
1212         * modules/canonicalize-tests (Depends-on): Likewise.
1213         * modules/lstat-tests (Depends-on): Likewise.
1214         * modules/openat-tests (Depends-on): Likewise.
1215         * modules/remove-tests (Depends-on): Likewise.
1216         * modules/rmdir-tests (Depends-on): Likewise.
1217         * modules/unlink-tests (Depends-on): Likewise.
1218         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
1219         * tests/test-canonicalize.c (symlink): Likewise.
1220         * tests/test-fstatat.c (symlink): Likewise.
1221         * tests/test-lstat.c (symlink): Likewise.
1222         * tests/test-remove.c (symlink): Likewise.
1223         * tests/test-rmdir.c (symlink): Likewise.
1224         * tests/test-unlink.c (symlink): Likewise.
1225         * tests/test-unlinkat.c (symlink): Likewise.
1226
1227         symlink: new module, for Solaris 9 bug
1228         * modules/symlink: New file.
1229         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
1230         * lib/symlink.c: Likewise.
1231         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
1232         * modules/unistd (Makefile.am): Substitute them.
1233         * lib/unistd.in.h (symlink): Declare replacement.
1234         * MODULES.html.sh (File system functions): Mention it.
1235         * doc/posix-functions/symlink.texi (symlink): Likewise.
1236         * modules/symlink-tests: New test.
1237         * tests/test-symlink.c: Likewise.
1238
1239 2009-09-23  Bruno Haible  <bruno@clisp.org>
1240
1241         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
1242         when needed.
1243         Test case: gnulib-tool --import --with-tests atexit inttypes.
1244         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
1245
1246 2009-09-23  Bruno Haible  <bruno@clisp.org>
1247
1248         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
1249         subcommand, not in a subshell.
1250
1251 2009-09-22  Eric Blake  <ebb9@byu.net>
1252
1253         unistd: sort replacement declarations
1254         * lib/unistd.in.h: Sort declarations.
1255
1256         open, openat: minor optimization
1257         * lib/open.c (open): If open succeeded, len is non-zero.
1258         * lib/openat.c (rpl_openat): Likewise.
1259
1260         link-follow: ensure correct result
1261         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
1262         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
1263         distinguish between possible failures.
1264
1265 2009-09-21  Eric Blake  <ebb9@byu.net>
1266
1267         fts: avoid compiler warning
1268         * lib/fts.c (dirent_inode_sort_may_be_useful)
1269         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
1270
1271 2009-09-19  Bruno Haible  <bruno@clisp.org>
1272
1273         * lib/progreloc.c (canonicalize_file_name): New declaration.
1274
1275 2009-09-19  Eric Blake  <ebb9@byu.net>
1276
1277         link: fix quoting
1278         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
1279
1280         openat: fix openat bugs on Solaris 9
1281         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
1282         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
1283         * modules/openat (Depends-on): Add open.
1284         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
1285         * modules/fcntl-h (Makefile.am): Substitute it.
1286         * lib/fcntl.in.h (openat): Declare replacement.
1287         * doc/posix-functions/openat.texi (openat): Document this.
1288
1289         openat: move fstatat and unlinkat into correct files
1290         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
1291         compiled.
1292         * lib/openat.c (fstatat, unlinkat): Move...
1293         * lib/fstatat.c (fstatat): ...into correct files.
1294         * lib/unlinkat.c (unlinkat): Likewise.
1295
1296         openat: fix unlinkat bugs on Solaris 9
1297         * lib/unlinkat.c (unlinkat): New file.
1298         * modules/openat (Depends-on): Add unlink.
1299         (Files): Distribute it.
1300         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
1301         trailing slash behavior is broken.
1302         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
1303         * modules/unistd (Makefile.am): Substitute it.
1304         * lib/unistd.in.h (unlinkat): Declare replacement.
1305         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
1306
1307         openat: fix fstatat bugs on Solaris 9
1308         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
1309         stat.
1310         * doc/posix-functions/fstatat.texi (fstatat): Document this.
1311
1312         test-unlinkat: enhance test, to expose Solaris 9 bug
1313         * tests/test-unlink.c (main): Factor guts...
1314         * tests/test-unlink.h (test_rmdir_func): ...into new file.
1315         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
1316         * tests/test-rmdir.c (main): Adjust caller.
1317         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
1318         (unlinker): New helper function.
1319         (rmdirat): Enhance check.
1320         * modules/rmdir-tests (Depends-on): Add stdbool.
1321         * modules/unlink-tests (Depends-on): Likewise.
1322         (Files): Add test-unlink.h.
1323         * modules/openat-tests (Files): Likewise.
1324         (Depends-on): Add unlinkdir.
1325
1326         test-fstatat: new test, to expose Solaris 9 bugs
1327         * tests/test-stat.c (main): Factor guts...
1328         * tests/test-stat.h (test_stat_func): ...into new file.
1329         * tests/test-lstat.c (main): Factor guts...
1330         * tests/test-lstat.h (test_lstat_func): ...into new file.
1331         * tests/test-fstatat.c: New file.
1332         * modules/stat-tests (Files): Add test-stat.h.
1333         * modules/lstat-tests (Files): Add test-lstat.h.
1334         (Depends-on): Add stdbool.
1335         * modules/openat-tests (Depends-on): Add pathmax.
1336         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
1337         (Makefile.am): Run new test.
1338
1339         remove: new module, for mingw and Solaris 9 bugs
1340         * modules/remove: New file.
1341         * lib/remove.c: Likewise.
1342         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
1343         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
1344         * modules/stdio (Makefile.am): Use them.
1345         * lib/stdio.in.h (remove): Declare replacement.
1346         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
1347         * doc/posix-functions/remove.texi (remove): Likewise.
1348         * modules/remove-tests: New test.
1349         * tests/test-remove.c: Likewise.
1350
1351         unlink: new module, for Solaris 9 bug
1352         * modules/unlink: New file.
1353         * lib/unlink.c: Likewise.
1354         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
1355         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
1356         * modules/unistd (Makefile.am): Use them.
1357         * lib/unistd.in.h (stat): Declare replacement.
1358         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
1359         * doc/posix-functions/unlink.texi (unlink): Likewise.
1360         * modules/unlink-tests: New test.
1361         * tests/test-unlink.c: Likewise.
1362
1363         lstat: fix Solaris 9 bug
1364         * lib/lstat.c (lstat): Also check for trailing slash on
1365         non-symlink, non-directories.  Use stat module to simplify logic.
1366         * doc/posix-functions/lstat.texi (lstat): Document it.
1367         * modules/lstat-tests (Depends-on): Add errno, same-inode.
1368         (configure.ac): Check for symlink.
1369         * tests/test-lstat.c (main): Add more tests.
1370
1371         stat: add as dependency to other modules
1372         * modules/chown (Depends-on): Add stat.
1373         * modules/euidaccess (Depends-on): Likewise.
1374         * modules/fchdir (Depends-on): Likewise.
1375         * modules/isdir (Depends-on): Likewise.
1376         * modules/link (Depends-on): Likewise.
1377         * modules/lstat (Depends-on): Likewise.
1378         * modules/mkdir-p (Depends-on): Likewise.
1379         * modules/modechange (Depends-on): Likewise.
1380         * modules/open (Depends-on): Likewise.
1381         * modules/readlink (Depends-on): Likewise.
1382         * modules/same (Depends-on): Likewise.
1383
1384         stat: fix Solaris 9 bug
1385         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
1386         slash.
1387         * lib/stat.c (rpl_stat): Work around it.
1388         * doc/posix-functions/stat.texi (stat): Update documentation.
1389
1390         stat: new module, for mingw bug
1391         * modules/stat: New file.
1392         * lib/stat.c: Likewise.
1393         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
1394         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
1395         * modules/sys_stat (Makefile.am): Use them.
1396         * lib/sys_stat.in.h (stat): Declare replacement.
1397         * lib/openat.c (fstatat): Deal with lstat and stat being function
1398         macros.
1399         * modules/openat (Depends-on): Add inline.
1400         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
1401         * doc/posix-functions/stat.texi (stat): Likewise.
1402         * modules/stat-tests: New test.
1403         * tests/test-stat.c: Likewise.
1404
1405 2009-09-19  Jim Meyering  <meyering@redhat.com>
1406
1407         syntax-check: detect unnecessary inclusion of canonicalize.h
1408         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
1409
1410 2009-09-19  Eric Blake  <ebb9@byu.net>
1411
1412         canonicalize-lgpl: adjust clients to use correct header
1413         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
1414         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
1415         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
1416         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
1417         * lib/progreloc.c (includes): Likewise.
1418
1419 2009-09-19  Jim Meyering  <meyering@redhat.com>
1420
1421         test-posixtm.c: correct a comment
1422         * tests/test-posixtm.c: Correct first-line comment.
1423         Spotted by Eric Blake.
1424
1425 2009-09-16  Jim Meyering  <meyering@redhat.com>
1426
1427         posixtm-tests: make T const-correct; add a test case
1428         * tests/test-posixtm.c (T): Declare const.
1429         Add a test for -(2^31+1).
1430         Remove useless can-succeed-only-in-2002 test.
1431
1432         posixtm-tests: adjust the sole failing test
1433         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
1434         expected output matches what mktime now produces.  Cross-checked via
1435         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
1436
1437         posixtm: move #ifdef'd tests into a new module
1438         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
1439         * tests/test-posixtm.c: ... this new file.
1440         * modules/posixtm-tests: New module.
1441
1442 2009-09-19  Eric Blake  <ebb9@byu.net>
1443
1444         openat: simplify use of at-func.c
1445         * lib/at-func.c (includes): Include prerequisites here, to
1446         simplify requirements on client files.
1447         * lib/openat-priv.h: Add double-inclusion guard.
1448         * lib/faccessat.c (includes): Simplify.
1449         * lib/fchmodat.c (includes): Likewise.
1450         * lib/fchownat.c (includes): Likewise.
1451         * lib/mkdirat.c (includes): Likewise.
1452         * lib/mkfifoat.c (includes): Likewise.
1453         * lib/symlinkat.c (includes): Likewise.
1454
1455         openat: allow return of fd 0
1456         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
1457         * modules/save-cwd (Depends-on): Replace fcntl-safer with
1458         unistd-safer.
1459         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
1460         <fcntl.h>; this module does not leak fds.
1461         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
1462         must be allowed to return 0, leaving openat_safer to add the
1463         safety.
1464         (openat_permissive): Avoid writing to just-opened fd 2 if
1465         restoring the current directory fails.
1466         * lib/openat-die.c (openat_restore_fail): Add comment.
1467         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
1468         (save_cwd): Guarantee safe fd, but without use of open_safer.
1469         * tests/test-openat.c: New test.
1470         * modules/openat-tests (Files, Makefile.am): Distribute and build
1471         new file.
1472
1473         relocatable-prog-wrapper: fix build
1474         * modules/relocatable-prog-wrapper (Files): Update name of
1475         canonicalize m4 file, broken on 2009-09-17.
1476         Reported by emad hajjar <aleppos@hotmail.com>.
1477
1478 2009-09-19  Bruno Haible  <bruno@clisp.org>
1479
1480         * lib/safe-alloc.h: Use the standard header with GPL copyright.
1481         * lib/safe-alloc.c: Likewise.
1482         Reported by Ian Beckwith <ianb@erislabs.net>.
1483
1484 2009-09-18  Bruno Haible  <bruno@clisp.org>
1485
1486         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
1487         Reported by <erobles@sensacd.com.mx>.
1488
1489 2009-09-17  Eric Blake  <ebb9@byu.net>
1490
1491         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
1492         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
1493         slashes when checking if last component is missing.
1494         * tests/test-canonicalize.c (main): Test this.
1495
1496         canonicalize, canonicalize-lgpl: honor // if distinct from /
1497         * modules/canonicalize (Files): Add double-slash-root.m4.
1498         * modules/canonicalize-lgpl (Files): Likewise.
1499         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
1500         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
1501         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
1502         fallback definition.
1503         (canonicalize_filename_mode): Use it to protect //.
1504         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
1505         (__realpath): Likewise.
1506         * tests/test-canonicalize.c (main): Test this.
1507         * tests/test-canonicalize-lgpl.c (main): Likewise.
1508         * modules/canonicalize-tests (Depends-on): Add same-inode.
1509         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
1510
1511         canonicalize-lgpl: fix glibc bug with trailing slash
1512         * m4/canonicalize-lgpl.m4: Move contents...
1513         * m4/canonicalize.m4: ...here.
1514         (gl_CANONICALIZE_LGPL): Factor realpath check...
1515         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
1516         glibc 2.3.5 bug, fixed 2005-04-27.
1517         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
1518         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
1519         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
1520         * modules/canonicalize-lgpl (Files): Manage file rename.
1521         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
1522         * modules/stdlib (Makefile.am): Substitute witness.
1523         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
1524         is needed.
1525         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
1526         replacement is required.
1527         * lib/canonicalize.c (canonicalize_file_name): Likewise.
1528         * doc/glibc-functions/canonicalize_file_name.texi
1529         (canonicalize_file_name): Document this.
1530         * doc/posix-functions/realpath.texi (realpath): Likewise.
1531
1532         canonicalize-lgpl: reject non-directory with trailing slash
1533         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
1534         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
1535         catches failures in glibc 2.3.5.
1536         * tests/test-canonicalize.c (main): Likewise.
1537
1538         canonicalize-lgpl: use native realpath if it works
1539         * lib/canonicalize-lgpl.c (realpath): Guard with
1540         FUNC_REALPATH_WORKS.
1541         * lib/stdlib.in.h (realpath): Make declaration optional based on
1542         HAVE_REALPATH.
1543         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
1544         native realpath works.
1545         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
1546         * modules/stdlib (Makefile.am): Substitute witness.
1547
1548         canonicalize, canonicalize-lgpl: use <stdlib.h>
1549         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
1550         (Include): Mention <stdlib.h>.
1551         (configure.ac): Mention functions we provide.
1552         * modules/canonicalize (configure.ac): Likewise.
1553         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
1554         realpath if canonicalize_file_name is missing.
1555         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
1556         * modules/stdlib (Makefile.am): Substitute witnesses.
1557         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
1558         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
1559         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
1560         * NEWS: Document this.
1561         * doc/glibc-functions/canonicalize_file_name.texi
1562         (canonicalize_file_name): Likewise.
1563         * doc/posix-functions/realpath.texi (realpath): Likewise.
1564         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
1565
1566         test-canonicalize: consolidate into single C program
1567         * tests/test-canonicalize.sh: Delete; move setup into...
1568         * tests/test-canonicalize.c (main): ...the program, making it
1569         easier to run in debugger.  Add some tests.
1570         * modules/canonicalize-tests (Files): Remove unused file.
1571         (Depends-on): Add progname.
1572         (configure.ac, Makefile.am): Simplify.
1573
1574         test-canonicalize-lgpl: consolidate into single C program
1575         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
1576         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
1577         easier to run in debugger.  Add some tests.
1578         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
1579         (configure.ac, Makefile.am): Simplify.
1580
1581         canonicalize: avoid resolvepath
1582         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
1583         unnecessary checks.
1584         * lib/canonicalize.c (includes): Simplify.
1585         (canonicalize_file_name): Drop resolvepath implementation.
1586         * modules/canonicalize (Depends-on): Drop filenamecat.
1587
1588         canonicalize: don't lose errno
1589         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
1590         over calls to free.
1591
1592         canonicalize: simplify errno handling
1593         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
1594         assignment.
1595
1596         canonicalize, canonicalize-lgpl: update module dependencies
1597         * modules/canonicalize (Depends-on): Add extensions, lstat,
1598         pathmax, stdlib.
1599         (Files): Drop pathmax.h.
1600         (configure.ac): Adjust macro name.
1601         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
1602         lstat, stdlib, sys_stat.
1603         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
1604         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
1605         extensions.
1606         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
1607         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
1608         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
1609         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
1610         declaration, if available.
1611         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
1612         we can rely on the readlink module.
1613         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
1614         (includes): Use <unistd.h> unconditionally.
1615
1616 2009-09-17  Eric Blake  <ebb9@byu.net>
1617
1618         maint: make Include sections of modules consistent
1619         * modules/alloca: Use only header name; no need to list #include.
1620         * modules/alloca-opt: Likewise.
1621         * modules/arpa_inet: Likewise.
1622         * modules/canon-host: Likewise.
1623         * modules/configmake: Likewise.
1624         * modules/dirent: Likewise.
1625         * modules/eealloc: Likewise.
1626         * modules/environ: Likewise.
1627         * modules/fchdir: Likewise.
1628         * modules/fcntl: Likewise.
1629         * modules/fcntl-h: Likewise.
1630         * modules/gethrxtime: Likewise.
1631         * modules/gettime: Likewise.
1632         * modules/ignore-value: Likewise.
1633         * modules/inet_ntop: Likewise.
1634         * modules/inet_pton: Likewise.
1635         * modules/inttypes: Likewise.
1636         * modules/isnand-nolibm: Likewise.
1637         * modules/isnanf-nolibm: Likewise.
1638         * modules/mbchar: Likewise.
1639         * modules/mbfile: Likewise.
1640         * modules/mbiter: Likewise.
1641         * modules/mbuiter: Likewise.
1642         * modules/netdb: Likewise.
1643         * modules/netinet_in: Likewise.
1644         * modules/nproc: Likewise.
1645         * modules/pagealign_alloc: Likewise.
1646         * modules/poll: Likewise.
1647         * modules/printf-frexp: Likewise.
1648         * modules/pthread: Likewise.
1649         * modules/putenv: Likewise.
1650         * modules/random_r: Likewise.
1651         * modules/relocatable-prog: Likewise.
1652         * modules/search: Likewise.
1653         * modules/select: Likewise.
1654         * modules/selinux-h: Likewise.
1655         * modules/settime: Likewise.
1656         * modules/signal: Likewise.
1657         * modules/size_max: Likewise.
1658         * modules/socklen: Likewise.
1659         * modules/ssize_t: Likewise.
1660         * modules/stdarg: Likewise.
1661         * modules/stdbool: Likewise.
1662         * modules/stddef: Likewise.
1663         * modules/stdint: Likewise.
1664         * modules/stdio: Likewise.
1665         * modules/stdlib: Likewise.
1666         * modules/string: Likewise.
1667         * modules/strings: Likewise.
1668         * modules/sys_file: Likewise.
1669         * modules/sys_ioctl: Likewise.
1670         * modules/sys_select: Likewise.
1671         * modules/sys_socket: Likewise.
1672         * modules/sys_stat: Likewise.
1673         * modules/sys_time: Likewise.
1674         * modules/sys_times: Likewise.
1675         * modules/sys_utsname: Likewise.
1676         * modules/sys_wait: Likewise.
1677         * modules/sysexits: Likewise.
1678         * modules/time: Likewise.
1679         * modules/times: Likewise.
1680         * modules/tmpfile: Likewise.
1681         * modules/trim: Likewise.
1682         * modules/unistd: Likewise.
1683         * modules/wchar: Likewise.
1684         * modules/wctype: Likewise.
1685
1686 2009-09-17  Bruno Haible  <bruno@clisp.org>
1687
1688         Make getdate.y compile on QNX and NetBSD 5 / i386.
1689         * m4/getdate.m4 (gl_GETDATE): Conditionally define
1690         TIME_T_FITS_IN_LONG_INT.
1691         * lib/getdate.y (long_time_t): New type.
1692         (relative_time): Change type of 'seconds' field to long_time_t.
1693         (get_date): Update types of local variables. Check against overflow
1694         during conversion from long_time_t to time_t.
1695         Reported by Matt Kraai <kraai@ftbfs.org>
1696         and Hasso Tepper <hasso@netbsd.org>.
1697
1698 2009-09-17  Bruno Haible  <bruno@clisp.org>
1699
1700         * modules/COPYING: Update copyright years.
1701         * modules/README: Likeiwse.
1702         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
1703         Reported by Ian Beckwith <ianb@erislabs.net>.
1704
1705 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
1706
1707         * users.txt: Update references for gnuit package.
1708
1709 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
1710
1711         * m4/getdelim.m4: Fix typo in copyright line.
1712
1713 2009-09-17  Bruno Haible  <bruno@clisp.org>
1714
1715         * lib/atoll.c: Use the standard header with GPL copyright.
1716         * lib/argz.in.h: Likewise.
1717         * lib/glob.c: Likewise.
1718         * lib/glob-libc.h: Likewise.
1719         * lib/random_r.c: Likewise.
1720         * lib/siglist.h: Likewise.
1721         * lib/strsignal.c: Likewise.
1722         Reported by Ian Beckwith <ianb@erislabs.net>.
1723
1724 2009-09-17  Eric Blake  <ebb9@byu.net>
1725
1726         rmdir: ensure correct dependency order
1727         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
1728
1729 2009-09-17  Bruno Haible  <bruno@clisp.org>
1730
1731         Disable assertion that fails on NetBSD 5 / i386.
1732         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
1733         Reported by Sam Steingold <sds@gnu.org>
1734         and Hasso Tepper <hasso@netbsd.org>.
1735
1736 2009-09-16  Eric Blake  <ebb9@byu.net>
1737
1738         unlinkdir: port to mingw
1739         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
1740         on which no one can unlink a directory.
1741
1742         stdlib: sort witness names
1743         * modules/stdlib (Makefile.am): Sort replacements.
1744         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
1745         * lib/stdlib.in.h: Likewise.
1746
1747         parse-duration-tests: avoid link failure
1748         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
1749         LIBINTL.
1750         Reported by Tom G. Christensen.
1751
1752         openat-tests: ensure unlinkat behaves like rmdir
1753         * tests/test-rmdir.c (main): Factor guts...
1754         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
1755         * modules/rmdir-tests (Files): Ship new file.
1756         * modules/openat-tests: New test.
1757         * tests/test-unlinkat.c: Likewise.
1758
1759         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
1760         * modules/rmdir-errno (Status, Notice): Now obsolete.
1761
1762         rmdir: work around cygwin 1.5.x and mingw bugs
1763         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
1764         * lib/rmdir.c (rmdir): Work around it.
1765         * modules/rmdir (Status, Notice): No longer obsolete.
1766         (Files): Add dos.m4.
1767         (Depends-on): Add unistd.
1768         (configure.ac): Set witnesses.
1769         (License): Relax to LGPLv2+.
1770         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
1771         * modules/unistd (Makefile.am): Substitute witnesses.
1772         * lib/unistd.in.h (rmdir): Declare replacement.
1773         * doc/posix-functions/rmdir.texi (rmdir): Document this.
1774         * modules/rmdir-tests: New tests.
1775         * tests/test-rmdir.c: Likewise.
1776
1777 2009-09-15  Eric Blake  <ebb9@byu.net>
1778
1779         fchdir: improve use of replacement functions
1780         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
1781         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
1782         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
1783         REPLACE_CLOSEDIR.
1784         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
1785         * modules/sys_stat (Makefile.am): Substitute correct witness.
1786         * modules/dirent (Makefile.am): Likewise.
1787         * modules/unistd (Makefile.am): Likewise.
1788         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
1789         * lib/unistd.in.h (dup): Likewise.
1790         * lib/sys_stat.in.h (fstat): Likewise.
1791
1792         maint: ignore gnulib-tool temp files
1793         * .gitignore: Ignore files created during gnulib-tool --test.
1794
1795 2009-09-13  Jim Meyering  <meyering@redhat.com>
1796
1797         posixtm: don't reject a time that specify "60" as the number of seconds
1798         * lib/posixtm.c (posixtime): The code to reject invalid dates
1799         would also reject a time specified with the .60 suffix.
1800         But POSIX allows that, in order to accommodate leap seconds.
1801         So don't reject it.
1802         (main): Adjust tests accordingly.
1803         * modules/posixtm (Depends-on): Add stpcpy.
1804
1805 2009-09-11  Jim Meyering  <meyering@redhat.com>
1806
1807         announce-gen: include [$release_type] in emitted Subject:
1808         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
1809         e.g., [stable] in the emitted Subject: line.
1810
1811 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
1812
1813         Remove obsolete macros from several modules.
1814         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
1815         obsolete Autoconf macros with their modern counterparts.
1816         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
1817         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
1818         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
1819         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
1820         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
1821         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
1822         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
1823         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
1824         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
1825         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
1826         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
1827         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
1828         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
1829         * m4/sockets.m4 (gl_SOCKETS): Likewise.
1830         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
1831         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
1832         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
1833         * m4/time_r.m4 (gl_TIME_R): Likewise.
1834         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
1835         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
1836         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
1837
1838         Fix copyright header in build-aux scripts.
1839         * build-aux/git-version-gen: Fix copyright header to match GPLv3
1840         recommendation.
1841         * build-aux/ncftpput-ftp: Likewise.
1842         * build-aux/update-copyright: Likewise.
1843
1844 2009-09-09  Eric Blake  <ebb9@byu.net>
1845
1846         test-link: allow Linux choice of errno
1847         * tests/test-link.c (main): Relax test for alternate error.
1848
1849         strndup: fix improper m4 caching
1850         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
1851         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
1852         (gl_PREREQ_STRNDUP): Delete.
1853         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
1854         * modules/string (Makefile.am): Substitute it.
1855         * lib/string.in.h (strndup): Modernize prototype.
1856
1857         getcwd: port to mingw
1858         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
1859         different from the POSIX assumptions made throughout the getcwd
1860         module; fortunately, the mingw getcwd does not need replacement.
1861         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
1862         * modules/getcwd-tests: New test.
1863         * tests/test-getcwd.c: Likewise.
1864
1865         link: fix platform bugs
1866         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
1867         * lib/link.c (link): Work around them.  Fix related mingw bug.
1868         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
1869         * modules/unistd (Makefile.am): Substitute it.
1870         * lib/unistd.in.h (link): Declare replacement.
1871         * doc/posix-functions/link.texi (link): Document this.
1872         * modules/link (Depends-on): Add strdup-posix, sys_stat.
1873
1874         test-link: consolidate into single C program, test more cases
1875         * tests/test-link.sh: Delete.
1876         * tests/test-link.c: Test more error conditions.  Exposes bugs on
1877         at least Cygwin and Solaris.
1878         * modules/link-tests (Files): Remove unused file.
1879         (Depends-on): Add errno, sys_stat.
1880         (Makefile.am): Simplify.
1881
1882 2009-09-08  Bruno Haible  <bruno@clisp.org>
1883
1884         Work around towlower, towupper bug on mingw.
1885         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
1886         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
1887         * doc/posix-functions/towlower.texi: Mention the mingw bug.
1888         * doc/posix-functions/towupper.texi: Likewise.
1889         Reported by Eric Blake.
1890
1891 2009-09-08  Jim Meyering  <meyering@redhat.com>
1892
1893         build: don't try to run autoheader if we don't use it
1894         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
1895         is not used in configure.ac.
1896
1897 2009-09-08  Eric Blake  <ebb9@byu.net>
1898
1899         euidaccess: fix compilation error
1900         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
1901
1902         rawmemchr: relax license
1903         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
1904         okay.
1905         Reported by Jim Meyering.
1906
1907         mkfifoat: new module
1908         * modules/mkfifoat: New file.
1909         * lib/mkfifoat.c: Likewise.
1910         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
1911         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
1912         * modules/sys_stat (Makefile.am): Use them.
1913         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
1914         * MODULES.html.sh (File system functions): Mention module.
1915         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
1916         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
1917         * modules/mkfifoat-tests: New test.
1918         * tests/test-mkfifoat.c: Likewise.
1919
1920         strchrnul: relax license
1921         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
1922         okay.
1923         Reported by Jim Meyering.
1924
1925 2009-09-08  Eric Blake  <ebb9@byu.net>
1926
1927         fstatat: fix compilation on Solaris
1928         * lib/fstatat.c (includes): Add fcntl.h.
1929         Reported by Pádraig Brady.
1930
1931 2009-09-07  Eric Blake  <ebb9@byu.net>
1932
1933         rename: modernize replacement
1934         * modules/rename (Depends-on): Add stdio.
1935         (configure.ac): Declare witness.
1936         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
1937         stdio take care of replacement.
1938         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
1939         * modules/stdio (Makefile.am): Substitute them.
1940         * lib/stdio.in.h (rename): Declare replacement.
1941         * lib/rename.c (includes): Allow cross-compilation to non-windows
1942         machines.
1943         * doc/posix-functions/rename.texi (rename): Improve
1944         documentation.
1945
1946         stdio: sort witness names
1947         * modules/stdio (Makefile.am): Sort replacements.
1948         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
1949         * lib/stdio.in.h: Likewise.
1950
1951         getcwd: minor cleanups
1952         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
1953         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
1954
1955         openat: provide more convenience names
1956         * modules/faccessat (configure.ac): Add C witness.
1957         * lib/unistd.in.h (readlinkat): Fix typo.
1958         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
1959         convenience wrappers.
1960         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
1961         wrappers in syntax checks.
1962
1963 2009-09-06  Eric Blake  <ebb9@byu.net>
1964
1965         doc: fix comments in recent patches
1966         * lib/faccessat.c: Mention correct function.
1967         * lib/fchmodat.c: Likewise.
1968         * lib/fchownat.c: Likewise.
1969         * lib/symlinkat.c: Likewise.
1970         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
1971         constants.
1972
1973         faccessat, symlinkat: continue cleanup of previous patch
1974         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
1975         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
1976         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
1977         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
1978         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
1979         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
1980         set.
1981
1982 2009-09-06  Bruno Haible  <bruno@clisp.org>
1983
1984         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
1985         (fstatat): Declare if GNULIB_FSTATAT is set.
1986         (mkdirat): Declare if GNULIB_MKDIRAT is set.
1987         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
1988         (unlinkat): Declare if GNULIB_UNLINKAT is set.
1989         * modules/fcntl-h (Files): Remove m4/openat.m4.
1990         * modules/sys_stat (Files): Remove m4/openat.m4.
1991         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
1992         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
1993         * modules/unistd (Files): Remove m4/openat.m4.
1994         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
1995         GNULIB_OPENAT.
1996         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
1997         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
1998         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
1999         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
2000         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
2001         gl_OPENAT_DEFAULTS.
2002         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
2003         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
2004         Don't require gl_OPENAT_DEFAULTS.
2005         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
2006         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
2007         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
2008         (gl_OPENAT_DEFAULTS): Remove macro.
2009
2010 2009-09-06  Bruno Haible  <bruno@clisp.org>
2011
2012         * modules/openat (configure.ac): Remove unneeded witness.
2013
2014 2009-09-06  Bruno Haible  <bruno@clisp.org>
2015
2016         Set errno to ENOSYS when a function is entirely unsupported.
2017         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
2018         EOPNOTSUPP.
2019         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
2020         * modules/chown (Depends-on): Remove errno.
2021
2022 2009-09-06  Bruno Haible  <bruno@clisp.org>
2023
2024         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
2025
2026 2009-09-06  Bruno Haible  <bruno@clisp.org>
2027
2028         * lib/sys_stat.in.h: Fix preprocessor command indentation.
2029
2030 2009-09-06  Ben Pfaff  <blp@gnu.org>
2031             Bruno Haible  <bruno@clisp.org>
2032
2033         Work around a glibc bug in strtok_r.
2034         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
2035         Undefine if UNDEFINE_STRTOK_R is set.
2036         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
2037         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
2038         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
2039         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
2040         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
2041         UNDEFINE_STRTOK_R.
2042         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
2043
2044 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
2045
2046         exclude: minor fix
2047         * lib/exclude.c: Include wctype.h
2048
2049 2009-09-06  Akim Demaille  <demaille@gostai.com>
2050
2051         bootstrap: improve error message
2052         * build-aux/bootstrap (find_tool): Upon failure, report the list
2053         of candidates.
2054         Honor the initial value of the envvar.
2055
2056 2009-09-05  Eric Blake  <ebb9@byu.net>
2057
2058         symlinkat: new module
2059         * modules/symlinkat: New file.
2060         * lib/symlinkat.c: Likewise.
2061         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
2062         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
2063         * modules/unistd (Makefile.am): Use them.
2064         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
2065         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
2066         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
2067         * MODULES.html.sh (File system functions): Mention module.
2068         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
2069         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
2070         * modules/symlinkat-tests: New test.
2071         * tests/test-symlinkat.c: Likewise.
2072
2073         test-openat-safer: add more checks
2074         * tests/test-openat-safer.c (main): Check more code paths.
2075
2076 2009-09-05  Jim Meyering  <meyering@redhat.com>
2077
2078         syntax-check: detect unnecessary inclusion of openat.h
2079         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
2080
2081 2009-09-05  Bruno Haible  <bruno@clisp.org>
2082
2083         Support towlower, towupper.
2084         * doc/posix-functions/towlower.texi: Mention module wctype.
2085         * doc/posix-functions/towupper.texi: Likewise.
2086         * lib/wctype.in.h (towlower, towupper): New functions.
2087         * tests/test-wctype.c: Include stdio.h, stdlib.h.
2088         (ASSERT): New macro.
2089         (e): New variable.
2090         (main): Test also towlower, towupper. Test WEOF argument.
2091         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
2092
2093 2009-09-05  Bruno Haible  <bruno@clisp.org>
2094
2095         Fix conversion behaviour when the input is invalid.
2096         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
2097         mark occurring in first pass of indirect conversion.
2098         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
2099         input.
2100         Found by clang's static analyzer.
2101
2102 2009-09-05  Bruno Haible  <bruno@clisp.org>
2103
2104         * tests/test-striconveh.c (main): Test indirect conversion on platforms
2105         where direct conversion is possible.
2106
2107 2009-09-04  Eric Blake  <ebb9@byu.net>
2108
2109         openat: fail with ENOENT on empty name
2110         * lib/openat-proc.c (openat_proc_name): Special-case the empty
2111         buffer.
2112
2113         link-follow: fix logic bug in prior patch
2114         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
2115         reversed sense of yes and no in prior patch.  Avoid confusing
2116         compilation failure with desired semantics.
2117
2118         link-follow: accomodate mingw and cross-compilation
2119         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
2120         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
2121         cross-compilation results to -1, to make linkat easier to
2122         implement when cross-compiling.  Trivially support mingw.
2123         * modules/link-follow (configure.ac): Call new name.
2124         * NEWS: Mention this.
2125
2126 2009-09-03  Eric Blake  <ebb9@byu.net>
2127
2128         faccessat: compile replacement
2129         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
2130         needed.
2131
2132         fts: fix compilation error
2133         * lib/fts.c (includes): Re-add "openat.h", for
2134         openat_needs_fchdir.
2135
2136         faccessat: new module
2137         * modules/faccessat: New file.
2138         * lib/faccessat.c: Likewise.
2139         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
2140         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
2141         * modules/unistd (Makefile.am): Use it.
2142         * lib/unistd.in.h (faccessat): Declare it.
2143         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
2144         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
2145         * MODULES.html.sh (File system functions): Mention it.
2146         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
2147         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
2148
2149         euidaccess: prefer POSIX over non-standard implementation
2150         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
2151         * lib/euidaccess.c (euidaccess): Use it if available.
2152
2153         openat: make template easier to use
2154         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
2155         AT_FUNC_F2 to be undefined.
2156         (VALIDATE_FLAG): New macro; use it to reject bad flags.
2157         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
2158         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
2159         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
2160         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
2161         Likewise.
2162         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
2163         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
2164         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
2165         Likewise.
2166
2167         openat: declare in POSIX headers
2168         * NEWS: Mention this.
2169         * modules/openat (configure.ac): Declare witnesses.
2170         (Depends-on): Add fcntl-h, sys_stat, unistd.
2171         (Include): Mention correct headers.
2172         * modules/fcntl-h (Depends-on): Add link-warning.
2173         (Files): Add openat.m4.
2174         (Makefile.am): Substitute witnesses.
2175         * modules/sys_stat (Files, Makefile.am): Likewise.
2176         * modules/unistd (Files, Makefile.am): Likewise.
2177         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
2178         (gl_OPENAT_DEFAULTS): New macro.
2179         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
2180         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
2181         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
2182         (SYS_STAT_H): Remove unused variable.
2183         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
2184         * lib/fcntl--.h (includes): Remove unneeded header.
2185         * lib/openat-safer.c (includes): Likewise.
2186         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
2187         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
2188         appropriate headers.
2189         (__OPENAT_PREFIX): Delete.
2190         * lib/fcntl.in.h (openat): Provide declaration.
2191         (AT_FDCWD): Fix Solaris bug.
2192         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
2193         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
2194         * lib/fchmodat.c (includes):  Adjust to find declaration.
2195         * lib/fchownat.c (includes): Likewise.
2196         * lib/mkdirat.c (includes): Likewise.
2197         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
2198         still visible.
2199
2200 2009-09-02  Eric Blake  <ebb9@byu.net>
2201
2202         errno: use consistently
2203         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
2204         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
2205         * lib/canonicalize.c (ELOOP): Likewise.
2206         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
2207         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
2208         * lib/lchown.c (EOPNOTSUPP): Likewise.
2209         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
2210         * lib/savewd.c (ESTALE): Likewise.
2211         * lib/settime.c (ENOSYS): Likewise.
2212         * lib/utimens.c (ENOSYS): Likewise.
2213         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
2214         * lib/chdir-safer.c (ELOOP): Likewise.
2215         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
2216         * modules/c-stack (Depends-on): Add errno.
2217         * modules/canonicalize (Depends-on): Likewise.
2218         * modules/chdir-safer (Depends-on): Likewise.
2219         * modules/fdopendir (Depends-on): Likewise.
2220         * modules/inet_ntop (Depends-on): Likewise.
2221         * modules/inet_pton (Depends-on): Likewise.
2222         * modules/lchown (Depends-on): Likewise.
2223         * modules/openat (Depends-on): Likewise.
2224         * modules/savewd (Depends-on): Likewise.
2225         * modules/settime (Depends-on): Likewise.
2226         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
2227
2228         fts: avoid leaking fds
2229         * modules/fts (Depends-on): Add cloexec.
2230         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
2231         flag.
2232
2233         fts: make directory fds more robust
2234         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
2235         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
2236
2237         backupfile, chdir-long, fts, savedir: make safer
2238         * lib/backupfile.c (includes): Use "dirent--.h", since
2239         numbered_backup can write to stderr during readdir.
2240         * lib/savedir.c (includes): Likewise.
2241         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
2242         emulation can write to stderr on failure.
2243         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
2244         * lib/getcwd.c: Document why opendir_safer is unused.
2245         * lib/glob.c: Likewise.
2246         * lib/scandir.c: Likewise.
2247         * lib/openat-proc.c: Likewise, for open_safer.
2248         * modules/backupfile (Depends-on): Add dirent-safer.
2249         * modules/savedir (Depends-on): Likewise.
2250         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
2251         * modules/chdir-long (Depends-on): Add openat-safer.
2252
2253         openat-safer: new module
2254         * modules/openat-safer: New file.
2255         * lib/openat-safer.c: Likewise.
2256         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
2257         * lib/fcntl-safer.h (openat_safer): Declare.
2258         * lib/fcntl--.h (openat): Override.
2259         * MODULES.html.sh (File descriptor based I/O): Mention it.
2260         * lib/openat.h: Add double-inclusion guards.
2261         * lib/openat.c (includes): Only include "fcntl-safer.h", not
2262         "fcntl--.h", so we can implement openat.
2263         * modules/openat-safer-tests: New test.
2264         * tests/test-openat-safer.c: New file.
2265
2266         dirent-safer: new module
2267         * modules/dirent-safer: New file.
2268         * lib/dirent--.h: Likewise.
2269         * lib/dirent-safer.h: Likewise.
2270         * lib/opendir-safer.c: Likewise.
2271         * m4/dirent-safer.m4: Likewise.
2272         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
2273         * modules/dirent-safer-tests: New test.
2274         * tests/test-dirent-safer.c: New file.
2275         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
2276
2277         fdopendir: optimize on mingw
2278         * lib/unistd.in.h (_gl_directory_name): New prototype.
2279         * lib/fchdir.c (_gl_directory_name): Implement it.
2280         (fchdir): Use it to simplify implementation.
2281         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
2282         fchdir, when available, to avoid calling [f]chdir().
2283
2284         fdopendir: split into its own module
2285         * lib/openat.c (fdopendir): Move...
2286         * lib/fdopendir.c: ...into new file.
2287         * modules/fdopendir: New module.
2288         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
2289         * modules/openat (Depends-on): Add fdopendir.
2290         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
2291         fdopendir here.
2292         * modules/savedir (Depends-on): Only need fdopendir, not full
2293         openat.
2294         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
2295         * lib/openat.h (fdopendir): Drop prototype.
2296         * lib/dirent.in.h (fdopendir): Provide prototype.
2297         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
2298         * modules/dirent (Makefile.am): Substitute them.
2299         * MODULES.html.sh (File system functions): Mention it.
2300         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
2301         * modules/fdopendir-tests: New file.
2302         * tests/test-fdopendir.c: Likewise.
2303
2304         fchdir: use more consistent macro convention
2305         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
2306         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
2307         REPLACE_FCHDIR, rather than relying on config.h macros.
2308         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
2309         inside a single make-time REPLACE_FCHDIR block, rather than using
2310         the config.h FCHDIR_REPLACEMENT.
2311         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
2312         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
2313         Manage fstat replacement.
2314         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
2315         REPLACE_FCHDIR.
2316         * modules/sys_stat (Files): Add m4/unistd_h.m4.
2317         (Makefile.am): Substitute REPLACE_FCHDIR.
2318         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
2319         FCHDIR_REPLACEMENT.
2320         * lib/dup-safer.c (dup_safer): Likewise.
2321         * lib/dup2.c (rpl_dup2): Likewise.
2322         * lib/dup3.c (rpl_dup3): Likewise.
2323         * lib/open.c (rpl_open): Likewise.
2324
2325         fchdir: simplify error handling, and support dup3
2326         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
2327         stdbool, malloc-posix, realloc-posix.
2328         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
2329         (ensure_dirs_slot): Return false on allocation failure.
2330         (rpl_dup2): Delete.
2331         (_gl_register_dup): New function.
2332         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
2333         (_gl_register_fd): Close fd on allocation failure.
2334         * lib/fcntl.in.h (_gl_register_fd): Update signature.
2335         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
2336         prototype.
2337         (rpl_dup2_fchdir): Delete prototype.
2338         * lib/open.c (open): Update caller.
2339         * lib/dup2.c (dup2): Track fchdir metadata.
2340         * lib/dup3.c (dup3): Likewise.
2341         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
2342         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
2343
2344 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2345
2346         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
2347         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
2348         don't pass arguments to AC_OUTPUT.
2349
2350 2009-09-02  Bruno Haible  <bruno@clisp.org>
2351
2352         * modules/mkdtemp (License): Relicense under LGPLv2+.
2353         Reported by Paolo Bonzini.
2354
2355 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
2356
2357         Replace uses of obsolete autoconf macros in Jim's modules.
2358         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
2359         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
2360         can evoke a warning from autoconf when run with -Wobsolete
2361         enabled.  They were declared obsolete for good reasons (see
2362         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
2363         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
2364         should not continue using the deprecated macros.
2365         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
2366         obsolete Autoconf macros with modern counterparts.
2367         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
2368         * m4/dos.m4 (gl_AC_DOS): Likewise.
2369         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
2370         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
2371         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
2372         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
2373         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
2374         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
2375         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
2376         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
2377         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
2378         Likewise.
2379         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
2380         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
2381         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
2382         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
2383         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
2384         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
2385
2386 2009-09-01  Eric Blake  <ebb9@byu.net>
2387
2388         fchdir: fix off-by-one bug in previous patch
2389         * lib/fchdir.c (rpl_fstat): Use correct bounds.
2390         (_gl_unregister_fd): Delete useless if.
2391
2392 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
2393
2394         maint.mk: sort the list of syntax-check rules
2395         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
2396         easier to get a sense of progress when the rules are run sequentially
2397         and take a long time.
2398
2399 2009-09-01  Simon Josefsson  <simon@josefsson.org>
2400
2401         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
2402         * modules/netinet_in: Likewise.
2403         * modules/sys_file: Likewise.
2404         * modules/sys_ioctl: Likewise.
2405         * modules/sys_select: Likewise.
2406         * modules/sys_socket: Likewise.
2407         * modules/sys_stat: Likewise.
2408         * modules/sys_time: Likewise.
2409         * modules/sys_times: Likewise.
2410         * modules/sys_utsname: Likewise.
2411         * modules/sys_wait: Likewise.
2412
2413 2009-09-01  Jim Meyering  <meyering@redhat.com>
2414
2415         fts: help ensure that return values are not ignored
2416         * lib/fts_.h (__GNUC_PREREQ): Define.
2417         (__attribute_warn_unused_result__): Define.
2418         (fts_children, fts_close, fts_open, fts_read): Declare with
2419         __attribute_warn_unused_result__.
2420
2421         fts: fts_close now fails also when closing a dir file descriptor fails
2422         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
2423         and propagate to caller, along with errno.
2424
2425         announce-gen: correct formatting in --help output
2426         * build-aux/announce-gen (usage): Move the one-line description in
2427         --help output "up", to where it belongs, just after Usage:.
2428
2429 2009-08-31  Eric Blake  <ebb9@byu.net>
2430
2431         fchdir: port to mingw
2432         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
2433         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
2434         opened, then use a substitute.
2435         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
2436         replacement.
2437         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
2438         (_gl_register_fd): No need to check stat if open already filters
2439         all directories.
2440         (fchdir): Fix error condition to match POSIX.
2441         * modules/fchdir (Depends-on): Add sys_stat.
2442         * doc/posix-functions/open.texi (open): Document the limitation.
2443         * modules/fchdir-tests: New file.
2444         * tests/test-fchdir.c: Likewise.
2445
2446         canonicalize: allow cross-testing from cygwin to mingw
2447         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
2448         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
2449         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
2450         Likewise.
2451         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
2452         target does not support symlinks.
2453         * tests/test-canonicalize-lgpl.sh: Likewise.
2454
2455         chown: avoid compilation warning on mingw
2456         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
2457         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
2458         mingw.
2459         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
2460         * modules/chown (Depends-on): Add errno.
2461
2462 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
2463
2464         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
2465         command.
2466
2467 2009-08-31  Jim Meyering  <meyering@redhat.com>
2468
2469         canonicalize: remove useless initialization
2470         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
2471         initialization of local, "end".
2472
2473 2009-08-30  Bruno Haible  <bruno@clisp.org>
2474
2475         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
2476         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
2477         ENOSYS.
2478
2479 2009-08-30  Bruno Haible  <bruno@clisp.org>
2480
2481         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
2482         /usr/xpg4/bin/tr when it exists.
2483         * tests/test-pipe-filter-gi1.sh: Likewise.
2484
2485 2009-08-30  Bruno Haible  <bruno@clisp.org>
2486
2487         Work around deficient /usr/bin/id program on Solaris.
2488         * tests/test-file-has-acl.sh (ID): New variable.
2489         * tests/test-set-mode-acl.sh (ID): Likewise.
2490         * tests/test-copy-acl.sh (ID): Likewise.
2491         * tests/test-copy-file.sh (ID): Likewise.
2492
2493 2009-08-30  Bruno Haible  <bruno@clisp.org>
2494
2495         New module 'xstriconveh'.
2496         * lib/xstriconveh.h: New file.
2497         * lib/xstriconveh.c: New file.
2498         * modules/xstriconveh: New file.
2499
2500 2009-08-30  Bruno Haible  <bruno@clisp.org>
2501
2502         Make it easier to use mem_cd_iconveh.
2503         * lib/striconveh.h (iconveh_t): New type.
2504         (iconveh_open, iconveh_close): New declarations.
2505         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
2506         with a single 'const iconveh_t *' argument.
2507         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
2508         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
2509         with a single 'const iconveh_t *' argument.
2510         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
2511         * tests/test-striconveh.c (main): Update.
2512         * NEWS: Mention the change.
2513
2514 2009-08-30  Bruno Haible  <bruno@clisp.org>
2515
2516         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
2517         problem.
2518
2519 2009-08-30  Bruno Haible  <bruno@clisp.org>
2520
2521         Work around iconv_open problem on Solaris.
2522         * lib/iconv_open-solaris.gperf: New file.
2523         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
2524         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
2525         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
2526         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
2527         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
2528         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
2529
2530 2009-08-29  Jim Meyering  <meyering@redhat.com>
2531
2532         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
2533         * top/maint.mk (cvs-check): Remove target; it was just an alias
2534         to the better-named vc-diff-check.
2535         (maintainer-distcheck): Remove rule.  It was used only from
2536         the (alpha/beta/major) target, and all of its commands but one
2537         were coreutils-specific.
2538         (vc-dist): Remove rule.
2539         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
2540         Run vc-diff-check, not vc-dist.
2541         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
2542
2543 2009-08-27  Bruno Haible  <bruno@clisp.org>
2544
2545         * tests/test-bitrotate.c (main): Remove test that uses a shift count
2546         of 0.
2547
2548 2009-08-27  Bruno Haible  <bruno@clisp.org>
2549
2550         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
2551         compilers.
2552         * doc/func.texi: Document the SunPRO C bug.
2553
2554 2009-08-27  Bruno Haible  <bruno@clisp.org>
2555
2556         Fix link error on Solaris.
2557         * tests/test-parse-duration.c (xstrdup): Remove function.
2558
2559 2009-08-26  Pádraig Brady  <P@draigbrady.com>
2560
2561         ignore-value: handle pointer types, too
2562         * lib/ignore-value.h (__attribute__): Remove definition.
2563         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
2564         of a more concise and more-often effective "(void) i" statement.
2565         (ignore_ptr): New function to suppress warnings from functions that
2566         return pointers, and to make it explicit that one function doesn't
2567         handle all cases.
2568
2569 2009-08-25  Bruno Haible  <bruno@clisp.org>
2570
2571         dup2: work around a Linux bug.
2572         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
2573         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
2574         * doc/posix-functions/dup2.texi: Mention the Linux bug.
2575         Reported by Simon Josefsson.
2576
2577 2009-08-25  Jim Meyering  <meyering@redhat.com>
2578
2579         libguestfs uses gnulib
2580         * users.txt: Add libguestfs.
2581
2582 2009-08-24  Eric Blake  <ebb9@byu.net>
2583
2584         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
2585         * lib/pipe2.c (includes): Add binary-io.h.
2586         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
2587
2588 2009-08-24  Bruno Haible  <bruno@clisp.org>
2589
2590         Tolerate declared but missing accept4 syscall.
2591         * lib/accept4.c (accept4): Invoke original accept4 function first, if
2592         available.
2593         * lib/sys_socket.in.h (accept4): If the function is already present,
2594         override it.
2595         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
2596         * modules/accept4 (Makefile.am): Compile accept4.c always.
2597         Reported by Paolo Bonzini and Eric Blake.
2598
2599 2009-08-23  Bruno Haible  <bruno@clisp.org>
2600
2601         New module 'accept4'.
2602         * lib/sys_socket.in.h (accept4): New declaration.
2603         * lib/accept4.c: New file.
2604         * m4/accept4.m4: New file.
2605         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
2606         GNULIB_ACCEPT4, HAVE_ACCEPT4.
2607         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
2608         HAVE_ACCEPT4.
2609         * modules/accept4: New file.
2610         * doc/glibc-functions/accept4.texi: Mention the new module.
2611
2612 2009-08-24  Jim Meyering  <meyering@redhat.com>
2613
2614         progname: also set global program_invocation_name, when possible
2615         Before this change, a libtool-enabled program that calls glibc's
2616         error function would report the program name as
2617         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
2618         * modules/progname (configure.ac): Check for a declaration of
2619         program_invocation_name.
2620         * lib/progname.c:  Include <errno.h>.
2621         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
2622         Set program_invocation_name.
2623
2624 2009-08-23  Bruno Haible  <bruno@clisp.org>
2625
2626         * lib/dup3.c: Include <string.h>.
2627
2628 2009-08-23  Bruno Haible  <bruno@clisp.org>
2629
2630         * lib/dup3.c (dup3): Test only once whether the system actually exists.
2631         * lib/pipe2.c (pipe2): Likewise.
2632         Suggested by Eric Blake.
2633
2634 2009-08-23  Bruno Haible  <bruno@clisp.org>
2635
2636         Tolerate declared but missing dup3 syscall.
2637         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
2638         * lib/unistd.in.h (dup3): If the function is already present,
2639         override it.
2640         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
2641         * modules/dup3 (Makefile.am): Compile dup3.c always.
2642         Reported by Paolo Bonzini.
2643
2644 2009-08-23  Bruno Haible  <bruno@clisp.org>
2645
2646         Tolerate declared but missing pipe2 syscall.
2647         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
2648         available.
2649         * lib/unistd.in.h (pipe2): If the function is already present,
2650         override it.
2651         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
2652         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
2653         Reported by Paolo Bonzini.
2654
2655 2009-08-23  Bruno Haible  <bruno@clisp.org>
2656
2657         * lib/pipe2.c (pipe2): Move #ifs inside function.
2658
2659 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
2660
2661         quotearg: document limitations of quote_these_too
2662         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
2663         those limitations are created.
2664         * lib/quotearg.h (set_char_quoting): Document that digits and
2665         letters that are special after backslash are not permitted.
2666         (quotearg_char): Cross-reference set_char_quoting documentation.
2667
2668 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
2669
2670         quotearg: implement custom_quoting_style
2671         * lib/quotearg.c: (struct quoting_options): Add left_quote and
2672         right_quote fields.
2673         (set_custom_quoting): New public function.
2674         (quotearg_buffer_restyled): Add left_quote and right_quote
2675         arguments, handle them very much like locale quoting, and update
2676         all uses.
2677         (quotearg_n_custom): New public function.
2678         (quotearg_n_custom_mem): New public function.
2679         (quotearg_custom): New public function.
2680         (quotearg_custom_mem): New public function.
2681         * lib/quotearg.h: Prototype and document new public functions.
2682         (enum quoting_style): For escape_quoting_style and
2683         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
2684         ignored even though they're otherwise like c_quoting_style.
2685         Add custom_quoting_style member and document with comparison to
2686         clocale_quoting_style.
2687         * tests/test-quotearg.c (custom_quotes): New array.
2688         (custom_results): New array.
2689         (main): Extend to test custom quoting.
2690
2691 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
2692
2693         quotearg: fix right quote escaping when it's in quote_these_too
2694         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
2695         quote, be sure to prepend only one backslash.
2696         * tests/test-quotearg.c (use_quote_double_quotes): New function.
2697         (main): Test it.
2698
2699 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
2700
2701         quotearg-tests: test escaping of embedded locale quotes
2702         * tests/test-quotearg.c (struct result_strings): Add member for
2703         new input.
2704         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
2705         (inputs): Add new input.
2706         (results_g): Add expected results.
2707         (flag_results): Likewise.
2708         (locale_results): Likewise.
2709         (compare_strings): Check those.
2710
2711 2009-08-23  Bruno Haible  <bruno@clisp.org>
2712
2713         Tests for module 'dup3'.
2714         * modules/dup3-tests: New file.
2715         * tests/test-dup3.c: New file.
2716
2717         New module 'dup3'.
2718         * lib/unistd.in.h (dup3): New declaration.
2719         * lib/dup3.c: New file.
2720         * m4/dup3.m4: New file.
2721         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
2722         HAVE_DUP3.
2723         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
2724         * modules/dup3: New file.
2725         * doc/glibc-functions/dup3.texi: Mention the new module.
2726
2727 2009-08-23  Bruno Haible  <bruno@clisp.org>
2728
2729         Tweak the dup2 test.
2730         * tests/test-dup2.c (main): Create the test file empty. Verify that an
2731         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
2732         the test file is still empty. Fix argument order of lseek.
2733
2734 2009-08-23  Bruno Haible  <bruno@clisp.org>
2735
2736         Avoid test link errors when the modules getopt-gnu, gettext are used.
2737         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
2738         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
2739
2740 2009-08-23  Bruno Haible  <bruno@clisp.org>
2741
2742         Fix getdtablesize() on mingw.
2743         * lib/getdtablesize.c (getdtablesize): Implement differently.
2744         * lib/unistd.in.h (getdtablesize): Improve comment.
2745
2746 2009-08-23  Bruno Haible  <bruno@clisp.org>
2747
2748         New module 'mkostemp'.
2749         Based on Ulrich Drepper's 2007-08-10 change in glibc.
2750         * lib/stdlib.in.h (mksotemp): New declaration.
2751         * lib/mkostemp.c: New file, from glibc with modifications.
2752         * lib/tempname.h (GT_FILE): Remove outdated comment.
2753         (gen_tempname): Add flags argument.
2754         * lib/tempname.c (__GT_BIGFILE): Remove macro.
2755         (__GT_FILE): Map to 1.
2756         (small_open, large_open): Remove macros.
2757         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
2758         * lib/mkstemp.c (mkstemp): Update.
2759         * lib/mkdtemp.c (mkdtemp): Likewise.
2760         * m4/mkostemp.m4: New file.
2761         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
2762         HAVE_MKOSTEMP.
2763         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
2764         HAVE_MKOSTEMP.
2765         * modules/mkostemp: New file, based on modules/mkstemp.
2766         * doc/glibc-functions/mkostemp.texi: Mention the new module.
2767         * NEWS: Mention the change.
2768
2769 2009-08-23  Bruno Haible  <bruno@clisp.org>
2770
2771         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
2772         Reported by Eric Blake.
2773
2774 2009-08-23  Bruno Haible  <bruno@clisp.org>
2775
2776         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
2777         Reported by Eric Blake.
2778
2779 2009-08-23  Bruno Haible  <bruno@clisp.org>
2780
2781         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
2782         * modules/pipe2 (Depends-on): Likewise.
2783
2784 2009-08-23  Eric Blake  <ebb9@byu.net>
2785
2786         fcntl-h: add O_TTY_INIT support
2787         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
2788         * tests/test-fcntl-h.c (o): Test it.
2789         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
2790
2791         fcntl-h: rename from fcntl, in preparation for fcntl(2)
2792         * modules/fcntl: Move <fcntl.h> header replacement...
2793         * modules/fcntl-h: ...to new name, so as not to collide with
2794         like-named function.
2795         * tests/test-fcntl.c: Rename...
2796         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
2797         * modules/fcntl-tests: Rename...
2798         * modules/fcntl-h-tests: ...to this.  Update test file name.
2799         * modules/chdir-long (Depends-on): Update clients.
2800         * modules/chdir-safer (Depends-on): Likewise.
2801         * modules/fcntl-safer (Depends-on): Likewise.
2802         * modules/fts (Depends-on): Likewise.
2803         * modules/mkancesdirs (Depends-on): Likewise.
2804         * modules/mkdir-p (Depends-on): Likewise.
2805         * modules/open (Depends-on): Likewise.
2806         * modules/savewd (Depends-on): Likewise.
2807         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
2808         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
2809
2810 2009-08-22  Bruno Haible  <bruno@clisp.org>
2811
2812         * modules/binary-io (License): Relicense under LGPL.
2813         * modules/pipe2 (License): Likewise.
2814
2815 2009-08-22  Bruno Haible  <bruno@clisp.org>
2816
2817         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
2818         return value.
2819         * lib/pipe-filter-gi.c (filter_init): Likewise.
2820         Reported by Eric Blake.
2821
2822 2009-08-22  Bruno Haible  <bruno@clisp.org>
2823
2824         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
2825         * modules/pipe (Depends-on): Add pipe2.
2826
2827 2009-08-22  Bruno Haible  <bruno@clisp.org>
2828
2829         Tests for module 'pipe2'.
2830         * modules/pipe2-tests: New file.
2831         * tests/test-pipe2.c: New file.
2832
2833         New module 'pipe2'.
2834         * lib/unistd.in.h (pipe2): New declaration.
2835         * lib/pipe2.c: New file.
2836         * m4/pipe2.m4: New file.
2837         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
2838         HAVE_PIPE2.
2839         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
2840         * modules/pipe2: New file.
2841         * doc/glibc-functions/pipe2.texi: Mention the new module.
2842
2843 2009-08-22  Bruno Haible  <bruno@clisp.org>
2844
2845         Reference some new glibc functions.
2846         * doc/glibc-functions/accept4.texi: New file.
2847         * doc/glibc-functions/dup3.texi: New file.
2848         * doc/glibc-functions/mkostemp.texi: New file.
2849         * doc/glibc-functions/pipe2.texi: New file.
2850         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
2851         (Glibc sys/socket.h): Refer to accept4.
2852         (Glibc unistd.h): Refer to dup3, pipe2.
2853         Reported by Eric Blake.
2854
2855 2009-08-22  Jim Meyering  <meyering@redhat.com>
2856             Bruno Haible  <bruno@clisp.org>
2857
2858         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
2859         This makes it so packages using automake-1.11's silent-rules option
2860         can print e.g., a single "GEN    configmake.h" line, rather than
2861         the 30+ statements that perform the job.  If you want to see the
2862         actual commands, you can still run "make V=1".
2863         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
2864         so that make output is abbreviated when those variables are defined
2865         appropriately.
2866         * modules/argz: Likewise.
2867         * modules/arpa_inet: Likewise.
2868         * modules/byteswap: Likewise.
2869         * modules/configmake: Likewise.
2870         * modules/dirent: Likewise.
2871         * modules/errno: Likewise.
2872         * modules/fcntl: Likewise.
2873         * modules/float: Likewise.
2874         * modules/fnmatch: Likewise.
2875         * modules/getopt-posix: Likewise.
2876         * modules/glob: Likewise.
2877         * modules/iconv_open: Likewise.
2878         * modules/inttypes: Likewise.
2879         * modules/localcharset: Likewise.
2880         * modules/locale: Likewise.
2881         * modules/math: Likewise.
2882         * modules/netdb: Likewise.
2883         * modules/netinet_in: Likewise.
2884         * modules/poll: Likewise.
2885         * modules/posix_spawnp-tests: Likewise.
2886         * modules/sched: Likewise.
2887         * modules/search: Likewise.
2888         * modules/selinux-h: Likewise.
2889         * modules/signal: Likewise.
2890         * modules/spawn: Likewise.
2891         * modules/stdarg: Likewise.
2892         * modules/stdbool: Likewise.
2893         * modules/stddef: Likewise.
2894         * modules/stdint: Likewise.
2895         * modules/stdio: Likewise.
2896         * modules/stdlib: Likewise.
2897         * modules/string: Likewise.
2898         * modules/strings: Likewise.
2899         * modules/sys_file: Likewise.
2900         * modules/sys_ioctl: Likewise.
2901         * modules/sys_select: Likewise.
2902         * modules/sys_socket: Likewise.
2903         * modules/sys_stat: Likewise.
2904         * modules/sys_time: Likewise.
2905         * modules/sys_times: Likewise.
2906         * modules/sys_utsname: Likewise.
2907         * modules/sys_wait: Likewise.
2908         * modules/sysexits: Likewise.
2909         * modules/time: Likewise.
2910         * modules/unistd: Likewise.
2911         * modules/wchar: Likewise.
2912         * modules/wctype: Likewise.
2913
2914 2009-08-22  Jim Meyering  <meyering@redhat.com>
2915
2916         announce-gen: detect write failure
2917         * build-aux/announce-gen: Add Coda at end.
2918         Remove equivalent-but-more-verbose block at top.
2919
2920 2009-08-19  Akim Demaille  <demaille@gostai.com>
2921
2922         bootstrap: --help to stdout.
2923         * bootstrap (usage): Don't send --help to stderr.
2924         Use a here doc instead of a long string.
2925
2926 2009-08-21  Eric Blake  <ebb9@byu.net>
2927
2928         test-popen-safer: split from test-popen
2929         * tests/test-popen.c (main): Move...
2930         * tests/test-popen.h: ...into new file.
2931         * tests/test-popen-safer2.c: New file.
2932         * modules/popen-tests (Files): Add test-popen.h.
2933         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
2934         Suggested by Bruno Haible.
2935
2936         test-fcntl-safer: split from test-open
2937         * tests/test-open.c (main): Move...
2938         * tests/test-open.h: ...into new file.
2939         * tests/test-fcntl-safer.c: New file.
2940         * modules/open-tests (Files): Add test-open.h.
2941         * modules/fcntl-safer-tests: New file.
2942         Suggested by Bruno Haible.
2943
2944         test-fopen-safer: split from test-fopen
2945         * tests/test-fopen.c (main): Move...
2946         * tests/test-fopen.h: ...into new file.
2947         * tests/test-fopen-safer.c: New file.
2948         * modules/fopen-tests (Files): Add test-fopen.h.
2949         * modules/fopen-safer-tests: New file.
2950         Suggested by Bruno Haible.
2951
2952 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
2953
2954         popen-safer: test O_CLOEXEC at run-time.
2955         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
2956
2957 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
2958
2959         fcntl: move more flags to the header
2960         * lib/cloexec.c: Do not define FD_CLOEXEC here.
2961         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
2962         * lib/fcntl.in.h: Do both things here.
2963
2964 2009-08-21  Jim Meyering  <meyering@redhat.com>
2965
2966         consistently remove $@-t before redirecting to it
2967         * modules/argz: Remove $@-t and $@ before redirecting to the former.
2968         * modules/alloca-opt: Likewise.
2969         * modules/byteswap: Likewise.
2970         * modules/fnmatch: Likewise.
2971         * modules/getopt-posix: Likewise.
2972         * modules/glob: Likewise.
2973         * modules/poll: Likewise.
2974         * modules/posix_spawnp-tests: Likewise.
2975         * modules/sys_socket: Likewise.
2976         * modules/sysexits: Likewise.
2977
2978 2009-08-21  Eric Blake  <ebb9@byu.net>
2979
2980         popen: simplify access to original popen
2981         * lib/popen.c (rpl_popen): No need to worry about popen being a
2982         macro.
2983         Reported by Bruno Haible.
2984
2985 2009-08-20  Eric Blake  <ebb9@byu.net>
2986
2987         build: avoid some compiler warnings
2988         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
2989         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
2990         type.
2991         (new_exclude_segment, excluded_file_pattern_p)
2992         (excluded_file_name_p): Reduce scope.
2993         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
2994         old-style declaration.
2995
2996 2009-08-20  Simon Josefsson  <simon@josefsson.org>
2997
2998         * tests/test-exclude1.sh: Handle Windows EOL.
2999         * tests/test-exclude2.sh: Likewise.
3000         * tests/test-exclude3.sh: Likewise.
3001         * tests/test-exclude4.sh: Likewise.
3002         * tests/test-exclude5.sh: Likewise.
3003         * tests/test-exclude6.sh: Likewise.
3004         * tests/test-exclude7.sh: Likewise.
3005
3006 2009-08-19  Akim Demaille  <demaille@gostai.com>
3007
3008         bootstrap: find sha1sum when named gsha1sum.
3009         * bootstrap (find_tool): New.
3010         ($SHA1SUM): New.
3011         Use it.
3012
3013 2009-08-20  Jim Meyering  <meyering@redhat.com>
3014
3015         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
3016         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
3017         expression that converts "." in a file name to "\." in the resulting
3018         regexp.  Start with a dummy statement, so that prior shell variable
3019         definitions are expanded portably.  Reported by Simon Josefsson.
3020
3021 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
3022
3023         Fix polling for writeability of a screen buffer.
3024         * lib/poll.c: Distinguish input and screen buffers for the
3025         Win32 implementation.
3026         * lib/select.c: Likewise.
3027
3028 2009-08-19  Eric Blake  <ebb9@byu.net>
3029
3030         popen-safer: prevent popen from clobbering std descriptors
3031         * modules/popen-safer: New file.
3032         * lib/popen-safer.c: Likewise.
3033         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
3034         * lib/stdio--.h (popen): Provide override.
3035         * lib/stdio-safer.h (popen_safer): Provide declaration.
3036         * tests/test-popen.c (includes): Partially test this.
3037         * modules/popen-safer-tests: New file, for more tests.
3038         * tests/test-popen-safer.c: Likewise.
3039         * MODULES.html.sh (file stream based Input/Output): Mention it.
3040
3041         tests: test some of the *-safer modules
3042         * modules/fopen-safer (Depends-on): Add fopen.
3043         * modules/fcntl-safer (Depends-on): Add fcntl.
3044         * modules/stdlib-safer (Depends-on): Add stdlib.
3045         (configure.ac): Set indicator.
3046         * modules/unistd-safer (configure.ac): Likewise.
3047         * modules/tmpfile-safer (configure.ac): Likewise.
3048         (Depends-on): Add tmpfile.
3049         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
3050         active.
3051         * tests/test-fopen.c (includes): Test safer versions when they are
3052         in use.
3053         * tests/test-open.c (includes): Likewise.
3054
3055         popen: fix cygwin 1.5 bug when stdin closed
3056         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
3057         * modules/popen: New file.
3058         * modules/popen-tests: Likewise.
3059         * tests/test-popen.c: Likewise.
3060         * m4/popen.m4: Likewise.
3061         * lib/popen.c: Likewise.
3062         * lib/stdio.in.h (popen): New declaration.
3063         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
3064         * modules/stdio (Makefile.am): Likewise.
3065         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
3066
3067 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
3068
3069         maint.mk: give full control over update-copyright exclusions
3070         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
3071         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
3072         (update-copyright): Don't force inclusion of top-level
3073         ChangeLog.  Don't force exclusion of all COPYING files, but make
3074         them the default exclusion instead.
3075
3076 2009-08-16  Bruno Haible  <bruno@clisp.org>
3077
3078         Fix test failures on Solaris 10.
3079         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
3080         tests when Solaris iconv() is used.
3081         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
3082         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
3083         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
3084         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
3085         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
3086
3087 2009-08-16  Bruno Haible  <bruno@clisp.org>
3088
3089         Fix test failures on Solaris 10.
3090         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
3091         'tr' program and pass it as first argument.
3092         * tests/test-pipe-filter-gi1.sh: Likewise.
3093         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
3094         program as first argument.
3095         * tests/test-pipe-filter-gi1.c (main): Likewise.
3096
3097 2009-08-16  Eric Blake  <ebb9@byu.net>
3098
3099         fpurge: fix previous commits
3100         * modules/fpurge (Makefile.am): Make replacement conditional,
3101         partially reverting 2007-04-29 change; missed in previous
3102         attempt.
3103         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
3104         is missing.
3105
3106 2009-08-16  Bruno Haible  <bruno@clisp.org>
3107
3108         Clarify fpurge's effect on the file position.
3109         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
3110         * tests/test-fpurge.c (main): Make a second pass for checking the file
3111         position.
3112
3113 2009-08-16  Bruno Haible  <bruno@clisp.org>
3114
3115         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
3116         declaration of fpurge is missing.
3117         * tests/test-fpurge.c (main): Check that the file has not more contents
3118         than expected. Close the file before removing it.
3119
3120 2009-08-15  Eric Blake  <ebb9@byu.net>
3121
3122         fpurge: don't wrap working cygwin implementation
3123         * lib/fpurge.c (fpurge): Fix comment typo.
3124         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
3125         1.7 to avoid replacement.
3126         * tests/test-fpurge.c (main): Enhance test.
3127
3128 2009-08-15  Eric Blake  <ebb9@byu.net>
3129         and Jim Meyering  <meyering@redhat.com>
3130
3131         test-update-copyright: skip if perl is insufficient
3132         * tests/test-update-copyright.sh: Failure to run maintainer tool
3133         should not cause testsuite failure on cygwin 1.5.
3134
3135 2009-08-14  Eric Blake  <ebb9@byu.net>
3136
3137         doc: mention more functions added in cygwin 1.7.0
3138         * doc/posix-headers/limits.texi (limits.h): Update for recent
3139         cygwin additions.
3140         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
3141         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
3142         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
3143         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
3144         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
3145
3146 2009-08-14  Eric Blake  <ebb9@byu.net>
3147
3148         maint.mk: simplify update-copyright rule
3149         * top/maint.mk (update-copyright-local): Delete, and document how
3150         to do it in cfg.mk instead.
3151         (update-copyright-exclude-regexp): Delete, and document how to do
3152         it in .x-update-copyright instead.
3153         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
3154         exclude ChangeLog.
3155
3156 2009-08-14  Bruno Haible  <bruno@clisp.org>
3157
3158         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
3159
3160 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
3161
3162         maint.mk: support update-copyright-env
3163         * top/maint.mk (update-copyright-env): Define place-holder.
3164         (update-copyright): Expand $(update-copyright-env) before
3165         invoking update-copyright.
3166
3167 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
3168
3169         update-copyright: implement forced reformatting
3170         * build-aux/update-copyright: Implement and document
3171         UPDATE_COPYRIGHT_FORCE.
3172         * tests/test-update-copyright.sh: Test it.
3173
3174 2009-08-14  Eric Blake  <ebb9@byu.net>
3175         and Bruno Haible  <bruno@clisp.org>
3176
3177         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
3178         * tests/test-locale.c: Revert previous patch related to NULL.
3179         * tests/test-stdio.c: Likewise.
3180         * tests/test-stdlib.c: Likewise.
3181         * tests/test-string.c: Likewise.
3182         * tests/test-unistd.c: Likewise.
3183         * modules/time-tests (Depends-on): Add verify.
3184         * modules/wchar-tests (Depends-on): Likewise.
3185         * tests/test-time.c: Test for NULL compliance.
3186         * tests/test-wchar.c: Likewise.
3187         * modules/locale (Depends-on): Add stddef.
3188         * modules/stdio (Depends-on): Likewise.
3189         * modules/stdlib (Depends-on): Likewise.
3190         * modules/string (Depends-on): Likewise.
3191         * modules/time (Depends-on): Likewise.
3192         * modules/unistd (Depends-on): Likewise.
3193         * modules/wchar (Depends-on): Likewise.
3194         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
3195         * lib/stdlib.in.h (includes): Likewise.
3196         * lib/string.in.h (includes): Likewise.
3197         * lib/time.in.h (includes): Likewise.
3198         * lib/unistd.in.h (includes): Likewise.
3199         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
3200         replaced.
3201         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
3202         * m4/stddef_h.m4: New file.
3203         * modules/stddef: Likewise.
3204         * lib/stddef.in.h: Likewise.
3205         * modules/stddef-tests: Likewise.
3206         * tests/test-stddef.c: Likewise.
3207         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
3208         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
3209         * doc/posix-headers/locale.texi (locale.h): Likewise.
3210         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
3211         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
3212         * doc/posix-headers/string.texi (string.h): Likewise.
3213         * doc/posix-headers/time.texi (time.h): Likewise.
3214         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
3215         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
3216
3217 2009-08-14  Eric Blake  <ebb9@byu.net>
3218
3219         doc: improve git diff of texinfo files
3220         * .gitattributes: Add rule for *.texi files, with hint on how to
3221         use it.
3222         Copied from m4, and based on a report by Bruno Haible.
3223
3224 2009-08-14  Bruno Haible  <bruno@clisp.org>
3225
3226         Disable multithread support by default on Cygwin 1.5.x for real.
3227         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
3228
3229 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
3230
3231         update-copyright: much ado about intervals
3232         * build-aux/update-copyright: Implement and document
3233         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
3234         of copyright year intervals.
3235         Also, document UPDATE_COPYRIGHT_YEAR.
3236         * tests/test-update-copyright.sh: Test it.
3237
3238         update-copyright: convert 2-digit to 4-digit years
3239         * build-aux/update-copyright: Implement and document.
3240         * tests/test-update-copyright.sh: Update.
3241
3242 2009-08-14  Jim Meyering  <meyering@redhat.com>
3243
3244         test-exclude: avoid coreutils "make check" failure
3245         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
3246         just as in test-argmatch.c.
3247
3248 2009-08-13  Eric Blake  <ebb9@byu.net>
3249
3250         test-dup2: fix bad assumption
3251         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
3252         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
3253
3254         test-version-etc: fix CRLF portability issue
3255         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
3256         recognize \r.
3257         * tests/test-argp-version-etc-1.sh: Likewise.
3258
3259         getopt: update client modules
3260         * modules/argp (Depends-on): Use getopt-gnu.
3261         * modules/git-merge-changelog (Depends-on): Likewise.
3262         * modules/long-options (Depends-on): Likewise.
3263         * modules/xstrtol (Depends-on): Likewise.
3264
3265 2009-08-13  Simon Josefsson  <simon@josefsson.org>
3266
3267         * tests/test-version-etc.sh: Don't fail on different
3268         project/version.  Don't fail on CRLF differences.  Rewrite to use
3269         multiple -e instead of multiple sed forks, suggested by Eric Blake
3270         <ebb9@byu.net>.
3271         * tests/test-argp-version-etc-1.sh: Likewise.
3272
3273 2009-08-13  Simon Josefsson  <simon@josefsson.org>
3274
3275         * tests/test-version-etc.sh: Don't fail on different
3276         project/version.
3277
3278 2009-08-12  Bruno Haible  <bruno@clisp.org>
3279
3280         Tests for modules 'getopt-posix', 'getopt-gnu'.
3281         * modules/getopt-posix-tests: New file.
3282         * tests/test-getopt.c: New file.
3283         * tests/test-getopt.h: New file.
3284         * tests/test-getopt_long.h: New file.
3285
3286         New modules 'getopt-posix', 'getopt-gnu'.
3287         * modules/getopt-gnu: New file, renamed from modules/getopt.
3288         * modules/getopt-posix: New file.
3289         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
3290         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
3291         (gl_GETOPT): Remove macro.
3292         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
3293         Disable the test against BSD systems that declare optreset. Test
3294         against mingw bug. Test against lack of support of optional arguments
3295         on many platforms.
3296         * doc/glibc-headers/getopt.texi: Update module name and list of
3297         relevant platforms.
3298         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
3299         'getopt-gnu' and more portability problems.
3300         * NEWS: Mention the changes.
3301
3302 2009-08-12  Bruno Haible  <bruno@clisp.org>
3303
3304         Ensure that optarg etc. get declared by <unistd.h>.
3305         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
3306         AC_USE_SYSTEM_EXTENSIONS.
3307         * modules/getopt (Depends-on): Add 'extensions'.
3308
3309 2009-08-12  Bruno Haible  <bruno@clisp.org>
3310
3311         Avoid test link errors.
3312         * modules/pipe-filter-ii-tests (Makefile.am): Define
3313         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
3314         * modules/pipe-filter-gi-tests (Makefile.am): Define
3315         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
3316         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3317
3318 2009-08-12  Bruno Haible  <bruno@clisp.org>
3319
3320         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
3321         gl_GETOPT_SUBSTITUTE before.
3322         (gl_GETOPT): Use it.
3323         * m4/argp.m4 (gl_ARGP): Update.
3324         Reported by Sergey Poznyakoff.
3325
3326         * m4/getopt.m4: Reorder macros.
3327         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
3328         (gl_GETOPT_SUBSTITUTE): Remove macro.
3329
3330 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
3331
3332         Minor improvement in gitlog-to-changelog
3333
3334         * build-aux/gitlog-to-changelog: New option `--format' makes
3335         output format string configurable.
3336
3337 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
3338
3339         Optimize exclude: use hash tables for non-wildcard patterns.
3340
3341         * lib/exclude.c: Include hash.h and mbuiter.h
3342         (struct exclude_pattern, exclude_segment): New data types.
3343         (struct exclude): Rewrite.
3344         (fnmatch_pattern_has_wildcards): New function.
3345         (new_exclude_segment, free_exclude_segment): New functions.
3346         (excluded_file_pattern_p, excluded_file_name_p): New functions.
3347         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
3348         * lib/exclude.h (is_fnmatch_pattern): New prototype.
3349         * modules/exclude: Depend on hash and mbuiter.
3350
3351         * modules/exclude-tests: New file.
3352         * tests/test-exclude.c: New file.
3353         * tests/test-exclude1.sh: New file.
3354         * tests/test-exclude2.sh: New file.
3355         * tests/test-exclude3.sh: New file.
3356         * tests/test-exclude4.sh: New file.
3357         * tests/test-exclude5.sh: New file.
3358         * tests/test-exclude6.sh: New file.
3359         * tests/test-exclude7.sh: New file.
3360
3361 2009-08-12  Bruno Haible  <bruno@clisp.org>
3362
3363         Ensure that getopt() gets declared by <unistd.h>.
3364         * lib/unistd.in.h: Conditionally include getopt.h.
3365         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
3366         Set GNULIB_UNISTD_H_GETOPT.
3367         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
3368         GNULIB_UNISTD_H_GETOPT.
3369         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
3370
3371 2009-08-12  Bruno Haible  <bruno@clisp.org>
3372
3373         Clarify logic.
3374         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
3375         gl_replace_getopt instead of GETOPT_H.
3376
3377 2009-08-12  Bruno Haible  <bruno@clisp.org>
3378
3379         * m4/getopt.m4: Add comments.
3380
3381 2009-08-12  Bruno Haible  <bruno@clisp.org>
3382
3383         Disable multithread support by default on Cygwin 1.5.x.
3384         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
3385         set gl_use_threads=no if not specified otherwise.
3386
3387 2009-08-11  Bruno Haible  <bruno@clisp.org>
3388
3389         Avoid compilation error on NetBSD 5.0.
3390         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
3391         * tests/test-stdio.c: Likewise.
3392         * tests/test-stdlib.c: Likewise.
3393         * tests/test-string.c: Likewise.
3394         * tests/test-unistd.c: Likewise.
3395         Reported by Greg Troxel <gdt@ir.bbn.com>
3396         at <https://savannah.gnu.org/support/?106973>.
3397
3398 2009-08-11  Bruno Haible  <bruno@clisp.org>
3399
3400         * modules/dup2-tests (Depends-on): Remove close.
3401
3402         Undo 2009-07-19 commit.
3403         * modules/acl-tests (Depends-on): Remove close.
3404         * modules/binary-io-tests (Depends-on): Likewise.
3405         * modules/closein-tests (Depends-on): Likewise.
3406         * modules/flock-tests (Depends-on): Likewise.
3407         * modules/fsync-tests (Depends-on): Likewise.
3408         * modules/lseek-tests (Depends-on): Likewise.
3409         * modules/pipe-tests (Depends-on): Likewise.
3410         * modules/posix_spawn-tests (Depends-on): Likewise.
3411         * modules/posix_spawnp-tests (Depends-on): Likewise.
3412         * modules/stat-time-tests (Depends-on): Likewise.
3413         * modules/yesno-tests (Depends-on): Likewise.
3414
3415 2009-08-10  Bruno Haible  <bruno@clisp.org>
3416
3417         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
3418
3419 2009-08-10  Bruno Haible  <bruno@clisp.org>
3420
3421         Fix a gcc warning.
3422         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
3423
3424 2009-08-10  Bruno Haible  <bruno@clisp.org>
3425
3426         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
3427         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
3428         not only the first time.
3429         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
3430         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
3431         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
3432         is 1, not only the the first time.
3433
3434 2009-08-10  Bruno Haible  <bruno@clisp.org>
3435
3436         Make it possible to use module 'gethostname' without module 'close'.
3437         * lib/unistd.in.h (close): Evoke a link error only if
3438         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
3439         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
3440         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
3441         * modules/unistd (Makefile.am): Substitute
3442         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
3443         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
3444         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
3445         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
3446         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
3447         * modules/sys_ioctl (Makefile.am): Substitute
3448         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
3449         * modules/socket (configure.ac): On native Windows, set
3450         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
3451         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
3452         Reported by Sam Steingold <sds@gnu.org>.
3453
3454 2009-08-10  Bruno Haible  <bruno@clisp.org>
3455
3456         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
3457         * modules/ioctl (configure.ac): Likewise.
3458
3459 2009-08-10  Bruno Haible  <bruno@clisp.org>
3460
3461         Avoid collision between gnulib wrapper and libintl wrapper.
3462         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
3463         already defined in intl/printf.c.
3464         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
3465         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
3466
3467 2009-08-09  Bruno Haible  <bruno@clisp.org>
3468
3469         Make <sys/select.h> really self-contained, also on Solaris 10.
3470         * lib/sys_select.in.h: Include <string.h>.
3471         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
3472         Solaris 10 problem.
3473         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
3474         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
3475         Reported by Jim Meyering.
3476
3477 2009-08-09  Bruno Haible  <bruno@clisp.org>
3478
3479         Avoid warnings from 'aclocal' that are due to a use of macro name
3480         AM_XGETTEXT_OPTION that is not defined in automake.
3481         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
3482         automake.
3483         * modules/error (configure.ac): Likewise.
3484         * modules/propername (configure.ac): Likewise.
3485         * modules/vasprintf (configure.ac): Likewise.
3486         * modules/verror (configure.ac): Likewise.
3487         * modules/xprintf (configure.ac): Likewise.
3488         * modules/xvasprintf (configure.ac): Likewise.
3489
3490 2009-08-08  Bruno Haible  <bruno@clisp.org>
3491
3492         Avoid compilation error in C++ mode.
3493         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
3494         Reported by Sam Steingold <sds@gnu.org>.
3495
3496 2009-08-08  Bruno Haible  <bruno@clisp.org>
3497
3498         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
3499         for the various Unix platforms.
3500         * doc/posix-headers/limits.texi: Update platforms list regarding
3501         HOST_NAME_MAX.
3502         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
3503
3504 2009-08-07  Jim Meyering  <meyering@redhat.com>
3505
3506         selinux-at: fix typo in a comment
3507         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
3508         Spotted by Paolo Bonzini.
3509
3510         selinux-at: remove redundant m4 code, add documentation
3511         * modules/selinux-at (configure.ac): Remove redundant code.
3512         LIB_SELINUX is already set via the dependent module, selinux-h.
3513         (Include): Add quotes around selinux-at.h.
3514         * lib/selinux-at.h: Add documentation.
3515         Reported by Bruno Haible in
3516         http://marc.info/?l=gnulib-bug&m=124958988300749
3517
3518 2009-08-07  Bruno Haible  <bruno@clisp.org>
3519
3520         Avoid link error on MacOS X 10.3 and 10.4.
3521         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
3522         on non-ELF systems.
3523         * lib/argp-pv.c (argp_program_version): Likewise.
3524         Reported by Simon Josefsson.
3525
3526 2009-08-07  Simon Josefsson  <simon@josefsson.org>
3527
3528         * tests/test-version-etc.sh: Use $EXEEXT.
3529
3530 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
3531
3532         update-copyright: update documentation to point to maint.mk
3533         * build-aux/update-copyright: Here.
3534
3535 2009-08-06  Jim Meyering  <meyering@redhat.com>
3536
3537         maint.mk: support update-copyright-local
3538         * top/maint.mk (update-copyright-local): Define place-holder.
3539         (update-copyright): Depend on $(update-copyright-local).
3540
3541 2009-08-06  Jim Meyering  <meyering@redhat.com>
3542
3543         selinux-at: new module
3544         Initially written for coreutils, this module will soon be
3545         used by findutils, too.
3546         * MODULES.html.sh [Misc]: Add selinux-at.
3547         * lib/selinux-at.h: New file, from coreutils.
3548         * lib/selinux-at.c: Likewise.
3549         * modules/selinux-at: Likewise.
3550         (License): Change from LGPL to GPL, since it depends
3551         on the GPL'd openat module.
3552
3553         doc: update README
3554         * README: Remove references to cogito.
3555         Remove cvs-repo-updating instructions from 2007.
3556         Don't imply that CVS is better if you have limited disk space.
3557
3558 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
3559
3560         update-copyright: support C-style comments
3561         * build-aux/update-copyright: Implement and document.
3562         * tests/test-update-copyright.sh: Test.
3563
3564 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
3565
3566         update-copyright: support omitted "(C)"
3567         * build-aux/update-copyright: Implement and document.  Also,
3568         allow variable whitespace before "(C)".
3569         * tests/test-update-copyright.sh: Test.
3570
3571 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
3572
3573         update-copyright: don't trip on non-FSF copyright statements
3574         * build-aux/update-copyright: Fix so that the first correctly
3575         formatted FSF copyright statement is recognized no matter what
3576         appears before it.  Update documentation.
3577         * tests/test-update-copyright.sh: Test that.
3578
3579 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
3580
3581         update-copyright: clean up code a little
3582         * build-aux/update-copyright: Append "_re" to the name of any
3583         variable holding a regular expression.
3584         Replace "old" and "new" with "stmt" in variable names.
3585         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
3586         handled correctly.
3587         Format code more consistently.
3588
3589 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
3590
3591         update-copyright-tests: improve portability
3592         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
3593         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
3594
3595 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
3596
3597         update-copyright: support @copyright{} and &copy;
3598         * build-aux/update-copyright: Implement and document.
3599         * tests/test-update-copyright.sh: Test.
3600
3601 2009-08-04  Jim Meyering  <meyering@redhat.com>
3602
3603         update-copyright-tests: correctly test EOL=\r\n handling
3604         * tests/test-update-copyright.sh: Put \r at the end of some lines
3605         for the dos-eol tests.  Based on a patch by Joel E. Denny.
3606
3607         maint.mk: make update-copyright exclusion list more configurable
3608         * top/maint.mk (update-copyright): Default to excluding COPYING,
3609         but allow an override, in case someone does want to update that file.
3610
3611         maint.mk: don't update copyright date in COPYING
3612         * top/maint.mk (update-copyright): Exclude COPYING.
3613
3614         maint.mk: add a copyright-updating rule
3615         * top/maint.mk (update-copyright): New rule.
3616         Derived from coreutils/Makefile.am.
3617
3618         update-copyright: rename some variables
3619         * build-aux/update-copyright: Rename a few variables for clarity.
3620         Tweak syntax.  List Joel E. Denny as coauthor.
3621
3622 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
3623
3624         update-copyright: fix bug for 2-digit last year and add tests
3625         * build-aux/update-copyright: Fix bug.
3626         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
3627         specified.
3628         * modules/update-copyright-tests: New
3629         * tests/test-update-copyright.sh: New.
3630
3631 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
3632
3633         update-copyright: handle leading tabs in line prefix
3634         * build-aux/update-copyright: Count leading tabs as 8 spaces
3635         when computing margin.  This helps with the formatting of
3636         ChangeLogs, for example.
3637         Fix documentation a little.
3638
3639 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
3640
3641         update-copyright: support EOL=\r\n
3642         * build-aux/update-copyright: Implement that.
3643
3644 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
3645
3646         update-copyright: automatically format copyright statements
3647         * build-aux/update-copyright: Implement that.
3648         Also, be a little more predictable and safer by always failing
3649         when the full copyright format is not perfectly recognized as an
3650         unbroken whole.  Discussed at
3651         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
3652         Rewrite documentation.
3653
3654 2009-08-03  Bruno Haible  <bruno@clisp.org>
3655
3656         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
3657
3658 2009-08-02  Bruno Haible  <bruno@clisp.org>
3659
3660         Tests for module 'uname'.
3661         * modules/uname-tests: New file.
3662         * tests/test-uname.c: New file.
3663
3664         New module 'uname'.
3665         * lib/uname.c: New file.
3666         * m4/uname.m4: New file.
3667         * modules/uname: New file.
3668         * doc/posix-functions/uname.texi: Mention the new module.
3669
3670 2009-08-02  Bruno Haible  <bruno@clisp.org>
3671
3672         Tests for module 'sys_utsname'.
3673         * modules/sys_utsname-tests: New file.
3674         * tests/test-sys_utsname.c: New file.
3675
3676         New module 'sys_utsname'.
3677         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
3678         * m4/sys_utsname_h.m4: New file.
3679         * modules/sys_utsname: New file.
3680         * doc/posix-headers/sys_utsname.texi: Mention the new module.
3681
3682 2009-08-02  Bruno Haible  <bruno@clisp.org>
3683
3684         Implicitly initialize the sockets library.
3685         * lib/gethostname.c: Include sockets.h.
3686         (rpl_gethostname): Invoke gl_sockets_startup.
3687         * lib/socket.c: Include sockets.h.
3688         (rpl_socket): Invoke gl_sockets_startup.
3689         * modules/gethostname (Depends-on): Add sockets.
3690         * modules/socket (Depends-on): Likewise.
3691         * tests/test-poll.c: Don't include sockets.h.
3692         (main): Don't invoke gl_sockets_startup.
3693         * tests/test-select.c: Don't include sockets.h.
3694         (main): Don't invoke gl_sockets_startup.
3695
3696 2009-08-02  Bruno Haible  <bruno@clisp.org>
3697
3698         Allow multiple calls to gl_sockets_startup.
3699         * lib/sockets.c (initialized_sockets_version): New variable.
3700         (gl_sockets_startup): Do nothing if already called for this or a higher
3701         version.
3702         (gl_sockets_cleanup): Reset initialized_sockets_version.
3703
3704 2009-08-03  Simon Josefsson  <simon@josefsson.org>
3705
3706         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
3707         different project/version.
3708
3709 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
3710             Bruno Haible  <bruno@clisp.org>
3711
3712         Tests for module 'pipe-filter-gi'.
3713         * modules/pipe-filter-gi-tests: New file.
3714         * tests/test-pipe-filter-gi1.sh: New file.
3715         * tests/test-pipe-filter-gi1.c: New file.
3716         * tests/test-pipe-filter-gi2.sh: New file.
3717         * tests/test-pipe-filter-gi2-main.c: New file.
3718         * tests/test-pipe-filter-gi2-child.c: New file.
3719
3720         New module 'pipe-filter-gi'.
3721         * lib/pipe-filter-gi.c: New file.
3722         * modules/pipe-filter-gi: New file.
3723
3724 2009-08-02  Bruno Haible  <bruno@clisp.org>
3725             Paolo Bonzini  <bonzini@gnu.org>
3726
3727         Tests for module 'pipe-filter-ii'.
3728         * modules/pipe-filter-ii-tests: New file.
3729         * tests/test-pipe-filter-ii1.sh: New file.
3730         * tests/test-pipe-filter-ii1.c: New file.
3731         * tests/test-pipe-filter-ii2.sh: New file.
3732         * tests/test-pipe-filter-ii2-main.c: New file.
3733         * tests/test-pipe-filter-ii2-child.c: New file.
3734
3735         New module 'pipe-filter-ii'.
3736         * lib/pipe-filter.h: New file.
3737         * lib/pipe-filter-ii.c: New file.
3738         * lib/pipe-filter-aux.h: New file.
3739         * modules/pipe-filter-ii: New file.
3740
3741 2009-08-02  Simon Josefsson  <simon@josefsson.org>
3742
3743         * lib/gc-libgcrypt.c: Change copyright to FSF.
3744         * lib/gc-gnulib.c: Likewise.
3745
3746 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
3747
3748         * lib/gethostname.c: Include limits.h.
3749
3750 2009-08-02  Simon Josefsson  <simon@josefsson.org>
3751             Bruno Haible  <bruno@clisp.org>
3752
3753         Ensure HOST_NAME_MAX as part of the gethostname module.
3754         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
3755         define also HOST_NAME_MAX.
3756         * tests/test-gethostname.c: Include <limits.h>.
3757         (main): Check also HOST_NAME_MAX.
3758         * doc/posix-headers/limits.texi: Document the mingw problem.
3759
3760 2009-08-02  Bruno Haible  <bruno@clisp.org>
3761
3762         * lib/gethostname.c (gethostname): Fix handling of large len argument.
3763         Add comments.
3764
3765 2009-03-31  Simon Josefsson  <simon@josefsson.org>
3766
3767         * lib/gethostname.c: Add Windows wrapper.
3768         * m4/gethostname.m4: Look for gethostname in -lws2_32.
3769         * modules/gethostname: Depend on sys_socket & errno, for also
3770         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
3771         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
3772
3773 2009-07-31  Jim Meyering  <meyering@redhat.com>
3774
3775         getloadavg: fix symbol name in comment
3776         * lib/getloadavg.c: Correct a typo I introduced when adding
3777         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
3778         Matt Kraai spotted the problem.
3779
3780 2009-07-29  Matt Kraai  <mkraai@beckman.com>
3781
3782         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
3783         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
3784         code also if ! defined N_NAME_POINTER.
3785         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
3786         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
3787         but the n_name member is a 12-byte array.
3788
3789 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
3790
3791         update-copyright: generalize comment handling
3792         * build-aux/update-copyright: Handle copyright statements
3793         within more comment styles.
3794         Document usage.
3795         Report any file with an external copyright holder or parse failure.
3796
3797 2009-07-29  Jim Meyering  <meyering@redhat.com>
3798
3799         mktime: correct setting of REPLACE_MKTIME
3800         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
3801
3802         update-copyright: new module
3803         * modules/update-copyright: New file.
3804         * build-aux/update-copyright: New file.
3805         * MODULES.html.sh (maint+release support): Add update-copyright.
3806
3807 2009-07-27  Bruno Haible  <bruno@clisp.org>
3808
3809         Fix compilation error when <ctime> is used and mktime is replaced.
3810         * lib/time.in.h (mktime): New declaration.
3811         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
3812         REPLACE_MKTIME instead of defining mktime in config.h.
3813         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
3814         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
3815         Reported by Ross McFarland <rwmcfa1@neces.com>.
3816
3817 2009-07-27  Bruno Haible  <bruno@clisp.org>
3818
3819         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
3820         Reported by Matt Kraai <mkraai@beckman.com>.
3821
3822 2009-07-25  Jim Meyering  <meyering@redhat.com>
3823
3824         maint.mk: avoid warnings about missing files
3825         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
3826         diagnostic when .prev-version does not exist.
3827         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
3828         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
3829         nonexistent cfg.mk.
3830         Suggestions from Simon Josefsson.
3831
3832 2009-07-25  Bruno Haible  <bruno@clisp.org>
3833
3834         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
3835         defined as macros. Needed on QNX 6.4.1.
3836         Reported by Matt Kraai <mkraai@beckman.com>.
3837
3838 2009-07-23  Jim Meyering  <meyering@redhat.com>
3839
3840         maint.mk: invoke "make dist" with a working value of XZ_OPT
3841         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
3842
3843 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
3844
3845         Make fseeko.c compile on QNX.
3846         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
3847
3848 2009-07-22  Peter Simons  <simons@cryp.to>
3849
3850         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
3851         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
3852         * lib/md4.h: Likewise.
3853         * lib/md5.h: Likewise.
3854         * lib/sha1.h: Likewise.
3855         * lib/sha256.h: Likewise.
3856         * lib/sha512.h: Likewise.
3857
3858         tests-sha1: don't assign literal string to 'char *' variable
3859         * tests/test-sha1.c (main): Declare locals with "const" to match
3860         attributes of the right hand side.
3861
3862 2009-07-21  Eric Blake  <ebb9@byu.net>
3863
3864         dup2: fix more mingw problems
3865         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
3866         fd to itself.
3867         * doc/posix-functions/dup2.texi (dup2): Document the bug.
3868         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
3869         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
3870         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
3871         care of mingw bugs.
3872
3873 2009-07-21  Jim Meyering  <meyering@redhat.com>
3874
3875         vc-list-files: avoid failure when /bin/sh is dash
3876         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
3877         On some Debian based systems, /bin/sh is a symlink to dash, and running
3878         this command would omit the "/" following each 'tests' prefix:
3879           dash -x build-aux/vc-list-files -C . tests
3880         That is because bash and dash work differently:
3881           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
3882           bash ok
3883           dash odd
3884
3885 2009-07-21  Eric Blake  <ebb9@byu.net>
3886
3887         dup2-tests: test previous patch
3888         * modules/dup2-tests: New file.
3889         * tests/test-dup2.c: Likewise.
3890         * tests/test-open.c (main): Avoid unspecified behavior.
3891         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
3892         test.
3893
3894         dup2: work around mingw and cygwin 1.5 bug
3895         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
3896         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
3897         * modules/unistd (Makefile.am): Substitute it.
3898         * lib/unistd.in.h (dup2): Declare the replacement.
3899         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
3900         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
3901         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
3902         * modules/execute (Depends-on): Add dup2.
3903         * modules/fseterr (Depends-on): Likewise.
3904         * modules/pipe (Depends-on): Likewise.
3905         * modules/posix_spawn-internal (Depends-on): Likewise.
3906
3907 2009-07-21  Bruno Haible  <bruno@clisp.org>
3908
3909         * modules/.gitattributes: New file.
3910
3911 2009-07-20  Bruno Haible  <bruno@clisp.org>
3912
3913         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
3914         (main): Use it.
3915
3916 2009-07-20  Eric Blake  <ebb9@byu.net>
3917
3918         test-pipe: make a bit more robust.
3919         * tests/test-pipe.c (myerr): Allow error messages regardless of
3920         what we do to stderr.
3921         (test_pipe): Rearrange to avoid deadlock.
3922         (child_main): Try a larger read, to ensure we avoided deadlock.
3923         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
3924         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
3925         if misused.
3926
3927 2009-07-19  Jim Meyering  <meyering@redhat.com>
3928
3929         fts: avoid false-positive cycle-detection
3930         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
3931         for each new command line argument.
3932
3933 2009-07-19  Bruno Haible  <bruno@clisp.org>
3934
3935         Fix build error on mingw with the modules sys_select and unistd.
3936         * modules/acl-tests (Depends-on): Add close.
3937         * modules/binary-io-tests (Depends-on): Likewise.
3938         * modules/closein-tests (Depends-on): Likewise.
3939         * modules/flock-tests (Depends-on): Likewise.
3940         * modules/fsync-tests (Depends-on): Likewise.
3941         * modules/lseek-tests (Depends-on): Likewise.
3942         * modules/pipe-tests (Depends-on): Likewise.
3943         * modules/posix_spawn-tests (Depends-on): Likewise.
3944         * modules/posix_spawnp-tests (Depends-on): Likewise.
3945         * modules/stat-time-tests (Depends-on): Likewise.
3946         * modules/yesno-tests (Depends-on): Likewise.
3947
3948 2009-07-19  Bruno Haible  <bruno@clisp.org>
3949
3950         Unify conditionals.
3951         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
3952         macros, not at the compiler macros.
3953         * lib/pipe.c: Likewise.
3954         * lib/execute.c: Likewise.
3955         * lib/spawni.c: Likewise.
3956
3957 2009-07-19  Bruno Haible  <bruno@clisp.org>
3958
3959         Fix handling of closed stdin/stdout/stderr on mingw.
3960         * lib/w32spawn.h: Include unistd.h.
3961         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
3962         file descriptor with O_NOINHERIT flag.
3963         (fd_safer_noinherit): New function, based on fd-safer.c.
3964         (dup_safer_noinherit): New function, based on dup-safer.c.
3965         (undup_safer_noinherit): New function.
3966         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
3967         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
3968         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
3969         instead of fd_safer.
3970         * tests/test-pipe.c: Include <windows.h>.
3971         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close() result.
3972
3973         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
3974         from main.
3975         (test_pipe): Pass an extra argument for disambiguation.
3976         (main): Invoke parent_main or child_main.
3977
3978         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
3979         consistently.
3980
3981 2009-07-18  Eric Blake  <ebb9@byu.net>
3982
3983         test-pipe: fix mingw build
3984         * tests/test-pipe.c (main): Avoid fcntl on mingw.
3985
3986 2009-07-18  Bruno Haible  <bruno@clisp.org>
3987
3988         * modules/pipe-tests (Makefile.am): Fix typo.
3989
3990 2009-07-18  Eric Blake  <ebb9@byu.net>
3991
3992         error: fix mingw build
3993         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
3994         Reported by Bruno Haible.
3995
3996         error: avoid undefined use of stdout
3997         * lib/error.c (error, error_at_line): Check that fd 1 is open
3998         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
3999         is handling faults and the close_stdout module wants to report the
4000         detection of closed stdout as an error.
4001
4002 2009-07-17  Eric Blake  <ebb9@byu.net>
4003
4004         pipe: be robust in face of closed fds
4005         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
4006         should cause child to misbehave.
4007         * modules/pipe-tests: New module.
4008         * tests/test-pipe.c: New file.
4009         * tests/test-pipe.sh: New file.
4010         Reported by Akim Demaille.
4011
4012 2009-07-14  Bruno Haible  <bruno@clisp.org>
4013
4014         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
4015         Reported by anonymous kc.
4016
4017 2009-07-07  Jim Meyering  <meyering@redhat.com>
4018
4019         maint.mk: don't look for translatable strings in *.m4 or *.mk
4020         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
4021         when searching for translatable strings.
4022
4023 2009-07-05  Jim Meyering  <meyering@redhat.com>
4024
4025         remove superfluous parentheses in STREQ definition
4026         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
4027         * lib/getugroups.c (STREQ): Likewise.
4028         * lib/fnmatch.c (STREQ): Likewise.
4029         Spotted by Bruno Haible.
4030
4031 2009-07-04  Jim Meyering  <meyering@redhat.com>
4032
4033         argv-iter: new module
4034         * MODULES.html.sh: Add argv-iter.
4035         * lib/argv-iter.c, lib/argv-iter.h: New files.
4036         * modules/argv-iter: New file.
4037         * modules/argv-iter-tests: New file.
4038         * tests/test-argv-iter.c: Test it.
4039
4040 2009-07-04  Bruno Haible  <bruno@clisp.org>
4041
4042         Fix assertion.
4043         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
4044         contains more exact copies of a given entry than file2, leave the extra
4045         copies unpaired rather than aborting.
4046         Reported by Eric Blake.
4047
4048 2009-07-02  Bruno Haible  <bruno@clisp.org>
4049
4050         Speedup git-merge-changelog for git cherry-pick.
4051         * lib/git-merge-changelog.c (struct entries_mapping): New type.
4052         (entries_mapping_get): New function, extracted from compute_mapping.
4053         (entries_mapping_reverse_get): New function.
4054         (compute_mapping): Add a 'full' argument. Return the result in a
4055         'struct entries_mapping'.
4056         (main): Update. Access the mappings through entries_mapping_get.
4057         Reported by Eric Blake.
4058
4059 2009-07-02  Bruno Haible  <bruno@clisp.org>
4060
4061         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
4062         best_i.
4063
4064 2009-07-02  Bruno Haible  <bruno@clisp.org>
4065
4066         Speed up approximate search for matching ChangeLog entries.
4067         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
4068         argument. Call fstrcmp_bounded instead of fstrcmp.
4069         (compute_mapping, try_split_merged_entry, main): Update callers.
4070
4071 2009-07-02  Bruno Haible  <bruno@clisp.org>
4072
4073         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
4074
4075 2009-06-30  Bruno Haible  <bruno@clisp.org>
4076
4077         Reduce the number of uc_is_cased calls.
4078         * lib/unicase.h (casing_suffix_context_t): Add
4079         'first_char_except_ignorable' field.
4080         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
4081         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
4082         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
4083         Update initializer.
4084         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
4085         case-ignorable characters.
4086         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
4087         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
4088         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
4089         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
4090         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
4091
4092 2009-06-30  Bruno Haible  <bruno@clisp.org>
4093
4094         Tests for module 'unicase/ignorable'.
4095         * modules/unicase/ignorable-tests: New file.
4096         * tests/unicase/test-ignorable.c: New file, generated by
4097         gen-uni-tables.
4098
4099         Tests for module 'unicase/cased'.
4100         * modules/unicase/cased-tests: New file.
4101         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
4102         * tests/unicase/test-predicate-part1.h: New file, derived from
4103         tests/unictype/test-predicate-part1.h.
4104         * tests/unicase/test-predicate-part2.h: New file, same as
4105         tests/unictype/test-predicate-part2.h.
4106
4107         Fix evaluation of "Before C" condition of FINAL_SIGMA.
4108         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
4109         (output_casing_properties): New function.
4110         (main): Call it.
4111         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
4112         * lib/unicase/cased.c: Include unictype/bitmap.h.
4113         (uc_is_cased): Define through a bitmap lookup.
4114         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
4115         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
4116         (uc_is_case_ignorable): Define through a bitmap lookup.
4117         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
4118         lib/unictype/bitmap.h.
4119         (Depends-on): Add inline. Clean up.
4120         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
4121         lib/unictype/bitmap.h.
4122         (Depends-on): Add inline. Clean up.
4123         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
4124         recognition.
4125         * tests/unicase/test-u16-tolower.c (main): Likewise.
4126         * tests/unicase/test-u32-tolower.c (main): Likewise.
4127
4128 2009-06-30  Bruno Haible  <bruno@clisp.org>
4129
4130         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
4131         * lib/unicase/u16-casemap.c: Likewise.
4132         * lib/unicase/u32-casemap.c: Likewise.
4133
4134 2009-06-29  Bruno Haible  <bruno@clisp.org>
4135
4136         Define u32_casefold as a wrapper around u32_ct_casefold.
4137         * lib/unicase/u32-casefold.c: Update.
4138         * modules/unicase/u32-casefold (Depends-on): Add
4139         unicase/u32-ct-casefold, unicase/empty-prefix-context,
4140         unicase/empty-suffix-context. Clean up.
4141
4142         Define u16_casefold as a wrapper around u16_ct_casefold.
4143         * lib/unicase/u16-casefold.c: Update.
4144         * modules/unicase/u16-casefold (Depends-on): Add
4145         unicase/u16-ct-casefold, unicase/empty-prefix-context,
4146         unicase/empty-suffix-context. Clean up.
4147
4148         Define u8_casefold as a wrapper around u8_ct_casefold.
4149         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
4150         * lib/unicase/u8-casefold.c: Update.
4151         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
4152         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
4153
4154         Define u32_totitle as a wrapper around u32_ct_totitle.
4155         * lib/unicase/u32-totitle.c: Update.
4156         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
4157         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
4158
4159         Define u16_totitle as a wrapper around u16_ct_totitle.
4160         * lib/unicase/u16-totitle.c: Update.
4161         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
4162         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
4163
4164         Define u8_totitle as a wrapper around u8_ct_totitle.
4165         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
4166         functions.
4167         (FUNC): Delegate to U_CT_TOTITLE.
4168         * lib/unicase/u8-totitle.c: Update.
4169         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
4170         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
4171
4172         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
4173         invocation.
4174         * modules/unicase/u32-tolower (Depends-on): Add
4175         unicase/empty-prefix-context, unicase/empty-suffix-context.
4176
4177         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
4178         invocation.
4179         * modules/unicase/u16-tolower (Depends-on): Add
4180         unicase/empty-prefix-context, unicase/empty-suffix-context.
4181
4182         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
4183         * modules/unicase/u8-tolower (Depends-on): Add
4184         unicase/empty-prefix-context, unicase/empty-suffix-context.
4185
4186         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
4187         invocation.
4188         * modules/unicase/u32-toupper (Depends-on): Add
4189         unicase/empty-prefix-context, unicase/empty-suffix-context.
4190
4191         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
4192         invocation.
4193         * modules/unicase/u16-toupper (Depends-on): Add
4194         unicase/empty-prefix-context, unicase/empty-suffix-context.
4195
4196         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
4197         * modules/unicase/u8-toupper (Depends-on): Add
4198         unicase/empty-prefix-context, unicase/empty-suffix-context.
4199
4200         New module 'unicase/u32-ct-casefold'.
4201         * lib/unicase/u32-ct-casefold.c: New file.
4202         * modules/unicase/u32-ct-casefold: New file.
4203
4204         New module 'unicase/u16-ct-casefold'.
4205         * lib/unicase/u16-ct-casefold.c: New file.
4206         * modules/unicase/u16-ct-casefold: New file.
4207
4208         New module 'unicase/u8-ct-casefold'.
4209         * lib/unicase/u8-ct-casefold.c: New file.
4210         * lib/unicase/u-ct-casefold.h: New file, derived from
4211         lib/unicase/u-casefold.h.
4212         * modules/unicase/u8-ct-casefold: New file.
4213
4214         New module 'unicase/u32-ct-totitle'.
4215         * lib/unicase/u32-ct-totitle.c: New file.
4216         * modules/unicase/u32-ct-totitle: New file.
4217
4218         New module 'unicase/u16-ct-totitle'.
4219         * lib/unicase/u16-ct-totitle.c: New file.
4220         * modules/unicase/u16-ct-totitle: New file.
4221
4222         New module 'unicase/u8-ct-totitle'.
4223         * lib/unicase/u8-ct-totitle.c: New file.
4224         * lib/unicase/u-ct-totitle.h: New file, derived from
4225         lib/unicase/u-totitle.h.
4226         * modules/unicase/u8-ct-totitle: New file.
4227
4228         New module 'unicase/u32-ct-tolower'.
4229         * lib/unicase/u32-ct-tolower.c: New file.
4230         * modules/unicase/u32-ct-tolower: New file.
4231
4232         New module 'unicase/u16-ct-tolower'.
4233         * lib/unicase/u16-ct-tolower.c: New file.
4234         * modules/unicase/u16-ct-tolower: New file.
4235
4236         New module 'unicase/u8-ct-tolower'.
4237         * lib/unicase/u8-ct-tolower.c: New file.
4238         * modules/unicase/u8-ct-tolower: New file.
4239
4240         New module 'unicase/u32-ct-toupper'.
4241         * lib/unicase/u32-ct-toupper.c: New file.
4242         * modules/unicase/u32-ct-toupper: New file.
4243
4244         New module 'unicase/u16-ct-toupper'.
4245         * lib/unicase/u16-ct-toupper.c: New file.
4246         * modules/unicase/u16-ct-toupper: New file.
4247
4248         New module 'unicase/u8-ct-toupper'.
4249         * lib/unicase/u8-ct-toupper.c: New file.
4250         * modules/unicase/u8-ct-toupper: New file.
4251
4252         Add context arguments to u*_casemap functions.
4253         * lib/unicase/unicasemap.h: Include unicase.h.
4254         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
4255         suffix_context arguments.
4256         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
4257         functions.
4258         (FUNC): Add prefix_context and suffix_context arguments. Use
4259         uc_is_cased and uc_is_case_ignorable.
4260         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
4261         * lib/unicase/u16-casemap.c: Likewise.
4262         * lib/unicase/u32-casemap.c: Likewise.
4263         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
4264         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
4265         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
4266         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
4267         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
4268         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
4269
4270         New module 'unicase/u32-suffix-context'.
4271         * lib/unicase/u32-suffix-context.c: New file.
4272         * modules/unicase/u32-suffix-context: New file.
4273
4274         New module 'unicase/u16-suffix-context'.
4275         * lib/unicase/u16-suffix-context.c: New file.
4276         * modules/unicase/u16-suffix-context: New file.
4277
4278         New module 'unicase/u8-suffix-context'.
4279         * lib/unicase/u8-suffix-context.c: New file.
4280         * lib/unicase/u-suffix-context.h: New file.
4281         * modules/unicase/u8-suffix-context: New file.
4282
4283         New module 'unicase/empty-suffix-context'.
4284         * lib/unicase/empty-suffix-context.c: New file.
4285         * modules/unicase/empty-suffix-context: New file.
4286
4287         New module 'unicase/u32-prefix-context'.
4288         * lib/unicase/u32-prefix-context.c: New file.
4289         * modules/unicase/u32-prefix-context: New file.
4290
4291         New module 'unicase/u16-prefix-context'.
4292         * lib/unicase/u16-prefix-context.c: New file.
4293         * modules/unicase/u16-prefix-context: New file.
4294
4295         New module 'unicase/u8-prefix-context'.
4296         * lib/unicase/u8-prefix-context.c: New file.
4297         * lib/unicase/u-prefix-context.h: New file.
4298         * lib/unicase/context.h: New file.
4299         * modules/unicase/u8-prefix-context: New file.
4300
4301         New module 'unicase/empty-prefix-context'.
4302         * lib/unicase/empty-prefix-context.c: New file.
4303         * modules/unicase/empty-prefix-context: New file.
4304
4305         New module 'unicase/ignorable'.
4306         * lib/unicase/ignorable.c: New file.
4307         * modules/unicase/ignorable: New file.
4308
4309         New module 'unicase/cased'.
4310         * lib/unicase/caseprop.h: New file.
4311         * lib/unicase/cased.c: New file.
4312         * modules/unicase/cased: New file.
4313
4314         New functions for case mapping of substrings.
4315         * lib/unicase.h (casing_prefix_context_t): New type.
4316         (unicase_empty_prefix_context): New variable.
4317         (u8_casing_prefix_context, u16_casing_prefix_context,
4318         u32_casing_prefix_context, u8_casing_prefixes_context,
4319         u16_casing_prefixes_context, u32_casing_prefixes_context): New
4320         declarations.
4321         (casing_suffix_context_t): New type.
4322         (unicase_empty_suffix_context): New variable.
4323         (u8_casing_suffix_context, u16_casing_suffix_context,
4324         u32_casing_suffix_context, u8_casing_suffixes_context,
4325         u16_casing_suffixes_context, u32_casing_suffixes_context,
4326         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
4327         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
4328         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
4329         declarations.
4330
4331 2009-06-28  Jim Meyering  <meyering@redhat.com>
4332
4333         boostrap: indent only with spaces
4334         * build-aux/bootstrap: Indent only with spaces, never TABs.
4335
4336         bootstrap: split long lines
4337         * build-aux/bootstrap: Keep line length < 80.
4338
4339         bootstrap: sync from coreutils
4340         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
4341         just as autoreconf does.  Verify a list of prerequisite
4342         package-name,version-number pairs if defined in bootstrap.conf.
4343         Refer to README-prereq, if prerequisites are not satisfied.
4344
4345 2009-06-27  Eric Blake  <ebb9@byu.net>
4346
4347         tests: add test for bogus NULL definition
4348         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
4349         * tests/test-stdlib.c: Likewise.
4350         * tests/test-string.c: Likewise.
4351         * tests/test-locale.c: Likewise.
4352         * tests/test-unistd.c: Likewise.
4353         * modules/stdio-tests (Depends-on): Add verify.
4354         * modules/stdlib-tests (Depends-on): Likewise.
4355         * modules/string-tests (Depends-on): Likewise.
4356         * modules/locale-tests (Depends-on): Likewise.
4357         * modules/unistd-tests (Depends-on): Likewise.
4358
4359 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
4360
4361         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
4362         self-explaining comment.
4363         * m4/selinux-selinux-h: Update serial.
4364         (gl_LIBSELINUX): New macro, adding a warning for missing development
4365         packages to code extracted from...
4366         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
4367         Add warning for missing development packages here, too.
4368
4369 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
4370
4371         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
4372
4373 2009-06-25  Eric Blake  <ebb9@byu.net>
4374
4375         version-etc: fix regression
4376         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
4377         gcc.
4378         (version_etc): Use it, to catch bugs with trailing NULL.
4379         * lib/version-etc.c (version_etc_arn): Delete unused argument.
4380         (version_etc_va): Fix logic bug.
4381         * modules/version-etc-tests: Add test.
4382         * tests/test-version-etc.c: New file.
4383         * tests/test-version-etc.sh: Likewise.
4384
4385 2009-06-25  Sam Steingold  <sds@gnu.org>
4386
4387         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
4388         mbtowc declaration.
4389
4390 2009-06-25  Eric Blake  <ebb9@byu.net>
4391
4392         fpurge: migrate into <stdio.h>
4393         * lib/fpurge.h: Delete...
4394         * lib/stdio.in.h (fpurge): ...and declare here, instead.
4395         * lib/fpurge.c (fpurge): Change declaring header.
4396         * modules/fpurge (Files): Drop deleted file.
4397         (Depends-on): Add stdio.
4398         (configure.ac): Set witness.
4399         * modules/stdio (Makefile.am): Support fpurge macros.
4400         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
4401         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
4402         * lib/fflush.c: Update client.
4403         * tests/test-fpurge.c: Likewise.
4404         * NEWS: Mention the change.
4405
4406 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
4407
4408         * lib/argp-version-etc.c (program_authors): Add const
4409         qualifier.
4410         * lib/version-etc.c: Fix typos in the comments.
4411         * modules/argp-version-etc: Depends on version-etc.
4412
4413 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
4414
4415         argp-version-etc: new module.
4416
4417         * lib/argp-version-etc.c: New file.
4418         * lib/argp-version-etc.h: New file.
4419         * modules/argp-version-etc: New file.
4420         * modules/argp-version-etc-tests: New file.
4421         * tests/test-argp-version-etc.c: New test.
4422         * tests/test-argp-version-etc-1.sh: New test.
4423
4424 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
4425
4426         Provide additional interfaces and documentation for version-etc
4427         module.
4428
4429         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
4430         interfaces.
4431         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
4432         prototypes.
4433
4434 2009-06-24  Bruno Haible  <bruno@clisp.org>
4435
4436         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
4437         HAVE_LIB${NAME} macro.
4438         Reported by Sam Steingold <sds@gnu.org>.
4439
4440 2009-06-23  Simon Josefsson  <simon@josefsson.org>
4441
4442         * modules/hash-tests (test_hash_LDADD): Link to libintl when
4443         needed.
4444
4445 2009-06-21  Bruno Haible  <bruno@clisp.org>
4446
4447         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
4448         work.
4449         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
4450         together with LIB${NAME}, LTLIB${NAME}.
4451         Reported by Sam Steingold <sds@gnu.org>.
4452
4453 2009-06-20  Jim Meyering  <meyering@redhat.com>
4454
4455         tests: make sc_require_test_exit_idiom more generic
4456         * top/maint.mk (Exit_witness_file): New overridable variable.
4457         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
4458         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
4459
4460 2009-06-19  Jim Meyering  <meyering@redhat.com>
4461
4462         hash: reverse order of src/dst parameters in an internal interface
4463         * lib/hash.c (transfer_entries): Reverse order of parameters to
4464         put DST before SRC.  Adjust callers.
4465
4466         tests: test-hash: avoid wholesale duplication
4467         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
4468         Instead, use a loop and add a single conditional.
4469
4470         tests: test-hash: allow seed selection via a command line argument
4471         * tests/test-hash.c (get_seed): New function.
4472         (main): Use it.
4473
4474 2009-06-19  Eric Blake  <ebb9@byu.net>
4475
4476         hash: avoid memory leak on allocation failure
4477         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
4478         failure.  Factor repeated algorithm...
4479         (transfer_entries): ...into new helper routine.
4480         (hash_delete): React to hash_rehash return value.
4481
4482         hash: reduce memory pressure in hash_rehash no-op case
4483         * lib/hash.c (next_prime): Avoid overflow.
4484         (hash_initialize): Factor bucket size computation...
4485         (compute_bucket_size): ...into new helper function.
4486         (hash_rehash): Use new function and open coding to reduce memory
4487         pressure, and avoid a memory leak in USE_OBSTACK code.
4488         Reported by Jim Meyering.
4489
4490 2009-06-18  Eric Blake  <ebb9@byu.net>
4491
4492         hash: make rotation more obvious
4493         * modules/hash (Depends-on): Add bitrotate and stdint.
4494         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
4495         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
4496         (SIZE_MAX): Rely on headers for definition.
4497         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
4498         (raw_hasher): Use rotr_sz.
4499         Suggested by Jim Meyering.
4500
4501         hash: fix memory leak in last patch
4502         * lib/hash.c (hash_rehash): Avoid memory leak.
4503
4504         hash: avoid no-op rehashing
4505         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
4506
4507         hash: provide default callback functions
4508         * lib/hash.c (raw_hasher, raw_comparator): New functions.
4509         (hash_initialize): Use them as defaults.
4510         * tests/test-hash.c (main): Test this.
4511
4512         hash: minor optimization
4513         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
4514         when possible.
4515         (hash_initialize): Document this promise.
4516         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
4517         * tests/test-hash.c (hash_compare_strings): Test this.
4518
4519 2009-06-18  Bruno Haible  <bruno@clisp.org>
4520
4521         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
4522         going to be replaced anyway.
4523
4524 2009-06-18  Bruno Haible  <bruno@clisp.org>
4525
4526         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
4527         in one place.
4528         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
4529         be replaced anyway.
4530
4531 2009-06-18  Eric Blake  <ebb9@byu.net>
4532
4533         hash: check for resize before insertion
4534         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
4535         threshold before insertion, so that a pathological hash_rehash
4536         that fills every bucket can still trigger another rehash.
4537
4538 2009-06-18  Jim Meyering  <meyering@redhat.com>
4539
4540         hash-tests: add a loop around the small tests
4541         * tests/test-hash.c (main): Repeat small tests with selected
4542         small initial table sizes.
4543
4544 2009-06-17  Eric Blake  <ebb9@byu.net>
4545
4546         hash: minor cleanups
4547         * lib/hash.h (hash_entry): Make opaque, by moving...
4548         * lib/hash.c (hash_entry): ...here.
4549         (hash_insert): Clarify restrictions on what can be inserted.
4550         (hash_get_next): Clarify when it is safe to remove an element
4551         during traversal.
4552         (check_tuning): Skip verification when tuning is known safe.
4553         (hash_initialize): Clarify restrictions on tuning.
4554
4555 2009-06-17  Jim Meyering  <jim@meyering.net>
4556         and Eric Blake  <ebb9@byu.net>
4557
4558         hash-tests: new module
4559         * modules/hash-tests: New file.
4560         * tests/test-hash.c: New file.
4561
4562 2009-06-17  Eric Blake  <ebb9@byu.net>
4563
4564         strstr-simple: document new module
4565         * MODULES.html.sh: Document new module.
4566
4567         strstr, strcasestr: replace on platforms with broken memchr
4568         * modules/strstr: Split into...
4569         * modules/strstr-simple: ...new module that does not care about
4570         performance, but does care about glibc bug.
4571         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
4572         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
4573         if platform memchr is broken, per Debian bug 521737.
4574         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
4575         memchr.
4576         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
4577         * doc/posix-functions/strstr.texi (strstr): Document the fix.
4578         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
4579         * modules/mountlist (Depends-on): Add strstr-simple.
4580         * modules/gen-uni-tables (Depends-on): Likewise.
4581         * modules/argz (Depends-on): Add strstr.
4582
4583 2009-06-17  Bruno Haible  <bruno@clisp.org>
4584
4585         * modules/posix_spawn-internal (Depends-on): Add errno.
4586
4587 2009-06-17  Bruno Haible  <bruno@clisp.org>
4588
4589         Define missing ESTALE on Interix 3.5.
4590         * lib/errno.in.h (ESTALE): Assign a value if missing.
4591         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
4592         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
4593         missing.
4594         * doc/posix-headers/errno.texi: Mention the Interix bug.
4595         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
4596
4597 2009-06-15  Eric Blake  <ebb9@byu.net>
4598
4599         memchr, memchr2: add valgrind exception
4600         * lib/memchr.valgrind: New file.
4601         * lib/memchr2.valgrind: New file.
4602         * modules/memchr (Files): Distribute valgrind file.
4603         * modules/memchr2 (Files): Likewise.
4604
4605         docs: memchr is no longer obsolete
4606         * MODULES.html.sh: Move memchr from obsolete to string.h section.
4607         * lib/string.in.h (memchr): Simplify logic.
4608
4609 2009-06-14  Jim Meyering  <meyering@redhat.com>
4610
4611         link-follow: fix the "checking..." message to not mention trailing slash
4612         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
4613         never considered trailing slashes.
4614
4615 2009-06-14  Bruno Haible  <bruno@clisp.org>
4616
4617         * m4/memchr.m4: Mention also the bug on IA-64.
4618         * doc/posix-functions/memchr.texi: Likewise.
4619
4620 2009-06-12  Eric Blake  <ebb9@byu.net>
4621
4622         memchr: detect broken x86_64 and alpha implementations
4623         * modules/memchr-tests (Depends-on): Move mmap detection...
4624         * modules/memchr (Depends-on): ...here.
4625         (configure.ac): Set indicator.
4626         * lib/string.in.h (memchr): Declare replacement.
4627         * modules/string (Makefile.am): Trigger replacement.
4628         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
4629         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
4630         bugs.
4631         * doc/posix-functions/memchr.texi (memchr): Document the bug.
4632         * modules/getpagesize (License): Relax license.
4633
4634 2009-06-11  Bruno Haible  <bruno@clisp.org>
4635
4636         * lib/idpriv.h: Add more references.
4637
4638 2009-06-08  Bruno Haible  <bruno@clisp.org>
4639
4640         Tests for module 'idpriv-droptemp'.
4641         * modules/idpriv-droptemp-tests: New file.
4642         * tests/test-idpriv-droptemp.sh: New file.
4643         * tests/test-idpriv-droptemp.su.sh: New file.
4644         * tests/test-idpriv-droptemp.c: New file.
4645
4646         New module 'idpriv-droptemp'.
4647         * lib/idpriv-droptemp.c: New file.
4648         * modules/idpriv-droptemp: New file.
4649
4650 2009-06-08  Bruno Haible  <bruno@clisp.org>
4651
4652         Tests for module 'idpriv-drop'.
4653         * modules/idpriv-drop-tests: New file.
4654         * tests/test-idpriv-drop.sh: New file.
4655         * tests/test-idpriv-drop.su.sh: New file.
4656         * tests/test-idpriv-drop.c: New file.
4657
4658         New module 'idpriv-drop'.
4659         * lib/idpriv.h: New file.
4660         * lib-idpriv-drop.c: New file.
4661         * m4/idpriv.m4: New file.
4662         * modules/idpriv-drop: New file.
4663
4664 2009-06-08  Bruno Haible  <bruno@clisp.org>
4665
4666         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
4667         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
4668         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
4669         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
4670         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
4671         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
4672         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
4673
4674 2009-06-08  Eric Blake  <ebb9@byu.net>
4675
4676         test-strstr: use memory fence, when possible
4677         * tests/test-strstr.c (main): Use memory fence, in order to be
4678         more likely to trigger Debian bug 521737.
4679         * modules/strstr-tests (Files): Pull in additional files.
4680
4681         memchr: no longer obsolete, for wider field testing
4682         * modules/memchr (Status, Notice): Delete, this module is no
4683         longer obsolete.
4684         * modules/vasnprintf (Depends-on): Add memchr.
4685
4686 2009-06-07  Jim Meyering  <meyering@redhat.com>
4687
4688         hash: declare some functions with the warn_unused_result attribute
4689         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
4690
4691 2009-06-07  Bruno Haible  <bruno@clisp.org>
4692
4693         * tests/test-alignof.c: Don't test int64_t if it does not exist.
4694         Reported by Eric Blake.
4695
4696 2009-06-06  Eric Blake  <ebb9@byu.net>
4697
4698         test-alignof: fix typo with long double
4699         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
4700         compiler error.
4701
4702 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
4703
4704         Escape non-texinfo { and }s.
4705         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
4706         markup error.
4707
4708 2009-06-04  Jim Meyering  <meyering@redhat.com>
4709
4710         gitlog-to-changelog: don't infloop on an empty commit log
4711         * build-aux/gitlog-to-changelog: Warn about an empty log message.
4712         Reported by Boris Petersen <transacid@centerim.org>.
4713
4714 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
4715
4716         version-etc: extend for packagers
4717         Add three new configure options, intended for packagers:
4718           --with-packager="packager name"
4719           --with-packager-version="packager-specific version"
4720           --with-packager-bug-reports="packager bug reporting"
4721         An example with coreutils:
4722           $ ./configure \
4723             --with-packager=Gentoo \
4724             --with-packager-bug-report=http://bugs.gentoo.org/ \
4725             --with-packager-version="patchset 1.6"
4726           $ ./src/ls --version | head -n3
4727           ls (GNU coreutils) 7.1-dirty
4728           Packaged by Gentoo (patchset 1.6)
4729           Copyright (C) 2009 Free Software Foundation, Inc.
4730         Note that the bug reporting info via --help doesn't show up because
4731         coreutils uses its own custom emit_bug_reporting_address() implementation
4732         in src/system.h.  If it didn't, it'd look like:
4733           $ ./src/ls --help | tail -n4
4734           Report bugs to <bug-coreutils@gnu.org>.
4735           Report Gentoo bugs to <http://bugs.gentoo.org/>.
4736           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
4737           General help using GNU software: <http://www.gnu.org/gethelp/>.
4738         * lib/version-etc.c: Print new information, if provided.
4739         * m4/version-etc.m4: New file.
4740         * modules/version-etc (Files): Add m4/version-etc.m4.
4741         (configure.ac): Add gl_VERSION_ETC.
4742
4743 2009-05-31  Bruno Haible  <bruno@clisp.org>
4744
4745         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
4746         and 'int64_t'.
4747         * modules/alignof-tests (Dependencies): Add stdint.
4748         Reported by Eric Blake.
4749
4750 2009-05-31  Bruno Haible  <bruno@clisp.org>
4751
4752         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
4753         restriction due to compiler bugs.
4754         Reported by Eric Blake.
4755
4756 2009-05-31  Simon Josefsson  <simon@josefsson.org>
4757             Bruno Haible  <bruno@clisp.org>
4758
4759         Fix test-alignof failure.
4760         * lib/alignof.h (alignof_slot): New macro.
4761         (alignof_type): New macro, with the same semantics as the previous
4762         'alignof'.
4763         (alignof): Alias to alignof_slot.
4764         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
4765         check that the results are usable as constant expressions.
4766
4767 2009-05-31  Bruno Haible  <bruno@clisp.org>
4768
4769         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
4770         * tests/test-memchr.c (main): Check that memchr does not read past the
4771         first occurrence of the byte.
4772         * tests/test-strstr.c (main): Update comment.
4773         Suggested by Eric Blake.
4774
4775 2009-05-30  Bruno Haible  <bruno@clisp.org>
4776
4777         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
4778         detail how to use dumpbin.
4779         Reported by David Byron <dbyron@dbyron.com>.
4780
4781 2009-06-02  Simon Josefsson  <simon@josefsson.org>
4782
4783         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
4784
4785 2009-06-02  Simon Josefsson  <simon@josefsson.org>
4786
4787         * m4/manywarnings.m4: Add GCC 4.4 warnings.
4788
4789 2009-05-28  Bruno Haible  <bruno@clisp.org>
4790
4791         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
4792         build-aux/ files.
4793
4794 2009-05-28  Simon Josefsson  <simon@josefsson.org>
4795
4796         * gnulib-tool (func_import): Transform license on build-aux/ files too.
4797
4798 2009-05-27  Simon Josefsson  <simon@josefsson.org>
4799
4800         * gnulib-tool (sed_transform_main_lib_file)
4801         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
4802         regexps.
4803
4804 2009-05-26  Simon Josefsson  <simon@josefsson.org>
4805
4806         * tests/test-strstr.c: Add another self-test.
4807         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
4808         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
4809
4810 2009-05-23  Bruno Haible  <bruno@clisp.org>
4811
4812         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
4813         change.
4814
4815 2009-05-21  Bruno Haible  <bruno@clisp.org>
4816
4817         Simplify use of mode_t varargs.
4818         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
4819         uses 'mode_t' or 'int'.
4820         * lib/openat.c (openat): Likewise.
4821         * lib/open-safer.c (open_safer): Likewise.
4822         * m4/mode_t.m4: New file.
4823         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
4824         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
4825         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
4826         * modules/open (Files): Add m4/mode_t.m4.
4827         * modules/openat (Files): Likewise.
4828         * modules/fcntl-safer (Files): Likewise.
4829         Suggested by Eric Blake.
4830
4831 2009-05-21  Pádraig Brady  <P@draigbrady.com>
4832
4833         * doc/glibc-functions/fallocate.texi: New file.
4834         * doc/gnulib.texi: Include it.
4835
4836 2009-05-21  Eric Blake  <ebb9@byu.net>
4837             Bruno Haible  <bruno@clisp.org>
4838
4839         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
4840         invocations.
4841         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
4842
4843 2009-05-21  Eric Blake  <ebb9@byu.net>
4844             Bruno Haible  <bruno@clisp.org>
4845
4846         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
4847         include_next. Fix of 2008-11-20 commit.
4848         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
4849         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
4850         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
4851         NEXT_MATH_H.
4852         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
4853         instead of NEXT_MATH_H.
4854
4855 2009-05-21  Bruno Haible  <bruno@clisp.org>
4856
4857         Avoid redefinition warnings for SIZE_MAX.
4858         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
4859         Reported by Simon Josefsson.
4860
4861 2009-05-21  Bruno Haible  <bruno@clisp.org>
4862
4863         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
4864         AC_CACHE_VAL.
4865
4866 2009-05-20  Bruno Haible  <bruno@clisp.org>
4867
4868         Make zeroptr.h work on mingw.
4869         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
4870         mprotect.
4871         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
4872         * modules/memchr2-tests (configure.ac): Likewise.
4873         * modules/memcmp-tests (configure.ac): Likewise.
4874         * modules/memmem-tests (configure.ac): Likewise.
4875         * modules/memrchr-tests (configure.ac): Likewise.
4876         Reported by Simon Josefsson.
4877
4878 2009-05-20  Simon Josefsson  <simon@josefsson.org>
4879
4880         * tests/test-glob.c: Include string.h for strcmp prototype.
4881
4882 2009-05-20  Simon Josefsson  <simon@josefsson.org>
4883
4884         * modules/getdelim (Depends-on): Add explicit stdint, although it
4885         was implicitly already pulled in via realloc-posix.
4886         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
4887
4888 2009-05-20  Simon Josefsson  <simon@josefsson.org>
4889
4890         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
4891         G. Christensen" <tgc@jupiterrise.com>.
4892         * m4/sys_socket_h.m4: Check for sa_family_t.
4893         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
4894         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
4895         * tests/test-sys_socket.c: Check that sa_family_t works.
4896
4897 2009-05-18  Eric Blake  <ebb9@byu.net>
4898
4899         maint.mk: allow gnulib_dir in VPATH build
4900         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
4901
4902 2009-05-15  Jim Meyering  <meyering@redhat.com>
4903
4904         maint.mk: Give gnulib_dir a default definition.
4905         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
4906         Thus, most packages no longer need to specify this variable in cfg.mk
4907
4908 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
4909
4910         rename.m4: fix typos that would make non-mingw cross-configure fail
4911         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
4912
4913 2009-05-13  Eric Blake  <ebb9@byu.net>
4914
4915         mmap-anon: avoid out-of-order autoconf expansion
4916         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
4917         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
4918         * modules/memchr-tests (Depends-on): Add extensions.
4919         * modules/memchr2-tests (Depends-on): Add extensions.
4920         * modules/memcmp-tests (Depends-on): Add extensions.
4921         * modules/memmem-tests (Depends-on): Add extensions.
4922         * modules/memrchr-tests (Depends-on): Add extensions.
4923
4924 2009-05-13  Bruno Haible  <bruno@clisp.org>
4925
4926         Make some tests ISO C 99 compliant.
4927         * tests/zerosize-ptr.h: New file.
4928         * tests/test-memchr.c: Include zerosize-ptr.h.
4929         (main): Use a zero-size object pointer instead of NULL.
4930         * tests/test-memchr2.c: Include zerosize-ptr.h.
4931         (main): Use a zero-size object pointer instead of NULL.
4932         * tests/test-memcmp.c: Include zerosize-ptr.h.
4933         (main): Use a zero-size object pointer instead of NULL.
4934         * tests/test-memmem.c: Include zerosize-ptr.h.
4935         (main): Use a zero-size object pointer instead of NULL.
4936         * tests/test-memrchr.c: Include zerosize-ptr.h.
4937         (main): Use a zero-size object pointer instead of NULL.
4938         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
4939         m4/mmap-anon.m4.
4940         (Depends-on): Add getpagesize.
4941         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
4942         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
4943         m4/mmap-anon.m4.
4944         (Depends-on): Add getpagesize.
4945         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
4946         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
4947         m4/mmap-anon.m4.
4948         (Depends-on): Add getpagesize.
4949         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
4950         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
4951         m4/mmap-anon.m4.
4952         (Depends-on): Add getpagesize.
4953         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
4954         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
4955         m4/mmap-anon.m4.
4956         (Depends-on): Add getpagesize.
4957         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
4958
4959 2009-05-12  Bruno Haible  <bruno@clisp.org>
4960
4961         Tests for module 'alignof'.
4962         * modules/alignof-tests: New file.
4963         * tests/test-alignof.c: New file.
4964
4965 2009-05-12  Bruno Haible  <bruno@clisp.org>
4966
4967         Fix alignof macro.
4968         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
4969         vendor compilers that are always correct.
4970
4971 2009-05-12  Bruno Haible  <bruno@clisp.org>
4972
4973         Make the MAP_ANONYMOUS detection work on HP-UX 11.
4974         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
4975         not whether its fully works.
4976
4977 2009-05-12  Bruno Haible  <bruno@clisp.org>
4978
4979         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
4980
4981 2009-05-12  Jim Meyering  <meyering@redhat.com>
4982
4983         * top/maint.mk: Adjust backslash alignment.
4984
4985 2009-05-11  Simon Josefsson  <simon@josefsson.org>
4986
4987         * top/maint.mk: Make $(srcdir)/build-aux configurable.
4988
4989 2009-05-11  Eric Blake  <ebb9@byu.net>
4990
4991         argp: avoid undefined behavior
4992         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
4993         macros.
4994
4995 2009-05-08  Simon Josefsson  <simon@josefsson.org>
4996
4997         * tests/test-vc-list-files-git.sh: Do git config of user.email and
4998         user.name to prevent git commit from complaining.
4999
5000 2009-05-10  Bruno Haible  <bruno@clisp.org>
5001
5002         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
5003         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
5004         it rewrites every file name only once.
5005         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
5006
5007 2009-05-08  Bruno Haible  <bruno@clisp.org>
5008
5009         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
5010         instead of 'max'.
5011
5012 2009-05-08  Simon Josefsson  <simon@josefsson.org>
5013
5014         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
5015         sockaddr_storage test.
5016
5017 2009-05-07  Simon Josefsson  <simon@josefsson.org>
5018
5019         * modules/sys_socket (Makefile.am): Substitute
5020         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
5021         * m4/sys_socket_h.m4: Check for sockaddr_storage.
5022         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
5023         * tests/test-sys_socket.c: Check sockaddr_storage.
5024
5025 2009-05-08  Bruno Haible  <bruno@clisp.org>
5026
5027         New module 'alignof'.
5028         * lib/alignof.h: New file.
5029         * modules/alignof: New file.
5030
5031 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
5032             Bruno Haible  <bruno@clisp.org>
5033
5034         Fix test-file-has-acl on FreeBSD.
5035         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
5036         mask is implicitly added.
5037         * tests/test-file-has-acl.c: Include <signal.h>.
5038         (main): Terminate the test after 5 seconds.
5039         * modules/acl-tests (configure.ac): Check for alarm function.
5040
5041 2009-05-04  Bruno Haible  <bruno@clisp.org>
5042
5043         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
5044         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
5045         * modules/errno (configure.ac): Drop AC_REQUIRE.
5046         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
5047         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
5048
5049 2009-05-04  Simon Josefsson  <simon@josefsson.org>
5050
5051         * modules/glob-tests: New module.
5052         * tests/test-glob.c: Add.
5053
5054 2009-05-04  Simon Josefsson  <simon@josefsson.org>
5055
5056         * modules/fnmatch-tests: New module.
5057         * tests/test-fnmatch.c: Add.
5058
5059 2009-05-04  Eric Blake  <ebb9@byu.net>
5060
5061         maint: make the new no-submodule-changes rule VPATH-safe
5062         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
5063
5064 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
5065             Bruno Haible  <bruno@clisp.org>
5066
5067         acl: Fix infinite loop on FreeBSD.
5068         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
5069         of return value from acl_get_entry.
5070         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
5071         Likewise.
5072
5073 2009-05-03  Bruno Haible  <bruno@clisp.org>
5074
5075         * lib/acl-internal.h (acl_entries): Clarify return value.
5076         * lib/acl_entries.c (acl_entries): Likewise.
5077
5078 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
5079
5080         Bug fix in acl module.
5081         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
5082
5083 2009-05-03  Bruno Haible  <bruno@clisp.org>
5084
5085         Create gperf-generated file in the source dir, not in the build dir.
5086         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
5087         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
5088         * modules/unicase/locale-language (unicase/locale-languages.h):
5089         Likewise.
5090         * modules/unicase/special-casing (unicase/special-casing-table.h):
5091         Likewise.
5092         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
5093         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
5094         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
5095         Reported by Ralf Wildenhues.
5096
5097 2009-05-03  Bruno Haible  <bruno@clisp.org>
5098
5099         * modules/fnmatch (Description, configure.ac): Taken from
5100         fnmatch-posix.
5101         * modules/fnmatch-posix: Turn into a symbolic reference to the
5102         'fnmatch' module, and deprecate.
5103         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
5104
5105 2009-05-03  Bruno Haible  <bruno@clisp.org>
5106
5107         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
5108         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
5109         Reported by Ralf Wildenhues.
5110
5111 2009-05-04  Simon Josefsson  <simon@josefsson.org>
5112
5113         * m4/fnmatch.m4: Fix fnmatch re-define.
5114
5115 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
5116
5117         priv-set: new module and tests; adapt write-any-file
5118         * lib/priv-set.c: New file.
5119         * lib/priv-set.h: New file.
5120         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
5121         * lib/write-any-file.c: Simplify by using priv-set module.
5122         * m4/priv-set.m4: New file.
5123         * modules/priv-set: New file.
5124         * modules/unlinkdir: Add dependency on priv-set module.
5125         * modules/write-any-file: Likewise.
5126
5127         Tests for module 'priv-set'.
5128         * modules/priv-set-tests: New file.
5129         * tests/test-priv-set.c: New file.
5130
5131 2009-05-03  Jim Meyering  <meyering@redhat.com>
5132             Bruno Haible  <bruno@clisp.org>
5133
5134         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
5135         use the converted UTF-8 variant of the name instead.
5136
5137 2009-05-03  Jim Meyering  <meyering@redhat.com>
5138
5139         tests: tighten some getdate tests
5140         * tests/test-getdate.c (main): Tighten tests: require equality,
5141         not just greater than.  Set TZ envvar to UTC0.
5142
5143 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
5144
5145         getdate: correctly interpret "next monday" when run on a Monday
5146         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
5147         that e.g., "next tues" (when run on a tuesday) results in a date
5148         that is one week in the future, and not today's date.
5149         I.e., add a week when the wday is the same as the current one.
5150         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
5151         and earlier by Martin Bernreuther and Jan Minář.
5152         * tests/test-getdate.c (main): Check that "next DAY" is always in
5153         the future and that "last DAY" is always in the past.
5154
5155 2009-05-02  Jim Meyering  <meyering@redhat.com>
5156
5157         build: ensure that a release build fails when a submodule is unclean
5158         * top/maint.mk (no-submodule-changes): New rule.
5159         (alpha beta major): Depend on it.
5160
5161 2009-05-02  Bruno Haible  <bruno@clisp.org>
5162
5163         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
5164         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
5165         shell variable gl_fnmatch_required to detect which variant is
5166         requested.
5167         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
5168         gl_FUNC_FNMATCH_POSIX.
5169         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
5170         exclude fnmatch-posix.
5171
5172 2009-05-02  Bruno Haible  <bruno@clisp.org>
5173
5174         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
5175         * modules/mbsrtowcs (License): Change to LGPLv2+.
5176         * modules/strnlen1 (License): Likewise.
5177         Reported by Simon Josefsson.
5178
5179 2009-05-02  Bruno Haible  <bruno@clisp.org>
5180
5181         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
5182         "cross".
5183         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
5184         gnulib-tool was called with option --source-base=lib.
5185
5186 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5187
5188         Use automake *-local hooks without commands, for extensibility.
5189         * modules/localcharset (Makefile.am): Rename install-exec-local
5190         rule to install-exec-localcharset, and make it a prerequisite of
5191         install-exec-local.  Likewise, rename the uninstall-local rule to
5192         uninstall-localcharset, and make it a prerequisite of the former.
5193
5194 2009-05-01  Bruno Haible  <bruno@clisp.org>
5195
5196         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
5197         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
5198         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
5199         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
5200         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
5201         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
5202         m4/locale-zh.m4, m4/codeset.m4.
5203
5204         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
5205         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
5206         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
5207         m4/locale-zh.m4.
5208
5209         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
5210         REPLACE_WCRTOMB if mbstate_t must be replaced.
5211         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
5212         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
5213
5214 2009-05-01  Bruno Haible  <bruno@clisp.org>
5215
5216         Avoid compiler warnings when redefining macros defined by <libintl.h>.
5217         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
5218         dngettext, dcngettext, textdomain, bindtextdomain,
5219         bind_textdomain_codeset): Undefine before redefining.
5220
5221 2009-04-30  Bruno Haible  <bruno@clisp.org>
5222
5223         Fix bug introduced on 2009-04-25.
5224         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
5225         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
5226         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
5227         is defined.
5228         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
5229         is defined.
5230         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
5231         is defined.
5232         Reported by Elbert_Pol <elbert.pol@gmail.com>.
5233
5234 2009-04-28  Bruno Haible  <bruno@clisp.org>
5235
5236         Comment tweaks.
5237         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
5238         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
5239         * lib/unicase.h (u*_casexfrm): Likewise.
5240         Reported by Paolo Bonzini.
5241
5242 2009-04-28  Bruno Haible  <bruno@clisp.org>
5243
5244         Fix a compilation error.
5245         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
5246         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
5247         Reported by Jim Meyering.
5248
5249 2009-04-27  Bruno Haible  <bruno@clisp.org>
5250
5251         New module 'libunistring'.
5252         * modules/libunistring: New file.
5253         * m4/libunistring.m4: New file.
5254         * MODULES.html.sh (Unicode string functions): Add it.
5255
5256 2009-04-27  Eric Blake  <ebb9@byu.net>
5257
5258         maint.mk: allow package-specific header to provide <config.h>
5259         * top/maint.mk (sc_require_config_h): New variable.
5260         (sc_require_config_h, sc_require_config_h_first): Use it.
5261
5262 2009-04-27  Simon Josefsson  <simon@josefsson.org>
5263
5264         * top/maint.mk (sc_avoid_if_before_free): Except
5265         useless-if-before-free script.
5266
5267 2009-04-27  Eric Blake  <ebb9@byu.net>
5268
5269         maintainer-makefile: depend on all required helper scripts
5270         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
5271         useless-if-before-free.
5272         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
5273         version, rather than assuming gnulib checkout is available.
5274         Reported by Simen Josefsson.
5275
5276 2009-04-26  Bruno Haible  <bruno@clisp.org>
5277
5278         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
5279         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
5280         "../" or "..".
5281
5282 2009-04-26  Bruno Haible  <bruno@clisp.org>
5283
5284         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
5285         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
5286         AC_LIB_HAVE_LINKFLAGS.
5287
5288 2009-04-26  Bruno Haible  <bruno@clisp.org>
5289
5290         Simplify calling convention of u*_conv_from_encoding.
5291         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
5292         u32_conv_from_encoding): Expect a resultbuf argument and return the
5293         result directly as a pointer.
5294         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
5295         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
5296         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
5297         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
5298         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
5299         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
5300         Update.
5301         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
5302         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
5303         * lib/vasnprintf.c (VASNPRINTF): Update.
5304         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
5305         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
5306         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
5307         * NEWS: Mention the change.
5308
5309 2009-04-26  Bruno Haible  <bruno@clisp.org>
5310
5311         Simplify calling convention of u*_conv_to_encoding.
5312         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
5313         u32_conv_to_encoding): Expect a resultbuf argument and return the
5314         result directly as a pointer.
5315         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
5316         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
5317         freeing scaled_offsets if mem_iconveha failed.
5318         * lib/unicase/u-casexfrm.h (FUNC): Update.
5319         * lib/uninorm/u-normxfrm.h (FUNC): Update.
5320         * lib/vasnprintf.c (VASNPRINTF): Update.
5321         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
5322         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
5323         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
5324         * NEWS: Mention the change.
5325
5326 2009-04-26  Bruno Haible  <bruno@clisp.org>
5327
5328         Avoid test failures on AIX and OSF/1.
5329         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
5330         malloc(0).
5331         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
5332         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
5333         Likewise.
5334         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
5335         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
5336         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
5337         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
5338         * doc/posix-functions/malloc.texi: Document the portability problem
5339         related to malloc(0).
5340
5341 2009-04-26  Bruno Haible  <bruno@clisp.org>
5342
5343         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
5344         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
5345         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
5346
5347 2009-04-25  Bruno Haible  <bruno@clisp.org>
5348
5349         Avoid link error when creating a namespace clean library.
5350         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
5351         as macro with arguments if already defined as an alias.
5352         * lib/signbitf.c (gl_signbitf): Don't undefine.
5353         * lib/signbitd.c (gl_signbitd): Don't undefine.
5354         * lib/signbitl.c (gl_signbitl): Don't undefine.
5355
5356 2009-04-25  Jim Meyering  <meyering@redhat.com>
5357
5358         vc-list-files: fix another quoting bug
5359         * build-aux/vc-list-files: Avoid sed backslash expansion
5360         of pathological directory names.
5361
5362 2009-04-25  Eric Blake  <ebb9@byu.net>
5363
5364         vc-list-files: fix shell quoting error
5365         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
5366         timestamp.
5367
5368 2009-04-25  Jim Meyering  <meyering@redhat.com>
5369
5370         vc-list-files: restore lost functionality with subdir argument
5371         * build-aux/vc-list-files: When given a non-"." sub-directory
5372         argument, substitute the $dir/ prefix back onto each resulting name.
5373         Otherwise, coreutils' root_tests check would fail.
5374
5375 2009-04-24  Eric Blake  <ebb9@byu.net>
5376
5377         vc-list-files: ignore git symlinks
5378         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
5379         than ls-files, to ignore git symlinks.
5380
5381         maint.mk: import improvements from m4
5382         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
5383         (move_if_change): Delete unused macro.
5384         (news-date-check, vc-diff-check): Support VPATH builds.
5385         (announcement): Likewise.  Split --bootstrap-tools list...
5386         (boostrap-tools): ...into separate list, which can be overridden
5387         in cfg.mk.
5388         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
5389         requiring dependency on useless-if-before-free module.
5390         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
5391         Support VPATH builds.
5392
5393 2009-04-24  Jim Meyering  <meyering@redhat.com>
5394
5395         maint.mk: remove coreutils-specific rules and variables
5396         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
5397         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
5398         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
5399
5400         maint.mk: remove obsolete rule
5401         * top/maint.mk (rel-check): Remove rule.
5402         (WGET, WGETFLAGS): Remove now-unused variables.
5403
5404 2009-04-24  Simon Josefsson  <simon@josefsson.org>
5405
5406         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
5407         consistency.
5408
5409         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
5410         '$(PATH_SEPARATOR)' instead of ':'.
5411
5412 2009-04-24  Simon Josefsson  <simon@josefsson.org>
5413
5414         * lib/getopt1.c (main): Use 'const' for static array.
5415
5416 2009-04-24  Simon Josefsson  <simon@josefsson.org>
5417
5418         * top/maint.mk: Sync with coreutils.
5419         * NEWS: Explain incompatibilities.
5420
5421 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
5422             Bruno Haible  <bruno@clisp.org>
5423
5424         Fix cross-compilation results.
5425         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
5426         statement, as third argument of AC_TRY_RUN.
5427         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
5428         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
5429         Likewise.
5430         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
5431         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
5432         Likewise.
5433         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
5434         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
5435         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
5436
5437 2009-04-20  Bruno Haible  <bruno@clisp.org>
5438
5439         Avoid test failure on mingw.
5440         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
5441
5442 2009-04-20  Bruno Haible  <bruno@clisp.org>
5443
5444         Avoid compilation error on mingw.
5445         * modules/localename-tests (Depends-on): Add locale.
5446
5447 2009-04-19  Bruno Haible  <bruno@clisp.org>
5448
5449         Support for building a shared library on Windows platforms.
5450         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
5451         (main): Test the presence of UNINORM_NFC here.
5452         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
5453         (main): Test the presence of UNINORM_NFD here.
5454         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
5455         (main): Test the presence of UNINORM_NFKC here.
5456         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
5457         (main): Test the presence of UNINORM_NFKD here.
5458
5459 2009-04-19  Bruno Haible  <bruno@clisp.org>
5460
5461         Avoid a compiler warning.
5462         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
5463         Change type of variable 'sequence'.
5464
5465 2009-04-19  Bruno Haible  <bruno@clisp.org>
5466
5467         * modules/configmake (Makefile.am): When the contents of configmake.h
5468         does not change, arrange to preserve its modification time.
5469
5470 2009-04-17  Simon Josefsson  <simon@josefsson.org>
5471
5472         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
5473         gettext domain.
5474
5475 2009-04-16  Jim Meyering  <meyering@redhat.com>
5476
5477         useless-if-before-free: improve conversion code
5478         * build-aux/useless-if-before-free: Adjust code-in-comment to match
5479         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
5480
5481 2009-04-14  Bruno Haible  <bruno@clisp.org>
5482
5483         * modules/fcntl (Depends-on): Add extensions.
5484         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
5485
5486 2009-04-12  Ben Pfaff  <blp@gnu.org>
5487
5488         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
5489         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
5490
5491 2009-03-20  Ben Pfaff  <blp@gnu.org>
5492
5493         Make rename replace existing destinations on Windows.
5494         * m4/rename.m4: Add test for Mingw.
5495         * lib/rename.c: Add rename replacement that uses MoveFileEx with
5496         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
5497         * doc/posix-functions/rename.texi: Document.
5498
5499 2009-04-10  Bruno Haible  <bruno@clisp.org>
5500
5501         New include file "iconveh.h".
5502         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
5503         * lib/striconveh.h: Include it.
5504         (enum iconv_ilseq_handler): Remove definition.
5505         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
5506         striconveh.h.
5507         * lib/striconveha.c: Include striconveh.h.
5508         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
5509         * modules/striconveh (Files): Add lib/iconveh.h.
5510         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
5511         lib/striconveh.h.
5512
5513 2009-04-10  Bruno Haible  <bruno@clisp.org>
5514
5515         * lib/uniconv.h: Update comment.
5516
5517 2009-04-10  Bruno Haible  <bruno@clisp.org>
5518
5519         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
5520         always.
5521         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
5522         * lib/unistr/u16-mbtouc-aux.c: Likewise.
5523         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
5524         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
5525         "unistring-notinline.h", so that the function gets defined always.
5526         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
5527         * lib/unistr/u8-uctomb.c: Likewise.
5528         * lib/unistr/u16-mbtouc.c: Likewise.
5529         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
5530         * lib/unistr/u16-uctomb.c: Likewise.
5531         * lib/unistr/u32-mbtouc.c: Likewise.
5532         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
5533         * lib/unistr/u32-uctomb.c: Likewise.
5534
5535 2009-04-10  Bruno Haible  <bruno@clisp.org>
5536
5537         Mark 'utime' obsolete.
5538         * modules/utime (Status, Notice): New sections.
5539         Suggested by Jim Meyering.
5540
5541         Fix cross-compile guess for utime test.
5542         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
5543         autoconf.
5544         * doc/posix-functions/utime.texi: Give more precisions.
5545         Reported by Jan <ipif@ymail.com>.
5546
5547 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
5548
5549         filevercmp: correct today's change
5550         * lib/filevercmp.c: Also handle coreutils' test inputs.
5551         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
5552
5553         Fix regression in 'filevercmp' module. Thanks Sven Joachim
5554         for reporting it.
5555         * lib/filevercmp.c: Special handle for "", "." and "..".
5556         * tests/test-filevercmp.c: Enlarge the set suite.
5557
5558 2009-04-07  Jim Meyering  <meyering@redhat.com>
5559
5560         useless-if-before-free: show how to remove braced useless free, too
5561         * build-aux/useless-if-before-free: still only in a comment, though.
5562
5563 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
5564
5565         maint.mk: import changes to syntax-check macros from coreutils
5566         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
5567         Use them in the relevant macros.
5568
5569 2009-04-06  Bruno Haible  <bruno@clisp.org>
5570
5571         Fix unportable use of bit-fields.
5572         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
5573         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
5574         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
5575
5576 2009-04-06  Bruno Haible  <bruno@clisp.org>
5577
5578         Avoid test failures on AIX and OSF/1.
5579         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
5580         that malloc(0) = NULL.
5581         * tests/unicase/test-u8-tolower.c (check): Likewise.
5582         * tests/unicase/test-u8-totitle.c (check): Likewise.
5583         * tests/unicase/test-u8-toupper.c (check): Likewise.
5584         * tests/unicase/test-u16-casefold.c (check): Likewise.
5585         * tests/unicase/test-u16-tolower.c (check): Likewise.
5586         * tests/unicase/test-u16-totitle.c (check): Likewise.
5587         * tests/unicase/test-u16-toupper.c (check): Likewise.
5588         * tests/unicase/test-u32-casefold.c (check): Likewise.
5589         * tests/unicase/test-u32-tolower.c (check): Likewise.
5590         * tests/unicase/test-u32-totitle.c (check): Likewise.
5591         * tests/unicase/test-u32-toupper.c (check): Likewise.
5592         * tests/uninorm/test-u8-nfc.c (check): Likewise.
5593         * tests/uninorm/test-u8-nfd.c (check): Likewise.
5594         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
5595         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
5596         * tests/uninorm/test-u16-nfc.c (check): Likewise.
5597         * tests/uninorm/test-u16-nfd.c (check): Likewise.
5598         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
5599         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
5600         * tests/uninorm/test-u32-nfc.c (check): Likewise.
5601         * tests/uninorm/test-u32-nfd.c (check): Likewise.
5602         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
5603         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
5604
5605 2009-04-05  Bruno Haible  <bruno@clisp.org>
5606
5607         Work around an autoconf limitation.
5608         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
5609         comment line if it would be longer than 3 KB.
5610
5611 2009-04-05  Bruno Haible  <bruno@clisp.org>
5612
5613         Avoid test failure with libiconv-1.13.
5614         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
5615         of the expected test results.
5616
5617 2009-04-05  Bruno Haible  <bruno@clisp.org>
5618
5619         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
5620         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
5621         that it should be installed.
5622
5623 2009-04-05  Bruno Haible  <bruno@clisp.org>
5624
5625         * gnulib-tool: New option --copy-file.
5626         (func_usage): Document it.
5627         (func_dest_tmpfilename): Moved out of func_import.
5628         (func_add_file, func_update_file): New functions, extracted from
5629         func_import.
5630         (func_import): Update.
5631
5632 2009-04-05  Karl Berry  <karl@gnu.org>
5633
5634         * README: prominently mention gnulib-tool.
5635         Rearrange sections so getting the code is near the top.
5636
5637 2009-04-05  Bruno Haible  <bruno@clisp.org>
5638
5639         * lib/unicase.h: Mention u*_cmp2.
5640         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
5641         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
5642         * lib/unicase/ulc-casecmp.c: Likewise.
5643         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
5644         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
5645         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
5646         unistr/u8-cmp.
5647         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
5648         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
5649         unistr/u16-cmp.
5650         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
5651         unistr/u32-cmp.
5652
5653         * lib/uninorm.h: Mention u*_cmp2.
5654         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
5655         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
5656         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
5657         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
5658         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
5659         unistr/u8-cmp.
5660         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
5661         unistr/u16-cmp.
5662         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
5663         unistr/u32-cmp.
5664
5665         New module 'unistr/u32-cmp2'.
5666         * lib/unistr/u32-cmp2.c: New file.
5667         * modules/unistr/u32-cmp2: New file.
5668
5669         New module 'unistr/u16-cmp2'.
5670         * lib/unistr/u16-cmp2.c: New file.
5671         * modules/unistr/u16-cmp2: New file.
5672
5673         New module 'unistr/u8-cmp2'.
5674         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
5675         * lib/unistr/u8-cmp2.c: New file.
5676         * lib/unistr/u-cmp2.h: New file.
5677         * modules/unistr/u8-cmp2: New file.
5678
5679 2009-04-05  Bruno Haible  <bruno@clisp.org>
5680
5681         * lib/unictype.h (uc_property_is_valid): New macro.
5682         * tests/unictype/test-pr_byname.c (main): Use it.
5683
5684         * lib/unistr.h: Doc fixes.
5685         * lib/uniconv.h: Doc fixes.
5686         * lib/unictype.h: Doc fixes.
5687
5688 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
5689
5690         Port coreutils 7.2 to Solaris 8.
5691
5692         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
5693         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
5694         for Solaris 8.  This is a bit of a hack, as it means it's the
5695         caller's responsibility to add -lnsl if needed, but most likely it
5696         won't be needed since only getaddrinfo uses this and getaddrinfo
5697         isn't needed on Solaris 8.
5698
5699         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
5700         problem to Solaris 8 encountered with coreutils 7.2, which
5701         resulted in a message "fnmatch.c:292: warning: passing argument 4
5702         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
5703         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
5704
5705 2009-04-03  Simon Josefsson  <simon@josefsson.org>
5706
5707         * m4/ld-version-script.m4: Add FIXME comment.
5708
5709 2009-04-02  Simon Josefsson  <simon@josefsson.org>
5710
5711         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
5712         SOVERSION variable.
5713
5714 2009-04-02  Bruno Haible  <bruno@clisp.org>
5715
5716         * Makefile (info, html, dvi, pdf): Combine the rules.
5717         Suggested by Jim Meyering.
5718
5719 2009-04-01  Bruno Haible  <bruno@clisp.org>
5720
5721         * Makefile (info, html, dvi, pdf): New targets.
5722         Reported by Reuben Thomas <rrt@sc3d.org>.
5723
5724 2009-04-01  Bruno Haible  <bruno@clisp.org>
5725
5726         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
5727         can be put into PATH.
5728         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
5729
5730 2009-04-01  Bruno Haible  <bruno@clisp.org>
5731
5732         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
5733
5734 2009-04-01  Bruno Haible  <bruno@clisp.org>
5735
5736         Rename module 'visibility'.
5737         * modules/lib-symbol-visibility: Renamed from modules/visibility.
5738         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
5739         * doc/gnulib.texi: Update.
5740         * MODULES.html.sh (Misc): Update.
5741         * NEWS: Mention the change.
5742
5743 2009-04-01  Simon Josefsson  <simon@josefsson.org>
5744
5745         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
5746         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
5747         Eric Blake <ebb9@byu.net> for review.
5748         * MODULES.html.sh: Add lib-msvc-compat.
5749         * doc/gnulib.texi: Link to new section.
5750         * m4/ld-output-def.m4: New file.
5751         * doc/ld-output-def.texi: New file.
5752
5753 2009-04-01  Simon Josefsson  <simon@josefsson.org>
5754
5755         Rename ld-version-script to lib-symbol-versions.  Suggested by
5756         Bruno Haible <bruno@clisp.org>.
5757         * modules/ld-version-script: Renamed to lib-symbol-versions.
5758         * doc/ld-version-script.texi: Fix module name.
5759         * MODULES.html.sh: Add lib-symbol-versions.
5760
5761 2009-03-31  Simon Josefsson  <simon@josefsson.org>
5762
5763         * modules/u64-tests: New file.
5764         * tests/test-u64.c: New file.
5765
5766 2009-03-04  Simon Josefsson  <simon@josefsson.org>
5767
5768         * MODULES.html.sh: Mention u64.
5769         * modules/u64: New module.
5770         * modules/crypto/sha512: Depend on u64 module instead of providing
5771         u64.h.
5772
5773 2009-03-27  Eric Blake  <ebb9@byu.net>
5774
5775         test-strerror: make debugging EAI_SYSTEM easier
5776         * modules/getaddrinfo-tests (Depends-on): Add strerror.
5777         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
5778         failure was EAI_SYSTEM.
5779
5780 2009-03-25  Bruno Haible  <bruno@clisp.org>
5781
5782         Fix a problem with --enable-relocatable on Solaris 7.
5783         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
5784         since 2008-02-24.
5785
5786 2009-03-25  Eric Blake  <ebb9@byu.net>
5787
5788         test-sockets: avoid gcc warning
5789         * tests/test-sockets.c (main): Silence compiler warning.
5790
5791 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
5792
5793         New modules nproc, pthread, contributed by Glen Lenker.
5794
5795         * MODULES.html.sh: Add pthread, nproc.
5796         * lib/nproc.c: New file.
5797         * lib/nproc.h: New file.
5798         * lib/pthread.in.h: New file.
5799         * m4/pthread.m4: New file.
5800         * modules/nproc: New file.
5801         * modules/pthread: New file.
5802
5803 2009-03-24  Simon Josefsson  <simon@josefsson.org>
5804
5805         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
5806         New variable.
5807
5808 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
5809
5810         filevercmp: handle simple~ and numbered.~3~ backup suffixes
5811         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
5812         * tests/test-filevercmp.c: Add tests for backup suffixes.
5813
5814 2009-03-24  Simon Josefsson  <simon@josefsson.org>
5815
5816         * modules/stdlib (Depends-on): Add stdint, needed when defining
5817         struct random_data on, for example, HP-UX 10.20.  Reported by
5818         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
5819
5820 2009-03-24  Simon Josefsson  <simon@josefsson.org>
5821
5822         * lib/readline.c (readline): Call fflush on stdout after printing
5823         prompt.
5824
5825 2009-03-20  Bruno Haible  <bruno@clisp.org>
5826
5827         Remove dependency from 'close' module to -lws2_32 on native Windows.
5828         * lib/close-hook.h: New file.
5829         * lib/close-hook.c: New file.
5830         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
5831         w32sock.h.
5832         (_gl_close_fd_maybe_socket): Remove function.
5833         (rpl_close): Invoke execute_all_close_hooks instead of
5834         _gl_close_fd_maybe_socket.
5835         * lib/sockets.c: Include close-hook.h, w32sock.h.
5836         (close_fd_maybe_socket): New function, essentially from lib/close.c.
5837         (close_sockets_hook): New variable.
5838         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
5839         (gl_sockets_cleanup): Unregister it.
5840         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
5841         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
5842         * modules/close-hook: New file.
5843         * modules/close (Files): Remove lib/w32sock.h.
5844         (Depends-on): Add close-hook.
5845         (Link): Remove section.
5846         * modules/sockets (Files): Add lib/w32sock.h.
5847         (Depends-on): Add close-hook.
5848         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
5849         invocation.
5850         * NEWS: Mention that LIB_CLOSE is gone.
5851
5852 2009-03-23  Eric Blake  <ebb9@byu.net>
5853
5854         signal-tests: test previous patch
5855         * tests/test-signal.c: New file.
5856         * modules/signal-tests: Likewise.
5857
5858         signal.h: always support 'volatile sig_atomic_t'
5859         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
5860         (gl_SIGNAL_H_DEFAULTS): Add a default.
5861         * modules/signal (Makefile.am): Substitute if needed.
5862         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
5863         users can blindly add volatile.
5864         * doc/posix-headers/signal.texi (signal.h): Document it.
5865         Reported by Matthew Woehlke.
5866
5867 2009-03-23  Jim Meyering  <meyering@redhat.com>
5868
5869         pathmax: PATH_MAX: use pathconf only when available
5870         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
5871         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
5872         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
5873         This avoids a link failure in a PSP cross-compilation environment
5874         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
5875
5876         * lib/vasnprintf.c (divide): Fix typo in comment.
5877
5878 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5879
5880         * gnulib-tool (func_filter_filelist): Fix comment.
5881
5882 2009-03-20  Bruno Haible  <bruno@clisp.org>
5883
5884         Make sockets.h self-contained.
5885         * lib/sockets.c: Include sockets.h first.
5886         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
5887
5888 2009-03-19  Eric Blake  <ebb9@byu.net>
5889
5890         doc: mention more functions added in cygwin 1.7.0
5891         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
5892         addition.
5893         * doc/posix-functions/log2f.texi: Likewise.
5894
5895 2009-03-19  Jim Meyering  <meyering@redhat.com>
5896
5897         fsusage: avoid syntax error due to statement-before-declaration
5898         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
5899         after all declarations.  Reported by Matthew Woehlke in
5900         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
5901
5902 2009-03-18  Eric Blake  <ebb9@byu.net>
5903
5904         build-aux/compile: sync from automake
5905         * build-aux/compile: New file, from automake.
5906         * config/srclist.txt: Mention build-aux/compile.
5907
5908 2009-03-17  Bruno Haible  <bruno@clisp.org>
5909
5910         * lib/git-merge-changelog.c: Fix typo in comment.
5911         Reported by Reuben Thomas <rrt@sc3d.org>.
5912
5913 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
5914
5915         * m4/regex.m4: update and improve help for
5916         --without-included-regex.
5917
5918 2009-03-17  Simon Josefsson  <simon@josefsson.org>
5919
5920         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
5921         failure on missing include files.
5922
5923 2009-03-17  Eric Blake  <ebb9@byu.net>
5924
5925         doc: mention more functions added in cygwin 1.7.0
5926         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
5927         addition.
5928         * doc/posix-functions/fwscanf.texi: Likewise.
5929         * doc/posix-functions/swprintf.texi: Likewise.
5930         * doc/posix-functions/swscanf.texi: Likewise.
5931         * doc/posix-functions/vfwprintf.texi: Likewise.
5932         * doc/posix-functions/vfwscanf.texi: Likewise.
5933         * doc/posix-functions/vswprintf.texi: Likewise.
5934         * doc/posix-functions/vswscanf.texi: Likewise.
5935         * doc/posix-functions/vwprintf.texi: Likewise.
5936         * doc/posix-functions/vwscanf.texi: Likewise.
5937         * doc/posix-functions/wcscasecmp.texi: Likewise.
5938         * doc/posix-functions/wcsdup.texi: Likewise.
5939         * doc/posix-functions/wcsftime.texi: Likewise.
5940         * doc/posix-functions/wcsncasecmp.texi: Likewise.
5941         * doc/posix-functions/wprintf.texi: Likewise.
5942         * doc/posix-functions/wscanf.texi: Likewise.
5943         * doc/glibc-functions/gethostbyname2.texi: Likewise.
5944
5945 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
5946
5947         maint.mk: really add $(AM_MAKEFLAGS)
5948         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
5949         was inadvertently omitted in the last commit.
5950         Spotted by Bruno Haible.
5951
5952         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
5953         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
5954         $(AM_MAKEFLAGS)' rather than plain `make'.
5955
5956         gnulib-tool: execute $MAKE not make
5957         * gnulib-tool: Default $MAKE to 'make'.
5958         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
5959         than make.  Initialize $MAKE in the do-autobuild script.
5960
5961         gnulib-tool: use $MAKE not make in generated files
5962         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
5963         make, in generated files.  Initialize $MAKE in the do-autobuild
5964         script.
5965
5966         * top/GNUmakefile (_have-git-version-gen): Fix typo.
5967
5968         GNUmakefile: disable parallelism only for multiple, recursive targets
5969         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
5970         additions in the Makefile.
5971         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
5972         by Automake.
5973         (.NOTPARALLEL): Only disable parallel builds if multiple targets
5974         are listed on the command line and at least one of them is
5975         listed in $(ALL_RECURSIVE_TARGETS).
5976
5977 2009-03-14  Bruno Haible  <bruno@clisp.org>
5978
5979         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
5980         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
5981         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
5982         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
5983         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
5984         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
5985         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
5986         unistr/u8-uctomb.
5987         * modules/unistr/u8-strchr (Depends-on): Likewise.
5988         * modules/unistr/u8-strrchr (Depends-on): Likewise.
5989         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
5990         unistr/u16-uctomb.
5991         * modules/unistr/u16-strchr (Depends-on): Likewise.
5992         * modules/unistr/u16-strrchr (Depends-on): Likewise.
5993
5994 2009-03-12  Bruno Haible  <bruno@clisp.org>
5995
5996         Work around select() bug on Interix 3.5.
5997         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
5998         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
5999         * m4/select.m4: New file.
6000         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
6001         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
6002         * modules/select (Files): Add m4/select.m4.
6003         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
6004         * modules/nanosleep (Depends-on): Add select.
6005         * modules/poll (Depends-on): Likewise.
6006         * doc/posix-functions/select.texi: Mention the Interix bug.
6007         Reported by Markus Duft <mduft@gentoo.org>.
6008
6009         * lib/select.c: Renamed from lib/winsock-select.c.
6010         * modules/select (Files): Add lib/select.c, remove
6011         lib/winsock-select.c.
6012         (configure.ac): Update.
6013
6014 2009-03-12  Jim Meyering  <meyering@redhat.com>
6015
6016         avoid gcc warnings about unused macro definitions
6017         * lib/readtokens.c (STREQ): Remove unused definition.
6018         * lib/xmalloc.c (SIZE_MAX): Likewise.
6019         * lib/openat-die.c (N_): Likewise.
6020         * lib/mountlist.c (SIZE_MAX): Remove definition.
6021         Instead, include <stdint.h>.
6022         * lib/readutmp.c: Likewise.
6023         * modules/readutmp (Depends-on): Add stdint.
6024         * modules/mountlist (Depends-on): Add stdint.
6025         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
6026
6027 2009-03-10  Bruno Haible  <bruno@clisp.org>
6028
6029         Tests for module 'mbmemcasecoll'.
6030         * modules/mbmemcasecoll-tests: New file.
6031         * tests/test-mbmemcasecoll1.sh: New file.
6032         * tests/test-mbmemcasecoll2.sh: New file.
6033         * tests/test-mbmemcasecoll3.sh: New file.
6034         * tests/test-mbmemcasecoll.c: New file.
6035
6036         New module 'mbmemcasecoll'.
6037         * lib/mbmemcasecoll.h: New file.
6038         * lib/mbmemcasecoll.c: New file.
6039         * modules/mbmemcasecoll: New file.
6040
6041         * tests/test-mbmemcasecmp.h: New file, extracted from
6042         tests/test-mbmemcasecmp.c.
6043         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
6044         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
6045         (main): Update.
6046         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
6047
6048 2009-03-09  Bruno Haible  <bruno@clisp.org>
6049
6050         Tests for module 'mbmemcasecmp'.
6051         * modules/mbmemcasecmp-tests: New file.
6052         * tests/test-mbmemcasecmp1.sh: New file.
6053         * tests/test-mbmemcasecmp2.sh: New file.
6054         * tests/test-mbmemcasecmp3.sh: New file.
6055         * tests/test-mbmemcasecmp.c: New file.
6056
6057         New module 'mbmemcasecmp'.
6058         * lib/mbmemcasecmp.h: New file.
6059         * lib/mbmemcasecmp.c: New file.
6060         * modules/mbmemcasecmp: New file.
6061
6062 2009-03-09  Bruno Haible  <bruno@clisp.org>
6063
6064         Tests for module 'unicase/ulc-casecoll'.
6065         * modules/unicase/ulc-casecoll-tests: New file.
6066         * tests/unicase/test-ulc-casecoll1.sh: New file.
6067         * tests/unicase/test-ulc-casecoll2.sh: New file.
6068         * tests/unicase/test-ulc-casecoll.c: New file.
6069
6070         New module 'unicase/ulc-casecoll'.
6071         * lib/unicase.h (ulc_casecoll): New declaration.
6072         * lib/unicase/ulc-casecoll.c: New file.
6073         * modules/unicase/ulc-casecoll: New file.
6074
6075         New module 'unicase/ulc-casexfrm'.
6076         * lib/unicase.h (ulc_casexfrm): New declaration.
6077         * lib/unicase/ulc-casexfrm.c: New file.
6078         * modules/unicase/ulc-casexfrm: New file.
6079
6080 2009-03-09  Bruno Haible  <bruno@clisp.org>
6081
6082         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
6083         invocations.
6084
6085         * m4/mbscasecmp.m4: Remove file.
6086         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
6087         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
6088
6089         * m4/mbscasestr.m4: Remove file.
6090         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
6091         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
6092
6093         * m4/mbschr.m4: Remove file.
6094         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
6095         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
6096
6097         * m4/mbscspn.m4: Remove file.
6098         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
6099         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
6100
6101         * m4/mbslen.m4: Remove file.
6102         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
6103         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
6104
6105         * m4/mbsncasecmp.m4: Remove file.
6106         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
6107         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
6108
6109         * m4/mbsnlen.m4: Remove file.
6110         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
6111         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
6112
6113         * m4/mbspbrk.m4: Remove file.
6114         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
6115         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
6116
6117         * m4/mbspcasecmp.m4: Remove file.
6118         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
6119         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
6120
6121         * m4/mbsrchr.m4: Remove file.
6122         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
6123         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
6124
6125         * m4/mbssep.m4: Remove file.
6126         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
6127         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
6128
6129         * m4/mbsspn.m4: Remove file.
6130         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
6131         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
6132
6133         * m4/mbsstr.m4: Remove file.
6134         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
6135         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
6136
6137         * m4/mbstok_r.m4: Remove file.
6138         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
6139         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
6140
6141         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
6142
6143         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
6144         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
6145
6146         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
6147
6148 2009-03-08  Bruno Haible  <bruno@clisp.org>
6149
6150         Tests for module 'unicase/ulc-casecmp'.
6151         * modules/unicase/ulc-casecmp-tests: New file.
6152         * tests/unicase/test-ulc-casecmp1.sh: New file.
6153         * tests/unicase/test-ulc-casecmp2.sh: New file.
6154         * tests/unicase/test-ulc-casecmp.c: New file.
6155
6156         New module 'unicase/ulc-casecmp'.
6157         * lib/unicase.h (ulc_casecmp): New declaration.
6158         * lib/unicase/ulc-casecmp.c: New file.
6159         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
6160         'const SRC_UNIT *'.
6161         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
6162         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
6163         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
6164         * modules/unicase/ulc-casecmp: New file.
6165
6166         Tests for module 'unicase/u32-is-cased'.
6167         * modules/unicase/u32-is-cased-tests: New file.
6168         * tests/unicase/test-u32-is-cased.c: New file.
6169
6170         Tests for module 'unicase/u16-is-cased'.
6171         * modules/unicase/u16-is-cased-tests: New file.
6172         * tests/unicase/test-u16-is-cased.c: New file.
6173
6174         Tests for module 'unicase/u8-is-cased'.
6175         * modules/unicase/u8-is-cased-tests: New file.
6176         * tests/unicase/test-u8-is-cased.c: New file.
6177         * tests/unicase/test-is-cased.h: New file.
6178
6179         New module 'unicase/u32-is-cased'.
6180         * lib/unicase/u32-is-cased.c: New file.
6181         * modules/unicase/u32-is-cased: New file.
6182
6183         New module 'unicase/u16-is-cased'.
6184         * lib/unicase/u16-is-cased.c: New file.
6185         * modules/unicase/u16-is-cased: New file.
6186
6187         New module 'unicase/u8-is-cased'.
6188         * lib/unicase/u8-is-cased.c: New file.
6189         * lib/unicase/u-is-cased.h: New file.
6190         * modules/unicase/u8-is-cased: New file.
6191
6192         Tests for module 'unicase/u32-is-casefolded'.
6193         * modules/unicase/u32-is-casefolded-tests: New file.
6194         * tests/unicase/test-u32-is-casefolded.c: New file.
6195
6196         Tests for module 'unicase/u16-is-casefolded'.
6197         * modules/unicase/u16-is-casefolded-tests: New file.
6198         * tests/unicase/test-u16-is-casefolded.c: New file.
6199
6200         Tests for module 'unicase/u8-is-casefolded'.
6201         * modules/unicase/u8-is-casefolded-tests: New file.
6202         * tests/unicase/test-u8-is-casefolded.c: New file.
6203         * tests/unicase/test-is-casefolded.h: New file.
6204
6205         New module 'unicase/u32-is-casefolded'.
6206         * lib/unicase/u32-is-casefolded.c: New file.
6207         * modules/unicase/u32-is-casefolded: New file.
6208
6209         New module 'unicase/u16-is-casefolded'.
6210         * lib/unicase/u16-is-casefolded.c: New file.
6211         * modules/unicase/u16-is-casefolded: New file.
6212
6213         New module 'unicase/u8-is-casefolded'.
6214         * lib/unicase/u8-is-casefolded.c: New file.
6215         * modules/unicase/u8-is-casefolded: New file.
6216
6217         Tests for module 'unicase/u32-is-titlecase'.
6218         * modules/unicase/u32-is-titlecase-tests: New file.
6219         * tests/unicase/test-u32-is-titlecase.c: New file.
6220
6221         Tests for module 'unicase/u16-is-titlecase'.
6222         * modules/unicase/u16-is-titlecase-tests: New file.
6223         * tests/unicase/test-u16-is-titlecase.c: New file.
6224
6225         Tests for module 'unicase/u8-is-titlecase'.
6226         * modules/unicase/u8-is-titlecase-tests: New file.
6227         * tests/unicase/test-u8-is-titlecase.c: New file.
6228         * tests/unicase/test-is-titlecase.h: New file.
6229
6230         New module 'unicase/u32-is-titlecase'.
6231         * lib/unicase/u32-is-titlecase.c: New file.
6232         * modules/unicase/u32-is-titlecase: New file.
6233
6234         New module 'unicase/u16-is-titlecase'.
6235         * lib/unicase/u16-is-titlecase.c: New file.
6236         * modules/unicase/u16-is-titlecase: New file.
6237
6238         New module 'unicase/u8-is-titlecase'.
6239         * lib/unicase/u8-is-titlecase.c: New file.
6240         * modules/unicase/u8-is-titlecase: New file.
6241
6242         Tests for module 'unicase/u32-is-lowercase'.
6243         * modules/unicase/u32-is-lowercase-tests: New file.
6244         * tests/unicase/test-u32-is-lowercase.c: New file.
6245
6246         Tests for module 'unicase/u16-is-lowercase'.
6247         * modules/unicase/u16-is-lowercase-tests: New file.
6248         * tests/unicase/test-u16-is-lowercase.c: New file.
6249
6250         Tests for module 'unicase/u8-is-lowercase'.
6251         * modules/unicase/u8-is-lowercase-tests: New file.
6252         * tests/unicase/test-u8-is-lowercase.c: New file.
6253         * tests/unicase/test-is-lowercase.h: New file.
6254
6255         New module 'unicase/u32-is-lowercase'.
6256         * lib/unicase/u32-is-lowercase.c: New file.
6257         * modules/unicase/u32-is-lowercase: New file.
6258
6259         New module 'unicase/u16-is-lowercase'.
6260         * lib/unicase/u16-is-lowercase.c: New file.
6261         * modules/unicase/u16-is-lowercase: New file.
6262
6263         New module 'unicase/u8-is-lowercase'.
6264         * lib/unicase/u8-is-lowercase.c: New file.
6265         * modules/unicase/u8-is-lowercase: New file.
6266
6267         Tests for module 'unicase/u32-is-uppercase'.
6268         * modules/unicase/u32-is-uppercase-tests: New file.
6269         * tests/unicase/test-u32-is-uppercase.c: New file.
6270
6271         Tests for module 'unicase/u16-is-uppercase'.
6272         * modules/unicase/u16-is-uppercase-tests: New file.
6273         * tests/unicase/test-u16-is-uppercase.c: New file.
6274
6275         Tests for module 'unicase/u8-is-uppercase'.
6276         * modules/unicase/u8-is-uppercase-tests: New file.
6277         * tests/unicase/test-u8-is-uppercase.c: New file.
6278         * tests/unicase/test-is-uppercase.h: New file.
6279
6280         New module 'unicase/u32-is-uppercase'.
6281         * lib/unicase/u32-is-uppercase.c: New file.
6282         * modules/unicase/u32-is-uppercase: New file.
6283
6284         New module 'unicase/u16-is-uppercase'.
6285         * lib/unicase/u16-is-uppercase.c: New file.
6286         * modules/unicase/u16-is-uppercase: New file.
6287
6288         New module 'unicase/u8-is-uppercase'.
6289         * lib/unicase/u8-is-uppercase.c: New file.
6290         * modules/unicase/u8-is-uppercase: New file.
6291
6292         New module 'unicase/u32-is-invariant'.
6293         * lib/unicase/u32-is-invariant.c: New file.
6294         * modules/unicase/u32-is-invariant: New file.
6295
6296         New module 'unicase/u16-is-invariant'.
6297         * lib/unicase/u16-is-invariant.c: New file.
6298         * modules/unicase/u16-is-invariant: New file.
6299
6300         New module 'unicase/u8-is-invariant'.
6301         * lib/unicase/u8-is-invariant.c: New file.
6302         * lib/unicase/invariant.h: New file.
6303         * lib/unicase/u-is-invariant.h: New file.
6304         * modules/unicase/u8-is-invariant: New file.
6305
6306         Tests for module 'unicase/u32-casecoll'.
6307         * modules/unicase/u32-casecoll-tests: New file.
6308         * tests/unicase/test-u32-casecoll.c: New file.
6309
6310         Tests for module 'unicase/u16-casecoll'.
6311         * modules/unicase/u16-casecoll-tests: New file.
6312         * tests/unicase/test-u16-casecoll.c: New file.
6313
6314         Tests for module 'unicase/u8-casecoll'.
6315         * modules/unicase/u8-casecoll-tests: New file.
6316         * tests/unicase/test-u8-casecoll.c: New file.
6317
6318         New module 'unicase/u32-casecoll'.
6319         * lib/unicase/u32-casecoll.c: New file.
6320         * modules/unicase/u32-casecoll: New file.
6321
6322         New module 'unicase/u16-casecoll'.
6323         * lib/unicase/u16-casecoll.c: New file.
6324         * modules/unicase/u16-casecoll: New file.
6325
6326         New module 'unicase/u8-casecoll'.
6327         * lib/unicase/u8-casecoll.c: New file.
6328         * lib/unicase/u-casecoll.h: New file.
6329         * modules/unicase/u8-casecoll: New file.
6330
6331         New module 'unicase/u32-casexfrm'.
6332         * lib/unicase/u32-casexfrm.c: New file.
6333         * modules/unicase/u32-casexfrm: New file.
6334
6335         New module 'unicase/u16-casexfrm'.
6336         * lib/unicase/u16-casexfrm.c: New file.
6337         * modules/unicase/u16-casexfrm: New file.
6338
6339         New module 'unicase/u8-casexfrm'.
6340         * lib/unicase/u8-casexfrm.c: New file.
6341         * lib/unicase/u-casexfrm.h: New file.
6342         * modules/unicase/u8-casexfrm: New file.
6343
6344         Tests for module 'unicase/u32-casecmp'.
6345         * modules/unicase/u32-casecmp-tests: New file.
6346         * tests/unicase/test-u32-casecmp.c: New file.
6347
6348         Tests for module 'unicase/u16-casecmp'.
6349         * modules/unicase/u16-casecmp-tests: New file.
6350         * tests/unicase/test-u16-casecmp.c: New file.
6351
6352         Tests for module 'unicase/u8-casecmp'.
6353         * modules/unicase/u8-casecmp-tests: New file.
6354         * tests/unicase/test-u8-casecmp.c: New file.
6355         * tests/unicase/test-casecmp.h: New file.
6356
6357         New module 'unicase/u32-casecmp'.
6358         * lib/unicase/u32-casecmp.c: New file.
6359         * modules/unicase/u32-casecmp: New file.
6360
6361         New module 'unicase/u16-casecmp'.
6362         * lib/unicase/u16-casecmp.c: New file.
6363         * modules/unicase/u16-casecmp: New file.
6364
6365         New module 'unicase/u8-casecmp'.
6366         * lib/unicase/u8-casecmp.c: New file.
6367         * lib/unicase/u-casecmp.h: New file.
6368         * modules/unicase/u8-casecmp: New file.
6369
6370         Tests for module 'unicase/u32-casefold'.
6371         * modules/unicase/u32-casefold-tests: New file.
6372         * tests/unicase/test-u32-casefold.c: New file.
6373
6374         Tests for module 'unicase/u16-casefold'.
6375         * modules/unicase/u16-casefold-tests: New file.
6376         * tests/unicase/test-u16-casefold.c: New file.
6377
6378         Tests for module 'unicase/u8-casefold'.
6379         * modules/unicase/u8-casefold-tests: New file.
6380         * tests/unicase/test-u8-casefold.c: New file.
6381
6382         New module 'unicase/u32-casefold'.
6383         * lib/unicase/u32-casefold.c: New file.
6384         * modules/unicase/u32-casefold: New file.
6385
6386         New module 'unicase/u16-casefold'.
6387         * lib/unicase/u16-casefold.c: New file.
6388         * modules/unicase/u16-casefold: New file.
6389
6390         New module 'unicase/u8-casefold'.
6391         * lib/unicase/u8-casefold.c: New file.
6392         * lib/unicase/u-casefold.h: New file.
6393         * modules/unicase/u8-casefold: New file.
6394
6395         New module 'unicase/tocasefold'.
6396         * lib/unicase/casefold.h: New file.
6397         * lib/unicase/tocasefold.c: New file.
6398         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
6399         * modules/unicase/tocasefold: New file.
6400
6401         Tests for module 'unicase/u32-totitle'.
6402         * modules/unicase/u32-totitle-tests: New file.
6403         * tests/unicase/test-u32-totitle.c: New file.
6404
6405         Tests for module 'unicase/u16-totitle'.
6406         * modules/unicase/u16-totitle-tests: New file.
6407         * tests/unicase/test-u16-totitle.c: New file.
6408
6409         Tests for module 'unicase/u8-totitle'.
6410         * modules/unicase/u8-totitle-tests: New file.
6411         * tests/unicase/test-u8-totitle.c: New file.
6412
6413         New module 'unicase/u32-totitle'.
6414         * lib/unicase/u32-totitle.c: New file.
6415         * modules/unicase/u32-totitle: New file.
6416
6417         New module 'unicase/u16-totitle'.
6418         * lib/unicase/u16-totitle.c: New file.
6419         * modules/unicase/u16-totitle: New file.
6420
6421         New module 'unicase/u8-totitle'.
6422         * lib/unicase/u8-totitle.c: New file.
6423         * lib/unicase/u-totitle.h: New file.
6424         * modules/unicase/u8-totitle: New file.
6425
6426         Tests for module 'unicase/u32-tolower'.
6427         * modules/unicase/u32-tolower-tests: New file.
6428         * tests/unicase/test-u32-tolower.c: New file.
6429
6430         Tests for module 'unicase/u16-tolower'.
6431         * modules/unicase/u16-tolower-tests: New file.
6432         * tests/unicase/test-u16-tolower.c: New file.
6433
6434         Tests for module 'unicase/u8-tolower'.
6435         * modules/unicase/u8-tolower-tests: New file.
6436         * tests/unicase/test-u8-tolower.c: New file.
6437
6438         New module 'unicase/u32-tolower'.
6439         * lib/unicase/u32-tolower.c: New file.
6440         * modules/unicase/u32-tolower: New file.
6441
6442         New module 'unicase/u16-tolower'.
6443         * lib/unicase/u16-tolower.c: New file.
6444         * modules/unicase/u16-tolower: New file.
6445
6446         New module 'unicase/u8-tolower'.
6447         * lib/unicase/u8-tolower.c: New file.
6448         * modules/unicase/u8-tolower: New file.
6449
6450         Tests for module 'unicase/u32-toupper'.
6451         * modules/unicase/u32-toupper-tests: New file.
6452         * tests/unicase/test-u32-toupper.c: New file.
6453
6454         Tests for module 'unicase/u16-toupper'.
6455         * modules/unicase/u16-toupper-tests: New file.
6456         * tests/unicase/test-u16-toupper.c: New file.
6457
6458         Tests for module 'unicase/u8-toupper'.
6459         * modules/unicase/u8-toupper-tests: New file.
6460         * tests/unicase/test-u8-toupper.c: New file.
6461
6462         New module 'unicase/u32-toupper'.
6463         * lib/unicase/u32-toupper.c: New file.
6464         * modules/unicase/u32-toupper: New file.
6465
6466         New module 'unicase/u16-toupper'.
6467         * lib/unicase/u16-toupper.c: New file.
6468         * modules/unicase/u16-toupper: New file.
6469
6470         New module 'unicase/u8-toupper'.
6471         * lib/unicase/u8-toupper.c: New file.
6472         * modules/unicase/u8-toupper: New file.
6473
6474         New module 'unicase/u32-casemap'.
6475         * lib/unicase/u32-casemap.c: New file.
6476         * modules/unicase/u32-casemap: New file.
6477
6478         New module 'unicase/u16-casemap'.
6479         * lib/unicase/u16-casemap.c: New file.
6480         * modules/unicase/u16-casemap: New file.
6481
6482         New module 'unicase/u8-casemap'.
6483         * lib/unicase/unicasemap.h: New file.
6484         * lib/unicase/u8-casemap.c: New file.
6485         * lib/unicase/u-casemap.h: New file.
6486         * modules/unicase/u8-casemap: New file.
6487
6488         New module 'unicase/special-casing'.
6489         * lib/unicase/special-casing.h: New file.
6490         * lib/unicase/special-casing.c: New file.
6491         * lib/unicase/special-casing-table.gperf: New file, generated by
6492         gen-uni-tables.c.
6493         * modules/unicase/special-casing: New file.
6494
6495         Tests for module 'unicase/locale-language'.
6496         * modules/unicase/locale-language-tests: New file.
6497         * tests/unicase/test-locale-language.sh: New file.
6498         * tests/unicase/test-locale-language.c: New file.
6499
6500         New module 'unicase/locale-language'.
6501         * lib/unicase/locale-language.c: New file.
6502         * lib/unicase/locale-languages.gperf: New file.
6503         * modules/unicase/locale-language: New file.
6504
6505         Generate more tables for case conversion and case folding.
6506         * lib/gen-uni-tables.c (SCC_*): New enum items.
6507         (struct special_casing_rule): New type.
6508         (casing_rules, num_casing_rules, allocated_casing_rules): New
6509         variables.
6510         (add_casing_rule, fill_casing_rules): New functions.
6511         (struct casefold_rule): New type.
6512         (casefolding_rules, num_casefolding_rules,
6513         allocated_casefolding_rules): New variables.
6514         (fill_casefolding_rules): New function.
6515         (unicode_casefold): New variable.
6516         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
6517         sort_casing_rules, output_casing_rules): New functions.
6518         (main): Accept to more arguments: SpecialCasing.txt and
6519         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
6520         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
6521         Output mapping for casefolding.
6522
6523         * lib/unicase.h: Include stdbool.h, uninorm.h.
6524         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
6525         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
6526         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
6527         arguments.
6528         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
6529         resultp arguments.
6530         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
6531         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
6532         resultp arguments.
6533         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
6534         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
6535         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
6536         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
6537         declarations.
6538         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
6539
6540 2009-03-08  Bruno Haible  <bruno@clisp.org>
6541
6542         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
6543         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
6544         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
6545         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
6546
6547 2009-03-07  Bruno Haible  <bruno@clisp.org>
6548
6549         Adjust u*_normcmp, u*_normcoll API.
6550         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
6551         u16_normcoll, u32_normcoll): Change failure conventions.
6552         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
6553         errno and return -1.
6554         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
6555
6556 2009-03-07  Bruno Haible  <bruno@clisp.org>
6557
6558         Tests for module 'uninorm/u32-normcoll'.
6559         * modules/uninorm/u32-normcoll-tests: New file.
6560         * tests/uninorm/test-u32-normcoll.c: New file.
6561
6562         Tests for module 'uninorm/u16-normcoll'.
6563         * modules/uninorm/u16-normcoll-tests: New file.
6564         * tests/uninorm/test-u16-normcoll.c: New file.
6565
6566         Tests for module 'uninorm/u8-normcoll'.
6567         * modules/uninorm/u8-normcoll-tests: New file.
6568         * tests/uninorm/test-u8-normcoll.c: New file.
6569
6570 2009-03-07  Bruno Haible  <bruno@clisp.org>
6571
6572         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
6573         tests/uninorm/test-u32-normcmp.c.
6574         * tests/uninorm/test-u32-normcmp.c: Include it.
6575         (test_nonascii): New function, extracted from main. Add some more
6576         tests.
6577         (main): Invoke test_ascii and test_nonascii.
6578         * modules/uninorm/u32-normcmp-tests (Files): Add
6579         tests/uninorm/test-u32-normcmp.h.
6580         (Depends-on): Remove uninorm/u32-normcmp.
6581
6582         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
6583         tests/uninorm/test-u16-normcmp.c.
6584         * tests/uninorm/test-u16-normcmp.c: Include it.
6585         (test_nonascii): New function, extracted from main. Add some more
6586         tests.
6587         (main): Invoke test_ascii and test_nonascii.
6588         * modules/uninorm/u16-normcmp-tests (Files): Add
6589         tests/uninorm/test-u16-normcmp.h.
6590         (Depends-on): Remove uninorm/u16-normcmp.
6591
6592         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
6593         tests/uninorm/test-u8-normcmp.c.
6594         * tests/uninorm/test-u8-normcmp.c: Include it.
6595         (test_nonascii): New function, extracted from main. Add some more
6596         tests.
6597         (main): Invoke test_ascii and test_nonascii.
6598         * modules/uninorm/u8-normcmp-tests (Files): Add
6599         tests/uninorm/test-u8-normcmp.h.
6600         (Depends-on): Remove uninorm/u8-normcmp.
6601
6602 2009-03-07  Bruno Haible  <bruno@clisp.org>
6603
6604         New module 'uninorm/u32-normcoll'.
6605         * lib/uninorm/u32-normcoll.c: New file.
6606         * modules/uninorm/u32-normcoll: New file.
6607
6608         New module 'uninorm/u16-normcoll'.
6609         * lib/uninorm/u16-normcoll.c: New file.
6610         * modules/uninorm/u16-normcoll: New file.
6611
6612         New module 'uninorm/u8-normcoll'.
6613         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
6614         declarations.
6615         * lib/uninorm/u8-normcoll.c: New file.
6616         * lib/uninorm/u-normcoll.h: New file.
6617         * modules/uninorm/u8-normcoll: New file.
6618
6619         New module 'uninorm/u32-normxfrm'.
6620         * lib/uninorm/u32-normxfrm.c: New file.
6621         * modules/uninorm/u32-normxfrm: New file.
6622
6623         New module 'uninorm/u16-normxfrm'.
6624         * lib/uninorm/u16-normxfrm.c: New file.
6625         * modules/uninorm/u16-normxfrm: New file.
6626
6627         New module 'uninorm/u8-normxfrm'.
6628         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
6629         declarations.
6630         * lib/uninorm/u8-normxfrm.c: New file.
6631         * lib/uninorm/u-normxfrm.h: New file.
6632         * modules/uninorm/u8-normxfrm: New file.
6633
6634 2009-03-07  Bruno Haible  <bruno@clisp.org>
6635
6636         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
6637         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
6638         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
6639
6640 2009-03-07  Bruno Haible  <bruno@clisp.org>
6641
6642         New module 'memxfrm'.
6643         * lib/memxfrm.h: New file.
6644         * lib/memxfrm.c: New file.
6645         * modules/memxfrm: New file.
6646
6647 2009-03-07  Bruno Haible  <bruno@clisp.org>
6648
6649         New module 'memcmp2'.
6650         * lib/memcmp2.h: New file.
6651         * lib/memcmp2.c: New file.
6652         * modules/memcmp2: New file.
6653
6654 2009-03-07  Bruno Haible  <bruno@clisp.org>
6655
6656         Tests for module 'uninorm/decomposing-form'.
6657         * modules/uninorm/decomposing-form-tests: New file.
6658         * tests/uninorm/test-decomposing-form.c: New file.
6659
6660         New module 'uninorm/decomposing-form'.
6661         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
6662         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
6663         Add 'decomposing_variant' field.
6664         * lib/uninorm/decomposing-form.c: New file.
6665         * lib/uninorm/nfc.c (uninorm_nfc): Update.
6666         * lib/uninorm/nfd.c (uninorm_nfd): Update.
6667         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
6668         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
6669         * modules/uninorm/decomposing-form: New file.
6670         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
6671         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
6672
6673 2009-03-07  Bruno Haible  <bruno@clisp.org>
6674
6675         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
6676         strings.
6677
6678 2009-03-06  Bruno Haible  <bruno@clisp.org>
6679
6680         Tests for module 'uninorm/u32-normcmp'.
6681         * tests/uninorm/test-u32-normcmp.c: New file.
6682         * modules/uninorm/u32-normcmp-tests: New file.
6683
6684         Tests for module 'uninorm/u16-normcmp'.
6685         * tests/uninorm/test-u16-normcmp.c: New file.
6686         * modules/uninorm/u16-normcmp-tests: New file.
6687
6688         Tests for module 'uninorm/u8-normcmp'.
6689         * tests/uninorm/test-u8-normcmp.c: New file.
6690         * modules/uninorm/u8-normcmp-tests: New file.
6691
6692         New module 'uninorm/u32-normcmp'.
6693         * lib/uninorm/u32-normcmp.c: New file.
6694         * modules/uninorm/u32-normcmp: New file.
6695
6696         New module 'uninorm/u16-normcmp'.
6697         * lib/uninorm/u16-normcmp.c: New file.
6698         * modules/uninorm/u16-normcmp: New file.
6699
6700         New module 'uninorm/u8-normcmp'.
6701         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
6702         declarations.
6703         * lib/uninorm/u8-normcmp.c: New file.
6704         * lib/uninorm/u-normcmp.h: New file.
6705         * modules/uninorm/u8-normcmp: New file.
6706
6707 2009-03-06  Bruno Haible  <bruno@clisp.org>
6708
6709         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
6710         Reported by Eric Blake.
6711
6712 2009-03-06  Eric Blake  <ebb9@byu.net>
6713             Bruno Haible  <bruno@clisp.org>
6714
6715         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
6716         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
6717         condition.
6718         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
6719         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
6720         condition.
6721         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
6722
6723 2009-03-06  Eric Blake  <ebb9@byu.net>
6724
6725         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
6726         to avoid compiler warnings.
6727         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
6728
6729 2009-03-05  Bruno Haible  <bruno@clisp.org>
6730
6731         * tests/test-ftell.c (main): Disable test beyond end of file on
6732         FreeMiNT.
6733         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
6734
6735 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
6736
6737         * lib/filevercmp.c: Move hidden files up in ordering.
6738         * tests/test-filevercmp.c: Add tests for hidden files.
6739
6740 2009-03-04  Bruno Haible  <bruno@clisp.org>
6741
6742         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
6743         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
6744         AM_CFLAGS.
6745         Reported by Simon Josefsson.
6746
6747 2009-03-03  Bruno Haible  <bruno@clisp.org>
6748
6749         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
6750         Reported by Simon Josefsson.
6751
6752         * doc/ld-version-script.texi: Update node reference.
6753
6754 2009-03-03  Bruno Haible  <bruno@clisp.org>
6755
6756         * modules/visibility (License): Change to 'unlimited'.
6757         Suggested by Simon Josefsson.
6758
6759 2009-03-03  Jim Meyering  <meyering@redhat.com>
6760
6761         unlinkdir: cannot_unlink_dir may modify process state
6762         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
6763         it's neither thread-safe nor appropriate for use in a library.
6764
6765 2009-03-03  Eric Blake  <ebb9@byu.net>
6766
6767         test-closein: silence test under Darwin
6768         * tests/test-closein.sh: Ignore stderr from cat, since we don't
6769         care if it dies from EPIPE or EBADF.
6770
6771 2009-03-03  Bruno Haible  <bruno@clisp.org>
6772
6773         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
6774         earlier.
6775         * doc/visibility.texi: Fix @node and @section.
6776
6777 2009-03-03  Simon Josefsson  <simon@josefsson.org>
6778
6779         * doc/gnulib.texi: Link to sections for ld version script and
6780         visibility.
6781         * doc/visibility.texi: Add @node and @section.
6782         * modules/ld-version-script: New module.
6783         * m4/ld-version-script.m4: New file.
6784         * doc/ld-version-script.texi: New file.
6785
6786 2009-03-02  David Lutterkort  <lutter@redhat.com>
6787
6788         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
6789         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6790
6791 2009-03-02  Bruno Haible  <bruno@clisp.org>
6792
6793         * doc/visibility.texi: Mention libtool's -export-symbols option.
6794
6795 2009-03-02  Jim Meyering  <meyering@redhat.com>
6796
6797         announce-gen: new option: --no-print-checksums
6798         * build-aux/announce-gen (usage): Describe it.
6799         (print_checksums): Print a newline here, not in the [*] footnote.
6800         (main): Honor it.
6801
6802 2009-03-01  Bruno Haible  <bruno@clisp.org>
6803
6804         Use socklen_t in the native Windows replacements prototypes.
6805         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
6806         instead of 'int'.
6807         * lib/getsockopt.c (rpl_getsockopt): Likewise.
6808         * lib/setsockopt.c (rpl_setsockopt): Likewise.
6809         * modules/getsockopt (Depends-on): Add socklen.
6810         * modules/setsockopt (Depends-on): Add socklen.
6811
6812 2009-03-01  Bruno Haible  <bruno@clisp.org>
6813
6814         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
6815         least 4.2.
6816
6817 2009-03-01  Eric Blake  <ebb9@byu.net>
6818             Bruno Haible  <bruno@clisp.org>
6819
6820         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
6821         error messages.
6822         * lib/wait-process.c (wait_subprocess): Omit error message about
6823         deadly signal sent to the child of termsigp != NULL.
6824
6825 2009-03-01  Eric Blake  <ebb9@byu.net>
6826
6827         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
6828
6829 2009-03-01  Bruno Haible  <bruno@clisp.org>
6830
6831         Avoid a gcc warning.
6832         * tests/test-sched.c (b): Make global.
6833         Reported by Eric Blake.
6834
6835 2009-01-19  Martin Lambers  <marlam@marlam.de>
6836
6837         Provide POSIX semantics for socket timeout options on W32.
6838         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
6839         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
6840         * modules/setsockopt: Depend on sys_time module for struct timeval.
6841         * modules/getsockopt: Depend on sys_time module for struct timeval.
6842
6843 2009-03-01  Simon Josefsson  <simon@josefsson.org>
6844
6845         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
6846         __USE_GNU, for consistency with netdb.in.h.
6847         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
6848
6849 2009-03-01  Bruno Haible  <bruno@clisp.org>
6850
6851         More support for FreeMiNT.
6852         * lib/fseeko.c (rpl_fseeko): Complete last commit.
6853         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
6854
6855 2009-03-01  Bruno Haible  <bruno@clisp.org>
6856
6857         More support for FreeMiNT.
6858         * lib/fpurge.c (fpurge): Correct last commit.
6859         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
6860
6861 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
6862
6863         Fix unportable awk script in vc-list-files.
6864         * build-aux/vc-list-files: In the replacement awk script, use
6865         substr with a second argument of 1, not zero.
6866         Report by Simon Josefsson.
6867
6868 2009-02-28  Bruno Haible  <bruno@clisp.org>
6869
6870         More support for FreeMiNT.
6871         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
6872         to FreeMiNT today.
6873         * lib/fwriting.c (fwriting): Likewise.
6874         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
6875
6876 2009-02-28  Bruno Haible  <bruno@clisp.org>
6877
6878         * tests/test-freadseek.c (main): Disable test beyond end of file on
6879         FreeMiNT.
6880         * tests/test-ftello.c (main): Likewise.
6881         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
6882
6883 2009-02-28  Bruno Haible  <bruno@clisp.org>
6884
6885         Add tentative support for FreeMiNT.
6886         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
6887         * lib/fpurge.c (fpurge): Likewise.
6888         * lib/freadable.c (freadable): Likewise.
6889         * lib/freading.c (freading): Likewise.
6890         * lib/freadptr.c (freadptr): Likewise.
6891         * lib/freadseek.c (freadptrinc): Likewise.
6892         * lib/fseeko.c (rpl_fseeko): Likewise.
6893         * lib/fseterr.c (fseterr): Likewise.
6894         * lib/fwritable.c (fwritable): Likewise.
6895         * lib/fwriting.c (fwriting): Likewise.
6896         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
6897         Hourihane.
6898         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
6899
6900 2009-02-28  Bruno Haible  <bruno@clisp.org>
6901
6902         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
6903         SIGCHLD.
6904         Reported by Jim Meyering.
6905
6906 2009-02-28  Bruno Haible  <bruno@clisp.org>
6907
6908         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
6909         Mention the results of these tests on various platforms.
6910         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
6911         order.
6912         * doc/posix-functions/printf.texi: Likewise.
6913         * doc/posix-functions/snprintf.texi: Likewise.
6914         * doc/posix-functions/sprintf.texi: Likewise.
6915         * doc/posix-functions/vfprintf.texi: Likewise.
6916         * doc/posix-functions/vprintf.texi: Likewise.
6917         * doc/posix-functions/vsnprintf.texi: Likewise.
6918         * doc/posix-functions/vsprintf.texi: Likewise.
6919         * doc/glibc-functions/obstack_printf.texi: Likewise.
6920         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
6921
6922 2009-02-28  Bruno Haible  <bruno@clisp.org>
6923
6924         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
6925         Reported by Loïc Minier <lool@dooz.org>.
6926
6927 2009-02-27  Bruno Haible  <bruno@clisp.org>
6928
6929         * gnulib-tool (func_import): Make the sed expression used to create the
6930         sed script for updating the .gitignore file POSIX compliant.
6931         Reported by Eric Blake.
6932
6933 2009-02-27  Bruno Haible  <bruno@clisp.org>
6934
6935         * gnulib-tool (sed): Don't alias as "sed --posix".
6936         Reported by Eric Blake.
6937
6938 2009-02-27  Bruno Haible  <bruno@clisp.org>
6939
6940         Avoid test link errors.
6941         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
6942         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
6943         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
6944         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
6945         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
6946
6947 2009-02-27  Bruno Haible  <bruno@clisp.org>
6948
6949         Avoid spurious "(cached)" in configure output.
6950         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
6951         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
6952         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
6953         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
6954         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
6955         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
6956         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
6957         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
6958         Reported by Eric Blake.
6959
6960 2009-02-27  Eric Blake  <ebb9@byu.net>
6961
6962         printf: fix regression in previous patch
6963         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
6964
6965 2009-02-27  Bruno Haible  <bruno@clisp.org>
6966
6967         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
6968         value.
6969         * lib/stdint.in.h: Likewise.
6970         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
6971
6972 2009-02-27  Eric Blake  <ebb9@byu.net>
6973
6974         doc: mention more functions added in cygwin 1.7.0
6975         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
6976         addition.
6977         * doc/posix-functions/open_wmemstream.texi: Likewise.
6978         * doc/posix-functions/wcsnlen.texi: Likewise.
6979         * doc/posix-functions/wcsnrtombs.texi: Likewise.
6980         * doc/posix-functions/wcstod.texi: Likewise.
6981         * doc/posix-functions/wcstof.texi: Likewise.
6982         * doc/posix-functions/wcstoimax.texi: Likewise.
6983         * doc/posix-functions/wcstok.texi: Likewise.
6984         * doc/posix-functions/wcstoumax.texi: Likewise.
6985
6986         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
6987         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
6988         * doc/posix-functions/fprintf.texi: Update.
6989         * doc/posix-functions/printf.texi: Update.
6990         * doc/posix-functions/snprintf.texi: Update.
6991         * doc/posix-functions/sprintf.texi: Update.
6992         * doc/posix-functions/vfprintf.texi: Update.
6993         * doc/posix-functions/vprintf.texi: Update.
6994         * doc/posix-functions/vsnprintf.texi: Update.
6995         * doc/posix-functions/vsprintf.texi: Update.
6996         * doc/glibc-functions/obstack_printf.texi: Update.
6997         * doc/glibc-functions/obstack_vprintf.texi: Update.
6998
6999 2009-02-26  Eric Blake  <ebb9@byu.net>
7000
7001         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
7002         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
7003         compilation bug by using runtime conversion.
7004         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
7005         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
7006         * modules/ceill-tests (Files): Use nan.h.
7007         * modules/floorl-tests (Files): Likewise.
7008         * modules/frexpl-tests (Files): Likewise.
7009         * modules/isnanl-tests (Files): Likewise.
7010         * modules/ldexpl-tests (Files): Likewise.
7011         * modules/roundl-tests (Files): Likewise.
7012         * modules/truncl-tests (Files): Likewise.
7013         * tests/test-ceill.c (main): Use a working NaN.
7014         * tests/test-floorl.c (main): Likewise.
7015         * tests/test-frexpl.c (main): Likewise.
7016         * tests/test-isnan.c (test_long_double): Likewise.
7017         * tests/test-isnanl.h (main): Likewise.
7018         * tests/test-ldexpl.h (main): Likewise.
7019         * tests/test-roundl.h (main): Likewise.
7020         * tests/test-truncl.h (main): Likewise.
7021         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
7022
7023 2009-02-26  Eric Blake  <ebb9@byu.net>
7024             Bruno Haible  <bruno@clisp.org>
7025
7026         Work around a *printf bug with %ls on Solaris.
7027         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
7028         precision is specified, sprintf stops converting the wide string
7029         argument when the number of bytes that have been produced by this
7030         conversion equals or exceeds the precision.
7031         * doc/posix-functions/fprintf.texi: Update.
7032         * doc/posix-functions/printf.texi: Update.
7033         * doc/posix-functions/snprintf.texi: Update.
7034         * doc/posix-functions/sprintf.texi: Update.
7035         * doc/posix-functions/vfprintf.texi: Update.
7036         * doc/posix-functions/vprintf.texi: Update.
7037         * doc/posix-functions/vsnprintf.texi: Update.
7038         * doc/posix-functions/vsprintf.texi: Update.
7039         * doc/glibc-functions/obstack_printf.texi: Update.
7040         * doc/glibc-functions/obstack_vprintf.texi: Update.
7041
7042 2009-02-26  Eric Blake  <ebb9@byu.net>
7043
7044         stdlib: favor compiler check of random.h
7045         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
7046         to avoid an ObjC random.h installed by Swarm.
7047
7048 2009-02-26  Bruno Haible  <bruno@clisp.org>
7049
7050         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
7051         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
7052         Reported by Gary V. Vaughan <gary@gnu.org>.
7053
7054 2009-02-26  Bruno Haible  <bruno@clisp.org>
7055
7056         Fix *printf behaviour regarding the %ls directive.
7057         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
7058         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
7059         NEED_PRINTF_DIRECTIVE_LS.
7060         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
7061         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
7062         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
7063         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
7064         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
7065         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
7066         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
7067         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
7068         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
7069         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
7070         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
7071         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
7072         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
7073         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
7074         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
7075         * doc/posix-functions/fprintf.texi: Update.
7076         * doc/posix-functions/printf.texi: Update.
7077         * doc/posix-functions/snprintf.texi: Update.
7078         * doc/posix-functions/sprintf.texi: Update.
7079         * doc/posix-functions/vfprintf.texi: Update.
7080         * doc/posix-functions/vprintf.texi: Update.
7081         * doc/posix-functions/vsnprintf.texi: Update.
7082         * doc/posix-functions/vsprintf.texi: Update.
7083         * doc/glibc-functions/obstack_printf.texi: Update.
7084         * doc/glibc-functions/obstack_vprintf.texi: Update.
7085         Reported by Eric Blake.
7086
7087 2009-02-25  Bruno Haible  <bruno@clisp.org>
7088
7089         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
7090         with known value.
7091         Reported by Gary V. Vaughan <gary@gnu.org>.
7092
7093 2009-02-25  Bruno Haible  <bruno@clisp.org>
7094
7095         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
7096         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
7097         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
7098         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
7099         Reported by Gary V. Vaughan <gary@gnu.org>.
7100
7101 2009-02-25  Bruno Haible  <bruno@clisp.org>
7102
7103         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
7104         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
7105         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
7106         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
7107         Reported by Gary V. Vaughan <gary@gnu.org>.
7108
7109 2009-02-25  Eric Blake  <ebb9@byu.net>
7110
7111         tests: skip fseek/ftell tests if ungetc is broken
7112         * m4/ungetc.m4: New file.
7113         * modules/fseek-tests: Split test, so ungetc dependency is
7114         separate from rest of test.
7115         * modules/fseeko-tests: Likewise.
7116         * modules/ftell-tests: Likewise.
7117         * modules/ftello-tests: Likewise.
7118         * tests/test-fseek.c (main): Isolate ungetc dependency.
7119         * tests/test-fseeko.c (main): Likewise.
7120         * tests/test-ftell.c (main): Likewise.
7121         * tests/test-ftello.c (main): Likewise.
7122         * tests/test-fseek2.sh: New file.
7123         * tests/test-fseeko2.sh: Likewise.
7124         * tests/test-ftell2.sh: Likewise.
7125         * tests/test-ftello2.sh: Likewise.
7126
7127 2009-02-25  Ondřej Vašík  <ovasik@redhat.com>
7128
7129         test-getaddrinfo: fix usage of skip return code 77
7130         * tests/test-gettaddrinfo.c: Return skip code 77 only
7131         for first occurance of skip (4x77 is not 77)
7132
7133 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
7134
7135         strtod: avoid C99 decl-after-statement
7136         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
7137
7138 2009-02-24  Eric Blake  <ebb9@byu.net>
7139
7140         strtod: detect HP-UX 11.31 bug
7141         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
7142         Reported by Gary V. Vaughan.
7143
7144 2009-02-23  Bruno Haible  <bruno@clisp.org>
7145
7146         Fix invalid read past end of memory block.
7147         * lib/vasnprintf.c (DCHAR_SET): Define.
7148         (local_wcslen): Define only when needed.
7149         (local_strnlen, local_wcsnlen): New functions.
7150         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
7151         directives that involve a conversion ourselves.
7152         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
7153         wcsnlen, mbrtowc, wcrtomb.
7154         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
7155         * tests/test-vasprintf-posix.c (test_function): Likewise.
7156         * tests/test-snprintf-posix.h (test_function): Likewise.
7157         * tests/test-sprintf-posix.h (test_function): Likewise.
7158         Reported by Ben Pfaff <blp@cs.stanford.edu>.
7159
7160 2009-02-22  Bruno Haible  <bruno@clisp.org>
7161
7162         Implement new clarified decomposition of Hangul syllables.
7163         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
7164         of type LTV, return only a pairwise decomposition.
7165         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
7166         Likewise.
7167         * tests/uninorm/test-decomposition.c (main): Updated expected result.
7168         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
7169         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
7170
7171 2009-02-22  Bruno Haible  <bruno@clisp.org>
7172
7173         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
7174         zero-length results and shrink excess allocated memory.
7175         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
7176         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
7177         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
7178         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
7179         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
7180         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
7181         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
7182         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
7183         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
7184         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
7185         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
7186         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
7187
7188 2009-02-21  Bruno Haible  <bruno@clisp.org>
7189
7190         * doc/gnulib.texi: Include safe-alloc.texi earlier.
7191         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
7192         spaces after a period. Put a space between a macro name and its
7193         argument list. Trivial rewordings.
7194         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
7195         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
7196         (main): Return 0 explicitly.
7197
7198 2009-02-21  Bruno Haible  <bruno@clisp.org>
7199
7200         Tests for module 'uninorm/filter'.
7201         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
7202         * modules/uninorm/filter-tests: New file.
7203
7204         New module 'uninorm/filter'.
7205         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
7206         uninorm_filter_flush, uninorm_filter_free): New declarations.
7207         * lib/uninorm/uninorm-filter.c: New file.
7208         * modules/uninorm/filter: New file.
7209
7210 2009-02-21  Bruno Haible  <bruno@clisp.org>
7211
7212         Tests for module 'uninorm/nfkc'.
7213         * tests/uninorm/test-nfkc.c: New file.
7214         * tests/uninorm/test-u8-nfkc.c: New file.
7215         * tests/uninorm/test-u16-nfkc.c: New file.
7216         * tests/uninorm/test-u32-nfkc.c: New file.
7217         * tests/uninorm/test-u32-nfkc-big.sh: New file.
7218         * tests/uninorm/test-u32-nfkc-big.c: New file.
7219         * modules/uninorm/nfkc-tests: New file.
7220
7221         New module 'uninorm/nfkc'.
7222         * lib/uninorm/nfkc.c: New file.
7223         * modules/uninorm/nfkc: New file.
7224
7225         Tests for module 'uninorm/nfkd'.
7226         * tests/uninorm/test-nfkd.c: New file.
7227         * tests/uninorm/test-u8-nfkd.c: New file.
7228         * tests/uninorm/test-u16-nfkd.c: New file.
7229         * tests/uninorm/test-u32-nfkd.c: New file.
7230         * tests/uninorm/test-u32-nfkd-big.sh: New file.
7231         * tests/uninorm/test-u32-nfkd-big.c: New file.
7232         * modules/uninorm/nfkd-tests: New file.
7233
7234         New module 'uninorm/nfkd'.
7235         * lib/uninorm/nfkd.c: New file.
7236         * modules/uninorm/nfkd: New file.
7237
7238         Tests for module 'uninorm/nfc'.
7239         * tests/uninorm/test-nfc.c: New file.
7240         * tests/uninorm/test-u8-nfc.c: New file.
7241         * tests/uninorm/test-u16-nfc.c: New file.
7242         * tests/uninorm/test-u32-nfc.c: New file.
7243         * tests/uninorm/test-u32-nfc-big.sh: New file.
7244         * tests/uninorm/test-u32-nfc-big.c: New file.
7245         * modules/uninorm/nfc-tests: New file.
7246
7247         New module 'uninorm/nfc'.
7248         * lib/uninorm/nfc.c: New file.
7249         * modules/uninorm/nfc: New file.
7250
7251         Tests for module 'uninorm/nfd'.
7252         * tests/uninorm/test-nfd.c: New file.
7253         * tests/uninorm/test-u8-nfd.c: New file.
7254         * tests/uninorm/test-u16-nfd.c: New file.
7255         * tests/uninorm/test-u32-nfd.c: New file.
7256         * tests/uninorm/test-u32-nfd-big.sh: New file.
7257         * tests/uninorm/test-u32-nfd-big.c: New file.
7258         * tests/uninorm/test-u32-normalize-big.h: New file.
7259         * tests/uninorm/test-u32-normalize-big.c: New file.
7260         * tests/uninorm/NormalizationTest.txt: New file, created from
7261         Unicode 5.1.0 NormalizationTest.txt.
7262         * modules/uninorm/nfd-tests: New file.
7263
7264         New module 'uninorm/nfd'.
7265         * lib/uninorm/nfd.c: New file.
7266         * modules/uninorm/nfd: New file.
7267
7268         New module 'uninorm/u32-normalize'.
7269         * lib/uninorm/u32-normalize.c: New file.
7270         * modules/uninorm/u32-normalize: New file.
7271
7272         New module 'uninorm/u16-normalize'.
7273         * lib/uninorm/u16-normalize.c: New file.
7274         * modules/uninorm/u16-normalize: New file.
7275
7276         New module 'uninorm/u8-normalize'.
7277         * lib/uninorm/u8-normalize.c: New file.
7278         * lib/uninorm/normalize-internal.h: New file.
7279         * lib/uninorm/u-normalize-internal.h: New file.
7280         * modules/uninorm/u8-normalize: New file.
7281
7282         New module 'uninorm/decompose-internal'.
7283         * lib/uninorm/decompose-internal.c: New file.
7284         * modules/uninorm/decompose-internal: New file.
7285
7286         Tests for module 'uninorm/composition'.
7287         * tests/uninorm/test-composition.c: New file.
7288         * modules/uninorm/composition-tests: New file.
7289
7290         New module 'uninorm/composition'.
7291         * lib/uninorm/composition.c: New file.
7292         * lib/uninorm/composition-table.gperf: New file, generated by
7293         gen-uni-tables.
7294         * modules/uninorm/composition: New file.
7295
7296         Tests for module 'uninorm/compat-decomposition'.
7297         * tests/uninorm/test-compat-decomposition.c: New file.
7298         * modules/uninorm/compat-decomposition-tests: New file.
7299
7300         New module 'uninorm/compat-decomposition'.
7301         * lib/uninorm/decompose-internal.h: New file.
7302         * lib/uninorm/compat-decomposition.c: New file.
7303         * modules/uninorm/compat-decomposition: New file.
7304
7305         Tests for module 'uninorm/canonical-decomposition'.
7306         * tests/uninorm/test-canonical-decomposition.c: New file.
7307         * modules/uninorm/canonical-decomposition-tests: New file.
7308
7309         New module 'uninorm/canonical-decomposition'.
7310         * lib/uninorm/canonical-decomposition.c: New file.
7311         * modules/uninorm/canonical-decomposition: New file.
7312
7313         Tests for module 'uninorm/decomposition'.
7314         * tests/uninorm/test-decomposition.c: New file.
7315         * modules/uninorm/decomposition-tests: New file.
7316
7317         New module 'uninorm/decomposition'.
7318         * lib/uninorm/decomposition.c: New file.
7319         * modules/uninorm/decomposition: New file.
7320
7321         New module 'uninorm/decomposition-table'.
7322         * lib/uninorm/decomposition-table.h: New file.
7323         * lib/uninorm/decomposition-table.c: New file.
7324         * lib/uninorm/decomposition-table1.h: New file, generated by
7325         gen-uni-tables.
7326         * lib/uninorm/decomposition-table2.h: New file, generated by
7327         gen-uni-tables.
7328         * modules/uninorm/decomposition-table: New file.
7329
7330         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
7331         (UC_DECOMP_*): New enumeration items.
7332         (get_decomposition): New function.
7333         (struct decomp_table): New type.
7334         (output_decomposition, output_decomposition_tables): New functions.
7335         (unicode_composition_exclusions): New variable.
7336         (fill_composition_exclusions, debug_output_composition_tables): New
7337         functions.
7338         (main): Accept one more argument. Invoke fill_composition_exclusions.
7339         Output decomposition and composition tables.
7340
7341         New module 'uninorm/base'.
7342         * lib/uninorm.h: New file.
7343         * lib/unictype.h: Update comment.
7344         * modules/uninorm/base: New file.
7345
7346 2009-02-21  David Lutterkort  <lutter@redhat.com>
7347
7348         Tests for module 'safe-alloc'.
7349         * tests/test-safe-alloc.c: New file.
7350         * modules/safe-alloc-tests: New file.
7351
7352         New module 'safe-alloc'.
7353         * lib/safe-alloc.h: New file.
7354         * lib/safe-alloc.c: New file.
7355         * m4/safe-alloc.m4: New file.
7356         * modules/safe-alloc: New file.
7357         * doc/safe-alloc.texi: New file.
7358         * doc/gnulib.texi: Include it.
7359         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
7360         safe-alloc.
7361
7362 2009-02-18  Bruno Haible  <bruno@clisp.org>
7363
7364         Fix link error on non-glibc systems.
7365         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
7366         variable.
7367         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
7368
7369 2009-02-18  Jim Meyering  <meyering@redhat.com>
7370
7371         fts: avoid used-uninitialized error due to recent change
7372         * lib/fts.c (fts_read): Guard uses of the new member,
7373         parent->fts_n_dirs_remaining, since it's not relevant for
7374         the parent of a directory specified on the command-line.
7375
7376 2009-02-17  James Youngman  <jay@gnu.org>
7377             Bruno Haible  <bruno@clisp.org>
7378
7379         * m4/include_next.m4: Reformulate comment.
7380
7381 2009-02-16  Jim Meyering  <meyering@redhat.com>
7382
7383         fts: add #if guards so that the fts_lgpl module still builds
7384         * lib/fts.c: Guard just-added hash-table-using parts with
7385         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
7386         Reported by Simon Josefsson.
7387
7388 2009-02-15  Bruno Haible  <bruno@clisp.org>
7389
7390         * modules/array-mergesort-tests: New file.
7391         * tests/test-array-mergesort.c: New file.
7392
7393         New module 'array-mergesort'.
7394         * modules/array-mergesort: New file.
7395         * lib/array-mergesort.h: New file.
7396
7397 2009-02-15  Bruno Haible  <bruno@clisp.org>
7398
7399         Fix 2009-02-07 commit.
7400         * lib/gen-uni-tables.c (output_predicate, output_category,
7401         output_combclass, output_bidi_category, output_decimal_digit,
7402         output_digit, output_numeric, output_mirror, output_scripts,
7403         output_ident_category, output_simple_mapping): Fix format directives.
7404         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
7405
7406 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
7407
7408         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
7409         fixes are available from IBM.
7410
7411 2009-02-13  Jim Meyering  <meyering@redhat.com>
7412
7413         fts: arrange not to stat non-directories in more cases
7414         This makes GNU find (when it doesn't need to stat each file)
7415         *much* more efficient at traversing reiserfs file systems.
7416         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
7417         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
7418         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
7419         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
7420         (leaf_optimization_applies): New function.
7421         (LCO_hash, LCO_compare): New helper functions.
7422         (link_count_optimize_ok): New function.
7423         (fts_stat): Initialize new member (if dir).
7424         (fts_read): Decrement parent's fts_n_dirs_remaining count if
7425         we've just stat'ed a directory.  Skip the stat call when possible.
7426         ---
7427         Note this AFS-related exchange:
7428         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
7429         and note find's pioctl call in find/fstype.c.
7430         But that is necessary only if you want to enable the
7431         optimization for AFS, and for now, I don't.
7432
7433         fts: move a function definition "up" (no semantic change)
7434         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
7435         "up" to precede upcoming use of a related function.
7436
7437 2009-02-11  Jim Meyering  <meyering@redhat.com>
7438
7439         fts: correct internal computation of nlinks (optimization-related)
7440         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
7441         whether the current entry is a directory, so don't test it.
7442
7443 2009-02-10  Bruno Haible  <bruno@clisp.org>
7444
7445         Tests for module 'uniwbrk/ulc-wordbreaks'.
7446         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
7447         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
7448         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
7449
7450         Tests for module 'uniwbrk/u32-wordbreaks'.
7451         * modules/uniwbrk/u32-wordbreaks-tests: New file.
7452         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
7453
7454         Tests for module 'uniwbrk/u16-wordbreaks'.
7455         * modules/uniwbrk/u16-wordbreaks-tests: New file.
7456         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
7457
7458         Tests for module 'uniwbrk/u8-wordbreaks'.
7459         * modules/uniwbrk/u8-wordbreaks-tests: New file.
7460         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
7461
7462 2009-02-10  Bruno Haible  <bruno@clisp.org>
7463
7464         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
7465         property.
7466         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
7467         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
7468         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
7469
7470 2009-02-10  Simon Josefsson  <simon@josefsson.org>
7471
7472         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
7473         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
7474
7475 2009-02-10  Bruno Haible  <bruno@clisp.org>
7476
7477         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
7478         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
7479         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
7480         * lib/unilbrk/u8-possible-linebreaks.c: Update.
7481         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
7482         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
7483
7484 2009-02-09  Simon Josefsson  <simon@josefsson.org>
7485
7486         * lib/sockets.h (gl_fd_to_handle): New function.
7487
7488         * tests/test-sockets.c: Call gl_fd_to_handle.
7489
7490 2009-02-09  Bruno Haible  <bruno@clisp.org>
7491
7492         * doc/havelib.texi: Document the conventions on bi-arch systems.
7493
7494 2009-02-08  Bruno Haible  <bruno@clisp.org>
7495
7496         Document the AC_LIB_LINKFLAGS macro.
7497         * doc/havelib.texi: New file, mostly written on 2005-05-24.
7498         * doc/gnulib.texi: Include it.
7499
7500 2009-02-08  Bruno Haible  <bruno@clisp.org>
7501
7502         Fix wrong order of sections, compared to TOC.
7503         * doc/gnulib.texi: Include relocatable-maint.texi after the
7504         "Regular expressions" node, not before.
7505
7506 2009-02-08  Bruno Haible  <bruno@clisp.org>
7507
7508         Tests for module 'unicase/totitle'.
7509         * modules/unicase/totitle-tests: New file.
7510
7511         Tests for module 'unicase/tolower'.
7512         * modules/unicase/tolower-tests: New file.
7513
7514         Tests for module 'unicase/toupper'.
7515         * modules/unicase/toupper-tests: New file.
7516         * tests/unicase/test-mapping-part1.h: New file.
7517         * tests/unicase/test-mapping-part2.h: New file.
7518
7519         New module 'unicase/totitle'.
7520         * modules/unicase/totitle: New file.
7521         * lib/unicase/totitle.c: New file.
7522
7523         New module 'unicase/tolower'.
7524         * modules/unicase/tolower: New file.
7525         * lib/unicase/tolower.c: New file.
7526
7527         New module 'unicase/toupper'.
7528         * modules/unicase/toupper: New file.
7529         * lib/unicase/toupper.c: New file.
7530         * lib/unicase/simple-mapping.h: New file.
7531
7532         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
7533         (mapping_table): New structure.
7534         (output_simple_mapping): New function.
7535         (main): Invoke output_simple_mapping_test and output_simple_mapping.
7536         * modules/gen-uni-tables (Description): Update.
7537         * lib/unicase/toupper.h: New file, automatically generated by
7538         gen-uni-tables.
7539         * lib/unicase/tolower.h: New file, automatically generated by
7540         gen-uni-tables.
7541         * lib/unicase/totitle.h: New file, automatically generated by
7542         gen-uni-tables.
7543         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
7544         gen-uni-tables.
7545         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
7546         gen-uni-tables.
7547         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
7548         gen-uni-tables.
7549
7550         New module 'unicase/base'.
7551         * modules/unicase/base: New file.
7552         * lib/unicase.h: New file.
7553
7554 2009-02-08  Bruno Haible  <bruno@clisp.org>
7555
7556         New module 'uniwbrk/ulc-wordbreaks'.
7557         * modules/uniwbrk/ulc-wordbreaks: New file.
7558         * lib/uniwbrk/ulc-wordbreaks.c: New file.
7559
7560         New module 'uniwbrk/u32-wordbreaks'.
7561         * modules/uniwbrk/u32-wordbreaks: New file.
7562         * lib/uniwbrk/u32-wordbreaks.c: New file.
7563
7564         New module 'uniwbrk/u16-wordbreaks'.
7565         * modules/uniwbrk/u16-wordbreaks: New file.
7566         * lib/uniwbrk/u16-wordbreaks.c: New file.
7567
7568         New module 'uniwbrk/u8-wordbreaks'.
7569         * modules/uniwbrk/u8-wordbreaks: New file.
7570         * lib/uniwbrk/u8-wordbreaks.c: New file.
7571         * lib/uniwbrk/u-wordbreaks.h: New file.
7572
7573         New module 'uniwbrk/table'.
7574         * modules/uniwbrk/table: New file.
7575         * lib/uniwbrk/wbrktable.h: New file.
7576         * lib/uniwbrk/wbrktable.c: New file.
7577
7578         New module 'uniwbrk/wordbreak-property'.
7579         * modules/uniwbrk/wordbreak-property: New file.
7580         * lib/uniwbrk/wordbreak-property.c: New file.
7581
7582         * lib/gen-uni-tables.c (WBP_*): New enum items.
7583         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
7584         (unicode_org_wbp): New variable.
7585         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
7586         New functions.
7587         (wbp_table): New structure.
7588         (output_wbp, output_wbrk_tables): New functions.
7589         (main): Accept additional argument. Invoke fill_org_wbp,
7590         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
7591         output_wbrk_tables.
7592         * modules/gen-uni-tables (Description): Update.
7593         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
7594         gen-uni-tables.
7595
7596         New module 'uniwbrk/base'.
7597         * modules/uniwbrk/base: New file.
7598         * lib/uniwbrk.h: New file.
7599
7600 2009-02-08  Bruno Haible  <bruno@clisp.org>
7601
7602         Update to Unicode 5.1.0.
7603         * lib/gen-uni-tables.c (is_property_alphabetic): Include
7604         U+2185..U+2188.
7605         (is_property_default_ignorable_code_point): Don't include characters
7606         of category Cc or Cs and not-a-characters.
7607         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
7608         U+0D79, U+109E, U+109F, U+A60C.
7609         * lib/unictype/bidi_of.h: Regenerated.
7610         * lib/unictype/blocks.h: Regenerated.
7611         * lib/unictype/categ_C.h: Regenerated.
7612         * lib/unictype/categ_Cf.h: Regenerated.
7613         * lib/unictype/categ_Cn.h: Regenerated.
7614         * lib/unictype/categ_L.h: Regenerated.
7615         * lib/unictype/categ_Ll.h: Regenerated.
7616         * lib/unictype/categ_Lm.h: Regenerated.
7617         * lib/unictype/categ_Lo.h: Regenerated.
7618         * lib/unictype/categ_Lu.h: Regenerated.
7619         * lib/unictype/categ_M.h: Regenerated.
7620         * lib/unictype/categ_Mc.h: Regenerated.
7621         * lib/unictype/categ_Me.h: Regenerated.
7622         * lib/unictype/categ_Mn.h: Regenerated.
7623         * lib/unictype/categ_N.h: Regenerated.
7624         * lib/unictype/categ_Nd.h: Regenerated.
7625         * lib/unictype/categ_Nl.h: Regenerated.
7626         * lib/unictype/categ_No.h: Regenerated.
7627         * lib/unictype/categ_P.h: Regenerated.
7628         * lib/unictype/categ_Pd.h: Regenerated.
7629         * lib/unictype/categ_Pe.h: Regenerated.
7630         * lib/unictype/categ_Pf.h: Regenerated.
7631         * lib/unictype/categ_Pi.h: Regenerated.
7632         * lib/unictype/categ_Po.h: Regenerated.
7633         * lib/unictype/categ_Ps.h: Regenerated.
7634         * lib/unictype/categ_S.h: Regenerated.
7635         * lib/unictype/categ_Sk.h: Regenerated.
7636         * lib/unictype/categ_Sm.h: Regenerated.
7637         * lib/unictype/categ_So.h: Regenerated.
7638         * lib/unictype/categ_of.h: Regenerated.
7639         * lib/unictype/combining.h: Regenerated.
7640         * lib/unictype/ctype_alnum.h: Regenerated.
7641         * lib/unictype/ctype_alpha.h: Regenerated.
7642         * lib/unictype/ctype_graph.h: Regenerated.
7643         * lib/unictype/ctype_lower.h: Regenerated.
7644         * lib/unictype/ctype_print.h: Regenerated.
7645         * lib/unictype/ctype_punct.h: Regenerated.
7646         * lib/unictype/ctype_upper.h: Regenerated.
7647         * lib/unictype/decdigit.h: Regenerated.
7648         * lib/unictype/digit.h: Regenerated.
7649         * lib/unictype/mirror.h: Regenerated.
7650         * lib/unictype/numeric.h: Regenerated.
7651         * lib/unictype/pr_alphabetic.h: Regenerated.
7652         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
7653         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
7654         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
7655         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
7656         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
7657         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
7658         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
7659         * lib/unictype/pr_combining.h: Regenerated.
7660         * lib/unictype/pr_dash.h: Regenerated.
7661         * lib/unictype/pr_decimal_digit.h: Regenerated.
7662         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
7663         * lib/unictype/pr_deprecated.h: Regenerated.
7664         * lib/unictype/pr_diacritic.h: Regenerated.
7665         * lib/unictype/pr_extender.h: Regenerated.
7666         * lib/unictype/pr_format_control.h: Regenerated.
7667         * lib/unictype/pr_grapheme_base.h: Regenerated.
7668         * lib/unictype/pr_grapheme_extend.h: Regenerated.
7669         * lib/unictype/pr_grapheme_link.h: Regenerated.
7670         * lib/unictype/pr_id_continue.h: Regenerated.
7671         * lib/unictype/pr_id_start.h: Regenerated.
7672         * lib/unictype/pr_ideographic.h: Regenerated.
7673         * lib/unictype/pr_ignorable_control.h: Regenerated.
7674         * lib/unictype/pr_lowercase.h: Regenerated.
7675         * lib/unictype/pr_math.h: Regenerated.
7676         * lib/unictype/pr_numeric.h: Regenerated.
7677         * lib/unictype/pr_other_alphabetic.h: Regenerated.
7678         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
7679         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
7680         * lib/unictype/pr_other_id_continue.h: Regenerated.
7681         * lib/unictype/pr_other_lowercase.h: Regenerated.
7682         * lib/unictype/pr_other_math.h: Regenerated.
7683         * lib/unictype/pr_punctuation.h: Regenerated.
7684         * lib/unictype/pr_sentence_terminal.h: Regenerated.
7685         * lib/unictype/pr_soft_dotted.h: Regenerated.
7686         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
7687         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
7688         * lib/unictype/pr_unified_ideograph.h: Regenerated.
7689         * lib/unictype/pr_uppercase.h: Regenerated.
7690         * lib/unictype/pr_xid_continue.h: Regenerated.
7691         * lib/unictype/pr_xid_start.h: Regenerated.
7692         * lib/unictype/pr_zero_width.h: Regenerated.
7693         * lib/unictype/scripts.h: Regenerated.
7694         * lib/unictype/scripts_byname.gperf: Regenerated.
7695         * lib/unictype/sy_java_ident.h: Regenerated.
7696         * lib/unilbrk/lbrkprop1.h: Regenerated.
7697         * lib/unilbrk/lbrkprop2.h: Regenerated.
7698         * tests/unictype/test-categ_C.c: Regenerated.
7699         * tests/unictype/test-categ_Cf.c: Regenerated.
7700         * tests/unictype/test-categ_Cn.c: Regenerated.
7701         * tests/unictype/test-categ_L.c: Regenerated.
7702         * tests/unictype/test-categ_Ll.c: Regenerated.
7703         * tests/unictype/test-categ_Lm.c: Regenerated.
7704         * tests/unictype/test-categ_Lo.c: Regenerated.
7705         * tests/unictype/test-categ_Lu.c: Regenerated.
7706         * tests/unictype/test-categ_M.c: Regenerated.
7707         * tests/unictype/test-categ_Mc.c: Regenerated.
7708         * tests/unictype/test-categ_Me.c: Regenerated.
7709         * tests/unictype/test-categ_Mn.c: Regenerated.
7710         * tests/unictype/test-categ_N.c: Regenerated.
7711         * tests/unictype/test-categ_Nd.c: Regenerated.
7712         * tests/unictype/test-categ_Nl.c: Regenerated.
7713         * tests/unictype/test-categ_No.c: Regenerated.
7714         * tests/unictype/test-categ_P.c: Regenerated.
7715         * tests/unictype/test-categ_Pd.c: Regenerated.
7716         * tests/unictype/test-categ_Pe.c: Regenerated.
7717         * tests/unictype/test-categ_Pf.c: Regenerated.
7718         * tests/unictype/test-categ_Pi.c: Regenerated.
7719         * tests/unictype/test-categ_Po.c: Regenerated.
7720         * tests/unictype/test-categ_Ps.c: Regenerated.
7721         * tests/unictype/test-categ_S.c: Regenerated.
7722         * tests/unictype/test-categ_Sk.c: Regenerated.
7723         * tests/unictype/test-categ_Sm.c: Regenerated.
7724         * tests/unictype/test-categ_So.c: Regenerated.
7725         * tests/unictype/test-ctype_alnum.c: Regenerated.
7726         * tests/unictype/test-ctype_alpha.c: Regenerated.
7727         * tests/unictype/test-ctype_graph.c: Regenerated.
7728         * tests/unictype/test-ctype_lower.c: Regenerated.
7729         * tests/unictype/test-ctype_print.c: Regenerated.
7730         * tests/unictype/test-ctype_punct.c: Regenerated.
7731         * tests/unictype/test-ctype_upper.c: Regenerated.
7732         * tests/unictype/test-decdigit.h: Regenerated.
7733         * tests/unictype/test-digit.h: Regenerated.
7734         * tests/unictype/test-numeric.h: Regenerated.
7735         * tests/unictype/test-pr_alphabetic.c: Regenerated.
7736         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
7737         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
7738         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
7739         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
7740         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
7741         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
7742         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
7743         * tests/unictype/test-pr_combining.c: Regenerated.
7744         * tests/unictype/test-pr_dash.c: Regenerated.
7745         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
7746         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
7747         * tests/unictype/test-pr_deprecated.c: Regenerated.
7748         * tests/unictype/test-pr_diacritic.c: Regenerated.
7749         * tests/unictype/test-pr_extender.c: Regenerated.
7750         * tests/unictype/test-pr_format_control.c: Regenerated.
7751         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
7752         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
7753         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
7754         * tests/unictype/test-pr_id_continue.c: Regenerated.
7755         * tests/unictype/test-pr_id_start.c: Regenerated.
7756         * tests/unictype/test-pr_ideographic.c: Regenerated.
7757         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
7758         * tests/unictype/test-pr_lowercase.c: Regenerated.
7759         * tests/unictype/test-pr_math.c: Regenerated.
7760         * tests/unictype/test-pr_numeric.c: Regenerated.
7761         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
7762         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
7763         Regenerated.
7764         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
7765         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
7766         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
7767         * tests/unictype/test-pr_other_math.c: Regenerated.
7768         * tests/unictype/test-pr_punctuation.c: Regenerated.
7769         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
7770         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
7771         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
7772         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
7773         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
7774         * tests/unictype/test-pr_uppercase.c: Regenerated.
7775         * tests/unictype/test-pr_xid_continue.c: Regenerated.
7776         * tests/unictype/test-pr_xid_start.c: Regenerated.
7777         * tests/unictype/test-pr_zero_width.c: Regenerated.
7778
7779         Update to Unicode 5.1.0.
7780         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
7781         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
7782         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
7783         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
7784         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
7785         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
7786         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
7787         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
7788         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
7789         (nonspacing_table_ind): Update.
7790         * tests/uniwidth/test-uc_width2.sh: Update expected result.
7791
7792         Update to Unicode 5.1.0.
7793         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
7794         code transform.
7795         * lib/uniname/uniname.c (unicode_character_name,
7796         unicode_name_character): Add the range 0x1Fxxx to the code transform.
7797         * lib/uniname/uninames.h: Regenerated.
7798         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
7799
7800 2009-02-07  Bruno Haible  <bruno@clisp.org>
7801
7802         Merge gen-ctype and gen-lbrk into a single program.
7803         * lib/gen-uni-tables.c: New file, incorporating
7804         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
7805         Add directory prefixes to the names of the generated files.
7806         * lib/unictype/gen-ctype.c: Remove file.
7807         * lib/unilbrk/gen-lbrk.c: Remove file.
7808         * modules/gen-uni-tables: New file.
7809         * modules/unictype/gen-ctype: Remove file.
7810         * modules/unilbrk/gen-lbrk: Remove file.
7811
7812 2009-02-07  Bruno Haible  <bruno@clisp.org>
7813
7814         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
7815
7816         New module 'unistr/u32-strcoll'.
7817         * modules/unistr/u32-strcoll: New file.
7818         * lib/unistr/u32-strcoll.c: New file.
7819
7820         New module 'unistr/u16-strcoll'.
7821         * modules/unistr/u16-strcoll: New file.
7822         * lib/unistr/u16-strcoll.c: New file.
7823
7824         New module 'unistr/u8-strcoll'.
7825         * modules/unistr/u8-strcoll: New file.
7826         * lib/unistr/u8-strcoll.c: New file.
7827         * lib/unistr/u-strcoll.h: New file.
7828
7829 2009-02-07  Bruno Haible  <bruno@clisp.org>
7830
7831         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
7832         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
7833         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
7834         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
7835         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
7836         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
7837
7838 2009-02-07  Bruno Haible  <bruno@clisp.org>
7839
7840         Make 64-bit clean.
7841         * lib/unictype/gen-ctype.c (output_predicate, output_category,
7842         output_combclass, output_bidi_category, output_decimal_digit,
7843         output_digit, output_numeric, output_mirror, output_scripts,
7844         output_ident_category): Use proper width specifier in format strings.
7845
7846 2009-02-07  Bruno Haible  <bruno@clisp.org>
7847
7848         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
7849         failure behaviour.
7850
7851 2009-02-07  Jim Meyering  <meyering@redhat.com>
7852
7853         regex: avoid compilation failure with upcoming gcc-4.4
7854         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
7855         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
7856         "... error: integer overflow in preprocessor expression".
7857
7858 2009-02-05  Ben Pfaff  <blp@gnu.org>
7859
7860         Fix link errors on Windows when close module is used.
7861         * modules/close: Add $(LIB_CLOSE) to Link section.
7862         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
7863         $(LIB_CLOSE) on Windows.
7864
7865 2009-02-05  Jim Meyering  <meyering@redhat.com>
7866
7867         still avoid unused-parameter warnings, but do it cleanly
7868         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
7869         (get_fs_usage): Cast to void instead.
7870         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
7871         (dev_from_mount_options, read_file_system_list): Cast to void.
7872         Prompted by Bruno Haible.
7873
7874 2009-02-04  Jim Meyering  <meyering@redhat.com>
7875
7876         fsusage.c: correct copyright year
7877         * lib/fsusage.c: Reflect year in which the change is pushed into
7878
7879         avoid misc. warnings
7880         * lib/fsusage.c (UNUSED_PARAM): Define.
7881         (get_fs_usage): Mark parameter "disk" as unused.
7882         * lib/getugroups.c (getgrent): Use "void" in prototype.
7883         * lib/mountlist.c: Mark unused parameters.
7884         (read_file_system_list): Declare a local with "const".
7885         * lib/nanosleep.c (getnow): Declare static.
7886         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
7887
7888         dirfd: set errno upon failure
7889         * lib/dirfd.c: Include <errno.h>.
7890         Set errno to ENOTSUP when returning -1.
7891         * modules/dirfd (Depends-on): Add errno.
7892         Suggested by John Kodis <kodis@comcast.net>.
7893
7894 2009-02-01  Bruno Haible  <bruno@clisp.org>
7895
7896         Don't assume sizeof (long) >= sizeof (void *).
7897         * lib/memcmp.c: Include stdint.h.
7898         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
7899         srcp2 to 'const byte *'.
7900         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
7901         types to uintptr_t.
7902         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
7903         * modules/memcmp (Depends-on): Add stdint.
7904         Reported by Ozkan Sezer <sezeroz@gmail.com>.
7905
7906 2009-01-30  Eric Blake  <ebb9@byu.net>
7907
7908         fix more require-before-expand issues
7909         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
7910         expand, AC_PROG_AWK.
7911         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
7912
7913 2009-01-28  Eric Blake  <ebb9@byu.net>
7914
7915         version-etc: use consistent URL formatting
7916         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
7917         Improve formatting.  Use fputs for string without %.
7918
7919 2009-01-28  Jim Meyering  <meyering@redhat.com>
7920
7921         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
7922         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
7923         "underquoted definition of NAME" from autoconf-2.59.
7924
7925 2009-01-28  Bruno Haible  <bruno@clisp.org>
7926
7927         * doc/gnulib.texi: Add "Obsolete modules" to index.
7928
7929 2009-01-28  Jim Meyering  <meyering@redhat.com>
7930
7931         useless-if-before-free: recognize more variants
7932         * build-aux/useless-if-before-free: Also recognize e.g.,
7933         if (NULL != p) free (p);
7934
7935 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
7936
7937         test-getaddrinfo: skip (don't fail) this test when there's no network
7938         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
7939         on the presumption that it means you lack network access.
7940
7941 2009-01-26  Jim Meyering  <meyering@redhat.com>
7942
7943         fflush: avoid warnings on modern systems
7944         * lib/fflush.c (rpl_fflush): Move declarations of locals,
7945         pos and result, into scopes where they're used.
7946
7947 2009-01-26  Eric Blake  <ebb9@byu.net>
7948
7949         Silence warning reintroduced by recent extensions patch.
7950         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
7951         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
7952         autoconf.
7953
7954         Backport improved autoconf semantics of AC_DEFUN_ONCE.
7955         * m4/00gnulib.m4: New file.
7956         * gnulib-tool (func_get_filelist): Always use it.
7957         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
7958         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
7959
7960 2009-01-25  Bruno Haible  <bruno@clisp.org>
7961
7962         Make test-quotearg work on MacOS X and AIX.
7963         * tests/test-quotearg.sh: New file.
7964         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
7965         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
7966         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
7967         include <libintl.h>.
7968         (fake_locale): Remove variable.
7969         (gettext, dgettext, dcgettext): Remove functions.
7970         (main): Instead of setting a fake locale, set a real locale. Call
7971         textdomain and bindtextdomain.
7972         * modules/quotearg-tests (Files): Add the new files.
7973         (Depends-on): Add gettext, setenv, unsetenv.
7974         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
7975         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
7976         Augment TESTS_ENVIRONMENT.
7977
7978 2009-01-25  Bruno Haible  <bruno@clisp.org>
7979
7980         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
7981         fr_FR.ISO8859-1 locale on MacOS X.
7982         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
7983         ja_JP.eucJP locale on MacOS X.
7984         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
7985         zh_CN.GB18030 locale on MacOS X.
7986
7987 2009-01-25  Bruno Haible  <bruno@clisp.org>
7988
7989         Avoid link errors on MacOS X 10.3.
7990         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
7991         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
7992
7993 2009-01-25  Bruno Haible  <bruno@clisp.org>
7994
7995         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
7996         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
7997         * modules/pipe (Files): Remove m4/posix_spawn.m4.
7998         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
7999         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
8000         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
8001         posix_spawnattr_init, posix_spawnattr_setsigmask,
8002         posix_spawnattr_setflags, posix_spawnattr_destroy.
8003
8004         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
8005         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
8006         * modules/execute (Files): Remove m4/posix_spawn.m4.
8007         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
8008         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
8009         posix_spawnattr_init, posix_spawnattr_setsigmask,
8010         posix_spawnattr_setflags, posix_spawnattr_destroy.
8011
8012 2009-01-25  Bruno Haible  <bruno@clisp.org>
8013
8014         * lib/glthread/threadlib.c: Include <stdlib.h>.
8015
8016 2009-01-25  Bruno Haible  <bruno@clisp.org>
8017
8018         * lib/glthread/threadlib.c (dummy): New declaration.
8019
8020 2009-01-25  Bruno Haible  <bruno@clisp.org>
8021
8022         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
8023         multibyte characters also for the GB18030 encoding. Don't crash when
8024         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
8025
8026 2009-01-25  Bruno Haible  <bruno@clisp.org>
8027
8028         Avoid redefining 'struct random_data' on OSF/1 5.1.
8029         * lib/stdlib.in.h: Include <random.h> if it exists.
8030         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
8031         HAVE_RANDOM_H. Include <random.h> when testing whether
8032         'struct random_data' exists.
8033         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
8034
8035 2009-01-25  Bruno Haible  <bruno@clisp.org>
8036
8037         Don't install charset.alias on MacOS X >= 10.3.
8038         * lib/localcharset.c (DARWIN7): New macro.
8039         (get_charset_aliases): Hardcode the result for Darwin7.
8040         * modules/localcharset (install-exec-local): Don't install
8041         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
8042
8043 2009-01-25  Bruno Haible  <bruno@clisp.org>
8044
8045         Don't install charset.alias on mingw and Cygwin.
8046         * modules/localcharset (install-exec-local): Don't install
8047         charset.alias on mingw and Cygwin, if the file does not yet exist.
8048         The result for these platforms is hardcoded in localcharset.c.
8049
8050 2009-01-25  Bruno Haible  <bruno@clisp.org>
8051
8052         Make it possible again to use AC_GNU_SOURCE together with gnulib.
8053         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
8054         before requiring AC_USE_SYSTEM_EXTENSIONS.
8055
8056 2009-01-25  Jim Meyering  <meyering@redhat.com>
8057
8058         c-strtod: avoid warnings
8059         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
8060         "assignment discards qualifiers from pointer target type" warnings.
8061
8062 2009-01-24  Bruno Haible  <bruno@clisp.org>
8063
8064         Add support for non-UTF-8 locales on MacOS X.
8065         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
8066         canonical encodings. For Darwin 7 and newer, don't map traditional
8067         encodings to UTF-8.
8068         Reported by Vincent Lefevre <vincent@vinc17.org>
8069         at <http://savannah.gnu.org/bugs/?25235>.
8070
8071 2009-01-24  Bruno Haible  <bruno@clisp.org>
8072
8073         * doc/gnulib.texi (Obsolete modules): New section.
8074         Reported by Mike Frysinger <vapier@gentoo.org>.
8075
8076 2009-01-24  Bruno Haible  <bruno@clisp.org>
8077
8078         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
8079         (%.dvi): New rule.
8080
8081 2009-01-24  Bruno Haible  <bruno@clisp.org>
8082
8083         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
8084         Reported by Eric Blake.
8085
8086 2009-01-24  Bruno Haible  <bruno@clisp.org>
8087
8088         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
8089         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
8090         Reported by Gary V. Vaughan <gary@gnu.org>.
8091
8092 2009-01-24  Bruno Haible  <bruno@clisp.org>
8093
8094         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
8095
8096 2009-01-23  Bruno Haible  <bruno@clisp.org>
8097
8098         Make c-strtod, c-strtold usable in libraries.
8099         * lib/c-strtod.c: Include string.h instead of xalloc.h.
8100         (C_STRTOD): Call strdup instead of xstrdup.
8101         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
8102         * modules/c-strtold (Depends-on): Likewise.
8103         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
8104         * NEWS: Mention the change.
8105         Reported by Michael Gold <mgold@ncf.ca>.
8106
8107 2009-01-23  Jim Meyering  <meyering@redhat.com>
8108
8109         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
8110         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
8111         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
8112
8113 2009-01-23  Simon Josefsson  <simon@josefsson.org>
8114
8115         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
8116         GNU CoreUtils.
8117         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
8118         * modules/version-etc (Description): Update.
8119
8120 2009-01-22  Bruno Haible  <bruno@clisp.org>
8121
8122         Cache the C locale object.
8123         * lib/c-strtod.c (c_locale_cache): New variable.
8124         (c_locale): New function.
8125         (C_STRTOD): Use it, and don't call freelocale.
8126         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
8127         Suggested by Paolo Bonzini.
8128
8129 2009-01-21  Bruno Haible  <bruno@clisp.org>
8130
8131         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
8132         conditions other than overflow.
8133
8134 2009-01-21  Bruno Haible  <bruno@clisp.org>
8135
8136         * lib/c-strtod.c: Include errno.h.
8137         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
8138         value from STRTOD_L and STRTOD.
8139
8140 2009-01-21  Bruno Haible  <bruno@clisp.org>
8141         and Jim Meyering  <meyering@redhat.com>
8142
8143         nanosleep: skip configure test (fail it) for apple universal builds
8144         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
8145         universal builds, assume that nanosleep does not work.
8146         * modules/nanosleep (Depends-on): Add multiarch.
8147
8148         mktime: skip configure test (fail it) for apple universal builds
8149         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
8150         universal builds, assume that mktime does not work.
8151         * modules/mktime (Depends-on): Add multiarch.
8152
8153 2009-01-21  Eric Blake  <ebb9@byu.net>
8154
8155         multiarch: avoid expand-before-require warning
8156         * modules/multiarch (configure.ac): Require, rather than expand,
8157         gl_MULTIARCH.
8158         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
8159         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
8160         enforce that all clients require it.  Partial reversion of
8161         2008-12-29 patch.
8162
8163         error: avoid expand-before-require warning
8164         * modules/errno (configure.ac): Require, rather than expand,
8165         gl_HEADER_ERRNO_H.
8166         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
8167         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
8168         enforce that all clients require it.
8169
8170         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
8171         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
8172         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
8173         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
8174
8175 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
8176
8177         Revert:
8178         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
8179
8180         regex: do not depend on obsolete modules.
8181         * modules/regex: Remove memcmp and memmove.
8182
8183 2009-01-20  Bruno Haible  <bruno@clisp.org>
8184
8185         Make the 'link' module link on Windows NT 4.
8186         * lib/link.c (_WIN32_WINNT): Don't define.
8187         (CreateHardLinkFuncType): New type.
8188         (CreateHardLinkFunc, initialized): New variables.
8189         (initialize): New function.
8190         (link): Invoke CreateHardLink indirectly through the function pointer.
8191
8192 2009-01-20  Bruno Haible  <bruno@clisp.org>
8193
8194         Fix compilation failure on mingw.
8195         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
8196
8197 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
8198
8199         * doc/c-strtod.texi: Mention a couple of restrictions.
8200
8201 2009-01-20  Jim Meyering  <meyering@redhat.com>
8202
8203         gettimeofday: move more declarations out of functions
8204         * lib/gettimeofday.c: Move extern declarations of tzset and
8205         gmtime out of containing functions.  Prompted by Bruno Haible.
8206
8207 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
8208
8209         regex: do not depend on obsolete modules.
8210         * modules/regex: Remove memcmp and memmove.
8211
8212 2009-01-19  Bruno Haible  <bruno@clisp.org>
8213
8214         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
8215         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
8216         gl_BIGENDIAN, not AC_C_BIGENDIAN.
8217         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
8218         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
8219
8220 2009-01-19  Bruno Haible  <bruno@clisp.org>
8221
8222         * tests/test-link.c: Include <errno.h>.
8223         (main): Exit with code 77 when a hard link cannot be created due to
8224         the file system.
8225         * tests/test-link.sh: Skip test when a hard link cannot be created due
8226         to the file system.
8227         Suggested by Eric Blake.
8228
8229 2009-01-19  Martin Lambers  <marlam@marlam.de>
8230
8231         * modules/link-tests: New file.
8232         * tests/test-link.sh: New file.
8233         * tests/test-link.c: New file.
8234
8235 2009-01-19  Eric Blake  <ebb9@byu.net>
8236
8237         doc: mention another function added in cygwin 1.7.0
8238         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
8239         Another new function in cygwin 1.7.
8240
8241 2009-01-19  Bruno Haible  <bruno@clisp.org>
8242
8243         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
8244         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
8245         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
8246         gl_BIGENDIAN, not AC_C_BIGENDIAN.
8247         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
8248         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
8249         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
8250         * m4/md4.m4 (gl_MD4): Likewise.
8251         * m4/md5.m4 (gl_MD5): Likewise.
8252         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
8253         * m4/sha1.m4 (gl_SHA1): Likewise.
8254         * m4/sha256.m4 (gl_SHA256): Likewise.
8255         * m4/sha512.m4 (gl_SHA512): Likewise.
8256
8257 2009-01-19  Bruno Haible  <bruno@clisp.org>
8258
8259         * modules/uniname/uniname-tests (Depends-on): Add progname.
8260         * tests/uniname/test-uninames.c: Include progname.h.
8261         (main): Call set_program_name.
8262
8263         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
8264         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
8265         (main): Call set_program_name.
8266
8267         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
8268         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
8269         (main): Call set_program_name.
8270
8271         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
8272         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
8273         (main): Call set_program_name.
8274
8275         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
8276         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
8277         (main): Call set_program_name.
8278
8279         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
8280         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
8281         (main): Call set_program_name.
8282
8283         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
8284         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
8285         (main): Call set_program_name.
8286
8287         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
8288         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
8289         (main): Call set_program_name.
8290
8291         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
8292         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
8293         (main): Call set_program_name.
8294
8295 2009-01-19  Eric Blake  <ebb9@byu.net>
8296
8297         test-unistd: test previous patch
8298         * tests/test-unistd.c: Test *_FILENO macros.
8299
8300         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
8301         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
8302         Guarantee a definition.
8303         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
8304         * modules/unistd-safer (Depends-on): Add dependency on unistd.
8305         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
8306         * lib/dup-safer.c (STDERR_FILENO): Likewise.
8307         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
8308         Likewise.
8309         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
8310         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
8311         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
8312         Likewise.
8313         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
8314         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
8315         (STDERR_FILENO): Likewise.
8316         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
8317         (STDERR_FILENO): Likewise.
8318         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
8319         (STDERR_FILENO): Likewise.
8320         Reported by Elbert Pol.
8321
8322 2009-01-19  Eric Blake  <ebb9@byu.net>
8323
8324         doc: mention more functions added in cygwin 1.7.0
8325         * doc/posix-functions/abort.texi (abort): Update wording related
8326         to cygwin.
8327         * doc/posix-functions/daylight.texi (daylight): Likewise.
8328         * doc/posix-functions/optarg.texi (optarg): Likewise.
8329         * doc/posix-functions/optarg.texi (opterr): Likewise.
8330         * doc/posix-functions/optarg.texi (optind): Likewise.
8331         * doc/posix-functions/optarg.texi (optopt): Likewise.
8332         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
8333         worked in 1.5.x, and was withdrawn in 1.7.
8334         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
8335         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
8336         cygwin versions.
8337         * doc/posix-functions/perror.texi (perror): Likewise.
8338         * doc/posix-functions/printf.texi (printf): Likewise.
8339         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
8340         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
8341         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
8342         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
8343         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
8344         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
8345         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
8346         Likewise.
8347         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
8348         Likewise.
8349         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
8350         this function.
8351         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
8352         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
8353         Likewise.
8354         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
8355         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
8356         * doc/posix-functions/confstr.texi (confstr): Likewise.
8357         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
8358         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
8359         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
8360         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
8361         * doc/posix-functions/fputws.texi (fputws): Likewise.
8362         * doc/posix-functions/fwide.texi (fwide): Likewise.
8363         * doc/posix-functions/getwc.texi (getwc): Likewise.
8364         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
8365         * doc/posix-functions/putwc.texi (putwc): Likewise.
8366         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
8367         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
8368         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
8369         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
8370         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
8371         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
8372         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
8373         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
8374         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
8375         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
8376         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
8377
8378 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
8379
8380         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
8381         * lib/ioctl.c: Include <sys/ioctl.h>.
8382
8383 2009-01-19  Simon Josefsson  <simon@josefsson.org>
8384
8385         * modules/getdate-tests (Depends-on): Add progname.
8386         * tests/test-getdate.c: Use progname module, to avoid link errors
8387         on non-glibc systems.
8388
8389 2009-01-18  Simon Josefsson  <simon@josefsson.org>
8390
8391         * modules/filenamecat-tests (Depends-on): Add progname.
8392         * modules/fstrcmp-tests (Depends-on): Likewise.
8393
8394         * tests/test-filenamecat.c: Use progname module, to avoid link
8395         errors on non-glibc systems.
8396         * tests/test-fstrcmp.c: Likewise.
8397
8398 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
8399
8400         gettimeofday: avoid warning: nested extern declaration of 'localtime'
8401         * lib/gettimeofday.c: Move extern declaration out of function.
8402
8403 2009-01-18  Bruno Haible  <bruno@clisp.org>
8404
8405         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
8406         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
8407         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
8408
8409 2009-01-18  Bruno Haible  <bruno@clisp.org>
8410
8411         * lib/strftime.c (MEMPCPY): Remove unused macro.
8412         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
8413
8414 2009-01-18  Martin Lambers  <marlam@marlam.de>
8415
8416         New module 'link'.
8417         * lib/unistd.in.h (link): New declaration.
8418         * lib/link.c: New file.
8419         * m4/link.m4: New file.
8420         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
8421         HAVE_LINK.
8422         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
8423         * modules/link: New file.
8424         * doc/posix-functions/link.texi: Mention the new module.
8425
8426 2009-01-18  Bruno Haible  <bruno@clisp.org>
8427
8428         * tests/test-avltree_list.c (main): Call set_program_name.
8429         * tests/test-avltree_oset.c (main): Likewise.
8430         * tests/test-obstack-printf.c: Include progname.h.
8431         (main): Call set_program_name.
8432         * tests/test-quotearg.c: Include progname.h.
8433         (main): Call set_program_name.
8434         * tests/test-xmemdup0.c: Include progname.h.
8435         (main): Call set_program_name.
8436
8437 2009-01-18  Bruno Haible  <bruno@clisp.org>
8438
8439         New module 'alphasort'.
8440         * lib/dirent.in.h (alphasort): New declaration.
8441         * lib/alphasort.c: New file, from glibc with modifications.
8442         * m4/alphasort.m4: New file.
8443         * modules/alphasort: New file.
8444         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
8445         HAVE_ALPHASORT.
8446         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
8447         HAVE_ALPHASORT.
8448         * doc/posix-functions/alphasort.texi: Mention the new module and the
8449         portability problems.
8450
8451 2009-01-18  Bruno Haible  <bruno@clisp.org>
8452
8453         New module 'scandir'.
8454         * lib/dirent.in.h (scandir): New declaration.
8455         * lib/scandir.c: New file, from glibc with modifications.
8456         * m4/scandir.m4: New file.
8457         * modules/scandir: New file.
8458         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
8459         HAVE_SCANDIR.
8460         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
8461         HAVE_SCANDIR.
8462         * doc/posix-functions/scandir.texi: Mention the new module and the
8463         portability problems.
8464
8465 2009-01-17  Bruno Haible  <bruno@clisp.org>
8466
8467         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
8468         Update documentation.
8469         (func_remove_suffix): Escape all dots in the suffix. Update
8470         documentation.
8471         (func_filter_filelist): Update documentation.
8472         Reported by Ralf Wildenhues.
8473
8474 2009-01-17  Bruno Haible  <bruno@clisp.org>
8475
8476         * modules/dprintf-posix-tests: New file.
8477         * tests/test-dprintf-posix.sh: New file.
8478         * tests/test-dprintf-posix.c: New file.
8479
8480         New modules 'dprintf', 'dprintf-posix'.
8481         * lib/stdio.in.h (dprintf): New declaration.
8482         * lib/dprintf.c: New file.
8483         * m4/dprintf.m4: New file.
8484         * m4/dprintf-posix.m4: New file.
8485         * modules/dprintf: New file.
8486         * modules/dprintf-posix: New file.
8487         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
8488         HAVE_DPRINTF, REPLACE_DPRINTF.
8489         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
8490         HAVE_DPRINTF, REPLACE_DPRINTF.
8491         * doc/posix-functions/dprintf.texi: Mention the new modules.
8492
8493 2009-01-17  Bruno Haible  <bruno@clisp.org>
8494
8495         * modules/vdprintf-posix-tests: New file.
8496         * tests/test-vdprintf-posix.sh: New file.
8497         * tests/test-vdprintf-posix.c: New file.
8498
8499         New modules 'vdprintf', 'vdprintf-posix'.
8500         * lib/stdio.in.h (vdprintf): New declaration.
8501         * lib/vdprintf.c: New file.
8502         * m4/vdprintf.m4: New file.
8503         * m4/vdprintf-posix.m4: New file.
8504         * modules/vdprintf: New file.
8505         * modules/vdprintf-posix: New file.
8506         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
8507         HAVE_VDPRINTF, REPLACE_VDPRINTF.
8508         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
8509         HAVE_VDPRINTF, REPLACE_VDPRINTF.
8510         * doc/posix-functions/vdprintf.texi: Mention the new modules.
8511
8512 2009-01-17  Bruno Haible  <bruno@clisp.org>
8513
8514         Fix replacement of fopen on mingw.
8515         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
8516         mingw.
8517
8518 2009-01-17  Bruno Haible  <bruno@clisp.org>
8519
8520         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
8521         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
8522
8523 2009-01-17  Bruno Haible  <bruno@clisp.org>
8524
8525         Avoid test-fflush2.sh failure on mingw.
8526         * tests/test-fflush2.c: Include binary-io.h.
8527         (main): Put standard input into binary mode.
8528         * modules/fflush-tests (Depends-on): Add binary-io.
8529
8530 2009-01-17  Bruno Haible  <bruno@clisp.org>
8531
8532         * lib/wchar.in.h: In another particular situation, include only the
8533         system's <wchar.h> file.
8534         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
8535         Reported by Albert Chin-A-Young <china@thewrittenword.com>
8536         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
8537
8538 2009-01-17  Bruno Haible  <bruno@clisp.org>
8539
8540         Support for stripping executables in --enable-relocatable.
8541         * build-aux/install-reloc: Expect one more argument, or an environment
8542         variable RELOC_STRIP_PROG. If set, strip the destination program and
8543         its wrapper.
8544         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
8545         RELOC_STRIP_PROG.
8546         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
8547         to set RELOCATABLE_STRIP.
8548         * NEWS: Mention the new Makefile requirement.
8549
8550 2009-01-17  Bruno Haible  <bruno@clisp.org>
8551
8552         * build-aux/install-reloc: Remove debugging information left over by
8553         C compiler on MacOS X.
8554
8555 2009-01-17  Bruno Haible  <bruno@clisp.org>
8556
8557         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
8558         * lib/progreloc.c (find_executable): Fix type of pointer passed to
8559         _NSGetExecutablePath.
8560
8561 2009-01-16  Jim Meyering  <meyering@redhat.com>
8562
8563         strerror: avoid warnings about discarding "const"
8564         * lib/strerror.c (rpl_strerror): Instead of returning a const
8565         string from each and every "case", use a variable, and add a single
8566         cast after the switch.
8567
8568 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
8569
8570         * lib/arpa_inet.in.h: Add extern "C" block for C++.
8571
8572 2009-01-16  Bruno Haible  <bruno@clisp.org>
8573
8574         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
8575         array initializer syntax that also works in C++ mode.
8576         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
8577
8578 2009-01-16  Jim Meyering  <meyering@redhat.com>
8579
8580         poll: suppress a warning
8581         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
8582         to ignore "...unsigned expression < 0 is always false" warnings.
8583
8584 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
8585
8586         poll: remove declarations of unused variables
8587         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
8588         sockbuf and optlen.
8589
8590 2009-01-15  Bruno Haible  <bruno@clisp.org>
8591
8592         Make fflush-after-ungetc POSIX compliant on BSD systems.
8593         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
8594         (clear_ungetc_buffer): Implement also for other systems.
8595         (rpl_fflush): On glibc systems, invoke
8596         clear_ungetc_buffer_preserving_position. Otherwise, invoke
8597         clear_ungetc_buffer after fetching the stream's position, not before.
8598
8599 2009-01-15  Bruno Haible  <bruno@clisp.org>
8600
8601         Make fflush-after-ungetc POSIX compliant on glibc systems.
8602         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
8603         after ungetc.
8604         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
8605         (rpl_fflush): On glibc systems, simply call the system's fflush
8606         function after clearing the ungetc buffer.
8607         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
8608         Instead, lseek only to the end of file, then use the system's fseeko
8609         for the rest. On glibc systems, reset the EOF indicator bit.
8610
8611 2009-01-15  Jim Meyering  <meyering@redhat.com>
8612
8613         openmp.m4: revert quote-adding change, for portability to older autoconf
8614         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
8615         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
8616         Simon Josefsson noticed the problem when using autoconf-2.61.
8617
8618 2009-01-15  Bruno Haible  <bruno@clisp.org>
8619
8620         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
8621         * tests/test-fflush2.c (ASSERT): Always fail.
8622         (main): Add two tests for fflush() after ungetc(), taking into account
8623         the Austin Group's clarification.
8624         Suggested by Eric Blake.
8625
8626 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
8627
8628         mktime.m4: remove K&R-style function prototypes
8629         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
8630         for the Sun C++ compiler.
8631
8632 2009-01-14  Bruno Haible  <bruno@clisp.org>
8633
8634         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
8635         while including <wchar.h>.
8636         * lib/wchar.in.h: In two particular situations on HP-UX, include only
8637         the system's <wchar.h> file.
8638         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
8639
8640 2009-01-14  Bruno Haible  <bruno@clisp.org>
8641
8642         * m4/csharp.m4: Don't mention gettext on the serial number line.
8643         * m4/csharpexec.m4: Likewise.
8644         * m4/eaccess.m4: Likewise.
8645         * m4/javaexec.m4: Likewise.
8646         * m4/sig_atomic_t.m4: Likewise.
8647         * m4/tmpdir.m4: Likewise.
8648         * m4/intldir.m4: Bump gettext version.
8649         * m4/lib-ld.m4: Likewise.
8650
8651 2009-01-14  Bruno Haible  <bruno@clisp.org>
8652
8653         * lib/progname.c (set_program_name): Add more comments.
8654         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
8655
8656 2009-01-14  Simon Josefsson  <simon@josefsson.org>
8657
8658         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
8659         were sys/stat.h does not define it.
8660
8661 2009-01-14  Jim Meyering  <meyering@redhat.com>
8662
8663         many *.m4 files: improve m4 quoting
8664         99% of this change was performed by running the following commands:
8665         git ls-files | grep '\.m4$' | xargs perl -pi \
8666           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
8667           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
8668           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
8669           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
8670         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
8671         The remainder were to add Copyright dates, increment serial numbers,
8672         undo some changes in comments, exclude m4/intl.m4, and add quotes
8673         around the "1" in ",1" where the unusual spacing prohibited the
8674         above regexps from doing the job.  For more details, see
8675         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
8676         * m4/acl.m4: Modified.
8677         * m4/afs.m4: Likewise.
8678         * m4/alloca.m4: Likewise.
8679         * m4/argp.m4: Likewise.
8680         * m4/argz.m4: Likewise.
8681         * m4/atexit.m4: Likewise.
8682         * m4/bison-i18n.m4: Likewise.
8683         * m4/bison.m4: Likewise.
8684         * m4/byteswap.m4: Likewise.
8685         * m4/c-stack.m4: Likewise.
8686         * m4/c-strtod.m4: Likewise.
8687         * m4/calloc.m4: Likewise.
8688         * m4/canonicalize-lgpl.m4: Likewise.
8689         * m4/chown.m4: Likewise.
8690         * m4/clock_time.m4: Likewise.
8691         * m4/codeset.m4: Likewise.
8692         * m4/copy-file.m4: Likewise.
8693         * m4/csharp.m4: Likewise.
8694         * m4/csharpcomp.m4: Likewise.
8695         * m4/csharpexec.m4: Likewise.
8696         * m4/d-ino.m4: Likewise.
8697         * m4/d-type.m4: Likewise.
8698         * m4/dirfd.m4: Likewise.
8699         * m4/double-slash-root.m4: Likewise.
8700         * m4/eaccess.m4: Likewise.
8701         * m4/eealloc.m4: Likewise.
8702         * m4/environ.m4: Likewise.
8703         * m4/errno_h.m4: Likewise.
8704         * m4/euidaccess.m4: Likewise.
8705         * m4/execute.m4: Likewise.
8706         * m4/fatal-signal.m4: Likewise.
8707         * m4/fchdir.m4: Likewise.
8708         * m4/fcntl_h.m4: Likewise.
8709         * m4/fileblocks.m4: Likewise.
8710         * m4/filenamecat.m4: Likewise.
8711         * m4/findprog.m4: Likewise.
8712         * m4/flexmember.m4: Likewise.
8713         * m4/fnmatch.m4: Likewise.
8714         * m4/fopen.m4: Likewise.
8715         * m4/fpending.m4: Likewise.
8716         * m4/fprintf-posix.m4: Likewise.
8717         * m4/free.m4: Likewise.
8718         * m4/frexp.m4: Likewise.
8719         * m4/frexpl.m4: Likewise.
8720         * m4/fsusage.m4: Likewise.
8721         * m4/ftruncate.m4: Likewise.
8722         * m4/gc-camellia.m4: Likewise.
8723         * m4/gc-random.m4: Likewise.
8724         * m4/gc.m4: Likewise.
8725         * m4/getaddrinfo.m4: Likewise.
8726         * m4/getcwd-abort-bug.m4: Likewise.
8727         * m4/getcwd-path-max.m4: Likewise.
8728         * m4/getdate.m4: Likewise.
8729         * m4/getdomainname.m4: Likewise.
8730         * m4/getgroups.m4: Likewise.
8731         * m4/gethostname.m4: Likewise.
8732         * m4/gethrxtime.m4: Likewise.
8733         * m4/getline.m4: Likewise.
8734         * m4/getloadavg.m4: Likewise.
8735         * m4/getndelim2.m4: Likewise.
8736         * m4/getpass.m4: Likewise.
8737         * m4/gettext.m4: Likewise.
8738         * m4/gettime.m4: Likewise.
8739         * m4/gettimeofday.m4: Likewise.
8740         * m4/gnulib-common.m4: Likewise.
8741         * m4/group-member.m4: Likewise.
8742         * m4/host-os.m4: Likewise.
8743         * m4/iconv.m4: Likewise.
8744         * m4/iconv_open.m4: Likewise.
8745         * m4/inet_ntop.m4: Likewise.
8746         * m4/inet_pton.m4: Likewise.
8747         * m4/inline.m4: Likewise.
8748         * m4/intldir.m4: Likewise.
8749         * m4/intlmacosx.m4: Likewise.
8750         * m4/intmax.m4: Likewise.
8751         * m4/intmax_t.m4: Likewise.
8752         * m4/inttypes.m4: Likewise.
8753         * m4/inttypes_h.m4: Likewise.
8754         * m4/inttypes-pri.m4: Likewise.
8755         * m4/isapipe.m4: Likewise.
8756         * m4/isnand.m4: Likewise.
8757         * m4/isnanf.m4: Likewise.
8758         * m4/isnanl.m4: Likewise.
8759         * m4/javacomp.m4: Likewise.
8760         * m4/javaexec.m4: Likewise.
8761         * m4/jm-winsz1.m4: Likewise.
8762         * m4/jm-winsz2.m4: Likewise.
8763         * m4/lchown.m4: Likewise.
8764         * m4/lcmessage.m4: Likewise.
8765         * m4/ldexpl.m4: Likewise.
8766         * m4/lib-ld.m4: Likewise.
8767         * m4/lib-link.m4: Likewise.
8768         * m4/libsigsegv.m4: Likewise.
8769         * m4/link-follow.m4: Likewise.
8770         * m4/localcharset.m4: Likewise.
8771         * m4/locale-fr.m4: Likewise.
8772         * m4/locale-ja.m4: Likewise.
8773         * m4/locale-tr.m4: Likewise.
8774         * m4/locale-zh.m4: Likewise.
8775         * m4/lock.m4: Likewise.
8776         * m4/longlong.m4: Likewise.
8777         * m4/ls-mntd-fs.m4: Likewise.
8778         * m4/lstat.m4: Likewise.
8779         * m4/malloc.m4: Likewise.
8780         * m4/mathl.m4: Likewise.
8781         * m4/mbrtowc.m4: Likewise.
8782         * m4/mbstate_t.m4: Likewise.
8783         * m4/mbswidth.m4: Likewise.
8784         * m4/memchr.m4: Likewise.
8785         * m4/memcmp.m4: Likewise.
8786         * m4/memcpy.m4: Likewise.
8787         * m4/memmem.m4: Likewise.
8788         * m4/memmove.m4: Likewise.
8789         * m4/mempcpy.m4: Likewise.
8790         * m4/memrchr.m4: Likewise.
8791         * m4/memset.m4: Likewise.
8792         * m4/minmax.m4: Likewise.
8793         * m4/mkdir-slash.m4: Likewise.
8794         * m4/mkdtemp.m4: Likewise.
8795         * m4/mktime.m4: Likewise.
8796         * m4/mmap-anon.m4: Likewise.
8797         * m4/mountlist.m4: Likewise.
8798         * m4/nanosleep.m4: Likewise.
8799         * m4/nls.m4: Likewise.
8800         * m4/nocrash.m4: Likewise.
8801         * m4/open.m4: Likewise.
8802         * m4/openat.m4: Likewise.
8803         * m4/openmp.m4: Likewise.
8804         * m4/pathmax.m4: Likewise.
8805         * m4/perl.m4: Likewise.
8806         * m4/physmem.m4: Likewise.
8807         * m4/pipe.m4: Likewise.
8808         * m4/po.m4: Likewise.
8809         * m4/poll.m4: Likewise.
8810         * m4/posixtm.m4: Likewise.
8811         * m4/posixver.m4: Likewise.
8812         * m4/printf-frexp.m4: Likewise.
8813         * m4/printf-frexpl.m4: Likewise.
8814         * m4/printf-posix.m4: Likewise.
8815         * m4/printf-posix-rpl.m4: Likewise.
8816         * m4/printf.m4: Likewise.
8817         * m4/progtest.m4: Likewise.
8818         * m4/putenv.m4: Likewise.
8819         * m4/readline.m4: Likewise.
8820         * m4/readlink.m4: Likewise.
8821         * m4/readutmp.m4: Likewise.
8822         * m4/realloc.m4: Likewise.
8823         * m4/regex.m4: Likewise.
8824         * m4/relocatable.m4: Likewise.
8825         * m4/relocatable-lib.m4: Likewise.
8826         * m4/rename-dest-slash.m4: Likewise.
8827         * m4/rename.m4: Likewise.
8828         * m4/rmdir-errno.m4: Likewise.
8829         * m4/rmdir.m4: Likewise.
8830         * m4/roundf.m4: Likewise.
8831         * m4/roundl.m4: Likewise.
8832         * m4/rpmatch.m4: Likewise.
8833         * m4/save-cwd.m4: Likewise.
8834         * m4/selinux-selinux-h.m4: Likewise.
8835         * m4/setenv.m4: Likewise.
8836         * m4/settime.m4: Likewise.
8837         * m4/sig2str.m4: Likewise.
8838         * m4/sig_atomic_t.m4: Likewise.
8839         * m4/signalblocking.m4: Likewise.
8840         * m4/signbit.m4: Likewise.
8841         * m4/sigpipe.m4: Likewise.
8842         * m4/sockets.m4: Likewise.
8843         * m4/sockpfaf.m4: Likewise.
8844         * m4/st_dm_mode.m4: Likewise.
8845         * m4/stat-time.m4: Likewise.
8846         * m4/stdbool.m4: Likewise.
8847         * m4/stdint.m4: Likewise.
8848         * m4/stdint_h.m4: Likewise.
8849         * m4/stpcpy.m4: Likewise.
8850         * m4/stpncpy.m4: Likewise.
8851         * m4/strcase.m4: Likewise.
8852         * m4/strchrnul.m4: Likewise.
8853         * m4/strcspn.m4: Likewise.
8854         * m4/strdup.m4: Likewise.
8855         * m4/strftime.m4: Likewise.
8856         * m4/strndup.m4: Likewise.
8857         * m4/strnlen.m4: Likewise.
8858         * m4/strpbrk.m4: Likewise.
8859         * m4/strptime.m4: Likewise.
8860         * m4/strsep.m4: Likewise.
8861         * m4/strtod.m4: Likewise.
8862         * m4/strtoimax.m4: Likewise.
8863         * m4/strtok_r.m4: Likewise.
8864         * m4/strtol.m4: Likewise.
8865         * m4/strtoll.m4: Likewise.
8866         * m4/strtoul.m4: Likewise.
8867         * m4/strtoull.m4: Likewise.
8868         * m4/strtoumax.m4: Likewise.
8869         * m4/strverscmp.m4: Likewise.
8870         * m4/threadlib.m4: Likewise.
8871         * m4/timegm.m4: Likewise.
8872         * m4/tm_gmtoff.m4: Likewise.
8873         * m4/tmpdir.m4: Likewise.
8874         * m4/tmpfile.m4: Likewise.
8875         * m4/tzset.m4: Likewise.
8876         * m4/uintmax_t.m4: Likewise.
8877         * m4/unlinkdir.m4: Likewise.
8878         * m4/unlocked-io.m4: Likewise.
8879         * m4/uptime.m4: Likewise.
8880         * m4/userspec.m4: Likewise.
8881         * m4/utimbuf.m4: Likewise.
8882         * m4/utime.m4: Likewise.
8883         * m4/utimes-null.m4: Likewise.
8884         * m4/utimes.m4: Likewise.
8885         * m4/vararrays.m4: Likewise.
8886         * m4/vasnprintf.m4: Likewise.
8887         * m4/vfprintf-posix.m4: Likewise.
8888         * m4/vprintf-posix.m4: Likewise.
8889         * m4/wait-process.m4: Likewise.
8890         * m4/wchar_t.m4: Likewise.
8891         * m4/wint_t.m4: Likewise.
8892         * m4/write-any-file.m4: Likewise.
8893         * m4/yield.m4: Likewise.
8894
8895 2009-01-13  Bruno Haible  <bruno@clisp.org>
8896
8897         Avoid test-copy-file.sh failures when ACL support insufficient.
8898         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
8899         TESTS_ENVIRONMENT.
8900         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
8901         Reported by Jim Meyering.
8902
8903 2009-01-13  Bruno Haible  <bruno@clisp.org>
8904
8905         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
8906         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
8907         * modules/unistdio/u8-printf-parse (Files): Likewise.
8908         * modules/unistdio/u32-printf-parse (Files): Likewise.
8909         * modules/unistdio/ulc-printf-parse (Files): Likewise.
8910
8911 2009-01-13  Simon Josefsson  <simon@josefsson.org>
8912
8913         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
8914         and m4/inttypes_h.m4 too.
8915
8916 2009-01-12  Eric Blake  <ebb9@byu.net>
8917
8918         tests: IRIX 6.2 cc can't compile -0.0 into .data
8919         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
8920         rather than at compile-time.
8921         * tests/test-floorl.c (minus_zero): Likewise.
8922         * tests/test-frexpl.c (minus_zero): Likewise.
8923         * tests/test-isnan.c (minus_zerol): Likewise.
8924         * tests/test-isnanl.h (minus_zero): Likewise.
8925         * tests/test-ldexpl.c (minus_zero): Likewise.
8926         * tests/test-roundl.c (minus_zero): Likewise.
8927         * tests/test-signbit.c (minus_zerol): Likewise.
8928         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
8929         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
8930         * tests/test-truncl.c (minus_zero): Likewise.
8931         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
8932         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
8933         Reported by Tom G. Christensen and Nelson H. F. Beebe.
8934
8935 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
8936
8937         regex: fix glibc bug 9697
8938         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
8939         handling.
8940
8941 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
8942
8943         regex: fix glibc bug 697
8944         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
8945         being NULL also if there are no backreferences.
8946
8947 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
8948
8949         regex: merge glibc changes
8950         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
8951         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
8952         re_string_skip_chars, re_string_reconstruct): Likewise.
8953         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
8954
8955 2009-01-07  Jim Meyering  <meyering@redhat.com>
8956
8957         poll: filter through cppi
8958         * lib/poll.c: Indent cpp directives to reflect nesting.
8959
8960 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
8961
8962         poll: don't return uninitialized
8963         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
8964
8965 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
8966
8967         avoid compile failure on AIX 6.1
8968         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
8969         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
8970
8971 2009-01-04  Jim Meyering  <meyering@redhat.com>
8972
8973         remove duplicate inclusion of <stdio.h>
8974         * tests/test-fprintf-posix.c: Likewise.
8975         * tests/test-printf-posix.c: Likewise.
8976         * tests/test-snprintf-posix.c: Likewise.
8977         * tests/test-sprintf-posix.c: Likewise.
8978         * tests/test-vasprintf-posix.c: Likewise.
8979         * tests/test-vfprintf-posix.c: Likewise.
8980         * tests/test-vprintf-posix.c: Likewise.
8981         * tests/test-vsnprintf-posix.c: Likewise.
8982         * tests/test-vsprintf-posix.c: Likewise.
8983
8984 2009-01-03  Jim Meyering  <meyering@redhat.com>
8985
8986         gnulib-tool: fix sed-based filtering
8987         * gnulib-tool (func_filter_filelist): Remove extra backslash
8988         in sed_fff_filter definition.
8989
8990 2009-01-02  Jim Meyering  <meyering@redhat.com>
8991
8992         strftime: avoid compilation failure on Solaris 2.6
8993         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
8994         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
8995         Don't #define mbrlen or mbsinit, since now they're guaranteed to
8996         be available.  Reported by Tom G. Christensen.  Details in
8997         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
8998
8999 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9000             Bruno Haible  <bruno@clisp.org>
9001
9002         Speed up gnulib-tool by doing more string processing through shell
9003         built-ins.
9004         * gnulib-tool (fast_func_append): New variable.
9005         (func_remove_prefix, func_remove_suffix): New functions.
9006         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
9007         (func_filter_filelist): New function.
9008         (func_get_dependencies): Use func_remove_suffix instead of sed.
9009         (func_get_automake_snippet): Use func_filter_filelist instead of a
9010         subshell and sed invocation.
9011
9012 2009-01-01  Bruno Haible  <bruno@clisp.org>
9013
9014         Fix a security bug.
9015         * gnulib-tool (func_import, import, update): Don't allow the characters
9016         '"', '$', '`', '\' in macro arguments that become part of commands that
9017         are evaluated.
9018
9019 2009-01-01  Bruno Haible  <bruno@clisp.org>
9020
9021         * gnulib-tool (func_reset_sigpipe): Add more comments.
9022
9023 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9024
9025         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
9026         func_emit_tests_Makefile_am, func_import): Abort loops early if we
9027         already know the answer.
9028
9029 2009-01-01  Jim Meyering  <meyering@redhat.com>
9030
9031         * lib/version-etc.c (version_etc_va): Update copyright year.
9032
9033 2008-12-30  Bruno Haible  <bruno@clisp.org>
9034
9035         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
9036         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
9037         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
9038
9039 2008-12-29  Eric Blake  <ebb9@byu.net>
9040
9041         multiarch: avoid autoconf AC_REQUIRE bug
9042         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
9043         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
9044         2.63 and older.
9045         Reported by Bruno Haible, and analyzed in
9046         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
9047
9048 2008-12-29  Bruno Haible  <bruno@clisp.org>
9049
9050         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
9051         files in subdirectories correctly.
9052         Reported by Ralf Wildenhues.
9053
9054 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
9055
9056         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
9057         rather than 'join FILE -', for Solaris join.
9058
9059 2008-12-29  Bruno Haible  <bruno@clisp.org>
9060
9061         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
9062         quoting.
9063         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
9064         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
9065         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
9066         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
9067         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
9068         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
9069         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
9070         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
9071         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
9072         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
9073         * m4/nls.m4 (AM_NLS): Likewise.
9074         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
9075         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
9076         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
9077         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
9078         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
9079         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
9080         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
9081         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
9082         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
9083         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
9084         * m4/xsize.m4 (gl_XSIZE): Likewise.
9085         Suggested by Jim Meyering.
9086
9087 2008-11-17  Bruce Korb  <bkorb@gnu.org>
9088
9089         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
9090         * lib/parse-duration.c: use a switch instead of cascading if's.
9091
9092 2008-12-29  Eric Blake  <ebb9@byu.net>
9093
9094         wchar.h: supply WEOF on Irix 5.3
9095         * lib/wchar.in.h (wint_t): Also supply WEOF.
9096         * lib/wctype.in.h (wint_t): Likewise.
9097         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
9098         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
9099         Reported by Tom G. Christensen.
9100
9101 2008-12-26  Bruno Haible  <bruno@clisp.org>
9102
9103         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
9104         i486, i586, i686.
9105
9106 2008-12-26  Bruno Haible  <bruno@clisp.org>
9107
9108         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
9109
9110 2008-12-26  Bruno Haible  <bruno@clisp.org>
9111
9112         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
9113         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
9114         not __STDC_CONSTANT_MACROS.
9115         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
9116
9117 2008-12-25  Bruno Haible  <bruno@clisp.org>
9118
9119         Add support for universal builds to vasnprintf.
9120         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
9121         universal builds, guess no.
9122         * modules/vasnprintf-posix (Depends-on): Add multiarch.
9123         * modules/vasprintf-posix (Depends-on): Likewise.
9124         * modules/fprintf-posix (Depends-on): Likewise.
9125         * modules/vfprintf-posix (Depends-on): Likewise.
9126         * modules/snprintf-posix (Depends-on): Likewise.
9127         * modules/vsnprintf-posix (Depends-on): Likewise.
9128         * modules/sprintf-posix (Depends-on): Likewise.
9129         * modules/vsprintf-posix (Depends-on): Likewise.
9130         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
9131         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
9132         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
9133         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
9134         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
9135         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
9136         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
9137
9138         Add support for universal builds to <inttypes.h>.
9139         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
9140         _SCNu64_PREFIX): In Apple
9141         universal builds, define directly, using _LP64.
9142         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
9143         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
9144         * modules/inttypes (Depends-on): Add multiarch.
9145         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
9146
9147         Add support for universal builds to <stdint.h>.
9148         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
9149         universal builds, define directly, using _LP64.
9150         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
9151         Apple universal builds, don't test for the size and suffix of ptrdiff_t
9152         and size_t.
9153         * modules/stdint (Depends-on): Add multiarch.
9154         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
9155
9156         New module 'multiarch'.
9157         * modules/multiarch: New file.
9158         * m4/multiarch.m4: New file.
9159
9160 2008-12-25  Bruno Haible  <bruno@clisp.org>
9161
9162         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
9163
9164 2008-12-25  Bruno Haible  <bruno@clisp.org>
9165
9166         * modules/btowc (License): Relicense under LGPLv2+.
9167         * modules/mbsinit (License): Likewise.
9168         * modules/mbrtowc (License): Likewise.
9169         * modules/wcrtomb (License): Likewise.
9170         * modules/streq (License): Likewise.
9171         Reported by David Lutterkort <lutter@redhat.com>.
9172
9173 2008-12-23  Bruno Haible  <bruno@clisp.org>
9174
9175         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
9176
9177 2008-12-23  Bruno Haible  <bruno@clisp.org>
9178
9179         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
9180         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
9181         GETADDRINFO_LIB, not in LIBS.
9182         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
9183         * modules/canon-host (Link): Likewise.
9184         * NEWS: Mention the change.
9185         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
9186         GETADDRINFO_LIB.
9187
9188 2008-12-22  Bruno Haible  <bruno@clisp.org>
9189
9190         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
9191         * doc/posix-functions/iswalpha_l.texi: Likewise.
9192         * doc/posix-functions/iswblank_l.texi: Likewise.
9193         * doc/posix-functions/iswcntrl_l.texi: Likewise.
9194         * doc/posix-functions/iswctype_l.texi: Likewise.
9195         * doc/posix-functions/iswdigit_l.texi: Likewise.
9196         * doc/posix-functions/iswgraph_l.texi: Likewise.
9197         * doc/posix-functions/iswlower_l.texi: Likewise.
9198         * doc/posix-functions/iswprint_l.texi: Likewise.
9199         * doc/posix-functions/iswpunct_l.texi: Likewise.
9200         * doc/posix-functions/iswspace_l.texi: Likewise.
9201         * doc/posix-functions/iswupper_l.texi: Likewise.
9202         * doc/posix-functions/iswxdigit_l.texi: Likewise.
9203         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
9204         * doc/posix-functions/open_wmemstream.texi: Likewise.
9205         * doc/posix-functions/swscanf.texi: Likewise.
9206         * doc/posix-functions/towctrans_l.texi: Likewise.
9207         * doc/posix-functions/towlower.texi: Likewise.
9208         * doc/posix-functions/towlower_l.texi: Likewise.
9209         * doc/posix-functions/towupper.texi: Likewise.
9210         * doc/posix-functions/towupper_l.texi: Likewise.
9211         * doc/posix-functions/vfwprintf.texi: Likewise.
9212         * doc/posix-functions/vfwscanf.texi: Likewise.
9213         * doc/posix-functions/vswscanf.texi: Likewise.
9214         * doc/posix-functions/vwprintf.texi: Likewise.
9215         * doc/posix-functions/vwscanf.texi: Likewise.
9216         * doc/posix-functions/wcpcpy.texi: Likewise.
9217         * doc/posix-functions/wcpncpy.texi: Likewise.
9218         * doc/posix-functions/wcscasecmp.texi: Likewise.
9219         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
9220         * doc/posix-functions/wcscoll_l.texi: Likewise.
9221         * doc/posix-functions/wcsdup.texi: Likewise.
9222         * doc/posix-functions/wcsncasecmp.texi: Likewise.
9223         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
9224         * doc/posix-functions/wcsnlen.texi: Likewise.
9225         * doc/posix-functions/wcsnrtombs.texi: Likewise.
9226         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
9227         * doc/posix-functions/wctrans_l.texi: Likewise.
9228         * doc/posix-functions/wctype_l.texi: Likewise.
9229         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
9230         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
9231         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
9232         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
9233         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
9234         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
9235         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
9236         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
9237         * doc/glibc-functions/wcschrnul.texi: Likewise.
9238         * doc/glibc-functions/wcsftime_l.texi: Likewise.
9239         * doc/glibc-functions/wcstod_l.texi: Likewise.
9240         * doc/glibc-functions/wcstof_l.texi: Likewise.
9241         * doc/glibc-functions/wcstol_l.texi: Likewise.
9242         * doc/glibc-functions/wcstold_l.texi: Likewise.
9243         * doc/glibc-functions/wcstoll_l.texi: Likewise.
9244         * doc/glibc-functions/wcstoq.texi: Likewise.
9245         * doc/glibc-functions/wcstoul_l.texi: Likewise.
9246         * doc/glibc-functions/wcstoull_l.texi: Likewise.
9247         * doc/glibc-functions/wcstouq.texi: Likewise.
9248         * doc/glibc-functions/wmempcpy.texi: Likewise.
9249
9250 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
9251             Eric Blake  <ebb9@byu.net>
9252             Paolo Bonzini  <bonzini@gnu.org>
9253             Bruno Haible  <bruno@clisp.org>
9254
9255         Make c-stack work on Haiku.
9256         * lib/c-stack.c (SA_ONSTACK): Define fallback.
9257         (c_stack_action): Use SA_ONSTACK flag.
9258
9259 2008-12-22  Bruno Haible  <bruno@clisp.org>
9260
9261         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
9262
9263 2008-12-22  Bruno Haible  <bruno@clisp.org>
9264
9265         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
9266         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
9267         being overridden.
9268         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
9269         New macros.
9270         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
9271         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
9272         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
9273         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
9274
9275 2008-12-22  Bruno Haible  <bruno@clisp.org>
9276
9277         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
9278         from test code.
9279
9280 2008-12-22  Eric Blake  <ebb9@byu.net>
9281
9282         Avoid gcc warnings on cygwin.
9283         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
9284         Avoid unused variable.
9285         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
9286         Likewise.
9287
9288 2008-12-22  Bruno Haible  <bruno@clisp.org>
9289
9290         Remove HAVE_MBRTOWC conditionals.
9291         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
9292         (mbscasecmp): Assume mbrtowc function.
9293         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
9294         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
9295         * lib/mbschr.c: Include mbuiter.h unconditionally.
9296         (mbschr): Assume mbrtowc function.
9297         * lib/mbscspn.c: Include mbuiter.h unconditionally.
9298         (mbscspn): Assume mbrtowc function.
9299         * lib/mbslen.c: Include mbuiter.h unconditionally.
9300         (mbslen): Assume mbrtowc function.
9301         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
9302         (mbsncasecmp): Assume mbrtowc function.
9303         * lib/mbsnlen.c: Include mbiter.h unconditionally.
9304         (mbsnlen): Assume mbrtowc function.
9305         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
9306         (mbspbrk): Assume mbrtowc function.
9307         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
9308         (mbspcasecmp): Assume mbrtowc function.
9309         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
9310         (mbsrchr): Assume mbrtowc function.
9311         * lib/mbssep.c: Include mbuiter.h unconditionally.
9312         (mbssep): Assume mbrtowc function.
9313         * lib/mbsspn.c: Include mbuiter.h unconditionally.
9314         (mbsspn): Assume mbrtowc function.
9315         * lib/mbsstr.c: Include mbuiter.h unconditionally.
9316         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
9317         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
9318         (mbstok_r): Assume mbrtowc function.
9319         * lib/propername.c: Include mbuiter.h unconditionally.
9320         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
9321         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
9322         (trim2): Assume mbrtowc function.
9323         * lib/mbswidth.c (mbsinit): Remove fallback definition.
9324         (mbsnwidth): Assume mbrtowc function.
9325         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
9326         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
9327         fallback definitions.
9328         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
9329
9330 2008-12-22  Bruno Haible  <bruno@clisp.org>
9331
9332         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
9333
9334 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
9335
9336         * modules/regex: Request emulations for the mb*/wc* functions we need.
9337         * m4/regex.m4: Don't look for those functions here.
9338         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
9339
9340 2008-12-22  Bruno Haible  <bruno@clisp.org>
9341
9342         * modules/fnmatch (Depends-on): Remove duplicated dependency.
9343
9344 2008-12-21  Bruno Haible  <bruno@clisp.org>
9345
9346         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
9347         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
9348         (Include): Remove conditionalization.
9349         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
9350         (Include): Remove conditionalization.
9351         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
9352         (Include): Remove conditionalization.
9353         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
9354         * m4/mbfile.m4 (gl_MBFILE): Likewise.
9355         * NEWS: Mention the change.
9356         Reported by Alan Hourihane <alanh@fairlite.co.uk>
9357         via Sergey Poznyakoff <gray@gnu.org.ua>.
9358
9359 2008-12-21  Bruno Haible  <bruno@clisp.org>
9360
9361         * MODULES.html.sh (Extended multibyte and wide character utilities
9362         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
9363         wcrtomb, wcsrtombs.
9364         (Support for systems lacking POSIX:2008): Add accept, bind, close,
9365         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
9366         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
9367         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
9368
9369 2008-12-21  Bruno Haible  <bruno@clisp.org>
9370
9371         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
9372
9373 2008-12-21  Bruno Haible  <bruno@clisp.org>
9374
9375         * modules/wcsnrtombs-tests: New file.
9376         * tests/test-wcsnrtombs1.sh: New file.
9377         * tests/test-wcsnrtombs2.sh: New file.
9378         * tests/test-wcsnrtombs3.sh: New file.
9379         * tests/test-wcsnrtombs4.sh: New file.
9380         * tests/test-wcsnrtombs.c: New file.
9381
9382         New module 'wcsnrtombs'.
9383         * lib/wchar.in.h (wcsnrtombs): New declaration.
9384         * lib/wcsnrtombs.c: New file.
9385         * lib/wcsrtombs-state.c: New file.
9386         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
9387         (internal_state): Remove variable.
9388         * m4/wcsnrtombs.m4: New file.
9389         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
9390         compilation units.
9391         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
9392         HAVE_WCSNRTOMBS.
9393         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
9394         HAVE_WCSNRTOMBS.
9395         * modules/wcsnrtombs: New file.
9396         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
9397         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
9398
9399 2008-12-21  Bruno Haible  <bruno@clisp.org>
9400
9401         * modules/wcsrtombs-tests: New file.
9402         * tests/test-wcsrtombs1.sh: New file.
9403         * tests/test-wcsrtombs2.sh: New file.
9404         * tests/test-wcsrtombs3.sh: New file.
9405         * tests/test-wcsrtombs4.sh: New file.
9406         * tests/test-wcsrtombs.c: New file.
9407
9408         New module 'wcsrtombs'.
9409         * lib/wchar.in.h (wcsrtombs): New declaration.
9410         * lib/wcsrtombs.c: New file.
9411         * m4/wcsrtombs.m4: New file.
9412         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
9413         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
9414         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
9415         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
9416         * modules/wcsrtombs: New file.
9417         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
9418         bugs.
9419
9420 2008-12-21  Bruno Haible  <bruno@clisp.org>
9421
9422         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
9423         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
9424         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
9425         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
9426         if not correct.
9427         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
9428         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
9429         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
9430         m4/locale-zh.m4, m4/codeset.m4.
9431         * doc/posix-functions/wcrtomb.texi: Document the bug.
9432
9433 2008-12-21  Bruno Haible  <bruno@clisp.org>
9434
9435         Work around a btowc() bug on IRIX 6.5.
9436         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
9437         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
9438         REPLACE_WTOBC if not.
9439         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
9440         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
9441         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
9442
9443 2008-12-21  Bruno Haible  <bruno@clisp.org>
9444
9445         * modules/wcrtomb-tests: New file.
9446         * tests/test-wcrtomb.sh: New file.
9447         * tests/test-wcrtomb.c: New file.
9448
9449         New module 'wcrtomb'.
9450         * lib/wchar.in.h (wcrtomb): New declaration.
9451         * lib/wcrtomb.c: New file.
9452         * m4/wcrtomb.m4: New file.
9453         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
9454         HAVE_WCRTOMB.
9455         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
9456         HAVE_WCRTOMB.
9457         * modules/wcrtomb: New file.
9458         * doc/posix-functions/wcrtomb.texi: Mention the new module.
9459
9460 2008-12-21  Bruno Haible  <bruno@clisp.org>
9461
9462         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
9463         * modules/mbsrtowcs (Files): Likewise.
9464         * modules/wctob (Files): Likewise.
9465         * modules/c-strcase-tests (Files): Likewise.
9466         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
9467         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
9468         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
9469         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
9470         * modules/vasnprintf-posix-tests (Files): Likewise.
9471
9472 2008-12-21  William Pursell  <bill.pursell@gmail.com>
9473
9474         gitlog-to-changelog: pass all command-line arguments to git-log
9475         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
9476         it is sometimes convenient to filter the commits in various ways.
9477         gitlog-to-changelog only allows --since to specify a start date,
9478         but git-log itself supports many other filtering mechanisms.
9479         At the moment, I want to filter by branch name.  Rather than
9480         adding a --branch option to gitlog-to-changelog, it seems more
9481         flexible to simply pass all options directly to git-log and let
9482         git do the work.  Notice that this effectively makes --since a
9483         redundant option for gitlog-to-changelog, but removing it would
9484         require current usage to change since calls would then require
9485         an additional '--'.
9486
9487 2008-12-21  Bruno Haible  <bruno@clisp.org>
9488
9489         * modules/mbsnrtowcs-tests: New file.
9490         * tests/test-mbsnrtowcs1.sh: New file.
9491         * tests/test-mbsnrtowcs2.sh: New file.
9492         * tests/test-mbsnrtowcs3.sh: New file.
9493         * tests/test-mbsnrtowcs4.sh: New file.
9494         * tests/test-mbsnrtowcs.c: New file.
9495
9496         New module 'mbsnrtowcs'.
9497         * lib/wchar.in.h (mbsnrtowcs): New declaration.
9498         * lib/mbsnrtowcs.c: New file.
9499         * lib/mbsrtowcs-state.c: New file.
9500         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
9501         (internal_state): Remove variable.
9502         * m4/mbsnrtowcs.m4: New file.
9503         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
9504         compilation units.
9505         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
9506         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
9507         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
9508         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
9509         * modules/mbsnrtowcs: New file.
9510         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
9511         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
9512         portability problem.
9513
9514 2008-12-21  Bruno Haible  <bruno@clisp.org>
9515
9516         Work around mbsrtowcs bug.
9517         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
9518         (gl_FUNC_MBSRTOWCS): Invoke it.
9519         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
9520         m4/locale-zh.m4.
9521         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
9522
9523 2008-12-21  Bruno Haible  <bruno@clisp.org>
9524
9525         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
9526
9527 2008-12-21  Bruno Haible  <bruno@clisp.org>
9528
9529         Update doc for AIX.
9530         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
9531         16-bit wchar_t type.
9532         * doc/posix-functions/btowc.texi: Likewise.
9533         * doc/posix-functions/fgetwc.texi: Likewise.
9534         * doc/posix-functions/fgetws.texi: Likewise.
9535         * doc/posix-functions/fputwc.texi: Likewise.
9536         * doc/posix-functions/fputws.texi: Likewise.
9537         * doc/posix-functions/fwide.texi: Likewise.
9538         * doc/posix-functions/fwprintf.texi: Likewise.
9539         * doc/posix-functions/fwscanf.texi: Likewise.
9540         * doc/posix-functions/getwchar.texi: Likewise.
9541         * doc/posix-functions/getwc.texi: Likewise.
9542         * doc/posix-functions/iswalnum.texi: Likewise.
9543         * doc/posix-functions/iswalpha.texi: Likewise.
9544         * doc/posix-functions/iswblank.texi: Likewise.
9545         * doc/posix-functions/iswcntrl.texi: Likewise.
9546         * doc/posix-functions/iswctype.texi: Likewise.
9547         * doc/posix-functions/iswdigit.texi: Likewise.
9548         * doc/posix-functions/iswgraph.texi: Likewise.
9549         * doc/posix-functions/iswlower.texi: Likewise.
9550         * doc/posix-functions/iswprint.texi: Likewise.
9551         * doc/posix-functions/iswpunct.texi: Likewise.
9552         * doc/posix-functions/iswspace.texi: Likewise.
9553         * doc/posix-functions/iswupper.texi: Likewise.
9554         * doc/posix-functions/iswxdigit.texi: Likewise.
9555         * doc/posix-functions/mbrtowc.texi: Likewise.
9556         * doc/posix-functions/mbsrtowcs.texi: Likewise.
9557         * doc/posix-functions/mbstowcs.texi: Likewise.
9558         * doc/posix-functions/mbtowc.texi: Likewise.
9559         * doc/posix-functions/putwchar.texi: Likewise.
9560         * doc/posix-functions/putwc.texi: Likewise.
9561         * doc/posix-functions/swprintf.texi: Likewise.
9562         * doc/posix-functions/tolower.texi: Likewise.
9563         * doc/posix-functions/toupper.texi: Likewise.
9564         * doc/posix-functions/towctrans.texi: Likewise.
9565         * doc/posix-functions/ungetwc.texi: Likewise.
9566         * doc/posix-functions/vswprintf.texi: Likewise.
9567         * doc/posix-functions/wcrtomb.texi: Likewise.
9568         * doc/posix-functions/wcscat.texi: Likewise.
9569         * doc/posix-functions/wcschr.texi: Likewise.
9570         * doc/posix-functions/wcscmp.texi: Likewise.
9571         * doc/posix-functions/wcscoll.texi: Likewise.
9572         * doc/posix-functions/wcscpy.texi: Likewise.
9573         * doc/posix-functions/wcscspn.texi: Likewise.
9574         * doc/posix-functions/wcsftime.texi: Likewise.
9575         * doc/posix-functions/wcslen.texi: Likewise.
9576         * doc/posix-functions/wcsncat.texi: Likewise.
9577         * doc/posix-functions/wcsncmp.texi: Likewise.
9578         * doc/posix-functions/wcsncpy.texi: Likewise.
9579         * doc/posix-functions/wcspbrk.texi: Likewise.
9580         * doc/posix-functions/wcsrchr.texi: Likewise.
9581         * doc/posix-functions/wcsrtombs.texi: Likewise.
9582         * doc/posix-functions/wcsspn.texi: Likewise.
9583         * doc/posix-functions/wcsstr.texi: Likewise.
9584         * doc/posix-functions/wcstod.texi: Likewise.
9585         * doc/posix-functions/wcstof.texi: Likewise.
9586         * doc/posix-functions/wcstoimax.texi: Likewise.
9587         * doc/posix-functions/wcstok.texi: Likewise.
9588         * doc/posix-functions/wcstold.texi: Likewise.
9589         * doc/posix-functions/wcstoll.texi: Likewise.
9590         * doc/posix-functions/wcstol.texi: Likewise.
9591         * doc/posix-functions/wcstombs.texi: Likewise.
9592         * doc/posix-functions/wcstoull.texi: Likewise.
9593         * doc/posix-functions/wcstoul.texi: Likewise.
9594         * doc/posix-functions/wcstoumax.texi: Likewise.
9595         * doc/posix-functions/wcswidth.texi: Likewise.
9596         * doc/posix-functions/wcsxfrm.texi: Likewise.
9597         * doc/posix-functions/wctob.texi: Likewise.
9598         * doc/posix-functions/wctomb.texi: Likewise.
9599         * doc/posix-functions/wctrans.texi: Likewise.
9600         * doc/posix-functions/wctype.texi: Likewise.
9601         * doc/posix-functions/wcwidth.texi: Likewise.
9602         * doc/posix-functions/wmemchr.texi: Likewise.
9603         * doc/posix-functions/wmemcmp.texi: Likewise.
9604         * doc/posix-functions/wmemcpy.texi: Likewise.
9605         * doc/posix-functions/wmemmove.texi: Likewise.
9606         * doc/posix-functions/wmemset.texi: Likewise.
9607         * doc/posix-functions/wprintf.texi: Likewise.
9608         * doc/posix-functions/wscanf.texi: Likewise.
9609
9610 2008-12-21  Bruno Haible  <bruno@clisp.org>
9611
9612         Update doc for HP-UX 11.11.
9613         * doc/posix-functions/btowc.texi: Clarify that the function is missing
9614         in HP-UX version 11.00, not in all versions of HP-UX 11.
9615         * doc/posix-functions/fwide.texi: Likewise.
9616         * doc/posix-functions/fwprintf.texi: Likewise.
9617         * doc/posix-functions/fwscanf.texi: Likewise.
9618         * doc/posix-functions/inet_ntop.texi: Likewise.
9619         * doc/posix-functions/inet_pton.texi: Likewise.
9620         * doc/posix-functions/mbrlen.texi: Likewise.
9621         * doc/posix-functions/mbrtowc.texi: Likewise.
9622         * doc/posix-functions/mbsinit.texi: Likewise.
9623         * doc/posix-functions/mbsrtowcs.texi: Likewise.
9624         * doc/posix-functions/swprintf.texi: Likewise.
9625         * doc/posix-functions/swscanf.texi: Likewise.
9626         * doc/posix-functions/towctrans.texi: Likewise.
9627         * doc/posix-functions/vfwprintf.texi: Likewise.
9628         * doc/posix-functions/vswprintf.texi: Likewise.
9629         * doc/posix-functions/vwprintf.texi: Likewise.
9630         * doc/posix-functions/wcrtomb.texi: Likewise.
9631         * doc/posix-functions/wcsrtombs.texi: Likewise.
9632         * doc/posix-functions/wcsstr.texi: Likewise.
9633         * doc/posix-functions/wctob.texi: Likewise.
9634         * doc/posix-functions/wctrans.texi: Likewise.
9635         * doc/posix-functions/wmemchr.texi: Likewise.
9636         * doc/posix-functions/wmemcmp.texi: Likewise.
9637         * doc/posix-functions/wmemcpy.texi: Likewise.
9638         * doc/posix-functions/wmemmove.texi: Likewise.
9639         * doc/posix-functions/wmemset.texi: Likewise.
9640         * doc/posix-functions/wprintf.texi: Likewise.
9641         * doc/posix-functions/wscanf.texi: Likewise.
9642
9643 2008-12-21  Bruno Haible  <bruno@clisp.org>
9644
9645         Work around a portability problem.
9646         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
9647         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
9648
9649 2008-12-20  Bruno Haible  <bruno@clisp.org>
9650
9651         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
9652         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
9653         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
9654         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
9655         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
9656
9657         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
9658         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
9659         set.
9660         (GNULIB_defined_mbstate_t): New macro.
9661         (mbsinit): Redefine if REPLACE_MBSINIT is set.
9662         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
9663         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
9664         reuses the system's mbrtowc function but works around the bugs.
9665         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
9666         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
9667         macros.
9668         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
9669         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
9670         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
9671         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
9672         REPLACE_MBSINIT if mbsinit needs to be overridden.
9673         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
9674         REPLACE_MBSINIT, REPLACE_MBRTOWC.
9675         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
9676         REPLACE_MBSINIT, REPLACE_MBRTOWC.
9677         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
9678         m4/locale-zh.m4.
9679         (Depends): Add mbsinit.
9680         * modules/mbsinit (Depends): Add mbrtowc.
9681         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
9682
9683 2008-12-20  Bruno Haible  <bruno@clisp.org>
9684
9685         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
9686         so that there are no conversion errors on AIX.
9687         * tests/test-mbsrtowcs.c (main): LIkewise.
9688
9689 2008-12-20  Bruno Haible  <bruno@clisp.org>
9690
9691         Work around wctob bug on Solaris <= 9.
9692         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
9693         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
9694         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
9695         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
9696         * modules/wctob (Files): Add m4/locale-fr.m4.
9697         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
9698
9699 2008-12-20  Bruno Haible  <bruno@clisp.org>
9700
9701         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
9702         /dev/null.
9703         * tests/test-select-in.sh: Likewise.
9704         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
9705
9706 2008-12-20  Bruno Haible  <bruno@clisp.org>
9707
9708         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
9709         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
9710         Cygwin 1.5.x.
9711
9712 2008-12-20  Bruno Haible  <bruno@clisp.org>
9713
9714         Ensure mbstate_t is defined on HP-UX 11.11.
9715         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
9716         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
9717         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
9718         AC_USE_SYSTEM_EXTENSIONS.
9719         * modules/fnmatch (Depends-on): Add extensions.
9720         * modules/mbrlen (Depends-on): Likewise.
9721         * modules/mbrtowc (Depends-on): Likewise.
9722         * modules/mbsinit (Depends-on): Likewise.
9723         * modules/mbsrtowcs (Depends-on): Likewise.
9724         * modules/mbswidth (Depends-on): Likewise.
9725         * modules/quotearg (Depends-on): Likewise.
9726         * modules/strftime (Depends-on): Likewise.
9727
9728 2008-12-20  Bruno Haible  <bruno@clisp.org>
9729
9730         Ensure wctob is declared on IRIX 6.5.
9731         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
9732         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
9733         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
9734         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
9735         of HAVE_WCTOB.
9736         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
9737         HAVE_WCTOB.
9738         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
9739
9740 2008-12-19  Bruno Haible  <bruno@clisp.org>
9741
9742         * modules/mbsrtowcs-tests: New file.
9743         * tests/test-mbsrtowcs1.sh: New file.
9744         * tests/test-mbsrtowcs2.sh: New file.
9745         * tests/test-mbsrtowcs3.sh: New file.
9746         * tests/test-mbsrtowcs4.sh: New file.
9747         * tests/test-mbsrtowcs.c: New file.
9748
9749         New module 'mbsrtowcs'.
9750         * lib/wchar.in.h (mbsrtowcs): New declaration.
9751         * lib/mbsrtowcs.c: New file.
9752         * m4/mbsrtowcs.m4: New file.
9753         * modules/mbsrtowcs: New file.
9754         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
9755         HAVE_MBSRTOWCS.
9756         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
9757         HAVE_MBSRTOWCS.
9758         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
9759
9760 2008-12-19  Bruno Haible  <bruno@clisp.org>
9761
9762         New module 'mbrlen'.
9763         * lib/wchar.in.h (mbrlen): New declaration.
9764         * lib/mbrlen.c: New file.
9765         * m4/mbrlen.m4: New file.
9766         * modules/mbrlen: New file.
9767         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
9768         HAVE_MBRLEN.
9769         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
9770         HAVE_MBRLEN.
9771         * doc/posix-functions/mbrlen.texi: Document the new module.
9772
9773 2008-12-19  Bruno Haible  <bruno@clisp.org>
9774
9775         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
9776         * modules/mbrtowc (Depends-on): Add verify.
9777         Suggested by Paul Eggert.
9778
9779 2008-12-18  Bruno Haible  <bruno@clisp.org>
9780
9781         * modules/mbsinit-tests: New file.
9782         * tests/test-mbsinit.sh: New file.
9783         * tests/test-mbsinit.c: New file.
9784
9785 2008-12-18  Bruno Haible  <bruno@clisp.org>
9786
9787         * modules/mbrtowc-tests: New file.
9788         * tests/test-mbrtowc1.sh: New file.
9789         * tests/test-mbrtowc2.sh: New file.
9790         * tests/test-mbrtowc3.sh: New file.
9791         * tests/test-mbrtowc4.sh: New file.
9792         * tests/test-mbrtowc.c: New file.
9793
9794         New module 'mbrtowc'.
9795         * lib/wchar.in.h (mbstate_t): Override when the system does not have
9796         mbsinit and mbrtowc.
9797         (mbrtowc): New declaration.
9798         * lib/mbrtowc.c: New file.
9799         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
9800         * modules/mbrtowc: New file.
9801         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
9802         HAVE_MBRTOWC.
9803         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
9804         HAVE_MBRTOWC.
9805         * doc/posix-functions/mbrtowc.texi: Document the new module.
9806
9807 2008-12-18  Bruno Haible  <bruno@clisp.org>
9808
9809         New module 'wctob'.
9810         * lib/wchar.in.h (wctob): New declaration.
9811         * lib/wctob.c: New file.
9812         * m4/wctob.m4: New file.
9813         * modules/wctob: New file.
9814         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
9815         HAVE_WCTOB.
9816         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
9817         * doc/posix-functions/wctob.texi: Document the new module.
9818
9819 2008-12-18  Bruno Haible  <bruno@clisp.org>
9820
9821         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
9822         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
9823
9824 2008-12-18  Simon Josefsson  <simon@josefsson.org>
9825
9826         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
9827         G. Christensen" <tgc@jupiterrise.com>.
9828
9829         * lib/flock.c: Need to include errno.h.  Reported by "Tom
9830         G. Christensen" <tgc@jupiterrise.com>.
9831
9832         * lib/flock.c: Need to include string.h.  Reported by "Tom
9833         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
9834         <ebb9@byu.net>.
9835
9836 2008-12-18  Bruno Haible  <bruno@clisp.org>
9837
9838         * m4/locale-ja.m4: New file, from GNU gettext.
9839
9840 2008-12-17  Bruno Haible  <bruno@clisp.org>
9841
9842         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
9843         Suggested by Eric Blake.
9844
9845 2008-12-17  Bruno Haible  <bruno@clisp.org>
9846
9847         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
9848
9849 2008-12-17  Bruno Haible  <bruno@clisp.org>
9850
9851         * lib/mbsinit.c: Include verify.h. Verify an assumption.
9852         * modules/mbsinit (Depends-on): Add verify.
9853         Suggested by Paul Eggert.
9854
9855 2008-12-17  Bruno Haible  <bruno@clisp.org>
9856
9857         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
9858         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
9859         gl_FUNC_MBRTOWC.
9860         * m4/mbiter.m4 (gl_MBITER): LIkewise.
9861         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
9862         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
9863         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
9864         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
9865         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
9866         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
9867         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
9868         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
9869         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
9870         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
9871         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
9872         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
9873         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
9874         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
9875         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
9876         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
9877         * modules/trim (configure.ac): Likewise.
9878
9879 2008-12-17  Bruno Haible  <bruno@clisp.org>
9880
9881         * modules/btowc-tests: New file.
9882         * tests/test-btowc1.sh: New file.
9883         * tests/test-btowc2.sh: New file.
9884         * tests/test-btowc.c: New file.
9885
9886         New module 'btowc'.
9887         * lib/wchar.in.h (btowc): New declaration.
9888         * lib/btowc.c: New file.
9889         * m4/btowc.m4: New file.
9890         * modules/btowc: New file.
9891         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
9892         HAVE_BTOWC.
9893         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
9894         * doc/posix-functions/btowc.texi: Document the new module.
9895
9896 2008-12-17  Bruno Haible  <bruno@clisp.org>
9897
9898         New module 'mbsinit'.
9899         * lib/wchar.in.h (mbsinit): New declaration.
9900         * lib/mbsinit.c: New file.
9901         * m4/mbsinit.m4: New file.
9902         * modules/mbsinit: New file.
9903         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
9904         HAVE_MBSINIT.
9905         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
9906         HAVE_MBSINIT.
9907         * doc/posix-functions/mbsinit.texi: Document the new module.
9908
9909 2008-12-16  Bruno Haible  <bruno@clisp.org>
9910
9911         * lib/unistd.in.h: Add comment.
9912         * tests/test-environ.c: Don't include <stdlib.h>.
9913
9914 2008-12-16  Bruno Haible  <bruno@clisp.org>
9915
9916         * lib/parse-duration.h (parse_duration): Document return value
9917         convention.
9918         * lib/parse-duration.c: Include specification header first. Add
9919         comments.
9920         (_): Remove macro.
9921         (parse_year_month_day, parse_hour_minute_second): Move side effects
9922         outside of strchr call.
9923         (parse_non_iso8601): Move side effects outside of isspace call.
9924         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
9925         call.
9926
9927 2008-12-16  Bruno Haible  <bruno@clisp.org>
9928
9929         * tests/test-parse-duration.sh: Produce no output when the test
9930         succeeds.
9931
9932 2008-12-16  Bruno Haible  <bruno@clisp.org>
9933
9934         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
9935         expressions.
9936
9937 2008-12-15  Bruno Haible  <bruno@clisp.org>
9938
9939         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
9940         * doc/glibc-functions/flistxattr.texi: Likewise.
9941         * doc/glibc-functions/fopencookie.texi: Likewise.
9942         * doc/glibc-functions/fremovexattr.texi: Likewise.
9943         * doc/glibc-functions/fsetxattr.texi: Likewise.
9944         * doc/glibc-functions/getxattr.texi: Likewise.
9945         * doc/glibc-functions/lgetxattr.texi: Likewise.
9946         * doc/glibc-functions/listxattr.texi: Likewise.
9947         * doc/glibc-functions/llistxattr.texi: Likewise.
9948         * doc/glibc-functions/lremovexattr.texi: Likewise.
9949         * doc/glibc-functions/lsetxattr.texi: Likewise.
9950         * doc/glibc-functions/removexattr.texi: Likewise.
9951         * doc/glibc-functions/setxattr.texi: Likewise.
9952         * doc/posix-functions/open_memstream.texi: Likewise.
9953
9954 2008-12-15  Eric Blake  <ebb9@byu.net>
9955
9956         Update doc for cygwin 1.7.
9957         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
9958         functions.
9959         * doc/posix-functions/fchmodat.texi: Likewise.
9960         * doc/posix-functions/fchownat.texi: Likewise.
9961         * doc/posix-functions/fdopendir.texi: Likewise.
9962         * doc/posix-functions/fmemopen.texi: Likewise.
9963         * doc/posix-functions/freeaddrinfo.texi: Likewise.
9964         * doc/posix-functions/fstatat.texi: Likewise.
9965         * doc/posix-functions/futimens.texi: Likewise.
9966         * doc/posix-functions/gai_strerror.texi: Likewise.
9967         * doc/posix-functions/getaddrinfo.texi: Likewise.
9968         * doc/posix-functions/getnameinfo.texi: Likewise.
9969         * doc/posix-functions/if_freenameindex.texi: Likewise.
9970         * doc/posix-functions/if_indextoname.texi: Likewise.
9971         * doc/posix-functions/if_nameindex.texi: Likewise.
9972         * doc/posix-functions/if_nametoindex.texi: Likewise.
9973         * doc/posix-functions/insque.texi: Likewise.
9974         * doc/posix-functions/linkat.texi: Likewise.
9975         * doc/posix-functions/llrint.texi: Likewise.
9976         * doc/posix-functions/llrintf.texi: Likewise.
9977         * doc/posix-functions/llrintl.texi: Likewise.
9978         * doc/posix-functions/lockf.texi: Likewise.
9979         * doc/posix-functions/lrintl.texi: Likewise.
9980         * doc/posix-functions/mkdirat.texi: Likewise.
9981         * doc/posix-functions/mkfifoat.texi: Likewise.
9982         * doc/posix-functions/mknodat.texi: Likewise.
9983         * doc/posix-functions/mq_close.texi: Likewise.
9984         * doc/posix-functions/mq_getattr.texi: Likewise.
9985         * doc/posix-functions/mq_notify.texi: Likewise.
9986         * doc/posix-functions/mq_open.texi: Likewise.
9987         * doc/posix-functions/mq_receive.texi: Likewise.
9988         * doc/posix-functions/mq_send.texi: Likewise.
9989         * doc/posix-functions/mq_setattr.texi: Likewise.
9990         * doc/posix-functions/mq_timedreceive.texi: Likewise.
9991         * doc/posix-functions/mq_timedsend.texi: Likewise.
9992         * doc/posix-functions/mq_unlink.texi: Likewise.
9993         * doc/posix-functions/open_memstream.texi: Likewise.
9994         * doc/posix-functions/openat.texi: Likewise.
9995         * doc/posix-functions/posix_fadvise.texi: Likewise.
9996         * doc/posix-functions/posix_fallocate.texi: Likewise.
9997         * doc/posix-functions/posix_madvise.texi: Likewise.
9998         * doc/posix-functions/posix_memalign.texi: Likewise.
9999         * doc/posix-functions/posix_openpt.texi: Likewise.
10000         * doc/posix-functions/readlinkat.texi: Likewise.
10001         * doc/posix-functions/remque.texi: Likewise.
10002         * doc/posix-functions/renameat.texi: Likewise.
10003         * doc/posix-functions/rintl.texi: Likewise.
10004         * doc/posix-functions/sem_unlink.texi: Likewise.
10005         * doc/posix-functions/shm_open.texi: Likewise.
10006         * doc/posix-functions/shm_unlink.texi: Likewise.
10007         * doc/posix-functions/signgam.texi: Likewise.
10008         * doc/posix-functions/sigset.texi: Likewise.
10009         * doc/posix-functions/stpcpy.texi: Likewise.
10010         * doc/posix-functions/stpncpy.texi: Likewise.
10011         * doc/posix-functions/strerror.texi: Likewise.
10012         * doc/posix-functions/strtod.texi: Likewise.
10013         * doc/posix-functions/symlinkat.texi: Likewise.
10014         * doc/posix-functions/unlinkat.texi: Likewise.
10015         * doc/posix-functions/utimensat.texi: Likewise.
10016         * doc/glibc-functions/bindresvport.texi: Likewise.
10017         * doc/glibc-functions/dn_expand.texi: Likewise.
10018         * doc/glibc-functions/exp10.texi: Likewise.
10019         * doc/glibc-functions/exp10f.texi: Likewise.
10020         * doc/glibc-functions/fgetxattr.texi: Likewise.
10021         * doc/glibc-functions/flistxattr.texi: Likewise.
10022         * doc/glibc-functions/fopencookie.texi: Likewise.
10023         * doc/glibc-functions/freeifaddrs.texi: Likewise.
10024         * doc/glibc-functions/fremovexattr.texi: Likewise.
10025         * doc/glibc-functions/fsetxattr.texi: Likewise.
10026         * doc/glibc-functions/getifaddrs.texi: Likewise.
10027         * doc/glibc-functions/getxattr.texi: Likewise.
10028         * doc/glibc-functions/lgetxattr.texi: Likewise.
10029         * doc/glibc-functions/listxattr.texi: Likewise.
10030         * doc/glibc-functions/llistxattr.texi: Likewise.
10031         * doc/glibc-functions/lremovexattr.texi: Likewise.
10032         * doc/glibc-functions/lsetxattr.texi: Likewise.
10033         * doc/glibc-functions/pow10.texi: Likewise.
10034         * doc/glibc-functions/pow10f.texi: Likewise.
10035         * doc/glibc-functions/rcmd_af.texi: Likewise.
10036         * doc/glibc-functions/removexattr.texi: Likewise.
10037         * doc/glibc-functions/res_init.texi: Likewise.
10038         * doc/glibc-functions/res_mkquery.texi: Likewise.
10039         * doc/glibc-functions/res_query.texi: Likewise.
10040         * doc/glibc-functions/res_querydomain.texi: Likewise.
10041         * doc/glibc-functions/res_send.texi: Likewise.
10042         * doc/glibc-functions/rresvport_af.texi: Likewise.
10043         * doc/glibc-functions/setxattr.texi: Likewise.
10044         * doc/glibc-functions/strcasestr.texi: Likewise.
10045
10046 2008-12-15  Bruno Haible  <bruno@clisp.org>
10047
10048         Fix compilation error on OSF/1 4.0.
10049         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
10050         <sys/time.h>, simply delegate to the system header.
10051         Reported by Daniel Richard G. <oss@teragram.com>.
10052
10053 2008-12-15  Bruno Haible  <bruno@clisp.org>
10054
10055         * doc/posix-functions/openat.texi: Mention the 'openat' module.
10056         * doc/posix-functions/fchmodat.texi: Likewise.
10057         * doc/posix-functions/fchownat.texi: Likewise.
10058         * doc/posix-functions/fdopendir.texi: Likewise.
10059         * doc/posix-functions/fstatat.texi: Likewise.
10060         * doc/posix-functions/mkdirat.texi: Likewise.
10061         * doc/posix-functions/unlinkat.texi: Likewise.
10062
10063 2008-12-14  Bruno Haible  <bruno@clisp.org>
10064
10065         Update doc for POSIX:2008.
10066         * doc/posix-functions/faccessat.texi: New file.
10067         * doc/posix-functions/fchmodat.texi: New file.
10068         * doc/posix-functions/fchownat.texi: New file.
10069         * doc/posix-functions/fdopendir.texi: New file.
10070         * doc/posix-functions/fstatat.texi: New file.
10071         * doc/posix-functions/futimens.texi: New file.
10072         * doc/posix-functions/linkat.texi: New file.
10073         * doc/posix-functions/mkdirat.texi: New file.
10074         * doc/posix-functions/mkfifoat.texi: New file.
10075         * doc/posix-functions/mknodat.texi: New file.
10076         * doc/posix-functions/open_wmemstream.texi: New file.
10077         * doc/posix-functions/openat.texi: New file.
10078         * doc/posix-functions/psiginfo.texi: New file.
10079         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
10080         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
10081         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
10082         * doc/posix-functions/readlinkat.texi: New file.
10083         * doc/posix-functions/renameat.texi: New file.
10084         * doc/posix-functions/strerror_l.texi: New file.
10085         * doc/posix-functions/symlinkat.texi: New file.
10086         * doc/posix-functions/unlinkat.texi: New file.
10087         * doc/posix-functions/utimensat.texi: New file.
10088         * doc/gnulib.texi (Function Substitutes): Add these subsections.
10089
10090 2008-12-14  Bruno Haible  <bruno@clisp.org>
10091
10092         Update doc for POSIX:2008.
10093         * doc/posix-functions/alphasort.texi: Renamed from
10094         doc/glibc-functions/alphasort.texi.
10095         * doc/posix-functions/dirfd.texi: Renamed from
10096         doc/glibc-functions/dirfd.texi.
10097         * doc/posix-functions/dprintf.texi: Renamed from
10098         doc/glibc-functions/dprintf.texi.
10099         * doc/posix-functions/duplocale.texi: Renamed from
10100         doc/glibc-functions/duplocale.texi.
10101         * doc/posix-functions/fexecve.texi: Renamed from
10102         doc/glibc-functions/fexecve.texi.
10103         * doc/posix-functions/fmemopen.texi: Renamed from
10104         doc/glibc-functions/fmemopen.texi.
10105         * doc/posix-functions/freelocale.texi: Renamed from
10106         doc/glibc-functions/freelocale.texi.
10107         * doc/posix-functions/getdate_err.texi: Renamed from
10108         doc/glibc-functions/getdate_err.texi.
10109         * doc/posix-functions/isalnum_l.texi: Renamed from
10110         doc/glibc-functions/isalnum_l.texi.
10111         * doc/posix-functions/isalpha_l.texi: Renamed from
10112         doc/glibc-functions/isalpha_l.texi.
10113         * doc/posix-functions/isblank_l.texi: Renamed from
10114         doc/glibc-functions/isblank_l.texi.
10115         * doc/posix-functions/iscntrl_l.texi: Renamed from
10116         doc/glibc-functions/iscntrl_l.texi.
10117         * doc/posix-functions/isdigit_l.texi: Renamed from
10118         doc/glibc-functions/isdigit_l.texi.
10119         * doc/posix-functions/isgraph_l.texi: Renamed from
10120         doc/glibc-functions/isgraph_l.texi.
10121         * doc/posix-functions/islower_l.texi: Renamed from
10122         doc/glibc-functions/islower_l.texi.
10123         * doc/posix-functions/isprint_l.texi: Renamed from
10124         doc/glibc-functions/isprint_l.texi.
10125         * doc/posix-functions/ispunct_l.texi: Renamed from
10126         doc/glibc-functions/ispunct_l.texi.
10127         * doc/posix-functions/isspace_l.texi: Renamed from
10128         doc/glibc-functions/isspace_l.texi.
10129         * doc/posix-functions/isupper_l.texi: Renamed from
10130         doc/glibc-functions/isupper_l.texi.
10131         * doc/posix-functions/iswalnum_l.texi: Renamed from
10132         doc/glibc-functions/iswalnum_l.texi.
10133         * doc/posix-functions/iswalpha_l.texi: Renamed from
10134         doc/glibc-functions/iswalpha_l.texi.
10135         * doc/posix-functions/iswblank_l.texi: Renamed from
10136         doc/glibc-functions/iswblank_l.texi.
10137         * doc/posix-functions/iswcntrl_l.texi: Renamed from
10138         doc/glibc-functions/iswcntrl_l.texi.
10139         * doc/posix-functions/iswctype_l.texi: Renamed from
10140         doc/glibc-functions/iswctype_l.texi.
10141         * doc/posix-functions/iswdigit_l.texi: Renamed from
10142         doc/glibc-functions/iswdigit_l.texi.
10143         * doc/posix-functions/iswgraph_l.texi: Renamed from
10144         doc/glibc-functions/iswgraph_l.texi.
10145         * doc/posix-functions/iswlower_l.texi: Renamed from
10146         doc/glibc-functions/iswlower_l.texi.
10147         * doc/posix-functions/iswprint_l.texi: Renamed from
10148         doc/glibc-functions/iswprint_l.texi.
10149         * doc/posix-functions/iswpunct_l.texi: Renamed from
10150         doc/glibc-functions/iswpunct_l.texi.
10151         * doc/posix-functions/iswspace_l.texi: Renamed from
10152         doc/glibc-functions/iswspace_l.texi.
10153         * doc/posix-functions/iswupper_l.texi: Renamed from
10154         doc/glibc-functions/iswupper_l.texi.
10155         * doc/posix-functions/iswxdigit_l.texi: Renamed from
10156         doc/glibc-functions/iswxdigit_l.texi.
10157         * doc/posix-functions/isxdigit_l.texi: Renamed from
10158         doc/glibc-functions/isxdigit_l.texi.
10159         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
10160         doc/glibc-functions/mbsnrtowcs.texi.
10161         * doc/posix-functions/mkdtemp.texi: Renamed from
10162         doc/glibc-functions/mkdtemp.texi.
10163         * doc/posix-functions/newlocale.texi: Renamed from
10164         doc/glibc-functions/newlocale.texi.
10165         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
10166         doc/glibc-functions/nl_langinfo_l.texi.
10167         * doc/posix-functions/open_memstream.texi: Renamed from
10168         doc/glibc-functions/open_memstream.texi.
10169         * doc/posix-functions/opterr.texi: Renamed from
10170         doc/glibc-functions/opterr.texi.
10171         * doc/posix-functions/optind.texi: Renamed from
10172         doc/glibc-functions/optind.texi.
10173         * doc/posix-functions/optopt.texi: Renamed from
10174         doc/glibc-functions/optopt.texi.
10175         * doc/posix-functions/psignal.texi: Renamed from
10176         doc/glibc-functions/psignal.texi.
10177         * doc/posix-functions/scandir.texi: Renamed from
10178         doc/glibc-functions/scandir.texi.
10179         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
10180         doc/glibc-functions/sched_get_priority_min.texi.
10181         * doc/posix-functions/signgam.texi: Renamed from
10182         doc/glibc-functions/signgam.texi.
10183         * doc/posix-functions/stpcpy.texi: Renamed from
10184         doc/glibc-functions/stpcpy.texi.
10185         * doc/posix-functions/stpncpy.texi: Renamed from
10186         doc/glibc-functions/stpncpy.texi.
10187         * doc/posix-functions/strcasecmp_l.texi: Renamed from
10188         doc/glibc-functions/strcasecmp_l.texi.
10189         * doc/posix-functions/strcoll_l.texi: Renamed from
10190         doc/glibc-functions/strcoll_l.texi.
10191         * doc/posix-functions/strfmon_l.texi: Renamed from
10192         doc/glibc-functions/strfmon_l.texi.
10193         * doc/posix-functions/strftime_l.texi: Renamed from
10194         doc/glibc-functions/strftime_l.texi.
10195         * doc/posix-functions/strncasecmp_l.texi: Renamed from
10196         doc/glibc-functions/strncasecmp_l.texi.
10197         * doc/posix-functions/strndup.texi: Renamed from
10198         doc/glibc-functions/strndup.texi.
10199         * doc/posix-functions/strnlen.texi: Renamed from
10200         doc/glibc-functions/strnlen.texi.
10201         * doc/posix-functions/strsignal.texi: Renamed from
10202         doc/glibc-functions/strsignal.texi.
10203         * doc/posix-functions/strxfrm_l.texi: Renamed from
10204         doc/glibc-functions/strxfrm_l.texi.
10205         * doc/posix-functions/timer_gettime.texi: Renamed from
10206         doc/glibc-functions/timer_gettime.texi.
10207         * doc/posix-functions/tolower_l.texi: Renamed from
10208         doc/glibc-functions/tolower_l.texi.
10209         * doc/posix-functions/toupper_l.texi: Renamed from
10210         doc/glibc-functions/toupper_l.texi.
10211         * doc/posix-functions/towctrans_l.texi: Renamed from
10212         doc/glibc-functions/towctrans_l.texi.
10213         * doc/posix-functions/towlower_l.texi: Renamed from
10214         doc/glibc-functions/towlower_l.texi.
10215         * doc/posix-functions/towupper_l.texi: Renamed from
10216         doc/glibc-functions/towupper_l.texi.
10217         * doc/posix-functions/uselocale.texi: Renamed from
10218         doc/glibc-functions/uselocale.texi.
10219         * doc/posix-functions/vdprintf.texi: Renamed from
10220         doc/glibc-functions/vdprintf.texi.
10221         * doc/posix-functions/wcpcpy.texi:
10222         Renamed from doc/glibc-functions/wcpcpy.texi.
10223         * doc/posix-functions/wcpncpy.texi: Renamed from
10224         doc/glibc-functions/wcpncpy.texi.
10225         * doc/posix-functions/wcscasecmp.texi: Renamed from
10226         doc/glibc-functions/wcscasecmp.texi.
10227         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
10228         doc/glibc-functions/wcscasecmp_l.texi.
10229         * doc/posix-functions/wcscoll_l.texi: Renamed from
10230         doc/glibc-functions/wcscoll_l.texi.
10231         * doc/posix-functions/wcsdup.texi: Renamed from
10232         doc/glibc-functions/wcsdup.texi.
10233         * doc/posix-functions/wcsncasecmp.texi: Renamed from
10234         doc/glibc-functions/wcsncasecmp.texi.
10235         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
10236         doc/glibc-functions/wcsncasecmp_l.texi.
10237         * doc/posix-functions/wcsnlen.texi: Renamed from
10238         doc/glibc-functions/wcsnlen.texi.
10239         * doc/posix-functions/wcsnrtombs.texi: Renamed from
10240         doc/glibc-functions/wcsnrtombs.texi.
10241         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
10242         doc/glibc-functions/wcsxfrm_l.texi.
10243         * doc/posix-functions/wctrans_l.texi: Renamed from
10244         doc/glibc-functions/wctrans_l.texi.
10245         * doc/posix-functions/wctype_l.texi: Renamed from
10246         doc/glibc-functions/wctype_l.texi.
10247         * doc/gnulib.texi (Function Substitutes): Add these subsections.
10248         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
10249         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
10250         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
10251         these subsections.
10252         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
10253         Remove sections.
10254
10255 2008-12-14  Bruno Haible  <bruno@clisp.org>
10256
10257         Update doc for POSIX:2008.
10258         * doc/posix-functions/*.texi: Update URL of POSIX specification.
10259
10260 2008-12-14  Bruno Haible  <bruno@clisp.org>
10261
10262         Update doc for POSIX:2008.
10263         * doc/pastposix-functions/bcmp.texi: Renamed from
10264         doc/posix-functions/bcmp.texi.
10265         * doc/pastposix-functions/bcopy.texi: Renamed from
10266         doc/posix-functions/bcopy.texi.
10267         * doc/pastposix-functions/bsd_signal.texi: Renamed from
10268         doc/posix-functions/bsd_signal.texi.
10269         * doc/pastposix-functions/bzero.texi: Renamed from
10270         doc/posix-functions/bzero.texi.
10271         * doc/pastposix-functions/ecvt.texi: Renamed from
10272         doc/posix-functions/ecvt.texi.
10273         * doc/pastposix-functions/fcvt.texi: Renamed from
10274         doc/posix-functions/fcvt.texi.
10275         * doc/pastposix-functions/ftime.texi: Renamed from
10276         doc/posix-functions/ftime.texi.
10277         * doc/pastposix-functions/gcvt.texi: Renamed from
10278         doc/posix-functions/gcvt.texi.
10279         * doc/pastposix-functions/getcontext.texi: Renamed from
10280         doc/posix-functions/getcontext.texi.
10281         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
10282         doc/posix-functions/gethostbyaddr.texi.
10283         * doc/pastposix-functions/gethostbyname.texi: Renamed from
10284         doc/posix-functions/gethostbyname.texi.
10285         * doc/pastposix-functions/getwd.texi: Renamed from
10286         doc/posix-functions/getwd.texi.
10287         * doc/pastposix-functions/h_errno.texi: Renamed from
10288         doc/posix-functions/h_errno.texi.
10289         * doc/pastposix-functions/index.texi: Renamed from
10290         doc/posix-functions/index.texi.
10291         * doc/pastposix-functions/makecontext.texi: Renamed from
10292         doc/posix-functions/makecontext.texi.
10293         * doc/pastposix-functions/mktemp.texi: Renamed from
10294         doc/posix-functions/mktemp.texi.
10295         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
10296         doc/posix-functions/pthread_attr_getstackaddr.texi.
10297         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
10298         doc/posix-functions/pthread_attr_setstackaddr.texi.
10299         * doc/pastposix-functions/rindex.texi: Renamed from
10300         doc/posix-functions/rindex.texi.
10301         * doc/pastposix-functions/scalb.texi: Renamed from
10302         doc/posix-functions/scalb.texi.
10303         * doc/pastposix-functions/setcontext.texi: Renamed from
10304         doc/posix-functions/setcontext.texi.
10305         * doc/pastposix-functions/swapcontext.texi: Renamed from
10306         doc/posix-functions/swapcontext.texi.
10307         * doc/pastposix-functions/ualarm.texi: Renamed from
10308         doc/posix-functions/ualarm.texi.
10309         * doc/pastposix-functions/usleep.texi: Renamed from
10310         doc/posix-functions/usleep.texi.
10311         * doc/pastposix-functions/vfork.texi: Renamed from
10312         doc/posix-functions/vfork.texi.
10313         * doc/pastposix-functions/wcswcs.texi: Renamed from
10314         doc/posix-functions/wcswcs.texi.
10315         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
10316         (Function Substitutes): Update.
10317
10318 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10319
10320         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
10321         m4/strerror.m4.
10322
10323 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10324             Bruno Haible  <bruno@clisp.org>
10325
10326         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
10327
10328 2008-12-13  Bruno Haible  <bruno@clisp.org>
10329
10330         * modules/strtoull (Depends-on): Remove unistd.
10331
10332 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10333
10334         * modules/strtoull (Depends-on): Add stdlib.
10335
10336 2008-12-11  Simon Josefsson  <simon@josefsson.org>
10337
10338         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
10339
10340 2008-12-10  Jim Meyering  <meyering@redhat.com>
10341
10342         gl_ASSERT: don't say assertions are disabled when they're not
10343         * m4/assert.m4 (gl_ASSERT): Do not make configure report
10344         "checking whether to enable assertions... no", when they are in
10345         fact enabled.  This is solely a bug in the output of configure.
10346         In spite of saying "no", NDEBUG was not defined in that case.
10347         Also, as noted by Eric Blake, leave assertions enabled upon
10348         --enable-assert=INVALID.
10349
10350 2008-12-10  Bruno Haible  <bruno@clisp.org>
10351
10352         Change MODULES.html to refer to POSIX:2008 where possible.
10353         * MODULES.html.sh (POSIX2008_URL): New variable.
10354         (posix_headers): Remove sys/timeb, ucontext.
10355         (posix2001_headers): New variable.
10356         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
10357         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
10358         index, makecontext, mktemp, pthread_attr_getstackaddr,
10359         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
10360         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
10361         (posix2001_functions): New variable.
10362         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
10363         otherwise.
10364
10365 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10366
10367         add missing include to parse-duration.c
10368         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
10369         * modules/parse-duration (Depends-on): Add xalloc.
10370
10371         fix sed script reading maint.mk
10372         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
10373         (syntax-check-rules): Use it.
10374
10375 2008-12-09  Bruno Haible  <bruno@clisp.org>
10376
10377         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
10378         MacOS X 10.4/PowerPC.
10379         Reported by Simon Josefsson.
10380
10381 2008-12-08  Jim Meyering  <meyering@redhat.com>
10382
10383         work around mingw's lack of some S_IF definitions
10384         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
10385         Reported by Simon Josefsson.
10386
10387 2008-12-08  Bruno Haible  <bruno@clisp.org>
10388
10389         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
10390         applied to variables. Needed on MacOS X 10.4/PowerPC.
10391         Reported by Simon Josefsson.
10392
10393 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
10394         and Eric Blake  <ebb9@byu.net>
10395
10396         assert: honor --enable-assert
10397         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
10398         order to honor --enable-assert, rather than treating it as a
10399         synonym for --disable-assert.
10400
10401 2008-12-08  Jim Meyering  <meyering@redhat.com>
10402
10403         * lib/posixtm.c: Remove now-useless declaration of mktime.
10404
10405         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
10406
10407 2008-12-07  Bruno Haible  <bruno@clisp.org>
10408
10409         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
10410         test_once): Mark functions as static.
10411         * tests/test-tls.c (test_tls): Likewise.
10412
10413 2008-12-07  Bruno Haible  <bruno@clisp.org>
10414
10415         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
10416         iconv_register_autodetect.
10417
10418 2008-12-07  Jim Meyering  <meyering@redhat.com>
10419
10420         posixtm.c: avoid a warning
10421         * lib/posixtm.c (posixtime): Don't initialize tm0.
10422         It's no longer needed to placate gcc4's -Wuninitialized,
10423         and the attempt to placate would elicit a new warning.
10424
10425         unicodeio.c: mark unused parameters
10426         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
10427         (fallback_failure_callback): Likewise.
10428
10429 2008-12-07  Bruno Haible  <bruno@clisp.org>
10430
10431         * gnulib-tool (func_create_testdir): When building the tests
10432         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
10433         Reported by Simon Josefsson.
10434
10435 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10436
10437         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
10438
10439 2008-12-06  Bruno Haible  <bruno@clisp.org>
10440
10441         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
10442         Suggested by Eric Blake.
10443
10444 2008-12-06  Bruno Haible  <bruno@clisp.org>
10445
10446         Fix a c-stack test failure on MacOS X.
10447         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
10448         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
10449         handler for SIGBUS as well.
10450         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
10451         install a signal handler for SIGBUS as well.
10452         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
10453
10454 2008-12-06  Bruno Haible  <bruno@clisp.org>
10455
10456         Advocacy documentation.
10457         * doc/gnulib-intro.texi (Benefits): New section.
10458         * doc/gnulib.texi: Update.
10459
10460 2008-12-06  Bruno Haible  <bruno@clisp.org>
10461
10462         Document the 'manywarnings' module.
10463         * doc/manywarnings.texi: New file.
10464         * doc/gnulib.texi: Include it.
10465
10466 2008-12-05  Eric Blake  <ebb9@byu.net>
10467
10468         tests: silence some gcc warnings
10469         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
10470         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
10471         type mismatches.
10472
10473 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
10474             Bruno Haible  <bruno@clisp.org>
10475
10476         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
10477
10478 2008-11-29  Jim Meyering  <meyering@redhat.com>
10479
10480         unicodeio.c: mark unused parameters
10481         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
10482         (fallback_failure_callback): Likewise.
10483
10484         fts: fix a thinko
10485         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
10486         (set_stat_type): Return S_IF*-valued "type" directly.
10487         Prompted by James Youngman's spotting a related bug.
10488         Confirmed by further testing through find.
10489
10490         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
10491         * lib/fts.c (D_TYPE): Define.
10492         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
10493         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
10494         (s_ifmt_shift_bits): New function.
10495         (set_stat_type): New function.
10496         (fts_build): When not calling fts_stat, call set_stat_type
10497         to propagate dirent.d_type info to fts_read caller.
10498         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
10499         fts_statp->st_mode type information may be valid.
10500
10501 2008-11-28  Simon Josefsson  <simon@josefsson.org>
10502
10503         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
10504         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
10505         <sds@gnu.org>.
10506
10507 2008-11-20  Bruno Haible  <bruno@clisp.org>
10508
10509         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
10510         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
10511         INCLUDE_NEXT.
10512         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
10513         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
10514         * modules/math (Makefile.am): Substitute
10515         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
10516         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
10517
10518 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
10519             Bruno Haible  <bruno@clisp.org>
10520
10521         * lib/stdint.in.h: Define all type macros so that their expansion is
10522         a single typedef'ed token. Fixes a compilation failure in Boost which
10523         does "using ::int8_t;".
10524
10525 2008-11-18  Simon Josefsson  <simon@josefsson.org>
10526
10527         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
10528         gl_MANYWARN_ALL_GCC.
10529         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
10530         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
10531         * modules/manywarnings: New file.
10532         * MODULES.html.sh: Mention manywarnings module.
10533
10534 2008-11-18  Bruno Haible  <bruno@clisp.org>
10535
10536         * doc/gnulib-tool.texi (Unit tests): New section.
10537
10538 2008-11-18  Simon Josefsson  <simon@josefsson.org>
10539
10540         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
10541         paths like 'lib/po/foo.po'.
10542
10543 2008-11-17  Simon Josefsson  <simon@josefsson.org>
10544
10545         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
10546         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
10547
10548 2008-11-17  Simon Josefsson  <simon@josefsson.org>
10549
10550         * m4/warnings.m4: Use CPPFLAGS to really check whether the
10551         parameter works.
10552
10553 2008-11-17  Simon Josefsson  <simon@josefsson.org>
10554
10555         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
10556
10557 2008-11-17  Bruce Korb  <bkorb@gnu.org>
10558
10559         * modules/parse-duration-tests: New file.
10560         * tests/test-parse-duration.sh: New file.
10561         * tests/test-parse-duration.c: New file.
10562
10563         New module 'parse-duration'.
10564         * lib/parse-duration.h: New file.
10565         * lib/parse-duration.c: New file.
10566         * modules/parse-duration: New file.
10567
10568 2008-11-17  Bruno Haible  <bruno@clisp.org>
10569
10570         * tests/test-select-out.sh: Comment out the first pipe test.
10571         Reported by Simon Josefsson.
10572
10573 2008-11-17  Bruno Haible  <bruno@clisp.org>
10574
10575         * modules/getaddrinfo (Depends-on): Add servent, hostent.
10576         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
10577         gl_HOSTENT.
10578
10579 2008-11-17  Bruno Haible  <bruno@clisp.org>
10580
10581         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
10582         -lnetwork and -lnet. Needed for Haiku and BeOS.
10583
10584 2008-11-16  Bruno Haible  <bruno@clisp.org>
10585
10586         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
10587
10588 2008-11-16  Bruno Haible  <bruno@clisp.org>
10589
10590         Avoid test failure on Haiku.
10591         * tests/test-fsync.c: Include <errno.h>.
10592         (main): Don't require that fsync (0) fails.
10593
10594 2008-11-15  Bruno Haible  <bruno@clisp.org>
10595
10596         New module 'hostent'.
10597         * modules/hostent: New file.
10598         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
10599
10600 2008-11-15  Bruno Haible  <bruno@clisp.org>
10601
10602         New module 'servent'.
10603         * modules/servent: New file.
10604         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
10605
10606 2008-11-15  Bruno Haible  <bruno@clisp.org>
10607
10608         Avoid generating same test program with two different rules.
10609         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
10610         test-frexp to test-frexp-nolibm.
10611         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
10612         test-frexpl to test-frexpl-nolibm.
10613
10614 2008-11-15  Bruno Haible  <bruno@clisp.org>
10615
10616         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
10617         $(FREXPL_LIBM).
10618
10619 2008-11-15  Bruno Haible  <bruno@clisp.org>
10620
10621         * lib/netdb.in.h: Activate the definitions also when the system's
10622         <netdb.h> has 'struct addrinfo'.
10623         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
10624         EAI_OVERFLOW or AI_NUMERICSERV.
10625         * doc/posix-headers/netdb.texi: Document the problem.
10626
10627 2008-11-15  Bruno Haible  <bruno@clisp.org>
10628
10629         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
10630
10631         Make the 'sched' module work on platforms where <sched.h> exists but
10632         is incomplete (such as Haiku).
10633         * lib/sched.in.h; Include the system's <sched.h> if it exists.
10634         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
10635         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
10636         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
10637         HAVE_STRUCT_SCHED_PARAM.
10638         * modules/sched (Depends-on): Add include_next.
10639         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
10640         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
10641         * doc/posix-headers/sched.texi: Document the issue.
10642
10643 2008-11-13  Jim Meyering  <meyering@redhat.com>
10644
10645         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
10646         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
10647         test would fail due to the difference in the Report bugs to ...
10648         line.  The expected address is empty, "<>", while the actual
10649         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
10650
10651 2008-11-12  Bruno Haible  <bruno@clisp.org>
10652
10653         lstat: don't compile lstat.c on systems lacking lstat
10654         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
10655         which don't have lstat; this is handled by lib/sys_stat.in.h already.
10656         Reported by Daniel P. Berrange via Jim Meyering.
10657
10658 2008-11-12  Jim Meyering  <meyering@redhat.com>
10659
10660         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
10661
10662 2008-11-12  Simon Josefsson  <simon@josefsson.org>
10663
10664         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
10665         instead.
10666
10667 2008-11-12  Bruno Haible  <bruno@clisp.org>
10668
10669         * lib/unicodeio.c: Include unistr.h.
10670         (utf8_wctomb): Remove function.
10671         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
10672
10673 2008-11-12  Simon Josefsson  <simon@josefsson.org>
10674
10675         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
10676         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
10677         <bruno@clisp.org>.
10678         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
10679
10680 2008-11-12  Simon Josefsson  <simon@josefsson.org>
10681
10682         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
10683         * doc/gnulib.texi: Add section for warnings.
10684
10685 2008-11-11  Bruno Haible  <bruno@clisp.org>
10686
10687         * lib/sockets.h: Add a comment.
10688
10689 2008-11-11  Karl Berry  <karl@gnu.org>
10690
10691         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
10692
10693 2008-11-11  Eric Blake  <ebb9@byu.net>
10694
10695         fdl.texi: avoid git symlinks
10696         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
10697
10698 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
10699
10700         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
10701
10702 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
10703
10704         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
10705         (gl_WARN_ADD): Substitute $2 if literal.
10706
10707 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
10708
10709         * m4/warning.m4: Remove.
10710
10711 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
10712
10713         * m4/warnings.m4: Almost complete rewrite. :-)
10714
10715 2008-11-10  Simon Josefsson  <simon@josefsson.org>
10716
10717         * modules/warnings: New module.
10718         * m4/warnings.m4: New file.
10719         * MODULES.html.sh: Mention warnings module.
10720         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
10721         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
10722
10723 2008-11-10  Eric Blake  <ebb9@byu.net>
10724
10725         fdl.texi: make a symlink to the latest version
10726         * doc/standards.texi: Revert today's earlier change.
10727         * doc/fdl-1.2.texi: Rename from old fdl.texi...
10728         * doc/fdl.texi: ...and replace this with a symlink to the newer
10729         fdl-1.3.texi.
10730
10731 2008-11-10  Bruno Haible  <bruno@clisp.org>
10732
10733         * tests/test-select-fd.c (main): Accept the result file name as fourth
10734         argument.
10735         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
10736         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
10737
10738 2008-11-10  Bruno Haible  <bruno@clisp.org>
10739
10740         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
10741         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
10742         as autoconf-substituted macros.
10743         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
10744         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
10745         gl_NETDB_H_DEFAULTS. Set these variables.
10746         * modules/netdb (Makefile.am): Substitute these variables.
10747
10748 2008-11-10  Eric Blake  <ebb9@byu.net>
10749
10750         standards.texi: include correct file for FDL 1.3
10751         * doc/standards.texi (GNU Free Documentation License): Change
10752         include file to pull in FDL 1.3, not 1.2.
10753
10754         fdl.texi: revert accidental change to license
10755         * doc/fdl.texi: This is FDL 1.2, not 1.3.
10756
10757 2008-11-10  Bruno Haible  <bruno@clisp.org>
10758
10759         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
10760         cross-compiling guesses also when the native compile gives no result.
10761
10762 2008-11-10  Bruno Haible  <bruno@clisp.org>
10763
10764         * lib/spawni.c (__spawni): Force variable into the stack.
10765
10766 2008-11-10  Bruno Haible  <bruno@clisp.org>
10767
10768         Add support for Haiku.
10769         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
10770         glibc and BeOS, but also on Haiku.
10771         * lib/fpurge.c (fpurge): Likewise.
10772         * lib/freadable.c (freadable): Likewise.
10773         * lib/freadahead.c (freadahead): Likewise.
10774         * lib/freading.c (freading): Likewise.
10775         * lib/freadptr.c (freadptr): Likewise.
10776         * lib/freadseek.c (freadptrinc): Likewise.
10777         * lib/fseeko.c (rpl_fseeko): Likewise.
10778         * lib/fseterr.c (fseterr): Likewise.
10779         * lib/fwritable.c (fwritable): Likewise.
10780         * lib/fwriting.c (fwriting): Likewise.
10781         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
10782
10783 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
10784
10785         * lib/config.charset: Treat Haiku like BeOS.
10786
10787 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
10788
10789         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
10790         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
10791
10792 2008-11-08  Bruno Haible  <bruno@clisp.org>
10793
10794         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
10795         AC_CACHE_CHECK.
10796
10797 2008-11-08  Bruno Haible  <bruno@clisp.org>
10798
10799         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
10800
10801 2008-11-08  Bruno Haible  <bruno@clisp.org>
10802
10803         * tests/test-select-fd.c: New file.
10804         * tests/test-select-in.sh: New file.
10805         * tests/test-select-out.sh: New file.
10806         * tests/test-select-stdin.c: New file.
10807         * modules/select-tests (Files): Add the new files.
10808         (Depends-on): Add gettimeofday.
10809         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
10810         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
10811         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
10812
10813 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
10814             Bruno Haible  <bruno@clisp.org>
10815
10816         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
10817
10818 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
10819
10820         * build-aux/pmccabe2html: Added support for C++ source files.
10821
10822 2008-11-05  Ben Pfaff  <blp@gnu.org>
10823
10824         Fix lib/close.c build on Windows.
10825         * modules/close (Files): Add lib/w32sock.h.
10826
10827 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
10828
10829         Accept Bison's NEWS format.
10830         * build-aux/announce-gen (print_news_deltas): Tweak
10831         $re_prefix.
10832
10833 2008-11-04  Bruno Haible  <bruno@clisp.org>
10834
10835         * modules/random_r (Maintainer): Add glibc.
10836
10837 2008-11-04  Simon Josefsson  <simon@josefsson.org>
10838
10839         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
10840         by karl@freefriends.org (Karl Berry).
10841         * doc/alloca.texi: Likewise.
10842         * doc/c-ctype.texi: Likewise.
10843         * doc/c-strcase.texi: Likewise.
10844         * doc/c-strcaseeq.texi: Likewise.
10845         * doc/c-strcasestr.texi: Likewise.
10846         * doc/c-strstr.texi: Likewise.
10847         * doc/c-strtod.texi: Likewise.
10848         * doc/c-strtold.texi: Likewise.
10849         * doc/ctime.texi: Likewise.
10850         * doc/error.texi: Likewise.
10851         * doc/fdl.texi: Likewise.
10852         * doc/gcd.texi: Likewise.
10853         * doc/getdate.texi: Likewise.
10854         * doc/gnulib-intro.texi: Likewise.
10855         * doc/gnulib-tool.texi: Likewise.
10856         * doc/gnulib.texi: Likewise.
10857         * doc/inet_ntoa.texi: Likewise.
10858         * doc/maintain.texi: Likewise.
10859         * doc/make-stds.texi: Likewise.
10860         * doc/quote.texi: Likewise.
10861         * doc/regexprops-generic.texi: Likewise.
10862         * doc/standards.texi: Likewise.
10863         * doc/verify.texi: Likewise.
10864         * doc/visibility.texi: Likewise.
10865         * doc/gnulib.texi (GNU Free Documentation License): Include
10866         fdl-1.3.texi instead of fdl.texi.
10867
10868 2008-11-04  Simon Josefsson  <simon@josefsson.org>
10869
10870         * doc/fdl-1.3.texi: New file, from
10871         <http://www.gnu.org/licenses/fdl-1.3.texi>.
10872         * modules/fdl-1.3: Add.
10873         * MODULES.html.sh: Add fdl-1.3.
10874
10875 2008-11-03  Bruno Haible  <bruno@clisp.org>
10876
10877         Make determination of absolute name of header file work with AIX xlc.
10878         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
10879         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
10880         preprocessing.
10881         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
10882         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
10883
10884 2008-11-03  Simon Josefsson  <simon@josefsson.org>
10885
10886         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
10887         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
10888         <ludo@gnu.org>.
10889
10890 2008-11-02  Bruno Haible  <bruno@clisp.org>
10891
10892         Mark 'strpbrk' obsolete.
10893         * modules/strpbrk (Status, Notice): New sections.
10894         * modules/strtok_r (Depends-on): Add strpbrk.
10895
10896 2008-11-02  Bruno Haible  <bruno@clisp.org>
10897
10898         Mark 'strdup' obsolete.
10899         * modules/strdup (Status, Notice): New sections.
10900         * modules/findprog (Depends-on): Add strdup.
10901         * modules/getaddrinfo (Depends-on): Likewise.
10902         * modules/localename (Depends-on): Likewise.
10903         * modules/relocatable-lib (Depends-on): Likewise.
10904         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
10905         * modules/relocatable-prog (Depends-on): Likewise.
10906         * modules/trim (Depends-on): Likewise.
10907         * modules/unictype/gen-ctype (Depends-on): Likewise.
10908         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
10909
10910 2008-11-02  Bruno Haible  <bruno@clisp.org>
10911
10912         Mark 'strcspn' obsolete.
10913         * modules/strcspn (Status, Notice): New sections.
10914
10915 2008-11-02  Bruno Haible  <bruno@clisp.org>
10916
10917         Mark 'rmdir' obsolete.
10918         * modules/rmdir (Status, Notice): New sections.
10919         * modules/clean-temp (Depends-on): Add rmdir.
10920         * modules/openat (Depends-on): Likewise.
10921
10922 2008-11-02  Bruno Haible  <bruno@clisp.org>
10923
10924         Mark 'raise' obsolete.
10925         * modules/raise (Status, Notice): New sections.
10926         (Include): Specify <signal.h>.
10927         * modules/stdio (Depends-on): Add raise.
10928         * modules/write (Depends-on): Likewise.
10929
10930 2008-11-02  Bruno Haible  <bruno@clisp.org>
10931
10932         Mark 'memset' obsolete.
10933         * modules/memset (Status, Notice): New sections.
10934
10935 2008-11-02  Bruno Haible  <bruno@clisp.org>
10936
10937         Mark 'memmove' obsolete.
10938         * modules/memmove (Status, Notice): New sections.
10939         * modules/argp (Depends-on): Add memmove.
10940         * modules/argz (Depends-on): Likewise.
10941         * modules/canonicalize (Depends-on): Likewise.
10942         * modules/canonicalize-lgpl (Depends-on): Likewise.
10943         * modules/fts (Depends-on): Likewise.
10944         * modules/getcwd (Depends-on): Likewise.
10945         * modules/human (Depends-on): Likewise.
10946         * modules/regex (Depends-on): Likewise.
10947         * modules/striconveh (Depends-on): Likewise.
10948         * modules/trim (Depends-on): Likewise.
10949         * modules/unistr/u8-move (Depends-on): Likewise.
10950         * modules/unistr/u16-move (Depends-on): Likewise.
10951         * modules/unistr/u32-move (Depends-on): Likewise.
10952
10953 2008-11-02  Bruno Haible  <bruno@clisp.org>
10954
10955         Mark 'memcpy' obsolete.
10956         * modules/memcpy (Status, Notice): New sections.
10957
10958 2008-11-02  Bruno Haible  <bruno@clisp.org>
10959
10960         Mark 'memcmp' obsolete.
10961         * modules/memcmp (Status, Notice): New sections.
10962         * modules/argmatch (Depends-on): Add memchr.
10963         * modules/backupfile (Depends-on): Likewise.
10964         * modules/c-strcasestr (Depends-on): Likewise.
10965         * modules/crypto/des (Depends-on): Likewise.
10966         * modules/csharpcomp (Depends-on): Likewise.
10967         * modules/fnmatch (Depends-on): Likewise.
10968         * modules/git-merge-changelog (Depends-on): Likewise.
10969         * modules/isnand (Depends-on): Likewise.
10970         * modules/isnand-nolibm (Depends-on): Likewise.
10971         * modules/isnanf (Depends-on): Likewise.
10972         * modules/isnanf-nolibm (Depends-on): Likewise.
10973         * modules/isnanl (Depends-on): Likewise.
10974         * modules/isnanl-nolibm (Depends-on): Likewise.
10975         * modules/mbchar (Depends-on): Likewise.
10976         * modules/memcoll (Depends-on): Likewise.
10977         * modules/quotearg (Depends-on): Likewise.
10978         * modules/regex (Depends-on): Likewise.
10979         * modules/relocatable-prog (Depends-on): Likewise.
10980         * modules/same (Depends-on): Likewise.
10981         * modules/signbit (Depends-on): Likewise.
10982         * modules/strcasestr-simple (Depends-on): Likewise.
10983         * modules/unictype/gen-ctype (Depends-on): Likewise.
10984         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
10985         * modules/uniname/uniname (Depends-on): Likewise.
10986         * modules/unistr/u8-cmp (Depends-on): Likewise.
10987
10988 2008-11-02  Bruno Haible  <bruno@clisp.org>
10989
10990         Mark 'memchr' obsolete.
10991         * modules/memchr (Status, Notice): New sections.
10992         * modules/argp (Depends-on): Add memchr.
10993         * modules/base64 (Depends-on): Likewise.
10994         * modules/c-strcasestr (Depends-on): Likewise.
10995         * modules/chdir-long (Depends-on): Likewise.
10996         * modules/fnmatch (Depends-on): Likewise.
10997         * modules/getsubopt (Depends-on): Likewise.
10998         * modules/git-merge-changelog (Depends-on): Likewise.
10999         * modules/glob (Depends-on): Likewise.
11000         * modules/strcasestr-simple (Depends-on): Likewise.
11001         * modules/strnlen (Depends-on): Likewise.
11002
11003 2008-11-02  Bruno Haible  <bruno@clisp.org>
11004
11005         Mark 'atexit' obsolete.
11006         * modules/atexit (Status, Notice): New sections.
11007         * modules/chdir-long (Depends-on): Add atexit.
11008         * modules/wait-process (Depends-on): Likewise.
11009
11010 2008-11-02  Bruno Haible  <bruno@clisp.org>
11011
11012         * gnulib-tool: New option --with-obsolete.
11013         (func_usage): Document it.
11014         (func_modules_transitive_closure): Drop obsolete dependencies if
11015         incobsolete is not true.
11016         (func_import): Read and save the incobsolete variable to the cache.
11017
11018 2008-11-02  Bruno Haible  <bruno@clisp.org>
11019
11020         * modules/TEMPLATE-EXTENDED: New field 'Status'.
11021         * gnulib-tool: New option --extract-status.
11022         (func_usage): Document it.
11023         (sed_extract_prog): Recognize it.
11024         (func_get_status): New function.
11025
11026 2008-10-30  Simon Josefsson  <simon@josefsson.org>
11027
11028         * modules/sockets (License): Change from LGPL to LGPLv2+.
11029
11030 2008-10-28  Simon Josefsson  <simon@josefsson.org>
11031
11032         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
11033
11034 2008-10-28  Simon Josefsson  <simon@josefsson.org>
11035
11036         * MODULES.html.sh (Support for systems lacking POSIX:2001):
11037         Mention times and sys_times.
11038         * modules/sys_times, modules/sys_times-tests: New modules.
11039         * modules/times, modules/times-tests: Likewise
11040         * m4/sys_times_h.m4: New file.
11041         * lib/sys_times.in.h: Likewise
11042         * lib/times.c: Likewise.
11043         * tests/test-sys_times.c: Likewise.
11044         * tests/test-times.c: Likewise.
11045         * doc/posix-headers/sys_times.texi: Update.
11046         * doc/posix-functions/times.texi: Update.
11047
11048 2008-10-28  Jim Meyering  <meyering@redhat.com>
11049
11050         * modules/tempname (Depends-on): Add lstat.
11051
11052         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
11053
11054 2008-10-28  Simon Josefsson  <simon@josefsson.org>
11055
11056         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
11057         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
11058         using idiom used elsewhere in gnulib.
11059
11060 2008-10-27  Jim Meyering  <meyering@redhat.com>
11061
11062         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
11063
11064 2008-10-27  Simon Josefsson  <simon@josefsson.org>
11065
11066         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
11067         TESTS_ENVIRONMENT, for shell scripts that needs to call built
11068         programs.
11069         * tests/test-argp-2.sh: Use $EXEEXT when needed.
11070
11071 2008-10-27  Simon Josefsson  <simon@josefsson.org>
11072
11073         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
11074
11075 2008-10-27  Bruno Haible  <bruno@clisp.org>
11076
11077         * tests/test-lstat.c: Include <stdio.h>.
11078
11079 2008-10-27  Simon Josefsson  <simon@josefsson.org>
11080
11081         * modules/lstat-tests: New module.
11082         * tests/test-lstat.c: New file.
11083
11084 2008-10-26  Jim Meyering  <meyering@redhat.com>
11085
11086         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
11087
11088 2008-10-26  Simon Josefsson  <simon@josefsson.org>
11089             Bruno Haible  <bruno@clisp.org>
11090
11091         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
11092         * modules/configmake (Include): Add a note that the include must come
11093         after all system headers.
11094         * lib/javaversion.c: Include configmake.h after all other includes.
11095
11096 2008-10-26  Bruno Haible  <bruno@clisp.org>
11097
11098         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
11099         HAVE_STRUCT_RANDOM_DATA to 1.
11100         (gl_STDLIB_H): Simplify.
11101
11102 2008-10-26  Simon Josefsson  <simon@josefsson.org>
11103
11104         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
11105         substitute HAVE_STRUCT_RANDOM_DATA.
11106         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
11107         random_data.
11108         * modules/stdlib (Makefile.am): Substitute
11109         HAVE_STRUCT_RANDOM_DATA.
11110
11111 2008-10-26  Simon Josefsson  <simon@josefsson.org>
11112
11113         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
11114         * doc/gnulib-intro.texi (Copyright): Likewise.
11115
11116 2008-10-26  Simon Josefsson  <simon@josefsson.org>
11117
11118         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
11119         findings.
11120
11121 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
11122             Bruno Haible  <bruno@clisp.org>
11123
11124         * lib/unistd.in.h: Include <winsock2.h>.
11125         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
11126         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
11127         Provide dummy declarations.
11128         (gethostname): Override.
11129         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
11130         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
11131         gl_PREREQ_SYS_H_WINSOCK2.
11132         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
11133         * doc/posix-functions/gethostname.texi: More details.
11134
11135 2008-10-25  Bruno Haible  <bruno@clisp.org>
11136
11137         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
11138         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
11139         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
11140
11141         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
11142         here ...
11143         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
11144         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
11145         gl_UNISTD_H_DEFAULTS.
11146
11147 2008-10-25  Eric Blake  <ebb9@byu.net>
11148
11149         signbit: avoid spurious compiler failure
11150         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
11151         declarations inside function.
11152
11153 2008-10-24  Simon Josefsson  <simon@josefsson.org>
11154             Bruno Haible  <bruno@clisp.org>
11155
11156         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
11157         * modules/random_r (Depends-on): Add stdint.
11158
11159 2008-10-24  Bruno Haible  <bruno@clisp.org>
11160
11161         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
11162         Eggert.
11163         * modules/strerror (License): Likewise.
11164
11165 2008-10-24  Jim Meyering  <meyering@redhat.com>
11166
11167         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
11168         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
11169
11170 2008-10-24  Eric Blake  <ebb9@byu.net>
11171
11172         getgroups: fix compilation when getgroups is available
11173         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
11174         but with <config.h> override of getgroups disabled.
11175
11176 2008-10-24  Simon Josefsson  <simon@josefsson.org>
11177
11178         * doc/gnulib.texi (Header files): Add note about C++ problems.
11179         Explained by Bruno Haible <bruno@clisp.org>.
11180
11181 2008-10-23  Bruno Haible  <bruno@clisp.org>
11182
11183         Define a dummy SA_NODEFER macro on Interix.
11184         * lib/signal.in.h (SA_NODEFER): Define fallback.
11185         Reported by Aleksey Cheusov <cheusov@tut.by> via
11186         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
11187
11188 2008-10-23  Bruno Haible  <bruno@clisp.org>
11189
11190         * modules/freadahead (License): Change to LGPLv2+.
11191         Suggested by Simon Josefsson.
11192
11193 2008-10-23  Jim Meyering  <meyering@redhat.com>
11194
11195         random_r: new module
11196         * modules/random_r: New file.
11197         * m4/random_r.m4: New file.
11198         * lib/random_r.c: New file, from glibc.
11199         * modules/random_r-tests: New file.
11200         * tests/test-random_r.c: New file.
11201         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
11202          Declare.
11203         (RAND_MAX): Define.
11204         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
11205         * modules/stdlib: Substitute them, too.
11206         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
11207         * doc/glibc-functions/initstate_r.texi: Mention the new module.
11208         * doc/glibc-functions/random_r.texi: Likewise.
11209         * doc/glibc-functions/setstate_r.texi: Likewise.
11210         * doc/glibc-functions/srandom_r.texi: Likewise.
11211         * config/srclist.txt: Mention it.
11212
11213 2008-10-23  David Lutterkort  <lutter@redhat.com>
11214
11215         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
11216         link requirement
11217
11218 2008-10-23  Jim Meyering  <meyering@redhat.com>
11219
11220         selinux-h: mark parameters of stub functions as intentionally unused
11221         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
11222         * lib/se-context.in.h: Likewise.
11223
11224 2008-10-22  Simon Josefsson  <simon@josefsson.org>
11225
11226         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
11227
11228 2008-10-22  Simon Josefsson  <simon@josefsson.org>
11229
11230         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
11231
11232 2008-10-22  Eric Blake  <ebb9@byu.net>
11233
11234         glthread/thread: avoid compiler warning
11235         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
11236         Add unreachable abort to silence compiler.
11237
11238 2008-10-22  Eric Blake  <ebb9@byu.net>
11239
11240         netdb: also supply struct addrinfo for cygwin 1.5.x
11241         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
11242         older cygwin.
11243         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
11244         cygwin.
11245         * doc/posix-headers/netdb.texi (netdb.h): Document this.
11246
11247 2008-10-22  Bruno Haible  <bruno@clisp.org>
11248
11249         * users.txt: Update entry about pspp.
11250
11251 2008-10-21  Bruno Haible  <bruno@clisp.org>
11252
11253         Simplification.
11254         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
11255         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
11256
11257         Simplification.
11258         * lib/ioctl.c (ioctl): Don't undefine.
11259         * lib/socket.c (socket): Don't undefine.
11260
11261         Remove unused module indicator macros.
11262         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
11263         GNULIB_$1 as a C macro.
11264
11265         * doc/posix-functions/close.texi: Undo last change.
11266         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
11267         Windows platforms.
11268
11269 2008-10-21  Bruno Haible  <bruno@clisp.org>
11270
11271         Add gethostname() declaration to <unistd.h>.
11272         * lib/unistd.in.h (gethostname): New declaration.
11273         * lib/gethostname.c: Include <unistd.h>.
11274         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
11275         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
11276         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
11277         and HAVE_GETHOSTNAME.
11278         * modules/gethostname (Depends-on): Add unistd.
11279         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
11280         (Include): Specify <unistd.h>.
11281         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
11282         HAVE_GETHOSTNAME.
11283         * tests/test-gethostname.c: Include <unistd.h> first.
11284
11285 2008-10-21  Bruno Haible  <bruno@clisp.org>
11286
11287         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
11288         * modules/select-tests (Depends-on): Likewise.
11289         Reported by Simon Josefsson.
11290
11291 2008-10-21  Simon Josefsson  <simon@josefsson.org>
11292
11293         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
11294         * lib/accept.c: New file, based on winsock.c.
11295         * lib/bind.c: New file, based on winsock.c.
11296         * lib/connect.c: New file, based on winsock.c.
11297         * lib/getpeername.c: New file, based on winsock.c.
11298         * lib/getsockname.c: New file, based on winsock.c.
11299         * lib/getsockopt.c: New file, based on winsock.c.
11300         * lib/ioctl.c: New file, based on winsock.c.
11301         * lib/listen.c: New file, based on winsock.c.
11302         * lib/recv.c: New file, based on winsock.c.
11303         * lib/recvfrom.c: New file, based on winsock.c.
11304         * lib/send.c: New file, based on winsock.c.
11305         * lib/sendto.c: New file, based on winsock.c.
11306         * lib/setsockopt.c: New file, based on winsock.c.
11307         * lib/shutdown.c: New file, based on winsock.c.
11308         * lib/socket.c: New file, based on winsock.c.
11309         * lib/w32sock.h: New file, based on winsock.c.
11310         * lib/winsock.c: Remove file.
11311         * modules/accept: Likewise.
11312         * modules/bind: Likewise.
11313         * modules/connect: Likewise.
11314         * modules/getpeername: Likewise.
11315         * modules/getsockname: Likewise.
11316         * modules/getsockopt: Likewise.
11317         * modules/ioctl: Likewise.
11318         * modules/listen: Likewise.
11319         * modules/recv: Likewise.
11320         * modules/recvfrom: Likewise.
11321         * modules/send: Likewise.
11322         * modules/sendto: Likewise.
11323         * modules/setsockopt: Likewise.
11324         * modules/shutdown: Likewise.
11325         * modules/socket: Use socket.c instead of winsock.c.
11326         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
11327         * doc/posix-functions/accept.texi: Doc fix.
11328         * doc/posix-functions/bind.texi: Doc fix.
11329         * doc/posix-functions/close.texi: Doc fix.
11330         * doc/posix-functions/connect.texi: Doc fix.
11331         * doc/posix-functions/getpeername.texi: Doc fix.
11332         * doc/posix-functions/getsockname.texi: Doc fix.
11333         * doc/posix-functions/getsockopt.texi: Doc fix.
11334         * doc/posix-functions/ioctl.texi: Doc fix.
11335         * doc/posix-functions/listen.texi: Doc fix.
11336         * doc/posix-functions/recv.texi: Doc fix.
11337         * doc/posix-functions/recvfrom.texi: Doc fix.
11338         * doc/posix-functions/send.texi: Doc fix.
11339         * doc/posix-functions/sendto.texi: Doc fix.
11340         * doc/posix-functions/setsockopt.texi: Doc fix.
11341         * doc/posix-functions/shutdown.texi: Doc fix.
11342         * doc/posix-functions/socket.texi: Doc fix.
11343
11344 2008-10-20  Bruno Haible  <bruno@clisp.org>
11345
11346         Take into account the role of SIGABRT_COMPAT on Windows 2008.
11347         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
11348         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
11349         as an alias for SIGABRT.
11350         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
11351         (sigaction): Map it to SIGABRT.
11352         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
11353
11354 2008-10-20  Bruno Haible  <bruno@clisp.org>
11355
11356         * lib/fts.c: Don't include lstat.h.
11357         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
11358
11359         Move the lstat() declaration to <sys/stat.h>.
11360         * lib/lstat.h: Remove file.
11361         * lib/sys_stat.in.h: Add special invocation convention.
11362         (lstat): New declaration.
11363         * lib/lstat.c (orig_lstat): New function.
11364         (rpl_lstat): Use orig_lstat instead of lstat.
11365         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
11366         AC_C_INLINE. Set REPLACE_LSTAT.
11367         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
11368         and REPLACE_LSTAT.
11369         * modules/lstat (Files): Remove lib/lstat.h.
11370         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
11371         (Include): Specify <sys/stat.h> instead of lstat.h.
11372         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
11373         REPLACE_LSTAT.
11374         * NEWS: Mention the change.
11375
11376 2008-10-20  Bruno Haible  <bruno@clisp.org>
11377
11378         * modules/posix_spawn-tests: New file.
11379         * tests/test-posix_spawn3.c: New file.
11380
11381 2008-10-20  Bruno Haible  <bruno@clisp.org>
11382
11383         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
11384         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
11385         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
11386         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
11387         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
11388
11389 2008-10-20  Bruno Haible  <bruno@clisp.org>
11390
11391         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
11392         of posix_spawn on AIX 5.3.
11393
11394 2008-10-20  Bruno Haible  <bruno@clisp.org>
11395
11396         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
11397
11398 2008-10-20  Bruno Haible  <bruno@clisp.org>
11399
11400         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
11401         of AC_LANG_PROGRAM.
11402
11403 2008-10-20  Simon Josefsson  <simon@josefsson.org>
11404
11405         * lib/netdb.in.h: Don't define GNU specific constants until they
11406         are supported or needed.  Reported by Bruno Haible
11407         <bruno@clisp.org>.
11408
11409 2008-10-20  Simon Josefsson  <simon@josefsson.org>
11410
11411         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
11412
11413 2008-10-20  Simon Josefsson  <simon@josefsson.org>
11414
11415         * lib/getaddrinfo.h: Remove file.
11416         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
11417         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
11418         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
11419         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
11420         * modules/netdb: Substitute GNULIB_GETADDRINFO.
11421         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
11422         * tests/test-getaddrinfo.c: Likewise.
11423         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
11424         * NEWS: Mention change.
11425
11426 2008-10-19  Bruno Haible  <bruno@clisp.org>
11427
11428         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
11429
11430 2008-10-19  Bruno Haible  <bruno@clisp.org>
11431
11432         * lib/wait-process.c: Include simply <sys/wait.h>.
11433         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
11434         WIFSTOPPED): Remove fallback definitions.
11435         * modules/wait-process (Depends-on): Add sys_wait.
11436
11437         New module 'sys_wait'.
11438         * modules/sys_wait: New file.
11439         * lib/sys_wait.in.h: New file, partially copied from
11440         lib/wait-process.c.
11441         * m4/sys_wait_h.m4: New file.
11442         * doc/posix-headers/sys_wait.texi: Mention the new module.
11443
11444 2008-10-19  Bruno Haible  <bruno@clisp.org>
11445
11446         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
11447
11448 2008-10-19  Bruno Haible  <bruno@clisp.org>
11449
11450         Assume that waitpid() fills an 'int' status, not a 'union wait'.
11451         * lib/wait-process.c (WAIT_T): Remove type.
11452         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
11453         (wait_subprocess): Update.
11454
11455 2008-10-19  Bruno Haible  <bruno@clisp.org>
11456
11457         New module 'atoll'.
11458         * modules/atoll: New file.
11459         * lib/stdlib.in.h (atoll): New declaration.
11460         * lib/atoll.c: New file, from glibc with modifications.
11461         * m4/atoll.m4: New file.
11462         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
11463         HAVE_ATOLL.
11464         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
11465         * doc/posix-functions/atoll.texi: Mention the new module.
11466
11467 2008-10-19  Bruno Haible  <bruno@clisp.org>
11468
11469         Add strtoull() declaration to <stdlib.h>.
11470         * lib/stdlib.in.h (strtoull): New declaration.
11471         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
11472         Set HAVE_STRTOULL.
11473         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
11474         HAVE_STRTOULL.
11475         * modules/strtoull (Depends-on): Add stdlib.
11476         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
11477         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
11478         HAVE_STRTOULL.
11479
11480 2008-10-19  Bruno Haible  <bruno@clisp.org>
11481
11482         Add strtoll() declaration to <stdlib.h>.
11483         * lib/stdlib.in.h (strtoll): New declaration.
11484         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
11485         Set HAVE_STRTOLL.
11486         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
11487         HAVE_STRTOLL.
11488         * modules/strtoll (Depends-on): Add stdlib.
11489         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
11490         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
11491
11492 2008-10-19  Bruno Haible  <bruno@clisp.org>
11493
11494         * modules/bcopy (Depends-on): Add strings.
11495         (Include): Specify <strings.h>.
11496
11497 2008-10-19  Bruno Haible  <bruno@clisp.org>
11498
11499         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
11500
11501 2008-10-19  Bruno Haible  <bruno@clisp.org>
11502
11503         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
11504         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
11505         mingw.
11506
11507 2008-10-19  Bruno Haible  <bruno@clisp.org>
11508
11509         * lib/atanl.c: Don't include isnanl.h.
11510         * lib/cosl.c: Likewise.
11511         * lib/ldexpl.c: Likewise.
11512         * lib/logl.c: Likewise.
11513         * lib/sinl.c: Likewise.
11514         * lib/sqrtl.c: Likewise.
11515         * lib/tanl.c: Likewise.
11516
11517         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
11518         * lib/isnanf.h: Remove file.
11519         * lib/isnand.h: Remove file.
11520         * lib/isnanl.h: Remove file.
11521         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
11522         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
11523         macros.
11524         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
11525         HAVE_ISNANF, don't define it as a C macro.
11526         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
11527         HAVE_ISNAND, don't define it as a C macro.
11528         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
11529         HAVE_ISNANL, don't define it as a C macro.
11530         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
11531         HAVE_ISNAN[FDL].
11532         * modules/isnanf (Files): Remove lib/isnanf.h.
11533         (Depends-on): Add math.
11534         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
11535         (Include): Specify <math.h> instead of isnanf.h.
11536         * modules/isnand (Files): Remove lib/isnand.h.
11537         (Depends-on): Add math.
11538         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
11539         (Include): Specify <math.h> instead of isnand.h.
11540         * modules/isnanl (Files): Remove lib/isnanl.h.
11541         (Depends-on): Add math.
11542         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
11543         (Include): Specify <math.h> instead of isnanl.h.
11544         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
11545         HAVE_ISNAN[FDL].
11546         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
11547         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
11548         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
11549         * NEWS: Mention the change.
11550
11551 2008-10-18  Bruno Haible  <bruno@clisp.org>
11552
11553         Add getusershell(), setusershell(), endusershell() declarations to
11554         <unistd.h>.
11555         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
11556         declarations.
11557         * lib/getusershell.c: Include unistd.h.
11558         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
11559         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
11560         HAVE_GETUSERSHELL.
11561         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
11562         and HAVE_GETUSERSHELL.
11563         * modules/getusershell (Depends-on): Add unistd, extensions.
11564         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
11565         (Include): Specify <unistd.h>.
11566         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
11567         HAVE_GETUSERSHELL.
11568
11569 2008-10-18  Bruno Haible  <bruno@clisp.org>
11570
11571         Add a getloadavg() declaration to <stdlib.h>.
11572         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
11573         getloadavg declaration.
11574         (getloadavg): New declaration.
11575         * lib/getloadavg.c: Include <stdlib.h> first.
11576         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
11577         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
11578         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
11579         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
11580         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
11581         * modules/getloadavg (Depends-on): Add stdlib, extensions.
11582         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
11583         (Include): Specify <stdlib.h>.
11584         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
11585         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
11586
11587 2008-10-18  Bruno Haible  <bruno@clisp.org>
11588
11589         * lib/dirchownmod.c: Don't include lchmod.h.
11590
11591         Move the lchmod() declaration to <sys/stat.h>.
11592         * lib/lchmod.h: Remove file.
11593         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
11594         (lchmod): New declaration, moved here from lib/lchown.h.
11595         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
11596         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
11597         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
11598         and HAVE_LCHMOD.
11599         * modules/lchmod (Files): Remove lib/lchmod.h.
11600         (Depends-on): Add sys_stat, extensions.
11601         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
11602         (Include): Specify <sys/stat.h> instead of lchmod.h.
11603         * modules/sys_stat (Depends-on): Add link-warning.
11604         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
11605         definition of GL_LINK_WARNING.
11606         * NEWS: Mention the change.
11607
11608 2008-10-18  Bruno Haible  <bruno@clisp.org>
11609
11610         * lib/fchdir.c: Don't include dirfd.h.
11611         * lib/fts.c: Likewise.
11612         * lib/getcwd.c: Likewise.
11613         * lib/glob.c: Likewise.
11614
11615         Move the dirfd() declaration to <dirent.h>.
11616         * lib/dirfd.h: Remove file.
11617         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
11618         (dirfd): New declaration.
11619         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
11620         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
11621         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
11622         HAVE_DECL_DIRFD.
11623         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
11624         HAVE_DECL_DIRFD.
11625         * modules/dirfd (Files): Remove lib/dirfd.h.
11626         (Depends-on): Add dirent, extensions.
11627         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
11628         (Include): Specify <dirent.h> instead of dirfd.h.
11629         * modules/dirent (Depends-on): Add link-warning.
11630         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
11631         definition of GL_LINK_WARNING.
11632         * NEWS: Mention the change.
11633
11634 2008-10-18  Bruno Haible  <bruno@clisp.org>
11635
11636         Move the euidaccess() declaration to <unistd.h>.
11637         * lib/euidaccess.h: Remove file.
11638         * lib/unistd.in.h (euidaccess): New declaration.
11639         * lib/euidaccess.c: Don't include euidaccess.h.
11640         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
11641         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
11642         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
11643         and HAVE_EUIDACCESS.
11644         * modules/euidaccess (Files): Remove lib/euidaccess.h.
11645         (Depends-on): Add unistd.
11646         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
11647         (Include): Specify <unistd.h> instead of euidaccess.h.
11648         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
11649         HAVE_EUIDACCESS.
11650         * NEWS: Mention the change.
11651
11652 2008-10-18  Bruno Haible  <bruno@clisp.org>
11653
11654         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
11655
11656         Move the getdomainname() declaration to <unistd.h>.
11657         * lib/getdomainname.h: Remove file.
11658         * lib/unistd.in.h (getdomainname): New declaration.
11659         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
11660         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
11661         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
11662         HAVE_GETDOMAINNAME.
11663         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
11664         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
11665         * modules/getdomainname (Files): Remove lib/getdomainname.h.
11666         (Depends-on): Add unistd, extensions.
11667         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
11668         (Includes): Specify <unistd.h> instead of getdomainname.h.
11669         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
11670         HAVE_GETDOMAINNAME.
11671         * NEWS: Mention the change.
11672
11673 2008-10-18  Bruno Haible  <bruno@clisp.org>
11674
11675         * modules/dirent: New file.
11676         * m4/dirent_h.m4: New file.
11677         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
11678         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
11679         * modules/fchdir (Files): Remove lib/dirent.in.h.
11680         (Depends-on): Add dirent.
11681         (Makefile.am): Move rules to modules/dirent.
11682         * doc/posix-headers/dirent.texi: Mention the new module.
11683
11684 2008-10-18  Bruno Haible  <bruno@clisp.org>
11685
11686         Avoid -Wunused-parameter warnings in public gnulib header files.
11687         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
11688         macro.
11689         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
11690
11691 2008-10-18  Bruno Haible  <bruno@clisp.org>
11692
11693         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
11694         * doc/glibc-functions/error.texi: Mention the module 'error'.
11695         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
11696         * doc/glibc-functions/getdomainname.texi: Mention the module
11697         'getdomainname'.
11698         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
11699         * doc/glibc-functions/getpagesize.texi: Mention the module
11700         'getpagesize'.
11701         * doc/glibc-functions/getusershell.texi: Mention the module
11702         'getusershell'.
11703         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
11704         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
11705         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
11706         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
11707         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
11708         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
11709         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
11710         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
11711         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
11712         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
11713         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
11714         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
11715         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
11716         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
11717
11718 2008-10-17  Bruno Haible  <bruno@clisp.org>
11719
11720         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
11721         HP-UX and IRIX, use -0.0L.
11722         * tests/test-ceill.c (minus_zero): Likewise.
11723         * tests/test-floorl.c (minus_zero): Likewise.
11724         * tests/test-frexpl.c (minus_zero): Likewise.
11725         * tests/test-isnan.c (minus_zerol): Likewise.
11726         * tests/test-isnanl.h (minus_zero): Likewise.
11727         * tests/test-ldexpl.c (minus_zero): Likewise.
11728         * tests/test-roundl.c (minus_zero): Likewise.
11729         * tests/test-signbit.c (minus_zerol): Likewise.
11730         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
11731         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
11732         * tests/test-truncl.c (minus_zero): Likewise.
11733         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
11734         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
11735         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
11736         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
11737
11738 2008-10-17  Bruno Haible  <bruno@clisp.org>
11739
11740         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
11741         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
11742         that it gets activated only for gcc >= 3.0.
11743         * lib/dirent.in.h: Likewise.
11744         * lib/errno.in.h: Likewise.
11745         * lib/fcntl.in.h: Likewise.
11746         * lib/float.in.h: Likewise.
11747         * lib/iconv.in.h: Likewise.
11748         * lib/inttypes.in.h: Likewise.
11749         * lib/locale.in.h: Likewise.
11750         * lib/math.in.h: Likewise.
11751         * lib/netdb.in.h: Likewise.
11752         * lib/netinet_in.in.h: Likewise.
11753         * lib/search.in.h: Likewise.
11754         * lib/signal.in.h: Likewise.
11755         * lib/spawn.in.h: Likewise.
11756         * lib/stdarg.in.h: Likewise.
11757         * lib/stdint.in.h: Likewise.
11758         * lib/stdio.in.h: Likewise.
11759         * lib/stdlib.in.h: Likewise.
11760         * lib/string.in.h: Likewise.
11761         * lib/strings.in.h: Likewise.
11762         * lib/sys_file.in.h: Likewise.
11763         * lib/sys_ioctl.in.h: Likewise.
11764         * lib/sys_select.in.h: Likewise.
11765         * lib/sys_socket.in.h: Likewise.
11766         * lib/sys_stat.in.h: Likewise.
11767         * lib/sys_time.in.h: Likewise.
11768         * lib/sysexits.in.h: Likewise.
11769         * lib/time.in.h: Likewise.
11770         * lib/unistd.in.h: Likewise.
11771         * lib/wchar.in.h: Likewise.
11772         * lib/wctype.in.h: Likewise.
11773         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
11774
11775 2008-10-17  Jim Meyering  <meyering@redhat.com>
11776
11777         ignore-value: don't depend on inline module
11778         * modules/ignore-value (Depends-on): Remove 'inline'.
11779         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
11780         Suggestion from Bruno Haible.
11781
11782 2008-10-17  Bruno Haible  <bruno@clisp.org>
11783
11784         New implementation of condition variables for Win32.
11785         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
11786         (gl_linked_waitqueue_t): New type.
11787         (gl_cond_t): Use it.
11788         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
11789         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
11790         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
11791         (glthread_cond_init_func, glthread_cond_wait_func,
11792         glthread_cond_timedwait_func, glthread_cond_signal_func,
11793         glthread_cond_broadcast_func, glthread_cond_destroy_func):
11794         Reimplemented on the basis of gl_linked_waitqueue_t.
11795         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
11796         gl_waitqueue_t.
11797         (gl_rwlock_t): Update.
11798         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
11799
11800 2008-10-17  Simon Josefsson  <simon@josefsson.org>
11801
11802         * modules/recvfrom (Depends-on): Add dependency on getpeername.
11803         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
11804
11805 2008-10-17  Jim Meyering  <meyering@redhat.com>
11806
11807         ignore-value: new module
11808         * modules/ignore-value: New file.
11809         * lib/ignore-value.h: New file.
11810         * MODULES.html.sh (Compiler warning management): New section,
11811         just for this module.  More to come.
11812
11813 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
11814
11815         open-safer.c: avoid 'signed and unsigned in conditional...' warning
11816         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
11817         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
11818
11819 2008-10-16  Jim Meyering  <meyering@redhat.com>
11820
11821         openat-die.c: avoid 'no previous prototype' warning
11822         * lib/openat-die.c: Include "openat.h".
11823         Reported by Reuben Thomas <rrt@sc3d.org>.
11824
11825 2008-10-16  Simon Josefsson  <simon@josefsson.org>
11826
11827         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
11828         * lib/netdb.in.h: Fix typo.
11829         Reported by Bruno Haible  <bruno@clisp.org>
11830
11831         * lib/netdb.in.h: Include sys/socket.h for platforms without
11832         netdb.h, to get structures like hostent on MinGW.
11833         * modules/netdb (Depends-on): Add sys_socket.
11834
11835 2008-10-15  Simon Josefsson  <simon@josefsson.org>
11836
11837         * modules/netdb, modules/netdb-tests: New file.
11838         * m4/netdb_h.m4: New file.
11839         * lib/netdb.in.h: Add, currently just an empty file pending
11840         definitions.
11841         * tests/test-netdb.c: New file.
11842         * doc/posix-headers/netdb.texi: Mention that we replace it if
11843         needed.
11844         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
11845         netdb.
11846
11847 2008-10-15  Simon Josefsson  <simon@josefsson.org>
11848
11849         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
11850         with code.
11851
11852 2008-10-13  Bruno Haible  <bruno@clisp.org>
11853
11854         * lib/glthread/cond.c (glthread_cond_wait_func,
11855         glthread_cond_timedwait_func): Add a comment.
11856
11857 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
11858
11859         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
11860         * tests/test-select.c: Likewise,
11861
11862 2008-10-13  Bruno Haible  <bruno@clisp.org>
11863
11864         * lib/glthread/cond.c (glthread_cond_wait_func,
11865         glthread_cond_timedwait_func): Fix variable name.
11866         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
11867
11868 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
11869
11870         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
11871         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
11872         struct sockaddr.sa_len.
11873         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
11874
11875 2008-10-13  Simon Josefsson  <simon@josefsson.org>
11876
11877         * build-aux/pmccabe2html: Add css and css_url parameters.
11878
11879 2008-10-12  Bruno Haible  <bruno@clisp.org>
11880
11881         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
11882         calling aclx_get.
11883         Reported by Rainer Tammer <tammer@tammer.net>.
11884
11885 2008-10-12  Bruno Haible  <bruno@clisp.org>
11886
11887         Use msvcrt aware primitives for creation/termination of Win32 threads.
11888         * lib/glthread/thread.c: Include <process.h>.
11889         (glthread_create_func): Use _beginthreadex instead of CreateThread.
11890         (wrapper_func): Update signature.
11891         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
11892
11893 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
11894             Bruno Haible  <bruno@clisp.org>
11895
11896         Provide a Win32 implementation of the 'cond' module.
11897         * lib/glthread/cond.h [USE_WIN32]: New implementation.
11898         * lib/glthread/cond.c (glthread_cond_init_func,
11899         glthread_cond_wait_func, glthread_cond_timedwait_func,
11900         glthread_cond_signal_func, glthread_cond_broadcast_func,
11901         glthread_cond_destroy_func) [USE_WIN32]: New functions.
11902         * modules/cond (Dependencies): Add gettimeofday.
11903
11904 2008-10-11  Bruno Haible  <bruno@clisp.org>
11905
11906         Make sleep work on older versions of mingw.
11907         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
11908         only whether it exists.
11909         * doc/posix-functions/sleep.texi: Mention the problem with older
11910         versions of mingw.
11911
11912 2008-10-11  Bruno Haible  <bruno@clisp.org>
11913
11914         New module 'shutdown'.
11915         * modules/shutdown: New file.
11916         * lib/sys_socket.in.h (shutdown): New declaration.
11917         * lib/winsock.c (shutdown): New function.
11918         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
11919         GNULIB_SHUTDOWN.
11920         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
11921         * doc/posix-functions/shutdown.texi: Document the new module.
11922
11923 2008-10-11  Jim Meyering  <meyering@redhat.com>
11924
11925         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
11926
11927 2008-10-11  Bruno Haible  <bruno@clisp.org>
11928
11929         New module 'fclose'.
11930         * modules/fclose: New file.
11931         * lib/stdio.in.h (fclose): New declaration.
11932         * lib/fclose.c: New file.
11933         * m4/fclose.m4: New file.
11934         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
11935         REPLACE_FCLOSE.
11936         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
11937         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
11938         REPLACE_FCLOSE.
11939         * modules/close (Depends-on): fclose.
11940         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
11941
11942 2008-10-11  Bruno Haible  <bruno@clisp.org>
11943
11944         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
11945         set errno and don't call _close.
11946
11947 2008-10-10  Bruno Haible  <bruno@clisp.org>
11948
11949         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
11950         ACL, not afterwards. Fixes test failure on Cygwin.
11951
11952 2008-10-09  Ben Pfaff  <blp@gnu.org>
11953
11954         * build-aux/announce-gen: Fix gnulib version related part of usage
11955         message.  Die with a useful error message if no tarballs are
11956         found.
11957
11958 2008-10-10  Jim Meyering  <meyering@redhat.com>
11959
11960         bootstrap: use git's --depth=N option only if it's supported
11961         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
11962         recognize the --depth option.  Reported by Pádraig Brady.
11963
11964 2008-10-09  Bruno Haible  <bruno@clisp.org>
11965
11966         New module 'ioctl'.
11967         * modules/ioctl: New file.
11968         * lib/sys_socket.in.h (ioctl): Remove declaration.
11969         * lib/winsock.c: Include <sys/ioctl.h>.
11970         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
11971         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
11972         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
11973         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
11974         * doc/posix-functions/ioctl.texi: Mention the new module.
11975
11976 2008-10-09  Bruno Haible  <bruno@clisp.org>
11977
11978         New module 'sys_ioctl'.
11979         * lib/sys_ioctl.in.h: New file.
11980         * m4/sys_ioctl_h.m4: New file.
11981         * modules/sys_ioctl: New file.
11982         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
11983
11984 2008-10-09  Bruno Haible  <bruno@clisp.org>
11985
11986         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
11987         * lib/winsock.c: Include <stdarg.h>.
11988         (rpl_ioctl): Change to second argument 'int' and then varargs.
11989
11990 2008-10-09  Bruno Haible  <bruno@clisp.org>
11991
11992         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
11993         when the sys_socket module is present and the system has <winsock2.h>.
11994
11995 2008-10-09  Bruno Haible  <bruno@clisp.org>
11996
11997         * doc/posix-functions/close.texi: Mention module 'close' instead of
11998         module 'sys_socket'.
11999
12000 2008-10-09  Bruno Haible  <bruno@clisp.org>
12001
12002         * doc/glibc-headers/sys_ioctl.texi: New file.
12003         * doc/gnulib.texi: Include it.
12004
12005 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
12006             Bruno Haible  <bruno@clisp.org>
12007
12008         Combine the two replacements of 'close'.
12009         * lib/sys_socket.in.h (close): Define to a reminder to include
12010         <unistd.h>.
12011         (_gl_close_fd_maybe_socket): New declaration.
12012         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
12013         * lib/winsock.c (close): Remove undefinition.
12014         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
12015         needed for the gnulib module 'close'.
12016         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
12017         define to an error symbol or to a warning, if suitable.
12018         * lib/close.c: Include <sys/socket.h>.
12019         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
12020         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
12021         UNISTD_H_HAVE_WINSOCK2_H.
12022         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
12023         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
12024         UNISTD_H_HAVE_WINSOCK2_H.
12025         * modules/sys_socket (Files): Add m4/unistd_h.m4.
12026         (configure.ac): Set a module indicator.
12027         (Makefile.am): Substitute GNULIB_CLOSE.
12028         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
12029         * modules/poll-tests (Depends-on): Add close.
12030         * modules/select-tests (Depends-on): Likewise.
12031
12032 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
12033             Bruno Haible  <bruno@clisp.org>
12034
12035         New module 'close'.
12036         * modules/close: New file.
12037         * lib/unistd.in.h (close): Move declaration out of the
12038         FCHDIR_REPLACEMENT scope.
12039         (_gl_unregister_fd): New declaration.
12040         * lib/close.c: New file.
12041         * lib/fchdir.c (rpl_close): Remove function.
12042         * m4/close.m4: New file.
12043         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
12044         close.
12045         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
12046         REPLACE_CLOSE.
12047         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
12048         REPLACE_CLOSE.
12049         * modules/fchdir (Depends-on): Add close.
12050
12051 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
12052             Bruno Haible  <bruno@clisp.org>
12053
12054         * lib/fcntl.in.h (open): Simplify conditionals.
12055         (_gl_register_fd): New declaration.
12056         * lib/fchdir.c (rpl_open): Remove function.
12057         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
12058         also.
12059         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
12060         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
12061         open.
12062
12063 2008-10-09  Jim Meyering  <meyering@redhat.com>
12064
12065         GNUmakefile: use the more name-space-friendly "_version"
12066         * top/GNUmakefile (_dummy): Update.
12067         (_version): Rename from "version".
12068
12069 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
12070             Bruno Haible  <bruno@clisp.org>
12071
12072         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
12073         rpl_close.
12074         (_gl_register_fd): New function, extracted from rpl_open.
12075         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
12076         (rpl_open, rpl_opendir): Use _gl_register_fd.
12077
12078 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
12079
12080         Fix organization of 'open' replacement.
12081         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
12082         (gl_FUNC_OPEN): Use it.
12083         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
12084
12085 2008-10-08  Bruno Haible  <bruno@clisp.org>
12086
12087         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
12088
12089 2008-10-08  Simon Josefsson  <simon@josefsson.org>
12090
12091         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
12092         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
12093         listen).
12094
12095 2008-10-08  Eric Blake  <ebb9@byu.net>
12096
12097         GNUmakefile: add 'make version' target
12098         * top/GNUmakefile (_curr-ver): Split version update rules...
12099         (version): ...into a target.
12100
12101 2008-10-07  Bruno Haible  <bruno@clisp.org>
12102
12103         Use a more portable replacement expression for -0.0L.
12104         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
12105         instead of -0.0L. Fix m4 quotation.
12106
12107         * tests/test-signbit.c: Include <float.h>.
12108         (minus_zero): New variable.
12109         (test_signbitl): Use minus_zero instead of -zero.
12110         * modules/signbit-tests (Depends-on): Add float.
12111
12112         * tests/test-ceill.c: Include <float.h>.
12113         (zero): Remove variable.
12114         (minus_zero): New variable.
12115         (main): Use minus_zero instead of -zero.
12116         * modules/ceill-tests (Depends-on): Add float.
12117
12118         * tests/test-floorl.c: Include <float.h>.
12119         (zero): Remove variable.
12120         (minus_zero): New variable.
12121         (main): Use minus_zero instead of -zero.
12122         * modules/floorl-tests (Depends-on): Add float.
12123
12124         * tests/test-roundl.c: Include <float.h>.
12125         (zero): Remove variable.
12126         (minus_zero): New variable.
12127         (main): Use minus_zero instead of -zero.
12128         * modules/roundl-tests (Depends-on): Add float.
12129
12130         * tests/test-truncl.c: Include <float.h>.
12131         (zero): Remove variable.
12132         (minus_zero): New variable.
12133         (main): Use minus_zero instead of -zero.
12134         * modules/truncl-tests (Depends-on): Add float.
12135
12136         * tests/test-frexpl.c (zero): Remove variable.
12137         (minus_zero): New variable.
12138         (main): Use minus_zero instead of -zero.
12139         * modules/frexpl-tests (Depends-on): Add float.
12140
12141         * tests/test-isnan.c (zerol): Remove variable.
12142         (minus_zerol): New variable.
12143         (test_long_double): Use minus_zerol instead of -zerol.
12144         * modules/isnan-tests (Depends-on): Add float.
12145
12146         * tests/test-isnanl.h (zero): Remove variable.
12147         (minus_zero): New variable.
12148         (main): Use minus_zero instead of -zero.
12149         * modules/isnanl-nolibm-tests (Depends-on): Add float.
12150         * modules/isnanl-tests (Depends-on): Add float.
12151
12152         * tests/test-ldexpl.c (zero): Remove variable.
12153         (minus_zero): New variable.
12154         (main): Use minus_zero instead of -zero.
12155         * modules/ldexpl-tests (Depends-on): Add float.
12156
12157         * tests/test-snprintf-posix.h (zerol): Remove variable.
12158         (minus_zerol): New variable.
12159         (test_function): Use minus_zerol instead of -zerol.
12160         * modules/snprintf-posix-tests (Depends-on): Add float.
12161         * modules/vsnprintf-posix-tests (Depends-on): Add float.
12162
12163         * tests/test-sprintf-posix.h (zerol): Remove variable.
12164         (minus_zerol): New variable.
12165         (test_function): Use minus_zerol instead of -zerol.
12166         * modules/sprintf-posix-tests (Depends-on): Add float.
12167         * modules/vsprintf-posix-tests (Depends-on): Add float.
12168
12169         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
12170         (minus_zerol): New variable.
12171         (test_function): Use minus_zerol instead of -zerol.
12172         * modules/vasnprintf-posix-tests (Depends-on): Add float.
12173
12174         * tests/test-vasprintf-posix.c (zerol): Remove variable.
12175         (minus_zerol): New variable.
12176         (test_function): Use minus_zerol instead of -zerol.
12177         * modules/vasprintf-posix-tests (Depends-on): Add float.
12178
12179 2008-10-07  Simon Josefsson  <simon@josefsson.org>
12180
12181         * MODULES.html.sh (Support for building documentation): Mention
12182         pmccabe2html.  Sort entries.
12183
12184         Add pmccabe2html module, from gnupdf.
12185         * build-aux/pmccabe.css: New file.
12186         * build-aux/pmccabe2html: New file.
12187         * m4/pmccabe2html.m4: New file.
12188         * modules/pmccabe2html: New file.
12189
12190 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
12191
12192         flock: new module
12193         * MODULES.html.sh: Add to list of modules.
12194         * lib/flock.c: flock implementation for Windows and Unix systems
12195         which have fcntl.
12196         * doc/glibc-functions/flock.texi: Update documentation.
12197         * lib/sys_file.in.h: <sys/file.h> header file.
12198         * m4/flock.m4: M4 macros.
12199         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
12200         * modules/flock: flock module.
12201         * modules/flock-tests: flock tests module.
12202         * modules/sys_file: sys/file.h module.
12203         * tests/test-flock.c: test suite for flock.
12204
12205 2008-10-06  Jim Meyering  <meyering@redhat.com>
12206
12207         bootstrap: check for LT_INIT more portably still ;-)
12208         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
12209         Spotted by Bruno Haible.
12210
12211 2008-10-06  Eric Blake  <ebb9@byu.net>
12212
12213         test-signbit: avoid tripping Irix cc bug on -0.0L
12214         * tests/test-signbit.c (minus_zerol): Delete, and replace with
12215         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
12216         entire testsuite consistent and avoids an Irix 6.2 bug.
12217
12218 2008-10-05  Bruno Haible  <bruno@clisp.org>
12219             Jim Meyering  <jim@meyering.net>
12220
12221         Add an option for ignoring EPIPE during close_stdout.
12222         * lib/closeout.h: Include <stdbool.h>.
12223         (close_stdout_set_ignore_EPIPE): New declaration.
12224         * lib/closeout.c: Include <stdbool.h>.
12225         (ignore_EPIPE): New variable.
12226         (close_stdout_set_ignore_EPIPE): New function.
12227         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
12228         * lib/close-stream.c (close_stream): Mention the possible EPIPE
12229         failure.
12230         * modules/closeout (Depends-on): Add stdbool.
12231
12232 2008-10-05  Bruno Haible  <bruno@clisp.org>
12233
12234         * modules/accept: New file.
12235         * modules/bind: New file.
12236         * modules/connect: New file.
12237         * modules/getpeername: New file.
12238         * modules/getsockname: New file.
12239         * modules/getsockopt: New file.
12240         * modules/listen: New file.
12241         * modules/recv: New file.
12242         * modules/recvfrom: New file.
12243         * modules/send: New file.
12244         * modules/sendto: New file.
12245         * modules/setsockopt: New file.
12246         * modules/socket: New file.
12247         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
12248         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
12249         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
12250         the particular module is requested. Add a link warning when the
12251         particular module is not requested.
12252         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
12253         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
12254         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
12255         the particular module is requested.
12256         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
12257         gl_SYS_SOCKET_H_DEFAULTS): New macros.
12258         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
12259         * modules/sys_socket (Depends-on): Add link-warning.
12260         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
12261         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
12262         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
12263         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
12264         GL_LINK_WARNING.
12265         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
12266         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
12267         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
12268         * doc/posix-functions/getpeername.texi: Mention the new module
12269         'getpeername'.
12270         * doc/posix-functions/getsockname.texi: Mention the new module
12271         'getsockname'.
12272         * doc/posix-functions/getsockopt.texi: Mention the new module
12273         'getsockopt'.
12274         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
12275         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
12276         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
12277         * doc/posix-functions/send.texi: Mention the new module 'send'.
12278         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
12279         * doc/posix-functions/setsockopt.texi: Mention the new module
12280         'setsockopt'.
12281         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
12282         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
12283         listen, connect, accept.
12284         * modules/select-tests (Depends-on): Likewise.
12285
12286 2008-10-05  Bruno Haible  <bruno@clisp.org>
12287
12288         * lib/winsock.c (strerror): Remove unused #undef.
12289         (rpl_close): Remove unused local variable.
12290
12291         * modules/sys_socket (Depends-on); Add errno.
12292
12293 2008-10-05  Bruno Haible  <bruno@clisp.org>
12294
12295         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
12296         (select): Add a link warning when the 'select' module is not used.
12297         * modules/sys_select (Depends-on): Add link-warning.
12298         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
12299         Suggested by Paolo Bonzini.
12300
12301 2008-10-05  Jim Meyering  <meyering@redhat.com>
12302
12303         bootstrap: check for LT_INIT more portably
12304         * build-aux/bootstrap: Avoid using grep -E, since it's not
12305         portable enough.  Suggestion from Bruno Haible.
12306
12307 2008-10-05  Bruno Haible  <bruno@clisp.org>
12308
12309         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
12310         as being fixed by gnulib.
12311
12312 2008-10-05  Bruno Haible  <bruno@clisp.org>
12313
12314         * modules/select-tests: New file, mostly copied from
12315         modules/sys_select-tests.
12316         * tests/test-select.c: New file, mostly copied from
12317         tests/test-sys_select.c.
12318         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
12319         * modules/sys_select-tests (Depends-on): Remove all dependencies.
12320         (Makefile.am): Remove test_sys_select_LDADD.
12321
12322         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
12323         to an undefined symbol, for an error message.
12324         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
12325         (gl_SYS_SELECT_H_DEFAULTS): New macro.
12326         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
12327         winsock-select.c here.
12328         * modules/sys_select (Files): Remove lib/winsock-select.c.
12329         (Depends-on): Remove alloca.
12330         (Makefile.am): Substitute GNULIB_SELECT.
12331         * modules/select: New file.
12332         * doc/posix-functions/select.texi: Update.
12333
12334 2008-10-05  Bruno Haible  <bruno@clisp.org>
12335
12336         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
12337         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
12338         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
12339         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
12340         getdtablesize.
12341         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
12342         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
12343
12344 2008-10-05  Bruno Haible  <bruno@clisp.org>
12345
12346         * modules/getdtablesize-tests: New file.
12347         * tests/test-getdtablesize.c: New file.
12348
12349         New module 'getdtablesize'.
12350         * lib/unistd.in.h (getdtablesize): New declaration.
12351         * lib/getdtablesize.c: New file.
12352         * m4/getdtablesize.m4: New file.
12353         * modules/getdtablesize: New file.
12354         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
12355         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
12356         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
12357         HAVE_GETDTABLESIZE.
12358         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
12359
12360 2008-10-05  Bruno Haible  <bruno@clisp.org>
12361
12362         * modules/sched (Makefile.am): Fix typo.
12363         Reported by Simon Josefsson.
12364
12365 2008-10-05  Jim Meyering  <meyering@redhat.com>
12366
12367         bootstrap: check for LT_INIT, too
12368         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
12369         are deprecated.  Suggestion from Ralf Wildenhues.
12370
12371 2008-10-05  Bruno Haible  <bruno@clisp.org>
12372
12373         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
12374         overriding them by ours.
12375         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
12376
12377 2008-10-05  Jim Meyering  <meyering@redhat.com>
12378
12379         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
12380         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
12381         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
12382
12383 2008-10-04  Bruno Haible  <bruno@clisp.org>
12384
12385         * modules/dup2 (License): Change to LGPLv2+.
12386         * modules/sleep (License): Likewise.
12387         * modules/perror (License): Likewise.
12388         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
12389         Blake.
12390         * modules/signal (License): Likewise.
12391         * modules/sigprocmask (License): Likewise.
12392         * modules/raise (License): Change to LGPLv2+, with approval by Jim
12393         Meyering.
12394
12395 2008-10-04  Bruno Haible  <bruno@clisp.org>
12396
12397         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
12398         Reported by Rainer Tammer <tammer@tammer.net>.
12399
12400 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
12401             Bruno Haible  <bruno@clisp.org>
12402
12403         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
12404         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
12405         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
12406
12407 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
12408
12409         filevercmp: new module
12410         * lib/filevercmp.h: New function filevercmp comparing version strings.
12411         * lib/filevercmp.c: Implementation of filevercmp function.
12412         * modules/filevercmp: Module metadata.
12413         * tests/test-filevercmp.c: Unit test for new module.
12414         * modules/filevercmp-tests: Unit test metadata.
12415         * MODULES.html.sh: Add filevercmp module.
12416
12417 2008-10-03  Bruno Haible  <bruno@clisp.org>
12418
12419         * lib/c-ctype.h: Add comment.
12420         Reported by Jim Meyering.
12421
12422 2008-10-02  Bruno Haible  <bruno@clisp.org>
12423
12424         * modules/posix_spawn-internal (Depends-on): Add 'open'.
12425
12426 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
12427
12428         * build-aux/bootstrap: Allow renaming bootstrap, and change the
12429         name of bootstrap.conf accordingly.
12430
12431 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
12432
12433         * build-aux/bootstrap: Install git-merge-changelog configuration
12434         items into .gitconfig if needed.
12435
12436 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
12437
12438         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
12439         git repository, and initialize/update it accordingly.
12440
12441 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
12442
12443         * modules/fsync-tests: New file.
12444         * tests/test-fsync.c: New file.
12445
12446         New module 'fsync'.
12447         * lib/fsync.c: New file.
12448         * m4/fsync.m4: New file.
12449         * modules/fsync: New file.
12450         * lib/unistd.in.h (fsync): New declaration.
12451         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
12452         GNULIB_FSYNC and HAVE_FSYNC.
12453         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
12454         * MODULES.html.sh (posix_functions): Add fsync.
12455         * doc/posix-functions/fsync.texi: Mention the new module.
12456
12457 2008-10-02  Jim Meyering  <meyering@redhat.com>
12458
12459         fts.c: sync with similar code from coreutils' remove.c
12460         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
12461         Guard also with "#if defined __linux__", since for now at least,
12462         this code is Linux-kernel-specific.
12463
12464 2008-10-02  Jim Meyering  <meyering@redhat.com>
12465
12466         fts: bug fixes
12467         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
12468         Include <sys/vfs.h>, not <sys/statfs.h>.
12469
12470         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
12471         Include <sys/vfs.h>, not <sys/statfs.h>.
12472
12473 2008-10-01  Bruno Haible  <bruno@clisp.org>
12474
12475         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
12476         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
12477         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
12478         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
12479         * doc/posix-functions/posix_spawnp.texi: Likewise.
12480         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
12481         whether posix_spawn actually works.
12482         * m4/pipe.m4 (gl_PIPE): Likewise.
12483         * modules/execute (Files): Add m4/posix_spawn.m4.
12484         * modules/pipe (Files): Add m4/posix_spawn.m4.
12485         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
12486
12487 2008-10-01  Jim Meyering  <meyering@redhat.com>
12488
12489         remove trailing spaces
12490         * NEWS: Likewise.
12491         * lib/poll.c (poll): Likewise.
12492         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
12493         * lib/winsock.c (rpl_close): Likewise.
12494         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
12495         * modules/yield: Likewise.
12496         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
12497         * tests/test-sys_select.c (connect_to_socket): Likewise.
12498
12499         fts.c: adjust a new interface to be more generally useful
12500         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
12501         (fts_build): Adjust caller.
12502
12503 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
12504
12505         * modules/cond-tests: New file.
12506         * tests/test-cond.c: New file.
12507
12508 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
12509             Bruno Haible  <bruno@clisp.org>
12510
12511         * modules/cond (Dependencies): Add errno, time.
12512         * lib/glthread/cond.h: Include <time.h>.
12513         (gl_cond_define, gl_cond_define_initialized): Use the same definition
12514         across platforms.
12515
12516 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
12517             Bruno Haible  <bruno@clisp.org>
12518
12519         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
12520
12521 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
12522             Bruno Haible  <bruno@clisp.org>
12523
12524         * modules/tls-tests (Depends-on): Add thread, yield.
12525         (configure.ac): Remove all checks.
12526         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
12527         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
12528         gl_thread_self): Remove definitions. Include glthread/thread.h and
12529         glthread/yield.h instead.
12530         (test_tls): Pass an additional NULL argument to gl_thread_join.
12531
12532 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
12533             Bruno Haible  <bruno@clisp.org>
12534
12535         * modules/lock-tests (Depends-on): Add thread, yield.
12536         (configure.ac): Remove all checks.
12537         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
12538         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
12539         gl_thread_self): Remove definitions. Include glthread/thread.h and
12540         glthread/yield.h instead.
12541         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
12542         additional NULL argument to gl_thread_join.
12543
12544 2008-09-30  Bruno Haible  <bruno@clisp.org>
12545
12546         Fix the Win32 implementation of the 'thread' module.
12547         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
12548         pointer type.
12549         (gl_thread_self): Invoke gl_thread_self_func.
12550         (gl_thread_self_func): New declaration.
12551         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
12552         (do_init_self_key, init_self_key): New functions.
12553         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
12554         Remove some fields.
12555         (running_threads, running_lock): Remove variables.
12556         (get_current_thread_handle): New function.
12557         (gl_thread_self_func, wrapper_func, glthread_create_func,
12558         glthread_join_func, gl_thread_exit_func): Largely rewritten and
12559         simplified.
12560
12561 2008-09-30  Bruno Haible  <bruno@clisp.org>
12562
12563         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
12564         files.
12565
12566 2008-09-30  Jim Meyering  <meyering@redhat.com>
12567
12568         fts.m4: correct the test for statfs.f_type
12569         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
12570         when checking for statfs.f_type.
12571
12572 2008-09-15  Simon Josefsson  <simon@josefsson.org>
12573
12574         tests: avoid some compiler warnings
12575         * tests/test-memchr.c (main): Pass NULL indirectly.
12576         * tests/test-getdate.c (main): Remove unused variable 'ret'.
12577
12578 2008-09-29  Ondřej Vašík  <ovasik@redhat.com>
12579
12580         getdate.y: disallow countable dayshifts like "4 yesterday ago"
12581         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
12582         exactly specified dayshifts.
12583         (dayshift): New rule.
12584         (rel): Add dayshift.
12585         (relative_time_table) [tomorrow, yesterday, today, now]:
12586         Use tDAY_SHIFT in place of tDAY_UNIT.
12587         * tests/test-getdate.c: Add tests for now-disallowed countable
12588         dayshifts, e.g., "4 yesterday ago".
12589
12590 2008-09-29  Bruno Haible  <bruno@clisp.org>
12591
12592         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
12593         * tests/test-posix_spawn1.in.sh: Renamed from
12594         tests/test-posix_spawn.in.sh.
12595         * tests/test-posix_spawn2.c: New file.
12596         * tests/test-posix_spawn2.in.sh: New file.
12597         * modules/posix_spawnp-tests (Files): Update.
12598         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
12599
12600 2008-09-29  Bruno Haible  <bruno@clisp.org>
12601
12602         Propagate effects of putenv/setenv/unsetenv to child processes.
12603         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
12604         * lib/pipe.c (create_pipe): Likewise.
12605
12606 2008-09-29  Bruno Haible  <bruno@clisp.org>
12607
12608         Enable use of shell scripts as executables in mingw.
12609         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
12610         run the program as a shell script.
12611         * lib/pipe.c (create_pipe): Likewise.
12612         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
12613         resulting array.
12614
12615 2008-09-29  Eric Blake  <ebb9@byu.net>
12616
12617         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
12618
12619 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
12620
12621         * doc/posix-functions/accept.texi: Update mingw problems.
12622         * doc/posix-functions/bind.texi: Update mingw problems.
12623         * doc/posix-functions/close.texi: Update mingw problems.
12624         * doc/posix-functions/connect.texi: Update mingw problems.
12625         * doc/posix-functions/getpeername.texi: Update mingw problems.
12626         * doc/posix-functions/getsockname.texi: Update mingw problems.
12627         * doc/posix-functions/getsockopt.texi: Update mingw problems.
12628         * doc/posix-functions/ioctl.texi: Update mingw problems.
12629         * doc/posix-functions/listen.texi: Update mingw problems.
12630         * doc/posix-functions/recv.texi: Update mingw problems.
12631         * doc/posix-functions/recvfrom.texi: Update mingw problems.
12632         * doc/posix-functions/select.texi: Update mingw problems.
12633         * doc/posix-functions/send.texi: Update mingw problems.
12634         * doc/posix-functions/sendto.texi: Update mingw problems.
12635         * doc/posix-functions/setsockopt.texi: Update mingw problems.
12636         * doc/posix-functions/socket.texi: Update mingw problems.
12637
12638 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
12639             Bruno Haible  <bruno@clisp.org>
12640
12641         * lib/sys_select.in.h: Include sys/time.h.
12642         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
12643         * modules/sys_select: Depend on sys_time.
12644         * tests/test-sys_select.c: Test that sys/select.h defines struct
12645         timeval fully.
12646
12647 2008-09-29  Bruno Haible  <bruno@clisp.org>
12648
12649         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
12650         * lib/sys_select.in.h: Likewise.
12651
12652 2008-09-29  Bruno Haible  <bruno@clisp.org>
12653
12654         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
12655
12656 2008-09-29  Bruno Haible  <bruno@clisp.org>
12657
12658         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
12659         Set LIBSOCKET instead of augmenting LIBS.
12660         * modules/sockets (Link): New section.
12661         * modules/sockets-tests (test_sockets_LDADD): New variable.
12662         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
12663         * modules/poll-tests (test_poll_LDADD): New variable.
12664         * NEWS: Document the change.
12665
12666 2008-09-29  Bruno Haible  <bruno@clisp.org>
12667
12668         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
12669         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
12670         ARPA_INET_H directly.
12671         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
12672
12673 2008-09-28  Bruno Haible  <bruno@clisp.org>
12674
12675         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
12676         from gl_HEADER_SYS_SOCKET.
12677         (gl_HEADER_SYS_SOCKET): Invoke it.
12678         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
12679
12680 2008-09-28  Bruno Haible  <bruno@clisp.org>
12681
12682         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
12683         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
12684         Needed on OSF/1 4.0.
12685
12686 2008-09-28  Bruno Haible  <bruno@clisp.org>
12687
12688         Override open more carefully.
12689         * lib/open.c (orig_open): New function.
12690         (rpl_open): Use orig_open instead of open.
12691         * lib/fcntl.in.h: Add special invocation convention.
12692         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
12693         (gl_FUNC_OPEN): Invoke it.
12694
12695         Override freopen more carefully.
12696         * lib/freopen.c (orig_freopen): New function.
12697         (rpl_freopen): Use orig_freopen instead of freopen.
12698         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
12699         (gl_FUNC_FREOPEN): Invoke it.
12700
12701         Override fopen more carefully.
12702         * lib/fopen.c (orig_fopen): New function.
12703         (rpl_fopen): Use orig_fopen instead of fopen.
12704         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
12705         (gl_FUNC_FOPEN): Invoke it.
12706         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
12707
12708 2008-09-28  Bruno Haible  <bruno@clisp.org>
12709
12710         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
12711         SIGPIPE.
12712
12713 2008-09-28  Bruno Haible  <bruno@clisp.org>
12714
12715         * tests/test-sigaction.c (handler, main): Disable the check whether
12716         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
12717         glibc systems with LinuxThreads.
12718
12719 2008-09-28  Bruno Haible  <bruno@clisp.org>
12720
12721         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
12722
12723         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
12724         with AIX xlc.
12725         * lib/fcntl.in.h (open): Likewise.
12726         Reported by Rainer Tammer <tammer@tammer.net>.
12727
12728 2008-09-28  Bruno Haible  <bruno@clisp.org>
12729
12730         * modules/posix_spawnp-tests: New file.
12731         * tests/test-posix_spawn.c: New file.
12732         * tests/test-posix_spawn.in.sh: New file.
12733
12734         New module 'posix_spawnp'.
12735         * modules/posix_spawnp: New file.
12736         * lib/spawnp.c: New file, from GNU libc with modifications.
12737         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
12738
12739         New module 'posix_spawn'.
12740         * modules/posix_spawn: New file.
12741         * lib/spawn.c: New file, from GNU libc with modifications.
12742         * doc/posix-functions/posix_spawn.texi: Mention the new module.
12743
12744         New module 'posix_spawnattr_destroy'.
12745         * modules/posix_spawnattr_destroy: New file.
12746         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
12747         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
12748         module.
12749
12750         New module 'posix_spawnattr_setsigmask'.
12751         * modules/posix_spawnattr_setsigmask: New file.
12752         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
12753         modifications.
12754         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
12755         new module.
12756
12757         New module 'posix_spawnattr_getsigmask'.
12758         * modules/posix_spawnattr_getsigmask: New file.
12759         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
12760         modifications.
12761         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
12762         new module.
12763
12764         New module 'posix_spawnattr_setsigdefault'.
12765         * modules/posix_spawnattr_setsigdefault: New file.
12766         * lib/spawnattr_setdefault.c: New file, from GNU libc with
12767         modifications.
12768         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
12769         new module.
12770
12771         New module 'posix_spawnattr_getsigdefault'.
12772         * modules/posix_spawnattr_getsigdefault: New file.
12773         * lib/spawnattr_getdefault.c: New file, from GNU libc with
12774         modifications.
12775         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
12776         new module.
12777
12778         New module 'posix_spawnattr_setschedpolicy'.
12779         * modules/posix_spawnattr_setschedpolicy: New file.
12780         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
12781         modifications.
12782         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
12783         new module.
12784
12785         New module 'posix_spawnattr_getschedpolicy'.
12786         * modules/posix_spawnattr_getschedpolicy: New file.
12787         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
12788         modifications.
12789         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
12790         new module.
12791
12792         New module 'posix_spawnattr_setschedparam'.
12793         * modules/posix_spawnattr_setschedparam: New file.
12794         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
12795         modifications.
12796         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
12797         new module.
12798
12799         New module 'posix_spawnattr_getschedparam'.
12800         * modules/posix_spawnattr_getschedparam: New file.
12801         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
12802         modifications.
12803         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
12804         new module.
12805
12806         New module 'posix_spawnattr_setpgroup'.
12807         * modules/posix_spawnattr_setpgroup: New file.
12808         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
12809         modifications.
12810         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
12811         module.
12812
12813         New module 'posix_spawnattr_getpgroup'.
12814         * modules/posix_spawnattr_getpgroup: New file.
12815         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
12816         modifications.
12817         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
12818         module.
12819
12820         New module 'posix_spawnattr_setflags'.
12821         * modules/posix_spawnattr_setflags: New file.
12822         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
12823         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
12824         module.
12825
12826         New module 'posix_spawnattr_getflags'.
12827         * modules/posix_spawnattr_getflags: New file.
12828         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
12829         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
12830         module.
12831
12832         New module 'posix_spawnattr_init'.
12833         * modules/posix_spawnattr_init: New file.
12834         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
12835         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
12836         module.
12837
12838         New module 'posix_spawn_file_actions_destroy'.
12839         * modules/posix_spawn_file_actions_destroy: New file.
12840         * lib/spawn_faction_destroy.c: New file, from GNU libc with
12841         modifications.
12842         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
12843         the new module.
12844
12845         New module 'posix_spawn_file_actions_addopen'.
12846         * modules/posix_spawn_file_actions_addopen: New file.
12847         * lib/spawn_faction_addopen.c: New file, from GNU libc with
12848         modifications.
12849         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
12850         the new module.
12851
12852         New module 'posix_spawn_file_actions_adddup2'.
12853         * modules/posix_spawn_file_actions_adddup2: New file.
12854         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
12855         modifications.
12856         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
12857         the new module.
12858
12859         New module 'posix_spawn_file_actions_addclose'.
12860         * modules/posix_spawn_file_actions_addclose: New file.
12861         * lib/spawn_faction_addclose.c: New file, from GNU libc with
12862         modifications.
12863         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
12864         the new module.
12865
12866         New module 'posix_spawn_file_actions_init'.
12867         * modules/posix_spawn_file_actions_init: New file.
12868         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
12869         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
12870         new module.
12871
12872         New module 'posix_spawn-internal'.
12873         * modules/posix_spawn-internal: New file.
12874         * lib/spawn_int.h: New file, from GNU libc with modifications.
12875         * lib/spawni.c: New file, from GNU libc with modifications.
12876         * m4/posix_spawn.m4: New file.
12877
12878         New module 'spawn'.
12879         * modules/spawn: New file.
12880         * lib/spawn.in.h: New file, from GNU libc with modifications.
12881         * m4/spawn_h.m4: New file.
12882         * doc/posix-headers/spawn.texi: Mention the new module.
12883
12884 2008-09-28  Bruno Haible  <bruno@clisp.org>
12885
12886         * modules/sched-tests: New file.
12887         * tests/test-sched.c: New file.
12888
12889         New module 'sched'.
12890         * modules/sched: New file.
12891         * lib/sched.in.h: New file.
12892         * m4/sched_h.m4: New file.
12893         * doc/posix-headers/sched.texi: Mention the new module.
12894
12895 2008-09-27  Eric Blake  <ebb9@byu.net>
12896
12897         Fix previous patch, and tweak references to $0.
12898         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
12899         (func_version, func_gnulib_dir): Don't call this program
12900         gnulib-tool.
12901         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
12902         with using $0 in function.
12903         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
12904         (func_fatal_error): Reuse the name the user invoked us with.
12905
12906 2008-09-27  Bruno Haible  <bruno@clisp.org>
12907
12908         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
12909         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
12910         (gl_ICONV_H): Not here.
12911         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
12912         instead of assigning ICONV_H directly.
12913
12914         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
12915         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
12916         WCHAR_H directly.
12917
12918 2008-09-27  Bruno Haible  <bruno@clisp.org>
12919
12920         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
12921         * modules/arpa_inet (Depends-on): Add link-warning.
12922         (Makefile.am): Insert the definition of GL_LINK-WARNING.
12923         * modules/unistd (Makefile.am): Likewise.
12924
12925 2008-09-26  Bruno Haible  <bruno@clisp.org>
12926
12927         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
12928         variables.
12929         (func_version): Essentially copied from gnulib-tool.
12930         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
12931         func_readlink): Copied from gnulib-tool.
12932
12933 2008-09-26  Bruno Haible  <bruno@clisp.org>
12934
12935         * gnulib-tool (func_version): Change directory to $gnulib_dir before
12936         invoking git-version-gen.
12937
12938 2008-09-26  Bruno Haible  <bruno@clisp.org>
12939
12940         * posix-modules: Update to directory names changed on 2008-01-19.
12941         Remove commas in output before splitting into words. No more need to
12942         avoid 'ftruncate' since 2007-02-19.
12943
12944 2008-09-26  Bruno Haible  <bruno@clisp.org>
12945
12946         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
12947
12948 2008-09-26  Bruno Haible  <bruno@clisp.org>
12949
12950         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
12951         * modules/fwriteerror (Depends-on): Add errno.
12952
12953 2008-09-26  Bruno Haible  <bruno@clisp.org>
12954
12955         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
12956         * tests/test-vc-list-files-cvs.sh: Likewise.
12957
12958 2008-09-26  Bruno Haible  <bruno@clisp.org>
12959
12960         * doc/posix-headers/sys_resource.texi: Reorder items.
12961
12962 2008-09-26  Jim Meyering  <meyering@redhat.com>
12963
12964         fts: tweak inode comparison function
12965         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
12966         inode numbers, as documented.
12967
12968         fts: sort dirent entries on inode number before traversing
12969         This avoids a quadratic, seek-related performance penalty when
12970         operating on a directory containing many entries (measurable at 10k;
12971         3.5 hours at 2 million entries with a cold cache) on certain types
12972         of file systems, including ext3 and ext4, but not tmpfs.
12973         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
12974         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
12975         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
12976         (fs_handles_readdir_ordered_dirents_efficiently): New function.
12977         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
12978         (fts_build): Set the stat.st_ino member from D_INO.
12979         If it is likely to be useful, sort dirent entries on inode number.
12980
12981         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
12982         and the struct statfs.f_type member.
12983         * modules/fts (Depends-on): Add d-ino.
12984
12985 2008-09-26  Bruno Haible  <bruno@clisp.org>
12986
12987         * modules/sigpipe-die (Depends-on): Add sigpipe.
12988
12989         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
12990         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
12991         and GNULIB_STDIO_H_SIGPIPE are set.
12992         * lib/stdio-write.c: New file.
12993         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
12994         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
12995         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
12996         REPLACE_STDIO_WRITE_FUNCS.
12997         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
12998         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
12999         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
13000         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
13001         * modules/stdio (Files): Add lib/stdio-write.c.
13002         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
13003         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
13004         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
13005         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
13006         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
13007         REPLACE_FPRINTF_POSIX.
13008         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
13009         REPLACE_PRINTF_POSIX.
13010         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
13011         REPLACE_VFPRINTF_POSIX.
13012         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
13013         REPLACE_VPRINTF_POSIX.
13014         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
13015         SIGPIPE issue.
13016         * doc/posix-functions/fputc.texi: Likewise.
13017         * doc/posix-functions/fputs.texi: Likewise.
13018         * doc/posix-functions/fwrite.texi: Likewise.
13019         * doc/posix-functions/printf.texi: Likewise.
13020         * doc/posix-functions/putc.texi: Likewise.
13021         * doc/posix-functions/putchar.texi: Likewise.
13022         * doc/posix-functions/puts.texi: Likewise.
13023         * doc/posix-functions/vfprintf.texi: Likewise.
13024         * doc/posix-functions/vprintf.texi: Likewise.
13025
13026         * modules/safe-write (Depends-on): Add write.
13027
13028         * modules/sigpipe-tests: New file.
13029         * tests/test-sigpipe.c: New file.
13030         * tests/test-sigpipe.sh: New file.
13031
13032         * modules/write: New file.
13033         * lib/unistd.in.h: Include <sys/types.h>.
13034         (write): New declaration.
13035         * lib/write.c: New file.
13036         * m4/write.m4: New file.
13037         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
13038         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
13039         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
13040         GNULIB_WRITE, REPLACE_WRITE.
13041         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
13042         and the SIGPIPE issue.
13043
13044         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
13045         (raise): New declaration.
13046         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
13047         (ext_signal): New function.
13048         (rpl_raise): New function.
13049         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
13050         GNULIB_SIGNAL_H_SIGPIPE.
13051         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
13052         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
13053
13054         * modules/sigpipe: New file.
13055         * m4/sigpipe.m4: New file.
13056
13057 2008-09-25  Derek Price  <derek@ximbiot.com>
13058             Bruno Haible  <bruno@clisp.org>
13059
13060         * gnulib-tool (func_import): Report all license incompatibilities, not
13061         just the first one.
13062
13063 2008-09-25  Bruno Haible  <bruno@clisp.org>
13064
13065         * gnulib-tool (func_import): When computing the edits, consider not
13066         only the Makefile.ams that exist but also those that will be generated.
13067
13068 2008-09-25  Simon Josefsson  <simon@josefsson.org>
13069
13070         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
13071         fixes gnulib-tool --test warning about duplicate dependency.
13072
13073 2008-09-25  Bruno Haible  <bruno@clisp.org>
13074
13075         * gnulib-tool: Don't ask the user to perform edits in the generated
13076         Makefile.ams.
13077         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
13078         apply to the Makefile.am being generated.
13079         (func_emit_tests_Makefile_am): Execute edits that apply to the
13080         Makefile.am being generated.
13081         (func_import): Setup list of Makefile.am edits before emitting the
13082         Makefile.ams, not at the end.
13083         (func_create_testdir): Update.
13084         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
13085
13086 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
13087
13088         * gnulib-tool (func_import): Store the --tests-base option in the
13089         comment in gnulib-cache.m4.
13090
13091 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
13092
13093         * NEWS: Document increased portability that sys_select now provides.
13094
13095         * lib/sys_select.in.h: Install select wrapper.
13096         * lib/sys_socket.in.h: Use more descriptive name when there is no
13097         select wrapper.
13098         * lib/winsock-select.c: New.
13099         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
13100         Require gl_HEADER_SYS_SOCKET.
13101         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
13102         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
13103         * tests/test-sys_select.c: Add functional tests.
13104
13105 2008-09-24  Eric Blake  <ebb9@byu.net>
13106
13107         open, fopen: close fd leak in last patch
13108         * lib/open.c (rpl_open): Close fd before returning error.
13109         * lib/fopen.c (rpl_fopen): Close fd before returning error.
13110         * doc/posix-functions/open.texi (open): Document that Irix also
13111         has the bug.
13112         * doc/posix-functions/fopen.texi (fopen): Likewise.
13113         Reported by Paolo Bonzini.
13114
13115 2008-09-24  Bruno Haible  <bruno@clisp.org>
13116
13117         Ensure that a filename ending in a slash cannot be used to access a
13118         non-directory.
13119         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
13120         to check whether it's really a directory.
13121         * lib/fopen.c: Include fcntl.h, unistd.h.
13122         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
13123         and fdopen().
13124         * modules/fopen (Depends-on): Add unistd.
13125         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
13126         * tests/test-fopen.c (main): Likewise.
13127         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
13128         * doc/posix-functions/fopen.texi: Likewise.
13129         Reported by Eric Blake.
13130
13131 2008-09-23  Eric Blake  <ebb9@byu.net>
13132
13133         c-stack: avoid compiler optimizations when provoking overflow
13134         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
13135         recursion harder to optimize, to ensure a stack overflow occurs.
13136         * tests/test-c-stack.c (recurse): Likewise.
13137         Borrowed from libsigsegv.
13138
13139         c-stack: work around Irix sigaltstack bug
13140         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
13141         whether sigaltstack uses wrong end of stack_t (copied in part from
13142         libsigsegv).
13143         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
13144         Irix bug, without requiring an over-allocation.
13145         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
13146         bug.
13147
13148         fopen: document mingw bug on directories
13149         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
13150         not allowing a stream visiting a directory, even though reading
13151         from such a stream is not portable.
13152
13153 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
13154
13155         * lib/poll.c: Rewrite.
13156         * modules/poll: Depend on alloca.
13157
13158 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
13159
13160         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
13161         instead define prototypes for a full set of wrappers.  Ensure
13162         that Cygwin does not use the compatibility code, which is only
13163         for MinGW.
13164         * lib/winsock.c: New.
13165         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
13166         * modules/sys_socket: Add lib/winsock.c.
13167
13168         * modules/poll-tests: Add errno and perror.
13169         * tests/test-poll.c: Use ioctl, not ioctlsocket.
13170
13171 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
13172
13173         * tests/test-poll.c: Downgrade minimum needed Winsock version.
13174
13175 2008-09-23  Bruno Haible  <bruno@clisp.org>
13176
13177         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
13178         * doc/glibc-functions/*: Likewise.
13179
13180 2008-09-23  Simon Josefsson  <simon@josefsson.org>
13181
13182         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
13183         success.
13184
13185 2008-09-22  Eric Blake  <ebb9@byu.net>
13186             Bruno Haible  <bruno@clisp.org>
13187
13188         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
13189         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
13190         supply %A but mishandle pseudo-NaN.
13191         Reported by Simon Josefsson.
13192
13193 2008-09-21  Bruno Haible  <bruno@clisp.org>
13194
13195         * tests/test-lock.c (main): Tweak skip message.
13196         * tests/test-tls.c (main): Likewise.
13197
13198 2008-09-21  Bruno Haible  <bruno@clisp.org>
13199
13200         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
13201         whether 'struct sigaction' has sa_sigaction here...
13202         (gl_PREREQ_SIG_HANDLER_H): ... not here.
13203         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
13204
13205 2008-09-21  Bruno Haible  <bruno@clisp.org>
13206
13207         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
13208         section.
13209         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
13210         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
13211         the new section.
13212         (Support for obsolete systems lacking POSIX:2001): New section.
13213         (String handling <string.h>): Move strdup to the new section.
13214         Suggested by Simon Josefsson and Paolo Bonzini.
13215
13216 2008-09-21  Bruno Haible  <bruno@clisp.org>
13217
13218         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
13219         exponents in %e and %g results on 'long double'. Needed for mingw's
13220         improved *printf functions.
13221         * tests/test-vasprintf-posix.c (test_function): Likewise.
13222         * tests/test-snprintf-posix.h (test_function): Likewise.
13223         * tests/test-sprintf-posix.h (test_function): Likewise.
13224         Reported by Eric Blake.
13225
13226 2008-09-21  Bruno Haible  <bruno@clisp.org>
13227
13228         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
13229         * tests/test-sprintf-posix.h (test_function): Likewise.
13230
13231 2008-09-21  Bruno Haible  <bruno@clisp.org>
13232
13233         * modules/getpass (Depends-on): Add strdup-posix.
13234
13235         New module 'strdup-posix'.
13236         * modules/strdup-posix: New file.
13237         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
13238         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
13239         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
13240         REPLACE_STRDUP.
13241         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
13242         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
13243         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
13244         strdup-posix.
13245
13246         * modules/strdup (Depends-on): Remove malloc-posix.
13247
13248 2008-09-20  Bruno Haible  <bruno@clisp.org>
13249
13250         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
13251         Wildenhues.
13252
13253 2008-09-20  Bruno Haible  <bruno@clisp.org>
13254
13255         Ensure that wint_t gets defined on IRIX 5.3.
13256         * lib/wchar.in.h (wint_t): Define if not defined by the system.
13257         * lib/wctype.in.h (wint_t): Likewise.
13258         (__wctype_wint_t): Remove type.
13259         (isw*): Use wint_t instead of __wctype_wint_t.
13260         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
13261         * modules/wchar (Files): Add m4/wint_t.m4.
13262         (Makefile.am): Substitute HAVE_WINT_T.
13263         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
13264         * tests/test-wctype.c: Check that wint_t is defined.
13265         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
13266         * doc/posix-headers/wctype.texi: Likewise.
13267         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
13268
13269 2008-09-18  Bruno Haible  <bruno@clisp.org>
13270
13271         * gnulib-tool (func_exit): Update comment.
13272
13273 2008-09-18  Simon Josefsson  <simon@josefsson.org>
13274
13275         * modules/getaddrinfo (Depends-on): Remove strdup, this module
13276         assumes strdup exists and does not depend on strdup to return
13277         ENOMEM on out of memory conditions.
13278
13279 2008-09-18  Bruno Haible  <bruno@clisp.org>
13280
13281         * lib/vasnprintf.c (VASNPRINTF): When printing ±0.0L in
13282         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
13283         digits for the exponent.
13284
13285 2008-09-18  Jim Meyering  <meyering@redhat.com>
13286             Bruno Haible  <bruno@clisp.org>
13287
13288         * lib/vasnprintf.c (decimal_point_char): Define also if
13289         NEED_PRINTF_INFINITE_LONG_DOUBLE.
13290
13291 2008-09-16  Bruno Haible  <bruno@clisp.org>
13292         and Eric Blake  <ebb9@byu.net>
13293
13294         vasnprintf: support Irix 5.3
13295         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
13296         that mishandle long double infinity.
13297         Reported by Tom G. Christensen.
13298
13299 2008-09-16  Bruno Haible  <bruno@clisp.org>
13300
13301         * doc/glibc-functions/scandir.texi: Mention the function is missing on
13302         Solaris 9.
13303         * doc/glibc-functions/alphasort.texi: Likewise.
13304         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
13305
13306 2008-09-16  Jim Meyering  <meyering@redhat.com>
13307
13308         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
13309         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
13310         a umask modification leak out of a subshell.  Otherwise, the
13311         opensolaris /bin/sh would be accepted and thus cause unwarranted
13312         failures in the coreutils test suite.
13313
13314 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
13315
13316         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
13317         to succeed.
13318
13319 2008-09-16  Jim Meyering  <meyering@redhat.com>
13320
13321         avoid spurious test failure when library is built without ACL support
13322         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
13323         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
13324         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
13325         * tests/test-copy-acl.sh: Likewise.
13326
13327 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13328
13329         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
13330         based on character occurrence counts.
13331
13332 2008-09-15  Eric Blake  <ebb9@byu.net>
13333
13334         tests: avoid some compiler warnings
13335         * tests/test-memchr.c (main): Pass NULL indirectly.
13336         * tests/test-closein.c (main): Avoid unused variable.
13337
13338 2008-09-15  Bruno Haible  <bruno@clisp.org>
13339
13340         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
13341         are missing on OpenBSD 4.0 individually.
13342         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
13343
13344 2008-09-15  Bruno Haible  <bruno@clisp.org>
13345
13346         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
13347         * doc/posix-functions/strerror.texi: Mention also Cygwin.
13348         * doc/posix-functions/perror.texi: Likewise.
13349         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
13350         is missing.
13351         Reported by Eric Blake.
13352
13353         * lib/errno.in.h: Use replacement values >= 2000.
13354         Reported by Eric Blake.
13355
13356 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13357
13358         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
13359         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
13360         limit.
13361         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
13362         compareseq was aborted.
13363
13364 2008-09-14  Bruno Haible  <bruno@clisp.org>
13365
13366         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
13367         yvec_edit_count.
13368         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
13369         (fstrcmp_bounded): Simplify result computation accordingly.
13370
13371 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13372
13373         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
13374         (fstrcmp): Define in terms of fstrcmp_bounded.
13375         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
13376         lower_bound argument.
13377         Return quickly if the result is certainly < lower_bound.
13378         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
13379
13380 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13381
13382         * lib/diffseq.h (EARLY_ABORT): New macro.
13383         (compareseq): Change return type to bool. Return true when EARLY_ABORT
13384         evaluates to true.
13385
13386 2008-09-14  Bruno Haible  <bruno@clisp.org>
13387
13388         * modules/perror-tests: New file.
13389         * tests/test-perror.sh: New file.
13390         * tests/test-perror.c: New file.
13391
13392         New module 'perror'.
13393         * lib/stdio.in.h (perror): New declaration.
13394         * lib/perror.c: New file.
13395         * m4/perror.m4: New file.
13396         * modules/perror: New file.
13397         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
13398         * doc/posix-functions/perror.texi: Mention the perror module.
13399         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
13400         REPLACE_PERROR.
13401         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
13402         REPLACE_PERROR.
13403
13404 2008-09-14  Bruno Haible  <bruno@clisp.org>
13405
13406         * modules/stdio (Makefile.am): Reorder to match the order in
13407         lib/stdio.in.h.
13408         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
13409
13410 2008-09-13  Bruno Haible  <bruno@clisp.org>
13411
13412         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
13413
13414 2008-09-13  Bruno Haible  <bruno@clisp.org>
13415
13416         Extend strerror to cover the added errno values.
13417         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
13418         (rpl_strerror): Provide error messages for the added errno values and
13419         for the WSA* values.
13420         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
13421         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
13422         strerror.
13423         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
13424         * modules/strerror (Depends-on): Add errno.
13425         * doc/posix-functions/strerror.texi: Document the change.
13426         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
13427         and EOVERFLOW.
13428
13429 2008-09-13  Bruno Haible  <bruno@clisp.org>
13430
13431         * modules/EOVERFLOW: Remove file.
13432         * m4/eoverflow.m4: Remove file.
13433         * modules/EOVERFLOW-tests: Remove file.
13434         * tests/test-EOVERFLOW.c: Remove file.
13435         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
13436         * modules/ftell (Depends-on): Likewise.
13437         * modules/getdelim (Depends-on): Likewise.
13438         * modules/getugroups (Depends-on): Likewise.
13439         * modules/poll (Depends-on): Likewise.
13440         * modules/snprintf (Depends-on): Likewise.
13441         * modules/sprintf-posix (Depends-on): Likewise.
13442         * modules/vasnprintf (Depends-on): Likewise.
13443         * modules/vasprintf (Depends-on): Likewise.
13444         * modules/vfprintf-posix (Depends-on): Likewise.
13445         * modules/vsnprintf (Depends-on): Likewise.
13446         * modules/vsprintf-posix (Depends-on): Likewise.
13447         * modules/xvasprintf (Depends-on): Likewise.
13448         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
13449         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
13450         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
13451         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
13452         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
13453         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
13454         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
13455         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
13456         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
13457         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
13458         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
13459         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
13460         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
13461         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
13462         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
13463         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
13464         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
13465         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
13466         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
13467         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
13468         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
13469         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
13470         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
13471         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
13472         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
13473         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
13474         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
13475         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
13476         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
13477         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
13478         * MODULES.html.sh: Remove EOVERFLOW.
13479         * NEWS: Mention the change.
13480
13481 2008-09-13  Bruno Haible  <bruno@clisp.org>
13482
13483         * modules/errno-tests: New file.
13484         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
13485
13486         * lib/errno.in.h: New file.
13487         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
13488         * modules/errno: New file.
13489         * doc/posix-headers/errno.texi: Update documentation.
13490         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
13491
13492 2008-09-13  Bruno Haible  <bruno@clisp.org>
13493
13494         * tests/test-poll.c: Use #if for native Windows, rather than testing
13495         __MSVCRT__.
13496
13497 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
13498             Bruno Haible  <bruno@clisp.org>
13499
13500         * lib/glob.c: Don't include <pwd.h> on native Windows.
13501         (WINDOWS32): New macro.
13502         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
13503
13504 2008-09-13  Bruno Haible  <bruno@clisp.org>
13505
13506         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
13507         (ETIMEDOUT): Remove macro.
13508         (glthread_cond_timedwait_multithreaded): New declaration.
13509         (glthread_cond_timedwait): Use it.
13510         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
13511         (glthread_cond_timedwait_multithreaded): New function.
13512
13513 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
13514
13515         * modules/poll-tests: Do not check for io.h.
13516         * tests/test-poll.c: Check for __MSVCRT__ instead.
13517
13518 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
13519
13520         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
13521         * modules/poll-tests: Add inet_pton, stdbool, sockets.
13522         * tests/test-poll.c: Use them.  Use _pipe on Windows.
13523
13524 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
13525
13526         * modules/poll-tests: New.
13527         * tests/test-poll.c: New.
13528
13529 2008-09-12  Eric Blake  <ebb9@byu.net>
13530
13531         frexp: test for NetBSD failure on -0.0
13532         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
13533         not all, bugs from NetBSD 3.0 have been fixed.
13534         * doc/posix-functions/frexp.texi (frexp): Document bug.
13535         Reported by Thomas Klausner.
13536
13537         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
13538         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
13539         literal -0.0.
13540         Reported by Jonathan C. Patschke <jp@centtech.com>.
13541
13542 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
13543
13544         * lib/glthread/cond.h: Use dummy implementation also if
13545         USE_WIN32_THREADS.
13546
13547 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
13548
13549         * modules/fnmatch-posix (License): Change to LGPLv2+.
13550         * modules/fnmatch-gnu (License): Likewise.
13551
13552 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
13553
13554         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
13555
13556 2008-09-11  Jim Meyering  <meyering@redhat.com>
13557
13558         * users.txt: Add gtk-vnc.
13559
13560 2008-09-08  Simon Josefsson  <simon@josefsson.org>
13561
13562         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
13563         rotate amounts.
13564
13565         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
13566         required for 16-bit and 8-bit rotates.
13567         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
13568         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
13569         UINT8_MAX instead of hard-coded constants.
13570         Suggested by Paul Eggert.
13571
13572 2008-09-07  Bruno Haible  <bruno@clisp.org>
13573
13574         * tests/test-striconveh.c (main): Check behaviour when converting from
13575         UTF-7.
13576
13577         Make striconveh work better with stateful encodings.
13578         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
13579         that iconv does not increment the inptr when returning -1/EINVAL.
13580
13581 2008-09-07  Bruno Haible  <bruno@clisp.org>
13582
13583         * build-aux/config.rpath: Update according to libtool-2.2.6.
13584         * build-aux/config.libpath: Likewise.
13585
13586 2008-09-06  Bruno Haible  <bruno@clisp.org>
13587
13588         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
13589         * lib/freadptr.c (freadptr): Likewise.
13590         * lib/freadseek.c (freadptrinc): Likewise.
13591         Reported by Simon Josefsson.
13592
13593 2008-09-06  Bruno Haible  <bruno@clisp.org>
13594
13595         * modules/freadptr (License): Change to LGPLv2+.
13596         * modules/freadseek (License): Likewise.
13597         Suggested by Eric Blake.
13598
13599         * modules/memchr2 (License): Change to LGPLv2+.
13600         Approved by Eric Blake.
13601
13602 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
13603             Bruno Haible  <bruno@clisp.org>
13604
13605         Make gnulib-tool work with native 'sed' on AIX.
13606         * gnulib-tool (sed_noop): New variable.
13607         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
13608         func_add_or_update, func_create_testdir): Use it to initialize sed
13609         script variables.
13610         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
13611
13612 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
13613             Bruno Haible  <bruno@clisp.org>
13614
13615         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
13616         also works after #include directives.
13617
13618 2008-09-04  Ondřej Vašík  <ovasik@redhat.com>
13619
13620         getdate.y: reject an out-of-range timezone value
13621         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
13622         the range [-24...+24].  When specified with only one or two digits,
13623         * tests/test-getdate.c: Tests for the fix.
13624         * doc/getdate.texi: Document this change.
13625
13626 2008-09-03  Bruno Haible  <bruno@clisp.org>
13627
13628         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
13629
13630 2008-09-02  Simon Josefsson  <simon@josefsson.org>
13631
13632         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
13633         <bruce.korb@gmail.com> with ideas from Ben Pfaff
13634         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
13635         Blake <ebb9@byu.net>.
13636
13637         * tests/test-bitrotate.c: Add more test vectors.
13638
13639 2008-09-02  Eric Blake  <ebb9@byu.net>
13640
13641         vasnprintf-posix: handle large precision via %.*d
13642         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
13643         when handling it ourselves.
13644         * tests/test-vasnprintf-posix.c (test_function): Add test.
13645         * tests/test-snprintf-posix.h (test_function): Likewise.
13646         * tests/test-sprintf-posix.h (test_function): Likewise.
13647         * tests/test-vasprintf-posix.c (test_function): Likewise.
13648         Reported by Alain Guibert.
13649
13650 2008-09-01  Eric Blake  <ebb9@byu.net>
13651
13652         c-stack: make configure-time check more robust
13653         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
13654         successful sigaction call.
13655         Reported by Tom G. Christensen.
13656
13657 2008-09-01  Bruno Haible  <bruno@clisp.org>
13658
13659         New module 'findprog-lgpl'.
13660         * modules/findprog-lgpl: New file.
13661         * lib/findprog-lgpl.c: New file.
13662         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
13663         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
13664         to decide whether to use strdup or xstrdup, concatenated_filename or
13665         xconcatenated_filename.
13666
13667 2008-09-01  Bruno Haible  <bruno@clisp.org>
13668
13669         Split module 'concat-filename' into 'concat-filename' (LGPL) and
13670         'xconcat-filename' (GPL).
13671         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
13672         (License): Change to LGPLv2+.
13673         * modules/xconcat-filename: New file.
13674         * lib/concat-filename.h (concatenated_filename): Change specification.
13675         (xconcatenated_filename): New declaration.
13676         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
13677         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
13678         memory situations.
13679         * lib/xconcat-filename.c: New file.
13680         * NEWS: Mention the change.
13681         * lib/findprog.c: Include concat-filename.h, not filename.h.
13682         (find_in_path): Use xconcatenated_filename instead of
13683         concatenated_filename.
13684         * lib/javacomp.c: Include concat-filename.h, not filename.h.
13685         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
13686         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
13687         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
13688         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
13689         instead of concatenated_filename.
13690         * lib/javaexec.c: Include concat-filename.h, not filename.h.
13691         (execute_java_class): Use xconcatenated_filename instead of
13692         concatenated_filename.
13693         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
13694         * modules/javacomp (Depends-on): Likewise.
13695         * modules/javaexec (Depends-on): Likewise.
13696
13697 2008-09-01  Bruno Haible  <bruno@clisp.org>
13698
13699         Split module 'filename' into 'filename' and 'concat-filename'.
13700         * modules/filename: Keep only lib/filename.h.
13701         (License): Change to LGPLv2+.
13702         * modules/concat-filename: New file, extracted from modules/filename.
13703         * lib/filename.h (concatenated_filename): Remove declaration.
13704         * lib/concat-filename.h: New file, extracted from lib/filename.h.
13705         * lib/concat-filename.c: Include concat-filename.h.
13706         * NEWS: Mention the change.
13707
13708 2008-09-01  Simon Josefsson  <simon@josefsson.org>
13709
13710         * lib/bitrotate.h (rotl8, rotr8): Add.
13711
13712         * modules/bitrotate (configure.ac): Need
13713         AC_REQUIRE([AC_C_INLINE]).
13714         (Description): Mention stdint.h.  Reported by Bruno Haible
13715         <bruno@clisp.org>.
13716
13717         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
13718         Paolo Bonzini <bonzini@gnu.org>.
13719
13720 2008-08-31  Bruno Haible  <bruno@clisp.org>
13721
13722         Assume Solaris specific bi-arch conventions on Solaris systems.
13723         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
13724         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
13725         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
13726         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
13727         like acl_libdirstem.
13728         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
13729         acl_libdirstem.
13730         * NEWS: Mention the change.
13731         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
13732
13733 2008-08-31  Jim Meyering  <meyering@redhat.com>
13734
13735         * lib/strftime.h: Add comments describing the two added arguments.
13736
13737         remove duplicate #include directives
13738         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
13739         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
13740
13741 2008-08-31  Bruno Haible  <bruno@clisp.org>
13742
13743         New module 'sigpipe-die'.
13744         * modules/sigpipe-die: New file.
13745         * lib/sigpipe-die.h: New file.
13746         * lib/sigpipe-die.c: New file.
13747         * MODULES.html.sh (Signal handling): Add sigpipe-die.
13748
13749 2008-08-31  Bruno Haible  <bruno@clisp.org>
13750
13751         Don't override previously installed signal handlers.
13752         * lib/fatal-signal.c (saved_sigactions): New variable.
13753         (uninstall_handlers): Reset the signal to the saved handler, not
13754         to SIG_DFL (except when ignored).
13755         (install_handlers): Save the previous handlers.
13756
13757 2008-08-30  Bruno Haible  <bruno@clisp.org>
13758
13759         * gnulib-tool (func_reset_sigpipe): New function.
13760         (func_get_automake_snippet, func_modules_transitive_closure,
13761         func_import): Invoke it before a join command that reads from stdin,
13762         to avoid "echo: write error: Broken pipe" error messages on stderr.
13763         Reported by Sam Steingold <sds@gnu.org>.
13764
13765 2008-08-30  Bruno Haible  <bruno@clisp.org>
13766
13767         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
13768         Code copied from m4/open.m4.
13769         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
13770         access and the filename ends in a slash. Code copied from lib/open.c.
13771         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
13772         * tests/test-fopen.c (main): Check against bug with trailing slash.
13773
13774 2008-08-29  Bruno Haible  <bruno@clisp.org>
13775
13776         Avoid some "gcc -pedantic" warnings.
13777         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
13778         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
13779         * lib/dirent.in.h: Likewise.
13780         * lib/fcntl.in.h: Likewise.
13781         * lib/float.in.h: Likewise.
13782         * lib/iconv.in.h: Likewise.
13783         * lib/inttypes.in.h: Likewise.
13784         * lib/locale.in.h: Likewise.
13785         * lib/math.in.h: Likewise.
13786         * lib/netinet_in.in.h: Likewise.
13787         * lib/search.in.h: Likewise.
13788         * lib/signal.in.h: Likewise.
13789         * lib/stdarg.in.h: Likewise.
13790         * lib/stdint.in.h: Likewise.
13791         * lib/stdio.in.h: Likewise.
13792         * lib/stdlib.in.h: Likewise.
13793         * lib/string.in.h: Likewise.
13794         * lib/strings.in.h: Likewise.
13795         * lib/sys_select.in.h: Likewise.
13796         * lib/sys_socket.in.h: Likewise.
13797         * lib/sys_stat.in.h: Likewise.
13798         * lib/sys_time.in.h: Likewise.
13799         * lib/sysexits.in.h: Likewise.
13800         * lib/time.in.h: Likewise.
13801         * lib/unistd.in.h: Likewise.
13802         * lib/wchar.in.h: Likewise.
13803         * lib/wctype.in.h: Likewise.
13804         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
13805         * modules/fchdir (Makefile.am): Likewise.
13806         * modules/fcntl (Makefile.am): Likewise.
13807         * modules/float (Makefile.am): Likewise.
13808         * modules/iconv_open (Makefile.am): Likewise.
13809         * modules/inttypes (Makefile.am): Likewise.
13810         * modules/locale (Makefile.am): Likewise.
13811         * modules/math (Makefile.am): Likewise.
13812         * modules/netinet_in (Makefile.am): Likewise.
13813         * modules/search (Makefile.am): Likewise.
13814         * modules/signal (Makefile.am): Likewise.
13815         * modules/stdarg (Makefile.am): Likewise.
13816         * modules/stdint (Makefile.am): Likewise.
13817         * modules/stdio (Makefile.am): Likewise.
13818         * modules/stdlib (Makefile.am): Likewise.
13819         * modules/string (Makefile.am): Likewise.
13820         * modules/strings (Makefile.am): Likewise.
13821         * modules/sys_select (Makefile.am): Likewise.
13822         * modules/sys_socket (Makefile.am): Likewise.
13823         * modules/sys_stat (Makefile.am): Likewise.
13824         * modules/sys_time (Makefile.am): Likewise.
13825         * modules/sysexits (Makefile.am): Likewise.
13826         * modules/time (Makefile.am): Likewise.
13827         * modules/unistd (Makefile.am): Likewise.
13828         * modules/wchar (Makefile.am): Likewise.
13829         * modules/wctype (Makefile.am): Likewise.
13830         Reported by Reuben Thomas <rrt@sc3d.org>.
13831
13832 2008-08-29  Bruno Haible  <bruno@clisp.org>
13833
13834         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
13835         any more.
13836
13837 2008-08-29  Simon Josefsson  <simon@josefsson.org>
13838
13839         * MODULES.html.sh (Misc): Add bitrotate.
13840
13841         * modules/bitrotate: New file.
13842
13843         * lib/bitrotate.h: New file.
13844
13845         * modules/bitrotate-tests: New file.
13846
13847         * tests/test-bitrotate.c: New file.
13848
13849         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
13850         on the bitrotate module.
13851
13852         * lib/arctwo.c: Use new bitrotate module.
13853
13854 2008-08-29  Jim Meyering  <meyering@redhat.com>
13855
13856         bootstrap: merge changes from coreutils
13857         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
13858         of copied files.  Remove a kludge, now that this is fixed.
13859         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
13860         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
13861         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
13862
13863 2008-08-29  Bruno Haible  <bruno@clisp.org>
13864
13865         * MODULES.html.sh: Remove --cvs-urls option.
13866
13867 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
13868
13869         maint.mk: adjust to file name change
13870         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
13871
13872 2008-08-28  Jim Meyering  <meyering@redhat.com>
13873
13874         * modules/getndelim2 (License): Relicense to LGPLv2+.
13875         Approved by Richard Stallman for the version of 1995, and by
13876         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
13877
13878 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
13879
13880         * lib/getdelim.c (flockfile, funlockfile): Make all of them
13881         dummy if one is not available.  Do not touch them if
13882         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
13883         (getc_maybe_unlocked): New.
13884         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
13885
13886 2008-08-26  Eric Blake  <ebb9@byu.net>
13887
13888         doc/INSTALL: resync from autoconf
13889         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
13890         (INSTALL_PRELUDE): Delete; this is done more efficiently by
13891         moving...
13892         * install.texi [!autoconf]: ...here.  Resync from autoconf.
13893         * INSTALL: Regenerate.
13894         * INSTALL.ISO: New file.
13895         * INSTALL.UTF-8: Likewise.
13896
13897 2008-08-26  Jim Meyering  <meyering@redhat.com>
13898
13899         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
13900         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
13901         these definitions conditional, so that they may be overridden, too.
13902
13903 2008-08-26  Bruno Haible  <bruno@clisp.org>
13904
13905         Generate INSTALL file variants with prettier quotes.
13906         * doc/Makefile (INSTALL_PRELUDE): New macro.
13907         (INSTALL): Use it.
13908         (INSTALL.ISO, INSTALL.UTF-8): New rules.
13909
13910 2008-08-26  Bruno Haible  <bruno@clisp.org>
13911
13912         Run makeinfo in an English locale.
13913         * doc/Makefile (MAKEINFO): New variable.
13914
13915 2008-08-26  Bruno Haible  <bruno@clisp.org>
13916
13917         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
13918         Suggested by Eric Blake.
13919
13920 2008-08-25  Bruno Haible  <bruno@clisp.org>
13921
13922         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
13923
13924 2008-08-25  Eric Blake  <ebb9@byu.net>
13925
13926         c-stack: test that stack overflow can be caught
13927         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
13928         that platform allows handling stack overflow; at least OS/2 EMX
13929         has sigaltstack, but crashes before transferring control to
13930         handler on stack overflow.
13931         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
13932         check for HAVE_STACK_OVERFLOW_HANDLING.
13933         Reported by Elbert Pol.
13934
13935 2008-08-25  Bruno Haible  <bruno@clisp.org>
13936
13937         * doc/posix-functions/strftime.texi: Fix description of strftime
13938         module.
13939
13940 2008-08-24  Bruno Haible  <bruno@clisp.org>
13941
13942         * tests/uniwidth/test-uc_width2.c: New file.
13943         * tests/uniwidth/test-uc_width2.sh: New file.
13944         * modules/uniwidth/width-tests (Files): Add the new files.
13945         (TESTS): Add uniwidth/test-uc_width2.sh.
13946         (TESTS_ENVIRONMENT): New variable.
13947         (check_PROGRAMS): Add test-uc_width2.
13948         (test_uc_width2_SOURCES): New variable.
13949
13950         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
13951         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
13952         not 0x00AB.
13953         Reported by Alexander V. Lukyanov <lav@netis.ru>.
13954
13955 2008-08-22  Eric Blake  <ebb9@byu.net>
13956
13957         test-lock, test-tls: mention why a test is skipped
13958         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
13959         skipped.
13960         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
13961
13962         count-one-bits: relax license
13963         * modules/count-one-bits (License): Relicense to LGPLv2+.
13964         Suggested by Ludovic Courtès, approved by Ben Pfaff.
13965
13966 2008-08-22  Andreas Schwab  <schwab@suse.de>
13967
13968         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
13969         Remove spurious space in assignment.
13970
13971 2008-08-21  Simon Josefsson  <simon@josefsson.org>
13972
13973         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
13974         Paul Eggert <eggert@CS.UCLA.EDU>.
13975
13976 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
13977
13978         * modules/gettext: Add m4/threadlib.m4.
13979
13980 2008-08-19  Eric Blake  <ebb9@byu.net>
13981
13982         test-c-stack: fix compilation failure on FreeBSD 5.0
13983         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
13984         headers before <sys/resource.h>.
13985         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
13986         the bug.
13987         Reported by Nelson H. F. Beebe.
13988
13989         strverscmp: migrate from "strverscmp.h" to <string.h>
13990         * modules/string (Makefile.am): Add new hooks.
13991         * modules/strverscmp (Files): Remove strverscmp.h.
13992         (Depends-on): Add string.
13993         (configure.ac): Add indicator.
13994         (Include): Mention new header.
13995         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
13996         defaults.
13997         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
13998         results.
13999         * lib/strverscmp.h: Delete.
14000         * lib/string.in.h (strverscmp): Provide declaration, when needed.
14001         * tests/test-strverscmp.c (includes): Adjust client.
14002         * lib/check-version.c (includes): Likewise.
14003         * NEWS: Document the change.
14004
14005         strverscmp: add unit test
14006         * modules/strverscmp-tests: New file.
14007         * tests/test-strverscmp.c: Likewise.
14008
14009 2008-08-19  Simon Josefsson  <simon@josefsson.org>
14010
14011         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
14012         regarding Windows crypto stuff, from Mono.
14013
14014 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
14015
14016         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
14017         if present, for intel RND.  Return error on failures.
14018
14019 2008-08-18  Ben Pfaff  <blp@gnu.org>
14020
14021         gitlog-to-changelog: give better diagnostic for failed pipe-open
14022         * build-aux/gitlog-to-changelog: Improve error message: suggest
14023         that the version of Git may be too old.
14024
14025 2008-08-18  Simon Josefsson  <simon@josefsson.org>
14026
14027         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
14028         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
14029
14030 2008-08-18  Bruno Haible  <bruno@clisp.org>
14031
14032         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
14033         pthread_in_use().
14034
14035 2008-08-18  Bruno Haible  <bruno@clisp.org>
14036
14037         * lib/glthread/threadlib.c: Include <pthread.h>.
14038
14039 2008-08-18  Bruno Haible  <bruno@clisp.org>
14040
14041         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
14042         glthread_recursive_lock_* macros.
14043         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
14044         Fix syntax error.
14045
14046 2008-08-18  Bruno Haible  <bruno@clisp.org>
14047
14048         * lib/glthread/thread.c: Avoid forcing a context switch right after
14049         thread creation.
14050
14051 2008-08-17  Bruno Haible  <bruno@clisp.org>
14052
14053         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
14054         * lib/glthread/thread.h: Provide Win32 specific implementation.
14055         * modules/thread (Files): Add lib/glthread/thread.c.
14056         (Depends-on): Add lock.
14057         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
14058
14059 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
14060
14061         New module 'yield'.
14062         * modules/yield: New file.
14063         * lib/glthread/yield.h: New file.
14064         * m4/yield.m4: New file.
14065         * MODULES.html.sh (Multithreading): Add yield.
14066
14067 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
14068
14069         New module 'thread'.
14070         * modules/thread: New file.
14071         * lib/glthread/thread.h: New file.
14072         * m4/thread.m4: New file.
14073         * MODULES.html.sh (Multithreading): Add thread.
14074
14075 2008-08-17  Bruno Haible  <bruno@clisp.org>
14076
14077         * lib/glthread/lock.h: Include <stdlib.h> always.
14078         * lib/glthread/tls.h: Likewise.
14079         * lib/glthread/cond.h: Likewise.
14080
14081 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
14082
14083         New module 'cond'.
14084         * modules/cond: New file.
14085         * lib/glthread/cond.h: New file.
14086         * lib/glthread/cond.c: New file.
14087         * m4/cond.m4: New file.
14088         * MODULES.html.sh (Multithreading): Add cond.
14089
14090 2008-08-16  Eric Blake  <ebb9@byu.net>
14091
14092         c-stack: fix regression on Irix 5.3 from 2008-06-21
14093         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
14094         sa_sigaction...
14095         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
14096         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
14097         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
14098         * modules/signal (Makefile.am): Use the value.
14099         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
14100         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
14101         * doc/posix-headers/signal.texi (signal.h): Document this
14102         portability issue.
14103         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
14104         Reported by Tom G. Christensen.
14105
14106 2008-08-17  Bruno Haible  <bruno@clisp.org>
14107
14108         New module 'threadlib'.
14109         * modules/threadlib: New file.
14110         * lib/glthread/threadlib.c: New file, extracted from
14111         lib/glthread/lock.c.
14112         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
14113         functions.
14114         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
14115         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
14116         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
14117         macros.
14118         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
14119         (gl_DISABLE_THREADS): Remove macro.
14120         * modules/lock (Files): Remove build-aux/config.rpath.
14121         (Depends-on): Remove havelib. Add threadlib.
14122         (configure.ac-early): Remove section.
14123         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
14124         * modules/tls (Depends-on): Remove lock. Add threadlib.
14125         (Link): New section, copied from threadlib.
14126         * MODULES.html.sh (Multithreading): Add threadlib.
14127
14128 2008-08-14  Bruno Haible  <bruno@clisp.org>
14129
14130         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
14131         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
14132         glthread_rwlock_unlock, glthread_rwlock_destroy,
14133         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
14134         glthread_recursive_lock_destroy): Define as macros always.
14135         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
14136         glthread_lock_lock.
14137         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
14138         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
14139         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
14140         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
14141         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
14142         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
14143         (glthread_recursive_lock_lock_func): Renamed from
14144         glthread_recursive_lock_lock.
14145         (glthread_recursive_lock_unlock_func): Renamed from
14146         glthread_recursive_lock_unlock.
14147         (glthread_recursive_lock_destroy_func): Renamed from
14148         glthread_recursive_lock_destroy.
14149
14150 2008-08-14  Bruno Haible  <bruno@clisp.org>
14151
14152         * lib/glthread/lock.h: Renamed from lib/lock.h.
14153         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
14154         * lib/glthread/tls.h: Renamed from lib/tls.h.
14155         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
14156         * lib/fstrcmp.c: Update includes.
14157         * lib/strsignal.c: Update includes.
14158         * modules/lock (Files, Makefile.am): Update.
14159         (Include): Change to "glthread/lock.h".
14160         * modules/tls (Files, Makefile.am): Update.
14161         (Include): Change to "glthread/tls.h".
14162         * tests/test-lock.c: Update includes.
14163         * tests/test-tls.c: Update includes.
14164         * NEWS: Mention the renamed header files.
14165
14166 2008-08-11  Jim Meyering  <meyering@redhat.com>
14167
14168         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
14169
14170 2008-08-11  Eric Blake  <ebb9@byu.net>
14171
14172         test-c-stack: avoid C99-ism
14173         * tests/test-c-stack.c (main): Fix whitespace, move declaration
14174         before statement.
14175         Reported by Alain Guibert.
14176
14177 2008-08-10  Jim Meyering  <meyering@redhat.com>
14178
14179         ensure that return value of uinttostr et al are not ignored
14180         * lib/inttostr.h (__GNUC_PREREQ): Define.
14181         (__attribute_warn_unused_result__): Define.
14182         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
14183
14184 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
14185
14186         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
14187         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
14188
14189 2008-08-07  Jim Meyering  <meyering@redhat.com>
14190
14191         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
14192
14193         * modules/mkstemp (License): Relicense under LGPLv2+.
14194         * modules/tempname (License): Likewise.
14195
14196 2008-08-06  Bruno Haible  <bruno@clisp.org>
14197
14198         * lib/poll.c (poll): Further micro-optimization.
14199
14200 2008-08-06  Jim Meyering  <meyering@redhat.com>
14201
14202         inet_pton.c: use locale-independent tolower
14203         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
14204         (inet_pton6): Use c_tolower rather than tolower.
14205         * modules/inet_pton (Depends-on): Add c-ctype.
14206
14207 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
14208
14209         * lib/poll.c (poll): Avoid division when timeout is 0, cache
14210         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
14211
14212 2008-08-06  Jim Meyering  <meyering@redhat.com>
14213
14214         * modules/inet_pton (License): Relicense under LGPLv2+.
14215
14216 2008-08-03  Bruno Haible  <bruno@clisp.org>
14217
14218         Additional non-aborting API for lock and tls.
14219         * lib/lock.h: Include <errno.h>.
14220         (glthread_lock_init): New macro/function.
14221         (gl_lock_init): Define as wrapper around glthread_lock_init.
14222         (glthread_lock_lock): New macro/function.
14223         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
14224         (glthread_lock_unlock): New macro/function.
14225         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
14226         (glthread_lock_destroy): New macro/function.
14227         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
14228         (glthread_rwlock_init): New macro/function.
14229         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
14230         (glthread_rwlock_rdlock): New macro/function.
14231         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
14232         (glthread_rwlock_wrlock): New macro/function.
14233         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
14234         (glthread_rwlock_unlock): New macro/function.
14235         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
14236         (glthread_rwlock_destroy): New macro/function.
14237         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
14238         (glthread_recursive_lock_init): New macro/function.
14239         (gl_recursive_lock_init): Define as wrapper around
14240         glthread_recursive_lock_init.
14241         (glthread_recursive_lock_lock): New macro/function.
14242         (gl_recursive_lock_lock): Define as wrapper around
14243         glthread_recursive_lock_lock.
14244         (glthread_recursive_lock_unlock): New macro/function.
14245         (gl_recursive_lock_unlock): Define as wrapper around
14246         glthread_recursive_lock_unlock.
14247         (glthread_recursive_lock_destroy): New macro/function.
14248         (gl_recursive_lock_destroy): Define as wrapper around
14249         glthread_recursive_lock_destroy.
14250         (glthread_once): New macro/function.
14251         (gl_once): Define as wrapper around glthread_once.
14252         Update function declarations.
14253         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
14254         glthread_rwlock_init. Return error code.
14255         (glthread_rwlock_rdlock_multithreaded): Renamed from
14256         glthread_rwlock_rdlock. Return error code.
14257         (glthread_rwlock_wrlock_multithreaded): Renamed from
14258         glthread_rwlock_wrlock. Return error code.
14259         (glthread_rwlock_unlock_multithreaded): Renamed from
14260         glthread_rwlock_unlock. Return error code.
14261         (glthread_rwlock_destroy_multithreaded): Renamed from
14262         glthread_rwlock_destroy. Return error code.
14263         (glthread_recursive_lock_init_multithreaded): Renamed from
14264         glthread_recursive_lock_init. Return error code.
14265         (glthread_recursive_lock_lock_multithreaded): Renamed from
14266         glthread_recursive_lock_lock. Return error code.
14267         (glthread_recursive_lock_unlock_multithreaded): Renamed from
14268         glthread_recursive_lock_unlock. Return error code.
14269         (glthread_recursive_lock_destroy_multithreaded): Renamed from
14270         glthread_recursive_lock_destroy. Return error code.
14271         (glthread_once_call): Make static.
14272         (glthread_once_multithreaded): Renamed from glthread_once.
14273         * lib/tls.h: Include <errno.h>.
14274         (glthread_tls_key_init): New macro/function.
14275         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
14276         (glthread_tls_set): New macro/function.
14277         (gl_tls_set): Define as wrapper around glthread_tls_set.
14278         (glthread_tls_key_destroy): New macro/function.
14279         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
14280         Update function declarations.
14281         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
14282         glthread_tls_get.
14283         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
14284
14285 2008-08-04  Eric Blake  <ebb9@byu.net>
14286
14287         gnumakefile: use space, not TAB, outside of targets
14288         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
14289
14290 2008-08-02  Jim Meyering  <meyering@redhat.com>
14291
14292         getdate.y: avoid locale-dependent date parsing failure
14293         In Turkish locales, getdate would fail to recognize keywords
14294         containing a lowercase "i".  The solution is not to rely on
14295         locale-sensitive case-conversion.
14296         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
14297         (lookup_word): Use c_toupper in place of toupper.
14298         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
14299         Reported by Vefa Bicakci <bicave@superonline.com> in
14300         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
14301         * modules/getdate (Depends-on): Add c-ctype.
14302
14303 2008-08-02  Bruno Haible  <bruno@clisp.org>
14304
14305         * gnulib-tool (func_import): When updating or creating a .gitignore
14306         file, prepend each added line with a slash, and ignore leading slashes
14307         from the existing lines.
14308         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
14309
14310 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14311
14312         Portability fix for GNU make 3.79.1.
14313         * top/GNUmakefile: Avoid 'else COND', which older GNU make
14314         versions do not understand.
14315
14316 2008-08-01  Bruno Haible  <bruno@clisp.org>
14317
14318         Work around bug of HP-UX 10.20 cc with -0.0 literal.
14319         * tests/test-isnanf.h (zero): New variable.
14320         (main): Avoid literal -0.0f.
14321         * tests/test-isnand.h (zero): New variable.
14322         (main): Avoid literal -0.0.
14323         * tests/test-isnanl.h (zero): New variable.
14324         (main): Avoid literal -0.0L.
14325         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
14326         (test_float, test_double, test_long_double): Avoid literals -0.0f,
14327         -0.0, -0.0L.
14328         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
14329         (test_signbitd): Avoid literal -0.0.
14330         (test_signbitl): Avoid literal -0.0L.
14331         * tests/test-ceilf1.c (zero): New variable.
14332         (main): Avoid literal -0.0f.
14333         * tests/test-ceill.c (zero): New variable.
14334         (main): Avoid literal -0.0L.
14335         * tests/test-floorf1.c (zero): New variable.
14336         (main): Avoid literal -0.0f.
14337         * tests/test-floorl.c (zero): New variable.
14338         (main): Avoid literal -0.0L.
14339         * tests/test-roundf1.c (zero): New variable.
14340         (main): Avoid literal -0.0f.
14341         * tests/test-round1.c (zero): New variable.
14342         (main): Avoid literal -0.0.
14343         * tests/test-roundl.c (zero): New variable.
14344         (main): Avoid literal -0.0L.
14345         * tests/test-truncf1.c (zero): New variable.
14346         (main): Avoid literal -0.0f.
14347         * tests/test-trunc1.c (zero): New variable.
14348         (main): Avoid literal -0.0.
14349         * tests/test-truncl.c (zero): New variable.
14350         (main): Avoid literal -0.0L.
14351         * tests/test-frexp.c (zero): New variable.
14352         (main): Avoid literal -0.0.
14353         * tests/test-frexpl.c (zero): New variable.
14354         (main): Avoid literal -0.0L.
14355         * tests/test-ldexpl.c (zero): New variable.
14356         (main): Avoid literal -0.0L.
14357         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
14358         (zerod, zerol): New variables.
14359         (test_function): Avoid literals -0.0, -0.0L.
14360         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
14361         (zerod, zerol): New variables.
14362         (test_function): Avoid literals -0.0, -0.0L.
14363         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
14364         (zerod, zerol): New variables.
14365         (test_function): Avoid literals -0.0, -0.0L.
14366         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
14367         (zerod, zerol): New variables.
14368         (test_function): Avoid literals -0.0, -0.0L.
14369         * tests/test-strtod.c (zero): New variable.
14370         (main): Avoid literal -0.0.
14371         Reported by Jonathan C. Patschke <jp@centtech.com>.
14372
14373 2008-07-31  Jim Meyering  <meyering@redhat.com>
14374
14375         sha256.h: correct definition of SHA224_DIGEST_SIZE
14376         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
14377         Reported by Paulie Pena IV <paulie4@gmail.com>.
14378         Define as 224 / 8, rather than as a literal.
14379         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
14380         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
14381         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
14382
14383 2008-07-31  Bruno Haible  <bruno@clisp.org>
14384
14385         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
14386         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
14387         Reported by Jonathan Patschke <jp@centtech.com>.
14388
14389 2008-07-31  Bruno Haible  <bruno@clisp.org>
14390
14391         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
14392         Reported by Paolo Bonzini <bonzini@gnu.org>.
14393
14394 2008-07-30  Eric Blake  <ebb9@byu.net>
14395
14396         test-strtod: allow compilation without -lm
14397         * tests/test-strtod.c (main): Avoid link dependence on fabs.
14398         Reported by Dennis Clarke <blastwave@gmail.com>.
14399
14400 2008-07-28  Jim Meyering  <meyering@redhat.com>
14401
14402         bootstrap: work also when there are no .po files in po/
14403         * build-aux/bootstrap (update_po_files): Complete the change
14404         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
14405
14406 2008-07-27  Jim Meyering  <meyering@redhat.com>
14407
14408         * users.txt: Add zile.
14409
14410 2008-07-26  Ben Pfaff  <blp@gnu.org>
14411
14412         Add missing dependencies on new m4/exponent[fdl].m4 files.
14413         * modules/isnanf-nolibm: Add m4/exponentf.m4.
14414         * modules/isnand-nolibm: Add m4/exponentd.m4.
14415         * modules/isnanl-nolibm: Add m4/exponentl.m4.
14416         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
14417         m4/isnan[fdl].m4, because the macros actually used moved.
14418         Reported by Jim Meyering.
14419
14420 2008-07-14  Ben Pfaff  <blp@gnu.org>
14421
14422         Add isinf module.
14423         * lib/isinf.c: New file.
14424         * lib/math.in.h: Define isinf macro if we have decided to replace
14425         it.
14426         * m4/isinf.m4: New file.
14427         * m4/math_h.m4: Initialize and substitute variables for isinf
14428         module.
14429         * modules/isinf: New file.
14430         * modules/isinf-tests: New file.
14431         * modules/math: Add substitutions for new module.
14432         * tests/test-isinf.c: New file.
14433         * doc/posix-functions/isinf.texi: Mention new module.
14434         * MODULES.html.sh: Mention new module.
14435
14436 2008-07-14  Ben Pfaff  <blp@gnu.org>
14437
14438         Factor out some macros for use by additional modules.
14439         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
14440         exponentf.m4.
14441         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
14442         exponentd.m4.
14443         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
14444         file exponentl.m4.
14445         * m4/exponentf.m4: New file.
14446         * m4/exponentd.m4: New file.
14447         * m4/exponentl.m4: New file.
14448         * modules/isnanf: Use new file m4/exponentf.m4.
14449         * modules/isnand: Use new file m4/exponentd.m4.
14450         * modules/isnanl: Use new file m4/exponentl.m4.
14451
14452 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
14453
14454         mktime.c: normalize tp->tm_isdst value to -1/0/1.
14455         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
14456         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
14457         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
14458
14459         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
14460         readlink on platforms without PATH_MAX.
14461
14462 2008-07-21  Eric Blake  <ebb9@byu.net>
14463
14464         Warn, not fail, on stale version.
14465         * top/GNUmakefile (_curr-ver): Tone down previous patch.
14466
14467         Don't allow installation with stale devel version number.
14468         * top/GNUmakefile (_is-install-target): New macro.
14469         (_curr-ver): Forbid installation with stale version number.
14470
14471 2008-07-20  Bruno Haible  <bruno@clisp.org>
14472
14473         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
14474         TESTS_ENVIRONMENT.
14475         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
14476
14477 2008-07-20  Bruno Haible  <bruno@clisp.org>
14478
14479         * lib/c-stack.h (c_stack_action): Add documentation.
14480         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
14481
14482 2008-07-20  Bruno Haible  <bruno@clisp.org>
14483
14484         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
14485         * modules/readlink (License): Likewise.
14486
14487 2008-07-17  Eric Blake  <ebb9@byu.net>
14488
14489         * modules/c-stack (Link): Fix typo.
14490
14491         Make c-stack use libsigsegv, when available.
14492         * modules/c-stack (Depends-on): Add libsigsegv.
14493         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
14494         needed.
14495         * lib/c-stack.c (SIGSTKSZ): Define fallback.
14496         (segv_handler, overflow_handler, c_stack_action)
14497         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
14498         implementation when libsigsegv is available, but only when using
14499         the library is necessary.
14500         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
14501         comment, explaining why XSI check fails on Linux.
14502         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
14503         * tests/test-c-stack2.sh: Tweak skip message.
14504         * NEWS: Document new link-time requirements.
14505
14506 2008-07-16  Eric Blake  <ebb9@byu.net>
14507
14508         c-stack: Expose false positives when not using libsigsegv.
14509         * modules/c-stack-tests (Files): Expand test.
14510         * tests/test-c-stack.c (main): Add means to conditionally trigger
14511         non-overflow SIGSEGV.
14512         * tests/test-c-stack2.sh: New file.
14513
14514 2008-07-14  Bruno Haible  <bruno@clisp.org>
14515
14516         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
14517         Reported by Eric Blake.
14518
14519 2008-07-14  Sam Steingold  <sds@gnu.org>
14520             Bruno Haible  <bruno@clisp.org>
14521
14522         New module libsigsegv.
14523         * modules/libsigsegv: New file.
14524         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
14525         modifications.
14526         * MODULES.html.sh (Signal handling): New section.
14527
14528 2008-07-14  Bruno Haible  <bruno@clisp.org>
14529
14530         * modules/unictype/ctype-* (Description): Add the word "function".
14531         Improves the resulting doc in MODULES.html.
14532
14533 2008-07-12  Ben Pfaff  <blp@gnu.org>
14534
14535         Add longlong module.
14536         * modules/longlong: New file.
14537
14538 2008-07-12  Bruno Haible  <bruno@clisp.org>
14539
14540         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
14541         to empty.
14542
14543 2008-07-10  Ben Pfaff  <blp@gnu.org>
14544
14545         Add isnan module.
14546         * doc/posix-functions/isnan.texi: Mention new module.
14547         * lib/math.in.h: Define isnan macro if we have decided to replace
14548         it.
14549         * m4/isnan.m4: New file.
14550         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
14551         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
14552         also.
14553         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
14554         redundancy.
14555         * m4/math_h.m4: Initialize and substitute variables for isnan
14556         module.
14557         * modules/isnan: New file.
14558         * modules/isnan-tests: New file.
14559         * modules/math: Add substitutions for new module.
14560         * tests/test-isnan.c: New file.
14561         * MODULES.html.sh: Mention new module.
14562
14563 2008-07-10  Ben Pfaff  <blp@gnu.org>
14564
14565         Add isnanf module.
14566         * lib/isnanf.m4: New file.
14567         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
14568         (gl_HAVE_ISNANF_IN_LIBM): New macro.
14569         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
14570         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
14571         * modules/isnanf: New file.
14572         * modules/isnanf-tests: New file.
14573         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
14574         files.
14575         * tests/test-isnanf-nolibm.c: factored most of its contents into
14576         new file tests/test-isnanf.h.
14577         * tests/test-isnanf.h: New file.
14578         * tests/test-isnanf.c: New file.
14579         * MODULES.html.sh: Mention new module.
14580         * doc/glibc-functions/isnanf.texi: Mention new module.
14581
14582 2008-07-10  Ben Pfaff  <blp@gnu.org>
14583
14584         Add isnand module.
14585         * lib/isnand.h: New file.
14586         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
14587         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
14588         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
14589         functionality also.
14590         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
14591         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
14592         (gl_HAVE_ISNAND_IN_LIBM): New macro.
14593         * modules/isnand: New file.
14594         * modules/isnand-tests: New file.
14595         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
14596         files.
14597         * tests/test-isnand-nolibm.c: factored most of its contents into
14598         new file tests/test-isnand.h.
14599         * tests/test-isnand.h: New file.
14600         * tests/test-isnand.c: New file.
14601         * MODULES.html.sh: Mention new module.
14602
14603 2008-07-10  Ben Pfaff  <blp@gnu.org>
14604
14605         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
14606         * lib/isnand.h: Rename lib/isnand-nolibm.h.
14607         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
14608         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
14609         * modules/isnanf-nolibm: Update references to renamed files.
14610         * modules/isnand-nolibm: Likewise.
14611         * modules/isnanf-nolibm-tests: Likewise.
14612         * modules/isnand-nolibm-tests: Likewise.
14613         * lib/frexp.c: Likewise.
14614         * lib/isfinite.c: Likewise.
14615         * lib/signbitd.c: Likewise.
14616         * lib/signbitf.c: Likewise.
14617         * lib/vasnprintf.c: Likewise.
14618         * tests/test-ceilf1.c: Likewise.
14619         * tests/test-ceilf2.c: Likewise.
14620         * tests/test-floorf1.c: Likewise.
14621         * tests/test-floorf2.c: Likewise.
14622         * tests/test-frexp.c: Likewise.
14623         * tests/test-round1.c: Likewise.
14624         * tests/test-round2.c: Likewise.
14625         * tests/test-roundf1.c: Likewise.
14626         * tests/test-strtod.c: Likewise.
14627         * tests/test-trunc1.c: Likewise.
14628         * tests/test-trunc2.c: Likewise.
14629         * tests/test-truncf1.c: Likewise.
14630         * tests/test-truncf2.c: Likewise.
14631         * NEWS: Mention the renamed header files.
14632
14633 2008-07-11  Jim Meyering  <meyering@redhat.com>
14634
14635         vc-list-files: make the last-resort awk code more portable
14636         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
14637         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
14638         does not support it.
14639
14640 2008-07-10  Eric Blake  <ebb9@byu.net>
14641
14642         Work with tar's bootstrap.
14643         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
14644         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
14645         an m4 comment.
14646
14647 2008-07-09  Jim Meyering  <meyering@redhat.com>
14648
14649         posix-shell.m4: fix typo that made this test malfunction
14650         * m4/posix-shell.m4: Remove capitalization in variable name.
14651
14652 2008-07-08  Bruno Haible  <bruno@clisp.org>
14653
14654         * m4/onceonly.m4: Update comments.
14655         Reported by Ben Pfaff <blp@cs.stanford.edu>.
14656
14657 2008-07-04  Jim Meyering  <meyering@redhat.com>
14658
14659         * users.txt: Add vc-dwim.
14660         (bison, coreutils): Use the gitweb URL.
14661
14662 2008-07-03  Jim Meyering  <meyering@redhat.com>
14663
14664         * users.txt: Add libffcall.  From Sam Steingold.
14665
14666 2008-07-03  Ondřej Vašík  <ovasik@redhat.com>
14667
14668         getdate.y: do not ignore TZ with relative day, month or year offset
14669         * lib/getdate.y (get_date): Move the tz-handling block to follow the
14670         relative-date-handling, since otherwise, the latter would clobber the
14671         sole output (an updated Start value) of the tz-handling block.
14672         * tests/test-getdate.c: Tests for the fix
14673
14674 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
14675
14676         Recognize 'foo_LIBRARIES += libgnu.a'.
14677         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
14678         makefile snippet has already specified an installation location,
14679         also using '+='.
14680
14681 2008-07-02  Ondřej Vašík  <ovasik@redhat.com>
14682
14683         getdate.y: factor out common actions
14684         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
14685         Use them in place of open-coded actions.
14686
14687 2008-07-01  Simon Josefsson  <simon@josefsson.org>
14688
14689         Add self-test for getdate module.
14690         * modules/getdate-tests: New file.
14691         * tests/test-getdate.c: New file.
14692
14693 2008-06-29  Bruno Haible  <bruno@clisp.org>
14694
14695         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
14696         .gitignore.
14697         Reported by Sylvain Beucler <beuc@beuc.net>.
14698
14699 2008-06-29  Bruno Haible  <bruno@clisp.org>
14700
14701         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
14702         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
14703
14704 2008-06-29  Bruno Haible  <bruno@clisp.org>
14705
14706         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
14707         EXTRA_DIST.
14708         Reported by Sylvain Beucler <beuc@beuc.net>.
14709
14710 2008-06-26  Jim Meyering  <meyering@redhat.com>
14711
14712         make several modules depend on the "open" module
14713         This provides slightly increased consistency when opening-for-write
14714         the name of a non-directory spelled with a trailing slash.
14715         * modules/chdir-safer: Likewise.
14716         * modules/chown: Likewise.
14717         * modules/clean-temp: Likewise.
14718         * modules/copy-file: Likewise.
14719         * modules/fchdir: Likewise.
14720         * modules/fcntl-safer: Likewise.
14721         * modules/pipe: Likewise.
14722         * modules/utime: Likewise.
14723         Prompted by Eric Blake and Bruno Haible.
14724
14725 2008-06-24  Andreas Schwab  <schwab@suse.de>
14726
14727         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
14728         literals can be used as initializers for global variables.
14729
14730 2008-06-23  Eric Blake  <ebb9@byu.net>
14731
14732         Make gnulib-cache.m4 easier to diff.
14733         * gnulib-tool (func_import): Allow newlines when reading cached
14734         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
14735
14736 2008-06-23  Bruno Haible  <bruno@clisp.org>
14737
14738         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
14739         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
14740         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
14741         m4/signalblocking.m4.
14742         (gl_PREREQ_SIGACTION): Don't invoke it.
14743         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
14744         gl_PREREQ_SIG_HANDLER_H.
14745         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
14746         Don't check for sigaction here.
14747
14748 2008-06-23  Bruno Haible  <bruno@clisp.org>
14749
14750         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
14751         (install_handlers): Don't set the SA_RESETHAND flag.
14752
14753 2008-06-23  Bruno Haible  <bruno@clisp.org>
14754
14755         * m4/sigaction.m4: Comment fixes.
14756         * lib/signal.in.h: Likewise.
14757
14758 2008-06-23  Eric Blake  <ebb9@byu.net>
14759
14760         Fix typo.
14761         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
14762
14763         Avoid SA_ namespace.
14764         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
14765         Reported by Ralf Wildenhues.
14766
14767         Avoid test failure due to SA_RESTORER.
14768         * tests/test-sigaction.c (SA_MASK): New macro.
14769         (main): Avoid failing due to extension flags being set.
14770         Reported by Jim Meyering.
14771
14772         Revert use of sig-handler.h in sigprocmask.c.
14773         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
14774         it requires the existence of struct sigaction.
14775         * lib/sigprocmask.c (handler_t): Restore typedef.
14776         (rpl_signal, old_handlers): Use local type.
14777
14778 2008-06-22  Bruno Haible  <bruno@clisp.org>
14779
14780         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
14781         conditionally.
14782         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
14783
14784 2008-06-22  Bruno Haible  <bruno@clisp.org>
14785
14786         * doc/posix-functions/siginterrupt.texi: Move note.
14787
14788         * lib/signal.in.h (SA_RESTART): New macro.
14789         * lib/sigaction.c: Update comment.
14790
14791         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
14792
14793         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
14794         (gl_PREREQ_SIGPROCMASK): Invoke it.
14795         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
14796
14797         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
14798
14799         * lib/sigprocmask.c: Update a comment.
14800
14801 2008-06-21  Eric Blake  <ebb9@byu.net>
14802
14803         Use sigaction module rather than signal().
14804         * modules/c-stack (Depends-on): Add sigaction.
14805         * modules/fatal-signal (Depends-on): Likewise.
14806         * modules/nanosleep (Depends-on): Likewise.
14807         * modules/sigprocmask (Files): Add sig-handler.h.
14808         * modules/sigaction (Files): Likewise.
14809         * lib/sig-handler.h (get_handler): New file, suggested by Paul
14810         Eggert.
14811         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
14812         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
14813         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
14814         (init_fatal_signals): Likewise.
14815         * lib/nanosleep.c (rpl_nanosleep): Likewise.
14816         (siginterrupt): Delete fallback.
14817         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
14818         instead.
14819         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
14820         siginterrupt.
14821
14822         New module sigaction, for mingw.
14823         * modules/sigaction: New module...
14824         * modules/sigaction-tests: ...and its test.
14825         * m4/sigaction.m4: New file.
14826         * lib/sigaction.c: Likewise.
14827         * tests/test-sigaction.c: Likewise.
14828         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
14829         * modules/signal (Makefile.am): Likewise.
14830         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
14831         needed.
14832         * doc/posix-headers/signal.texi (signal.h): Mention provided
14833         types.
14834         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
14835         that sigaction is preferable.
14836         * doc/posix-functions/sigaction.texi (sigaction): Mention new
14837         module.
14838         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
14839         sigaction.
14840
14841         Improve robustness of sigprocmask by overriding signal.
14842         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
14843         is in use.
14844         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
14845         (SIGKILL, SIGSTOP): Provide fallbacks.
14846         (rpl_signal): Implement.
14847         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
14848         signal can be called inside handlers.
14849
14850         Fix nanosleep module on mingw.
14851         * modules/nanosleep (Depends-on): Add sys_select.
14852         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
14853
14854         Fix licensing of sigprocmask.
14855         * modules/raise (License): Relicense as LGPL.
14856
14857 2008-06-21  Bruno Haible  <bruno@clisp.org>
14858
14859         * lib/propername.c (proper_name_utf8): Don't use the transliterated
14860         result if it contains question marks.
14861         Reported by Michael Geng <linux@michaelgeng.de>.
14862
14863 2008-06-19  Bruno Haible  <bruno@clisp.org>
14864
14865         Fix CVS-ism.
14866         * doc/gnulib.texi: Include updated-stamp.texi.
14867         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
14868         (updated-stamp.texi): New rule.
14869         (gnulib.info): Depend on it.
14870         * doc/.gitignore: Add updated-stamp.texi.
14871         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
14872
14873 2008-06-19  Bruno Haible  <bruno@clisp.org>
14874
14875         * doc/Makefile (gnulib.info): Update and simplify dependencies.
14876         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
14877
14878 2008-06-19  Eric Blake  <ebb9@byu.net>
14879
14880         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
14881         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
14882         Reported by Stepan Kasal.
14883
14884 2008-06-18  Bruno Haible  <bruno@clisp.org>
14885
14886         * lib/fatal-signal.c (init_fatal_signals): Add comment.
14887         Reported by Eric Blake.
14888
14889 2008-06-18  Eric Blake  <ebb9@byu.net>
14890
14891         Work around cygwin 1.5.25 strsignal bug.
14892         * tests/test-strsignal.c: Allow for const char *.
14893         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
14894
14895 2008-06-18  Simon Josefsson  <simon@josefsson.org>
14896
14897         * users.txt: Update URL to article and add author/date
14898         information.
14899
14900 2008-06-17  Bruno Haible  <bruno@clisp.org>
14901
14902         New macro gl_DISABLE_THREADS.
14903         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
14904         if the user did not pass --enable-threads or --disable-threads option.
14905         (gl_DISABLE_THREADS): New macro.
14906         Reported by Eric Blake <ebb9@byu.net>.
14907
14908 2008-06-17  Bruno Haible  <bruno@clisp.org>
14909
14910         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
14911         when the macro ignores it.
14912         Based on a patch by Eric Blake <ebb9@byu.net>.
14913
14914 2008-06-17  Bruno Haible  <bruno@clisp.org>
14915
14916         * modules/tls (License): Change to LGPLv2+.
14917         Reported by Eric Blake.
14918
14919 2008-06-17  Eric Blake  <ebb9@byu.net>
14920
14921         Simplify c-stack prerequisites.
14922         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
14923         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
14924         no longer requires <ucontext.h> to exist.  Optimize setrlimit
14925         check.
14926         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
14927         <sys/resource.h>.
14928
14929         Move c-stack test into testsuite.
14930         * modules/c-stack-tests: New file.
14931         * lib/c-stack.c [DEBUG]: Move test program...
14932         * tests/test-c-stack.c: ...into this new file.  Skip rather than
14933         fail test if sigaltstack is lacking.
14934         * tests/test-c-stack.sh: New driver file.
14935
14936 2008-06-16  Eric Blake  <ebb9@byu.net>
14937
14938         Use raise module consistently.
14939         * modules/fatal-signal (Depends-on): Add raise.
14940         * modules/sigprocmask (Depends-on): Likewise.
14941         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
14942         * lib/sigprocmask.c (sigprocmask): Likewise.
14943         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
14944         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
14945
14946         Fix compliance bug in sigpending.
14947         * lib/sigprocmask.c (sigpending): Return pending array via
14948         parameter, not return value.
14949
14950 2008-06-14  Eric Blake  <ebb9@byu.net>
14951
14952         Improve obstack-printf test code.
14953         * tests/test-obstack-printf.c (test_function): Fix comment, and
14954         simplify usage of obstack_* in macros.  Add a test for coverage.
14955         Reported by Bruno Haible.
14956
14957 2008-06-14  Bruno Haible  <bruno@clisp.org>
14958
14959         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
14960         array size as a constant, not as a const variable.
14961         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
14962         AC_USE_SYSTEM_EXTENSIONS.
14963         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
14964         Test whether the obstack_printf function actually exists.
14965         * modules/obstack-printf (Depends-on): Add extensions.
14966         (Include): Remove obstack.h.
14967         * modules/obstack-printf-posix (Depends-on): Add extensions.
14968         (Include): Remove obstack.h.
14969
14970 2008-06-13  Eric Blake  <ebb9@byu.net>
14971
14972         Add obstack-printf and obstack-printf-posix modules.
14973         * modules/obstack-printf: New file.
14974         * modules/obstack-printf-posix: Likewise.
14975         * MODULES.html.sh (Misc): Mention them.
14976         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
14977         Likewise.
14978         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
14979         Likewise.
14980         * modules/stdio (Makefile.am): Accomodate new modules.
14981         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
14982         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
14983         Declare.
14984         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
14985         functions.
14986         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
14987         (gl_REPLACE_OBSTACK_PRINTF): New macros
14988         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
14989         * tests/test-obstack-printf.c: New file.
14990         * modules/obstack-printf-tests: Likewise.
14991         * modules/obstack-printf-posix-tests: Likewise.
14992
14993 2008-06-11  Bruno Haible  <bruno@clisp.org>
14994
14995         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
14996         * lib/open.c: Include errno.h.
14997         (open): Fail when attempting to write to a file that has a trailing
14998         slash.
14999         * tests/test-open.c (main): Test against trailing slash bug.
15000         * doc/posix-functions/open.texi: Mention the trailing slash bug.
15001
15002 2008-06-10  Bruno Haible  <bruno@clisp.org>
15003
15004         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
15005         for $? to work inside the trap command, with various /bin/sh-s.
15006         * tests/test-vc-list-files-cvs.sh: Likewise.
15007
15008 2008-06-10  Bruno Haible  <bruno@clisp.org>
15009
15010         * lib/acl-internal.h: Don't include gettext.h here.
15011         * lib/set-mode-acl.c: Include gettext.h here.
15012         * lib/copy-acl.c: Likewise.
15013
15014 2008-06-10  Bruno Haible  <bruno@clisp.org>
15015
15016         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
15017         * lib/wait-process.c (wait_subprocess): Likewise.
15018         * lib/execute.h (execute): Add termsigp argument.
15019         * lib/execute.c (execute): Likewise.
15020         * lib/csharpcomp.c (compile_csharp_using_pnet,
15021         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
15022         * lib/csharpexec.c (execute_csharp_using_pnet,
15023         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
15024         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
15025         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
15026         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
15027         is_jikes_present): Update.
15028         * lib/javaexec.c (execute_java_class): Update.
15029         * lib/javaversion.c (execute_and_read_line): Update.
15030         * NEWS: Document the changes.
15031         Reported by Eric Blake.
15032
15033 2008-06-10  Eric Blake  <ebb9@byu.net>
15034
15035         Add missing include.
15036         * tests/test-strstr.c (includes): Add <signal.h>.
15037         * tests/test-strcasestr.c (includes): Likewise.
15038         * tests/test-memmem.c (includes): Likewise.
15039
15040 2008-06-10  Bruno Haible  <bruno@clisp.org>
15041
15042         * lib/wait-process.c (wait_subprocess): Add an assertion.
15043
15044 2008-06-10  Bruno Haible  <bruno@clisp.org>
15045
15046         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
15047
15048 2008-06-10  Bruno Haible  <bruno@clisp.org>
15049
15050         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
15051         using alarm().
15052         * tests/test-strcasestr.c (main): Likewise.
15053         * tests/test-strstr.c (main): Likewise.
15054
15055 2008-06-09  Bruno Haible  <bruno@clisp.org>
15056
15057         Work around the Solaris 10 ACE ACLs ABI change.
15058         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
15059         declare if ACL_NO_TRIVIAL is present.
15060         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
15061         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
15062         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
15063         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
15064         define if ACL_NO_TRIVIAL is present.
15065         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
15066         and use the current ABI.
15067         (file_has_acl): Use same #if condition as elsewhere.
15068         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
15069         in use, and use the current ABI.
15070         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
15071         Reported by Jim Meyering.
15072
15073 2008-06-09  Eric Blake  <ebb9@byu.net>
15074
15075         Work around environments that (stupidly) ignore SIGALRM.
15076         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
15077         before using alarm().
15078         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
15079         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
15080         Reported by Ian Beckwith <ianb@erislabs.net>.
15081
15082         Produce autobuild blurb earlier in log.
15083         * modules/autobuild (configure.ac-early): Move AB_INIT here.
15084
15085 2008-06-09  Jim Meyering  <meyering@redhat.com>
15086         and Ondřej Vašík  <ovasik@redhat.com>
15087
15088         utimens.c: correct kernel bug work-around
15089         Ondřej Vašík found that the invalid return value of 280 indicates
15090         failure, not success, and the kernel bug we're trying to work
15091         around affects not just the utimensat call, but also the fallback
15092         futimens call.
15093         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
15094         not success.
15095         [HAVE_FUTIMENS]: Use the same work-around, here.
15096
15097 2008-06-09  Jim Meyering  <meyering@redhat.com>
15098
15099         add more guards around definition of ACE_-related code
15100         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
15101         ALLOW and ACE_OWNER are also defined.
15102
15103 2008-06-08  Bruno Haible  <bruno@clisp.org>
15104
15105         * lib/acl-internal.h: Add me as co-author.
15106         * lib/file-has-acl.c: Likewise.
15107         * lib/set-mode-acl.c: Likewise.
15108         * lib/copy-acl.c: Likewise.
15109
15110 2008-06-08  Bruno Haible  <bruno@clisp.org>
15111
15112         Add support for AIX ACLs.
15113         * lib/acl-internal.h (acl_nontrivial): New declaration.
15114         * lib/file-has-acl.c (acl_nontrivial): New function.
15115         (file_has_acl): Add implementation using AIX 4 ACL API.
15116         * lib/set-mode-acl.c (qset_acl): Likewise.
15117         * lib/copy-acl.c (qcopy_acl): Likewise.
15118
15119 2008-06-08  Bruno Haible  <bruno@clisp.org>
15120
15121         Add support for HP-UX ACLs.
15122         * lib/acl-internal.h (acl_nontrivial): New declaration.
15123         * lib/file-has-acl.c (acl_nontrivial): New function.
15124         (file_has_acl): Add implementation using HP-UX 11 ACL API.
15125         * lib/set-mode-acl.c (qset_acl): Likewise.
15126         * lib/copy-acl.c (qcopy_acl): Likewise.
15127
15128 2008-06-08  Bruno Haible  <bruno@clisp.org>
15129
15130         Add support for Cygwin ACLs.
15131         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
15132         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
15133         the chmod_or_fchmod call.
15134         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
15135
15136 2008-06-08  Bruno Haible  <bruno@clisp.org>
15137
15138         Fix bug with setuid modes in Solaris 10+ code.
15139         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
15140         succeeded, when the mode contains some special bits.
15141
15142 2008-06-08  Bruno Haible  <bruno@clisp.org>
15143
15144         Add support for Solaris 7..10 ACLs.
15145         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
15146         declarations.
15147         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
15148         functions.
15149         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
15150         * lib/set-mode-acl.c (qset_acl): Likewise.
15151         * lib/copy-acl.c (qcopy_acl): Likewise.
15152
15153 2008-06-08  Bruno Haible  <bruno@clisp.org>
15154
15155         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
15156         declaration.
15157         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
15158         (acl_access_nontrivial): Remove MacOS X case.
15159         (file_has_acl): Use acl_extended_nontrivial.
15160         * lib/copy-acl.c (qcopy_acl): Likewise.
15161
15162 2008-06-08  Bruno Haible  <bruno@clisp.org>
15163
15164         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
15165
15166 2008-06-08  Jim Meyering  <meyering@redhat.com>
15167
15168         * modules/acl (Maintainer): Add Bruno Haible.
15169
15170 2008-06-07  Bruno Haible  <bruno@clisp.org>
15171
15172         Improve support for Tru64 ACLs.
15173         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
15174         ACL on OSF/1.
15175
15176 2008-06-07  Bruno Haible  <bruno@clisp.org>
15177
15178         Add support for MacOS X ACLs.
15179         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
15180         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
15181         * lib/set-mode-acl.c (qset_acl): Likewise.
15182         * lib/copy-acl.c (qcopy_acl): Likewise.
15183
15184 2008-06-07  Bruno Haible  <bruno@clisp.org>
15185
15186         Fix memory leak introduced on 2008-05-22.
15187         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
15188         use.
15189
15190 2008-06-07  Bruno Haible  <bruno@clisp.org>
15191
15192         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
15193         to construct an empty ACL.
15194
15195 2008-06-07  Bruno Haible  <bruno@clisp.org>
15196
15197         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
15198         precisely.
15199         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
15200
15201 2008-06-07  Bruno Haible  <bruno@clisp.org>
15202
15203         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
15204         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
15205
15206 2008-06-07  Bruno Haible  <bruno@clisp.org>
15207
15208         * doc/posix-functions/_setjmp.texi: Explain the use of this function
15209         regardless of POSIX.
15210         * doc/posix-functions/_longjmp.texi: Likewise.
15211         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
15212         SystemV platform in this case.
15213
15214 2008-06-06  Eric Blake  <ebb9@byu.net>
15215
15216         Document abort() bugs.
15217         * doc/posix-functions/abort.texi (abort): Mention anomalies.
15218
15219         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
15220         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
15221         sigsetjmp.
15222         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
15223         siglongjmp, but only as a macro.
15224         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
15225         is obsolete.
15226         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
15227
15228         Tweak documentation to cover cygwin argz bugs.
15229         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
15230         argz bug fix; no code change needed since no cygwin releases
15231         occurred between the last fix and the bug being tested.
15232         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
15233         module and recently fixed cygwin bugs.
15234         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
15235         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
15236         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
15237         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
15238         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
15239         Likewise.
15240         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
15241         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
15242         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
15243         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
15244         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
15245         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
15246         Likewise.
15247
15248         Avoid gcc warning on cygwin.
15249         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
15250         !ACL_NO_TRIVIAL]: Avoid unused variable.
15251
15252 2008-06-05  Eric Blake  <ebb9@byu.net>
15253
15254         Be tolerant of UNKNOWN version in gnulib-tool test dir.
15255         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
15256         git-version-gen fails to come up with a version.
15257         Reported by Simon Josefsson.
15258
15259 2008-06-05  Jim Meyering  <meyering@redhat.com>
15260             Paul Eggert  <eggert@cs.ucla.edu>
15261
15262         utimens.c: work around a probable Linux kernel bug
15263         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
15264         appears to be a kernel bug that causes utimensat to return 280
15265         instead of 0, indicating success.
15266
15267 2008-06-04  Bruno Haible  <bruno@clisp.org>
15268
15269         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
15270         2008-06-01 commit.
15271
15272 2008-06-04  Bruno Haible  <bruno@clisp.org>
15273
15274         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
15275         * lib/file-has-acl.c (acl_access_nontrivial): New function.
15276         (file_has_acl): Use it. Save errno afterwards.
15277         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
15278
15279 2008-06-03  Bruno Haible  <bruno@clisp.org>
15280
15281         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
15282         draft code. Simplify #ifs.
15283         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
15284         Put Solaris code after POSIX-draft code. Fix comments regarding
15285         Solaris 10, HP-UX. Mention Cygwin.
15286         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
15287
15288 2008-06-03  Eric Blake  <ebb9@byu.net>
15289
15290         Provide fallback for older kernels.
15291         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
15292         Provide runtime fallback if kernel lacks support.
15293         Reported by Mike Frysinger.
15294
15295 2008-06-02  Bruno Haible  <bruno@clisp.org>
15296
15297         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
15298         it exists.
15299
15300 2008-06-02  Bruno Haible  <bruno@clisp.org>
15301
15302         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
15303         * lib/copy-acl.c (qcopy_acl): Update comment.
15304
15305 2008-06-02  Bruno Haible  <bruno@clisp.org>
15306
15307         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
15308         like ACL APIs.
15309
15310 2008-06-02  Bruno Haible  <bruno@clisp.org>
15311
15312         * tests/test-file-has-acl.sh: Use different code for Cygwin.
15313         * tests/test-set-mode-acl.sh: Likewise.
15314         * tests/test-copy-acl.sh: Likewise.
15315         * tests/test-copy-file.sh: Likewise.
15316
15317 2008-06-02  Bruno Haible  <bruno@clisp.org>
15318
15319         * tests/test-file-has-acl.sh: Remove unused code.
15320
15321 2008-06-01  Bruno Haible  <bruno@clisp.org>
15322
15323         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
15324         (copy_acl): Just a wrapper around qcopy_acl that emits the error
15325         messages.
15326         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
15327
15328 2008-06-01  Bruno Haible  <bruno@clisp.org>
15329
15330         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
15331         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
15332         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
15333         APIs.
15334         * modules/acl-tests (configure.ac): Remove tests now contained in
15335         m4/acl.m4.
15336
15337 2008-06-02  Jim Meyering  <meyering@redhat.com>
15338
15339         announce-gen: use a better key-server host name
15340         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
15341         it may be more consistently reliable.  Suggested by Werner Koch
15342         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
15343
15344 2008-06-01  Bruno Haible  <bruno@clisp.org>
15345
15346         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
15347         Reported by Voroskoi Andras <voroskoi@gmail.com>.
15348
15349 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
15350
15351         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
15352
15353 2008-06-01  Bruno Haible  <bruno@clisp.org>
15354
15355         New ACL tests.
15356         * tests/test-file-has-acl.sh: New file.
15357         * tests/test-file-has-acl.c: New file.
15358         * tests/test-set-mode-acl.sh: New file.
15359         * tests/test-set-mode-acl.c: New file.
15360         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
15361         * tests/test-copy-acl.c: New file.
15362         * modules/acl-tests: New file, based on modules/copy-file-tests.
15363         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
15364         (Depends-on): Add acl-tests.
15365         (configure.ac): Remove checks.
15366         (Makefile.am): Don't create test-sameacls program here any more.
15367
15368 2008-06-01  Bruno Haible  <bruno@clisp.org>
15369
15370         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
15371         * tests/test-sameacls.c: Include progname.h.
15372         (main): Invoke set_program_name. Portability fixes for MacOS X,
15373         Solaris, HP-UX.
15374
15375 2008-06-01  Bruno Haible  <bruno@clisp.org>
15376
15377         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
15378         function.
15379         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
15380
15381 2008-06-01  Bruno Haible  <bruno@clisp.org>
15382
15383         * modules/rpmatch (Depends-on): Add strdup.
15384
15385 2008-06-01  Bruno Haible  <bruno@clisp.org>
15386
15387         * lib/pipe.c: Include unistd-safer.h.
15388         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
15389         * modules/pipe (Depends-on): Add unistd-safer.
15390
15391 2008-05-30  Simon Josefsson  <simon@josefsson.org>
15392
15393         * modules/autobuild (configure.ac): Call AB_INIT.
15394
15395 2008-05-30  Simon Josefsson  <simon@josefsson.org>
15396
15397         * tests/test-getaddrinfo.c: Don't print debug messages by default.
15398         Suggested by Bruno Haible <bruno@clisp.org>.
15399
15400 2008-05-30  Simon Josefsson  <simon@josefsson.org>
15401
15402         * tests/test-base64.c: Cast size_t to unsigned long when invoking
15403         printf.  Use %lu instead of %d.  Reported by Bruno Haible
15404         <bruno@clisp.org>.
15405
15406 2008-05-29  Eric Blake  <ebb9@byu.net>
15407
15408         Prefer new POSIX 200x interfaces over futimesat.
15409         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
15410         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
15411         when available.
15412         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
15413
15414 2008-05-28  Bruno Haible  <bruno@clisp.org>
15415
15416         * modules/stpcpy (License): Change to LGPLv2+.
15417         Requested by David Lutterkort <dlutter@redhat.com>.
15418
15419 2008-05-27  Bruno Haible  <bruno@clisp.org>
15420
15421         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
15422         current mingw.
15423         Reported by Jose E. Marchesi <jemarch@gnu.org>.
15424
15425 2008-05-27  Bruno Haible  <bruno@clisp.org>
15426
15427         * modules/iconv_open (Link): New section, from module 'iconv'.
15428         * modules/striconv (Link): Likewise.
15429         * modules/striconveh (Link): Likewise.
15430         * modules/xstriconv (Link): Likewise.
15431         * modules/unicodeio (Link): Likewise.
15432         * modules/propername (Link): Likewise.
15433         Reported by Jim Meyering.
15434
15435 2008-05-26  Jim Meyering  <meyering@redhat.com>
15436
15437         sha256: do not artificially restrict buffer length to be < 2^32
15438         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
15439         uint32_t to size_t.
15440         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
15441         to match.
15442
15443         avoid unaligned access errors, e.g., on sparc
15444         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
15445         direct access through a possibly-unaligned uint64* pointer.
15446         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
15447         direct access through a possibly-unaligned uint32* pointer.
15448         Prompted by this patch from Tom "spot" Callaway:
15449         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
15450
15451         sha512.c: fix typo in comment
15452         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
15453
15454 2008-05-25  Bruno Haible  <bruno@clisp.org>
15455
15456         * lib/set-mode-acl.c: Renamed from lib/acl.c.
15457         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
15458         (Makefile.am): Update lib_SOURCES.
15459
15460 2008-05-25  Bruno Haible  <bruno@clisp.org>
15461
15462         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
15463
15464 2008-05-25  Jim Meyering  <meyering@redhat.com>
15465
15466         useless-if-before-free: freed expr may have white-space differences
15467         * build-aux/useless-if-before-free: Recognize cases in which the
15468         freed expression differs from the tested one in embedded white
15469         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
15470         $1 was used, so we can't make any regexp shy.  Improved tests now
15471         detect this.
15472
15473         useless-if-before-free: accept white space in the expression.
15474         * build-aux/useless-if-before-free: For now, any white space
15475         in the expression must be identical in the free argument.
15476
15477         useless-if-before-free: efficiency tweak
15478         * build-aux/useless-if-before-free: Make the expression-matching
15479         regexp "shy".
15480         Make the *outer* regexp shy, not the expr-matching one.
15481
15482         update code-in-comment to accept cast of free arg
15483         * build-aux/useless-if-before-free: Update regexp.
15484
15485 2008-05-25  Bruno Haible  <bruno@clisp.org>
15486
15487         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
15488         * modules/copy-file-tests (Files, Makefile.am): Update.
15489         * tests/test-copy-file.c (func_test_copy): Update.
15490
15491 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
15492
15493         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
15494
15495 2008-05-23  Bruno Haible  <bruno@clisp.org>
15496
15497         Improve support for ACLs on OSF/1.
15498         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
15499         Remove fallback for unknown flavors of ACLs.
15500
15501 2008-05-22  Bruno Haible  <bruno@clisp.org>
15502
15503         Add support for ACLs on OSF/1.
15504         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
15505         replacements.
15506         (acl_free_text): New macro fallback.
15507         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
15508         acl_free.
15509         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
15510         acl_free_text function. Require AC_C_INLINE.
15511
15512 2008-05-22  Bruno Haible  <bruno@clisp.org>
15513
15514         Make copy_acl work on MacOS X 10.5.
15515         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
15516         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
15517         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
15518         If MODE_INSIDE_ACL, don't assume that every system has the same text
15519         representation for ACLs as FreeBSD.
15520         * lib/copy-acl.c (copy_acl): Add support for platforms with
15521         !MODE_INSIDE_ACL.
15522         * lib/file-has-acl.c (file_has_acl): Likewise.
15523         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
15524         FreeBSD, MacOS X, or IRIX, respectively.
15525
15526 2008-05-22  Bruno Haible  <bruno@clisp.org>
15527
15528         * lib/acl.h: Don't include <sys/acl.h>.
15529         (GETACLCNT): Move fallback to lib/acl-internal.h.
15530         * lib/acl-internal.h: Include <sys/acl.h> here.
15531         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
15532
15533 2008-05-22  Bruno Haible  <bruno@clisp.org>
15534
15535         Split off copy_acl function to separate file.
15536         * lib/copy-acl.c: New file, extracted from lib/acl.c.
15537         * lib/acl.c (copy_acl): Moved function to separate file.
15538         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
15539         * modules/acl (Files): Add lib/copy-acl.c.
15540         (Makefiles.am): Augment lib_SOURCES.
15541
15542 2008-05-22  Bruno Haible  <bruno@clisp.org>
15543
15544         * modules/copy-file-tests: New file.
15545         * tests/test-copy-file.sh: New file.
15546         * tests/test-copy-file.c: New file.
15547         * tests/test-copy-file-sameacls.c: New file.
15548
15549 2008-05-22  Eric Blake  <ebb9@byu.net>
15550
15551         Avoid gcc warning.
15552         * tests/test-memcmp.c (main): Pass NULL indirectly.
15553
15554 2008-05-21  Bruno Haible  <bruno@clisp.org>
15555
15556         Add reference doc about ACLs.
15557         * doc/acl-resources.txt: New file.
15558         * doc/acl-cygwin.txt: New file.
15559
15560 2008-05-21  Bruno Haible  <bruno@clisp.org>
15561
15562         Avoid one more warning from gcc.
15563         * lib/vasnprintf.c (IF_LINT): Update comments.
15564         (VASNPRINTF): Use it also for the 'prefix' array initializer.
15565
15566 2008-05-21  Jim Meyering  <meyering@redhat.com>
15567
15568         avoid a warning from gcc
15569         * lib/vasnprintf.c (IF_LINT): Define.
15570         (scale10_round_decimal_long_double):
15571         Use it to avoid a "may be used uninitialized" warning.
15572         (scale10_round_decimal_double): Likewise.
15573
15574 2008-05-21  Simon Josefsson  <simon@josefsson.org>
15575
15576         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
15577         declared.
15578
15579 2008-05-20  Bruno Haible  <bruno@clisp.org>
15580
15581         * tests/test-memcmp.c (main): Test also the sign of the result. Test
15582         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
15583
15584 2008-05-20  Simon Josefsson  <simon@josefsson.org>
15585
15586         * modules/memcmp-tests: New file.
15587         * tests/test-memcmp.c: New file.
15588
15589 2008-05-19  Bruno Haible  <bruno@clisp.org>
15590
15591         * modules/propername (Notice, configure.ac): Put quoted "..." into
15592         --keyword option.
15593         * lib/propername.h: Update comments accordingly.
15594         Reported by Eric Blake.
15595
15596 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
15597
15598         * modules/getpass-gnu (Depends-on): Add fseeko.
15599
15600 2008-05-19  Simon Josefsson  <simon@josefsson.org>
15601
15602         * modules/base64-tests: New file.
15603
15604 2008-05-19  Bo Borgerson <gigabo@gmail.com>
15605
15606         * lib/base64.c (base64_decode_ctx): If a decode context structure
15607         was passed in use it to ignore newlines.  If a context structure
15608         was _not_ passed in, continue to treat newlines as garbage (this
15609         is the historical behavior).  Formerly base64_decode.
15610         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
15611         takes a decode context structure.
15612         * lib/base64.h (base64_decode): Macro for four-argument calls.
15613         (base64_decode_alloc): Likewise.
15614         * lib/base64.c (base64_decode_ctx): If a decode context structure
15615         was passed in use it to ignore newlines.  If a context structure
15616         was _not_ passed in, continue to treat newlines as garbage (this
15617         is the historical behavior).  Formerly base64_decode.
15618         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
15619         takes a decode context structure.
15620         * lib/base64.h (base64_decode): Macro for four-argument calls.
15621         (base64_decode_alloc): Likewise.
15622
15623 2008-05-19  Jim Meyering  <meyering@redhat.com>
15624
15625         avoid a warning from gcc
15626         * lib/trim.c (IF_LINT): Define.
15627         (trim2): Use it to avoid a "may be used uninitialized" warning.
15628
15629         Fix doc typo.
15630         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
15631
15632 2008-05-19  Bruno Haible  <bruno@clisp.org>
15633
15634         * doc/glibc-functions/getpass.texi: Document limits of other
15635         implementations.
15636
15637 2008-05-19  Simon Josefsson  <simon@josefsson.org>
15638             Bruno Haible <bruno@clisp.org>
15639
15640         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
15641
15642 2008-05-18  Bruno Haible  <bruno@clisp.org>
15643
15644         * modules/propername: New file, from GNU gettext.
15645         * lib/propername.h: New file, from GNU gettext.
15646         * lib/propername.c: New file, from GNU gettext.
15647         * MODULES.html.sh (Internationalization functions): Add propername.
15648
15649 2008-05-16  Jim Meyering  <meyering@redhat.com>
15650             Bruno Haible  <bruno@clisp.org>
15651
15652         Avoid some warnings from "gcc -Wshadow".
15653         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
15654
15655 2008-05-15  Eric Blake  <ebb9@byu.net>
15656
15657         Extend previous patch to cygwin 1.7.0.
15658         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
15659         fast implementation in cygwin >= 1.7.0.
15660         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
15661         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
15662
15663 2008-05-15  Bruno Haible  <bruno@clisp.org>
15664
15665         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
15666         implementation in glibc >= 2.9.
15667         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
15668         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
15669
15670 2008-05-15  Bruno Haible  <bruno@clisp.org>
15671
15672         * MODULES.html.sh (Internationalization functions): Remove linebreak.
15673         (Unicode string functions): Add unilbrk/*.
15674         Reported by Karl Berry.
15675
15676 2008-05-15  Eric Blake  <ebb9@byu.net>
15677
15678         Fix violation of <stdbool.h> replacement in regex.
15679         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
15680         * lib/regexec.c (re_search_internal): Likewise.
15681         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
15682
15683 2008-05-15  Jim Meyering  <meyering@redhat.com>
15684
15685         avoid distracting test output when git or cvs is not found
15686         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
15687         * tests/test-vc-list-files-git.sh: Likewise.
15688
15689 2008-05-15  Eric Blake  <ebb9@byu.net>
15690
15691         Glibc finally accepted the memmem speedup code, bugzilla #5514.
15692         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
15693         glibc version.
15694         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
15695         * doc/posix-functions/strstr.texi (strstr): Likewise.
15696         * lib/str-two-way.h (MAX): Sychronize with glibc.
15697
15698 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
15699
15700         * lib/regcomp.c (optimize_utf8): Add a note on why we test
15701         opr.ctx_type.
15702         (calc_first): Initialize constraint field.
15703         (duplicate_node_closure): Use it instead of special casing ANCHORS.
15704         Fix grammar.
15705         (duplicate_node): Merge constraint field for all node types.
15706         (calc_eclosure_iter): Look at constraint field for all node types.
15707         * lib/regex_internal.c (create_cd_newstate): Don't look at
15708         opr.ctx_type.
15709
15710 2008-05-14  Bruno Haible  <bruno@clisp.org>
15711
15712         Help GCC to do better code generation.
15713         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
15714         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
15715         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
15716         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
15717         Declare with attribute 'malloc' if supported.
15718
15719 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
15720
15721         use "echo STR|wc -c" rather than unportable "expr length STR"
15722         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
15723         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
15724
15725 2008-05-14  Jim Meyering  <meyering@redhat.com>
15726
15727         use dd ibs=$n count=1 ... rather than less-portable head -c$n
15728         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
15729         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
15730         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
15731         via Collin Lasse.
15732
15733 2008-05-14  Eric Blake  <ebb9@byu.net>
15734
15735         Avoid quadratic growth in gl_LIBSOURCES.
15736         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
15737         Suggested by Bruno Haible.
15738
15739         Test xmemdup0.
15740         * modules/xmemdup0-tests: New file.
15741         * tests/test-xmemdup0.c: Likewise.
15742
15743 2008-05-13  Eric Blake  <ebb9@byu.net>
15744
15745         Split xmemdup0 into its own module.
15746         * modules/xmemdup0: New file.
15747         * lib/xmemdup0.h: Likewise.
15748         * lib/xmemdup0.c: Likewise.
15749         * MODULES.html.sh (Memory management functions): Add xmemdup0.
15750         * lib/xalloc.h (xmemdup0): Remove.
15751         * lib/xmalloc.c (xmemdup0): Likewise.
15752
15753 2008-05-13  Eric Blake  <ebb9@byu.net>
15754             Bruno Haible  <bruno@clisp.org>
15755
15756         Reduce number of forks required during autoconf.
15757         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
15758         and gl_LIBSOURCES_DIR.
15759         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
15760         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
15761         m4_syscmd per file.
15762         <m4_foreach_w>: Move...
15763         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
15764
15765 2008-05-13  Eric Blake  <ebb9@byu.net>
15766
15767         * gnulib-tool: Fix various comment typos.
15768
15769 2008-05-12  Bruno Haible  <bruno@clisp.org>
15770
15771         Tailor the linebreaking algorithm.
15772         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
15773
15774 2008-05-12  Bruno Haible  <bruno@clisp.org>
15775
15776         Update to Unicode 5.0.0.
15777         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
15778         LBP_JV, LBP_JT. Redistribute values.
15779         (unilbrk_table): Change size.
15780         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
15781         Unicode TR#14 rev. 22.
15782         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
15783         LBP_JV, LBP_JT. Redistribute values.
15784         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
15785         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
15786         Update.
15787         * lib/unilbrk/lbrkprop1.h: Regenerated.
15788         * lib/unilbrk/lbrkprop2.h: Regenerated.
15789         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
15790         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
15791         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
15792         Likewise.
15793         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
15794         Likewise.
15795         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
15796         result.
15797         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
15798         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
15799         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
15800         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
15801         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
15802         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
15803
15804 2008-05-11  Bruno Haible  <bruno@clisp.org>
15805
15806         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
15807
15808 2008-05-11  Bruno Haible  <bruno@clisp.org>
15809
15810         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
15811         * modules/unilbrk/gen-lbrk: New file.
15812
15813 2008-05-11  Bruno Haible  <bruno@clisp.org>
15814
15815         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
15816         * m4/sha512.m4 (gl_SHA512): Likewise.
15817
15818 2008-05-11  Jim Meyering  <meyering@redhat.com>
15819
15820         New modules: crypto/sha256, crypto/sha512 (from coreutils)
15821         * modules/crypto/sha256: New file.
15822         * modules/crypto/sha512: Likewise.
15823         * lib/sha256.c: Likewise.
15824         * lib/sha256.h: Likewise.
15825         * lib/sha512.c: Likewise.
15826         * lib/sha512.h: Likewise.
15827         * lib/u64.h: Likewise.
15828         * m4/sha256.m4: Likewise.
15829         * m4/sha512.m4: Likewise.
15830         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
15831
15832 2008-05-10  Bruno Haible  <bruno@clisp.org>
15833
15834         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
15835         (Input/Output <stdio.h>): Add xprintf.
15836         (Signal handling <signal.h>): Add strsignal.
15837         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
15838         (Core language properties): Add func.
15839         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
15840         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
15841         strings.
15842         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
15843         (Input/output): New section.
15844         (File system functions): Add openat-die, stat-macros.
15845         (Networking functions): Add sockets.
15846         (Unicode string functions): Add unictype/*.
15847         (Support for building libraries and executables): Add gperf.
15848         (Support for building documentation): Add agpl-3.0.
15849         (Misc): Add nocrash.
15850
15851 2008-05-10  Bruno Haible  <bruno@clisp.org>
15852
15853         * modules/unictype/gen-ctype: New file.
15854
15855 2008-05-10  Jim Meyering  <meyering@redhat.com>
15856
15857         Make chdir-safer.c more efficient on a system with no symlinks.
15858         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
15859         also if ELOOP is zero.  Suggested by Bruno Haible.
15860
15861         Make chdir-safer.c slightly safer.
15862         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
15863         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
15864
15865         Avoid compile failure on systems without ELOOP (like mingw).
15866         * lib/chdir-safer.c (ELOOP): Define if not already defined.
15867         Reported by Bruno Haible.
15868
15869 2008-05-10  Bruno Haible  <bruno@clisp.org>
15870
15871         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
15872         (is_utf8_encoding): Use a case-insensitive comparison.
15873         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
15874         streq.
15875
15876 2008-05-10  Bruno Haible  <bruno@clisp.org>
15877
15878         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
15879         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
15880         * lib/unilbrk/ulc-common.h (iconv_string_length,
15881         iconv_string_keeping_offsets): Remove declarations.
15882         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
15883         Don't include <iconv.h>, streq.h, xsize.h.
15884         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
15885         conversion.
15886         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
15887         <iconv.h>, streq.h, xsize.h.
15888         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
15889         conversion.
15890         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
15891         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
15892         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
15893         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
15894
15895 2008-05-10  Bruno Haible  <bruno@clisp.org>
15896
15897         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
15898         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
15899
15900         * modules/unilbrk/u32-width-linebreaks-tests: New file.
15901         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
15902
15903         * modules/unilbrk/u16-width-linebreaks-tests: New file.
15904         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
15905
15906         * modules/unilbrk/u8-width-linebreaks-tests: New file.
15907         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
15908
15909         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
15910         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
15911
15912         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
15913         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
15914
15915         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
15916         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
15917
15918         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
15919         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
15920
15921 2008-05-10  Bruno Haible  <bruno@clisp.org>
15922
15923         Split up 'linebreak' module.
15924         * lib/unilbrk.h: New file, based on lib/linebreak.h.
15925         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
15926         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
15927         modifications.
15928         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
15929         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
15930         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
15931         lib/linebreak.c.
15932         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
15933         lib/linebreak.c.
15934         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
15935         lib/linebreak.c.
15936         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
15937         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
15938         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
15939         lib/linebreak.c.
15940         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
15941         lib/linebreak.c.
15942         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
15943         lib/linebreak.c.
15944         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
15945         lib/linebreak.c.
15946         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
15947         lib/linebreak.c.
15948         * modules/unilbrk/base: New file.
15949         * modules/unilbrk/tables: New file.
15950         * modules/unilbrk/u8-possible-linebreaks: New file.
15951         * modules/unilbrk/u16-possible-linebreaks: New file.
15952         * modules/unilbrk/u32-possible-linebreaks: New file.
15953         * modules/unilbrk/ulc-common: New file.
15954         * modules/unilbrk/ulc-possible-linebreaks: New file.
15955         * modules/unilbrk/u8-width-linebreaks: New file.
15956         * modules/unilbrk/u16-width-linebreaks: New file.
15957         * modules/unilbrk/u32-width-linebreaks: New file.
15958         * modules/unilbrk/ulc-width-linebreaks: New file.
15959         * lib/linebreak.h: Remove file.
15960         * lib/linebreak.c: Remove file.
15961         * m4/linebreak.m4: Remove file.
15962         * modules/linebreak: Remove file.
15963         * NEWS: Mention the changes.
15964
15965 2008-05-09  Eric Blake  <ebb9@byu.net>
15966
15967         Add xmemdup0.
15968         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
15969         implementation.
15970         * lib/xmalloc.c (xmemdup0): New C implementation.
15971
15972 2008-05-08  Bruno Haible  <bruno@clisp.org>
15973
15974         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
15975
15976 2008-05-07  Eric Blake  <ebb9@byu.net>
15977
15978         Support cross-compilation of <wctype.h>.
15979         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
15980         AC_CACHE_CHECK.
15981
15982 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
15983
15984         * build-aux/vc-list-files: Add support for bzr.
15985
15986 2008-05-03  Jim Meyering  <meyering@redhat.com>
15987
15988         avoid failed assertion with tight malloc
15989         * tests/test-getndelim2.c: Correct an off-by-one assertion.
15990
15991 2008-05-03  Simon Josefsson  <simon@josefsson.org>
15992
15993         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
15994         are needed from arpa/inet.h.
15995         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
15996         Reported by Bruno Haible.
15997
15998 2008-05-02  Jim Meyering  <meyering@redhat.com>
15999
16000         avoid compilation error on FreeBSD 6
16001         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
16002
16003 2008-05-01  Jim Meyering  <meyering@redhat.com>
16004
16005         useless-if-before-free: correct --help's exit status description
16006         * build-aux/useless-if-before-free (usage): Like grep, exit 0
16007         for one or more matches, etc.  Reported by Bruno Haible.
16008
16009         vc-list-files: make the stand-alone gnulib test work
16010         * modules/vc-list-files-tests (configure.ac):
16011         Define and AC_SUBST abs_aux_dir.
16012         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
16013         $(abs_top_srcdir) to each script and having each of them
16014         duplicate the work of setting PATH, set PATH here, using
16015         the new variable, abs_aux_dir instead.
16016         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
16017         * tests/test-vc-list-files-git.sh: Likewise.
16018         Reported by Bruno Haible.
16019
16020 2008-05-01  Bruno Haible  <bruno@clisp.org>
16021
16022         * lib/getndelim2.c (getndelim2): Fix newsize computation during
16023         reallocation. Rename 'done' to 'found_delimiter'.
16024
16025 2008-05-01  Jim Meyering  <meyering@redhat.com>
16026
16027         vc-list-files: accommodate /bin/sh like the one from Solaris 10
16028         * build-aux/vc-list-files: Use `...`, not $(...).
16029
16030 2008-04-30  Jim Meyering  <meyering@redhat.com>
16031
16032         add tests for vc-list-files
16033         * modules/vc-list-files-tests: New module.
16034         * tests/test-vc-list-files-cvs.sh: New file.
16035         * tests/test-vc-list-files-git.sh: New file.
16036
16037         avoid a warning from gcc
16038         * lib/getndelim2.c (IF_LINT): Define.
16039         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
16040
16041         vc-list-files: work properly with build-aux/cvsu, too
16042         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
16043         to all cvs-based clauses.
16044
16045         vc-list-files: work properly in the CVS+awk case, too
16046         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
16047
16048         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
16049         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
16050         take more than one file argument, so .  Add quotes, just in case $dir
16051         ever contains a shell meta-character.  Prompted by Soren Hansen in
16052         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
16053
16054 2008-04-29  Eric Blake  <ebb9@byu.net>
16055
16056         Optimize getndelim2 to use block operations when possible.
16057         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
16058         freadseek, and memchr2.
16059         * lib/getndelim2.c (getndelim2): Use them for block reads.
16060
16061 2008-04-29  Bruno Haible  <bruno@clisp.org>
16062
16063         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
16064         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
16065         * modules/inet_ntop (Depends-on): Add extensions.
16066         * modules/inet_pton (Depends-on): Likewise.
16067         Reported by Simon Josefsson.
16068
16069 2008-04-29  Jim Meyering  <meyering@redhat.com>
16070
16071         When the is more than one match in a block, match all of them.
16072         * build-aux/useless-if-before-free: Iterate through each block
16073         until there are no more matches.
16074
16075         Fix broken useless-if-before-free script.
16076         * build-aux/useless-if-before-free: Fix typo: missing "?" after
16077         the expression to match cast of argument to free-like function.
16078
16079 2008-04-29  Eric Blake  <ebb9@byu.net>
16080
16081         Use new header.
16082         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
16083
16084 2008-04-29  Jim Meyering  <meyering@redhat.com>
16085
16086         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
16087         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
16088         by gnulib to exist and to declare e.g., inet_ntop.
16089         Don't include "inet_ntop.h", now removed.
16090
16091         * m4/arpa_inet_h.m4: Remove trailing blanks.
16092
16093 2008-04-29  Eric Blake  <ebb9@byu.net>
16094
16095         Silence valgrind on safe reads beyond potential array bounds.
16096         * lib/rawmemchr.valgrind: New file.
16097         * lib/strchrnul.valgrind: Likewise.
16098         * modules/rawmemchr (Files): Distribute new file.
16099         * modules/strchrnul (Files): Likewise.
16100         Suggested by Bruno Haible.
16101
16102 2008-04-29  Bruno Haible  <bruno@clisp.org>
16103
16104         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
16105         (inet_ntop, inet_pton): Change portability warning's wording.
16106         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
16107         Invoke gl_CHECK_NEXT_HEADERS.
16108         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
16109         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
16110         set ARPA_INET_H.
16111         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
16112         * modules/arpa_inet (Description): No longer only for systems that
16113         lack it.
16114         (Depends-on): Add include_next.
16115         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
16116         HAVE_ARPA_INET_H.
16117
16118 2008-04-29  Jim Meyering  <meyering@redhat.com>
16119
16120         * modules/mkdir (License): Re-license as LGPLv2+.
16121
16122 2008-04-29  Bruno Haible  <bruno@clisp.org>
16123
16124         * modules/rawmemchr (Maintainer): Set to Eric.
16125         * modules/strchrnul (Maintainer): Likewise.
16126
16127 2008-04-29  Simon Josefsson  <simon@josefsson.org>
16128
16129         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
16130         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
16131
16132         * modules/arpa_inet (arpa/inet.h): Use them.
16133
16134 2008-04-28  Eric Blake  <ebb9@byu.net>
16135
16136         Test getndelim2.
16137         * modules/getndelim2-tests: New file.
16138         * tests/test-getndelim2.c: Likewise.
16139         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
16140         stream.
16141         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
16142
16143         * MODULES.html.sh: Document new module.
16144
16145 2008-04-20  Bruno Haible  <bruno@clisp.org>
16146
16147         * lib/c-stack.c (die): Use raise.
16148         * modules/c-stack (Depends-on): Add raise.
16149
16150 2008-04-28  Bruno Haible  <bruno@clisp.org>
16151
16152         Expect rpmatch to be declared.
16153         * lib/yesno.c (rpmatch): Remove declaration.
16154
16155         Declare rpmatch.
16156         * lib/stdlib.in.h (rpmatch): New declaration.
16157         * lib/rpmatch.c: Include <stdlib.h> first.
16158         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
16159         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
16160         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
16161         HAVE_RPMATCH.
16162         * modules/rpmatch (Depends-on): Add stdlib, extensions.
16163         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
16164         (Include): Set to <stdlib.h>.
16165         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
16166         HAVE_RPMATCH.
16167         * NEWS: Document the change.
16168
16169 2008-04-28  Bruno Haible  <bruno@clisp.org>
16170
16171         Change rpmatch to use nl_langinfo when appropriate.
16172         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
16173         (N_): New macro.
16174         (localized_pattern): New function/macro.
16175         (try): Remove match, nomatch arguments. Copy the pattern into safe
16176         memory before caching it.
16177         (rpmatch): Use localized_pattern. Add translator comments.
16178         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
16179         Suggested by Eric Blake.
16180         * modules/rpmatch (Depends-on): Add stdbool.
16181
16182 2008-04-28  Eric Blake  <ebb9@byu.net>
16183
16184         Add rawmemchr module, matching glibc.
16185         * modules/string (Makefile.am): New indicator.
16186         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
16187         * lib/string.in.h (rawmemchr): Declare when appropriate.
16188         * modules/rawmemchr: New file.
16189         * m4/rawmemchr.m4: Likewise.
16190         * lib/rawmemchr.c: Likewise.
16191         * modules/rawmemchr-tests: Likewise.
16192         * tests/test-rawmemchr.c: Likewise.
16193         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
16194         module.
16195         * modules/strchrnul (Depends-on): Add rawmemchr.
16196         * lib/strchrnul.c (strchrnul): Optimize a corner case.
16197
16198         Whitespace cleanup.
16199         * tests/test-strchrnul.c: Reindent.
16200         * lib/strchrnul.c: Likewise.
16201
16202         Optimize and test strchrnul.
16203         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
16204         * modules/strchrnul-tests: New file.
16205         * tests/test-strchrnul.c: Likewise.
16206
16207         Remove intprops dependency.
16208         * modules/memchr (Depends-on): Remove intprops.
16209         * modules/memrchr (Depends-on): Likewise.
16210         * modules/memchr2 (Depends-on): Likewise.
16211         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
16212         * lib/memrchr.c (__memrchr): Likewise.
16213         * lib/memrchr2.c (memchr2): Likewise.
16214         Reported by Simon Josefsson.
16215
16216 2008-04-28  Simon Josefsson  <simon@josefsson.org>
16217
16218         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
16219         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16220
16221 2008-04-28  Simon Josefsson  <simon@josefsson.org>
16222
16223         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
16224
16225         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
16226
16227         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
16228
16229         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
16230         declarations.
16231         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
16232
16233         * m4/inet_pton.m4: Don't check for header files.
16234
16235         * m4/inet_ntop.m4: Don't check for header files.
16236
16237 2008-04-28  Simon Josefsson  <simon@josefsson.org>
16238
16239         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
16240         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
16241         trigger for cygwin).
16242         Reported by Bruno Haible  <bruno@clisp.org>.
16243
16244 2008-04-28  Bruno Haible  <bruno@clisp.org>
16245
16246         * doc/posix-functions/strdup.texi: Mention mingw problem.
16247
16248 2008-04-27  Bruno Haible  <bruno@clisp.org>
16249
16250         * modules/stat-time-tests (Depends-on): Add sleep.
16251         * tests/test-stat-time.c (force_unlink): New function.
16252         (cleanup): Use it.
16253         (test_mtime): Remove the ctime related tests.
16254         (test_ctime): New function, containing the ctime related tests.
16255         (main): Call test_ctime, except on native Windows platforms.
16256
16257 2008-04-27  Bruno Haible  <bruno@clisp.org>
16258
16259         * lib/rpmatch.c (rpmatch): Add some comments.
16260         Reported by James Youngman <jay@gnu.org>.
16261
16262 2008-04-27  Bruno Haible  <bruno@clisp.org>
16263
16264         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
16265         quiet NaNs.
16266
16267 2008-04-27  Bruno Haible  <bruno@clisp.org>
16268
16269         Make test-yesno.sh work on mingw.
16270         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
16271         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
16272         (main): Set stdin to binary mode.
16273         * modules/yesno-tests (Depends-on): Add binary-io.
16274
16275 2008-04-27  Bruno Haible  <bruno@clisp.org>
16276
16277         Fix 'isfinite' on x86, x86_64, ia64 platforms.
16278         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
16279         argument that lie outside the IEEE 854 domain.
16280         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
16281         (gl_ISFINITE): Use it.
16282         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
16283
16284 2008-04-27  Bruno Haible  <bruno@clisp.org>
16285
16286         Allow local renaming in config.h.
16287         * lib/memrchr.c (memrchr): Don't undefine outside libc.
16288
16289 2008-04-27  Bruno Haible  <bruno@clisp.org>
16290
16291         * lib/memchr.c (__memchr): Change type of 'i'.
16292         * lib/memchr2.c (memchr2): Likewise.
16293
16294 2008-04-26  Eric Blake  <ebb9@byu.net>
16295         and Bruno Haible  <bruno@clisp.org>
16296
16297         Optimize and test memrchr.
16298         * modules/memrchr (Depends-on): Add intprops.
16299         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
16300         * modules/memrchr-tests: New file.
16301         * tests/test-memrchr.c: New file.
16302
16303 2008-04-26  Bruno Haible  <bruno@clisp.org>
16304
16305         Add tentative support for DragonFly BSD.
16306         * lib/stdio-impl.h: Add macros for DragonFly BSD.
16307         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
16308         fp.
16309         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
16310         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
16311         * lib/fpurge.c (fpurge): Likewise.
16312         * lib/freadable.c (freaadable): Likewise.
16313         * lib/freadahead.c (freadahead): Likewise.
16314         * lib/freading.c (freading): Likewise.
16315         * lib/freadptr.c (freadptr): Likewise.
16316         * lib/freadseek.c (freadptrinc): Likewise.
16317         * lib/fseeko.c (fseeko): Likewise.
16318         * lib/fseterr.c (fseterr): Likewise.
16319         * lib/fwritable.c (fwritable): Likewise.
16320         * lib/fwriting.c (fwriting): Likewise.
16321
16322 2008-04-26  Bruno Haible  <bruno@clisp.org>
16323
16324         * lib/stdio-impl.h: New file.
16325         * lib/fbufmode.c: Include stdio-impl.h.
16326         (fbufmode): Use fp_, remove redundant #defines.
16327         * lib/fflush.c: Include stdio-impl.h.
16328         (clear_ungetc_buffer): Remove redundant #defines.
16329         * lib/fpurge.c: Include stdio-impl.h.
16330         (fpurge): Remove redundant #defines.
16331         * lib/freadable.c: Include stdio-impl.h.
16332         (freadable): Remove redundant #defines.
16333         * lib/freadahead.c: Include stdio-impl.h.
16334         (freadahead): Remove redundant #defines.
16335         * lib/freading.c: Include stdio-impl.h.
16336         (freading): Remove redundant #defines.
16337         * lib/freadptr.c: Include stdio-impl.h.
16338         (freadptr): Remove redundant #defines.
16339         * lib/freadseek.c: Include stdio-impl.h.
16340         (freadptrinc): Remove redundant #defines.
16341         * lib/fseeko.c: Include stdio-impl.h.
16342         (rpl_fseeko): Remove redundant #defines.
16343         * lib/fseterr.c: Include stdio-impl.h.
16344         (fseterr): Remove redundant #defines.
16345         * lib/fwritable.c: Include stdio-impl.h.
16346         (fwritable: Remove redundant #defines.
16347         * lib/fwriting.c: Include stdio-impl.h.
16348         (fwriting): Remove redundant #defines.
16349         * modules/fbufmode (Files): Add lib/stdio-impl.h.
16350         * modules/fflush (Files): Likewise.
16351         * modules/fpurge (Files): Likewise.
16352         * modules/freadable (Files): Likewise.
16353         * modules/freadahead (Files): Likewise.
16354         * modules/freading (Files): Likewise.
16355         * modules/freadptr (Files): Likewise.
16356         * modules/freadseek (Files): Likewise.
16357         * modules/fseeko (Files): Likewise.
16358         * modules/fseterr (Files): Likewise.
16359         * modules/fwritable (Files): Likewise.
16360         * modules/fwriting (Files): Likewise.
16361
16362 2008-04-26  Bruno Haible  <bruno@clisp.org>
16363
16364         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
16365         restore_seek_optimization, update_fpos_cache): New functions, extracted
16366         from rpl_fflush.
16367         (rpl_fflush): Use them.
16368         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
16369         (gl_REPLACE_FFLUSH): Use it.
16370
16371 2008-04-26  Bruno Haible  <bruno@clisp.org>
16372
16373         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
16374         on Solaris.
16375         * tests/test-xstrtoimax.sh: Likewise.
16376         * tests/test-xstrtoumax.sh: Likewise.
16377         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
16378
16379 2008-04-26  Bruno Haible  <bruno@clisp.org>
16380
16381         * modules/memchr-tests: New file.
16382         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
16383
16384 2008-04-26  Eric Blake  <ebb9@byu.net>
16385             Bruno Haible  <bruno@clisp.org>
16386
16387         * lib/memchr.c: Include intprops.h.
16388         (__memchr): Optimize parallel detection of matching bytes. Rename local
16389         variables. Add explanatory comments.
16390
16391 2008-04-26  Bruno Haible  <bruno@clisp.org>
16392
16393         Fix module 'memchr', broken since 2000-10-28.
16394         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
16395
16396 2008-04-26  Bruno Haible  <bruno@clisp.org>
16397
16398         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
16399         comments.
16400
16401 2008-04-25  Eric Blake  <ebb9@byu.net>
16402
16403         Use native fstatat on cygwin 1.7.0.
16404         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
16405         first.
16406
16407 2008-04-23  Eric Blake  <ebb9@byu.net>
16408
16409         Improve memchr2 performance.
16410         * lib/memchr2.c (memchr2): Further optimize parallel detection of
16411         NUL bytes.
16412         * modules/memchr2 (Depends-on): Use intprops.h.
16413
16414 2008-04-23  Simon Josefsson  <simon@josefsson.org>
16415
16416         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
16417         an inline function instead of a CPP macro.  Patch by Ben Pfaff
16418         <blp@cs.stanford.edu>.
16419
16420 2008-04-23  Simon Josefsson  <simon@josefsson.org>
16421
16422         * lib/arpa_inet.in.h: New file.
16423
16424         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
16425         (Makefile.am): Sed in substitute header file.
16426
16427         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
16428         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
16429
16430         * modules/inet_ntop (configure.ac): Use
16431         gl_ARPA_INET_MODULE_INDICATOR.
16432
16433         * modules/inet_pton (configure.ac): Use
16434         gl_ARPA_INET_MODULE_INDICATOR.
16435
16436 2008-04-22  Jim Meyering  <meyering@redhat.com>
16437
16438         * modules/verify (License): Re-license as LGPLv2+.
16439
16440 2008-04-22  Simon Josefsson  <simon@josefsson.org>
16441
16442         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
16443         parameter to void* as per POSIX standard (MinGW uses char*).
16444
16445 2008-04-21  Bruno Haible  <bruno@clisp.org>
16446
16447         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
16448         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
16449         Define to replacements if REPLACE_ISWCNTRL is 1.
16450         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
16451         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
16452         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
16453         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
16454         what it fixes.
16455         * doc/posix-functions/iswalpha.texi: Likewise.
16456         * doc/posix-functions/iswblank.texi: Likewise.
16457         * doc/posix-functions/iswcntrl.texi: Likewise.
16458         * doc/posix-functions/iswdigit.texi: Likewise.
16459         * doc/posix-functions/iswgraph.texi: Likewise.
16460         * doc/posix-functions/iswlower.texi: Likewise.
16461         * doc/posix-functions/iswprint.texi: Likewise.
16462         * doc/posix-functions/iswpunct.texi: Likewise.
16463         * doc/posix-functions/iswspace.texi: Likewise.
16464         * doc/posix-functions/iswupper.texi: Likewise.
16465         * doc/posix-functions/iswxdigit.texi: Likewise.
16466         Reported by Alain Guibert.
16467
16468 2008-04-21  Bruno Haible  <bruno@clisp.org>
16469
16470         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
16471         Patch by Alain Guibert.
16472
16473 2008-04-21  Bruno Haible  <bruno@clisp.org>
16474
16475         Fix test failures on mingw.
16476         * tests/test-xstrtol.c (print_no_progname): New function.
16477         (main): Install it in error_print_progname hook.
16478         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
16479         * tests/test-xstrtoimax.sh: Likewise.
16480         * tests/test-xstrtoumax.sh: Likewise.
16481
16482 2008-04-21  Bruno Haible  <bruno@clisp.org>
16483
16484         Fix test failure on mingw.
16485         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
16486
16487 2008-04-21  Bruno Haible  <bruno@clisp.org>
16488
16489         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
16490         Actually assign a value.
16491
16492 2008-04-20  Bruno Haible  <bruno@clisp.org>
16493
16494         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
16495         take 2.
16496         * lib/canonicalize.c (canonicalize_file_name): Elide if the
16497         'canonicalize-lgpl' module is also used.
16498         * lib/canonicalize-lgpl.c: Undo last change.
16499         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
16500
16501 2008-04-20  Bruno Haible  <bruno@clisp.org>
16502
16503         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
16504         config.h. Provide _mkdir based fallback for mingw.
16505         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
16506         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
16507         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
16508         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
16509         rather than defining mkdir in config.h.
16510         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
16511         (gl_SYS_STAT_H_DEFAULTS): New macro.
16512         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
16513         HAVE_IO_H any more.
16514         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
16515         HAVE_DECL_MKDIR and HAVE_IO_H.
16516
16517 2008-04-20  Bruno Haible  <bruno@clisp.org>
16518
16519         * lib/isapipe.c: Port to native Windows platforms.
16520
16521 2008-04-20  Bruno Haible  <bruno@clisp.org>
16522
16523         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
16524
16525 2008-04-21  Eric Blake  <ebb9@byu.net>
16526
16527         Work around preprocessors that don't handle UINTMAX_MAX.
16528         * lib/memchr2.c (memchr2): Avoid embedded #if.
16529         Reported by Alain Guibert, fix suggested by Bruno Haible.
16530
16531 2008-04-21  Simon Josefsson  <simon@josefsson.org>
16532
16533         * doc/posix-functions/strftime.texi (strftime): Explain better
16534         Windows incompatibility.  Suggested by Micah Cowan
16535         <micah@cowan.name>.
16536
16537 2008-04-20  Bruno Haible  <bruno@clisp.org>
16538
16539         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
16540         unistr/u8-mblen.
16541
16542 2008-04-20  Bruno Haible  <bruno@clisp.org>
16543
16544         Fix test failure on platforms with non-GNU iconv.
16545         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
16546         (U_TO_U8): Use it, rather than u16_to_u8.
16547         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
16548         units at the end of the input string.
16549         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
16550
16551 2008-04-20  Bruno Haible  <bruno@clisp.org>
16552
16553         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
16554         when the resulting length is 0.
16555         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
16556
16557 2008-04-20  Bruno Haible  <bruno@clisp.org>
16558
16559         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
16560         works.
16561         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
16562
16563 2008-04-20  Bruno Haible  <bruno@clisp.org>
16564
16565         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
16566         * modules/tsearch-tests (configure.ac): Test for initstate function.
16567
16568 2008-04-20  Bruno Haible  <bruno@clisp.org>
16569
16570         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
16571         for nlink_t if missing.
16572         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
16573
16574 2008-04-19  Bruno Haible  <bruno@clisp.org>
16575
16576         Work around snprintf bug on Linux libc5.
16577         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
16578         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
16579         gl_SNPRINTF_SIZE1.
16580         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
16581         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
16582         that test failed.
16583         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
16584         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
16585         * modules/snprintf (Files): Add m4/printf.m4.
16586         * modules/vsnprintf (Files): Likewise.
16587         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
16588         * doc/posix-functions/vsnprintf.texi: Likewise.
16589
16590 2008-04-19  Bruno Haible  <bruno@clisp.org>
16591
16592         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
16593         from 0.0058 to less than 10^-7.
16594
16595 2008-04-19  Bruno Haible  <bruno@clisp.org>
16596
16597         Fix rounding when a precision is given.
16598         * lib/vasnprintf.c (is_borderline): New function.
16599         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
16600         9...9x.
16601         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
16602         %e, %g.
16603         * tests/test-vasprintf-posix.c (test_function): Likewise.
16604         * tests/test-snprintf-posix.h (test_function): Likewise.
16605         * tests/test-sprintf-posix.h (test_function): Likewise.
16606         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
16607         * tests/test-printf-posix.h (test_function): Likewise.
16608         * tests/test-printf-posix.output: Update.
16609         Reported by John Darrington <john@darrington.wattle.id.au> via
16610         Ben Pfaff <blp@cs.stanford.edu>.
16611
16612 2008-04-18  Simon Josefsson  <simon@josefsson.org>
16613
16614         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
16615         Suggested by Bruno Haible <bruno@clisp.org>.
16616
16617 2008-04-17  Bruno Haible  <bruno@clisp.org>
16618
16619         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
16620         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
16621         implementation.
16622         Patch by Bruce Merry <bmerry@gmail.com>.
16623
16624 2008-04-17  Simon Josefsson  <simon@josefsson.org>
16625
16626         * doc/posix-functions/strftime.texi (strftime): Mention that %e
16627         doesn't work under Windows.
16628
16629 2008-04-16  Bruno Haible  <bruno@clisp.org>
16630
16631         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
16632         New macros.
16633         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
16634         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
16635         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
16636         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
16637         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
16638         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
16639         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
16640         macros.
16641         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
16642         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
16643         Northern Sotho, Uighur.
16644
16645 2008-04-16  Bruno Haible  <bruno@clisp.org>
16646
16647         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
16648         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
16649         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
16650         Reported by Daniel Bergström <daniel@octocode.com>.
16651
16652 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
16653             Bruno Haible  <bruno@clisp.org>
16654
16655         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
16656         function.
16657         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
16658         New functions, mostly extracted from gl_locale_name_default.
16659         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
16660
16661 2008-04-16  Eric Blake  <ebb9@byu.net>
16662
16663         Adjust strtod detection to catch glibc 2.7 bug.
16664         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
16665         Reported by John Gatewood Ham.
16666
16667 2008-04-16  Bruno Haible  <bruno@clisp.org>
16668
16669         Add tentative support for Linux libc5.
16670         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
16671         * lib/fpurge.c (fpurge): Likewise.
16672         * lib/freadable.c (freadable): Likewise.
16673         * lib/freadahead.c (freadahead): Likewise.
16674         * lib/freading.c (freading): Likewise.
16675         * lib/freadptr.c (freadptr): Likewise.
16676         * lib/freadseek.c (freadptrinc): Likewise.
16677         * lib/fseeko.c (rpl_fseeko): Likewise.
16678         * lib/fseterr.c (fseterr): Likewise.
16679         * lib/fwritable.c (fwritable): Likewise.
16680         * lib/fwriting.c (fwriting): Likewise.
16681         Reported by Alain Guibert <alguibert+bts@free.fr>.
16682
16683 2008-04-15  Bruno Haible  <bruno@clisp.org>
16684
16685         * modules/mathl (configure.ac): Define module indicator.
16686
16687 2008-04-15  Bruno Haible  <bruno@clisp.org>
16688
16689         * lib/logl.c (logl): Remove unused variables.
16690
16691 2008-04-15  Bruno Haible  <bruno@clisp.org>
16692
16693         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
16694         fails.
16695
16696 2008-04-15  Bruno Haible  <bruno@clisp.org>
16697
16698         * lib/trim.c (trim2): Fix argument of isspace() macro.
16699
16700 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
16701
16702         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
16703         to 0.
16704         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
16705
16706 2008-04-14  Bruno Haible  <bruno@clisp.org>
16707
16708         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
16709         AC_LANG_PROGRAM argument.
16710         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
16711         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
16712         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
16713         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
16714         * m4/math_h.m4 (gl_MATH_H): Likewise.
16715         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
16716         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
16717         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
16718         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
16719         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
16720         * m4/regex.m4 (gl_REGEX): Likewise.
16721         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
16722         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
16723         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
16724         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
16725         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
16726         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
16727         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
16728         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
16729
16730 2008-04-14  Jim Meyering  <meyering@redhat.com>
16731
16732         test-strtod: fix typos: s/abs/fabs/
16733         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
16734
16735 2008-04-13  Bruno Haible  <bruno@clisp.org>
16736
16737         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
16738         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
16739         module is also used and while not building the reloc-wrapper.
16740
16741 2008-04-13  Bruno Haible  <bruno@clisp.org>
16742
16743         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
16744
16745 2008-04-13  Bruno Haible  <bruno@clisp.org>
16746
16747         Fix AIX compilation failure introduced on 2008-04-02.
16748         * tests/test-frexp.c (exp): Undefine before redefining.
16749         * tests/test-frexpl.c (exp): Likewise.
16750
16751 2008-04-13  Bruno Haible  <bruno@clisp.org>
16752
16753         Work around a HP-UX stdio bug.
16754         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
16755         * tests/test-ftello.c (main): Likewise.
16756         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
16757         * doc/posix-functions/ftello.texi: Likewise.
16758
16759 2008-04-13  Bruno Haible  <bruno@clisp.org>
16760
16761         Make test-signbit pass on HP-UX/hppa.
16762         * tests/test-signbit.c (minus_zerol): New variable.
16763         (test_signbitl): Use it.
16764
16765 2008-04-13  Bruno Haible  <bruno@clisp.org>
16766
16767         Make truncl work on OSF/1 4.0.
16768         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
16769         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
16770         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
16771         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
16772         HAVE_DECL_TRUNCL.
16773         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
16774         HAVE_DECL_TRUNCL.
16775         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
16776
16777 2008-04-13  Bruno Haible  <bruno@clisp.org>
16778
16779         * lib/unictype.h: Remove trailing comma from enumeration definitions.
16780
16781 2008-04-13  Bruno Haible  <bruno@clisp.org>
16782
16783         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
16784         expression, so as to avoid HP-UX 11 cc compiler bug.
16785
16786 2008-04-13  Bruno Haible  <bruno@clisp.org>
16787
16788         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
16789
16790 2008-04-13  Bruno Haible  <bruno@clisp.org>
16791
16792         * lib/git-merge-changelog.c: Remove empty declaration outside of
16793         functions.
16794
16795 2008-04-13  Bruno Haible  <bruno@clisp.org>
16796
16797         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
16798
16799 2008-04-13  Bruno Haible  <bruno@clisp.org>
16800
16801         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
16802         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
16803         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
16804         also if it exists but lacks definitions of the SHUT_* macros.
16805         * modules/sys_socket (Description): Update.
16806         Reported by Elbert Pol <e.pol@chello.nl>.
16807
16808 2008-04-13  Bruno Haible  <bruno@clisp.org>
16809
16810         * lib/localcharset.c (OS2): Don't redefine if already defined.
16811         Reported by Elbert Pol <e.pol@chello.nl>.
16812
16813 2008-04-13  Bruno Haible  <bruno@clisp.org>
16814
16815         * lib/binary-io.h [__EMX__]: Include <io.h>.
16816         Reported by Elbert Pol <e.pol@chello.nl>.
16817
16818 2008-04-12  Bruno Haible  <bruno@clisp.org>
16819
16820         * lib/fpucw.h: Enable the definitions also for x86_64.
16821         Needed for NetBSD/x86_64.
16822         Reported by Thomas Klausner <tk@giga.or.at>.
16823
16824 2008-04-12  Bruno Haible  <bruno@clisp.org>
16825
16826         * tests/test-strtod.c: Include isnand.h.
16827         (main): Use isnand instead of isnan.
16828         Reported by Jim Meyering.
16829
16830 2008-04-12  Bruno Haible  <bruno@clisp.org>
16831
16832         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
16833         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
16834
16835 2008-04-12  Jim Meyering  <meyering@redhat.com>
16836
16837         * m4/math_h.m4 (gl_MATH_H): Fix typos.
16838
16839 2008-04-12  Bruno Haible  <bruno@clisp.org>
16840
16841         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
16842         Reported by Elbert Pol <e.pol@chello.nl>.
16843
16844 2008-04-12  Eric Blake  <ebb9@byu.net>
16845
16846         Work around Solaris 10 math.h bug.
16847         * m4/math_h.m4 (gl_MATH_H): Check for bug.
16848         (gl_MATH_H_DEFAULTS): Set up default.
16849         * modules/math (Makefile.am): Replace new indicators.
16850         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
16851         * tests/test-math.c (main): Test this.
16852         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
16853         * doc/posix-headers/math.texi (math.h): Mention bug.
16854         Reported by Nelson H. F. Beebe and Jim Meyering.
16855
16856 2008-04-11  Bruno Haible  <bruno@clisp.org>
16857
16858         Adapt to future versions of Apple GCC.
16859         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
16860         Reported by Peter O'Gorman <peter@pogma.com>.
16861
16862 2008-04-11  Bruno Haible  <bruno@clisp.org>
16863
16864         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
16865
16866 2008-04-11  Bruno Haible  <bruno@clisp.org>
16867
16868         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
16869
16870         * modules/getaddrinfo-tests (Makefile.am): Define
16871         test_getaddrinfo_LDADD.
16872
16873 2008-04-11  Bruno Haible  <bruno@clisp.org>
16874
16875         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
16876         (init): Fix syntax error.
16877         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
16878         is declared.
16879
16880 2008-04-11  Bruno Haible  <bruno@clisp.org>
16881
16882         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
16883         * modules/glob (Depends-on): Add stdbool.
16884
16885 2008-04-11  Bruno Haible  <bruno@clisp.org>
16886
16887         * lib/trim.c: Include <string.h>.
16888
16889 2008-04-11  Eric Blake  <ebb9@byu.net>
16890
16891         Avoid compile failure on OS/2.
16892         * lib/regex_internal.h (internal_function): Disable optimization
16893         on OS/2 (__EMX__), where it caused compiler error.
16894         Reported by Elbert Pol.
16895
16896 2008-04-11  Bruno Haible  <bruno@clisp.org>
16897
16898         Flush the standard error stream before aborting. Needed on mingw.
16899         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
16900         * tests/test-array_list.c (ASSERT): Likewise.
16901         * tests/test-array_oset.c (ASSERT): Likewise.
16902         * tests/test-avltree_list.c (ASSERT): Likewise.
16903         * tests/test-avltree_oset.c (ASSERT): Likewise.
16904         * tests/test-avltreehash_list.c (ASSERT): Likewise.
16905         * tests/test-binary-io.c (ASSERT): Likewise.
16906         * tests/test-byteswap.c (ASSERT): Likewise.
16907         * tests/test-c-ctype.c (ASSERT): Likewise.
16908         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
16909         * tests/test-c-strcasestr.c (ASSERT): Likewise.
16910         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
16911         * tests/test-c-strstr.c (ASSERT): Likewise.
16912         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
16913         * tests/test-canonicalize.c (ASSERT): Likewise.
16914         * tests/test-carray_list.c (ASSERT): Likewise.
16915         * tests/test-ceilf1.c (ASSERT): Likewise.
16916         * tests/test-ceilf2.c (ASSERT): Likewise.
16917         * tests/test-ceill.c (ASSERT): Likewise.
16918         * tests/test-count-one-bits.c (ASSERT): Likewise.
16919         * tests/test-fbufmode.c (ASSERT): Likewise.
16920         * tests/test-fflush2.c (ASSERT): Likewise.
16921         * tests/test-floorf1.c (ASSERT): Likewise.
16922         * tests/test-floorf2.c (ASSERT): Likewise.
16923         * tests/test-floorl.c (ASSERT): Likewise.
16924         * tests/test-fopen.c (ASSERT): Likewise.
16925         * tests/test-fpending.c (ASSERT): Likewise.
16926         * tests/test-fprintf-posix.c (ASSERT): Likewise.
16927         * tests/test-fpurge.c (ASSERT): Likewise.
16928         * tests/test-freadable.c (ASSERT): Likewise.
16929         * tests/test-freadahead.c (ASSERT): Likewise.
16930         * tests/test-freading.c (ASSERT): Likewise.
16931         * tests/test-freadptr.c (ASSERT): Likewise.
16932         * tests/test-freadptr2.c (ASSERT): Likewise.
16933         * tests/test-freadseek.c (ASSERT): Likewise.
16934         * tests/test-freopen.c (ASSERT): Likewise.
16935         * tests/test-frexp.c (ASSERT): Likewise.
16936         * tests/test-frexpl.c (ASSERT): Likewise.
16937         * tests/test-fseek.c (ASSERT): Likewise.
16938         * tests/test-fseeko.c (ASSERT): Likewise.
16939         * tests/test-fstrcmp.c (ASSERT): Likewise.
16940         * tests/test-ftell.c (ASSERT): Likewise.
16941         * tests/test-ftello.c (ASSERT): Likewise.
16942         * tests/test-func.c (ASSERT): Likewise.
16943         * tests/test-fwritable.c (ASSERT): Likewise.
16944         * tests/test-fwriting.c (ASSERT): Likewise.
16945         * tests/test-getdelim.c (ASSERT): Likewise.
16946         * tests/test-getline.c (ASSERT): Likewise.
16947         * tests/test-i-ring.c (ASSERT): Likewise.
16948         * tests/test-iconv-utf.c (ASSERT): Likewise.
16949         * tests/test-iconv.c (ASSERT): Likewise.
16950         * tests/test-isfinite.c (ASSERT): Likewise.
16951         * tests/test-isnand.c (ASSERT): Likewise.
16952         * tests/test-isnanf.c (ASSERT): Likewise.
16953         * tests/test-isnanl.h (ASSERT): Likewise.
16954         * tests/test-ldexpl.c (ASSERT): Likewise.
16955         * tests/test-linked_list.c (ASSERT): Likewise.
16956         * tests/test-linkedhash_list.c (ASSERT): Likewise.
16957         * tests/test-localename.c (ASSERT): Likewise.
16958         * tests/test-lseek.c (ASSERT): Likewise.
16959         * tests/test-mbscasecmp.c (ASSERT): Likewise.
16960         * tests/test-mbscasestr1.c (ASSERT): Likewise.
16961         * tests/test-mbscasestr2.c (ASSERT): Likewise.
16962         * tests/test-mbscasestr3.c (ASSERT): Likewise.
16963         * tests/test-mbscasestr4.c (ASSERT): Likewise.
16964         * tests/test-mbschr.c (ASSERT): Likewise.
16965         * tests/test-mbscspn.c (ASSERT): Likewise.
16966         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
16967         * tests/test-mbspbrk.c (ASSERT): Likewise.
16968         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
16969         * tests/test-mbsrchr.c (ASSERT): Likewise.
16970         * tests/test-mbsspn.c (ASSERT): Likewise.
16971         * tests/test-mbsstr1.c (ASSERT): Likewise.
16972         * tests/test-mbsstr2.c (ASSERT): Likewise.
16973         * tests/test-mbsstr3.c (ASSERT): Likewise.
16974         * tests/test-memchr2.c (ASSERT): Likewise.
16975         * tests/test-memmem.c (ASSERT): Likewise.
16976         * tests/test-open.c (ASSERT): Likewise.
16977         * tests/test-printf-frexp.c (ASSERT): Likewise.
16978         * tests/test-printf-frexpl.c (ASSERT): Likewise.
16979         * tests/test-printf-posix.c (ASSERT): Likewise.
16980         * tests/test-quotearg.c (ASSERT): Likewise.
16981         * tests/test-rbtree_list.c (ASSERT): Likewise.
16982         * tests/test-rbtree_oset.c (ASSERT): Likewise.
16983         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
16984         * tests/test-round1.c (ASSERT): Likewise.
16985         * tests/test-roundf1.c (ASSERT): Likewise.
16986         * tests/test-roundl.c (ASSERT): Likewise.
16987         * tests/test-signbit.c (ASSERT): Likewise.
16988         * tests/test-sleep.c (ASSERT): Likewise.
16989         * tests/test-snprintf-posix.c (ASSERT): Likewise.
16990         * tests/test-snprintf.c (ASSERT): Likewise.
16991         * tests/test-sprintf-posix.c (ASSERT): Likewise.
16992         * tests/test-stat-time.c (ASSERT): Likewise.
16993         * tests/test-strcasestr.c (ASSERT): Likewise.
16994         * tests/test-strerror.c (ASSERT): Likewise.
16995         * tests/test-striconv.c (ASSERT): Likewise.
16996         * tests/test-striconveh.c (ASSERT): Likewise.
16997         * tests/test-striconveha.c (ASSERT): Likewise.
16998         * tests/test-strsignal.c (ASSERT): Likewise.
16999         * tests/test-strstr.c (ASSERT): Likewise.
17000         * tests/test-strtod.c (ASSERT): Likewise.
17001         * tests/test-trunc1.c (ASSERT): Likewise.
17002         * tests/test-trunc2.c (ASSERT): Likewise.
17003         * tests/test-truncf1.c (ASSERT): Likewise.
17004         * tests/test-truncf2.c (ASSERT): Likewise.
17005         * tests/test-truncl.c (ASSERT): Likewise.
17006         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
17007         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
17008         * tests/test-vasnprintf.c (ASSERT): Likewise.
17009         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
17010         * tests/test-vasprintf.c (ASSERT): Likewise.
17011         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
17012         * tests/test-vprintf-posix.c (ASSERT): Likewise.
17013         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
17014         * tests/test-vsnprintf.c (ASSERT): Likewise.
17015         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
17016         * tests/test-wcwidth.c (ASSERT): Likewise.
17017         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
17018         * tests/test-xprintf-posix.c (ASSERT): Likewise.
17019         * tests/test-xvasprintf.c (ASSERT): Likewise.
17020         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
17021         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
17022         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
17023         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
17024         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
17025         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
17026         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
17027         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
17028         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
17029         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
17030         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
17031         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
17032         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
17033         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
17034         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
17035         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
17036         * tests/unictype/test-block_list.c (ASSERT): Likewise.
17037         * tests/unictype/test-block_of.c (ASSERT): Likewise.
17038         * tests/unictype/test-block_test.c (ASSERT): Likewise.
17039         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
17040         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
17041         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
17042         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
17043         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
17044         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
17045         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
17046         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
17047         * tests/unictype/test-combining.c (ASSERT): Likewise.
17048         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
17049         * tests/unictype/test-digit.c (ASSERT): Likewise.
17050         * tests/unictype/test-mirror.c (ASSERT): Likewise.
17051         * tests/unictype/test-numeric.c (ASSERT): Likewise.
17052         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
17053         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
17054         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
17055         * tests/unictype/test-scripts.c (ASSERT): Likewise.
17056         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
17057         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
17058         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
17059         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
17060         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
17061         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
17062         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
17063         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
17064         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
17065         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
17066         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
17067         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
17068         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
17069         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
17070         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
17071         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
17072         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
17073         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
17074         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
17075         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
17076         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
17077         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
17078         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
17079         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
17080         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
17081         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
17082         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
17083         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
17084         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
17085         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
17086         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
17087         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
17088         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
17089         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
17090         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
17091         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
17092         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
17093         Reported by Eric Blake.
17094
17095 2008-04-11  Bruno Haible  <bruno@clisp.org>
17096
17097         * lib/wchar.in.h: Tweak comment.
17098
17099 2008-04-11  Bruno Haible  <bruno@clisp.org>
17100
17101         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
17102         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
17103         gl_COMMON.
17104         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
17105
17106 2008-04-11  Bruno Haible  <bruno@clisp.org>
17107
17108         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
17109
17110 2008-04-11  Simon Josefsson  <simon@josefsson.org>
17111
17112         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
17113         of attempting to use non-existing /dev/*random.  Based on patch
17114         from Adam Strzelecki <ono@java.pl> in
17115         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
17116
17117 2008-04-08  Bruno Haible  <bruno@clisp.org>
17118
17119         Add tentative support for emx+gcc.
17120         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
17121         * lib/fpurge.c (fpurge): Likewise.
17122         * lib/freadable.c (freadable): Likewise.
17123         * lib/freadahead.c (freadahead): Likewise.
17124         * lib/freading.c (freading): Likewise.
17125         * lib/freadptr.c (freadptr): Likewise.
17126         * lib/freadseek.c (freadptrinc): Likewise.
17127         * lib/fseeko.c (rpl_fseeko): Likewise.
17128         * lib/fseterr.c (fseterr): Likewise.
17129         * lib/fwritable.c (fwritable): Likewise.
17130         * lib/fwriting.c (fwriting): Likewise.
17131         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
17132
17133 2008-04-09  Eric Blake  <ebb9@byu.net>
17134
17135         Avoid some autoconf warnings.
17136         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
17137         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
17138         * m4/afs.m4 (gl_AFS): Likewise.
17139         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
17140         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
17141         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
17142         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
17143         (gl_INTEGER_TYPE_SUFFIX): Likewise.
17144         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
17145         (AC_CHECK_DECLS_ONCE): Likewise.
17146         Rename file...
17147         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
17148         gnulib-tool requires autoconf 2.59 or better.
17149         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
17150
17151 2008-04-08  Eric Blake  <ebb9@byu.net>
17152
17153         Use 'git describe --match' if present (added in git 1.5.5).
17154         * build-aux/git-version-gen: Limit result to tags that match 'v*'
17155         if possible.
17156
17157 2008-04-08  Bruno Haible  <bruno@clisp.org>
17158
17159         Add tentative support for OpenServer.
17160         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
17161         _ptr, _cnt.
17162         * lib/fpurge.c (fpurge): Likewise.
17163         * lib/freadable.c (freadable): Likewise.
17164         * lib/freadahead.c (freadahead): Likewise.
17165         * lib/freading.c (freading): Likewise.
17166         * lib/freadptr.c (freadptr): Likewise.
17167         * lib/freadseek.c (freadptrinc): Likewise.
17168         * lib/fseeko.c (rpl_fseeko): Likewise.
17169         * lib/fseterr.c (fseterr): Likewise.
17170         * lib/fwritable.c (fwritable): Likewise.
17171         * lib/fwriting.c (fwriting): Likewise.
17172         Reported by Roger Cornelius <rac@tenzing.org> and
17173         Brian K. White <brian@aljex.com>.
17174
17175 2008-04-06  Jim Meyering  <meyering@redhat.com>
17176
17177         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
17178
17179 2008-04-06  Bruno Haible  <bruno@clisp.org>
17180
17181         Avoid possible error with non-ASCII bytes in UTF-8 locales.
17182         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
17183         * tests/test-printf-posix.sh: Likewise.
17184         * tests/test-vfprintf-posix.sh: Likewise.
17185         * tests/test-vprintf-posix.sh: Likewise.
17186         * tests/test-xprintf-posix.sh: Likewise.
17187
17188 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
17189
17190         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
17191         hide error from 'ls', needed on OS/2.
17192         Report by Elbert Pol <elbert.pol@gmail.com>.
17193
17194 2008-04-04  Eric Blake  <ebb9@byu.net>
17195
17196         Make test-fseeko.c failures meaningful.
17197         * tests/test-fseeko.c: Print line number on failure.
17198         * tests/test-fseek.c: Likewise.
17199         Reported by Nelson H. F. Beebe.
17200
17201         Improve strtod bug detection check.
17202         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
17203         required for Solaris 10.
17204         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
17205
17206 2008-04-04  Bruno Haible  <bruno@clisp.org>
17207
17208         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
17209         by m4/setenv.m4.
17210
17211 2008-04-03  Eric Blake  <ebb9@byu.net>
17212
17213         Ensure sane .version contents.
17214         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
17215         version string.
17216         * build-aux/git-version-gen: Improve documentation.
17217
17218         Make GNU make output nicer.
17219         * top/GNUmakefile [!_have-Makefile]: Add dependency on
17220         MAKECMDGOALS to enforce message for all command line targets.  Set
17221         srcdir for use in maint.mk.
17222
17223         Another maintainer tweak.
17224         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
17225         a target that regenerates version.
17226
17227 2008-04-03  Jim Meyering  <meyering@redhat.com>
17228
17229         vc-list-files: don't cause coreutils "make po-check" failure
17230         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
17231
17232 2008-04-03  Eric Blake  <ebb9@byu.net>
17233
17234         Allow VPATH usage of vc-list-files.
17235         * build-aux/vc-list-files (scriptversion): Add timestamp.
17236         (options): Add --help, --version, -C.
17237         (CVS): Support installed cvsu.
17238
17239 2008-04-02  Bruno Haible  <bruno@clisp.org>
17240
17241         Avoid some "statement with no effect" warnings from gcc.
17242         * tests/test-wctype.c (main): Explicitly ignore unused values.
17243         Reported by Jim Meyering.
17244
17245 2008-04-02  Jim Meyering  <meyering@redhat.com>
17246
17247         Avoid some warnings from "gcc -Wshadow".
17248         * tests/test-frexp.c (exp): Define to a different identifier.
17249         * tests/test-frexpl.c (exp): Likewise.
17250
17251 2008-04-03  Jim Meyering  <meyering@redhat.com>
17252
17253         bootstrap: remove dangling *.[ch] symlinks from lib
17254         * build-aux/bootstrap [dangling symlink removal]: Move find's
17255         -depth option to precede all others, to avoid a warning.
17256         Remove *.[ch] files too, and from "$source_base" (usually lib/).
17257
17258 2008-04-02  Bruno Haible  <bruno@clisp.org>
17259
17260         Avoid some warnings from "gcc -Wshadow".
17261         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
17262         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
17263         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
17264         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
17265         Reported by Jim Meyering.
17266
17267 2008-04-01  Bruno Haible  <bruno@clisp.org>
17268
17269         Fix test to work on IRIX 6.5 with cc.
17270         * tests/test-math.c (numeric_equal): New function.
17271         (main): Use it.
17272
17273 2008-04-01  Bruno Haible  <bruno@clisp.org>
17274
17275         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
17276
17277 2008-04-01  Bruno Haible  <bruno@clisp.org>
17278
17279         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
17280         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
17281         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
17282         (Depends-on): Remove math.
17283
17284         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
17285         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
17286         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
17287         (Depends-on): Remove math.
17288
17289         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
17290         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
17291         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
17292         (Depends-on): Remove math.
17293         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
17294         (Depends-on): Remove math.
17295
17296         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
17297         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
17298         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
17299         (Depends-on): Remove math.
17300         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
17301         (Depends-on): Remove math.
17302
17303         * tests/test-round1.c: Include nan.h.
17304         (main): Use NaNd instead of NAN.
17305         * modules/round-tests (Files): Add tests/nan.h.
17306
17307         * tests/test-trunc1.c: Include nan.h.
17308         (main): Use NaNd instead of NAN.
17309         * modules/trunc-tests (Files): Add tests/nan.h.
17310
17311         * tests/test-roundf1.c: Include nan.h.
17312         (main): Use NaNf instead of NAN.
17313         * modules/roundf-tests (Files): Add tests/nan.h.
17314
17315         * tests/test-truncf1.c: Include nan.h.
17316         (main): Use NaNf instead of NAN.
17317         * modules/truncf-tests (Files): Add tests/nan.h.
17318
17319         * tests/test-ceilf1.c: Include nan.h.
17320         (main): Use NaNf instead of NAN.
17321         * modules/ceilf-tests (Files): Add tests/nan.h.
17322
17323         * tests/test-floorf1.c: Include nan.h.
17324         (main): Use NaNf instead of NAN.
17325         * modules/floorf-tests (Files): Add tests/nan.h.
17326
17327         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
17328         (main): Use NaNf instead of NAN.
17329         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
17330
17331         * tests/test-isnand.c: Include nan.h instead of <math.h>.
17332         (main): Use NaNd instead of NAN.
17333         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
17334
17335         * tests/test-frexp.c: Include nan.h.
17336         (main): Use NaNd instead of NAN.
17337         * modules/frexp-tests (Files): Add tests/nan.h.
17338
17339         * lib/isnan.c: Don't include <math.h>.
17340         (FUNC): Don't use NAN macro.
17341         * modules/isnand-nolibm (Depends-on): Remove math.
17342         * modules/isnanf-nolibm (Depends-on): Remove math.
17343         * modules/isnanl (Depends-on): Remove math.
17344         * modules/isnanl-nolibm (Depends-on): Remove math.
17345
17346         * tests/nan.h: New file.
17347
17348 2008-04-01  Eric Blake  <ebb9@byu.net>
17349
17350         Fix typos.
17351         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
17352         values to be the right type.
17353
17354         For now, cater to gnulib strtod inaccuracies.
17355         * tests/test-strtod.c (main): Allow 1-ulp error on expected
17356         fractional results.  While not as nice from a QoI perspective, it
17357         is a quicker patch than correctly implementing decimal to binary
17358         rounding.
17359
17360 2008-03-31  Eric Blake  <ebb9@byu.net>
17361
17362         Guarantee a definition of NAN.
17363         * lib/math.in.h (NAN): Define if missing.
17364         * tests/test-math.c (main): Test it.
17365         * doc/posix-headers/math.texi (math.h): Document this.
17366         * lib/isnan.c (rpl_isnand): Use it.
17367         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
17368         * tests/test-floorf1.c (NaN): Likewise.
17369         * tests/test-frexp.c (NaN): Likewise.
17370         * tests/test-isnand.c (NaN): Likewise.
17371         * tests/test-isnanf.c (NaN): Likewise.
17372         * tests/test-round1.c (NaN): Likewise.
17373         * tests/test-roundf1.c (NaN): Likewise.
17374         * tests/test-snprintf-posix.h (NaN): Likewise.
17375         * tests/test-sprintf-posix.h (NaN): Likewise.
17376         * tests/test-trunc1.c (NaN): Likewise.
17377         * tests/test-truncf1.c (NaN): Likewise.
17378         * tests/test-vasnprintf-posix.c (NaN): Likewise.
17379         * tests/test-vasprintf-posix.c (NaN): Likewise.
17380         * modules/isnand-nolibm (Depends-on): Add math.
17381         * modules/isnanf-nolibm (Depends-on): Likewise.
17382         * modules/isnanl (Depends-on): Likewise.
17383         * modules/isnanl-nolibm (Depends-on): Likewise.
17384         * modules/snprintf-posix-tests (Depends-on): Likewise.
17385         * modules/sprintf-posix-tests (Depends-on): Likewise.
17386         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
17387         * modules/vsprintf-posix-tests (Depends-on): Likewise.
17388         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
17389         * modules/vasprintf-posix-tests (Depends-on): Likewise.
17390
17391 2008-03-31  Bruno Haible  <bruno@clisp.org>
17392
17393         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
17394         * doc/posix-functions/strtod.texi: Likewise.
17395
17396 2008-03-31  Bruno Haible  <bruno@clisp.org>
17397
17398         * tests/test-strtod.c (main): Don't use C99 syntax.
17399
17400 2008-03-31  Bruno Haible  <bruno@clisp.org>
17401
17402         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
17403         Reported by Eric Blake.
17404
17405 2008-03-31  Jim Meyering  <meyering@redhat.com>
17406
17407         Don't compare actual signbit return values.
17408         * tests/test-strtod.c (main): Rather, compare only their
17409         zero/non-zero nature.
17410
17411 2008-03-31  Eric Blake  <ebb9@byu.net>
17412
17413         More strtod documentation.
17414         * doc/posix-functions/strtod.texi (strtod): Interpret more test
17415         failures as distinct bugs.
17416
17417 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
17418
17419         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
17420         Problem reported by Erik Benada in
17421         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
17422
17423 2008-03-30  Bruno Haible  <bruno@clisp.org>
17424
17425         * tests/test-strtod.c: Add comments about which assertion fails on which
17426         platform.
17427         * doc/posix-functions/strtod.texi: Add info about many more platforms.
17428
17429 2008-03-30  Eric Blake  <ebb9@byu.net>
17430
17431         Test signbit behavior on zeros.
17432         * tests/test-signbit.c (test_signbitf): Add tests for zero.
17433         (test_signbitd, test_signbitl): Likewise.
17434
17435         More strtod touchups.
17436         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
17437         sign of negative underflow, for now.  Use .5, not .1.
17438         * doc/posix-functions/strtod.texi (strtod): Mention these
17439         limitations.
17440         Reported by Jim Meyering.
17441
17442 2008-03-30  Bruno Haible  <bruno@clisp.org>
17443
17444         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
17445         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
17446
17447 2008-03-30  Bruno Haible  <bruno@clisp.org>
17448
17449         Avoid failure when attempting to return empty iconv results on some
17450         platforms.
17451         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
17452         allocation, don't report ENOMEM when the resulting string is empty.
17453
17454 2008-03-30  Bruno Haible  <bruno@clisp.org>
17455
17456         Fix buffer overrun.
17457         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
17458         Don't consider the width for tmp_length. Check count against tmp_length
17459         before doing the padding. Ensure enough allocation during padding.
17460
17461 2008-03-30  Eric Blake  <ebb9@byu.net>
17462
17463         strtod touchups.
17464         * lib/strtod.c (strtod): Avoid compiler warnings.
17465         Reported by Jim Meyering.
17466
17467 2008-03-30  Bruno Haible  <bruno@clisp.org>
17468
17469         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
17470         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
17471         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
17472         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
17473         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
17474         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
17475         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
17476         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
17477
17478         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
17479         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
17480         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
17481         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
17482         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
17483         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
17484         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
17485         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
17486
17487         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
17488         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
17489         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
17490         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
17491         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
17492         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
17493         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
17494         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
17495
17496         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
17497         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
17498
17499         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
17500         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
17501
17502         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
17503         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
17504
17505         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
17506         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
17507         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
17508
17509         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
17510         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
17511         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
17512
17513         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
17514         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
17515         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
17516
17517         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
17518         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
17519         * modules/vasprintf (Depends-on): Add EOVERFLOW.
17520
17521         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
17522         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
17523         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
17524         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
17525         (Depends-on): Add EOVERFLOW.
17526         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
17527         (Depends-on): Add EOVERFLOW.
17528         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
17529         (Depends-on): Add EOVERFLOW.
17530         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
17531         (Depends-on): Add EOVERFLOW.
17532         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
17533         (Depends-on): Add EOVERFLOW.
17534         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
17535         (Depends-on): Add EOVERFLOW.
17536         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
17537         (Depends-on): Add EOVERFLOW.
17538         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
17539         (Depends-on): Add EOVERFLOW.
17540
17541         * lib/sprintf.c (EOVERFLOW): Remove fallback.
17542         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
17543         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
17544
17545         * lib/snprintf.c (EOVERFLOW): Remove fallback.
17546         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
17547         * modules/snprintf (Depends-on): Add EOVERFLOW.
17548
17549         * lib/poll.c (EOVERFLOW): Remove fallback.
17550         * modules/poll (Depends-on): Add EOVERFLOW.
17551
17552         * lib/getugroups.c (EOVERFLOW): Remove fallback.
17553         * modules/getugroups (Depends-on): Add EOVERFLOW.
17554
17555         * lib/getdelim.c (EOVERFLOW): Remove fallback.
17556         * modules/getdelim (Depends-on): Add EOVERFLOW.
17557
17558         * lib/ftell.c (EOVERFLOW): Remove fallback.
17559         * modules/ftell (Depends-on): Add EOVERFLOW.
17560
17561         * lib/fprintf.c (EOVERFLOW): Remove fallback.
17562         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
17563         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
17564
17565         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
17566
17567         * modules/EOVERFLOW-tests: New file.
17568         * tests/test-EOVERFLOW.c: New file.
17569
17570         * modules/EOVERFLOW: New file.
17571         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
17572
17573 2008-03-30  Bruno Haible  <bruno@clisp.org>
17574
17575         Fix bug introduced on 2007-06-10.
17576         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
17577         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
17578
17579 2008-03-30  Bruno Haible  <bruno@clisp.org>
17580
17581         Improve freadseek's efficiency after ungetc.
17582         * lib/freadseek.c: Include freadahead.h.
17583         (freadptrinc): New function, extracted from freadseek.
17584         (freadseek): Use it in a loop. Use freadahead to determine the number
17585         of loop iterations.
17586         * modules/freadseek (Depends-on): Add freadahead.
17587         (configure.ac): Require AC_C_INLINE.
17588
17589 2008-03-30  Bruno Haible  <bruno@clisp.org>
17590
17591         * lib/freadseek.c (freadseek): Don't ignore the return value of
17592         freadptr.
17593
17594 2008-03-29  Eric Blake  <ebb9@byu.net>
17595
17596         Add hex float support.
17597         * modules/strtod (Depends-on): Add c-ctype.
17598         (Link): Mention POW_LIB.
17599         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
17600         whitespace between 'e' and exponent.
17601         * tests/test-strtod.c (main): Enable hex float tests.
17602         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
17603         now provides.
17604
17605         Document various strtod bugs, with some fixes.
17606         * doc/posix-functions/strtod.texi (strtod): Document bugs with
17607         "-0x", "inf", "nan", and hex constants.
17608         * doc/posix-functions/atof.texi (atof): Likewise.
17609         * modules/stdlib (Makefile.am): Support strtod.
17610         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
17611         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
17612         detect additional strtod bugs.
17613         * lib/stdlib.in.h (rpl_strtod): Add declarations.
17614         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
17615         bool where appropriate.  Parse 'inf' and 'nan'.
17616         * tests/test-strtod.c: New file.
17617         * modules/strtod (Depends-on): Add stdbool, stdlib.
17618         (configure.ac): Turn on module indicator.
17619         * modules/strtod-tests: New module.
17620
17621 2008-03-29  Eric Blake  <ebb9@byu.net>
17622
17623         Fix ftell on mingw.
17624         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
17625         * modules/ftell-tests (Depends-on): Add binary-io.
17626         * modules/ftello-tests (Depends-on): Likewise.
17627         * tests/test-ftell.c (main): Enhance test to cover behavior after
17628         ungetc.  Enforce binary mode.
17629         * tests/test-ftello.c (main): Likewise.
17630
17631         Pass test-freadseek on cygwin.
17632         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
17633         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
17634         ungetc buffer.
17635
17636         * tests/test-fflush2.c (main): Fix typo.
17637
17638 2008-03-29  Bruno Haible  <bruno@clisp.org>
17639
17640         * tests/test-fflush2.c (main): Temporarily disable the contents of
17641         this test.
17642         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
17643         Reported by Eric Blake.
17644
17645 2008-03-28  Simon Josefsson  <simon@josefsson.org>
17646
17647         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
17648         (GC_SHA224_DIGEST_SIZE): Add.
17649
17650         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
17651         (gc_hash_digest_length): Likewise.
17652         (gc_hash_buffer): Likewise.
17653
17654 2008-03-25  Bruno Haible  <bruno@clisp.org>
17655
17656         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
17657         detail which gettext release to use.
17658         Reported by Simon Josefsson.
17659
17660 2008-03-26  Jim Meyering  <meyering@redhat.com>
17661
17662         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
17663         * modules/gnumakefile (clean-GNUmakefile): Also, use
17664         test ... && ... || : syntax rather than if-then ... fi.
17665
17666         gnumakefile: Don't double-quote-expand $(VPATH) value.
17667         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
17668
17669 2008-03-24  Eric Blake  <ebb9@byu.net>
17670
17671         Alter GNUmakefile to install into top directory.
17672         * modules/maintainer-makefile: Split, and add dependency...
17673         * modules/gnumakefile: to this new module.
17674         * build-aux/GNUmakefile: Move...
17675         * top/GNUmakefile: ...here.
17676         * build-aux/maint.mk: Move...
17677         * top/maint.mk: ...here.
17678         * MODULES.html.sh (Support for maintaining...): Document new
17679         module.
17680
17681 2008-03-23  Bruno Haible  <bruno@clisp.org>
17682
17683         * gnulib-tool: New options --vc-files, --no-vc-files.
17684         (func_usage): Document them.
17685         (vc_files): New variable.
17686         (func_import): Consider vc_files.
17687         (func_create_testdir): Set vc_files to empty.
17688         Suggested by Jim Meyering and Karl Berry.
17689
17690 2008-03-23  Bruno Haible  <bruno@clisp.org>
17691
17692         Fix regex compilation error on HP-UX 11.
17693         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
17694         * modules/regex (Files): Add m4/mbstate_t.m4.
17695         Reported by Ton Voon <ton.voon@altinity.com>.
17696
17697 2008-03-23  Bruno Haible  <bruno@clisp.org>
17698
17699         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
17700
17701 2008-03-23  Eric Blake  <ebb9@byu.net>
17702             Bruno Haible  <bruno@clisp.org>
17703
17704         Install files from top/ in the destination directory.
17705         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
17706         augmentation also for the files from top/.
17707         (func_import, func_create_testdir): Rewrite file names:
17708         top/filename -> filename.
17709
17710 2008-03-23  Bruno Haible  <bruno@clisp.org>
17711
17712         Tweak "gnulib --version" output.
17713         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
17714
17715 2008-03-23  Bruno Haible  <bruno@clisp.org>
17716
17717         Tweak "gnulib --version" output.
17718         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
17719         rather than contents of ChangeLog, when possible.
17720
17721 2008-03-21  Eric Blake  <ebb9@byu.net>
17722
17723         More --version tweaks.
17724         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
17725         date of last ChangeLog entry.
17726
17727 2008-03-21  Jim Meyering  <meyering@redhat.com>
17728
17729         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
17730
17731 2008-03-20  Eric Blake  <ebb9@byu.net>
17732
17733         VPATH fix.
17734         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
17735
17736 2008-03-20  Simon Josefsson  <simon@josefsson.org>
17737
17738         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
17739         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
17740
17741 2008-03-20  Eric Blake  <ebb9@byu.net>
17742
17743         Sync GNUmakefile with coreutils.
17744         * build-aux/GNUmakefile (have-Makefile): Rename...
17745         (_have-Makefile): ...to this, for namespace consideration.
17746         (GNUmakefile.cfg): Include, if present.
17747         (_autoreconf): Define a default.
17748         (_is-dist-target): New rule for rebuilds to pick up intra-release
17749         version.
17750         (maint-cfg.mk): Rename...
17751         (cfg.mk): ...to this.
17752
17753 2008-03-18  Jim Meyering  <meyering@redhat.com>
17754
17755         New script and module: mktempd
17756         * MODULES.html.sh (maint+release support): Add mktempd.
17757         * build-aux/mktempd: New file.
17758         * modules/mktempd: New file.
17759
17760 2008-03-15  Jim Meyering  <meyering@redhat.com>
17761
17762         Undo last change.
17763         * lib/sha1.c, lib/md5.c: 63 != ~63.
17764         Reported by Andreas Schwab.
17765
17766         sha1.c, md5.c: Hoist a redundant expression.
17767         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
17768         "ctx->buflen" only once, before calling *_process_block.
17769         * lib/md5.c (md5_process_bytes): Likewise.
17770
17771 2008-03-14  Eric Blake  <ebb9@byu.net>
17772
17773         Bump copyright year in files generated by gnulib-tool.
17774         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
17775         gnulib-tool, rather than hard-coding it.
17776
17777         Fix 'gnulib-tool --version' output to work with git.
17778         * gnulib-tool (func_gnulib_dir): New function, extracted from...
17779         (startup): ...here.
17780         (func_version): Use it to invoke git-version-gen, rather than
17781         relying on CVS keyword expansion.  Modernize wording.
17782         (cvsdatestamp, last_checkin_date, version): Kill unused
17783         variables.
17784
17785 2008-03-12  Jim Meyering  <meyering@redhat.com>
17786
17787         Recognize optional cast of the argument to free.
17788         * build-aux/useless-if-before-free: Update regexps.
17789
17790         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
17791
17792 2008-03-11  Bruno Haible  <bruno@clisp.org>
17793
17794         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
17795         by a single package.
17796         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
17797         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
17798         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
17799         Reported by Sam Steingold <sds@gnu.org>.
17800
17801 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
17802
17803         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
17804         repositories.
17805
17806 2008-03-11  Bruno Haible  <bruno@clisp.org>
17807
17808         Avoid conflicts between local macro definitions.
17809         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
17810         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
17811
17812 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
17813             Bruno Haible  <bruno@clisp.org>
17814
17815         Make va_copy work with some version of xlc on AIX 5.1.
17816         * lib/stdarg.in.h: New file.
17817         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
17818         On AIX, use a <stdarg.h> file substitute.
17819         * modules/stdarg (Files): Add lib/stdarg.in.h.
17820         (Depends-on): Add include_next.
17821         (Makefile.am): Build a stdarg.h substitute if requested.
17822         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
17823
17824 2008-03-10  Bruno Haible  <bruno@clisp.org>
17825
17826         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
17827         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
17828         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
17829
17830 2008-03-10  Bruno Haible  <bruno@clisp.org>
17831
17832         * modules/stdlib (Depends-on): Add include_next, remove
17833         absolute-header.
17834
17835 2008-03-09  Bruno Haible  <bruno@clisp.org>
17836
17837         * lib/freadahead.h (freadahead): Document more precisely.
17838         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
17839         the sum of both buffer sizes.
17840         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
17841         * NEWS: Document the change.
17842
17843 2008-03-09  Bruno Haible  <bruno@clisp.org>
17844
17845         Extend freadptr to return also the buffer size.
17846         * lib/freadptr.h (freadptr): Add sizep argument.
17847         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
17848         (freadptr): Add sizep argument. Determine buffer size like freadahead
17849         does.
17850         * tests/test-freadptr.c: Don't include freadahead.h.
17851         (main): Adapt for new calling convention of freadptr.
17852         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
17853         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
17854         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
17855         tests/test-freadptr2.sh.
17856         (Depends): Remove freadahead.
17857         (TESTS): Add test-freadptr2.sh.
17858         (check_PROGRAMS): Add test-freadptr2.
17859
17860 2008-03-09  Bruno Haible  <bruno@clisp.org>
17861
17862         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
17863         Report and solution by Simon Josefsson.
17864
17865 2008-03-06  Bruno Haible  <bruno@clisp.org>
17866
17867         Make fflush after ungetc work on BSD platforms.
17868         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
17869         * tests/test-fflush2.c: New file.
17870         * tests/test-fflush2.sh: New file.
17871         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
17872         tests/test-fflush2.c.
17873         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
17874         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
17875
17876 2008-03-06  Eric Blake  <ebb9@byu.net>
17877
17878         Likewise for ftello.
17879         * modules/ftello (Dependencies): Add extensions.
17880         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
17881
17882 2008-03-06  Bruno Haible  <bruno@clisp.org>
17883
17884         * modules/fseeko (Dependencies): Add extensions.
17885         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
17886         Needed on glibc systems.
17887
17888 2008-03-06  Bruno Haible  <bruno@clisp.org>
17889
17890         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
17891         email address.
17892         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
17893
17894 2008-03-06  Bruno Haible  <bruno@clisp.org>
17895
17896         * users.txt: Add libgnupdf.
17897
17898 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
17899
17900         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
17901         (Header File Substitutes, Function Substitutes,
17902         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
17903         (Build robot for gnulib): Fix typo.
17904
17905 2008-03-06  Bruno Haible  <bruno@clisp.org>
17906
17907         * doc/gnulib-tool.texi (VCS Issues): Small updates.
17908         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
17909
17910 2008-03-06  Bruno Haible  <bruno@clisp.org>
17911
17912         * doc/func.texi: New file, extracted from doc/gnulib.texi.
17913         * doc/gnulib.texi: Include it.
17914
17915 2008-03-06  Simon Josefsson  <simon@josefsson.org>
17916
17917         * modules/func (License): Change license to unlimited; there was
17918         no LGPL parts in the module anyway.
17919
17920 2008-03-06  Simon Josefsson  <simon@josefsson.org>
17921
17922         * modules/__func__: Renamed to modules/func.
17923         * modules/__func__-tests: Renamed to modules/func-tests.
17924         * tests/test-__func__.c: Renamed to tests/test-func.c.
17925         * m4/__func__.m4: Renamed to m4/func.m4.
17926         * doc/gnulib.texi (__func__): Section renamed to func.
17927         Suggested by Eric Blake <ebb9@byu.net>.
17928
17929 2008-03-06  Simon Josefsson  <simon@josefsson.org>
17930
17931         * doc/gnulib.texi (__func__): Use C99 terminology when talking
17932         about __func__.  Make example self-contained.  Suggested by Eric
17933         Blake <ebb9@byu.net>.
17934
17935         * tests/test-__func__.c (main): Avoid extraneous () around __func.
17936         Suggested by Eric Blake <ebb9@byu.net>.
17937
17938 2008-03-06  Simon Josefsson  <simon@josefsson.org>
17939
17940         * modules/__func__: New file.
17941         * modules/__func__-tests: New file.
17942         * tests/test-__func__.c: New file.
17943         * m4/__func__.m4: New file.
17944         * doc/gnulib.texi (__func__): Document __func__ module.
17945
17946 2008-03-05  Simon Josefsson  <simon@josefsson.org>
17947
17948         * modules/byteswap (License): Re-license as LGPLv2+.
17949
17950 2008-03-05  Simon Josefsson  <simon@josefsson.org>
17951
17952         * doc/Makefile: Add pdf target.
17953
17954 2008-03-05  Simon Josefsson  <simon@josefsson.org>
17955
17956         * modules/inline (License): Use 'unlimited', since there are only
17957         *.m4 files in this module.
17958
17959 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
17960             Bruno Haible  <bruno@clisp.org>
17961
17962         Add support for HP C 7.1 on OpenVMS 8.3.
17963         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
17964
17965 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
17966
17967         Update VMS specifics.
17968         * lib/getopt.c [VMS]: Remove include of unixlib.h.
17969
17970 2008-03-02  Jim Meyering  <meyering@redhat.com>
17971
17972         Remove the last dependency on the "free" module.
17973         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
17974         Reported by Bob Proulx.
17975
17976         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
17977
17978         Remove useless "if" tests before free.  Deprecate "free" module.
17979         * doc/posix-functions/free.texi: Mention that this
17980         module is no longer useful.
17981         * modules/free (Notice): Say this module is obsolete.
17982         * modules/readutmp (Depends-on): Remove free.
17983         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
17984         * lib/putenv.c (putenv): Likewise.
17985         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
17986         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
17987         * tests/test-c-strcasestr.c (main): Likewise.
17988         * tests/test-c-strstr.c (main): Likewise.
17989         * tests/test-mbscasestr1.c (main): Likewise.
17990         * tests/test-mbscasestr2.c (main): Likewise.
17991         * tests/test-mbsstr1.c (main): Likewise.
17992         * tests/test-mbsstr2.c (main): Likewise.
17993         * tests/test-memmem.c (main): Likewise.
17994         * tests/test-strcasestr.c (main): Likewise.
17995         * tests/test-striconv.c (main): Likewise.
17996         * tests/test-striconveh.c (main): Likewise.
17997         * tests/test-striconveha.c (main): Likewise.
17998         * tests/test-strstr.c (main): Likewise.
17999
18000         * build-aux/git-version-gen: Adjust a comment and the Usage string.
18001
18002         bootstrap: sync from coreutils again
18003         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
18004
18005 2008-03-01  Jim Meyering  <meyering@redhat.com>
18006
18007         bootstrap: sync from coreutils
18008         * build-aux/bootstrap (update_po_files): Copy a .po file into place
18009         also when the target doesn't exist.
18010
18011 2008-03-01  Eric Blake  <ebb9@byu.net>
18012
18013         Fix bugs in last patch.
18014         * lib/memchr2.c (memchr2): Fix typo.
18015         * tests/test-memchr2.c: Test previous bug, and don't use GNU
18016         extension.
18017         Reported by Bruce Korb.
18018
18019         New module 'memchr2'.
18020         * modules/memchr2: New file.
18021         * modules/memchr2-tests: Likewise.
18022         * lib/memchr2.h: Likewise.
18023         * lib/memchr2.c: Likewise, based on memchr.c.
18024         * tests/test-memchr2.c: New test.
18025         * MODULES.html.sh (String handling): Add memchr2.
18026
18027 2008-02-29  Bruno Haible  <bruno@clisp.org>
18028
18029         * modules/freadseek-tests: New file.
18030         * tests/test-freadseek.sh: New file.
18031         * tests/test-freadseek.c: New file.
18032
18033         New module 'freadseek'.
18034         * modules/freadseek: New file.
18035         * lib/freadseek.h: New file.
18036         * lib/freadseek.c: New file.
18037         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
18038
18039 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
18040
18041         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
18042         wydawca.
18043
18044         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
18045         program_invocation_name and program_invocation_short_name are
18046         present.
18047
18048 2008-02-28  Bruno Haible  <bruno@clisp.org>
18049
18050         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
18051         * tests/test-freadptr.sh: Also test non-seekable stdin.
18052
18053 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
18054
18055         * build-aux/bootstrap (source_base, m4_base)
18056         (doc_base, tests_base): New variables.
18057         (gnulib_tool_options): Do not hardcode base directories, use
18058         the above variables instead.
18059
18060 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
18061
18062         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
18063
18064 2008-02-28  Bruno Haible  <bruno@clisp.org>
18065
18066         * modules/freadptr-tests: New file.
18067         * tests/test-freadptr.sh: New file.
18068         * tests/test-freadptr.c: New file.
18069
18070         New module 'freadptr'.
18071         * modules/freadptr: New file.
18072         * lib/freadptr.h: New file.
18073         * lib/freadptr.c: New file.
18074         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
18075
18076 2008-02-26  Karl Berry  <karl@freefriends.org>
18077
18078         Sync from Libtool:
18079         * libltdl/argz.c (argz_add, argz_count): New functions.
18080         * libltdl/argz.in.h: Declare them.
18081         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
18082
18083 2008-02-22  Bruno Haible  <bruno@clisp.org>
18084
18085         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
18086         is a pointer type.  Needed for HP-UX 10.
18087         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
18088         * doc/posix-functions/gmtime_r.texi: Likewise.
18089         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
18090
18091 2008-02-24  Bruno Haible  <bruno@clisp.org>
18092
18093         * modules/environ-tests: New file.
18094         * tests/test-environ.c: New file.
18095
18096         New module 'environ'.
18097         * modules/environ: New file.
18098         * lib/unistd.in.h (environ): New declaration.
18099         * m4/environ.m4: New file.
18100         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
18101         after use.
18102         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
18103         HAVE_DECL_ENVIRON.
18104         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
18105         HAVE_DECL_ENVIRON.
18106         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
18107         wrong claim that 'environ' is missing on some systems.
18108         * modules/execute (Depends-on): Add environ.
18109         * lib/execute.c (environ): Remove fallback declaration.
18110         * modules/pipe (Depends-on): Add environ.
18111         * lib/pipe.c (environ): Remove fallback declaration.
18112         * modules/setenv (Depends-on): Add environ.
18113         * lib/setenv.c (environ): Remove fallback declaration.
18114         * modules/unsetenv (Depends-on): Add environ.
18115         * lib/unsetenv.c (environ): Remove fallback declaration.
18116         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
18117         m4/environ.m4.
18118         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
18119         (gl_PREREQ_UNSETENV): Likewise.
18120
18121 2008-02-24  Bruno Haible  <bruno@clisp.org>
18122
18123         * doc/posix-functions/environ.texi: Document the MacOS X problem.
18124
18125 2008-02-20  Bob Proulx  <bob@proulx.com>
18126
18127         Enable use of older two part flavor 'git describe'.
18128         * build-aux/git-version-gen: If using the older two part flavor of
18129         git version then recreate the third part now present in the
18130         newer three part flavor of git describe.
18131
18132 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
18133
18134         * lib/fts.c (fts_build): Typo correction to comment.
18135
18136 2008-02-17  Bruno Haible  <bruno@clisp.org>
18137
18138         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
18139         generating no-op conflicts.
18140
18141 2008-02-17  Bruno Haible  <bruno@clisp.org>
18142
18143         Speed up by 10%.
18144         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
18145         result_entries, rather than an index-based loop.
18146
18147 2008-02-17  Bruno Haible  <bruno@clisp.org>
18148
18149         Speed up by 25%.
18150         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
18151         'hashcode_cached'.
18152         (entry_create): New function.
18153         (entry_hashcode): Use the cached hashcode if possible.
18154         (read_changelog_file, try_split_merged_entry): Use entry_create.
18155
18156 2008-02-17  Bruno Haible  <bruno@clisp.org>
18157
18158         Speed up from O(n^2) to O(n) for long ChangeLog files.
18159         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
18160         (read_changelog_file): Change implementation of entries_reversed list
18161         to rbtreehash.
18162         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
18163
18164 2008-02-17  Bruno Haible  <bruno@clisp.org>
18165
18166         New option --split-merged-entry.
18167         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
18168         (find_paragraph_end, try_split_merged_entry): New functions.
18169         (long_options): Add option --split-merged-entry.
18170         (usage): Document option --split-merged-entry.
18171         (main): Implement option --split-merged-entry.
18172         Reported by Eric Blake.
18173
18174 2008-02-17  Bruno Haible  <bruno@clisp.org>
18175
18176         * lib/git-merge-changelog.c: Include c-strstr.h.
18177         (main): Support the "git pull --rebase" situation.
18178         * modules/git-merge-changelog (Depends-on): Add c-strstr.
18179         Reported by Eric Blake.
18180
18181 2008-02-16  Eric Blake  <ebb9@byu.net>
18182
18183         Avoid doubling \ in common case of "c-maybe" quoting style.
18184         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
18185         eliding outer quotes.
18186         * lib/quotearg.h: Document this.
18187         * tests/test-quotearg.c (result_strings, inputs, results_g)
18188         (flag_results, locale_results): Test it by adding a new string to
18189         each test group.
18190         (compare_strings): Test new string.
18191
18192 2008-02-13  Eric Blake  <ebb9@byu.net>
18193
18194         Avoid trigraph quoting in default output.
18195         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
18196         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
18197         unless explicitly requested.
18198         * tests/test-quotearg.c (flag_results, main): Add additional tests.
18199
18200 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
18201
18202         Don't rely on signed integer overflowing to negative value.
18203         * lib/getugroups.c (getugroups): Include <limits.h>.
18204         Instead, compare against INT_MAX, and increment only if the test passes.
18205
18206 2008-02-13  Jim Meyering  <meyering@redhat.com>
18207         and Eric Blake  <ebb9@byu.net>
18208
18209         Avoid shadowing warning and compile errors on Linux.
18210         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
18211         forwarding macros on Linux.
18212         (dcgettext): Define a stub, for Linux.
18213         (results_g, main): Avoid warnings.
18214
18215 2008-02-12  Eric Blake  <ebb9@byu.net>
18216
18217         Silence warning in last patch.
18218         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
18219
18220         Quotearg part 4: add tests, fix c-maybe colon quoting.
18221         * lib/quotearg.h: Improve documentation.
18222         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
18223         escapes when adding outer quotes.  When quoting trigraphs, use
18224         valid C notation.  When quoting NUL, omit extra characters if next
18225         character is not digit.  Alter prototype.
18226         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
18227         callers.
18228         * modules/quotearg-tests: New module.
18229         * tests/test-quotearg.c: New test.
18230
18231 2008-02-07  Eric Blake  <ebb9@byu.net>
18232
18233         Quotearg part 3: add flag to control outer quote elision.
18234         * lib/quotearg.h (c_maybe_quoting_style): New style.
18235         (enum quoting_flags): Better documentation of flags.
18236         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
18237         c-maybe style.
18238         (quotearg_buffer_restyled): Handle new flag to elide outer
18239         quotes.
18240
18241         Quotearg part 2: add flag that can control NUL elision.
18242         * lib/quotearg.h (set_quoting_flags): New prototype.
18243         * lib/quotearg.c (struct quoting_options): Add flag field.
18244         (set_quoting_flags): New function.
18245         (quotearg_buffer_restyled): Add flags parameter.
18246         (quotearg_alloc_mem): Set the flag if length cannot be returned.
18247         (quotearg_n_options): Set the flag, since length cannot be
18248         returned.
18249         (quoting_options_from_style): Default flags correctly.
18250
18251         Quotearg part 1: more wrappers, restore quotearg_char state.
18252         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
18253         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
18254         (quotearg_colon_mem): New wrappers.
18255         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
18256         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
18257         functions.
18258         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
18259         (quotearg_colon_mem): New functions.
18260
18261 2008-02-11  Bruno Haible  <bruno@clisp.org>
18262
18263         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
18264         library in the current directory: it does not work with parallel make.
18265         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
18266
18267 2008-02-11  Bruno Haible  <bruno@clisp.org>
18268
18269         * .gitattributes: New file.
18270
18271 2008-02-11  Jim Meyering  <meyering@redhat.com>
18272
18273         useless-if-before-free: Fix reversed exit values.
18274         * build-aux/useless-if-before-free: Use correct values
18275         for EXIT_MATCH and EXIT_NO_MATCH.
18276
18277         * build-aux/useless-if-before-free: Close stdout carefully.
18278
18279 2008-02-10  Bruno Haible  <bruno@clisp.org>
18280
18281         New module 'git-merge-changelog'.
18282         * modules/git-merge-changelog: New file.
18283         * lib/git-merge-changelog.c: New file.
18284
18285 2008-02-10  Jim Meyering  <meyering@redhat.com>
18286
18287         useless-if-before-free: New option: --list (-l).
18288
18289         useless-if-before-free: Don't exit immediately upon open failure.
18290         * build-aux/useless-if-before-free: Exit 2 for errors.
18291         Upon failure to open a file, don't exit immediately.
18292         Rather, just warn and continue with any remaining files.
18293
18294 2008-02-10  Bruno Haible  <bruno@clisp.org>
18295
18296         New abstract list operation 'node_set_value'.
18297         * lib/gl_list.h (gl_list_node_set_value): New function.
18298         (struct gl_list_implementation): New field node_set_value.
18299         * lib/gl_list.c (gl_list_node_set_value): New function.
18300         * lib/gl_array_list.c (gl_array_node_set_value): New function.
18301         (gl_array_list_implementation): Update.
18302         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
18303         (gl_carray_list_implementation): Update.
18304         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
18305         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
18306         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
18307         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
18308         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
18309         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
18310         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
18311         Update.
18312         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
18313         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
18314         (gl_sublist_list_implementation): Update.
18315
18316 2008-02-10  Bruno Haible  <bruno@clisp.org>
18317
18318         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
18319         Needed when ELEMENT is #defined to 'some_type *'.
18320
18321 2008-02-10  Jim Meyering  <meyering@redhat.com>
18322
18323         New script and module: useless-if-before-free
18324         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
18325         * build-aux/useless-if-before-free: New file.
18326         * modules/useless-if-before-free: New file.
18327
18328         * build-aux/gitlog-to-changelog: Use committer date, not author date.
18329
18330         xstrtol_error: Fix typo.
18331         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
18332         s/exit_failure/exit_status/.
18333
18334 2008-02-09  Jim Meyering  <meyering@redhat.com>
18335
18336         New script and module: gitlog-to-changelog
18337         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
18338         * modules/gitlog-to-changelog: New file.
18339         * build-aux/gitlog-to-changelog: New file.
18340
18341 2008-02-08  Jim Meyering  <meyering@redhat.com>
18342
18343         Avoid two "parameter unused" warnings.
18344         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
18345         Mark "st" as used.
18346
18347         Use "git COMMAND", not "git-COMMAND".
18348         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
18349         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
18350         * build-aux/git-version-gen: Use "git status", not "git-status".
18351
18352 2008-02-07  Bruno Haible  <bruno@clisp.org>
18353
18354         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
18355         Avoids a crash on Windows Vista.
18356         Reported by Adam Strzelecki <ono@java.pl> via
18357         Simon Josefsson <simon@josefsson.org>.
18358
18359 2008-02-06  Bruno Haible  <bruno@clisp.org>
18360
18361         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
18362         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
18363         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
18364         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
18365         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
18366         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
18367         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
18368         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
18369         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
18370         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
18371         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
18372         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
18373         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
18374         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
18375         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
18376         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
18377         left-adjust flag.
18378         * tests/test-snprintf-posix.h (test_function): Likewise.
18379         * tests/test-sprintf-posix.h (test_function): Likewise.
18380         * tests/test-vasprintf-posix.c (test_function): Likewise.
18381         * doc/posix-functions/fprintf.texi: Update.
18382         * doc/posix-functions/printf.texi: Update.
18383         * doc/posix-functions/snprintf.texi: Update.
18384         * doc/posix-functions/sprintf.texi: Update.
18385         * doc/posix-functions/vfprintf.texi: Update.
18386         * doc/posix-functions/vprintf.texi: Update.
18387         * doc/posix-functions/vsnprintf.texi: Update.
18388         * doc/posix-functions/vsprintf.texi: Update.
18389         Reported by Peter Fales <psfales@alcatel-lucent.com>.
18390
18391 2008-02-06  Bruno Haible  <bruno@clisp.org>
18392
18393         Fix bug introduced on 2008-01-26.
18394         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
18395
18396 2008-02-06  Bruno Haible  <bruno@clisp.org>
18397
18398         Fix bug introduced on 2007-06-10.
18399         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
18400         !NEED_PRINTF_FLAG_ZERO.
18401
18402 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
18403
18404         getloadavg: use libperfstat on AIX5
18405         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
18406
18407 2008-02-03  Bruno Haible  <bruno@clisp.org>
18408
18409         * lib/diffseq.h: Add comments about required #includes.
18410         Reported by Michael Biggs <gnulib@doubleplum.net>.
18411
18412 2008-02-01  Bruno Haible  <bruno@clisp.org>
18413
18414         * users.txt: Add gnuit.
18415
18416 2008-01-31  Bruno Haible  <bruno@clisp.org>
18417
18418         * lib/md4.c (set_uint32): Mark as inline.
18419         * lib/md5.c (set_uint32): Likewise.
18420         * lib/sha1.c (set_uint32): Likewise.
18421         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
18422         * m4/md5.m4 (gl_MD5): Likewise.
18423         * m4/sha1.m4 (gl_SHA1): Likewise.
18424
18425 2008-01-31  Jim Meyering  <meyering@redhat.com>
18426
18427         Use "sizeof VAR", rather than a literal "4".
18428         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
18429         * lib/md4.c (md4_read_ctx): Likewise.
18430         * lib/sha1.c (sha1_read_ctx): Likewise.
18431
18432 2008-01-31  Simon Josefsson  <simon@josefsson.org>
18433
18434         * tests/test-sha1.c: New file, based on test-md5.c.
18435
18436         * modules/crypto/sha1-tests: New file.
18437
18438 2008-01-31  Simon Josefsson  <simon@josefsson.org>
18439
18440         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
18441
18442 2008-01-31  Jim Meyering  <meyering@redhat.com>
18443
18444         Prefer "sizeof v" over the equivalent "4".
18445         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
18446         * lib/md5.c (set_uint32): Likewise.
18447         * lib/sha1.c (set_uint32): Likewise.
18448
18449 2008-01-31  Simon Josefsson  <simon@josefsson.org>
18450
18451         * lib/sha1.c (set_uint32): Mark function as static.
18452
18453 2008-01-31  Simon Josefsson  <simon@josefsson.org>
18454
18455         md2: clarify comments to say that alignment is not required.
18456         * lib/md2.h: Remove warning about alignment in comment.
18457         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
18458         never been required.
18459
18460 2008-01-31  Simon Josefsson  <simon@josefsson.org>
18461
18462         md4: adapt alignment constraint fix from sha1.
18463         * lib/md4.c (set_uint32): New function, from sha1.c
18464         (md4_read_ctx): Use it.
18465         (md4_finish_ctx): Doc fix.
18466         * lib/md4.h: Doc fix.
18467
18468 2008-01-31  Simon Josefsson  <simon@josefsson.org>
18469
18470         md5: adapt alignment constraint fix from sha1.
18471         * lib/md5.c (set_uint32): New function, from sha1.c
18472         (md5_read_ctx): Use it.
18473         (md5_finish_ctx): Doc fix.
18474         * lib/md5.h: Doc fix.
18475
18476 2008-01-30  Peter Palfrader  <weasel@debian.org>
18477
18478         sha1: remove the result buffer alignment constraint
18479         * lib/sha1.c (set_uint32): New function.
18480         (sha1_read_ctx): Rewrite to remove the result buffer alignment
18481         constraint.
18482         (sha1_finish_ctx): Remove comment warning about alignment constraint.
18483         * lib/sha1.h: Likewise.
18484
18485 2008-01-30  Andreas Schwab  <schwab@suse.de>
18486             Bruno Haible  <bruno@clisp.org>
18487
18488         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
18489         correct definition of LDBL_MIN_EXP.
18490
18491 2008-01-30  Karl Berry  <karl@gnu.org>
18492
18493         * config/srclist-update: try to preserve x bit on updates.
18494         * config/srclistvars.sh: update for karl.
18495
18496 2008-01-29  Jim Meyering  <meyering@redhat.com>
18497
18498         vasnprintf.c: Avoid warning about unused label
18499         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
18500         "overflow" label definition and associated code with the
18501         same cpp condition that guards the sole use of that label.
18502
18503 2008-01-26  Bruno Haible  <bruno@clisp.org>
18504
18505         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
18506         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
18507         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
18508         * lib/isnanl-nolibm.h (isnanl): Likewise.
18509         Reported by Paul Eggert <eggert@cs.ucla.edu>.
18510
18511 2008-01-26  Bruno Haible  <bruno@clisp.org>
18512
18513         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
18514         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
18515
18516 2008-01-26  Bruno Haible  <bruno@clisp.org>
18517
18518         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
18519         GCC >= 4.0 built-in.
18520         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
18521
18522 2008-01-26  Bruno Haible  <bruno@clisp.org>
18523
18524         Rename isnan, applicable to 'double' only, to isnand.
18525         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
18526         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
18527         (configure.ac): Update.
18528         (Include): Replace "isnan.h" with "isnand.h".
18529         * m4/isnand.m4: Renamed from m4/isnan.m4.
18530         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
18531         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
18532         instead of isnan.c.
18533         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
18534         instead of HAVE_ISNAN_IN_LIBC.
18535         (isnand): Renamed from isnan.
18536         * lib/isnand.c: New file.
18537         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
18538         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
18539         (Makefile.am): Update.
18540         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
18541         Include isnand.h instead of isnan.h.
18542         (main): Test isnand instead of isnan.
18543         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
18544         isnan-nolibm.
18545         * modules/frexp (Depends-on): Likewise.
18546         * modules/frexp-tests (Depends-on): Likewise.
18547         * modules/frexp-nolibm (Depends-on): Likewise.
18548         * modules/frexp-nolibm-tests (Depends-on): Likewise.
18549         * modules/isfinite (Depends-on): Likewise.
18550         * modules/round-tests (Depends-on): Likewise.
18551         * modules/signbit (Depends-on): Likewise.
18552         * modules/signbit-tests (Depends-on): Likewise.
18553         * modules/snprintf-posix (Depends-on): Likewise.
18554         * modules/sprintf-posix (Depends-on): Likewise.
18555         * modules/trunc-tests (Depends-on): Likewise.
18556         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
18557         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
18558         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
18559         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
18560         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
18561         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
18562         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
18563         * modules/vasnprintf-posix (Depends-on): Likewise.
18564         * modules/vasprintf-posix (Depends-on): Likewise.
18565         * modules/vfprintf-posix (Depends-on): Likewise.
18566         * modules/vsnprintf-posix (Depends-on): Likewise.
18567         * modules/vsprintf-posix (Depends-on): Likewise.
18568         * lib/frexp.c: Include isnand.h instead of isnan.h.
18569         (ISNAN): Set to isnand instead of isnan.
18570         * lib/isfinite.c: Include isnand.h instead of isnan.h.
18571         (gl_isfinited): Use isnand instead of isnan.
18572         * lib/signbitd.c: Include isnand.h instead of isnan.h.
18573         (gl_signbitd): Use isnand instead of isnan.
18574         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
18575         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
18576         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
18577         (main): Use isnand instead of isnan.
18578         * tests/test-round1.c: Include isnand.h.
18579         (main): Use isnand instead of isnan.
18580         * tests/test-round2.c: Include isnand.h instead of isnan.h.
18581         (ISNAN): Set to isnand instead of isnan.
18582         * tests/test-trunc1.c: Include isnand.h.
18583         (main): Use isnand instead of isnan.
18584         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
18585         (equal): Use isnand instead of isnan.
18586         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
18587         isnand-nolibm.
18588         * NEWS: Mention the change.
18589
18590 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
18591             Bruno Haible  <bruno@clisp.org>
18592
18593         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
18594         the GCC builtins for signbits are present and set
18595         REPLACE_SIGNBIT_USING_GCC if so.
18596         * lib/math.in.h (signbit): Define using GCC builtins if
18597         REPLACE_SIGNBIT_USING_GCC is set.
18598         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
18599         REPLACE_SIGNBIT_USING_GCC.
18600         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
18601
18602 2008-01-25  Jim Meyering  <meyering@redhat.com>
18603
18604         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
18605         * lib/poll.c: Include <config.h>, not "config.h".
18606         * tests/test-getaddrinfo.c: Likewise.
18607
18608 2008-01-25  Simon Josefsson  <simon@josefsson.org>
18609
18610         * modules/sockets-tests: New file.
18611
18612 2008-01-24  Simon Josefsson  <simon@josefsson.org>
18613
18614         * modules/sockets: New module, can be used to call WSA_Startup and
18615         WSA_Cleanup when needed.
18616
18617         * lib/sockets.h, lib/sockets.c: New files.
18618
18619         * m4/sockets.m4: New file.
18620
18621         * tests/test-sockets.c: New file.
18622
18623 2008-01-19  Bruno Haible  <bruno@clisp.org>
18624
18625         * doc/posix-headers: Renamed from doc/headers.
18626         * doc/posix-functions: Renamed from doc/functions.
18627         * doc/gnulib.texi: Update.
18628
18629 2008-01-19  Bruno Haible  <bruno@clisp.org>
18630
18631         * doc/glibc-functions/strcasestr.texi: Include contents of
18632         doc/functions/strcasestr.texi, fixing the list of platforms.
18633         * doc/functions/strcasestr.texi: Remove file.
18634
18635 2008-01-19  Bruno Haible  <bruno@clisp.org>
18636
18637         * doc/glibc-functions/memmem.texi: Include contents of
18638         doc/functions/memmem.texi.
18639         * doc/functions/memmem.texi: Remove file.
18640
18641 2008-01-18  Bruno Haible  <bruno@clisp.org>
18642
18643         * doc/glibc-functions/*.texi: New files.
18644         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
18645         to use the new files.
18646
18647 2008-01-17  Bruno Haible  <bruno@clisp.org>
18648
18649         * tests/test-gethostname.c (main): Fix printf statement.
18650
18651 2008-01-17  Simon Josefsson  <simon@josefsson.org>
18652
18653         * modules/gethostname-tests: New file.
18654
18655         * tests/test-gethostname.c: New file.
18656
18657 2008-01-17  Simon Josefsson  <simon@josefsson.org>
18658
18659         * lib/gethostname.c: Include string.h unconditionally, strncpy is
18660         used by the UNAME case.  Reported by Bruno Haible
18661         <bruno@clisp.org>.
18662
18663 2008-01-17  Eric Blake  <ebb9@byu.net>
18664
18665         Convert c-strcasestr to be more efficient.
18666         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
18667         (Depends-on): Add c-strcase, remove malloca, strnlen.
18668         * tests/test-c-strcasestr.c (main): Enhance test.
18669         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
18670
18671 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
18672
18673         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
18674         Use it in creating po/Makevars.
18675
18676 2008-01-15  Simon Josefsson  <simon@josefsson.org>
18677
18678         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
18679         Applications that requires it should initialize libgcrypt
18680         manually.
18681
18682 2008-01-16  Simon Josefsson  <simon@josefsson.org>
18683
18684         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
18685
18686 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
18687
18688         Fix problem with getdate on mingw32 reported by Simon Josefsson
18689         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
18690         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
18691         tzname", when deciding whether to declare tzname.
18692         * lib/strftime.c (tzname): Likewise.
18693
18694 2008-01-15  Bruno Haible  <bruno@clisp.org>
18695
18696         Work around a MacOS X 10.5 bug in frexpl().
18697         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
18698         * doc/functions/frexpl.texi: Document the bug.
18699         Reported by Elias Pipping <pipping@gentoo.org>.
18700
18701 2008-01-14  Eric Blake  <ebb9@byu.net>
18702
18703         Touch up previous patch.
18704         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
18705         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
18706
18707         Convert strcasestr module to use Two-Way algorithm.
18708         * modules/strcasestr-simple: New module, based on the old
18709         strcasestr, but with Two-Way rather than KMP.
18710         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
18711         * lib/string.in.h (rpl_strcasestr): Declare.
18712         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
18713         performance.
18714         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
18715         * modules/string (Makefile.am): Support strcasestr.
18716         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
18717         * modules/strcasestr-tests (Depends-on): Check for alarm.
18718         * tests/test-strcasestr.c: Augment test.
18719         * lib/str-two-way.h: Clean up stray macro.
18720         * NEWS: Document new module.
18721         * MODULES.html.sh (string handling): Likewise.
18722         * doc/functions/strcasestr.texi: New file.
18723         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
18724         here, since it is not a POSIX function.
18725
18726 2008-01-14  Colin Watson  <cjwatson@debian.org>
18727             Bruno Haible  <bruno@clisp.org>
18728
18729         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
18730         works fine; if not, set REPLACE_STRSIGNAL.
18731         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
18732         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
18733         REPLACE_STRSIGNAL.
18734         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
18735         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
18736         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
18737
18738 2008-01-14  Bruno Haible  <bruno@clisp.org>
18739
18740         * modules/strsignal (Include): Change to <string.h>.
18741
18742 2008-01-14  Colin Watson  <cjwatson@debian.org>
18743
18744         * modules/argp (Notice): Add a notice recommending to change
18745         XGETTEXT_OPTIONS.
18746         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
18747
18748 2008-01-13  Colin Watson  <cjwatson@debian.org>
18749
18750         * modules/strsignal-tests: New file.
18751         * tests/test-strsignal.c: New file.
18752
18753         * lib/strsignal.c: New file, from glibc with modifications.
18754         * lib/siglist.h: New file, from glibc with modifications.
18755         * lib/string.in.h (strsignal): New declaration.
18756         * m4/strsignal.m4: New file.
18757         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
18758         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
18759         * modules/strsignal: New file.
18760         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
18761         HAVE_DECL_STRSIGNAL.
18762
18763 2008-01-13  Bruno Haible  <bruno@clisp.org>
18764
18765         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
18766         locale encoding is not ASCII. Needed for OpenBSD 4.0.
18767         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
18768         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
18769
18770 2008-01-13  Bruno Haible  <bruno@clisp.org>
18771
18772         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
18773         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
18774         * lib/argp.h (__attribute__): Likewise.
18775         * lib/c-stack.c (__attribute__): Likewise.
18776         * lib/error.h (__attribute__): Likewise.
18777         * lib/fts.c (__attribute__): Likewise.
18778         * lib/openat.h (__attribute__): Likewise.
18779         * lib/stdio.in.h (__attribute__): Likewise.
18780         * lib/string.in.h (__attribute__): Likewise.
18781         * lib/utimens.c (__attribute__): Likewise.
18782         * lib/vasnprintf.h (__attribute__): Likewise.
18783         * lib/xalloc.h (__attribute__): Likewise.
18784         * lib/xprintf.h (__attribute__): Likewise.
18785         * lib/xstrtol.h (__attribute__): Likewise.
18786         * lib/xvasprintf.h (__attribute__): Likewise.
18787
18788 2008-01-12  Bruno Haible  <bruno@clisp.org>
18789
18790         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
18791         * doc/glibc-headers/a.out.texi: New file.
18792         * doc/glibc-headers/aliases.texi: New file.
18793         * doc/glibc-headers/alloca.texi: New file.
18794         * doc/glibc-headers/ar.texi: New file.
18795         * doc/glibc-headers/argp.texi: New file.
18796         * doc/glibc-headers/argz.texi: New file.
18797         * doc/glibc-headers/byteswap.texi: New file.
18798         * doc/glibc-headers/crypt.texi: New file.
18799         * doc/glibc-headers/endian.texi: New file.
18800         * doc/glibc-headers/envz.texi: New file.
18801         * doc/glibc-headers/err.texi: New file.
18802         * doc/glibc-headers/error.texi: New file.
18803         * doc/glibc-headers/execinfo.texi: New file.
18804         * doc/glibc-headers/fpu_control.texi: New file.
18805         * doc/glibc-headers/fstab.texi: New file.
18806         * doc/glibc-headers/fts.texi: New file.
18807         * doc/glibc-headers/getopt.texi: New file.
18808         * doc/glibc-headers/ieee754.texi: New file.
18809         * doc/glibc-headers/ifaddrs.texi: New file.
18810         * doc/glibc-headers/libintl.texi: New file.
18811         * doc/glibc-headers/mcheck.texi: New file.
18812         * doc/glibc-headers/mntent.texi: New file.
18813         * doc/glibc-headers/obstack.texi: New file.
18814         * doc/glibc-headers/paths.texi: New file.
18815         * doc/glibc-headers/printf.texi: New file.
18816         * doc/glibc-headers/pty.texi: New file.
18817         * doc/glibc-headers/resolv.texi: New file.
18818         * doc/glibc-headers/shadow.texi: New file.
18819         * doc/glibc-headers/sysexits.texi: New file.
18820         * doc/glibc-headers/ttyent.texi: New file.
18821
18822 2008-01-12  Jim Meyering  <meyering@redhat.com>
18823
18824         announce-gen: emit Gnulib's git-based version string.
18825         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
18826         New option --gnulib-version=V, where V is expected to be
18827         the output of running git describe in the gnulib directory.
18828         (get_tool_versions): Request feedback on xdelta.  I suspect it's
18829         not useful, and plan to stop publishing an xdelta file with each
18830         coreutils release.
18831
18832         * build-aux/announce-gen: Also check for lzma-compressed files.
18833
18834 2008-01-11  Bruno Haible  <bruno@clisp.org>
18835
18836         * tests/test-memmem.c (main): Increase maximum allowed time.
18837         * tests/test-strstr.c (main): Likewise.
18838
18839 2008-01-11  Bruno Haible  <bruno@clisp.org>
18840
18841         * doc/functions/memmem.texi: Add more precisions about platforms.
18842         * doc/functions/strstr.texi: Likewise.
18843
18844 2008-01-10  Eric Blake  <ebb9@byu.net>
18845
18846         * m4/strstr.m4: Delete cruft from copy-n-paste.
18847         Reported by Bruno Haible.
18848
18849 2008-01-10  Bruno Haible  <bruno@clisp.org>
18850
18851         Make c-strstr rely on strstr.
18852         * lib/c-strstr.c: Don't include str-kmp.h.
18853         (c_strstr): Define in terms of strstr.
18854         * modules/c-strstr (Files): Remove lib/str-kmp.h.
18855         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
18856
18857 2008-01-10  Bruno Haible  <bruno@clisp.org>
18858
18859         * doc/gnulib.texi (String Functions in C Locale): New section.
18860         * doc/c-ctype.texi: New file.
18861         * doc/c-strcase.texi: New file.
18862         * doc/c-strcaseeq.texi: New file.
18863         * doc/c-strcasestr.texi: New file.
18864         * doc/c-strstr.texi: New file.
18865         * doc/c-strtod.texi: New file.
18866         * doc/c-strtold.texi: New file.
18867
18868 2008-01-10  Eric Blake  <ebb9@byu.net>
18869
18870         * lib/relocatable.h: Fix a comment.
18871
18872 2008-01-10  Eric Blake  <ebb9@byu.net>
18873
18874         Share two-way algorithm.
18875         * lib/str-two-way.h: New file, merged from...
18876         * lib/memmem.c: ...here...
18877         * lib/strstr.c: ...and here.
18878         * modules/memmem (Files): Use it.
18879         * modules/strstr (Files): Likewise.
18880
18881         Avoid quadratic strstr implementations.
18882         * lib/strstr.c: New file.
18883         * m4/strstr.m4: Likewise.
18884         * modules/strstr: Likewise.
18885         * modules/strstr-tests: Likewise.
18886         * tests/test-strstr.c: Likewise.
18887         * lib/string.in.h (rpl_strstr): Declare.
18888         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
18889         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
18890         * modules/string (Makefile.am): Likewise.
18891         * MODULES.html.sh (string handling): Mention new module.
18892         * doc/functions/strstr.texi (strstr): Document the bug.
18893
18894 2008-01-10  Bruno Haible  <bruno@clisp.org>
18895
18896         * lib/relocatable.h (relocate): State whether result is freshly
18897         allocated or not.
18898         * lib/relocatable.c (relocate): Return a freshly allocated string
18899         instead of a pointer to a privately held string.
18900         Reported by Sylvain Beucler <beuc@gnu.org>.
18901
18902 2008-01-10  Colin Watson  <cjwatson@debian.org>
18903
18904         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
18905         s/S_ISNLK/S_ISLNK/.
18906
18907 2008-01-09  Bruno Haible  <bruno@clisp.org>
18908
18909         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
18910         and other files.
18911         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
18912         if it's only a guess.
18913         * modules/memmem: Simplify by depending on memmem-simple.
18914
18915 2008-01-09  Bruno Haible  <bruno@clisp.org>
18916
18917         Work around OpenBSD 4.0 tdelete() bug.
18918         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
18919         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
18920         macros and don't redefine the enum values.
18921         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
18922         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
18923         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
18924
18925 2008-01-09  Bruno Haible  <bruno@clisp.org>
18926
18927         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
18928         (main): Don't perform the tests if setlocale did not install a UTF-8
18929         locale. Needed on OpenBSD 4.0.
18930         * modules/wcwidth-tests (Depends-on): Add localcharset.
18931
18932 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
18933
18934         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
18935         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
18936         * NEWS: announce this.
18937         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
18938
18939 2008-01-09  Simon Josefsson  <simon@josefsson.org>
18940         and Eric Blake  <ebb9@byu.net>
18941
18942         Add memmem-simple module.
18943         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
18944         (gl_FUNC_MEMMEM): Separate performance from presence checks.
18945         * modules/memmem-simple: New file.
18946         * modules/memmem (Description): Tweak.
18947         * MODULES.html.sh (string handling): Mention new module.
18948         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
18949         addressed by memmem-simple.
18950         * NEWS: Document the difference.
18951
18952 2008-01-09  Eric Blake  <ebb9@byu.net>
18953
18954         Give gcc some memmem optimization hints.
18955         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
18956         (strcasestr): Declare as pure.
18957         * modules/memmem (Maintainer): Claim my implementation.
18958
18959 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
18960
18961         Support AIX 6.1 and higher.
18962         * build-aux/config.libpath: Likewise.
18963         * build-aux/config.rpath: Likewise.
18964
18965 2008-01-08  Jim Meyering  <meyering@redhat.com>
18966             Bruno Haible  <bruno@clisp.org>
18967
18968         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
18969         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
18970         Reported by Peter Fales in
18971         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
18972
18973 2008-01-08  Bruno Haible  <bruno@clisp.org>
18974
18975         * modules/unictype/category-of (Depends-on): Add
18976         unictype/category-none.
18977         * modules/unictype/category-and-tests (Depends-on): Add
18978         unictype/category-{L,N,Lu,Nd}.
18979         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
18980         * modules/unictype/category-or-tests (Depends-on): Add
18981         unictype/category-{L,N}.
18982         * modules/unictype/category-name-tests (Depends-on): Add
18983         unictype/category-{Z,Nl}.
18984         Reported by Simon Josefsson.
18985
18986 2008-01-08  Bruno Haible  <bruno@clisp.org>
18987
18988         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
18989         convention better.
18990         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
18991         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
18992         Reported by Peter Miller <millerp@canb.auug.org.au>.
18993
18994 2008-01-08  Eric Blake  <ebb9@byu.net>
18995
18996         Rewrite memmem to guarantee linear complexity without malloc.
18997         * lib/memmem.c (memmem): Use Two-Way rather than
18998         Knuth-Morris-Pratt, to allow O(1) space usage.
18999         (critical_factorization, two_way_short_needle)
19000         (two_way_long_needle): New functions.
19001         (knuth_morris_pratt): Delete.
19002         * modules/memmem (Depends-on): No longer need malloca or stdbool.
19003         Add stdint.
19004         * tests/test-memmem.c (main): Add tests for periodic needle and
19005         sublinear performance.
19006         * doc/functions/memmem.texi (memmem): Document other deficiencies
19007         in cygwin and older glibc.
19008
19009 2008-01-08  Bruno Haible  <bruno@clisp.org>
19010
19011         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
19012         augmentation.
19013
19014 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
19015
19016         Add a configure time option: --disable-acl.
19017         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
19018         AC_ARG_ENABLE(acl).
19019
19020 2008-01-06  Simon Josefsson  <simon@josefsson.org>
19021
19022         * tests/test-localename.c: Don't include obsolete "setenv.h".
19023
19024         * modules/localename-tests (Depends-on): Need unsetenv.
19025
19026 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19027
19028         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
19029
19030 2008-01-06  Colin Watson  <cjwatson@debian.org>
19031
19032         * users.txt: Add man-db.
19033
19034 2008-01-07  Bruno Haible  <bruno@clisp.org>
19035
19036         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
19037         previous section name.
19038
19039 2008-01-07  Bruno Haible  <bruno@clisp.org>
19040
19041         * lib/progname.c (set_program_name): Don't strip off a leading
19042         "lt-" prefix outside a .libs directory.
19043         Suggested by Paul Eggert.
19044
19045 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
19046             Bruno Haible  <bruno@clisp.org>
19047
19048         Improve memory cleanup in 'relocatable' module.
19049         * lib/relocatable.h (compute_curr_prefix): Change return type to
19050         'char *'.
19051         * lib/relocatable.c (compute_curr_prefix): Change return type to
19052         'char *'. Free curr_installdir after use.
19053         (relocate): Free curr_prefix_better after use.
19054         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
19055
19056 2008-01-01  Bruno Haible  <bruno@clisp.org>
19057
19058         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
19059         failure on older glibc systems.
19060         Reported by Peter Fales <psfales@alcatel-lucent.com>.
19061
19062 2008-01-05  Eric Blake  <ebb9@byu.net>
19063
19064         Avoid quadratic system memmem.
19065         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
19066         Reported by Ralf Wildenhues.
19067
19068         Fix memmem test for mingw.
19069         * modules/memmem-tests (configure.ac): Check for alarm.
19070         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
19071         it.
19072         * doc/functions/memmem.texi: New file.
19073         * doc/gnulib.texi (Function Substitutes): Add memmem.
19074         Reported by Bruno Haible.
19075
19076 2008-01-04  Bruno Haible  <bruno@clisp.org>
19077
19078         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
19079         Require gl_HEADER_STRINGS_H_DEFAULTS, not
19080         gl_HEADER_STRING_H_DEFAULTS.
19081
19082 2008-01-04  Eric Blake  <ebb9@byu.net>
19083
19084         Shorten duration of memmem test.
19085         * tests/test-memmem.c (main): Use alarm to declare failure if test
19086         is taking too long.
19087         Reported by Ralf Wildenhues.
19088
19089 2007-12-21  Simon Josefsson  <simon@josefsson.org>
19090
19091         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
19092         string, needed by strerror.
19093
19094 2008-01-03  Colin Watson  <cjwatson@debian.org>
19095             Bruno Haible  <bruno@clisp.org>
19096
19097         * doc/gnulib-tool.texi (Localization): New section.
19098
19099 2008-01-02  Bruno Haible  <bruno@clisp.org>
19100
19101         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
19102         variables to 'unsigned char *' type.
19103         Reported by Paul Eggert.
19104
19105 2008-01-02  Jim Meyering  <jim@meyering.net>
19106
19107         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
19108
19109 2007-12-31  Jim Meyering  <jim@meyering.net>
19110
19111         Avoid use of private FTS type name.
19112         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
19113
19114 2007-12-30  Karl Berry  <karl@gnu.org>
19115
19116         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
19117         work around defect in Texinfo and/or the standalone Info browser.
19118
19119 2007-12-30  Bruno Haible  <bruno@clisp.org>
19120
19121         Unify 5 copies of the KMP code.
19122         * lib/str-kmp.h: New file.
19123         * lib/c-strcasestr.c: Include str-kmp.h.
19124         (knuth_morris_pratt): Remove function.
19125         (c_strcasestr): Update.
19126         * lib/c-strstr.c: Include str-kmp.h.
19127         (knuth_morris_pratt): Remove function.
19128         (c_strcasestr): Update.
19129         * lib/mbscasestr.c: Include str-kmp.h.
19130         (knuth_morris_pratt_unibyte): Remove function.
19131         * lib/mbsstr.c: Include str-kmp.h.
19132         (knuth_morris_pratt_unibyte): Remove function.
19133         * lib/strcasestr.c: Include str-kmp.h.
19134         (knuth_morris_pratt): Remove function.
19135         (strcasestr): Update.
19136         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
19137         * modules/c-strstr (Files): Likewise.
19138         * modules/mbscasestr (Files): Likewise.
19139         * modules/mbsstr (Files): Likewise.
19140         * modules/strcasestr (Files): Likewise.
19141         Suggested by Paul Eggert.
19142
19143 2007-12-30  Bruno Haible  <bruno@clisp.org>
19144
19145         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
19146         defined.
19147
19148 2007-12-30  Bruno Haible  <bruno@clisp.org>
19149
19150         * lib/xmalloca.h: Include xalloc.h.
19151         (xnmalloca): New macro.
19152
19153 2007-12-30  Bruno Haible  <bruno@clisp.org>
19154
19155         * lib/malloca.h (nmalloca): New macro.
19156         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
19157         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
19158         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
19159         knuth_morris_pratt_multibyte): Likewise.
19160         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
19161         knuth_morris_pratt_multibyte): Likewise.
19162         * lib/memmem.c (knuth_morris_pratt): Likewise.
19163         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
19164
19165 2007-12-25  Bruno Haible  <bruno@clisp.org>
19166
19167         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
19168         * lib/glob.c: Don't include openat.h.
19169         (link_exists2_p): Add back the code that deals with the
19170         !GLOB_ALTDIRFUNC case.
19171         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
19172         let it do the filename concatenation.
19173         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
19174         * modules/glob (Depends-on): Remove openat.
19175
19176 2007-12-31  Bruno Haible  <bruno@clisp.org>
19177
19178         * modules/dirfd (License): Change to LGPLv2+.
19179         Approved by Jim Meyering.
19180
19181 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
19182
19183         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
19184         when multiplying M by sizeof (size_t).
19185
19186 2007-12-10  Martin Lambers  <marlam@marlam.de>
19187
19188         Override getpagesize on mingw.
19189         * lib/getpagesize.c: New file.
19190         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
19191         * modules/getpagesize (Files): Add lib/getpagesize.c.
19192         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
19193         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19194         REPLACE_GETPAGESIZE.
19195         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
19196
19197 2007-12-25  Bruno Haible  <bruno@clisp.org>
19198
19199         * modules/localcharset (Notice): New field.
19200         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
19201         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
19202
19203 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
19204             Bruno Haible  <bruno@clisp.org>
19205
19206         Avoid using the syntax symbol() in formatted documentation.
19207         * MODULES.html.sh (func_module): When replacing symbol() with a
19208         hyperlink, remove the parentheses. Show an error if some remain.
19209         Recognize and render the '...' syntax.
19210         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
19211         Rework. Add paragraph about GCC's inlining.
19212         * doc/alloca.texi: Likewise.
19213         * doc/error.texi: Remove parentheses from symbol reference.
19214         * doc/gnulib-intro.texi: Likewise.
19215         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
19216         * modules/fnmatch (Description): Reword to say "the ... function".
19217         * modules/full-read (Description): Likewise.
19218         * modules/full-write (Description): Likewise.
19219         * modules/safe-read (Description): Likewise.
19220         * modules/safe-write (Description): Likewise.
19221         * modules/strchrnul (Description): Likewise.
19222         * modules/trim (Description): Likewise.
19223         * modules/error (Description): Remove parentheses from symbol
19224         references.
19225         * modules/verror (Description): Likewise.
19226         Reported by Karl Berry.
19227
19228 2007-12-25  Bruno Haible  <bruno@clisp.org>
19229
19230         Fixup after 2007-10-16 commit.
19231         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
19232
19233 2007-12-24  Bruno Haible  <bruno@clisp.org>
19234
19235         Make --enable-relocatable work with DESTDIR.
19236         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
19237         to compute installdir from destprog.
19238         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
19239         also set the RELOC_DESTDIR variable.
19240         Reported by Левашев Иван <octagram@bluebottle.com>.
19241
19242 2007-12-24  Bruno Haible  <bruno@clisp.org>
19243
19244         Fix link error due to xalloc_die().
19245         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
19246         of xreadlink.
19247         * lib/relocwrapper.c: Update comments.
19248         * build-aux/install-reloc: Remove xreadlink.c from file list.
19249         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
19250         xreadlink.c.
19251         Reported by Левашев Иван <octagram@bluebottle.com>.
19252
19253 2007-12-24  Bruno Haible  <bruno@clisp.org>
19254
19255         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
19256         * lib/setenv.h: Remove file.
19257         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
19258         lib/setenv.h.
19259         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
19260         (Depends-on): Add stdlib.
19261         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
19262         gl_FUNC_UNSETENV.
19263         (Include): Replace setenv.h with <stdlib.h>.
19264         * modules/unsetenv: New file.
19265         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
19266         * lib/unsetenv.c: Include <stdlib.h> first.
19267         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
19268         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
19269         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
19270         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
19271         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
19272         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
19273         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
19274         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
19275         * doc/functions/unsetenv.texi: Update.
19276         * modules/xsetenv (Depends-on): Add unsetenv.
19277         * modules/getdate (Depends-on): Likewise.
19278         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
19279         * lib/xsetenv.c: Don't include setenv.h.
19280         * lib/getdate.y: Likewise.
19281         * lib/relocwrapper.c: Likewise.
19282         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
19283         (Depends-on): Add stdlib.
19284         * NEWS: Mention the changes.
19285         Reported by Левашев Иван <octagram@bluebottle.com>.
19286
19287 2007-12-23  Bruno Haible  <bruno@clisp.org>
19288
19289         * lib/memmem.c (memmem): Use lowercase variable names. Tab
19290         indentation.
19291
19292 2007-12-23  Bruno Haible  <bruno@clisp.org>
19293
19294         * lib/c-strcasestr.c: Add more comments.
19295         * lib/c-strstr.c: Likewise.
19296         * lib/mbscasestr.c: Likewise.
19297         * lib/mbsstr.c: Likewise.
19298         * lib/strcasestr.c: Likewise.
19299         * lib/memmem.c: Likewise.
19300
19301 2007-12-23  Bruno Haible  <bruno@clisp.org>
19302
19303         * tests/test-memmem.c: Include <string.h> first.
19304
19305 2007-12-22  Bruno Haible  <bruno@clisp.org>
19306
19307         * gnulib-tool (func_create_testdir): Change $auxdir while generating
19308         the contents of $testsbase.
19309         Reported by Ralf Wildenhues.
19310
19311 2007-12-22  Bruno Haible  <bruno@clisp.org>
19312
19313         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
19314         two variables local_ldadd_before, local_ldadd_last.
19315
19316 2007-12-20  Eric Blake  <ebb9@byu.net>
19317
19318         Work around circular library issue when cross-compiling.
19319         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
19320         that progname.o does not need to pull in rpl_memcmp.
19321
19322 2007-12-19  Eric Blake  <ebb9@byu.net>
19323
19324         Fix memmem to avoid O(n^2) worst-case complexity.
19325         * lib/memmem.c (knuth_morris_pratt): New function.
19326         (memmem): Use it if first few naive iterations fail.
19327         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
19328         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
19329         * modules/memchr (License): Likewise.
19330         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
19331         malloca.
19332         * tests/test-memmem.c: Rewrite, borrowing ideas from
19333         test-mbsstr1.c; the old version wouldn't even compile!
19334         * modules/memmem-tests: New file.
19335         * lib/string.in.h (rpl_memmem): Add declaration.
19336         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
19337         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
19338         REPLACE_MEMMEM.
19339
19340 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
19341
19342         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
19343         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
19344         before any system include files, and undef after them all.  This
19345         should fix a problem on VMS reported by John E. Malmberg in
19346         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
19347
19348 2007-12-17  Eric Blake  <ebb9@byu.net>
19349
19350         Revert addition of verify, for BSD/OS.
19351         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
19352         can't handle large files, for the sake of obsolete platforms.
19353         * modules/fseeko (Depends-on): Remove verify.
19354         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
19355         * doc/functions/ftello.texi (ftello): Likewise.
19356         * doc/functions/fgetpos.texi (fgetpos): Likewise.
19357         Reported by Larry Jones.
19358
19359 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
19360
19361         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
19362         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
19363
19364 2007-12-17  Jim Meyering  <meyering@redhat.com>
19365
19366         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
19367         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
19368         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
19369         * modules/getcwd (Depends-on): Add openat.
19370         Reported by Petr Salinger.
19371
19372 2007-12-17  Bruno Haible  <bruno@clisp.org>
19373
19374         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
19375         avoid a segmentation fault of the configure test on x86_64 systems.
19376
19377 2007-12-15  Jim Meyering  <meyering@redhat.com>
19378
19379         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
19380
19381 2007-12-13  Eric Blake  <ebb9@byu.net>
19382
19383         Another fseek test.
19384         * tests/test-fseek.c (main): Also test ungetc handling.
19385         * tests/test-fseeko.c (main): Likewise.
19386         * modules/fseeko (Depends-on): Add verify.
19387         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
19388         large.
19389         Reported by Larry Jones.
19390
19391         Fix fseeko on mingw.
19392         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
19393         seek.
19394
19395         Beef up fseek tests.
19396         * tests/test-fseek.c (main): Also test eof handling.
19397         * tests/test-fseeko.c (main): Likewise.
19398         Reported by Larry Jones.
19399
19400 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
19401
19402         Fix fseeko on BSD-based platforms.
19403         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
19404         successful seek.
19405
19406 2007-12-12  Eric Blake  <ebb9@byu.net>
19407
19408         Allow circular dependency of separate libtests.a
19409         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
19410         when use_libtests.
19411
19412 2007-12-11  Eric Blake  <ebb9@byu.net>
19413
19414         Fix bug with -0.0L in previous patch.
19415         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
19416         * tests/test-isnan.c (main): Also test on zeroes.
19417         * tests/test-isnanf.c (main): Likewise.
19418         * tests/test-isnanl.h (main): Likewise.
19419
19420         Detect pseudo-denormals on x86 even when cross-compiling.
19421         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
19422         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
19423         invalid bit patterns that happen to satisfy ==.
19424
19425         Avoid link failures with separate libtests.a.
19426         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
19427         last, to satisfy circular dependencies.
19428
19429 2007-12-11  Eric Blake  <ebb9@byu.net>
19430         and Bruno Haible  <bruno@clisp.org>
19431
19432         Fix OpenBSD 4.0 <float.h> handling of long double.
19433         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
19434         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
19435         * doc/headers/float.texi (float.h): Document OpenBSD bug.
19436
19437 2007-12-11  Jim Meyering  <meyering@redhat.com>
19438
19439         * users.txt: Add libvirt.
19440
19441         Support versions of autoconf prior to 2.59c.
19442         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
19443         if it is not already defined.
19444
19445 2007-12-09  Bruno Haible  <bruno@clisp.org>
19446
19447         Let 'gnulib-tool --import' collect sources needed for the tests in
19448         tests/ rather than in lib/.
19449         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
19450         argument. If true, add rules to generate libtests.a, and put libtests.a
19451         into $(LDADD). Consider source files in subdirectories and set
19452         uses_subdirs.
19453         (func_emit_initmacro_start, func_emit_initmacro_end,
19454         func_emit_initmacro_done): Pass all arguments explicitly.
19455         (func_import): Determine two module lists main_modules,
19456         testsrelated_modules. Determine use_libtests. Determine two variables
19457         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
19458         instead of just sed_transform_lib_file. Determine two variables
19459         main_files and testsrelated_files. Compute 'files' as the union of
19460         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
19461         func_add_or_update. In the generated gnulib-comp.m4, collect the
19462         object files for tests/ in different variables than those for lib/.
19463         Substitute LIBTESTS_LIBDEPS.
19464         (func_create_testdir): Combine the uses_subdirs results from
19465         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
19466
19467 2007-12-09  Bruno Haible  <bruno@clisp.org>
19468
19469         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
19470         the build-aux directory.
19471
19472 2007-12-09  Bruno Haible  <bruno@clisp.org>
19473
19474         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
19475         introduced on 2006-09-09.
19476
19477 2007-12-07  Jim Meyering  <meyering@redhat.com>
19478
19479         Let these macros work also with autoconf-2.59.
19480         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
19481         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
19482         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
19483
19484 2007-12-06  Jim Meyering  <meyering@redhat.com>
19485
19486         Avoid a configure-time syntax error in gl_FUNC_ACL.
19487         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
19488         function in each branch, before testing the cache variable.
19489
19490 2007-12-04  Eric Blake  <ebb9@byu.net>
19491
19492         Make scripts executable.
19493         * build-aux/config.guess: Add execute permissions.
19494         * build-aux/config.sub: Likewise.
19495         * build-aux/gendocs.sh: Likewise.
19496
19497         Fix frexp on mingw.
19498         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
19499         cross-compiling.
19500         * doc/functions/frexp.texi (frexp): Document the bug.
19501
19502         Make cygwin fseeko check more reliable.
19503         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
19504         version numbers, rather than unrelated feature check.
19505         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
19506         * doc/functions/ftello.texi (ftello): Likewise.
19507         Reported by Bruno Haible.
19508
19509         * m4/strerror.m4: Bump version number.
19510
19511 2007-12-03  Bruno Haible  <bruno@clisp.org>
19512
19513         * doc/functions/mprotect.texi: Mention the mingw problem.
19514
19515 2007-12-03  Eric Blake  <ebb9@byu.net>
19516
19517         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
19518         REPLACE_STRERROR is initialized before this macro.
19519
19520 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
19521
19522         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
19523         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
19524         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
19525         put -lsec in even for programs other than 'ls'.  This fixes a problem
19526         for gettext reported by Bruno Haible in
19527         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
19528         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
19529         Add support for Solaris 10.  This isn't efficient, but should get the
19530         job done for now.
19531
19532 2007-12-03  James Youngman  <jay@gnu.org>
19533
19534         * doc/regexprops-generic.texi: change "an close-group" to "a
19535         close-group" and "illegal" to "not allowed".
19536
19537 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19538
19539         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
19540         pr_byname.h. Needed for the rare case when the maintainer has done
19541         "make maintainer-clean" in the source directory and then attempts a
19542         build outside the source directory.
19543         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
19544         scripts_byname.h.
19545
19546 2007-12-02  Martin Lambers <marlam@marlam.de>
19547             Bruno Haible  <bruno@clisp.org>
19548
19549         * lib/getpagesize.h: Remove file.
19550         * lib/unistd.in.h: Include declaration of getpagesize here.
19551         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
19552         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
19553         HAVE_SYS_PARAM_H.
19554         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
19555         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
19556         * modules/getpagesize (Files): Remove lib/getpagesize.h.
19557         (Depends-on): Add unistd.
19558         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
19559         (Include): Use <unistd.h> instead of getpagesize.h.
19560         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
19561         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
19562         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
19563         gl_GETPAGESIZE invocation, already handled by module dependency.
19564         * lib/pagealign_alloc.c: Don't include getpagesize.h.
19565
19566 2007-12-02  Bruno Haible  <bruno@clisp.org>
19567
19568         * modules/strings-tests: New file.
19569         * tests/test-strings.c: New file.
19570
19571         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
19572         * lib/strings.in.h: New file.
19573         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
19574         * m4/strings_h.m4: New file.
19575         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
19576         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
19577         * modules/strings: New file.
19578         * modules/string (Makefile.am): Update.
19579         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
19580         Reported by Karl Berry.
19581
19582 2007-12-01  Eric Blake  <ebb9@byu.net>
19583
19584         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
19585         accomodate fix in cygwin 1.5.25.
19586
19587 2007-12-01  Jim Meyering  <meyering@redhat.com>
19588
19589         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
19590         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
19591         that would inhibit utf8-optimization of a regexp containing line-
19592         or buffer-anchors, e.g., `^', `$'.
19593
19594 2007-11-30  Bruno Haible  <bruno@clisp.org>
19595
19596         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
19597         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
19598         glthread_recursive_lock_init.
19599         * lib/lock.c (glthread_recursive_lock_init)
19600         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
19601         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
19602
19603 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
19604
19605         New function qset_acl, like set_acl but with syscall semantics.
19606         * lib/acl.h (qset_acl): New decl.
19607         * lib/acl.c (qset_acl): New function.
19608         (set_acl): Use new function.  Use more-consistent diagnostics.
19609
19610 2007-11-28  Jim Meyering  <meyering@redhat.com>
19611
19612         * modules/physmem (License): Change from GPL to LGPLv2+.
19613
19614 2007-11-26  Bruno Haible  <bruno@clisp.org>
19615
19616         * lib/vasnprintf.c (decode_long_double): Don't abort if the
19617         'long double' type has excess precision.
19618         Reported by Jim Meyering in
19619         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
19620
19621 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
19622
19623         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
19624         Sync from <http://gnu.org/licenses>.
19625         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
19626         with license text from same location.
19627         * doc/maintain.texi, doc/standards.texi:  Sync from
19628         <http://savannah.gnu.org/projects/gnustandards>.
19629
19630 2007-11-22  Ondřej Vašík  <ovasik@redhat.com>
19631         and Jim Meyering  <meyering@redhat.com>
19632
19633         Adjust getdate' grammar to accept a slightly more regular language.
19634         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
19635         Before, the former was rejected.
19636         * lib/getdate.y (digits_to_date_time): New function, factored
19637         out of ...
19638         (number): ...here.  Just call digits_to_date_time.
19639         (hybrid): New non-terminal to handle an <unsigned number,
19640         signed relative offset> sequence consistently.
19641
19642 2007-11-18  Jim Meyering  <meyering@redhat.com>
19643
19644         Pull my changes from coreutils:
19645         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
19646         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
19647         use of $gnulib_tool_option_extras, so that it's separated from the
19648         preceding argument.
19649
19650         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
19651         * build-aux/bootstrap (cp_mark_as_generated): Create any required
19652         parent destination directories before copying a file into place.
19653
19654 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
19655
19656         bootstrap: work also with 4-argument variant of AC_INIT
19657         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
19658
19659 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
19660
19661         Port test-getaddrinfo to Solaris.
19662         Problem reported by Bruno Haible in
19663         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
19664         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
19665         explanation of setting 'hints'.
19666         Don't reject an implementation merely because it returns EAI_SERVICE.
19667         (EAI_SERVICE): Define to 0 if not defined.
19668
19669 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
19670
19671         The license of gnu-make and posix-shell is now "GPLed build tool".
19672         * modules/gnu-make (License): Likewise.
19673         * modules/posix-shell (License): Likewise.
19674
19675         New module posix-shell, for determining a POSIX shell
19676         or perhaps something that is close enough to a POSIX shell.
19677         * m4/posix-shell.m4: New file.
19678         * modules/posix-shell: New file.
19679
19680         * MODULES.html.sh: Mention new module.
19681
19682         New module gnu-make, for determining whether we're using GNU Make.
19683         * m4/gnu-make.m4: New file.
19684         * modules/gnu-make: New file.
19685         * MODULES.html.sh: Mention new module.
19686
19687 2007-11-14  Jim Meyering  <meyering@redhat.com>
19688
19689         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
19690         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
19691         use this macro to create a function _definition_.
19692         Remove useless "#undef ARGMATCH_DIE".
19693
19694 2007-11-14  Bruno Haible  <bruno@clisp.org>
19695
19696         * lib/config.charset: Update for OpenBSD 4.1.
19697         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
19698
19699 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
19700
19701         Document 64-bit #if problems in stdint.texi.
19702         * doc/headers/stdint.texi (stdint.h): Mention problems with
19703         64-bit-#if, and how to work around them.
19704
19705         Don't insist on 'long long int' support in the preprocessor.  It
19706         breaks too many things.  For example, PRIdMAX still uses a 'long
19707         long int' format with the latest Sun compiler, even though
19708         HAVE_LONG_LONG_INT isn't defined due to that compiler's
19709         preprocessor problem.  This causes the latest coreutils to dump
19710         core on Solaris 10 sparc with the Sun C compiler.
19711         Instead, fix the 2007-10-16 problem in a different way, by evaluating
19712         the troublesome expressions at configure-time, not at #if-time.
19713         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
19714         preprocessor.
19715         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
19716         compile-time C checks, done at 'configure'-time.
19717         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
19718         * modules/inttypes (Makefile): Substitute the new symbols that
19719         gl_INTTYPES_H now generates.
19720         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
19721
19722 2007-11-12  Bruno Haible  <bruno@clisp.org>
19723
19724         Tests for Unicode character classification functions.
19725
19726         * modules/unictype/bidicategory-byname-tests: New file.
19727         * modules/unictype/bidicategory-name-tests: New file.
19728         * modules/unictype/bidicategory-of-tests: New file.
19729         * modules/unictype/bidicategory-test-tests: New file.
19730         * modules/unictype/block-list-tests: New file.
19731         * modules/unictype/block-of-tests: New file.
19732         * modules/unictype/block-test-tests: New file.
19733         * modules/unictype/category-C-tests: New file.
19734         * modules/unictype/category-Cc-tests: New file.
19735         * modules/unictype/category-Cf-tests: New file.
19736         * modules/unictype/category-Cn-tests: New file.
19737         * modules/unictype/category-Co-tests: New file.
19738         * modules/unictype/category-Cs-tests: New file.
19739         * modules/unictype/category-L-tests: New file.
19740         * modules/unictype/category-Ll-tests: New file.
19741         * modules/unictype/category-Lm-tests: New file.
19742         * modules/unictype/category-Lo-tests: New file.
19743         * modules/unictype/category-Lt-tests: New file.
19744         * modules/unictype/category-Lu-tests: New file.
19745         * modules/unictype/category-M-tests: New file.
19746         * modules/unictype/category-Mc-tests: New file.
19747         * modules/unictype/category-Me-tests: New file.
19748         * modules/unictype/category-Mn-tests: New file.
19749         * modules/unictype/category-N-tests: New file.
19750         * modules/unictype/category-Nd-tests: New file.
19751         * modules/unictype/category-Nl-tests: New file.
19752         * modules/unictype/category-No-tests: New file.
19753         * modules/unictype/category-P-tests: New file.
19754         * modules/unictype/category-Pc-tests: New file.
19755         * modules/unictype/category-Pd-tests: New file.
19756         * modules/unictype/category-Pe-tests: New file.
19757         * modules/unictype/category-Pf-tests: New file.
19758         * modules/unictype/category-Pi-tests: New file.
19759         * modules/unictype/category-Po-tests: New file.
19760         * modules/unictype/category-Ps-tests: New file.
19761         * modules/unictype/category-S-tests: New file.
19762         * modules/unictype/category-Sc-tests: New file.
19763         * modules/unictype/category-Sk-tests: New file.
19764         * modules/unictype/category-Sm-tests: New file.
19765         * modules/unictype/category-So-tests: New file.
19766         * modules/unictype/category-Z-tests: New file.
19767         * modules/unictype/category-Zl-tests: New file.
19768         * modules/unictype/category-Zp-tests: New file.
19769         * modules/unictype/category-Zs-tests: New file.
19770         * modules/unictype/category-and-not-tests: New file.
19771         * modules/unictype/category-and-tests: New file.
19772         * modules/unictype/category-byname-tests: New file.
19773         * modules/unictype/category-name-tests: New file.
19774         * modules/unictype/category-none-tests: New file.
19775         * modules/unictype/category-of-tests: New file.
19776         * modules/unictype/category-or-tests: New file.
19777         * modules/unictype/category-test-withtable-tests: New file.
19778         * modules/unictype/combining-class-tests: New file.
19779         * modules/unictype/ctype-alnum-tests: New file.
19780         * modules/unictype/ctype-alpha-tests: New file.
19781         * modules/unictype/ctype-blank-tests: New file.
19782         * modules/unictype/ctype-cntrl-tests: New file.
19783         * modules/unictype/ctype-digit-tests: New file.
19784         * modules/unictype/ctype-graph-tests: New file.
19785         * modules/unictype/ctype-lower-tests: New file.
19786         * modules/unictype/ctype-print-tests: New file.
19787         * modules/unictype/ctype-punct-tests: New file.
19788         * modules/unictype/ctype-space-tests: New file.
19789         * modules/unictype/ctype-upper-tests: New file.
19790         * modules/unictype/ctype-xdigit-tests: New file.
19791         * modules/unictype/decimal-digit-tests: New file.
19792         * modules/unictype/digit-tests: New file.
19793         * modules/unictype/mirror-tests: New file.
19794         * modules/unictype/numeric-tests: New file.
19795         * modules/unictype/property-alphabetic-tests: New file.
19796         * modules/unictype/property-ascii-hex-digit-tests: New file.
19797         * modules/unictype/property-bidi-arabic-digit-tests: New file.
19798         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
19799         * modules/unictype/property-bidi-block-separator-tests: New file.
19800         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
19801         * modules/unictype/property-bidi-common-separator-tests: New file.
19802         * modules/unictype/property-bidi-control-tests: New file.
19803         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
19804         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
19805         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
19806         * modules/unictype/property-bidi-european-digit-tests: New file.
19807         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
19808         * modules/unictype/property-bidi-left-to-right-tests: New file.
19809         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
19810         * modules/unictype/property-bidi-other-neutral-tests: New file.
19811         * modules/unictype/property-bidi-pdf-tests: New file.
19812         * modules/unictype/property-bidi-segment-separator-tests: New file.
19813         * modules/unictype/property-bidi-whitespace-tests: New file.
19814         * modules/unictype/property-byname-tests: New file.
19815         * modules/unictype/property-combining-tests: New file.
19816         * modules/unictype/property-composite-tests: New file.
19817         * modules/unictype/property-currency-symbol-tests: New file.
19818         * modules/unictype/property-dash-tests: New file.
19819         * modules/unictype/property-decimal-digit-tests: New file.
19820         * modules/unictype/property-default-ignorable-code-point-tests: New file.
19821         * modules/unictype/property-deprecated-tests: New file.
19822         * modules/unictype/property-diacritic-tests: New file.
19823         * modules/unictype/property-extender-tests: New file.
19824         * modules/unictype/property-format-control-tests: New file.
19825         * modules/unictype/property-grapheme-base-tests: New file.
19826         * modules/unictype/property-grapheme-extend-tests: New file.
19827         * modules/unictype/property-grapheme-link-tests: New file.
19828         * modules/unictype/property-hex-digit-tests: New file.
19829         * modules/unictype/property-hyphen-tests: New file.
19830         * modules/unictype/property-id-continue-tests: New file.
19831         * modules/unictype/property-id-start-tests: New file.
19832         * modules/unictype/property-ideographic-tests: New file.
19833         * modules/unictype/property-ids-binary-operator-tests: New file.
19834         * modules/unictype/property-ids-trinary-operator-tests: New file.
19835         * modules/unictype/property-ignorable-control-tests: New file.
19836         * modules/unictype/property-iso-control-tests: New file.
19837         * modules/unictype/property-join-control-tests: New file.
19838         * modules/unictype/property-left-of-pair-tests: New file.
19839         * modules/unictype/property-line-separator-tests: New file.
19840         * modules/unictype/property-logical-order-exception-tests: New file.
19841         * modules/unictype/property-lowercase-tests: New file.
19842         * modules/unictype/property-math-tests: New file.
19843         * modules/unictype/property-non-break-tests: New file.
19844         * modules/unictype/property-not-a-character-tests: New file.
19845         * modules/unictype/property-numeric-tests: New file.
19846         * modules/unictype/property-other-alphabetic-tests: New file.
19847         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
19848         * modules/unictype/property-other-grapheme-extend-tests: New file.
19849         * modules/unictype/property-other-id-continue-tests: New file.
19850         * modules/unictype/property-other-id-start-tests: New file.
19851         * modules/unictype/property-other-lowercase-tests: New file.
19852         * modules/unictype/property-other-math-tests: New file.
19853         * modules/unictype/property-other-uppercase-tests: New file.
19854         * modules/unictype/property-paired-punctuation-tests: New file.
19855         * modules/unictype/property-paragraph-separator-tests: New file.
19856         * modules/unictype/property-pattern-syntax-tests: New file.
19857         * modules/unictype/property-pattern-white-space-tests: New file.
19858         * modules/unictype/property-private-use-tests: New file.
19859         * modules/unictype/property-punctuation-tests: New file.
19860         * modules/unictype/property-quotation-mark-tests: New file.
19861         * modules/unictype/property-radical-tests: New file.
19862         * modules/unictype/property-sentence-terminal-tests: New file.
19863         * modules/unictype/property-soft-dotted-tests: New file.
19864         * modules/unictype/property-space-tests: New file.
19865         * modules/unictype/property-terminal-punctuation-tests: New file.
19866         * modules/unictype/property-test-tests: New file.
19867         * modules/unictype/property-titlecase-tests: New file.
19868         * modules/unictype/property-unassigned-code-value-tests: New file.
19869         * modules/unictype/property-unified-ideograph-tests: New file.
19870         * modules/unictype/property-uppercase-tests: New file.
19871         * modules/unictype/property-variation-selector-tests: New file.
19872         * modules/unictype/property-white-space-tests: New file.
19873         * modules/unictype/property-xid-continue-tests: New file.
19874         * modules/unictype/property-xid-start-tests: New file.
19875         * modules/unictype/property-zero-width-tests: New file.
19876         * modules/unictype/scripts-tests: New file.
19877         * modules/unictype/syntax-c-ident-tests: New file.
19878         * modules/unictype/syntax-c-whitespace-tests: New file.
19879         * modules/unictype/syntax-java-ident-tests: New file.
19880         * modules/unictype/syntax-java-whitespace-tests: New file.
19881         * tests/unictype/test-bidi_byname.c: New file.
19882         * tests/unictype/test-bidi_name.c: New file.
19883         * tests/unictype/test-bidi_of.c: New file.
19884         * tests/unictype/test-bidi_test.c: New file.
19885         * tests/unictype/test-block_list.c: New file.
19886         * tests/unictype/test-block_of.c: New file.
19887         * tests/unictype/test-block_test.c: New file.
19888         * tests/unictype/test-categ_and.c: New file.
19889         * tests/unictype/test-categ_and_not.c: New file.
19890         * tests/unictype/test-categ_byname.c: New file.
19891         * tests/unictype/test-categ_name.c: New file.
19892         * tests/unictype/test-categ_none.c: New file.
19893         * tests/unictype/test-categ_of.c: New file.
19894         * tests/unictype/test-categ_or.c: New file.
19895         * tests/unictype/test-categ_test_withtable.c: New file.
19896         * tests/unictype/test-combining.c: New file.
19897         * tests/unictype/test-decdigit.c: New file.
19898         * tests/unictype/test-digit.c: New file.
19899         * tests/unictype/test-mirror.c: New file.
19900         * tests/unictype/test-numeric.c: New file.
19901         * tests/unictype/test-pr_byname.c: New file.
19902         * tests/unictype/test-pr_test.c: New file.
19903         * tests/unictype/test-predicate-part1.h: New file.
19904         * tests/unictype/test-predicate-part2.h: New file.
19905         * tests/unictype/test-scripts.c: New file.
19906         * tests/unictype/test-sy_c_ident.c: New file.
19907         * tests/unictype/test-sy_java_ident.c: New file.
19908
19909         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
19910         for Unicode 5.0.0.
19911         * tests/unictype/test-categ_Cc.c: Likewise.
19912         * tests/unictype/test-categ_Cf.c: Likewise.
19913         * tests/unictype/test-categ_Cn.c: Likewise.
19914         * tests/unictype/test-categ_Co.c: Likewise.
19915         * tests/unictype/test-categ_Cs.c: Likewise.
19916         * tests/unictype/test-categ_L.c: Likewise.
19917         * tests/unictype/test-categ_Ll.c: Likewise.
19918         * tests/unictype/test-categ_Lm.c: Likewise.
19919         * tests/unictype/test-categ_Lo.c: Likewise.
19920         * tests/unictype/test-categ_Lt.c: Likewise.
19921         * tests/unictype/test-categ_Lu.c: Likewise.
19922         * tests/unictype/test-categ_M.c: Likewise.
19923         * tests/unictype/test-categ_Mc.c: Likewise.
19924         * tests/unictype/test-categ_Me.c: Likewise.
19925         * tests/unictype/test-categ_Mn.c: Likewise.
19926         * tests/unictype/test-categ_N.c: Likewise.
19927         * tests/unictype/test-categ_Nd.c: Likewise.
19928         * tests/unictype/test-categ_Nl.c: Likewise.
19929         * tests/unictype/test-categ_No.c: Likewise.
19930         * tests/unictype/test-categ_P.c: Likewise.
19931         * tests/unictype/test-categ_Pc.c: Likewise.
19932         * tests/unictype/test-categ_Pd.c: Likewise.
19933         * tests/unictype/test-categ_Pe.c: Likewise.
19934         * tests/unictype/test-categ_Pf.c: Likewise.
19935         * tests/unictype/test-categ_Pi.c: Likewise.
19936         * tests/unictype/test-categ_Po.c: Likewise.
19937         * tests/unictype/test-categ_Ps.c: Likewise.
19938         * tests/unictype/test-categ_S.c: Likewise.
19939         * tests/unictype/test-categ_Sc.c: Likewise.
19940         * tests/unictype/test-categ_Sk.c: Likewise.
19941         * tests/unictype/test-categ_Sm.c: Likewise.
19942         * tests/unictype/test-categ_So.c: Likewise.
19943         * tests/unictype/test-categ_Z.c: Likewise.
19944         * tests/unictype/test-categ_Zl.c: Likewise.
19945         * tests/unictype/test-categ_Zp.c: Likewise.
19946         * tests/unictype/test-categ_Zs.c: Likewise.
19947         * tests/unictype/test-ctype_alnum.c: Likewise.
19948         * tests/unictype/test-ctype_alpha.c: Likewise.
19949         * tests/unictype/test-ctype_blank.c: Likewise.
19950         * tests/unictype/test-ctype_cntrl.c: Likewise.
19951         * tests/unictype/test-ctype_digit.c: Likewise.
19952         * tests/unictype/test-ctype_graph.c: Likewise.
19953         * tests/unictype/test-ctype_lower.c: Likewise.
19954         * tests/unictype/test-ctype_print.c: Likewise.
19955         * tests/unictype/test-ctype_punct.c: Likewise.
19956         * tests/unictype/test-ctype_space.c: Likewise.
19957         * tests/unictype/test-ctype_upper.c: Likewise.
19958         * tests/unictype/test-ctype_xdigit.c: Likewise.
19959         * tests/unictype/test-decdigit.h: Likewise.
19960         * tests/unictype/test-digit.h: Likewise.
19961         * tests/unictype/test-numeric.h: Likewise.
19962         * tests/unictype/test-pr_alphabetic.c: Likewise.
19963         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
19964         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
19965         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
19966         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
19967         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
19968         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
19969         * tests/unictype/test-pr_bidi_control.c: Likewise.
19970         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
19971         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
19972         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
19973         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
19974         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
19975         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
19976         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
19977         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
19978         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
19979         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
19980         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
19981         * tests/unictype/test-pr_combining.c: Likewise.
19982         * tests/unictype/test-pr_composite.c: Likewise.
19983         * tests/unictype/test-pr_currency_symbol.c: Likewise.
19984         * tests/unictype/test-pr_dash.c: Likewise.
19985         * tests/unictype/test-pr_decimal_digit.c: Likewise.
19986         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
19987         * tests/unictype/test-pr_deprecated.c: Likewise.
19988         * tests/unictype/test-pr_diacritic.c: Likewise.
19989         * tests/unictype/test-pr_extender.c: Likewise.
19990         * tests/unictype/test-pr_format_control.c: Likewise.
19991         * tests/unictype/test-pr_grapheme_base.c: Likewise.
19992         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
19993         * tests/unictype/test-pr_grapheme_link.c: Likewise.
19994         * tests/unictype/test-pr_hex_digit.c: Likewise.
19995         * tests/unictype/test-pr_hyphen.c: Likewise.
19996         * tests/unictype/test-pr_id_continue.c: Likewise.
19997         * tests/unictype/test-pr_id_start.c: Likewise.
19998         * tests/unictype/test-pr_ideographic.c: Likewise.
19999         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
20000         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
20001         * tests/unictype/test-pr_ignorable_control.c: Likewise.
20002         * tests/unictype/test-pr_iso_control.c: Likewise.
20003         * tests/unictype/test-pr_join_control.c: Likewise.
20004         * tests/unictype/test-pr_left_of_pair.c: Likewise.
20005         * tests/unictype/test-pr_line_separator.c: Likewise.
20006         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
20007         * tests/unictype/test-pr_lowercase.c: Likewise.
20008         * tests/unictype/test-pr_math.c: Likewise.
20009         * tests/unictype/test-pr_non_break.c: Likewise.
20010         * tests/unictype/test-pr_not_a_character.c: Likewise.
20011         * tests/unictype/test-pr_numeric.c: Likewise.
20012         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
20013         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
20014         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
20015         * tests/unictype/test-pr_other_id_continue.c: Likewise.
20016         * tests/unictype/test-pr_other_id_start.c: Likewise.
20017         * tests/unictype/test-pr_other_lowercase.c: Likewise.
20018         * tests/unictype/test-pr_other_math.c: Likewise.
20019         * tests/unictype/test-pr_other_uppercase.c: Likewise.
20020         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
20021         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
20022         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
20023         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
20024         * tests/unictype/test-pr_private_use.c: Likewise.
20025         * tests/unictype/test-pr_punctuation.c: Likewise.
20026         * tests/unictype/test-pr_quotation_mark.c: Likewise.
20027         * tests/unictype/test-pr_radical.c: Likewise.
20028         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
20029         * tests/unictype/test-pr_soft_dotted.c: Likewise.
20030         * tests/unictype/test-pr_space.c: Likewise.
20031         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
20032         * tests/unictype/test-pr_titlecase.c: Likewise.
20033         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
20034         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
20035         * tests/unictype/test-pr_uppercase.c: Likewise.
20036         * tests/unictype/test-pr_variation_selector.c: Likewise.
20037         * tests/unictype/test-pr_white_space.c: Likewise.
20038         * tests/unictype/test-pr_xid_continue.c: Likewise.
20039         * tests/unictype/test-pr_xid_start.c: Likewise.
20040         * tests/unictype/test-pr_zero_width.c: Likewise.
20041         * tests/unictype/test-sy_c_whitespace.c: Likewise.
20042         * tests/unictype/test-sy_java_whitespace.c: Likewise.
20043
20044 2007-11-12  Bruno Haible  <bruno@clisp.org>
20045
20046         Unicode character classification functions.
20047         * lib/unictype.h: New file.
20048         * modules/unictype/base: New file.
20049         * modules/unictype/category-L: New file.
20050         * modules/unictype/category-Lu: New file.
20051         * modules/unictype/category-Ll: New file.
20052         * modules/unictype/category-Lt: New file.
20053         * modules/unictype/category-Lm: New file.
20054         * modules/unictype/category-Lo: New file.
20055         * modules/unictype/category-M: New file.
20056         * modules/unictype/category-Mn: New file.
20057         * modules/unictype/category-Mc: New file.
20058         * modules/unictype/category-Me: New file.
20059         * modules/unictype/category-N: New file.
20060         * modules/unictype/category-Nd: New file.
20061         * modules/unictype/category-Nl: New file.
20062         * modules/unictype/category-No: New file.
20063         * modules/unictype/category-P: New file.
20064         * modules/unictype/category-Pc: New file.
20065         * modules/unictype/category-Pd: New file.
20066         * modules/unictype/category-Ps: New file.
20067         * modules/unictype/category-Pe: New file.
20068         * modules/unictype/category-Pi: New file.
20069         * modules/unictype/category-Pf: New file.
20070         * modules/unictype/category-Po: New file.
20071         * modules/unictype/category-S: New file.
20072         * modules/unictype/category-Sm: New file.
20073         * modules/unictype/category-Sc: New file.
20074         * modules/unictype/category-Sk: New file.
20075         * modules/unictype/category-So: New file.
20076         * modules/unictype/category-Z: New file.
20077         * modules/unictype/category-Zs: New file.
20078         * modules/unictype/category-Zl: New file.
20079         * modules/unictype/category-Zp: New file.
20080         * modules/unictype/category-C: New file.
20081         * modules/unictype/category-Cc: New file.
20082         * modules/unictype/category-Cf: New file.
20083         * modules/unictype/category-Cs: New file.
20084         * modules/unictype/category-Co: New file.
20085         * modules/unictype/category-Cn: New file.
20086         * modules/unictype/category-or: New file.
20087         * modules/unictype/category-of: New file.
20088         * modules/unictype/category-test: New file.
20089         * modules/unictype/category-test-withtable: New file.
20090         * modules/unictype/category-byname: New file.
20091         * modules/unictype/category-none: New file.
20092         * modules/unictype/category-and: New file.
20093         * modules/unictype/category-and-not: New file.
20094         * modules/unictype/category-name: New file.
20095         * modules/unictype/combining-class: New file.
20096         * modules/unictype/category-all: New file.
20097         * modules/unictype/bidicategory-all: New file.
20098         * modules/unictype/bidicategory-byname: New file.
20099         * modules/unictype/bidicategory-name: New file.
20100         * modules/unictype/bidicategory-of: New file.
20101         * modules/unictype/bidicategory-test: New file.
20102         * modules/unictype/decimal-digit: New file.
20103         * modules/unictype/digit: New file.
20104         * modules/unictype/numeric: New file.
20105         * modules/unictype/mirror: New file.
20106         * modules/unictype/property-white-space: New file.
20107         * modules/unictype/property-alphabetic: New file.
20108         * modules/unictype/property-other-alphabetic: New file.
20109         * modules/unictype/property-not-a-character: New file.
20110         * modules/unictype/property-default-ignorable-code-point: New file.
20111         * modules/unictype/property-other-default-ignorable-code-point: New
20112         file.
20113         * modules/unictype/property-deprecated: New file.
20114         * modules/unictype/property-logical-order-exception: New file.
20115         * modules/unictype/property-variation-selector: New file.
20116         * modules/unictype/property-private-use: New file.
20117         * modules/unictype/property-unassigned-code-value: New file.
20118         * modules/unictype/property-uppercase: New file.
20119         * modules/unictype/property-other-uppercase: New file.
20120         * modules/unictype/property-lowercase: New file.
20121         * modules/unictype/property-other-lowercase: New file.
20122         * modules/unictype/property-titlecase: New file.
20123         * modules/unictype/property-soft-dotted: New file.
20124         * modules/unictype/property-id-start: New file.
20125         * modules/unictype/property-other-id-start: New file.
20126         * modules/unictype/property-id-continue: New file.
20127         * modules/unictype/property-other-id-continue: New file.
20128         * modules/unictype/property-xid-start: New file.
20129         * modules/unictype/property-xid-continue: New file.
20130         * modules/unictype/property-pattern-white-space: New file.
20131         * modules/unictype/property-pattern-syntax: New file.
20132         * modules/unictype/property-join-control: New file.
20133         * modules/unictype/property-grapheme-base: New file.
20134         * modules/unictype/property-grapheme-extend: New file.
20135         * modules/unictype/property-other-grapheme-extend: New file.
20136         * modules/unictype/property-grapheme-link: New file.
20137         * modules/unictype/property-bidi-control: New file.
20138         * modules/unictype/property-bidi-left-to-right: New file.
20139         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
20140         * modules/unictype/property-bidi-arabic-right-to-left: New file.
20141         * modules/unictype/property-bidi-european-digit: New file.
20142         * modules/unictype/property-bidi-eur-num-separator: New file.
20143         * modules/unictype/property-bidi-eur-num-terminator: New file.
20144         * modules/unictype/property-bidi-arabic-digit: New file.
20145         * modules/unictype/property-bidi-common-separator: New file.
20146         * modules/unictype/property-bidi-block-separator: New file.
20147         * modules/unictype/property-bidi-segment-separator: New file.
20148         * modules/unictype/property-bidi-whitespace: New file.
20149         * modules/unictype/property-bidi-non-spacing-mark: New file.
20150         * modules/unictype/property-bidi-boundary-neutral: New file.
20151         * modules/unictype/property-bidi-pdf: New file.
20152         * modules/unictype/property-bidi-embedding-or-override: New file.
20153         * modules/unictype/property-bidi-other-neutral: New file.
20154         * modules/unictype/property-hex-digit: New file.
20155         * modules/unictype/property-ascii-hex-digit: New file.
20156         * modules/unictype/property-ideographic: New file.
20157         * modules/unictype/property-unified-ideograph: New file.
20158         * modules/unictype/property-radical: New file.
20159         * modules/unictype/property-ids-binary-operator: New file.
20160         * modules/unictype/property-ids-trinary-operator: New file.
20161         * modules/unictype/property-zero-width: New file.
20162         * modules/unictype/property-space: New file.
20163         * modules/unictype/property-non-break: New file.
20164         * modules/unictype/property-iso-control: New file.
20165         * modules/unictype/property-format-control: New file.
20166         * modules/unictype/property-dash: New file.
20167         * modules/unictype/property-hyphen: New file.
20168         * modules/unictype/property-punctuation: New file.
20169         * modules/unictype/property-line-separator: New file.
20170         * modules/unictype/property-paragraph-separator: New file.
20171         * modules/unictype/property-quotation-mark: New file.
20172         * modules/unictype/property-sentence-terminal: New file.
20173         * modules/unictype/property-terminal-punctuation: New file.
20174         * modules/unictype/property-currency-symbol: New file.
20175         * modules/unictype/property-math: New file.
20176         * modules/unictype/property-other-math: New file.
20177         * modules/unictype/property-paired-punctuation: New file.
20178         * modules/unictype/property-left-of-pair: New file.
20179         * modules/unictype/property-combining: New file.
20180         * modules/unictype/property-composite: New file.
20181         * modules/unictype/property-decimal-digit: New file.
20182         * modules/unictype/property-numeric: New file.
20183         * modules/unictype/property-diacritic: New file.
20184         * modules/unictype/property-extender: New file.
20185         * modules/unictype/property-ignorable-control: New file.
20186         * modules/unictype/property-test: New file.
20187         * modules/unictype/property-byname: New file.
20188         * modules/unictype/property-all: New file.
20189         * modules/unictype/scripts: New file.
20190         * modules/unictype/scripts-all: New file.
20191         * modules/unictype/block-of: New file.
20192         * modules/unictype/block-test: New file.
20193         * modules/unictype/block-list: New file.
20194         * modules/unictype/block-all: New file.
20195         * modules/unictype/syntax-c-whitespace: New file.
20196         * modules/unictype/syntax-java-whitespace: New file.
20197         * modules/unictype/syntax-c-ident: New file.
20198         * modules/unictype/syntax-java-ident: New file.
20199         * modules/unictype/ctype-alnum: New file.
20200         * modules/unictype/ctype-alpha: New file.
20201         * modules/unictype/ctype-cntrl: New file.
20202         * modules/unictype/ctype-digit: New file.
20203         * modules/unictype/ctype-graph: New file.
20204         * modules/unictype/ctype-lower: New file.
20205         * modules/unictype/ctype-print: New file.
20206         * modules/unictype/ctype-punct: New file.
20207         * modules/unictype/ctype-space: New file.
20208         * modules/unictype/ctype-upper: New file.
20209         * modules/unictype/ctype-xdigit: New file.
20210         * modules/unictype/ctype-blank: New file.
20211         * lib/unictype/bidi_byname.c: New file.
20212         * lib/unictype/bidi_name.c: New file.
20213         * lib/unictype/bidi_of.c: New file.
20214         * lib/unictype/bidi_test.c: New file.
20215         * lib/unictype/bitmap.h: New file.
20216         * lib/unictype/block_test.c: New file.
20217         * lib/unictype/blocks.c: New file.
20218         * lib/unictype/categ_C.c: New file.
20219         * lib/unictype/categ_Cc.c: New file.
20220         * lib/unictype/categ_Cf.c: New file.
20221         * lib/unictype/categ_Cn.c: New file.
20222         * lib/unictype/categ_Co.c: New file.
20223         * lib/unictype/categ_Cs.c: New file.
20224         * lib/unictype/categ_L.c: New file.
20225         * lib/unictype/categ_Ll.c: New file.
20226         * lib/unictype/categ_Lm.c: New file.
20227         * lib/unictype/categ_Lo.c: New file.
20228         * lib/unictype/categ_Lt.c: New file.
20229         * lib/unictype/categ_Lu.c: New file.
20230         * lib/unictype/categ_M.c: New file.
20231         * lib/unictype/categ_Mc.c: New file.
20232         * lib/unictype/categ_Me.c: New file.
20233         * lib/unictype/categ_Mn.c: New file.
20234         * lib/unictype/categ_N.c: New file.
20235         * lib/unictype/categ_Nd.c: New file.
20236         * lib/unictype/categ_Nl.c: New file.
20237         * lib/unictype/categ_No.c: New file.
20238         * lib/unictype/categ_P.c: New file.
20239         * lib/unictype/categ_Pc.c: New file.
20240         * lib/unictype/categ_Pd.c: New file.
20241         * lib/unictype/categ_Pe.c: New file.
20242         * lib/unictype/categ_Pf.c: New file.
20243         * lib/unictype/categ_Pi.c: New file.
20244         * lib/unictype/categ_Po.c: New file.
20245         * lib/unictype/categ_Ps.c: New file.
20246         * lib/unictype/categ_S.c: New file.
20247         * lib/unictype/categ_Sc.c: New file.
20248         * lib/unictype/categ_Sk.c: New file.
20249         * lib/unictype/categ_Sm.c: New file.
20250         * lib/unictype/categ_So.c: New file.
20251         * lib/unictype/categ_Z.c: New file.
20252         * lib/unictype/categ_Zl.c: New file.
20253         * lib/unictype/categ_Zp.c: New file.
20254         * lib/unictype/categ_Zs.c: New file.
20255         * lib/unictype/categ_and.c: New file.
20256         * lib/unictype/categ_and_not.c: New file.
20257         * lib/unictype/categ_byname.c: New file.
20258         * lib/unictype/categ_name.c: New file.
20259         * lib/unictype/categ_none.c: New file.
20260         * lib/unictype/categ_of.c: New file.
20261         * lib/unictype/categ_or.c: New file.
20262         * lib/unictype/categ_test.c: New file.
20263         * lib/unictype/combining.c: New file.
20264         * lib/unictype/ctype_alnum.c: New file.
20265         * lib/unictype/ctype_alpha.c: New file.
20266         * lib/unictype/ctype_blank.c: New file.
20267         * lib/unictype/ctype_cntrl.c: New file.
20268         * lib/unictype/ctype_digit.c: New file.
20269         * lib/unictype/ctype_graph.c: New file.
20270         * lib/unictype/ctype_lower.c: New file.
20271         * lib/unictype/ctype_print.c: New file.
20272         * lib/unictype/ctype_punct.c: New file.
20273         * lib/unictype/ctype_space.c: New file.
20274         * lib/unictype/ctype_upper.c: New file.
20275         * lib/unictype/ctype_xdigit.c: New file.
20276         * lib/unictype/decdigit.c: New file.
20277         * lib/unictype/digit.c: New file.
20278         * lib/unictype/identsyntaxmap.h: New file.
20279         * lib/unictype/mirror.c: New file.
20280         * lib/unictype/numeric.c: New file.
20281         * lib/unictype/pr_alphabetic.c: New file.
20282         * lib/unictype/pr_ascii_hex_digit.c: New file.
20283         * lib/unictype/pr_bidi_arabic_digit.c: New file.
20284         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
20285         * lib/unictype/pr_bidi_block_separator.c: New file.
20286         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
20287         * lib/unictype/pr_bidi_common_separator.c: New file.
20288         * lib/unictype/pr_bidi_control.c: New file.
20289         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
20290         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
20291         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
20292         * lib/unictype/pr_bidi_european_digit.c: New file.
20293         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
20294         * lib/unictype/pr_bidi_left_to_right.c: New file.
20295         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
20296         * lib/unictype/pr_bidi_other_neutral.c: New file.
20297         * lib/unictype/pr_bidi_pdf.c: New file.
20298         * lib/unictype/pr_bidi_segment_separator.c: New file.
20299         * lib/unictype/pr_bidi_whitespace.c: New file.
20300         * lib/unictype/pr_byname.c: New file.
20301         * lib/unictype/pr_byname.gperf: New file.
20302         * lib/unictype/pr_combining.c: New file.
20303         * lib/unictype/pr_composite.c: New file.
20304         * lib/unictype/pr_currency_symbol.c: New file.
20305         * lib/unictype/pr_dash.c: New file.
20306         * lib/unictype/pr_decimal_digit.c: New file.
20307         * lib/unictype/pr_default_ignorable_code_point.c: New file.
20308         * lib/unictype/pr_deprecated.c: New file.
20309         * lib/unictype/pr_diacritic.c: New file.
20310         * lib/unictype/pr_extender.c: New file.
20311         * lib/unictype/pr_format_control.c: New file.
20312         * lib/unictype/pr_grapheme_base.c: New file.
20313         * lib/unictype/pr_grapheme_extend.c: New file.
20314         * lib/unictype/pr_grapheme_link.c: New file.
20315         * lib/unictype/pr_hex_digit.c: New file.
20316         * lib/unictype/pr_hyphen.c: New file.
20317         * lib/unictype/pr_id_continue.c: New file.
20318         * lib/unictype/pr_id_start.c: New file.
20319         * lib/unictype/pr_ideographic.c: New file.
20320         * lib/unictype/pr_ids_binary_operator.c: New file.
20321         * lib/unictype/pr_ids_trinary_operator.c: New file.
20322         * lib/unictype/pr_ignorable_control.c: New file.
20323         * lib/unictype/pr_iso_control.c: New file.
20324         * lib/unictype/pr_join_control.c: New file.
20325         * lib/unictype/pr_left_of_pair.c: New file.
20326         * lib/unictype/pr_line_separator.c: New file.
20327         * lib/unictype/pr_logical_order_exception.c: New file.
20328         * lib/unictype/pr_lowercase.c: New file.
20329         * lib/unictype/pr_math.c: New file.
20330         * lib/unictype/pr_non_break.c: New file.
20331         * lib/unictype/pr_not_a_character.c: New file.
20332         * lib/unictype/pr_numeric.c: New file.
20333         * lib/unictype/pr_other_alphabetic.c: New file.
20334         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
20335         * lib/unictype/pr_other_grapheme_extend.c: New file.
20336         * lib/unictype/pr_other_id_continue.c: New file.
20337         * lib/unictype/pr_other_id_start.c: New file.
20338         * lib/unictype/pr_other_lowercase.c: New file.
20339         * lib/unictype/pr_other_math.c: New file.
20340         * lib/unictype/pr_other_uppercase.c: New file.
20341         * lib/unictype/pr_paired_punctuation.c: New file.
20342         * lib/unictype/pr_paragraph_separator.c: New file.
20343         * lib/unictype/pr_pattern_syntax.c: New file.
20344         * lib/unictype/pr_pattern_white_space.c: New file.
20345         * lib/unictype/pr_private_use.c: New file.
20346         * lib/unictype/pr_punctuation.c: New file.
20347         * lib/unictype/pr_quotation_mark.c: New file.
20348         * lib/unictype/pr_radical.c: New file.
20349         * lib/unictype/pr_sentence_terminal.c: New file.
20350         * lib/unictype/pr_soft_dotted.c: New file.
20351         * lib/unictype/pr_space.c: New file.
20352         * lib/unictype/pr_terminal_punctuation.c: New file.
20353         * lib/unictype/pr_test.c: New file.
20354         * lib/unictype/pr_titlecase.c: New file.
20355         * lib/unictype/pr_unassigned_code_value.c: New file.
20356         * lib/unictype/pr_unified_ideograph.c: New file.
20357         * lib/unictype/pr_uppercase.c: New file.
20358         * lib/unictype/pr_variation_selector.c: New file.
20359         * lib/unictype/pr_white_space.c: New file.
20360         * lib/unictype/pr_xid_continue.c: New file.
20361         * lib/unictype/pr_xid_start.c: New file.
20362         * lib/unictype/pr_zero_width.c: New file.
20363         * lib/unictype/scripts.c: New file.
20364         * lib/unictype/sy_c_ident.c: New file.
20365         * lib/unictype/sy_c_whitespace.c: New file.
20366         * lib/unictype/sy_java_ident.c: New file.
20367         * lib/unictype/sy_java_whitespace.c: New file.
20368
20369         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
20370         Unicode 5.0.0.
20371         * lib/unictype/blocks.h: Likewise.
20372         * lib/unictype/categ_C.h: Likewise.
20373         * lib/unictype/categ_Cc.h: Likewise.
20374         * lib/unictype/categ_Cf.h: Likewise.
20375         * lib/unictype/categ_Cn.h: Likewise.
20376         * lib/unictype/categ_Co.h: Likewise.
20377         * lib/unictype/categ_Cs.h: Likewise.
20378         * lib/unictype/categ_L.h: Likewise.
20379         * lib/unictype/categ_Ll.h: Likewise.
20380         * lib/unictype/categ_Lm.h: Likewise.
20381         * lib/unictype/categ_Lo.h: Likewise.
20382         * lib/unictype/categ_Lt.h: Likewise.
20383         * lib/unictype/categ_Lu.h: Likewise.
20384         * lib/unictype/categ_M.h: Likewise.
20385         * lib/unictype/categ_Mc.h: Likewise.
20386         * lib/unictype/categ_Me.h: Likewise.
20387         * lib/unictype/categ_Mn.h: Likewise.
20388         * lib/unictype/categ_N.h: Likewise.
20389         * lib/unictype/categ_Nd.h: Likewise.
20390         * lib/unictype/categ_Nl.h: Likewise.
20391         * lib/unictype/categ_No.h: Likewise.
20392         * lib/unictype/categ_P.h: Likewise.
20393         * lib/unictype/categ_Pc.h: Likewise.
20394         * lib/unictype/categ_Pd.h: Likewise.
20395         * lib/unictype/categ_Pe.h: Likewise.
20396         * lib/unictype/categ_Pf.h: Likewise.
20397         * lib/unictype/categ_Pi.h: Likewise.
20398         * lib/unictype/categ_Po.h: Likewise.
20399         * lib/unictype/categ_Ps.h: Likewise.
20400         * lib/unictype/categ_S.h: Likewise.
20401         * lib/unictype/categ_Sc.h: Likewise.
20402         * lib/unictype/categ_Sk.h: Likewise.
20403         * lib/unictype/categ_Sm.h: Likewise.
20404         * lib/unictype/categ_So.h: Likewise.
20405         * lib/unictype/categ_Z.h: Likewise.
20406         * lib/unictype/categ_Zl.h: Likewise.
20407         * lib/unictype/categ_Zp.h: Likewise.
20408         * lib/unictype/categ_Zs.h: Likewise.
20409         * lib/unictype/categ_of.h: Likewise.
20410         * lib/unictype/combining.h: Likewise.
20411         * lib/unictype/ctype_alnum.h: Likewise.
20412         * lib/unictype/ctype_alpha.h: Likewise.
20413         * lib/unictype/ctype_blank.h: Likewise.
20414         * lib/unictype/ctype_cntrl.h: Likewise.
20415         * lib/unictype/ctype_digit.h: Likewise.
20416         * lib/unictype/ctype_graph.h: Likewise.
20417         * lib/unictype/ctype_lower.h: Likewise.
20418         * lib/unictype/ctype_print.h: Likewise.
20419         * lib/unictype/ctype_punct.h: Likewise.
20420         * lib/unictype/ctype_space.h: Likewise.
20421         * lib/unictype/ctype_upper.h: Likewise.
20422         * lib/unictype/ctype_xdigit.h: Likewise.
20423         * lib/unictype/decdigit.h: Likewise.
20424         * lib/unictype/digit.h: Likewise.
20425         * lib/unictype/mirror.h: Likewise.
20426         * lib/unictype/numeric.h: Likewise.
20427         * lib/unictype/pr_alphabetic.h: Likewise.
20428         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
20429         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
20430         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
20431         * lib/unictype/pr_bidi_block_separator.h: Likewise.
20432         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
20433         * lib/unictype/pr_bidi_common_separator.h: Likewise.
20434         * lib/unictype/pr_bidi_control.h: Likewise.
20435         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
20436         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
20437         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
20438         * lib/unictype/pr_bidi_european_digit.h: Likewise.
20439         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
20440         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
20441         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
20442         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
20443         * lib/unictype/pr_bidi_pdf.h: Likewise.
20444         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
20445         * lib/unictype/pr_bidi_whitespace.h: Likewise.
20446         * lib/unictype/pr_combining.h: Likewise.
20447         * lib/unictype/pr_composite.h: Likewise.
20448         * lib/unictype/pr_currency_symbol.h: Likewise.
20449         * lib/unictype/pr_dash.h: Likewise.
20450         * lib/unictype/pr_decimal_digit.h: Likewise.
20451         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
20452         * lib/unictype/pr_deprecated.h: Likewise.
20453         * lib/unictype/pr_diacritic.h: Likewise.
20454         * lib/unictype/pr_extender.h: Likewise.
20455         * lib/unictype/pr_format_control.h: Likewise.
20456         * lib/unictype/pr_grapheme_base.h: Likewise.
20457         * lib/unictype/pr_grapheme_extend.h: Likewise.
20458         * lib/unictype/pr_grapheme_link.h: Likewise.
20459         * lib/unictype/pr_hex_digit.h: Likewise.
20460         * lib/unictype/pr_hyphen.h: Likewise.
20461         * lib/unictype/pr_id_continue.h: Likewise.
20462         * lib/unictype/pr_id_start.h: Likewise.
20463         * lib/unictype/pr_ideographic.h: Likewise.
20464         * lib/unictype/pr_ids_binary_operator.h: Likewise.
20465         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
20466         * lib/unictype/pr_ignorable_control.h: Likewise.
20467         * lib/unictype/pr_iso_control.h: Likewise.
20468         * lib/unictype/pr_join_control.h: Likewise.
20469         * lib/unictype/pr_left_of_pair.h: Likewise.
20470         * lib/unictype/pr_line_separator.h: Likewise.
20471         * lib/unictype/pr_logical_order_exception.h: Likewise.
20472         * lib/unictype/pr_lowercase.h: Likewise.
20473         * lib/unictype/pr_math.h: Likewise.
20474         * lib/unictype/pr_non_break.h: Likewise.
20475         * lib/unictype/pr_not_a_character.h: Likewise.
20476         * lib/unictype/pr_numeric.h: Likewise.
20477         * lib/unictype/pr_other_alphabetic.h: Likewise.
20478         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
20479         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
20480         * lib/unictype/pr_other_id_continue.h: Likewise.
20481         * lib/unictype/pr_other_id_start.h: Likewise.
20482         * lib/unictype/pr_other_lowercase.h: Likewise.
20483         * lib/unictype/pr_other_math.h: Likewise.
20484         * lib/unictype/pr_other_uppercase.h: Likewise.
20485         * lib/unictype/pr_paired_punctuation.h: Likewise.
20486         * lib/unictype/pr_paragraph_separator.h: Likewise.
20487         * lib/unictype/pr_pattern_syntax.h: Likewise.
20488         * lib/unictype/pr_pattern_white_space.h: Likewise.
20489         * lib/unictype/pr_private_use.h: Likewise.
20490         * lib/unictype/pr_punctuation.h: Likewise.
20491         * lib/unictype/pr_quotation_mark.h: Likewise.
20492         * lib/unictype/pr_radical.h: Likewise.
20493         * lib/unictype/pr_sentence_terminal.h: Likewise.
20494         * lib/unictype/pr_soft_dotted.h: Likewise.
20495         * lib/unictype/pr_space.h: Likewise.
20496         * lib/unictype/pr_terminal_punctuation.h: Likewise.
20497         * lib/unictype/pr_titlecase.h: Likewise.
20498         * lib/unictype/pr_unassigned_code_value.h: Likewise.
20499         * lib/unictype/pr_unified_ideograph.h: Likewise.
20500         * lib/unictype/pr_uppercase.h: Likewise.
20501         * lib/unictype/pr_variation_selector.h: Likewise.
20502         * lib/unictype/pr_white_space.h: Likewise.
20503         * lib/unictype/pr_xid_continue.h: Likewise.
20504         * lib/unictype/pr_xid_start.h: Likewise.
20505         * lib/unictype/pr_zero_width.h: Likewise.
20506         * lib/unictype/scripts.h: Likewise.
20507         * lib/unictype/scripts_byname.gperf: Likewise.
20508         * lib/unictype/sy_c_ident.h: Likewise.
20509         * lib/unictype/sy_c_whitespace.h: Likewise.
20510         * lib/unictype/sy_java_ident.h: Likewise.
20511         * lib/unictype/sy_java_whitespace.h: Likewise.
20512
20513         * lib/unictype/Makefile: New file.
20514         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
20515         glibc.
20516         * lib/unictype/3level.h: New file, copied from glibc.
20517         * lib/unictype/3levelbit.h: New file.
20518
20519 2007-11-11  Bruno Haible  <bruno@clisp.org>
20520
20521         * modules/gperf: New file.
20522         * modules/iconv_open (Depends-on): Add it.
20523         (Makefile.am): Remove the GPERF definition.
20524
20525 2007-11-11  Bruno Haible  <bruno@clisp.org>
20526
20527         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
20528         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
20529
20530 2007-11-11  Bruno Haible  <bruno@clisp.org>
20531
20532         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
20533         (usage): Remove function.
20534
20535 2007-11-11  Bruno Haible  <bruno@clisp.org>
20536
20537         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
20538         gl_FUNC_CEILF_LIBS.
20539         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
20540         gl_FUNC_CEIL_LIBS.
20541         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
20542         gl_FUNC_CEILL_LIBS.
20543         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
20544         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
20545         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
20546
20547 2007-11-11  Bruno Haible  <bruno@clisp.org>
20548
20549         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
20550         roundf were declared but do not exist on functions.
20551         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
20552         roundl were declared but do not exist on functions.
20553         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
20554         HAVE_FLOORL_AND_CEILL, respectively.
20555         Needed for Sun C on Solaris 10.
20556
20557 2007-11-11  Bruno Haible  <bruno@clisp.org>
20558
20559         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
20560         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
20561         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
20562         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
20563         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
20564         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
20565         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
20566         HAVE_DECL_ROUNDF.
20567         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
20568         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
20569         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
20570         of HAVE_DECL_ROUND*.
20571         * modules/math (Makefile.am): Update.
20572
20573 2007-11-10  Bruno Haible  <bruno@clisp.org>
20574
20575         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
20576         ptrdiff_t as m4/intl.m4.
20577
20578 2007-11-10  Jim Meyering  <meyering@redhat.com>
20579
20580         Avoid link failure for the argmatch test.
20581         * tests/test-argmatch.c (usage): Define function to avoid a link
20582         failure: argmatch_die requires a usage function.
20583
20584 2007-11-09  Bruno Haible  <bruno@clisp.org>
20585
20586         * doc/functions/snprintf.texi: Mention BeOS deficiency.
20587         * doc/functions/vsnprintf.texi: Likewise.
20588         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
20589         with a size argument < 2.
20590
20591 2007-11-09  Bruno Haible  <bruno@clisp.org>
20592
20593         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
20594         buffer. Fixes an inefficiency introduced on 2007-11-03.
20595
20596 2007-11-09  Bruno Haible  <bruno@clisp.org>
20597
20598         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
20599         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
20600
20601 2007-11-08  Jim Meyering  <meyering@redhat.com>
20602
20603         Change cache variable name prefix "jm_" to "gl_" everywhere.
20604         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
20605         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
20606         * m4/uptime.m4: s/gl_/jm_/
20607
20608 2007-11-07  Bruno Haible  <bruno@clisp.org>
20609
20610         Update to GNU gettext 0.17.
20611         * m4/intl.m4: Update to GNU gettext 0.17.
20612         * m4/po.m4: Likewise.
20613         * modules/gettext (Files): Remove m4/ulonglong.m4.
20614         (configure.ac): Require gettext infrastructure from version 0.17.
20615
20616 2007-11-06  Bruno Haible  <bruno@clisp.org>
20617
20618         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
20619         symbolic values are not defined in a public header.
20620         * lib/freadable.c (freadable) [QNX]: Likewise.
20621         * lib/freadahead.c (freadahead) [QNX]: Likewise.
20622         * lib/freading.c (freading) [QNX]: Likewise.
20623         * lib/fseterr.c (fseterr) [QNX]: Likewise.
20624         * lib/fwritable.c (fwritable) [QNX]: Likewise.
20625         * lib/fwriting.c (fwriting) [QNX]: Likewise.
20626         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
20627         Reported by Alain Magloire.
20628
20629         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
20630
20631 2007-11-05  Bruno Haible  <bruno@clisp.org>
20632
20633         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
20634         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
20635         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
20636         Reported by Eric Blake.
20637
20638 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20639             Bruno Haible  <bruno@clisp.org>
20640
20641         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
20642         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
20643         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
20644         (malloc): Undefine also before including <stdlib.h>.
20645         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
20646         Needed on OSF/1 4.0.
20647
20648 2007-11-05  Jim Meyering  <meyering@redhat.com>
20649
20650         git-version-gen: sync from coreutils.
20651         * build-aux/git-version-gen: Add comments.
20652         Change the first '-' to '.' in the snapshot version string,
20653         e.g., 6.9-377-08144 -> 6.9.377-08144
20654         Remove first parameter.
20655         Don't declare a version "-dirty" merely because a time
20656         stamp has changed.
20657
20658 2007-11-04  Bruno Haible  <bruno@clisp.org>
20659
20660         * lib/lock.h: Protect all macro definitions containing an 'if'
20661         statement through a "do { ... } while (0)".
20662         * lib/tls.h: Likewise.
20663
20664 2007-11-04  Bruno Haible  <bruno@clisp.org>
20665
20666         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
20667
20668 2007-11-04  Bruno Haible  <bruno@clisp.org>
20669
20670         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
20671         * modules/fprintf-posix (Depends-on): Add nocrash.
20672         * modules/snprintf-posix (Depends-on): Likewise.
20673         * modules/sprintf-posix (Depends-on): Likewise.
20674         * modules/vasnprintf-posix (Depends-on): Likewise.
20675         * modules/vasprintf-posix (Depends-on): Likewise.
20676         * modules/vfprintf-posix (Depends-on): Likewise.
20677         * modules/vsnprintf-posix (Depends-on): Likewise.
20678         * modules/vsprintf-posix (Depends-on): Likewise.
20679         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
20680         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
20681         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
20682         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
20683         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
20684         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
20685         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
20686
20687 2007-11-04  Bruno Haible  <bruno@clisp.org>
20688
20689         * modules/nocrash: New file.
20690         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
20691         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
20692
20693 2007-11-04  Bruno Haible  <bruno@clisp.org>
20694
20695         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
20696         precision handling.
20697         * tests/test-vasprintf-posix.c (test_function): Likewise.
20698         * tests/test-snprintf-posix.h (test_function): Likewise.
20699         * tests/test-sprintf-posix.h (test_function): Likewise.
20700
20701         Fix *printf behaviour for large precisions on mingw and BeOS.
20702         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
20703         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
20704         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
20705         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
20706         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
20707         gl_PRINTF_PRECISION and test its result. Invoke
20708         gl_PREREQ_VASNPRINTF_PRECISION.
20709         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
20710         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
20711         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
20712         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
20713         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
20714         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
20715         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
20716         * doc/functions/fprintf.texi: Update.
20717         * doc/functions/printf.texi: Update.
20718         * doc/functions/snprintf.texi: Update.
20719         * doc/functions/sprintf.texi: Update.
20720         * doc/functions/vfprintf.texi: Update.
20721         * doc/functions/vprintf.texi: Update.
20722         * doc/functions/vsnprintf.texi: Update.
20723         * doc/functions/vsprintf.texi: Update.
20724
20725 2007-11-04  Bruno Haible  <bruno@clisp.org>
20726
20727         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
20728
20729 2007-11-04  Bruno Haible  <bruno@clisp.org>
20730
20731         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
20732         Reported by Sylvain Beucler <beuc@gnu.org>.
20733
20734 2007-11-03  Bruno Haible  <bruno@clisp.org>
20735
20736         * tests/test-fprintf-posix2.sh: New file.
20737         * tests/test-fprintf-posix2.c: New file.
20738         * modules/fprintf-posix-tests (Files): Add them.
20739         (TESTS): Add test-fprintf-posix2.sh.
20740         (configure.ac): Check for getrlimit and setrlimit.
20741         (check_PROGRAMS): Add test-fprintf-posix2.
20742
20743         * tests/test-printf-posix2.sh: New file.
20744         * tests/test-printf-posix2.c: New file.
20745         * modules/printf-posix-tests (Files): Add them.
20746         (TESTS): Add test-printf-posix2.sh.
20747         (configure.ac): Check for getrlimit and setrlimit.
20748         (check_PROGRAMS): Add test-printf-posix2.
20749
20750         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
20751         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
20752         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
20753         (decode_double): New function, copied from decode_long_double.
20754         (scale10_round_decimal_decoded): New function, extracted from
20755         scale10_round_decimal_long_double.
20756         (scale10_round_decimal_long_double): Use it.
20757         (scale10_round_decimal_double): New function.
20758         (floorlog10): New function.
20759         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
20760         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
20761         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
20762         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
20763         gl_PRINTF_ENOMEM and test its result. Invoke
20764         gl_PREREQ_VASNPRINTF_ENOMEM.
20765         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
20766         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
20767         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
20768         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
20769         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
20770         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
20771         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
20772         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
20773         * modules/snprintf-posix (Depends-on): Likewise.
20774         * modules/sprintf-posix (Depends-on): Likewise.
20775         * modules/vasnprintf-posix (Depends-on): Likewise.
20776         * modules/vasprintf-posix (Depends-on): Likewise.
20777         * modules/vfprintf-posix (Depends-on): Likewise.
20778         * modules/vsnprintf-posix (Depends-on): Likewise.
20779         * modules/vsprintf-posix (Depends-on): Likewise.
20780         * doc/functions/fprintf.texi: Update.
20781         * doc/functions/printf.texi: Update.
20782         * doc/functions/snprintf.texi: Update.
20783         * doc/functions/sprintf.texi: Update.
20784         * doc/functions/vfprintf.texi: Update.
20785         * doc/functions/vprintf.texi: Update.
20786         * doc/functions/vsnprintf.texi: Update.
20787         * doc/functions/vsprintf.texi: Update.
20788
20789 2007-11-03  Bruno Haible  <bruno@clisp.org>
20790
20791         * modules/frexp-nolibm-tests: New file.
20792
20793         * modules/frexp-nolibm: New file.
20794         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
20795
20796 2007-11-03  Bruno Haible  <bruno@clisp.org>
20797
20798         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
20799         value is C99 compliant.
20800         Needed for OSF/1 5.1.
20801
20802 2007-11-03  Bruno Haible  <bruno@clisp.org>
20803
20804         Fix out-of-memory handling of vasnprintf.
20805         * lib/printf-parse.c: Include <errno.h>.
20806         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
20807         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
20808         is already set.
20809
20810 2007-11-02  Eric Blake  <ebb9@byu.net>
20811
20812         Fix tests on cygwin.
20813         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
20814
20815 2007-11-01  Bruno Haible  <bruno@clisp.org>
20816
20817         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
20818         warning.
20819         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
20820         needed for POSIX compatibility.
20821
20822 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
20823
20824         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
20825         for compatibility with GNU.
20826
20827 2007-11-01  Bruno Haible  <bruno@clisp.org>
20828
20829         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
20830         (putenv): Renamed from rpl_putenv. Change argument type from
20831         'const char *' to 'char *'.
20832         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
20833         of defining putenv in config.h, just set REPLACE_PUTENV.
20834         * modules/putenv (Depends-on): Add stdlib.
20835         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
20836         (Include): Use <stdlib.h>.
20837         * lib/stdlib.in.h (putenv): New declaration.
20838         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
20839         REPLACE_PUTENV.
20840         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
20841         REPLACE_PUTENV.
20842         Needed for MacOS X 10.5.0.
20843         Reported by Peter O'Gorman <peter@pogma.com>.
20844
20845 2007-11-01  Jim Meyering  <meyering@redhat.com>
20846
20847         Treat an empty date string exactly like "0".
20848         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
20849         if the remaining date string (to be parsed) is empty, use "0".
20850         Reported by Mischa Molhoek and discussed in this thread:
20851         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
20852
20853 2007-10-31  Bruno Haible  <bruno@clisp.org>
20854
20855         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
20856         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
20857         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
20858         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
20859         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
20860         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
20861
20862 2007-10-31  Bruno Haible  <bruno@clisp.org>
20863
20864         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
20865         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
20866         (AC_TYPE_LONG_LONG_INT): Use it.
20867         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
20868         it as well.
20869         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
20870         to m4/longlong.m4.
20871         * modules/stdint (Files): Remove m4/ulonglong.m4.
20872         * modules/strtoull (Files): Use m4/longlong.m4 instead of
20873         m4/ulonglong.m4.
20874         * modules/strtoumax (Files): Likewise.
20875
20876 2007-10-30  Bruno Haible  <bruno@clisp.org>
20877
20878         * modules/xvasprintf-posix: New file.
20879         Suggested by Eric Blake.
20880
20881 2007-10-30  Bruno Haible  <bruno@clisp.org>
20882
20883         * modules/xprintf-posix-tests: New file.
20884         * tests/test-xprintf-posix.sh: New file.
20885         * tests/test-xprintf-posix.c: New file.
20886         * tests/test-xfprintf-posix.c: New file.
20887
20888         * modules/xprintf-posix: New file.
20889
20890 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20891
20892         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
20893         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
20894         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
20895
20896 2007-10-29  Bruno Haible  <bruno@clisp.org>
20897
20898         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
20899         contain the special marker '_cv_'.
20900         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
20901         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
20902         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
20903         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
20904         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
20905         Reported by Ralf Wildenhues.
20906
20907 2007-10-29  Bruno Haible  <bruno@clisp.org>
20908
20909         * gnulib-tool (func_import): When --lgpl is not specified, set
20910         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
20911         GPLv3.
20912         Reported by Simon Josefsson.
20913
20914 2007-10-28  Bruno Haible  <bruno@clisp.org>
20915
20916         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
20917         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
20918         HAVE_DECL_ISFINITE.
20919         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
20920         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
20921         HAVE_DECL_ISFINITE.
20922
20923 2007-10-28  Bruno Haible  <bruno@clisp.org>
20924
20925         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
20926         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
20927
20928 2007-10-28  Bruno Haible  <bruno@clisp.org>
20929
20930         Fix link errors with Sun C 5.0 on Solaris 10.
20931         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
20932         function is declared but not present in the compiler's libm.
20933         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
20934         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
20935         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
20936         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
20937         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
20938         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
20939         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
20940         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
20941         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
20942         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
20943         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
20944         HAVE_DECL_FLOORL.
20945
20946 2007-10-28  Bruno Haible  <bruno@clisp.org>
20947
20948         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
20949         gl_FUNC_FLOORL. Cache the result.
20950         (gl_FUNC_FLOORL): Use it.
20951         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
20952         gl_FUNC_CEILL. Cache the result.
20953         (gl_FUNC_CEILL): Use it.
20954
20955         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
20956         gl_FUNC_FLOOR. Cache the result.
20957         (gl_FUNC_FLOOR): Use it.
20958         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
20959         gl_FUNC_CEIL. Cache the result.
20960         (gl_FUNC_CEIL): Use it.
20961
20962         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
20963         gl_FUNC_FLOORF. Cache the result.
20964         (gl_FUNC_FLOORF): Use it.
20965         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
20966         gl_FUNC_CEILF. Cache the result.
20967         (gl_FUNC_CEILF): Use it.
20968
20969 2007-10-28  Bruno Haible  <bruno@clisp.org>
20970
20971         * gnulib-tool: Allow specifying the LGPL version number through
20972         --lgpl=2 or --lgpl=3.
20973         (func_usage): Document --lgpl with argument.
20974         Handle --lgpl=... arguments.
20975         (func_import): Recognize also gl_LGPL calls with an argument. When
20976         --lgpl=2 is used and the module's license is just LGPL, report an
20977         error. Set sed_transform_lib_file according to the lgpl variable. In
20978         the generated files, use --lgpl or gl_LGPL invocations with argument,
20979         if necessary.
20980         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
20981         an LGPv2+ license.
20982         * doc/gnulib-tool.texi (Modified imports): Update explanation of
20983         gl_LGPL macro.
20984
20985 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20986             Bruno Haible  <bruno@clisp.org>
20987
20988         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
20989         (u16_uctomb_aux): Likewise.
20990         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
20991         !HAVE_INLINE.
20992         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
20993
20994 2007-10-28  Bruno Haible  <bruno@clisp.org>
20995
20996         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
20997         Invoke AM_GETTEXT_OPTION if it exists.
20998         * modules/vasprintf: Likewise.
20999         * modules/verror: Likewise.
21000         * modules/xprintf: Likewise.
21001         * modules/xvasprintf: Likewise.
21002
21003 2007-10-27  Ben Pfaff  <blp@gnu.org>
21004
21005         * lib/math.in.h: Define isfinite macro and prototypes for
21006         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
21007         implementations.
21008         * m4/math_h.m4: New substitutions for isfinite module.
21009         * lib/isfinite.c: New file.
21010         * m4/isfinite.m4: New file.
21011         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
21012         * modules/isfinite: New file.
21013         * modules/isfinite-tests: New file.
21014         * tests/tests-isfinite.c: New file.
21015         * doc/functions/isfinite.texi: Mention isfinite module.
21016         * MODULES.html.sh: Mention new module.
21017
21018 2007-10-27  Ben Pfaff  <blp@gnu.org>
21019
21020         Ralf Wildenhues reported that Tru64 4.0D declares the round
21021         functions but does not have definitions.
21022         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
21023         cannot be found in any library, set the output variable to
21024         "missing" instead of "".
21025         * m4/round.m4: Also use our substitute if we cannot find round in
21026         any library, even if it is declared.
21027         * m4/roundf.m4: Likewise for roundf.
21028         * m4/roundl.m4: Likewise for roundl.
21029         * lib/math.in.h: Undefine roundf, round, roundl before defining
21030         their replacements, to allow for hypothetical systems where these
21031         may be defined as macros but not available in libraries.
21032
21033 2007-10-27  Bruno Haible  <bruno@clisp.org>
21034
21035         * doc/gnulib.texi: Invoke @firstparagraphindent.
21036         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
21037         changes in gnulib.
21038         (Source changes): New section.
21039
21040 2007-10-26  Bruno Haible  <bruno@clisp.org>
21041
21042         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
21043         borrowed from autoconf.
21044
21045 2007-10-26  Bruno Haible  <bruno@clisp.org>
21046
21047         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
21048         strerror returned the empty string. Needed on HP-UX 11.00.
21049
21050 2007-10-24  Micah Cowan  <micah@cowan.name>
21051
21052         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
21053         * build-aux/bootstrap: Remove support for now-unnecessary option,
21054         --cvs-user, and envvars CVS_USER, CVS_RSH.
21055
21056 2007-10-24  Jim Meyering  <meyering@redhat.com>
21057
21058         Avoid diagnostics from sha1sum when there is no cached checksum.
21059         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
21060         if the po.s1 file hasn't been created yet.
21061
21062         * build-aux/bootstrap: Sync from coreutils:
21063         2007-10-24  Jim Meyering  <meyering@redhat.com>
21064         Get gnulib from the git repository, not from an obsolete cvs one.
21065         * build-aux/bootstrap: Suggestion from Micah Cowan.
21066         2007-10-04  Jim Meyering  <jim@meyering.net>
21067         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
21068         (update_po_files): Work also when there are no .po files in po/.
21069
21070 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
21071
21072         * README: Append ".git" to git and cg examples.
21073         Problem reported by Benoit Sigoure.
21074
21075 2007-10-23  Micah Cowan  <micah@cowan.name>
21076
21077         * users.txt: Add wget.
21078
21079 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21080
21081         Fix linking of some unistdio tests on FreeBSD.
21082         * modules/unistdio/u16-vsnprintf-tests
21083         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
21084         * modules/unistdio/u16-vsprintf-tests
21085         (test_u16_vsnprintf1_LDADD): Likewise.
21086         * modules/unistdio/u32-vsnprintf-tests
21087         (test_u32_vsnprintf1_LDADD): Likewise.
21088         * modules/unistdio/u32-vsprintf-tests
21089         (test_u32_vsprintf1_LDADD): Likewise.
21090         * modules/unistdio/u8-vsnprintf-tests
21091         (test_u8_vsnprintf1_LDADD): Likewise.
21092         * modules/unistdio/u8-vsprintf-tests
21093         (test_u8_vsprintf1_LDADD): Likewise.
21094         * modules/unistdio/ulc-vsnprintf-tests
21095         (test_ulc_vsnprintf1_LDADD): Likewise.
21096         * modules/unistdio/ulc-vsprintf-tests
21097         (test_ulc_vsprintf1_LDADD): Likewise.
21098
21099         Fix linking of some uniconv tests on FreeBSD.
21100         * modules/uniconv/u16-conv-from-enc-tests
21101         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
21102         * modules/uniconv/u16-conv-to-enc-tests
21103         (test_u16_conv_to_enc_LDADD): Likewise.
21104         * modules/uniconv/u16-strconv-from-enc-tests
21105         (test_u16_strconv_from_enc_LDADD): Likewise.
21106         * modules/uniconv/u16-strconv-to-enc-tests
21107         (test_u16_strconv_to_enc_LDADD): Likewise.
21108         * modules/uniconv/u32-conv-from-enc-tests
21109         (test_u32_conv_from_enc_LDADD): Likewise.
21110         * modules/uniconv/u32-conv-to-enc-tests
21111         (test_u32_conv_to_enc_LDADD): Likewise.
21112         * modules/uniconv/u32-strconv-from-enc-tests
21113         (test_u32_strconv_from_enc_LDADD): Likewise.
21114         * modules/uniconv/u32-strconv-to-enc-tests
21115         (test_u32_strconv_to_enc_LDADD): Likewise.
21116         * modules/uniconv/u8-conv-from-enc-tests
21117         (test_u8_conv_from_enc_LDADD): Likewise.
21118         * modules/uniconv/u8-conv-to-enc-tests
21119         (test_u8_conv_to_enc_LDADD): Likewise.
21120         * modules/uniconv/u8-strconv-from-enc-tests
21121         (test_u8_strconv_from_enc_LDADD): Likewise.
21122         * modules/uniconv/u8-strconv-to-enc-tests
21123         (test_u8_strconv_to_enc_LDADD): Likewise.
21124
21125 2007-10-22  Bruno Haible  <bruno@clisp.org>
21126
21127         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
21128         size.
21129
21130 2007-10-22  Eric Blake  <ebb9@byu.net>
21131
21132         Tweak x*printf documentation.
21133         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
21134         variable name and comments.
21135         Suggested by Bruno Haible.
21136
21137 2007-10-22  Bruno Haible  <bruno@clisp.org>
21138
21139         * lib/acl.c (copy_acl): Fix file name in comment.
21140
21141 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
21142
21143         Fix Tru64 problem with stdbool.h.
21144         * lib/stdbool.in.h (false, true):
21145         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
21146         Don't declare as an enum in this situation; it runs afoul of Tru64.
21147         Problem reported by Steven M. Schweda in
21148         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
21149
21150 2007-10-22  Eric Blake  <ebb9@byu.net>
21151
21152         Also wrap vf?printf.
21153         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
21154         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
21155         (xvprintf, xvfprintf): New functions.
21156
21157 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21158
21159         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
21160         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
21161
21162         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
21163         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
21164
21165 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
21166
21167         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
21168         by Bruno Haible.
21169
21170 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21171
21172         * lib/getloadavg.c
21173         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
21174         Undef `sys' after including sys/table.h, for Tru64 4.0D.
21175
21176         * tests/test-i-ring.c: Work for C89.
21177
21178 2007-10-22  Bruno Haible  <bruno@clisp.org>
21179
21180         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
21181         -1u, in preprocessor expression, so that we don't test for the bug
21182         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
21183         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
21184
21185 2007-10-22  Eric Blake  <ebb9@byu.net>
21186
21187         * tests/test-yesno.sh: Silence stderr during test.
21188
21189 2007-10-22  Simon Josefsson  <simon@josefsson.org>
21190
21191         * modules/crypto/gc-camellia: New file.
21192
21193         * m4/gc-camellia.m4: New file.
21194
21195         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
21196
21197         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
21198
21199 2007-10-22  Simon Josefsson  <simon@josefsson.org>
21200
21201         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
21202         --help to stdout.  Reported by sms@antinode.org (Steven
21203         M. Schweda).
21204
21205 2007-10-22  Simon Josefsson  <simon@josefsson.org>
21206
21207         * users.txt: Fix link to libksba.
21208
21209 2007-10-21  Ben Pfaff  <blp@gnu.org>
21210
21211         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
21212         round.c roundf implementation that depends on floorf and ceilf to
21213         be tested unconditionally.
21214
21215 2007-10-21  Ben Pfaff  <blp@gnu.org>
21216
21217         * m4/check-libm-func.m4: Removed.
21218         * m4/check-math-lib.m4: New file.
21219         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
21220         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
21221         definition and lack of AC_LIBOBJ([roundf]).
21222         * m4/roundl.m4: Ditto, and similarly for roundl.
21223         * modules/round: Reference new m4 file.
21224         * modules/roundf: Ditto.
21225         * modules/roundl: Ditto.
21226         * tests/test-round2.c (main): Use ROUND instead of round.
21227         Bug report from Bruno Haible.
21228
21229 2007-10-21  Bruno Haible  <bruno@clisp.org>
21230
21231         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
21232         context.
21233
21234 2007-10-21  Bruno Haible  <bruno@clisp.org>
21235
21236         * tests/test-wcwidth.c (main): Allow negative result for some control
21237         characters.
21238
21239         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
21240         Needed on OSF/1 5.1.
21241
21242 2007-10-21  Bruno Haible  <bruno@clisp.org>
21243
21244         * tests/test-floorf1.c: Include isnanf.h.
21245         (main): Use isnanf() instead of isnan().
21246         * tests/test-ceilf1.c: Include isnanf.h.
21247         (main): Use isnanf() instead of isnan().
21248         * tests/test-truncf1.c: Include isnanf.h.
21249         (main): Use isnanf() instead of isnan().
21250         * tests/test-roundf1.c: Include isnanf.h.
21251         (main): Use isnanf() instead of isnan().
21252
21253 2007-10-21  Eric Blake  <ebb9@byu.net>
21254
21255         * users.txt: Update URL for m4.
21256
21257 2007-10-21  Bruno Haible  <bruno@clisp.org>
21258
21259         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
21260
21261 2007-10-21  Bruno Haible  <bruno@clisp.org>
21262
21263         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
21264         Git's management files if the CVS files are not present.
21265
21266 2007-10-20  Bruno Haible  <bruno@clisp.org>
21267
21268         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
21269         gcc-3.4.x.
21270
21271 2007-10-20  Ben Pfaff  <blp@gnu.org>
21272
21273         * lib/math.in.h: Declare round, roundf, roundl if we are providing
21274         implementations.
21275         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
21276         * lib/round.c: New file.
21277         * lib/roundf.c: New file.
21278         * lib/roundl.c: New file.
21279         * m4/round.m4: New file.
21280         * m4/roundf.m4: New file.
21281         * m4/roundl.m4: New file.
21282         * m4/check-libm-func-m4: New file.
21283         * modules/math: Replace round, roundf, roundl related @VARS@ in
21284         math.in.h.
21285         * modules/round: New file.
21286         * modules/round-tests: New file.
21287         * modules/roundf: New file.
21288         * modules/roundf-tests: New file.
21289         * modules/roundl: New file.
21290         * modules/roundl-tests: New file.
21291         * tests/test-round1.c: New file.
21292         * tests/test-round2.c: New file.
21293         * tests/test-roundf1.c: New file.
21294         * tests/test-roundf2.c: New file.
21295         * tests/test-roundl.c: New file.
21296         * doc/functions/round.texi: Mention round module.
21297         * doc/functions/roundf.texi: Mention roundf module.
21298         * doc/functions/roundl.texi: Mention roundl module.
21299         * MODULES.html.sh: Mention new modules.
21300         Thanks to Bruno Haible for suggestions.
21301
21302 2007-10-20  Jim Meyering  <meyering@redhat.com>
21303
21304         * lib/xprintf.c: Include <config.h> unconditionally.
21305
21306         Change xprintf's license to GPL.
21307         * modules/xprintf (License): s/LGPL/GPL/, since this module
21308         depends on modules (exit and exitfail) which are GPL.
21309         Suggestion from Bruno Haible.
21310
21311         xprintf fixes.
21312         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
21313         Use a clearer diagnostic.
21314         Patch from Bruno Haible.
21315
21316 2007-10-20  Bruno Haible  <bruno@clisp.org>
21317
21318         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
21319         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
21320         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21321
21322 2007-10-20  Bruno Haible  <bruno@clisp.org>
21323
21324         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
21325         precision in the comparison result > x - 1 or similar.
21326         * tests/test-ceilf2.c (correct_result_p): Likewise.
21327         * tests/test-truncf2.c (correct_result_p): Likewise.
21328         * tests/test-trunc2.c (correct_result_p): Likewise.
21329         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
21330
21331 2007-10-20  Bruno Haible  <bruno@clisp.org>
21332
21333         * modules/ceil: New file.
21334         * m4/ceil.m4: New file.
21335         * doc/functions/ceil.texi: Mention the 'ceil' module.
21336
21337 2007-10-20  Bruno Haible  <bruno@clisp.org>
21338
21339         * modules/floor: New file.
21340         * m4/floor.m4: New file.
21341         * doc/functions/floor.texi: Mention the 'floor' module.
21342
21343 2007-10-20  Bruno Haible  <bruno@clisp.org>
21344
21345         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
21346         of %a.
21347         * modules/floorf-tests (Depends-on): Likewise.
21348         * modules/truncf-tests (Depends-on): Likewise.
21349         * modules/trunc-tests (Depends-on): Likewise.
21350         Reported by Ben Pfaff.
21351
21352 2007-10-19  Jim Meyering  <meyering@redhat.com>
21353
21354         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
21355         Don't bother testing specific errno values.  Just test ferror.
21356
21357         New module: xprintf
21358         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
21359
21360 2007-10-19  Bruno Haible  <bruno@clisp.org>
21361
21362         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
21363         syntax.
21364         * modules/javaexec (Makefile.am): Likewise.
21365         * modules/relocatable-prog (Makefile.am): Likewise.
21366         Suggested by Jim Meyering.
21367
21368 2007-10-18  Bruno Haible  <bruno@clisp.org>
21369
21370         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
21371         Reported by Jim Meyering.
21372
21373 2007-10-18  Eric Blake  <ebb9@byu.net>
21374
21375         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
21376
21377 2007-10-18  Bruno Haible  <bruno@clisp.org>
21378
21379         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
21380         the format string into writable memory. Needed in Fortify conditions.
21381
21382 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
21383             Bruno Haible  <bruno@clisp.org>
21384
21385         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
21386         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
21387         * modules/trim (Depends-on): Add mbchar.
21388         (configure.ac): Add gl_FUNC_MBRTOWC.
21389         (Makefile.am): Augment lib_SOURCES.
21390
21391 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
21392
21393         Modify glob.c to use fstatat and dirfd, to simplify it.
21394         Suggested by Eric Blake.
21395         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
21396         Don't include <stdbool.h>; not used.
21397         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
21398         (link_exists_p): Simplify implementation, since we can now assume
21399         dirfd and fstatat.
21400         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
21401
21402 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21403
21404         * gnulib-tool (func_get_dependencies): Fix sed script to
21405         match only tests.
21406
21407 2007-10-17  Bruno Haible  <bruno@clisp.org>
21408
21409         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
21410         allow locale names without encoding suffix.
21411         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
21412         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
21413
21414 2007-10-16  Bruno Haible  <bruno@clisp.org>
21415
21416         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
21417         * lib/getgroups.c (getgroups): Likewise.
21418         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
21419
21420 2007-10-16  Bruno Haible  <bruno@clisp.org>
21421
21422         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
21423         * modules/malloc-posix (License): Likewise.
21424         * modules/realloc-posix (License): Likewise.
21425         * modules/calloc-posix (License): Likewise.
21426         * modules/intprops (License): Change from GPL to LGPL, with
21427         Paul Eggert's approval.
21428
21429 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
21430
21431         Merge glibc changes into lib/glob.c.
21432
21433         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
21434         2007-10-15 04:59:03 UTC.  Here are the changes:
21435
21436         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
21437
21438         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
21439
21440         * lib/glob.c: Add some branch prediction throughout.
21441
21442         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
21443
21444         [BZ #5103]
21445         * lib/glob.c (glob): Recognize patterns starting \/.
21446
21447         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
21448
21449         [BZ #3996]
21450         * lib/glob.c (attribute_hidden): Define if not defined.
21451         (glob): Unescape dirname, filename or username when needed and not
21452         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
21453         is NULL.  Handle unescaped [ in pattern without closing ].
21454         Don't pass GLOB_CHECK down to recursive glob for directories.
21455         (__glob_pattern_type): New function.
21456         (__glob_pattern_p): Implement using __glob_pattern_type.
21457         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
21458         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
21459         Remove unreachable code.
21460
21461         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
21462
21463         * lib/glob.c (glob_in_dir): Add some comments and asserts to
21464         explain why there are no leaks.
21465
21466         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
21467
21468         [BZ #3253]
21469         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
21470         time, rather allocate increasingly bigger arrays of pointers, if
21471         possible with alloca, if too large with malloc.
21472
21473 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
21474
21475         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
21476         Problem reported by H.Merijn Brand in
21477         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
21478         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
21479         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
21480
21481 2007-10-15  Bruno Haible  <bruno@clisp.org>
21482
21483         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
21484         with explicit rpl_ prefix.
21485         * lib/fopen.c (fopen): Likewise.
21486         * lib/freopen.c (freopen): Likewise.
21487         * lib/iconv.c (iconv): Likewise.
21488         * lib/iconv_close.c (iconv_close): Likewise.
21489
21490 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
21491
21492         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
21493
21494 2007-10-15  Bruno Haible  <bruno@clisp.org>
21495
21496         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
21497         <stddef.h> instead of <stdlib.h> since we only need NULL.
21498         Reported by Ben Pfaff <blp@cs.stanford.edu>.
21499
21500 2007-10-15  Bruno Haible  <bruno@clisp.org>
21501
21502         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
21503         Replace paragraph talking about LIBOBJS.
21504         Reported by Colin Watson <cjwatson@debian.org>.
21505
21506 2007-10-15  Bruno Haible  <bruno@clisp.org>
21507
21508         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
21509         <stdlib.h> before using NULL.
21510
21511 2007-10-15  Simon Josefsson  <simon@josefsson.org>
21512
21513         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
21514         Reported by Albert Chin <china@thewrittenword.com>.
21515
21516 2007-10-14  Bruno Haible  <bruno@clisp.org>
21517
21518         * modules/iconv_open-utf-tests: New file.
21519         * tests/test-iconv-utf.c: New file.
21520
21521         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
21522         * modules/iconv_open-utf: New file.
21523         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
21524         (iconv, iconv_close): New declarations.
21525         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
21526         be defined.
21527         (iconv_open): Add special handling of conversion between UTF-8 and
21528         UTF-{16,32}{BE,LE}.
21529         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
21530         * lib/iconv_close.c: New file.
21531         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
21532         gl_FUNC_ICONV_OPEN.
21533         (gl_FUNC_ICONV_OPEN): Use it.
21534         (gl_FUNC_ICONV_OPEN_UTF): New macro.
21535         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
21536         and REPLACE_ICONV_UTF.
21537         * modules/iconv_open (Depends-on): Add c-strcase.
21538         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
21539         ICONV_CONST.
21540         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
21541
21542 2007-10-13  Albert Chin  <china@thewrittenword.com>
21543             Bruno Haible  <bruno@clisp.org>
21544
21545         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
21546         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
21547
21548 2007-10-13  Bruno Haible  <bruno@clisp.org>
21549
21550         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
21551         defined, use the ISO C99 inline semantics.
21552         * lib/argp.h (ARGP_EI): Likewise.
21553
21554 2007-10-13  Bruno Haible  <bruno@clisp.org>
21555
21556         Handle 'inline' change in gcc 4.3.0.
21557         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
21558         argp_fmtstream_write, argp_fmtstream_set_lmargin,
21559         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
21560         argp_fmtstream_point): Disable 'extern' declaration if the function
21561         definition is going to be provided inline.
21562         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
21563         semantics, not the ISO C99 inline semantics.
21564         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
21565         'extern' declaration if the function definition is going to be provided
21566         inline.
21567         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
21568         the GNU C inline semantics, not the ISO C99 inline semantics. With
21569         GCC 4.2, avoid a warning.
21570
21571 2007-10-13  Bruno Haible  <bruno@clisp.org>
21572
21573         * lib/freading.h (freading): Enable the use of __freading for
21574         glibc >= 2.7.
21575         * lib/freading.c (freading): Likewise.
21576
21577 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
21578
21579         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
21580         "warning: C99 inline functions are not supported; using GNU89".
21581
21582 2007-10-12  Bruno Haible  <bruno@clisp.org>
21583
21584         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
21585         of 2.
21586         * tests/test-ceilf2.c: New file.
21587         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
21588
21589         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
21590         * modules/ceilf-tests: Update.
21591
21592 2007-10-12  Bruno Haible  <bruno@clisp.org>
21593
21594         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
21595         of 2.
21596         * tests/test-floorf2.c: New file.
21597         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
21598
21599         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
21600         * modules/floorf-tests: Update.
21601
21602 2007-10-12  Bruno Haible  <bruno@clisp.org>
21603
21604         * tests/test-trunc2.c: New file.
21605         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
21606
21607         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
21608         * modules/trunc-tests: Update.
21609
21610 2007-10-12  Bruno Haible  <bruno@clisp.org>
21611
21612         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
21613         of 2.
21614         * tests/test-truncf2.c: New file.
21615         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
21616
21617         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
21618         * modules/truncf-tests: Update.
21619
21620 2007-10-11  Eric Blake  <ebb9@byu.net>
21621
21622         Don't claim strerror is broken on Interix.
21623         * doc/functions/strerror.texi (strerror): Known broken systems are
21624         now Solaris 8, and not Interix.
21625         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
21626         Interix on cross-compile.
21627         Reported by Martin Koeppe in
21628         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
21629
21630 2007-10-11  Bruno Haible  <bruno@clisp.org>
21631
21632         * modules/i-ring-tests: New file.
21633         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
21634         instead of assert.
21635
21636 2007-10-11  Bruno Haible  <bruno@clisp.org>
21637
21638         * modules/filenamecat-tests: New file.
21639         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
21640         * lib/filenamecat.c: Remove test code.
21641
21642 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
21643
21644         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
21645
21646         * lib/strerror.c: Include <string.h> always, to test interface,
21647         and to remove the need for the dummy.
21648         Include intprops.h to compute width instead of doing it ourselves
21649         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
21650         (strerror): Define it to return NULL if there's no system strerror.
21651         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
21652         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
21653         ancient pre-strerror Unix systems well any more.  Saying "unknown
21654         system error" is enough.
21655         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
21656         simpler strerror.c implementation.
21657         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
21658         Simplify the tests to reflect the simpler strerror implementation.
21659         * modules/strerror (Depends-on): Add intprops.
21660
21661 2007-10-09  Eric Blake  <ebb9@byu.net>
21662
21663         Silence test-fpending.
21664         * modules/fpending-tests (Files): Add wrapper script.
21665         * tests/test-fpending.sh: New file.
21666
21667 2007-10-09  Bruno Haible  <bruno@clisp.org>
21668
21669         * MODULES.html.sh (func_module): Don't create a hyperlink for
21670         function names like 'printf_frexp'.
21671         (Misc): Add crc, memxor.
21672         (Characteristics of floating types): New section.
21673         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
21674         isnanf-nolibm, signbit, trunc, truncf, truncl.
21675         (Enhancements for ISO C 99 functions): New subsection Input/output.
21676         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
21677         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
21678         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
21679         (Compatibility checks for POSIX:2001 functions): Add clock-time.
21680         (Enhancements for POSIX:2001 functions): Add chdir-long.
21681         (File system functions): Add areadlink, chdir-safer, read-file.
21682         Remove cycle-check.
21683         (File system as inode set): New section.
21684         (Date and time): Add gethrxtime.
21685         (Multithreading): Add openmp.
21686         (Internationalization functions): Add localename.
21687         (Unicode string functions): Add unistr/u*-mbsnlen.
21688         (Support for maintaining and releasing projects): Add git-version-gen.
21689         (Lone files): Remove directories.
21690
21691 2007-10-08  Ben Pfaff  <blp@gnu.org>
21692
21693         * lib/xmalloca.h: Fix typo in comment.
21694
21695 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
21696
21697         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
21698         when avoiding problems with integer overflow.  Use a portable test
21699         instead.
21700
21701 2007-10-08  Simon Josefsson  <simon@josefsson.org>
21702
21703         * modules/dummy (License): Change to LGPLv2+.
21704         * modules/float (License): Likewise
21705         * modules/realloc (License): Likewise
21706         * modules/stdlib (License): Likewise
21707
21708 2007-10-07  Bruno Haible  <bruno@clisp.org>
21709
21710         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
21711         * floor.c (TWO_MANT_DIG): Likewise.
21712         * ceil.c (TWO_MANT_DIG): Likewise.
21713         Reported by Ben Pfaff.
21714
21715 2007-10-07  Bruno Haible  <bruno@clisp.org>
21716
21717         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
21718         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
21719         * lib/frexp.c (FUNC): Likewise.
21720         * lib/printf-frexp.h (printf_frexp): Likewise.
21721         * lib/printf-frexpl.h (printf_frexpl): Likewise.
21722         * lib/printf-frexp.c (FUNC): Likewise.
21723         Suggested by Jim Meyering.
21724
21725 2007-10-07  Jim Meyering  <meyering@redhat.com>
21726
21727         Make xnanosleep's integer overflow test more robust.
21728         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
21729         so that gcc-4.3.0 doesn't optimize away this test for overflow.
21730
21731 2007-10-07  Bruno Haible  <bruno@clisp.org>
21732
21733         * NEWS: Mention the license change.
21734
21735         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
21736         abbreviations in the modules files.
21737
21738         Change copyright notice from GPLv2+ to GPLv3+.
21739         * README: Change copyright notice.
21740         * MODULES.html.sh: Likewise.
21741         * build-aux/bootstrap.conf: Likewise.
21742         * build-aux/config.libpath: Likewise.
21743         * build-aux/csharpcomp.sh.in: Likewise.
21744         * build-aux/csharpexec.sh.in: Likewise.
21745         * build-aux/install-reloc: Likewise.
21746         * build-aux/javacomp.sh.in: Likewise.
21747         * build-aux/javaexec.sh.in: Likewise.
21748         * build-aux/ldd.sh.in: Likewise.
21749         * build-aux/reloc-ldflags: Likewise.
21750         * build-aux/relocatable.sh.in: Likewise.
21751         * build-aux/x-to-1.in: Likewise.
21752         * check-module: Likewise.
21753         * config/srclistvars.sh: Likewise.
21754         * gnulib-tool: Likewise.
21755         * lib/acl-internal.h: Likewise.
21756         * lib/acl.c: Likewise.
21757         * lib/acl.h: Likewise.
21758         * lib/acl_entries.c: Likewise.
21759         * lib/areadlink-with-size.c: Likewise.
21760         * lib/areadlink.c: Likewise.
21761         * lib/areadlink.h: Likewise.
21762         * lib/argmatch.c: Likewise.
21763         * lib/argmatch.h: Likewise.
21764         * lib/argp-ba.c: Likewise.
21765         * lib/argp-eexst.c: Likewise.
21766         * lib/argp-fmtstream.c: Likewise.
21767         * lib/argp-fmtstream.h: Likewise.
21768         * lib/argp-fs-xinl.c: Likewise.
21769         * lib/argp-help.c: Likewise.
21770         * lib/argp-namefrob.h: Likewise.
21771         * lib/argp-parse.c: Likewise.
21772         * lib/argp-pin.c: Likewise.
21773         * lib/argp-pv.c: Likewise.
21774         * lib/argp-pvh.c: Likewise.
21775         * lib/argp-xinl.c: Likewise.
21776         * lib/argp.h: Likewise.
21777         * lib/at-func.c: Likewise.
21778         * lib/atanl.c: Likewise.
21779         * lib/backupfile.c: Likewise.
21780         * lib/backupfile.h: Likewise.
21781         * lib/basename.c: Likewise.
21782         * lib/binary-io.h: Likewise.
21783         * lib/byteswap.in.h: Likewise.
21784         * lib/c-stack.c: Likewise.
21785         * lib/c-stack.h: Likewise.
21786         * lib/c-strcasestr.c: Likewise.
21787         * lib/c-strcasestr.h: Likewise.
21788         * lib/c-strstr.c: Likewise.
21789         * lib/c-strstr.h: Likewise.
21790         * lib/c-strtod.c: Likewise.
21791         * lib/calloc.c: Likewise.
21792         * lib/canon-host.c: Likewise.
21793         * lib/canon-host.h: Likewise.
21794         * lib/canonicalize-lgpl.c: Likewise.
21795         * lib/canonicalize.c: Likewise.
21796         * lib/canonicalize.h: Likewise.
21797         * lib/ceil.c: Likewise.
21798         * lib/ceilf.c: Likewise.
21799         * lib/ceill.c: Likewise.
21800         * lib/chdir-long.c: Likewise.
21801         * lib/chdir-long.h: Likewise.
21802         * lib/chdir-safer.c: Likewise.
21803         * lib/chdir-safer.h: Likewise.
21804         * lib/chown.c: Likewise.
21805         * lib/classpath.c: Likewise.
21806         * lib/classpath.h: Likewise.
21807         * lib/clean-temp.c: Likewise.
21808         * lib/clean-temp.h: Likewise.
21809         * lib/cloexec.c: Likewise.
21810         * lib/close-stream.c: Likewise.
21811         * lib/closein.c: Likewise.
21812         * lib/closein.h: Likewise.
21813         * lib/closeout.c: Likewise.
21814         * lib/closeout.h: Likewise.
21815         * lib/concat-filename.c: Likewise.
21816         * lib/copy-file.c: Likewise.
21817         * lib/copy-file.h: Likewise.
21818         * lib/count-one-bits.h: Likewise.
21819         * lib/crc.c: Likewise.
21820         * lib/crc.h: Likewise.
21821         * lib/creat-safer.c: Likewise.
21822         * lib/csharpcomp.c: Likewise.
21823         * lib/csharpcomp.h: Likewise.
21824         * lib/csharpexec.c: Likewise.
21825         * lib/csharpexec.h: Likewise.
21826         * lib/cycle-check.c: Likewise.
21827         * lib/cycle-check.h: Likewise.
21828         * lib/diacrit.c: Likewise.
21829         * lib/diacrit.h: Likewise.
21830         * lib/diffseq.h: Likewise.
21831         * lib/dirchownmod.c: Likewise.
21832         * lib/dirent.in.h: Likewise.
21833         * lib/dirfd.c: Likewise.
21834         * lib/dirfd.h: Likewise.
21835         * lib/dirname.c: Likewise.
21836         * lib/dirname.h: Likewise.
21837         * lib/dummy.c: Likewise.
21838         * lib/dup-safer.c: Likewise.
21839         * lib/dup2.c: Likewise.
21840         * lib/eealloc.h: Likewise.
21841         * lib/error.c: Likewise.
21842         * lib/error.h: Likewise.
21843         * lib/euidaccess.c: Likewise.
21844         * lib/exclude.c: Likewise.
21845         * lib/exclude.h: Likewise.
21846         * lib/execute.c: Likewise.
21847         * lib/execute.h: Likewise.
21848         * lib/exitfail.c: Likewise.
21849         * lib/exitfail.h: Likewise.
21850         * lib/expl.c: Likewise.
21851         * lib/fatal-signal.c: Likewise.
21852         * lib/fatal-signal.h: Likewise.
21853         * lib/fbufmode.c: Likewise.
21854         * lib/fbufmode.h: Likewise.
21855         * lib/fchdir.c: Likewise.
21856         * lib/fchmodat.c: Likewise.
21857         * lib/fchownat.c: Likewise.
21858         * lib/fcntl--.h: Likewise.
21859         * lib/fcntl-safer.h: Likewise.
21860         * lib/fcntl.in.h: Likewise.
21861         * lib/fd-safer.c: Likewise.
21862         * lib/fflush.c: Likewise.
21863         * lib/file-has-acl.c: Likewise.
21864         * lib/file-set.c: Likewise.
21865         * lib/file-type.c: Likewise.
21866         * lib/file-type.h: Likewise.
21867         * lib/fileblocks.c: Likewise.
21868         * lib/filemode.c: Likewise.
21869         * lib/filemode.h: Likewise.
21870         * lib/filename.h: Likewise.
21871         * lib/filenamecat.c: Likewise.
21872         * lib/filenamecat.h: Likewise.
21873         * lib/findprog.c: Likewise.
21874         * lib/findprog.h: Likewise.
21875         * lib/float.in.h: Likewise.
21876         * lib/floor.c: Likewise.
21877         * lib/floorf.c: Likewise.
21878         * lib/floorl.c: Likewise.
21879         * lib/fopen-safer.c: Likewise.
21880         * lib/fopen.c: Likewise.
21881         * lib/fpending.c: Likewise.
21882         * lib/fpending.h: Likewise.
21883         * lib/fprintf.c: Likewise.
21884         * lib/fprintftime.h: Likewise.
21885         * lib/fpucw.h: Likewise.
21886         * lib/fpurge.c: Likewise.
21887         * lib/fpurge.h: Likewise.
21888         * lib/freadable.c: Likewise.
21889         * lib/freadable.h: Likewise.
21890         * lib/freadahead.c: Likewise.
21891         * lib/freadahead.h: Likewise.
21892         * lib/freading.c: Likewise.
21893         * lib/freading.h: Likewise.
21894         * lib/free.c: Likewise.
21895         * lib/freopen.c: Likewise.
21896         * lib/frexp.c: Likewise.
21897         * lib/frexpl.c: Likewise.
21898         * lib/fseek.c: Likewise.
21899         * lib/fseterr.c: Likewise.
21900         * lib/fseterr.h: Likewise.
21901         * lib/fstatat.c: Likewise.
21902         * lib/fstrcmp.c: Likewise.
21903         * lib/fstrcmp.h: Likewise.
21904         * lib/fsusage.c: Likewise.
21905         * lib/fsusage.h: Likewise.
21906         * lib/ftell.c: Likewise.
21907         * lib/ftello.c: Likewise.
21908         * lib/fts-cycle.c: Likewise.
21909         * lib/fts.c: Likewise.
21910         * lib/fts_.h: Likewise.
21911         * lib/full-read.c: Likewise.
21912         * lib/full-read.h: Likewise.
21913         * lib/full-write.c: Likewise.
21914         * lib/full-write.h: Likewise.
21915         * lib/fwritable.c: Likewise.
21916         * lib/fwritable.h: Likewise.
21917         * lib/fwriteerror.c: Likewise.
21918         * lib/fwriteerror.h: Likewise.
21919         * lib/fwriting.c: Likewise.
21920         * lib/fwriting.h: Likewise.
21921         * lib/gcd.c: Likewise.
21922         * lib/gcd.h: Likewise.
21923         * lib/getcwd.c: Likewise.
21924         * lib/getdate.h: Likewise.
21925         * lib/getdate.y: Likewise.
21926         * lib/getdomainname.c: Likewise.
21927         * lib/getdomainname.h: Likewise.
21928         * lib/getgroups.c: Likewise.
21929         * lib/gethostname.c: Likewise.
21930         * lib/gethrxtime.c: Likewise.
21931         * lib/gethrxtime.h: Likewise.
21932         * lib/getloadavg.c: Likewise.
21933         * lib/getndelim2.c: Likewise.
21934         * lib/getndelim2.h: Likewise.
21935         * lib/getnline.c: Likewise.
21936         * lib/getnline.h: Likewise.
21937         * lib/getopt.c: Likewise.
21938         * lib/getopt.in.h: Likewise.
21939         * lib/getopt1.c: Likewise.
21940         * lib/getopt_int.h: Likewise.
21941         * lib/getpagesize.h: Likewise.
21942         * lib/getsubopt.c: Likewise.
21943         * lib/gettime.c: Likewise.
21944         * lib/getugroups.c: Likewise.
21945         * lib/getugroups.h: Likewise.
21946         * lib/getusershell.c: Likewise.
21947         * lib/gl_anyavltree_list1.h: Likewise.
21948         * lib/gl_anyavltree_list2.h: Likewise.
21949         * lib/gl_anyhash_list1.h: Likewise.
21950         * lib/gl_anyhash_list2.h: Likewise.
21951         * lib/gl_anylinked_list1.h: Likewise.
21952         * lib/gl_anylinked_list2.h: Likewise.
21953         * lib/gl_anyrbtree_list1.h: Likewise.
21954         * lib/gl_anyrbtree_list2.h: Likewise.
21955         * lib/gl_anytree_list1.h: Likewise.
21956         * lib/gl_anytree_list2.h: Likewise.
21957         * lib/gl_anytree_oset.h: Likewise.
21958         * lib/gl_anytreehash_list1.h: Likewise.
21959         * lib/gl_anytreehash_list2.h: Likewise.
21960         * lib/gl_array_list.c: Likewise.
21961         * lib/gl_array_list.h: Likewise.
21962         * lib/gl_array_oset.c: Likewise.
21963         * lib/gl_array_oset.h: Likewise.
21964         * lib/gl_avltree_list.c: Likewise.
21965         * lib/gl_avltree_list.h: Likewise.
21966         * lib/gl_avltree_oset.c: Likewise.
21967         * lib/gl_avltree_oset.h: Likewise.
21968         * lib/gl_avltreehash_list.c: Likewise.
21969         * lib/gl_avltreehash_list.h: Likewise.
21970         * lib/gl_carray_list.c: Likewise.
21971         * lib/gl_carray_list.h: Likewise.
21972         * lib/gl_linked_list.c: Likewise.
21973         * lib/gl_linked_list.h: Likewise.
21974         * lib/gl_linkedhash_list.c: Likewise.
21975         * lib/gl_linkedhash_list.h: Likewise.
21976         * lib/gl_list.c: Likewise.
21977         * lib/gl_list.h: Likewise.
21978         * lib/gl_oset.c: Likewise.
21979         * lib/gl_oset.h: Likewise.
21980         * lib/gl_rbtree_list.c: Likewise.
21981         * lib/gl_rbtree_list.h: Likewise.
21982         * lib/gl_rbtree_oset.c: Likewise.
21983         * lib/gl_rbtree_oset.h: Likewise.
21984         * lib/gl_rbtreehash_list.c: Likewise.
21985         * lib/gl_rbtreehash_list.h: Likewise.
21986         * lib/gl_sublist.c: Likewise.
21987         * lib/gl_sublist.h: Likewise.
21988         * lib/group-member.c: Likewise.
21989         * lib/group-member.h: Likewise.
21990         * lib/hard-locale.c: Likewise.
21991         * lib/hard-locale.h: Likewise.
21992         * lib/hash-pjw.c: Likewise.
21993         * lib/hash-pjw.h: Likewise.
21994         * lib/hash-triple.c: Likewise.
21995         * lib/hash.c: Likewise.
21996         * lib/hash.h: Likewise.
21997         * lib/human.c: Likewise.
21998         * lib/human.h: Likewise.
21999         * lib/i-ring.c: Likewise.
22000         * lib/i-ring.h: Likewise.
22001         * lib/idcache.c: Likewise.
22002         * lib/imaxabs.c: Likewise.
22003         * lib/imaxdiv.c: Likewise.
22004         * lib/inet_pton.c: Likewise.
22005         * lib/inet_pton.h: Likewise.
22006         * lib/intprops.h: Likewise.
22007         * lib/inttostr.c: Likewise.
22008         * lib/inttostr.h: Likewise.
22009         * lib/inttypes.in.h: Likewise.
22010         * lib/isapipe.c: Likewise.
22011         * lib/isdir.c: Likewise.
22012         * lib/isnan.c: Likewise.
22013         * lib/isnan.h: Likewise.
22014         * lib/isnanf.c: Likewise.
22015         * lib/isnanf.h: Likewise.
22016         * lib/isnanl-nolibm.h: Likewise.
22017         * lib/isnanl.c: Likewise.
22018         * lib/isnanl.h: Likewise.
22019         * lib/javacomp.c: Likewise.
22020         * lib/javacomp.h: Likewise.
22021         * lib/javaexec.c: Likewise.
22022         * lib/javaexec.h: Likewise.
22023         * lib/javaversion.c: Likewise.
22024         * lib/javaversion.h: Likewise.
22025         * lib/javaversion.java: Likewise.
22026         * lib/lbrkprop.h: Likewise.
22027         * lib/lchmod.h: Likewise.
22028         * lib/lchown.c: Likewise.
22029         * lib/ldexpl.c: Likewise.
22030         * lib/linebreak.c: Likewise.
22031         * lib/linebreak.h: Likewise.
22032         * lib/linebuffer.c: Likewise.
22033         * lib/linebuffer.h: Likewise.
22034         * lib/locale.in.h: Likewise.
22035         * lib/logl.c: Likewise.
22036         * lib/long-options.c: Likewise.
22037         * lib/long-options.h: Likewise.
22038         * lib/lstat.c: Likewise.
22039         * lib/lstat.h: Likewise.
22040         * lib/math.in.h: Likewise.
22041         * lib/mbchar.c: Likewise.
22042         * lib/mbchar.h: Likewise.
22043         * lib/mbfile.h: Likewise.
22044         * lib/mbiter.h: Likewise.
22045         * lib/mbscasecmp.c: Likewise.
22046         * lib/mbscasestr.c: Likewise.
22047         * lib/mbschr.c: Likewise.
22048         * lib/mbscspn.c: Likewise.
22049         * lib/mbslen.c: Likewise.
22050         * lib/mbsncasecmp.c: Likewise.
22051         * lib/mbsnlen.c: Likewise.
22052         * lib/mbspbrk.c: Likewise.
22053         * lib/mbspcasecmp.c: Likewise.
22054         * lib/mbsrchr.c: Likewise.
22055         * lib/mbssep.c: Likewise.
22056         * lib/mbsspn.c: Likewise.
22057         * lib/mbsstr.c: Likewise.
22058         * lib/mbstok_r.c: Likewise.
22059         * lib/mbswidth.c: Likewise.
22060         * lib/mbswidth.h: Likewise.
22061         * lib/mbuiter.h: Likewise.
22062         * lib/memcasecmp.c: Likewise.
22063         * lib/memcasecmp.h: Likewise.
22064         * lib/memchr.c: Likewise.
22065         * lib/memcmp.c: Likewise.
22066         * lib/memcoll.c: Likewise.
22067         * lib/memcoll.h: Likewise.
22068         * lib/memcpy.c: Likewise.
22069         * lib/memrchr.c: Likewise.
22070         * lib/mkancesdirs.c: Likewise.
22071         * lib/mkdir-p.c: Likewise.
22072         * lib/mkdir-p.h: Likewise.
22073         * lib/mkdir.c: Likewise.
22074         * lib/mkdirat.c: Likewise.
22075         * lib/mkdtemp.c: Likewise.
22076         * lib/mkstemp-safer.c: Likewise.
22077         * lib/mkstemp.c: Likewise.
22078         * lib/modechange.c: Likewise.
22079         * lib/modechange.h: Likewise.
22080         * lib/mountlist.c: Likewise.
22081         * lib/mountlist.h: Likewise.
22082         * lib/mpsort.c: Likewise.
22083         * lib/nanosleep.c: Likewise.
22084         * lib/obstack.c: Likewise.
22085         * lib/obstack.h: Likewise.
22086         * lib/open-safer.c: Likewise.
22087         * lib/open.c: Likewise.
22088         * lib/openat-die.c: Likewise.
22089         * lib/openat-priv.h: Likewise.
22090         * lib/openat-proc.c: Likewise.
22091         * lib/openat.c: Likewise.
22092         * lib/openat.h: Likewise.
22093         * lib/pagealign_alloc.c: Likewise.
22094         * lib/pagealign_alloc.h: Likewise.
22095         * lib/physmem.c: Likewise.
22096         * lib/physmem.h: Likewise.
22097         * lib/pipe-safer.c: Likewise.
22098         * lib/pipe.c: Likewise.
22099         * lib/pipe.h: Likewise.
22100         * lib/posixtm.c: Likewise.
22101         * lib/posixtm.h: Likewise.
22102         * lib/posixver.c: Likewise.
22103         * lib/printf-frexp.c: Likewise.
22104         * lib/printf-frexp.h: Likewise.
22105         * lib/printf-frexpl.c: Likewise.
22106         * lib/printf-frexpl.h: Likewise.
22107         * lib/printf.c: Likewise.
22108         * lib/progname.c: Likewise.
22109         * lib/progname.h: Likewise.
22110         * lib/progreloc.c: Likewise.
22111         * lib/putenv.c: Likewise.
22112         * lib/quote.c: Likewise.
22113         * lib/quote.h: Likewise.
22114         * lib/quotearg.c: Likewise.
22115         * lib/quotearg.h: Likewise.
22116         * lib/raise.c: Likewise.
22117         * lib/readline.c: Likewise.
22118         * lib/readline.h: Likewise.
22119         * lib/readlink.c: Likewise.
22120         * lib/readtokens.c: Likewise.
22121         * lib/readtokens.h: Likewise.
22122         * lib/readtokens0.c: Likewise.
22123         * lib/readtokens0.h: Likewise.
22124         * lib/readutmp.c: Likewise.
22125         * lib/readutmp.h: Likewise.
22126         * lib/realloc.c: Likewise.
22127         * lib/relocwrapper.c: Likewise.
22128         * lib/rename-dest-slash.c: Likewise.
22129         * lib/rename.c: Likewise.
22130         * lib/rmdir.c: Likewise.
22131         * lib/rpmatch.c: Likewise.
22132         * lib/safe-read.c: Likewise.
22133         * lib/safe-read.h: Likewise.
22134         * lib/safe-write.c: Likewise.
22135         * lib/safe-write.h: Likewise.
22136         * lib/same-inode.h: Likewise.
22137         * lib/same.c: Likewise.
22138         * lib/same.h: Likewise.
22139         * lib/save-cwd.c: Likewise.
22140         * lib/save-cwd.h: Likewise.
22141         * lib/savedir.c: Likewise.
22142         * lib/savedir.h: Likewise.
22143         * lib/savewd.c: Likewise.
22144         * lib/savewd.h: Likewise.
22145         * lib/search.in.h: Likewise.
22146         * lib/setenv.c: Likewise.
22147         * lib/setenv.h: Likewise.
22148         * lib/settime.c: Likewise.
22149         * lib/sh-quote.c: Likewise.
22150         * lib/sh-quote.h: Likewise.
22151         * lib/sig2str.c: Likewise.
22152         * lib/sig2str.h: Likewise.
22153         * lib/signal.in.h: Likewise.
22154         * lib/signbitd.c: Likewise.
22155         * lib/signbitf.c: Likewise.
22156         * lib/signbitl.c: Likewise.
22157         * lib/sigprocmask.c: Likewise.
22158         * lib/sincosl.c: Likewise.
22159         * lib/sleep.c: Likewise.
22160         * lib/sprintf.c: Likewise.
22161         * lib/sqrtl.c: Likewise.
22162         * lib/stat-time.h: Likewise.
22163         * lib/stdio--.h: Likewise.
22164         * lib/stdio-safer.h: Likewise.
22165         * lib/stdlib--.h: Likewise.
22166         * lib/stdlib-safer.h: Likewise.
22167         * lib/stdlib.in.h: Likewise.
22168         * lib/stpcpy.c: Likewise.
22169         * lib/stpncpy.c: Likewise.
22170         * lib/strchrnul.c: Likewise.
22171         * lib/strcspn.c: Likewise.
22172         * lib/strerror.c: Likewise.
22173         * lib/strftime.c: Likewise.
22174         * lib/strftime.h: Likewise.
22175         * lib/striconveh.c: Likewise.
22176         * lib/striconveh.h: Likewise.
22177         * lib/striconveha.c: Likewise.
22178         * lib/striconveha.h: Likewise.
22179         * lib/stripslash.c: Likewise.
22180         * lib/strnlen1.c: Likewise.
22181         * lib/strnlen1.h: Likewise.
22182         * lib/strtod.c: Likewise.
22183         * lib/strtoimax.c: Likewise.
22184         * lib/strtok_r.c: Likewise.
22185         * lib/strtol.c: Likewise.
22186         * lib/strtoll.c: Likewise.
22187         * lib/strtoul.c: Likewise.
22188         * lib/strtoull.c: Likewise.
22189         * lib/sysexits.in.h: Likewise.
22190         * lib/tempname.c: Likewise.
22191         * lib/tempname.h: Likewise.
22192         * lib/timespec.h: Likewise.
22193         * lib/tls.c: Likewise.
22194         * lib/tls.h: Likewise.
22195         * lib/tmpdir.c: Likewise.
22196         * lib/tmpdir.h: Likewise.
22197         * lib/tmpfile-safer.c: Likewise.
22198         * lib/tmpfile.c: Likewise.
22199         * lib/trigl.c: Likewise.
22200         * lib/trigl.h: Likewise.
22201         * lib/trim.c: Likewise.
22202         * lib/trim.h: Likewise.
22203         * lib/trunc.c: Likewise.
22204         * lib/truncf.c: Likewise.
22205         * lib/truncl.c: Likewise.
22206         * lib/tsearch.c: Likewise.
22207         * lib/unicodeio.c: Likewise.
22208         * lib/unicodeio.h: Likewise.
22209         * lib/unistd--.h: Likewise.
22210         * lib/unistd-safer.h: Likewise.
22211         * lib/unistdio/ulc-fprintf.c: Likewise.
22212         * lib/unistdio/ulc-vfprintf.c: Likewise.
22213         * lib/unlinkdir.c: Likewise.
22214         * lib/unlinkdir.h: Likewise.
22215         * lib/unlocked-io.h: Likewise.
22216         * lib/unsetenv.c: Likewise.
22217         * lib/userspec.c: Likewise.
22218         * lib/utime.c: Likewise.
22219         * lib/utimecmp.c: Likewise.
22220         * lib/utimecmp.h: Likewise.
22221         * lib/utimens.c: Likewise.
22222         * lib/verify.h: Likewise.
22223         * lib/verror.c: Likewise.
22224         * lib/verror.h: Likewise.
22225         * lib/version-etc-fsf.c: Likewise.
22226         * lib/version-etc.c: Likewise.
22227         * lib/version-etc.h: Likewise.
22228         * lib/vfprintf.c: Likewise.
22229         * lib/vprintf.c: Likewise.
22230         * lib/vsprintf.c: Likewise.
22231         * lib/w32spawn.h: Likewise.
22232         * lib/wait-process.c: Likewise.
22233         * lib/wait-process.h: Likewise.
22234         * lib/wcwidth.c: Likewise.
22235         * lib/write-any-file.c: Likewise.
22236         * lib/xalloc-die.c: Likewise.
22237         * lib/xalloc.h: Likewise.
22238         * lib/xasprintf.c: Likewise.
22239         * lib/xgetcwd.c: Likewise.
22240         * lib/xgetcwd.h: Likewise.
22241         * lib/xgetdomainname.c: Likewise.
22242         * lib/xgetdomainname.h: Likewise.
22243         * lib/xgethostname.c: Likewise.
22244         * lib/xmalloc.c: Likewise.
22245         * lib/xmalloca.c: Likewise.
22246         * lib/xmalloca.h: Likewise.
22247         * lib/xmemcoll.c: Likewise.
22248         * lib/xnanosleep.c: Likewise.
22249         * lib/xreadlink.c: Likewise.
22250         * lib/xreadlink.h: Likewise.
22251         * lib/xsetenv.c: Likewise.
22252         * lib/xsetenv.h: Likewise.
22253         * lib/xstriconv.c: Likewise.
22254         * lib/xstriconv.h: Likewise.
22255         * lib/xstrndup.c: Likewise.
22256         * lib/xstrndup.h: Likewise.
22257         * lib/xstrtod.c: Likewise.
22258         * lib/xstrtod.h: Likewise.
22259         * lib/xstrtol-error.c: Likewise.
22260         * lib/xstrtol.c: Likewise.
22261         * lib/xstrtol.h: Likewise.
22262         * lib/xtime.h: Likewise.
22263         * lib/xvasprintf.c: Likewise.
22264         * lib/xvasprintf.h: Likewise.
22265         * lib/yesno.c: Likewise.
22266         * lib/yesno.h: Likewise.
22267         * posix-modules: Likewise.
22268         * tests/test-alloca-opt.c: Likewise.
22269         * tests/test-arcfour.c: Likewise.
22270         * tests/test-arctwo.c: Likewise.
22271         * tests/test-argmatch.c: Likewise.
22272         * tests/test-argp-2.sh: Likewise.
22273         * tests/test-argp.c: Likewise.
22274         * tests/test-arpa_inet.c: Likewise.
22275         * tests/test-array_list.c: Likewise.
22276         * tests/test-array_oset.c: Likewise.
22277         * tests/test-atexit.c: Likewise.
22278         * tests/test-avltree_list.c: Likewise.
22279         * tests/test-avltree_oset.c: Likewise.
22280         * tests/test-avltreehash_list.c: Likewise.
22281         * tests/test-base64.c: Likewise.
22282         * tests/test-binary-io.c: Likewise.
22283         * tests/test-byteswap.c: Likewise.
22284         * tests/test-c-ctype.c: Likewise.
22285         * tests/test-c-strcasecmp.c: Likewise.
22286         * tests/test-c-strcasestr.c: Likewise.
22287         * tests/test-c-strncasecmp.c: Likewise.
22288         * tests/test-c-strstr.c: Likewise.
22289         * tests/test-canonicalize-lgpl.c: Likewise.
22290         * tests/test-canonicalize.c: Likewise.
22291         * tests/test-carray_list.c: Likewise.
22292         * tests/test-ceilf.c: Likewise.
22293         * tests/test-ceill.c: Likewise.
22294         * tests/test-count-one-bits.c: Likewise.
22295         * tests/test-crc.c: Likewise.
22296         * tests/test-dirname.c: Likewise.
22297         * tests/test-fbufmode.c: Likewise.
22298         * tests/test-fcntl.c: Likewise.
22299         * tests/test-fflush.c: Likewise.
22300         * tests/test-floorf.c: Likewise.
22301         * tests/test-floorl.c: Likewise.
22302         * tests/test-fopen.c: Likewise.
22303         * tests/test-fprintf-posix.c: Likewise.
22304         * tests/test-fprintf-posix.h: Likewise.
22305         * tests/test-fpurge.c: Likewise.
22306         * tests/test-freadable.c: Likewise.
22307         * tests/test-freadahead.c: Likewise.
22308         * tests/test-freading.c: Likewise.
22309         * tests/test-freopen.c: Likewise.
22310         * tests/test-frexp.c: Likewise.
22311         * tests/test-frexpl.c: Likewise.
22312         * tests/test-fseek.c: Likewise.
22313         * tests/test-fseeko.c: Likewise.
22314         * tests/test-fseterr.c: Likewise.
22315         * tests/test-fstrcmp.c: Likewise.
22316         * tests/test-ftell.c: Likewise.
22317         * tests/test-ftello.c: Likewise.
22318         * tests/test-fwritable.c: Likewise.
22319         * tests/test-fwriting.c: Likewise.
22320         * tests/test-getaddrinfo.c: Likewise.
22321         * tests/test-getpass.c: Likewise.
22322         * tests/test-gettimeofday.c: Likewise.
22323         * tests/test-hmac-md5.c: Likewise.
22324         * tests/test-hmac-sha1.c: Likewise.
22325         * tests/test-iconv.c: Likewise.
22326         * tests/test-iconvme.c: Likewise.
22327         * tests/test-inttypes.c: Likewise.
22328         * tests/test-isnan.c: Likewise.
22329         * tests/test-isnanf.c: Likewise.
22330         * tests/test-isnanl-nolibm.c: Likewise.
22331         * tests/test-isnanl.c: Likewise.
22332         * tests/test-isnanl.h: Likewise.
22333         * tests/test-ldexpl.c: Likewise.
22334         * tests/test-linked_list.c: Likewise.
22335         * tests/test-linkedhash_list.c: Likewise.
22336         * tests/test-locale.c: Likewise.
22337         * tests/test-localename.c: Likewise.
22338         * tests/test-lock.c: Likewise.
22339         * tests/test-lseek.c: Likewise.
22340         * tests/test-malloca.c: Likewise.
22341         * tests/test-math.c: Likewise.
22342         * tests/test-mbscasecmp.c: Likewise.
22343         * tests/test-mbscasestr1.c: Likewise.
22344         * tests/test-mbscasestr2.c: Likewise.
22345         * tests/test-mbscasestr3.c: Likewise.
22346         * tests/test-mbscasestr4.c: Likewise.
22347         * tests/test-mbschr.c: Likewise.
22348         * tests/test-mbscspn.c: Likewise.
22349         * tests/test-mbsncasecmp.c: Likewise.
22350         * tests/test-mbspbrk.c: Likewise.
22351         * tests/test-mbspcasecmp.c: Likewise.
22352         * tests/test-mbsrchr.c: Likewise.
22353         * tests/test-mbsspn.c: Likewise.
22354         * tests/test-mbsstr1.c: Likewise.
22355         * tests/test-mbsstr2.c: Likewise.
22356         * tests/test-mbsstr3.c: Likewise.
22357         * tests/test-md5.c: Likewise.
22358         * tests/test-memmem.c: Likewise.
22359         * tests/test-netinet_in.c: Likewise.
22360         * tests/test-open.c: Likewise.
22361         * tests/test-printf-frexp.c: Likewise.
22362         * tests/test-printf-frexpl.c: Likewise.
22363         * tests/test-printf-posix.c: Likewise.
22364         * tests/test-printf-posix.h: Likewise.
22365         * tests/test-rbtree_list.c: Likewise.
22366         * tests/test-rbtree_oset.c: Likewise.
22367         * tests/test-rbtreehash_list.c: Likewise.
22368         * tests/test-read-file.c: Likewise.
22369         * tests/test-rijndael.c: Likewise.
22370         * tests/test-search.c: Likewise.
22371         * tests/test-signbit.c: Likewise.
22372         * tests/test-sleep.c: Likewise.
22373         * tests/test-snprintf-posix.c: Likewise.
22374         * tests/test-snprintf-posix.h: Likewise.
22375         * tests/test-snprintf.c: Likewise.
22376         * tests/test-sprintf-posix.c: Likewise.
22377         * tests/test-sprintf-posix.h: Likewise.
22378         * tests/test-stat-time.c: Likewise.
22379         * tests/test-stdbool.c: Likewise.
22380         * tests/test-stdint.c: Likewise.
22381         * tests/test-stdio.c: Likewise.
22382         * tests/test-stdlib.c: Likewise.
22383         * tests/test-stpncpy.c: Likewise.
22384         * tests/test-strcasestr.c: Likewise.
22385         * tests/test-striconv.c: Likewise.
22386         * tests/test-striconveh.c: Likewise.
22387         * tests/test-striconveha.c: Likewise.
22388         * tests/test-string.c: Likewise.
22389         * tests/test-sys_select.c: Likewise.
22390         * tests/test-sys_socket.c: Likewise.
22391         * tests/test-sys_stat.c: Likewise.
22392         * tests/test-sys_time.c: Likewise.
22393         * tests/test-sysexits.c: Likewise.
22394         * tests/test-time.c: Likewise.
22395         * tests/test-tls.c: Likewise.
22396         * tests/test-trunc.c: Likewise.
22397         * tests/test-truncf.c: Likewise.
22398         * tests/test-truncl.c: Likewise.
22399         * tests/test-unistd.c: Likewise.
22400         * tests/test-vasnprintf-posix.c: Likewise.
22401         * tests/test-vasnprintf-posix2.c: Likewise.
22402         * tests/test-vasnprintf.c: Likewise.
22403         * tests/test-vasprintf-posix.c: Likewise.
22404         * tests/test-vasprintf.c: Likewise.
22405         * tests/test-verify.c: Likewise.
22406         * tests/test-vfprintf-posix.c: Likewise.
22407         * tests/test-vprintf-posix.c: Likewise.
22408         * tests/test-vsnprintf-posix.c: Likewise.
22409         * tests/test-vsnprintf.c: Likewise.
22410         * tests/test-vsprintf-posix.c: Likewise.
22411         * tests/test-wchar.c: Likewise.
22412         * tests/test-wctype.c: Likewise.
22413         * tests/test-wcwidth.c: Likewise.
22414         * tests/test-xstrtol.c: Likewise.
22415         * tests/test-xvasprintf.c: Likewise.
22416         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
22417         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
22418         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
22419         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
22420         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
22421         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
22422         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
22423         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
22424         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
22425         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
22426         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
22427         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
22428         * tests/uniname/test-uninames.c: Likewise.
22429         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
22430         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
22431         * tests/unistdio/test-u16-printf1.h: Likewise.
22432         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
22433         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
22434         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
22435         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
22436         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
22437         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
22438         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
22439         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
22440         * tests/unistdio/test-u32-printf1.h: Likewise.
22441         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
22442         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
22443         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
22444         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
22445         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
22446         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
22447         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
22448         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
22449         * tests/unistdio/test-u8-printf1.h: Likewise.
22450         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
22451         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
22452         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
22453         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
22454         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
22455         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
22456         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
22457         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
22458         * tests/unistdio/test-ulc-printf1.h: Likewise.
22459         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
22460         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
22461         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
22462         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
22463         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
22464         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
22465         * tests/uniwidth/test-u16-strwidth.c: Likewise.
22466         * tests/uniwidth/test-u16-width.c: Likewise.
22467         * tests/uniwidth/test-u32-strwidth.c: Likewise.
22468         * tests/uniwidth/test-u32-width.c: Likewise.
22469         * tests/uniwidth/test-u8-strwidth.c: Likewise.
22470         * tests/uniwidth/test-u8-width.c: Likewise.
22471         * tests/uniwidth/test-uc_width.c: Likewise.
22472         * config/srclist-update: Likewise.
22473         (fixlicense): Update to GPLv3+.
22474
22475         Change copyright notice from LGPLv2.1+ to LGPLv3+.
22476         * tests/test-tsearch.c: Change copyright notice.
22477
22478         Change copyright notice from LGPLv2.0+ to LGPLv3+.
22479         * lib/c-strcaseeq.h: Change copyright notice.
22480         * lib/streq.h: Likewise.
22481         * lib/uniconv.h: Likewise.
22482         * lib/uniconv/u-conv-from-enc.h: Likewise.
22483         * lib/uniconv/u-conv-to-enc.h: Likewise.
22484         * lib/uniconv/u-strconv-from-enc.h: Likewise.
22485         * lib/uniconv/u-strconv-to-enc.h: Likewise.
22486         * lib/uniconv/u16-conv-from-enc.c: Likewise.
22487         * lib/uniconv/u16-conv-to-enc.c: Likewise.
22488         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
22489         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
22490         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
22491         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
22492         * lib/uniconv/u32-conv-from-enc.c: Likewise.
22493         * lib/uniconv/u32-conv-to-enc.c: Likewise.
22494         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
22495         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
22496         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
22497         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
22498         * lib/uniconv/u8-conv-from-enc.c: Likewise.
22499         * lib/uniconv/u8-conv-to-enc.c: Likewise.
22500         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
22501         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
22502         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
22503         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
22504         * lib/uniname.h: Likewise.
22505         * lib/uniname/uniname.c: Likewise.
22506         * lib/unistdio.h: Likewise.
22507         * lib/unistdio/u-asnprintf.h: Likewise.
22508         * lib/unistdio/u-asprintf.h: Likewise.
22509         * lib/unistdio/u-printf-args.c: Likewise.
22510         * lib/unistdio/u-printf-args.h: Likewise.
22511         * lib/unistdio/u-printf-parse.h: Likewise.
22512         * lib/unistdio/u-snprintf.h: Likewise.
22513         * lib/unistdio/u-sprintf.h: Likewise.
22514         * lib/unistdio/u-vasprintf.h: Likewise.
22515         * lib/unistdio/u-vsnprintf.h: Likewise.
22516         * lib/unistdio/u-vsprintf.h: Likewise.
22517         * lib/unistdio/u16-asnprintf.c: Likewise.
22518         * lib/unistdio/u16-asprintf.c: Likewise.
22519         * lib/unistdio/u16-printf-parse.c: Likewise.
22520         * lib/unistdio/u16-snprintf.c: Likewise.
22521         * lib/unistdio/u16-sprintf.c: Likewise.
22522         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
22523         * lib/unistdio/u16-u16-asprintf.c: Likewise.
22524         * lib/unistdio/u16-u16-snprintf.c: Likewise.
22525         * lib/unistdio/u16-u16-sprintf.c: Likewise.
22526         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
22527         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
22528         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
22529         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
22530         * lib/unistdio/u16-vasnprintf.c: Likewise.
22531         * lib/unistdio/u16-vasprintf.c: Likewise.
22532         * lib/unistdio/u16-vsnprintf.c: Likewise.
22533         * lib/unistdio/u16-vsprintf.c: Likewise.
22534         * lib/unistdio/u32-asnprintf.c: Likewise.
22535         * lib/unistdio/u32-asprintf.c: Likewise.
22536         * lib/unistdio/u32-printf-parse.c: Likewise.
22537         * lib/unistdio/u32-snprintf.c: Likewise.
22538         * lib/unistdio/u32-sprintf.c: Likewise.
22539         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
22540         * lib/unistdio/u32-u32-asprintf.c: Likewise.
22541         * lib/unistdio/u32-u32-snprintf.c: Likewise.
22542         * lib/unistdio/u32-u32-sprintf.c: Likewise.
22543         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
22544         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
22545         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
22546         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
22547         * lib/unistdio/u32-vasnprintf.c: Likewise.
22548         * lib/unistdio/u32-vasprintf.c: Likewise.
22549         * lib/unistdio/u32-vsnprintf.c: Likewise.
22550         * lib/unistdio/u32-vsprintf.c: Likewise.
22551         * lib/unistdio/u8-asnprintf.c: Likewise.
22552         * lib/unistdio/u8-asprintf.c: Likewise.
22553         * lib/unistdio/u8-printf-parse.c: Likewise.
22554         * lib/unistdio/u8-snprintf.c: Likewise.
22555         * lib/unistdio/u8-sprintf.c: Likewise.
22556         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
22557         * lib/unistdio/u8-u8-asprintf.c: Likewise.
22558         * lib/unistdio/u8-u8-snprintf.c: Likewise.
22559         * lib/unistdio/u8-u8-sprintf.c: Likewise.
22560         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
22561         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
22562         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
22563         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
22564         * lib/unistdio/u8-vasnprintf.c: Likewise.
22565         * lib/unistdio/u8-vasprintf.c: Likewise.
22566         * lib/unistdio/u8-vsnprintf.c: Likewise.
22567         * lib/unistdio/u8-vsprintf.c: Likewise.
22568         * lib/unistdio/ulc-asnprintf.c: Likewise.
22569         * lib/unistdio/ulc-asprintf.c: Likewise.
22570         * lib/unistdio/ulc-printf-parse.c: Likewise.
22571         * lib/unistdio/ulc-snprintf.c: Likewise.
22572         * lib/unistdio/ulc-sprintf.c: Likewise.
22573         * lib/unistdio/ulc-vasnprintf.c: Likewise.
22574         * lib/unistdio/ulc-vasprintf.c: Likewise.
22575         * lib/unistdio/ulc-vsnprintf.c: Likewise.
22576         * lib/unistdio/ulc-vsprintf.c: Likewise.
22577         * lib/unistr.h: Likewise.
22578         * lib/unistr/u-cpy-alloc.h: Likewise.
22579         * lib/unistr/u-cpy.h: Likewise.
22580         * lib/unistr/u-endswith.h: Likewise.
22581         * lib/unistr/u-move.h: Likewise.
22582         * lib/unistr/u-set.h: Likewise.
22583         * lib/unistr/u-startswith.h: Likewise.
22584         * lib/unistr/u-stpcpy.h: Likewise.
22585         * lib/unistr/u-stpncpy.h: Likewise.
22586         * lib/unistr/u-strcat.h: Likewise.
22587         * lib/unistr/u-strcpy.h: Likewise.
22588         * lib/unistr/u-strcspn.h: Likewise.
22589         * lib/unistr/u-strdup.h: Likewise.
22590         * lib/unistr/u-strlen.h: Likewise.
22591         * lib/unistr/u-strncat.h: Likewise.
22592         * lib/unistr/u-strncpy.h: Likewise.
22593         * lib/unistr/u-strnlen.h: Likewise.
22594         * lib/unistr/u-strpbrk.h: Likewise.
22595         * lib/unistr/u-strspn.h: Likewise.
22596         * lib/unistr/u-strstr.h: Likewise.
22597         * lib/unistr/u-strtok.h: Likewise.
22598         * lib/unistr/u16-check.c: Likewise.
22599         * lib/unistr/u16-chr.c: Likewise.
22600         * lib/unistr/u16-cmp.c: Likewise.
22601         * lib/unistr/u16-cpy-alloc.c: Likewise.
22602         * lib/unistr/u16-cpy.c: Likewise.
22603         * lib/unistr/u16-endswith.c: Likewise.
22604         * lib/unistr/u16-mblen.c: Likewise.
22605         * lib/unistr/u16-mbsnlen.c: Likewise.
22606         * lib/unistr/u16-mbtouc-aux.c: Likewise.
22607         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
22608         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
22609         * lib/unistr/u16-mbtouc.c: Likewise.
22610         * lib/unistr/u16-mbtoucr.c: Likewise.
22611         * lib/unistr/u16-move.c: Likewise.
22612         * lib/unistr/u16-next.c: Likewise.
22613         * lib/unistr/u16-prev.c: Likewise.
22614         * lib/unistr/u16-set.c: Likewise.
22615         * lib/unistr/u16-startswith.c: Likewise.
22616         * lib/unistr/u16-stpcpy.c: Likewise.
22617         * lib/unistr/u16-stpncpy.c: Likewise.
22618         * lib/unistr/u16-strcat.c: Likewise.
22619         * lib/unistr/u16-strchr.c: Likewise.
22620         * lib/unistr/u16-strcmp.c: Likewise.
22621         * lib/unistr/u16-strcpy.c: Likewise.
22622         * lib/unistr/u16-strcspn.c: Likewise.
22623         * lib/unistr/u16-strdup.c: Likewise.
22624         * lib/unistr/u16-strlen.c: Likewise.
22625         * lib/unistr/u16-strmblen.c: Likewise.
22626         * lib/unistr/u16-strmbtouc.c: Likewise.
22627         * lib/unistr/u16-strncat.c: Likewise.
22628         * lib/unistr/u16-strncmp.c: Likewise.
22629         * lib/unistr/u16-strncpy.c: Likewise.
22630         * lib/unistr/u16-strnlen.c: Likewise.
22631         * lib/unistr/u16-strpbrk.c: Likewise.
22632         * lib/unistr/u16-strrchr.c: Likewise.
22633         * lib/unistr/u16-strspn.c: Likewise.
22634         * lib/unistr/u16-strstr.c: Likewise.
22635         * lib/unistr/u16-strtok.c: Likewise.
22636         * lib/unistr/u16-to-u32.c: Likewise.
22637         * lib/unistr/u16-to-u8.c: Likewise.
22638         * lib/unistr/u16-uctomb-aux.c: Likewise.
22639         * lib/unistr/u16-uctomb.c: Likewise.
22640         * lib/unistr/u32-check.c: Likewise.
22641         * lib/unistr/u32-chr.c: Likewise.
22642         * lib/unistr/u32-cmp.c: Likewise.
22643         * lib/unistr/u32-cpy-alloc.c: Likewise.
22644         * lib/unistr/u32-cpy.c: Likewise.
22645         * lib/unistr/u32-endswith.c: Likewise.
22646         * lib/unistr/u32-mblen.c: Likewise.
22647         * lib/unistr/u32-mbsnlen.c: Likewise.
22648         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
22649         * lib/unistr/u32-mbtouc.c: Likewise.
22650         * lib/unistr/u32-mbtoucr.c: Likewise.
22651         * lib/unistr/u32-move.c: Likewise.
22652         * lib/unistr/u32-next.c: Likewise.
22653         * lib/unistr/u32-prev.c: Likewise.
22654         * lib/unistr/u32-set.c: Likewise.
22655         * lib/unistr/u32-startswith.c: Likewise.
22656         * lib/unistr/u32-stpcpy.c: Likewise.
22657         * lib/unistr/u32-stpncpy.c: Likewise.
22658         * lib/unistr/u32-strcat.c: Likewise.
22659         * lib/unistr/u32-strchr.c: Likewise.
22660         * lib/unistr/u32-strcmp.c: Likewise.
22661         * lib/unistr/u32-strcpy.c: Likewise.
22662         * lib/unistr/u32-strcspn.c: Likewise.
22663         * lib/unistr/u32-strdup.c: Likewise.
22664         * lib/unistr/u32-strlen.c: Likewise.
22665         * lib/unistr/u32-strmblen.c: Likewise.
22666         * lib/unistr/u32-strmbtouc.c: Likewise.
22667         * lib/unistr/u32-strncat.c: Likewise.
22668         * lib/unistr/u32-strncmp.c: Likewise.
22669         * lib/unistr/u32-strncpy.c: Likewise.
22670         * lib/unistr/u32-strnlen.c: Likewise.
22671         * lib/unistr/u32-strpbrk.c: Likewise.
22672         * lib/unistr/u32-strrchr.c: Likewise.
22673         * lib/unistr/u32-strspn.c: Likewise.
22674         * lib/unistr/u32-strstr.c: Likewise.
22675         * lib/unistr/u32-strtok.c: Likewise.
22676         * lib/unistr/u32-to-u16.c: Likewise.
22677         * lib/unistr/u32-to-u8.c: Likewise.
22678         * lib/unistr/u32-uctomb.c: Likewise.
22679         * lib/unistr/u8-check.c: Likewise.
22680         * lib/unistr/u8-chr.c: Likewise.
22681         * lib/unistr/u8-cmp.c: Likewise.
22682         * lib/unistr/u8-cpy-alloc.c: Likewise.
22683         * lib/unistr/u8-cpy.c: Likewise.
22684         * lib/unistr/u8-endswith.c: Likewise.
22685         * lib/unistr/u8-mblen.c: Likewise.
22686         * lib/unistr/u8-mbsnlen.c: Likewise.
22687         * lib/unistr/u8-mbtouc-aux.c: Likewise.
22688         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
22689         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
22690         * lib/unistr/u8-mbtouc.c: Likewise.
22691         * lib/unistr/u8-mbtoucr.c: Likewise.
22692         * lib/unistr/u8-move.c: Likewise.
22693         * lib/unistr/u8-next.c: Likewise.
22694         * lib/unistr/u8-prev.c: Likewise.
22695         * lib/unistr/u8-set.c: Likewise.
22696         * lib/unistr/u8-startswith.c: Likewise.
22697         * lib/unistr/u8-stpcpy.c: Likewise.
22698         * lib/unistr/u8-stpncpy.c: Likewise.
22699         * lib/unistr/u8-strcat.c: Likewise.
22700         * lib/unistr/u8-strchr.c: Likewise.
22701         * lib/unistr/u8-strcmp.c: Likewise.
22702         * lib/unistr/u8-strcpy.c: Likewise.
22703         * lib/unistr/u8-strcspn.c: Likewise.
22704         * lib/unistr/u8-strdup.c: Likewise.
22705         * lib/unistr/u8-strlen.c: Likewise.
22706         * lib/unistr/u8-strmblen.c: Likewise.
22707         * lib/unistr/u8-strmbtouc.c: Likewise.
22708         * lib/unistr/u8-strncat.c: Likewise.
22709         * lib/unistr/u8-strncmp.c: Likewise.
22710         * lib/unistr/u8-strncpy.c: Likewise.
22711         * lib/unistr/u8-strnlen.c: Likewise.
22712         * lib/unistr/u8-strpbrk.c: Likewise.
22713         * lib/unistr/u8-strrchr.c: Likewise.
22714         * lib/unistr/u8-strspn.c: Likewise.
22715         * lib/unistr/u8-strstr.c: Likewise.
22716         * lib/unistr/u8-strtok.c: Likewise.
22717         * lib/unistr/u8-to-u16.c: Likewise.
22718         * lib/unistr/u8-to-u32.c: Likewise.
22719         * lib/unistr/u8-uctomb-aux.c: Likewise.
22720         * lib/unistr/u8-uctomb.c: Likewise.
22721         * lib/unitypes.h: Likewise.
22722         * lib/uniwidth.h: Likewise.
22723         * lib/uniwidth/cjk.h: Likewise.
22724         * lib/uniwidth/u16-strwidth.c: Likewise.
22725         * lib/uniwidth/u16-width.c: Likewise.
22726         * lib/uniwidth/u32-strwidth.c: Likewise.
22727         * lib/uniwidth/u32-width.c: Likewise.
22728         * lib/uniwidth/u8-strwidth.c: Likewise.
22729         * lib/uniwidth/u8-width.c: Likewise.
22730         * lib/uniwidth/width.c: Likewise.
22731
22732 2007-10-07  Bruno Haible  <bruno@clisp.org>
22733
22734         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
22735         The file is still under LGPL (see modules/inttypes).
22736
22737 2007-10-06  Bruno Haible  <bruno@clisp.org>
22738
22739         * modules/trunc (Dependencies): Add 'extensions'.
22740         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
22741         Reported by Ben Pfaff <blp@gnu.org>.
22742
22743 2007-10-06  Bruno Haible  <bruno@clisp.org>
22744
22745         * modules/freopen-tests: New file.
22746         * tests/test-freopen.c: New file.
22747
22748         * modules/fopen-tests: New file.
22749         * tests/test-fopen.c: New file.
22750
22751         * modules/fopen: New file.
22752         * lib/fopen.c: New file.
22753         * m4/fopen.m4: New file.
22754         * modules/freopen: New file.
22755         * lib/freopen.c: New file.
22756         * m4/freopen.m4: New file.
22757         * lib/stdio.in.h (fopen, freopen): New declarations.
22758         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
22759         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
22760         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
22761         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
22762         * doc/functions/fopen.texi: Mention the 'fopen' module.
22763         * doc/functions/freopen.texi: Mention the 'freopen' module.
22764
22765 2007-10-06  Bruno Haible  <bruno@clisp.org>
22766
22767         * modules/open-tests: New file.
22768         * tests/test-open.c: New file.
22769
22770         * modules/open: New file.
22771         * lib/open.c: New file.
22772         * m4/open.m4: New file.
22773         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
22774         lib/open.c does.
22775         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
22776         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
22777         macros.
22778         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
22779         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
22780         REPLACE_OPEN.
22781         * doc/functions/open.texi: Mention the 'open' module.
22782
22783 2007-10-04  Bruno Haible  <bruno@clisp.org>
22784
22785         * modules/ceill-tests: New file.
22786         * tests/test-ceill.c: New file.
22787
22788         * modules/ceill: New file.
22789         * lib/ceill.c: Replace entire file.
22790         * m4/ceill.m4: New file.
22791         * lib/math.in.h (ceill): Replace declaration.
22792         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
22793         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
22794         * doc/functions/ceill.texi: Mention the 'ceill' module.
22795         * modules/mathl (Files): Remove lib/ceill.c.
22796         (Depends-on): Add ceill.
22797
22798 2007-10-04  Bruno Haible  <bruno@clisp.org>
22799
22800         * modules/ceilf-tests: New file.
22801         * tests/test-ceilf.c: New file.
22802
22803         * modules/ceilf: New file.
22804         * lib/ceil.c: New file.
22805         * lib/ceilf.c: New file.
22806         * m4/ceilf.m4: New file.
22807         * lib/math.in.h (ceilf): New declaration.
22808         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
22809         HAVE_DECL_CEILF.
22810         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
22811         HAVE_DECL_CEILF.
22812         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
22813
22814 2007-10-04  Bruno Haible  <bruno@clisp.org>
22815
22816         * modules/floorl-tests: New file.
22817         * tests/test-floorl.c: New file.
22818
22819         * modules/floorl: New file.
22820         * lib/floorl.c: Replace entire file.
22821         * m4/floorl.m4: New file.
22822         * lib/math.in.h (floorl): Replace declaration.
22823         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
22824         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
22825         * doc/functions/floorl.texi: Mention the 'floorl' module.
22826         * modules/mathl (Files): Remove lib/floorl.c.
22827         (Depends-on): Add floorl.
22828
22829 2007-10-04  Bruno Haible  <bruno@clisp.org>
22830
22831         * modules/floorf-tests: New file.
22832         * tests/test-floorf.c: New file.
22833
22834         * modules/floorf: New file.
22835         * lib/floor.c: New file.
22836         * lib/floorf.c: New file.
22837         * m4/floorf.m4: New file.
22838         * lib/math.in.h (floorf): New declaration.
22839         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
22840         HAVE_DECL_FLOORF.
22841         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
22842         HAVE_DECL_FLOORF.
22843         * doc/functions/floorf.texi: Mention the 'floorf' module.
22844
22845 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
22846             Bruno Haible  <bruno@clisp.org>
22847
22848         Advertise for the Git server instead of the CVS server.
22849         * doc/gnulib-intro.texi (Steady Development): Mention the Git
22850         repository instead of the CVS one.
22851         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
22852         about all VCS systems generically.
22853         * doc/gnulib.texi (Introduction): Capitalize `Git'.
22854
22855 2007-10-04  Bruno Haible  <bruno@clisp.org>
22856
22857         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
22858         means.
22859         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
22860
22861 2007-10-04  Bruno Haible  <bruno@clisp.org>
22862
22863         * modules/truncl-tests: New file.
22864         * tests/test-truncl.c: New file.
22865
22866         * modules/truncl: New file.
22867         * lib/truncl.c: New file.
22868         * m4/truncl.m4: New file.
22869         * lib/math.in.h (truncl): New declaration.
22870         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
22871         HAVE_DECL_TRUNCL.
22872         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
22873         HAVE_DECL_TRUNCL.
22874         * doc/functions/truncl.texi: Mention the 'truncl' module.
22875
22876 2007-10-04  Bruno Haible  <bruno@clisp.org>
22877
22878         * modules/truncf-tests: New file.
22879         * tests/test-truncf.c: New file.
22880
22881         * modules/truncf: New file.
22882         * lib/trunc.c: Make paramerizable through USE_* macros.
22883         * lib/truncf.c: New file.
22884         * m4/truncf.m4: New file.
22885         * lib/math.in.h (truncf): New declaration.
22886         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
22887         HAVE_DECL_TRUNCF.
22888         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
22889         HAVE_DECL_TRUNCF.
22890         * doc/functions/truncf.texi: Mention the 'truncf' module.
22891
22892 2007-10-03  Bruno Haible  <bruno@clisp.org>
22893
22894         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
22895         augmentation also for tests modules.
22896         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
22897         * modules/atexit-tests (Makefile.am): Likewise.
22898         * modules/binary-io-tests (Makefile.am): Likewise.
22899         * modules/c-strcase-tests (Makefile.am): Likewise.
22900         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
22901         * modules/canonicalize-tests (Makefile.am): Likewise.
22902         * modules/closein-tests (Makefile.am): Likewise.
22903         * modules/fprintf-posix-tests (Makefile.am): Likewise.
22904         * modules/freadahead-tests (Makefile.am): Likewise.
22905         * modules/fseek-tests (Makefile.am): Likewise.
22906         * modules/fseeko-tests (Makefile.am): Likewise.
22907         * modules/ftell-tests (Makefile.am): Likewise.
22908         * modules/ftello-tests (Makefile.am): Likewise.
22909         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
22910         * modules/isnanl-tests (Makefile.am): Likewise.
22911         * modules/lseek-tests (Makefile.am): Likewise.
22912         * modules/mbscasecmp-tests (Makefile.am): Likewise.
22913         * modules/mbscasestr-tests (Makefile.am): Likewise.
22914         * modules/mbschr-tests (Makefile.am): Likewise.
22915         * modules/mbscspn-tests (Makefile.am): Likewise.
22916         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
22917         * modules/mbspbrk-tests (Makefile.am): Likewise.
22918         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
22919         * modules/mbsrchr-tests (Makefile.am): Likewise.
22920         * modules/mbsspn-tests (Makefile.am): Likewise.
22921         * modules/mbsstr-tests (Makefile.am): Likewise.
22922         * modules/printf-posix-tests (Makefile.am): Likewise.
22923         * modules/snprintf-posix-tests (Makefile.am): Likewise.
22924         * modules/sprintf-posix-tests (Makefile.am): Likewise.
22925         * modules/tsearch-tests (Makefile.am): Likewise.
22926         * modules/uniname/uniname-tests (Makefile.am): Likewise.
22927         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
22928         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
22929         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
22930         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
22931         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
22932         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
22933         * modules/vprintf-posix-tests (Makefile.am): Likewise.
22934         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
22935         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
22936         * modules/xstrtoimax-tests (Makefile.am): Likewise.
22937         * modules/xstrtol-tests (Makefile.am): Likewise.
22938         * modules/xstrtoumax-tests (Makefile.am): Likewise.
22939         * modules/yesno-tests (Makefile.am): Likewise.
22940
22941 2007-10-03  Bruno Haible  <bruno@clisp.org>
22942
22943         * modules/trunc-tests: New file.
22944         * tests/test-trunc.c: New file.
22945
22946         * modules/trunc: New file.
22947         * lib/trunc.c: New file.
22948         * m4/trunc.m4: New file.
22949         * lib/math.in.h (trunc): New declaration.
22950         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
22951         HAVE_DECL_TRUNC.
22952         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
22953         HAVE_DECL_TRUNC.
22954         * doc/functions/trunc.texi: Mention the 'trunc' module.
22955
22956 2007-10-03  Bruno Haible  <bruno@clisp.org>
22957
22958         * tests/test-fpending.c: New file, mostly copied
22959         from coreutils/lib/t-fpending.c.
22960         * modules/fpending-tests: New file.
22961
22962 2007-10-03  Bruno Haible  <bruno@clisp.org>
22963
22964         Port the stdio extensions to QNX (untested).
22965         * lib/fseterr.c (fseterr): Add support for QNX.
22966         * lib/fbufmode.c (fbufmode): Likewise.
22967         * lib/freadable.c (freadable): Likewise.
22968         * lib/fwritable.c (fwritable): Likewise.
22969         * lib/freading.c (freading): Likewise.
22970         * lib/fwriting.c (fwriting): Likewise.
22971         * lib/freadahead.c (freadahed): Likewise.
22972         * lib/fpurge.c (fpurge): Likewise.
22973         * lib/fseeko.c (rpl_fseeko): Likewise.
22974
22975 2007-10-03  Bruno Haible  <bruno@clisp.org>
22976             Jim Meyering  <jim@meyering.net>
22977             Eric Blake  <ebb9@byu.net>
22978
22979         * doc/relocatable.texi: Use @command instead of @program.
22980
22981 2007-10-02  Jim Meyering  <jim@meyering.net>
22982
22983         Perform one more "_.h" -> ".in.h" substitution.
22984         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
22985         instead of unistd_.h here, too.
22986
22987 2007-10-01  Bruno Haible  <bruno@clisp.org>
22988
22989         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
22990         Needed for the alloca-opt module.
22991
22992 2007-09-30  Bruno Haible  <bruno@clisp.org>
22993
22994         * lib/alloca.in.h: Renamed from lib/alloca_.h.
22995         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
22996         alloca_.h.
22997         * lib/argz.in.h: Renamed from lib/argz_.h.
22998         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
22999         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
23000         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
23001         byteswap_.h.
23002         * lib/dirent.in.h: Renamed from lib/dirent_.h.
23003         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
23004         dirent_.h.
23005         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
23006         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
23007         fcntl_.h.
23008         * lib/float.in.h: Renamed from lib/float_.h.
23009         * modules/float (Files, Makefile.am): Use float.in.h instead of
23010         float_.h.
23011         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
23012         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
23013         fnmatch_.h.
23014         * lib/getopt.in.h: Renamed from lib/getopt_.h.
23015         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
23016         getopt_.h.
23017         * lib/glob.in.h: Renamed from lib/glob_.h.
23018         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
23019         * lib/iconv.in.h: Renamed from lib/iconv_.h.
23020         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
23021         iconv_.h.
23022         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
23023         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
23024         inttypes_.h.
23025         * lib/locale.in.h: Renamed from lib/locale_.h.
23026         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
23027         locale_.h.
23028         * lib/math.in.h: Renamed from lib/math_.h.
23029         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
23030         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
23031         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
23032         of netinet_in_.h. Add dependency.
23033         * lib/poll.in.h: Renamed from lib/poll_.h.
23034         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
23035         * lib/search.in.h: Renamed from lib/search_.h.
23036         * modules/search (Files, Makefile.am): Use search.in.h instead of
23037         search_.h.
23038         * lib/signal.in.h: Renamed from lib/signal_.h.
23039         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
23040         _signal.h.
23041         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
23042         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
23043         stdbool_.h.
23044         * lib/stdint.in.h: Renamed from lib/stdint_.h.
23045         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
23046         stdint_.h.
23047         * lib/stdio.in.h: Renamed from lib/stdio_.h.
23048         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
23049         stdio_.h.
23050         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
23051         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
23052         stdlib_.h.
23053         * lib/string.in.h: Renamed from lib/string_.h.
23054         * modules/string (Files, Makefile.am): Use string.in.h instead of
23055         string_.h.
23056         * doc/gnulib-tool.texi (Initial import): Update.
23057         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
23058         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
23059         of sys_select_.h. Add dependency.
23060         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
23061         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
23062         of sys_socket_.h.
23063         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
23064         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
23065         sys_stat_.h.
23066         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
23067         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
23068         sys_time_.h.
23069         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
23070         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
23071         sysexits_.h.
23072         * lib/time.in.h: Renamed from lib/time_.h.
23073         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
23074         * lib/unistd.in.h: Renamed from lib/unistd_.h.
23075         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
23076         unistd_.h.
23077         * lib/wchar.in.h: Renamed from lib/wchar_.h.
23078         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
23079         wchar_.h.
23080         * lib/wctype.in.h: Renamed from lib/wctype_.h.
23081         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
23082         wctype_.h.
23083         * build-aux/bootstrap (slurp): Update.
23084         * lib/.cppi-disable: Update.
23085
23086 2007-09-30  Bruno Haible  <bruno@clisp.org>
23087
23088         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
23089         Needed on BeOS.
23090
23091 2007-09-30  Bruno Haible  <bruno@clisp.org>
23092
23093         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
23094
23095 2007-09-29  Bruno Haible  <bruno@clisp.org>
23096
23097         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
23098
23099 2007-09-29  Bruno Haible  <bruno@clisp.org>
23100
23101         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
23102         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
23103         * build-aux/install-reloc: Compile also areadlink.c.
23104         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
23105
23106 2007-09-29  Bruno Haible  <bruno@clisp.org>
23107
23108         * gnulib-tool (func_emit_initmacro_done): Indentation.
23109
23110 2007-09-29  Bruno Haible  <bruno@clisp.org>
23111
23112         * README: Add CVS checkout update instructions.
23113         Info from Bob Proulx <bob@proulx.com>.
23114
23115 2007-09-28  Eric Blake  <ebb9@byu.net>
23116
23117         Provide move-if-change.
23118         * build-aux/move-if-change: New file, based on best practice
23119         rather than any canonical upstream location.
23120
23121 2007-09-28  Jim Meyering  <jim@meyering.net>
23122
23123         Fix canonicalize loop-detection corner case.
23124         Do not attempt to stat the symlink values stored via seen_triple.
23125         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
23126         on linux-2.6.18, (but not 2.6.22).
23127         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
23128         triple_compare.  The former compares dev,ino,filename, while the latter
23129         would actually stat dirname(filename) when dev and ino were equal.
23130         * lib/hash-triple.c: Install <string.h>.
23131         (STREQ): Define.
23132         (triple_compare_ino_str): New function.
23133         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
23134
23135 2007-09-28  Eric Blake  <ebb9@byu.net>
23136
23137         Enforce that AC_REPLACE_FUNCS files exist.
23138         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
23139         override check for typos.
23140
23141         Fix test-closein on Solaris 10.
23142         * tests/test-closein.c (main): Don't assume stdin can be inherited
23143         closed on all systems.
23144         * tests/test-closein.sh: Likewise.
23145         Reported by Piotr Tarnowski.
23146
23147 2007-09-28  Jim Meyering  <jim@meyering.net>
23148
23149         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
23150
23151 2007-09-27  Jim Meyering  <jim@meyering.net>
23152
23153         canonicalize: Avoid a false-positive cycle failure.
23154         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
23155         Sort.  Remove cycle-check.
23156         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
23157         not cycle-check.h.
23158         (seen_triple): New function.
23159         (canonicalize_filename_mode): Use it instead of cycle-check.
23160         * tests/test-canonicalize.c: Add a test for this bug.
23161         * tests/test-canonicalize.sh: Set up and run the test.
23162
23163         New module, file-set, from coreutils.
23164         * modules/file-set: Define it.
23165         * lib/file-set.c, lib/file-set.h: Implement.
23166
23167         New module, hash-triple, from coreutils.
23168         * modules/hash-triple: Define it.
23169         * lib/hash-triple.c, lib/hash-triple.h: Implement.
23170
23171 2007-09-25  Eric Blake  <ebb9@byu.net>
23172
23173         Fix strerror on Interix.
23174         * lib/string_.h (strerror): Declare replacement.
23175         * doc/functions/strerror.texi (strerror): Document the Interix
23176         shortcoming.
23177         * modules/string (Makefile.am): Support new hooks.
23178         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
23179         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
23180         gl_FUNC_STRERROR_SEPARATE.
23181         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
23182         * lib/strerror.c (rpl_strerror): Provide replacement.
23183         * modules/strerror (Depends-on): Add string.
23184         (configure.ac): Detect use of module.
23185         * tests/test-strerror.c: New file.
23186         * modules/strerror-tests: New test module.
23187         * modules/argp (Depends-on): Add strerror.
23188         * modules/error (Depends-on): Likewise.
23189         Reported by Martin Koeppe.
23190
23191 2007-09-24  Bruno Haible  <bruno@clisp.org>
23192
23193         * README: Update git instructions.
23194
23195 2007-09-24  Eric Blake  <ebb9@byu.net>
23196
23197         Revert fpending breakage from 2007-09-08.
23198         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
23199         __fpending.c.
23200
23201 2007-09-24  Jim Meyering  <jim@meyering.net>
23202
23203         filenamecat.c: Add a test.
23204         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
23205         showing how the function works when DIR is the empty string.
23206
23207 2007-09-21  Simon Josefsson  <simon@josefsson.org>
23208
23209         * tests/test-canonicalize.sh: Turn on executable bit.
23210
23211 2007-09-19  Eric Blake  <ebb9@byu.net>
23212
23213         * README: Update CVS instructions.
23214
23215 2007-09-18  Bruno Haible  <bruno@clisp.org>
23216
23217         * modules/areadlink: New file.
23218         * lib/areadlink.h (areadlink): New declaration.
23219         * lib/areadlink.c: New file, based on lib/xreadlink.c.
23220
23221 2007-09-17  Jim Meyering  <jim@meyering.net>
23222
23223         * lib/savewd.c (ESTALE) [!defined]: Define.
23224         Reported to be required on Interix by Martin Koeppe.
23225
23226 2007-09-17  Bruno Haible  <bruno@clisp.org>
23227
23228         * gnulib-tool (func_version): Use $version.
23229
23230 2007-09-16  Bruno Haible  <bruno@clisp.org>
23231
23232         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
23233         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
23234         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
23235         Reported by Greg Schafer <gschafer@zip.com.au>.
23236
23237 2007-09-15  Bruno Haible  <bruno@clisp.org>
23238
23239         * gnulib-tool (sed): Try a little harder to make bash understand the
23240         alias.
23241         Reported by Bruce Korb <bruce.korb@gmail.com>.
23242
23243 2007-09-13  Eric Blake  <ebb9@byu.net>
23244
23245         * ChangeLog: Remove conflict markers.
23246
23247 2007-09-13  Simon Josefsson  <simon@josefsson.org>
23248
23249         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
23250         Reported by Bruno Haible <bruno@clisp.org>.
23251
23252 2007-09-12  Bruno Haible  <bruno@clisp.org>
23253
23254         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
23255         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
23256         is not defined.
23257
23258 2007-09-12  Eric Blake  <ebb9@byu.net>
23259
23260         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
23261         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
23262         Autoconf definition.
23263         * modules/euidaccess (Depends-on): Add extensions, for
23264         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
23265         * modules/fnmatch (Depends-on): Likewise.
23266         * modules/getaddrinfo (Depends-on): Likewise.
23267         * modules/getdelim (Depends-on): Likewise.
23268         * modules/getline (Depends-on): Likewise.
23269         * modules/getsubopt (Depends-on): Likewise.
23270         * modules/gettext (Depends-on): Likewise.
23271         * modules/group-member (Depends-on): Likewise.
23272         * modules/mbchar (Depends-on): Likewise.
23273         * modules/memmem (Depends-on): Likewise.
23274         * modules/mempcpy (Depends-on): Likewise.
23275         * modules/memrchr (Depends-on): Likewise.
23276         * modules/pagealign_alloc (Depends-on): Likewise.
23277         * modules/readutmp (Depends-on): Likewise.
23278         * modules/stpcpy (Depends-on): Likewise.
23279         * modules/stpncpy (Depends-on): Likewise.
23280         * modules/strchrnul (Depends-on): Likewise.
23281         * modules/strndup (Depends-on): Likewise.
23282         * modules/strsep (Depends-on): Likewise.
23283         * modules/strverscmp (Depends-on): Likewise.
23284         * modules/vasprintf (Depends-on): Likewise.
23285         * modules/wcwidth (Depends-on): Likewise.
23286         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
23287         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
23288         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
23289         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
23290         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
23291         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
23292         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
23293         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
23294         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
23295         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
23296         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
23297         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
23298         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
23299         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
23300         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
23301         * m4/readutmp.m4 (gl_READUTMP): Likewise.
23302         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
23303         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
23304         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
23305         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
23306         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
23307         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
23308         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
23309         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
23310         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
23311         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
23312         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
23313         so that lock.m4 can be used in gettext without extensions module.
23314
23315 2007-09-11  Bruno Haible  <bruno@clisp.org>
23316
23317         * m4/isc-posix.m4: Remove file.
23318         Suggested by Eric Blake.
23319
23320 2007-09-11  Eric Blake  <ebb9@byu.net>
23321
23322         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
23323
23324 2007-09-10  Bruno Haible  <bruno@clisp.org>
23325
23326         * posix-modules: Fix typo in error message.
23327         Reported by Matt <mkraai@beckman.com>.
23328
23329 2007-09-09  Bruno Haible  <bruno@clisp.org>
23330
23331         * doc/functions/getdelim.texi: Update list of platforms lacking the
23332         function.
23333         * doc/functions/getline.texi: Likewise.
23334
23335 2007-09-09  Jim Meyering  <jim@meyering.net>
23336
23337         * lib/hash.c (hash_initialize): Detect calloc failure.
23338         Reported by Bruno Haible.
23339
23340 2007-09-09  Bruno Haible  <bruno@clisp.org>
23341
23342         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
23343         malloc or realloc fails.
23344
23345 2007-09-09  Bruno Haible  <bruno@clisp.org>
23346
23347         * modules/getcwd (Depends-on): Add malloc-posix.
23348         * modules/glob (Depends-on): Likewise.
23349         * modules/putenv (Depends-on): Likewise.
23350         * modules/strdup (Depends-on): Likewise.
23351         * modules/getdelim (Depends-on): Add realloc-posix.
23352         * modules/read-file (Depends-on): Likewise.
23353
23354 2007-09-09  Bruno Haible  <bruno@clisp.org>
23355
23356         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
23357         (gl_FUNC_MALLOC_POSIX): Require it.
23358         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
23359         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
23360         * modules/realloc (Files): Add m4/malloc.m4.
23361         * modules/calloc (Files): Likewise.
23362
23363 2007-09-09  Bruno Haible  <bruno@clisp.org>
23364
23365         * modules/malloc-posix: New file.
23366         * modules/malloc (Depends-on): Add malloc-posix.
23367         * lib/malloc.c: Include errno.h.
23368         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
23369         and a POSIX-compatible malloc into a single function. Set ENOMEM
23370         when returning NULL.
23371         * m4/malloc.m4: New file.
23372         * doc/functions/malloc.texi: Mention the malloc-posix module.
23373         * lib/stdlib_.h (malloc): New declaration.
23374         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
23375         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
23376         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
23377         and HAVE_MALLOC_POSIX.
23378
23379 2007-09-09  Bruno Haible  <bruno@clisp.org>
23380
23381         * modules/realloc-posix: New file.
23382         * modules/realloc (Depends-on): Add realloc-posix.
23383         * lib/realloc.c: Include errno.h.
23384         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
23385         and a POSIX-compatible realloc into a single function. Set ENOMEM
23386         when returning NULL.
23387         * m4/realloc.m4: New file.
23388         * doc/functions/realloc.texi: Mention the realloc-posix module.
23389         * lib/stdlib_.h (realloc): New declaration.
23390         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
23391         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
23392         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
23393         and HAVE_REALLOC_POSIX.
23394
23395 2007-09-09  Bruno Haible  <bruno@clisp.org>
23396
23397         * modules/calloc-posix: New file.
23398         * modules/calloc (Depends-on): Add calloc-posix.
23399         * lib/calloc.c: Include errno.h.
23400         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
23401         and a POSIX-compatible calloc into a single function. Set ENOMEM
23402         when returning NULL.
23403         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
23404         * doc/functions/calloc.texi: Mention the calloc-posix module.
23405         * lib/stdlib_.h (calloc): New declaration.
23406         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
23407         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
23408         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
23409         and HAVE_CALLOC_POSIX.
23410
23411 2007-09-09  Bruno Haible  <bruno@clisp.org>
23412
23413         Allow for modules to show an arbitrary notice.
23414         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
23415         * gnulib-tool: New option --extract-notice.
23416         (func_usage): Document it.
23417         (sed_extract_prog): Update.
23418         (func_get_notice): New function.
23419         (func_modules_notice): New function.
23420         (func_import, func_create_testdir): Invoke it.
23421         Suggested by Jim Meyering.
23422
23423 2007-09-09  Bruno Haible  <bruno@clisp.org>
23424
23425         * gnulib-tool: New options --verbose, --quiet.
23426         (func_usage): Document them.
23427         (verbose): New variable.
23428         (func_execute_command): New function.
23429         (func_import): Don't show the module list and the file list if
23430         $verbose < 0.
23431         (func_create_testdir): Likewise. Use func_execute_command.
23432         (func_create_megatestdir): Use func_execute_command.
23433
23434 2007-09-08  Bruno Haible  <bruno@clisp.org>
23435
23436         * gnulib-tool (func_import): Prefer rsync over wget when available,
23437         for fetching the PO files.
23438
23439 2007-09-08  Bruno Haible  <bruno@clisp.org>
23440
23441         * posix-modules: New file. Portions copied from gnulib-tool.
23442         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
23443
23444 2007-09-08  Jim Meyering  <jim@meyering.net>
23445
23446         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
23447         * lib/fpending.h: Rename from __fpending.h.
23448         * lib/fpending.c: Rename from __fpending.c.
23449         Include "fpending.h", not "__fpending.h".
23450         * lib/__fpending.h, lib/__fpending.c: Remove files.
23451         * modules/fpending (Files): Reflect new file names.
23452         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
23453
23454 2007-09-08  Bruno Haible  <bruno@clisp.org>
23455
23456         * m4/inttypes-h.m4: Remove stub file.
23457
23458 2007-09-07  Simon Josefsson  <simon@josefsson.org>
23459
23460         * doc/headers/stdint.texi: Discuss #include_next issue.
23461
23462 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
23463
23464         * build-aux/bootstrap: Remove obsolete comment about wget --help.
23465
23466 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
23467
23468         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
23469         in variable name.
23470
23471 2007-09-03  Jim Meyering  <jim@meyering.net>
23472
23473         New module: git-version-gen.
23474         * modules/git-version-gen: New file.
23475
23476         Import changes from coreutils for bootstrap script.
23477
23478         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
23479
23480         bootstrap: uses rsync to download the .po files
23481         * build-aux/bootstrap (po_download_command_format): New global.
23482         (download_po_files): Use rsync.
23483         (update_po_files): Don't remove .po files after download,
23484         so future rsync runs can take advantage of the copies.
23485
23486         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
23487
23488         Solve the unnecessary-.po-file-regeneration problem once and for all.
23489         * build-aux/bootstrap (download_po_files): New function, renamed from
23490         get_translations.  Now, downloads, but doesn't update LINGUAS.
23491         (update_po_files): New function.
23492
23493         bootstrap: Ignore more.
23494         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
23495         uniwidth to e.g., lib/.gitignore.
23496         (slurp): Handle the sys_stat_.h -> sys mapping, too.
23497
23498         * build-aux/bootstrap: New setting: vc_ignore.
23499         (insert_sorted_if_absent): Create $file if absent.
23500         Adapt to new, possibly empty, list: $vc_ignore.
23501
23502         bootstrap: generate more ignorable names
23503         * build-aux/bootstrap (slurp): When generating ignorable names,
23504         also map .sin to .sed, .gperf to .c, and .y to .c.
23505
23506 2007-09-03  Jim Meyering  <jim@meyering.net>
23507
23508         * build-aux/git-version-gen: New file, from coreutils.  For details, see
23509         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
23510
23511 2007-09-02  Bruno Haible  <bruno@clisp.org>
23512
23513         Fix mis-recognition of 'mcs' on QNX 6.
23514         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
23515         output contains the string "Mono".
23516         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
23517         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
23518
23519 2007-09-01  Bruno Haible  <bruno@clisp.org>
23520
23521         Fix collision between uniwidth/* and linebreak modules.
23522         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
23523         u32_width): Remove declarations.
23524         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
23525         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
23526         streq3, streq2, streq1, streq0): Remove functions.
23527         (STREQ): Remove macro.
23528         (is_cjk_encoding): Remove function.
23529         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
23530         (uc_width, u8_width, u16_width, u32_width): Remove functions.
23531         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
23532         * NEWS: Document the change.
23533
23534 2007-09-01  Bruno Haible  <bruno@clisp.org>
23535
23536         * lib/streq.h: Add double-inclusion guard.
23537
23538 2007-09-01  Karl Berry  <karl@gnu.org>
23539
23540         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
23541
23542 2007-08-28  Jim Meyering  <jim@meyering.net>
23543
23544         Rename mreadlink_with_size to areadlink_with_size.
23545         * NEWS: Document the change.
23546         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
23547         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
23548         * lib/mreadlink.h: Rename this to...
23549         * lib/areadlink.h: ...this.
23550         * modules/mreadlink-with-size: Rename this to...
23551         * modules/areadlink-with-size: ...this.
23552         * lib/canonicalize.c: Reflect the renaming.
23553         * modules/canonicalize: Likewise.
23554
23555 2007-08-26  Bruno Haible  <bruno@clisp.org>
23556
23557         * gnulib-tool (func_import): When deciding which files to remove,
23558         consider also dangling symbolic links.
23559         Reported by Eric Blake.
23560
23561 2007-08-26  Bruno Haible  <bruno@clisp.org>
23562
23563         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
23564
23565 2007-08-23  Simon Josefsson  <simon@josefsson.org>
23566
23567         * lib/readline.c: Don't include getline.h, the prototype is now
23568         found in stdio.h.
23569
23570 2007-08-23  Jim Meyering  <jim@meyering.net>
23571
23572         Getdelim touchup.
23573         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
23574         around the funlockfile call, since funlockfile never sets errno.
23575         Don't set errno upon failed realloc.
23576
23577 2007-08-22  Eric Blake  <ebb9@byu.net>
23578
23579         Getline touchups.
23580         * lib/getdelim.c (getdelim): Revert regression that required *n to
23581         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
23582         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
23583         getdelim, rather than whether implementation is missing.
23584         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
23585         * lib/stdio_.h (getline): Also declare if replacement is
23586         required.
23587         * doc/functions/getdelim.texi: New file.
23588         * doc/functions/getline.texi: Likewise.
23589         * doc/gnulib.texi (Function Substitutes): Add new files.
23590         Reported by Bruno Haible.
23591
23592 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
23593
23594         * users.txt: Add Guile.
23595
23596 2007-08-22  Eric Blake  <ebb9@byu.net>
23597
23598         * tests/test-getdelim.c (main): Use remove, not unlink.
23599         * tests/test-getline.c (main): Likewise.
23600
23601         Move getline and getdelim into stdio.h, per POSIX 200x.
23602         * modules/getline (Files): Remove getline.h.
23603         (Depends-on): Add stdio.
23604         (configure.ac): Add module indicator.
23605         * modules/getdelim (Files): Remove getdelim.h.
23606         (Depends-on): Add stdio.
23607         (configure.ac): Add module indicator.
23608         * modules/stdio (Makefile.am): Work with new indicators.
23609         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
23610         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
23611         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
23612         * lib/getdelim.h: Delete.
23613         * lib/getline.h: Delete.
23614         * lib/stdio_.h (getdelim, getline): Declare.
23615         * modules/getdelim-tests: New module.
23616         * modules/getline-tests: Likewise.
23617         * tests/test-getdelim.c: New file.
23618         * tests/test-getline.c: Likewise.
23619         * NEWS: Document the change.
23620         * lib/getline.c: Update choice of header.
23621         * lib/csharpcomp.c: Likewise.
23622         * lib/getpass.c: Likewise.
23623         * lib/javacomp.c: Likewise.
23624         * lib/javaversion.c: Likewise.
23625         * lib/yesno.c: Likewise.
23626         * lib/getdelim.c: Likewise.
23627         (getdelim): Set errno on failure, and avoid memory leak.
23628
23629 2007-08-19  Bruno Haible  <bruno@clisp.org>
23630
23631         * modules/closein (Depends-on): Add freadahead.
23632         * lib/closein.c: Include freadahead.h.
23633         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
23634         is zero.
23635
23636 2007-08-19  Bruno Haible  <bruno@clisp.org>
23637
23638         * modules/freadahead-tests: New file.
23639         * tests/test-freadahead.sh: New file.
23640         * tests/test-freadahead.c: New file.
23641
23642         * modules/freadahead: New file.
23643         * lib/freadahead.h: New file.
23644         * lib/freadahead.c: New file.
23645         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
23646         fbufmode, fpurge, freadable, fwritable.
23647
23648 2007-08-19  Eric Blake  <ebb9@byu.net>
23649
23650         Test yesno in combination with closein.
23651         * lib/yesno.c (yesno): Document use of stdin.
23652         * modules/yesno-tests (Files): New module.
23653         * tests/test-yesno.c (main): New file.
23654         * tests/test-yesno.sh: Likewise.
23655
23656 2007-08-19  Bruno Haible  <bruno@clisp.org>
23657
23658         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
23659         * lib/fseeko.c (rpl_fseeko): Likewise.
23660         * lib/fseterr.c (fseterr): Likewise.
23661
23662 2007-08-19  Bruno Haible  <bruno@clisp.org>
23663
23664         * tests/test-lseek.c (main): Disable a test for BeOS.
23665         * doc/functions/lseek.texi: Document the BeOS bug.
23666
23667 2007-08-19  Bruno Haible  <bruno@clisp.org>
23668             Eric Blake  <ebb9@byu.net>
23669
23670         * lib/lseek.c: Include <sys/stat.h>.
23671         (rpl_lseek): Add workaround code also for Unix platforms.
23672         Needed for BeOS.
23673         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
23674         * doc/functions/lseek.texi: Document BeOS definiency.
23675
23676 2007-08-18  Bruno Haible  <bruno@clisp.org>
23677
23678         * modules/fstrcmp-tests: New file.
23679         * tests/test-fstrcmp.c: New file.
23680
23681 2007-08-18  Bruno Haible  <bruno@clisp.org>
23682
23683         * modules/fstrcmp: New file, from GNU gettext with modifications.
23684         * lib/fstrcmp.h: New file, from GNU gettext.
23685         * lib/fstrcmp.c: New file, from GNU gettext.
23686         * MODULES.html.sh (String handling): Add fstrcmp.
23687
23688 2007-08-18  Bruno Haible  <bruno@clisp.org>
23689
23690         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
23691         'bool'.
23692         (diag, compareseq): Remove const from the ctxt argument.
23693         (USE_HEURISTIC): Undefine at the end.
23694
23695 2007-08-18  Jim Meyering  <jim@meyering.net>
23696
23697         New file: lib/idcache.h
23698         * NEWS: Mention the addition.
23699         * modules/idcache (Files): Add lib/idcache.h
23700         * lib/idcache.c: Include "idcache.h".
23701         Don't include <sys/types.h>.
23702         Add a FIXME comment.
23703         Move file-scoped "static" declarations to the top.
23704         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
23705
23706 2007-08-17  Bruno Haible  <bruno@clisp.org>
23707         and Paul Eggert  <eggert@cs.ucla.edu>
23708
23709         * MODULES.html.sh: Add diffseq.
23710         * modules/diffseq: New file.
23711         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
23712         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
23713
23714 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
23715
23716         Import changes from coreutils for bootstrap script.
23717
23718         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
23719
23720         * build-aux/bootstrap (slurp): Work even in environments where
23721         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
23722         current code does not slurp files whose names start with ".", and
23723         this looks like it might be a troublesome area.
23724
23725         2007-07-11  Jim Meyering  <jim@meyering.net>
23726
23727         If there's a GPL vN copyright comment, require that N == 3.
23728
23729         2007-07-08  Jim Meyering  <jim@meyering.net>
23730
23731         Run the coreutils-specific code only if tests/Makefile.am.in exists.
23732         * build-aux/bootstrap (mam_template): Move definition out of loop.
23733
23734         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
23735
23736         * build-aux/bootstrap (symlink_to_dir): Rename function from
23737         symlink_to_gnulib.  Add a directory parameter.  Update all
23738         callers.
23739         (cp_mark_as_generated): Also check for -- and link to -- files in
23740         gl/.
23741
23742         2007-07-08  Jim Meyering  <jim@meyering.net>
23743
23744         Adapt to deeper hierarchy in gnulib.
23745         * build-aux/bootstrap (symlink_to_dir): If the destination
23746         directory doesn't exist, create it. This is required at least for
23747         "lib/uniwidth/cjk.h".
23748
23749         2007-05-15  Jim Meyering  <jim@meyering.net>
23750
23751         * build-aux/bootstrap: Now that generated Makefile.am files
23752         are no longer under version control, they must be created at
23753         bootstrap time.
23754
23755 2007-08-14  Ben Pfaff  <blp@gnu.org>
23756
23757         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
23758
23759 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
23760
23761         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
23762         given the changes below.
23763         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
23764         even on hosts that have padding bits beyond the supported 64.
23765
23766 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
23767
23768         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
23769         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
23770         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
23771         depends on it.
23772         (xstrtol_error): Remove.
23773         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
23774         but with a different signature.
23775         (ATTRIBUTE_NORETURN, __attribute__): New macros.
23776         * lib/xstrtol-error.c: Include exitfail.h.
23777         (xstrtol_fatal): New function, with a different signature from the
23778         old xstrtol_error, so that the caller need not worry about passing
23779         in an exit status, or about storage management of the option argument.
23780         (xstrtol_error): Now a static function.  Redo signature to
23781         implement xstrtol_fatal.  Output the correct number of hyphens in
23782         front of the option so that the caller need not worry about
23783         storage management.
23784         (N_): New macro.
23785         (_): Remove; not used now.
23786         * modules/xstrtol: Depend on getopt.
23787         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
23788         of old STRTOL_FATAL_ERROR macro.
23789         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
23790         of test program.
23791         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
23792         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
23793
23794 2007-08-08  Eric Blake  <ebb9@byu.net>
23795
23796         * lib/xstrtol-error.c: Add missing include.
23797
23798         Move xstrtol messages into gnulib domain, when --pobase is used.
23799         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
23800         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
23801         * modules/xstrtol (Files): Distribute new file.
23802         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
23803         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
23804         * tests/test-xstrtol.c: ...into new file.
23805         * tests/test-xstrtoul.c: Also test xstrtoul.
23806         * tests/test-xstrtoimax.c: Also test xstrtoimax.
23807         * tests/test-xstrtoumax.c: Also test xstrtoumax.
23808         * tests/test-xstrtol.sh: Drive the tests.
23809         * tests/test-xstrtoimax.sh: Likewise.
23810         * tests/test-xstrtoumax.sh: Likewise.
23811         * modules/xstrtol-tests: New module.
23812         * modules/xstrtoimax-tests: Likewise.
23813         * modules/xstrtoumax-tests: Likewise.
23814
23815 2007-08-08  Jim Meyering  <jim@meyering.net>
23816
23817         New function: mfile_name_concat.
23818         * lib/filenamecat.c (mfile_name_concat): New function, just like
23819         file_name_concat, but return NULL upon failure rather than exiting
23820         with a diagnostic.
23821         * lib/filenamecat.h: Declare it.
23822
23823 2007-08-07  Bruno Haible  <bruno@clisp.org>
23824
23825         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
23826         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
23827         warning from gcc.
23828         Reported by Eric Blake.
23829
23830 2007-08-07  Simon Josefsson  <simon@josefsson.org>
23831
23832         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
23833         * modules/crypto/arcfour (License): Likewise.
23834         * modules/crypto/des-tests (License): Likewise.
23835         * modules/crypto/gc-arctwo-tests (License): Likewise.
23836         * modules/crypto/gc-des-tests (License): Likewise.
23837         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
23838         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
23839         * modules/crypto/gc-md2-tests (License): Likewise.
23840         * modules/crypto/gc-md4-tests (License): Likewise.
23841         * modules/crypto/gc-md5-tests (License): Likewise.
23842         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
23843         * modules/crypto/gc-rijndael-tests (License): Likewise.
23844         * modules/crypto/gc-sha1-tests (License): Likewise.
23845         * modules/crypto/gc-tests (License): Likewise.
23846         * modules/crypto/hmac-md5 (License): Likewise.
23847         * modules/crypto/hmac-sha1 (License): Likewise.
23848         * modules/crypto/md2-tests (License): Likewise.
23849         * modules/crypto/md4-tests (License): Likewise.
23850         * modules/crypto/md5 (License): Likewise.
23851         * modules/crypto/rijndael (License): Likewise.
23852         * modules/crypto/sha1 (License): Likewise.
23853         * modules/memxor (License): Likewise.
23854
23855 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
23856         and Bruno Haible  <bruno@clisp.org>
23857
23858         * NEWS: Describe interface changes to human, xstrtol.
23859         * lib/human.h: Include <xstrtol.h>.
23860         (human_options): Return enum strtol_error, not int.  Remove
23861         bool arg; take int * instead.
23862         * lib/human.c: Don't include "gettext.h".
23863         (_): Remove; no longer used.
23864         Don't include <xstrtol.h>, since human.h does it.
23865         (human_options): Adjust to abovementioned interface changes.
23866         Do not report error to stderr; that's now the caller's
23867         responsibility.
23868         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
23869         interface change.
23870         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
23871         Str, Argument_type_string.  All uses changed.  Put " argument"
23872         in diagnostics to make them clearer.  Change wording of suffix
23873         message for clarity.
23874         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
23875         Argument_type_string.
23876         (STRTOL_FATAL_WARN): Remove; no longer used.
23877         * modules/human (Depends-on): Remove gettext-h.
23878
23879 2007-08-06  Simon Josefsson  <simon@josefsson.org>
23880
23881         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
23882
23883 2007-07-31  Bruno Haible  <bruno@clisp.org>
23884
23885         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
23886         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
23887         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
23888
23889 2007-07-31  Bruno Haible  <bruno@clisp.org>
23890
23891         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
23892         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
23893
23894 2007-07-30  Bruno Haible  <bruno@clisp.org>
23895
23896         * modules/base64 (License): Use the synonymous term "LGPLv2+".
23897         * modules/c-ctype (License): Likewise.
23898         * modules/c-strcase (License): Likewise.
23899         * modules/check-version (License): Likewise.
23900         * modules/iconv (License): Likewise.
23901         * modules/iconv_open (License): Likewise.
23902         * modules/read-file (License): Likewise.
23903         * modules/striconv (License): Likewise.
23904         * modules/strverscmp (License): Likewise.
23905         * modules/vasprintf (License): Likewise.
23906         * modules/crypto/des (License): Likewise.
23907         * modules/crypto/gc (License): Likewise.
23908         * modules/crypto/gc-arcfour (License): Likewise.
23909         * modules/crypto/gc-arctwo (License): Likewise.
23910         * modules/crypto/gc-des (License): Likewise.
23911         * modules/crypto/gc-hmac-md5 (License): Likewise.
23912         * modules/crypto/gc-hmac-sha1 (License): Likewise.
23913         * modules/crypto/gc-md2 (License): Likewise.
23914         * modules/crypto/gc-md4 (License): Likewise.
23915         * modules/crypto/gc-md5 (License): Likewise.
23916         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
23917         * modules/crypto/gc-random (License): Likewise.
23918         * modules/crypto/gc-rijndael (License): Likewise.
23919         * modules/crypto/gc-sha1 (License): Likewise.
23920         * modules/crypto/md2 (License): Likewise.
23921         * modules/crypto/md4 (License): Likewise.
23922
23923 2007-07-30  Jim Meyering  <jim@meyering.net>
23924
23925         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
23926         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
23927         it has valid stat data.  This bug would cause du not to count the
23928         sizes of inaccessible directories.
23929         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
23930         in <http://bugzilla.redhat.com/250077>.
23931
23932 2007-07-25  Peter O'Gorman  <peter@pogma.com>
23933             Bruno Haible  <bruno@clisp.org>
23934
23935         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
23936         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
23937         #include_next, gives a diagnostic about it, but reports no error in
23938         the exit code.
23939         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
23940
23941 2007-07-24  Ben Pfaff  <blp@gnu.org>
23942
23943         Improve name: "count-one-bits" is better than "popcount".
23944         * MODULES.html.sh: Update name.
23945         * lib/popcount.h: Renamed lib/count-one-bits.h.
23946         (popcount): Renamed count_one_bits.
23947         (popcountl): Renamed count_one_bits_l.
23948         (popcountll): Renamed count_one_bits_ll.
23949         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
23950         * modules/popcount: Renamed module/count-one-bits.
23951         * modules/popcount-tests: Renamed module/count-one-bits-tests.
23952         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
23953
23954 2007-07-23  Ben Pfaff  <blp@gnu.org>
23955
23956         * lib/popcount.h (popcount32): Reduce size of constants, to allow
23957         better code generation, and add U to large constants to avoid
23958         warnings, in non-GCC case.
23959         Suggested by Bruno Haible.
23960
23961 2007-07-23  Ben Pfaff  <blp@gnu.org>
23962
23963         * lib/popcount.h: Use verify_true instead of if...abort.
23964         * modules/popcount: Depend on verify module.
23965         Suggested by Jim Meyering.
23966
23967 2007-07-23  Bruno Haible  <bruno@clisp.org>
23968
23969         * gnulib-tool (func_import): Create a .cvsignore file also when the
23970         directory is not yet in CVS but the toplevel directory is. When
23971         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
23972         Reported by Karl Berry.
23973
23974 2007-07-22  Ben Pfaff  <blp@gnu.org>
23975
23976         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
23977         case.
23978         Suggested by Eric Blake.
23979
23980 2007-07-22  Ben Pfaff  <blp@gnu.org>
23981
23982         New module: popcount.
23983         * MODULES.html.sh: Add popcount.
23984         * modules/popcount: New file.
23985         * modules/popcount-tests: New file.
23986         * tests/test-popcount.c: New file.
23987         * lib/popcount.h: New file.
23988         * m4/popcount.m4: New file.
23989
23990 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
23991
23992         * build-aux/announce-gen: Update to GPLv3.
23993
23994         * build-aux/config.guess: Update from config.
23995
23996 2007-07-21  Bruno Haible  <bruno@clisp.org>
23997
23998         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
23999         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
24000
24001 2007-07-20  Jim Meyering  <jim@meyering.net>
24002
24003         * check-module: Diagnose a self-dependency.
24004
24005 2007-07-19  Bruno Haible  <bruno@clisp.org>
24006
24007         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
24008         empty.
24009         Reported by Eric Blake.
24010
24011 2007-07-18  Bruno Haible  <bruno@clisp.org>
24012
24013         * gnulib-tool: New options --po-base, --po-domain.
24014         (func_usage): Document them.
24015         (pobase, po_domain): New variables.
24016         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
24017         DEFAULT_TEXT_DOMAIN.
24018         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
24019         (func_import): Consider pobase and po_domain. Create a po/ directory.
24020         (func_create_testdir): Set pobase and po_domain to empty.
24021         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
24022         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
24023
24024 2007-07-18  Bruno Haible  <bruno@clisp.org>
24025
24026         * gnulib-tool (func_get_automake_snippet): Synthesize also an
24027         EXTRA_DIST augmentation for files in build-aux/.
24028
24029 2007-07-16  Bruno Haible  <bruno@clisp.org>
24030
24031         * modules/lseek (License): Use the synonymous term "LGPLv2+".
24032         * modules/getdelim (License): Likewise.
24033
24034 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
24035
24036         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
24037         * modules/d-type (License): Likewise.
24038         * modules/extensions (License): Likewise.
24039         * modules/fnmatch (License): Likewise.
24040         * modules/fseeko (License): Likewise.
24041         * modules/getaddrinfo (License): Likewise.
24042         * modules/getline (License): Likewise.
24043         * modules/getlogin_r (License): Likewise.
24044         * modules/getpass (License): Likewise.
24045         * modules/gettimeofday (License): Likewise.
24046         * modules/glob (License): Likewise.
24047         * modules/inet_ntop (License): Likewise.
24048         * modules/malloc (License): Likewise.
24049         * modules/malloca (License): Likewise.
24050         * modules/memmem (License): Likewise.
24051         * modules/mempcpy (License): Likewise.
24052         * modules/memset (License): Likewise.
24053         * modules/minmax (License): Likewise.
24054         * modules/mktime (License): Likewise.
24055         * modules/netinet_in (License): Likewise.
24056         * modules/pathmax (License): Likewise.
24057         * modules/poll (License): Likewise.
24058         * modules/regex (License): Likewise.
24059         * modules/snprintf (License): Likewise.
24060         * modules/stdbool (License): Likewise.
24061         * modules/stdint (License): Likewise.
24062         * modules/stdio (License): Likewise.
24063         * modules/strcase (License): Likewise.
24064         * modules/strcasestr (License): Likewise.
24065         * modules/strdup (License): Likewise.
24066         * modules/string (License): Likewise.
24067         * modules/strndup (License): Likewise.
24068         * modules/strnlen (License): Likewise.
24069         * modules/strpbrk (License): Likewise.
24070         * modules/strptime (License): Likewise.
24071         * modules/strsep (License): Likewise.
24072         * modules/sys_select (License): Likewise.
24073         * modules/sys_socket (License): Likewise.
24074         * modules/sys_stat (License): Likewise.
24075         * modules/sys_time (License): Likewise.
24076         * modules/time (License): Likewise.
24077         * modules/time_r (License): Likewise.
24078         * modules/timegm (License): Likewise.
24079         * modules/unistd (License): Likewise.
24080         * modules/vsnprintf (License): Likewise.
24081         * modules/wctype (License): Likewise.
24082
24083 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24084
24085         * modules/argz (License): LGPLv2+.
24086
24087 2007-07-15  Karl Berry  <karl@gnu.org>
24088
24089         * doc/gnulib.texi: revise node structure per new fdl.texi.
24090
24091 2007-07-14  Bruno Haible  <bruno@clisp.org>
24092
24093         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
24094         the output file.
24095         * lib/uniname/uninames.h: Regenerated.
24096
24097 2007-07-14  Karl Berry  <karl@gnu.org>
24098
24099         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
24100         omitting sectioning and index commands.
24101
24102 2007-07-13  Bruno Haible  <bruno@clisp.org>
24103
24104         New gnulib-tool option --more-symlinks.
24105         * gnulib-tool (func_usage): Document --more-symlinks.
24106         (do_copyrights): New variable.
24107         Recognize option --more-symlinks.
24108         (func_import): Don't add a copyright notice transform to
24109         sed_transform_lib_file if do_copyrights is empty.
24110
24111 2007-07-13  Bruno Haible  <bruno@clisp.org>
24112
24113         * lib/vasnprintf.c (decimal_point_char): Define also if
24114         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
24115         && !NEED_PRINTF_DIRECTIVE_A.
24116         Reported by Clemens Koller <clemens.koller@anagramm.de> via
24117         Gary V. Vaughan <gary@gnu.org>.
24118
24119 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
24120
24121         * lib/inttypes_.h: Undo previous change, since it was fixed
24122         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
24123
24124 2007-07-13  Bruno Haible  <bruno@clisp.org>
24125
24126         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
24127         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
24128
24129 2007-07-13  Jim Meyering  <jim@meyering.net>
24130
24131         df: Don't fail for Tru64's "file-on-file mount".
24132         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
24133         so we fall through and use statfs instead.  Details here:
24134         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
24135         Reported by Albert Chin.
24136
24137 2007-07-13  Bruno Haible  <bruno@clisp.org>
24138
24139         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
24140         * modules/configmake (License): Likewise.
24141         * modules/gettext (License): Likewise.
24142         * modules/gettext-h (License): Likewise.
24143         * modules/include_next (License): Likewise.
24144         * modules/link-warning (License): Likewise.
24145         * modules/localcharset (License): Likewise.
24146         * modules/localename (License): Likewise.
24147         * modules/lock (License): Likewise.
24148         * modules/relocatable-lib-lgpl (License): Likewise.
24149         * modules/size_max (License): Likewise.
24150         * modules/vasnprintf (License): Likewise.
24151         * modules/wchar (License): Likewise.
24152         * modules/xsize (License): Likewise.
24153
24154 2007-07-13  Bruno Haible  <bruno@clisp.org>
24155
24156         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
24157         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
24158
24159 2007-07-12  Bruno Haible  <bruno@clisp.org>
24160
24161         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
24162         in the modules files.
24163
24164 2007-07-11  Karl Berry  <karl@gnu.org>
24165
24166         * MODULES.html.sh (func_module): use
24167          sed -e '\|^'"${includefile}"'$|d'
24168          instead of /.../d, to avoid errors on $includefile's containing /.
24169
24170 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
24171
24172         * gnulib-tool (func_import): Avoid duplication of --avoid
24173         statements
24174         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
24175         names to `_' in variable names.
24176
24177 2007-07-10  Eric Blake  <ebb9@byu.net>
24178
24179         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
24180         * NEWS: Document this change.
24181
24182 2007-07-08  Bruno Haible  <bruno@clisp.org>
24183
24184         Update to Unicode 5.0.
24185         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
24186         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
24187         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
24188         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
24189         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
24190         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
24191         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
24192         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
24193         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
24194         U+10A3F, U+1D242..U+1D244.
24195         (nonspacing_table_ind): Update.
24196         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
24197         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
24198
24199 2007-07-08  Bruno Haible  <bruno@clisp.org>
24200
24201         Update to Unicode 5.0.
24202         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
24203         code transform. Extend the name index field of unicode_name_to_code and
24204         unicode_code_to_name from 16 to 24 bits.
24205         * lib/uniname/uniname.c (unicode_character_name,
24206         unicode_name_character): Add the range 0x12xxx to the code transform.
24207         * lib/uniname/uninames.h: Regenerated.
24208         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
24209
24210 2007-07-07  Bruno Haible  <bruno@clisp.org>
24211
24212         * modules/wcwidth-tests: New file.
24213         * tests/test-wcwidth.c: New file.
24214
24215         Work around MacOS X wcwidth() bug.
24216         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
24217         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
24218         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
24219         original wcwidth in non-UTF-8 locales.
24220         * modules/wcwidth (Depends-on): Add localcharset, streq,
24221         uniwidth/width.
24222         * doc/functions/wcwidth.texi: Update.
24223
24224 2007-07-07  Bruno Haible  <bruno@clisp.org>
24225
24226         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
24227         (wcwidth): New declaration.
24228         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
24229         macros.
24230         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
24231         here. Prepare for creating <wchar.h> unconditionally.
24232         * modules/wchar (Depends-on): Add link-warning.
24233         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
24234         REPLACE_WCWIDTH, and GL_LINK_WARNING.
24235         * lib/wcwidth.h: Remove file.
24236         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
24237         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
24238         * modules/wcwidth (Files): Remove lib/wcwidth.h.
24239         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
24240         (Include): Replace wcwidth.h with <wchar.h>.
24241         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
24242         * lib/mbchar.h: Don't include wcwidth.h.
24243         * lib/mbswidth.c: Likewise.
24244         * NEWS: Mention the change.
24245
24246 2007-07-07  Bruno Haible  <bruno@clisp.org>
24247
24248         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
24249         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
24250         definition with an external declaration.
24251         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
24252         defined as a function. Remove AC_C_INLINE requirement.
24253         * modules/wcwidth (Files): Add lib/wcwidth.c.
24254         (Makefile.am): Remove redundant statement.
24255
24256 2007-07-07  Bruno Haible  <bruno@clisp.org>
24257
24258         * MODULES.html.sh (Unicode string functions): Add the new modules.
24259
24260         * tests/uniwidth/test-u32-strwidth.c: New file.
24261         * modules/uniwidth/u32-strwidth-tests: New file.
24262
24263         * lib/uniwidth/u32-strwidth.c: New file.
24264         * modules/uniwidth/u32-strwidth: New file.
24265
24266         * tests/uniwidth/test-u16-strwidth.c: New file.
24267         * modules/uniwidth/u16-strwidth-tests: New file.
24268
24269         * lib/uniwidth/u16-strwidth.c: New file.
24270         * modules/uniwidth/u16-strwidth: New file.
24271
24272         * tests/uniwidth/test-u8-strwidth.c: New file.
24273         * modules/uniwidth/u8-strwidth-tests: New file.
24274
24275         * lib/uniwidth/u8-strwidth.c: New file.
24276         * modules/uniwidth/u8-strwidth: New file.
24277
24278         * tests/uniwidth/test-u32-width.c: New file.
24279         * modules/uniwidth/u32-width-tests: New file.
24280
24281         * lib/uniwidth/u32-width.c: New file.
24282         * modules/uniwidth/u32-width: New file.
24283
24284         * tests/uniwidth/test-u16-width.c: New file.
24285         * modules/uniwidth/u16-width-tests: New file.
24286
24287         * lib/uniwidth/u16-width.c: New file.
24288         * modules/uniwidth/u16-width: New file.
24289
24290         * tests/uniwidth/test-u8-width.c: New file.
24291         * modules/uniwidth/u8-width-tests: New file.
24292
24293         * lib/uniwidth/u8-width.c: New file.
24294         * modules/uniwidth/u8-width: New file.
24295
24296         * tests/uniwidth/test-uc_width.c: New file.
24297         * modules/uniwidth/width-tests: New file.
24298
24299         * lib/uniwidth/width.c: New file, from GNU libiconv.
24300         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
24301         * modules/uniwidth/width: New file.
24302
24303         * lib/uniwidth.h: New file, from GNU libiconv.
24304         * modules/uniwidth/base: New file.
24305
24306 2007-07-07  Bruno Haible  <bruno@clisp.org>
24307
24308         * lib/uniname.h: New file, from GNU gettext.
24309         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
24310         * lib/uniname/uninames.h: New file, from GNU gettext.
24311         * lib/uniname/uniname.c: New file, from GNU gettext.
24312         * tests/uniname/test-uninames.sh: New file.
24313         * tests/uniname/test-uninames.c: New file, from GNU gettext.
24314         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
24315         * modules/uniname/base: New file.
24316         * modules/uniname/uniname: New file.
24317         * modules/uniname/uniname-tests: New file.
24318         * MODULES.html.sh (Unicode string functions): Add the new modules.
24319
24320 2007-07-06  Bruno Haible  <bruno@clisp.org>
24321
24322         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
24323
24324 2007-07-06  Bruno Haible  <bruno@clisp.org>
24325
24326         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
24327         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
24328         includes <cygwin/sys_time.h> which includes <sys/select.h> which
24329         include <sys/time.h>.
24330         Reported by Eric Blake.
24331
24332 2007-07-06  Eric Blake  <ebb9@byu.net>
24333
24334         Fix testing canonicalize on cygwin.
24335         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
24336         Revert patch from 2007-06-19.
24337         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
24338         canonicalize module is also in use.
24339         * tests/test-canonicalize.c: New file.
24340         * tests/test-canonicalize.sh: Likewise.
24341         * modules/canonicalize-tests: Likewise.
24342
24343 2007-07-06  Jim Meyering  <jim@meyering.net>
24344
24345         * lib/getugroups.c (getugroups): Detect getgrent failure.
24346         Adjust comment to reflect reality: this function may return -1.
24347
24348 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
24349
24350         * build-aux/bootstrap (TP_URL,get_translations): Update to use
24351         the new TP address.
24352         (usage): Fix typo
24353         (gnulib_mk): New variable.
24354
24355 2007-07-05  Jim Meyering  <jim@meyering.net>
24356
24357         Don't let endgrent clobber errno, no matter how improbable.
24358         * lib/getugroups.c (getugroups): Save and restore errno around
24359         endgrent call.
24360
24361         Close the group DB even when failing with 2^31 or more members.
24362         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
24363
24364 2007-07-04  Jim Meyering  <jim@meyering.net>
24365
24366         * lib/getugroups.h: New file.
24367         * lib/getugroups.c: Include "getugroups.h".
24368         Remove uses of "register" keyword.
24369         Move local variable, "cp", down into scope where used.
24370         Give "username" parameter the "const" attribute.
24371         * modules/getugroups (Files): Add lib/getugroups.h
24372
24373 2007-07-04  Karl Berry  <karl@gnu.org>
24374
24375         * MODULES.html.sh (func_all_modules): Complete rename of
24376         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
24377
24378 2007-07-02  Bruno Haible  <bruno@clisp.org>
24379
24380         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
24381         mode, when inttypes.h comes from gnulib.
24382         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
24383
24384 2007-07-02  Simon Josefsson  <simon@josefsson.org>
24385
24386         * NEWS: Mention lgpl module name change.
24387
24388         * modules/lgpl-2.1: Renamed from lgpl.
24389
24390         * NEWS: Mention gpl module name change.
24391
24392         * modules/gpl-3.0: New file, based on gpl-2.0.
24393
24394         * modules/gpl-2.0: Renamed from gpl.
24395
24396         * modules/gpl: Fix filename, doc/gpl.texi is now found at
24397         doc/gpl-2.0.texi.
24398
24399 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
24400
24401         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
24402         #define __STDC_LIMIT_MACROS temporarily while including
24403         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
24404         Problem reported by Joel E. Denny in
24405         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
24406
24407 2007-07-01  Bruno Haible  <bruno@clisp.org>
24408
24409         * lib/unistdio.h: New file.
24410         * lib/unistdio/u-asnprintf.h: New file.
24411         * lib/unistdio/u-asprintf.h: New file.
24412         * lib/unistdio/u-printf-args.c: New file.
24413         * lib/unistdio/u-printf-args.h: New file.
24414         * lib/unistdio/u-printf-parse.h: New file.
24415         * lib/unistdio/u-snprintf.h: New file.
24416         * lib/unistdio/u-sprintf.h: New file.
24417         * lib/unistdio/u-vasprintf.h: New file.
24418         * lib/unistdio/u-vsnprintf.h: New file.
24419         * lib/unistdio/u-vsprintf.h: New file.
24420         * lib/unistdio/ulc-asnprintf.c: New file.
24421         * lib/unistdio/ulc-asprintf.c: New file.
24422         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
24423         * lib/unistdio/ulc-printf-parse.c: New file.
24424         * lib/unistdio/ulc-snprintf.c: New file.
24425         * lib/unistdio/ulc-sprintf.c: New file.
24426         * lib/unistdio/ulc-vasnprintf.c: New file.
24427         * lib/unistdio/ulc-vasprintf.c: New file.
24428         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
24429         * lib/unistdio/ulc-vsnprintf.c: New file.
24430         * lib/unistdio/ulc-vsprintf.c: New file.
24431         * lib/unistdio/u8-asnprintf.c: New file.
24432         * lib/unistdio/u8-asprintf.c: New file.
24433         * lib/unistdio/u8-printf-parse.c: New file.
24434         * lib/unistdio/u8-snprintf.c: New file.
24435         * lib/unistdio/u8-sprintf.c: New file.
24436         * lib/unistdio/u8-vasnprintf.c: New file.
24437         * lib/unistdio/u8-vasprintf.c: New file.
24438         * lib/unistdio/u8-vsnprintf.c: New file.
24439         * lib/unistdio/u8-vsprintf.c: New file.
24440         * lib/unistdio/u8-u8-asnprintf.c: New file.
24441         * lib/unistdio/u8-u8-asprintf.c: New file.
24442         * lib/unistdio/u8-u8-snprintf.c: New file.
24443         * lib/unistdio/u8-u8-sprintf.c: New file.
24444         * lib/unistdio/u8-u8-vasnprintf.c: New file.
24445         * lib/unistdio/u8-u8-vasprintf.c: New file.
24446         * lib/unistdio/u8-u8-vsnprintf.c: New file.
24447         * lib/unistdio/u8-u8-vsprintf.c: New file.
24448         * lib/unistdio/u16-asnprintf.c: New file.
24449         * lib/unistdio/u16-asprintf.c: New file.
24450         * lib/unistdio/u16-printf-parse.c: New file.
24451         * lib/unistdio/u16-snprintf.c: New file.
24452         * lib/unistdio/u16-sprintf.c: New file.
24453         * lib/unistdio/u16-vasnprintf.c: New file.
24454         * lib/unistdio/u16-vasprintf.c: New file.
24455         * lib/unistdio/u16-vsnprintf.c: New file.
24456         * lib/unistdio/u16-vsprintf.c: New file.
24457         * lib/unistdio/u16-u16-asnprintf.c: New file.
24458         * lib/unistdio/u16-u16-asprintf.c: New file.
24459         * lib/unistdio/u16-u16-snprintf.c: New file.
24460         * lib/unistdio/u16-u16-sprintf.c: New file.
24461         * lib/unistdio/u16-u16-vasnprintf.c: New file.
24462         * lib/unistdio/u16-u16-vasprintf.c: New file.
24463         * lib/unistdio/u16-u16-vsnprintf.c: New file.
24464         * lib/unistdio/u16-u16-vsprintf.c: New file.
24465         * lib/unistdio/u32-asnprintf.c: New file.
24466         * lib/unistdio/u32-asprintf.c: New file.
24467         * lib/unistdio/u32-printf-parse.c: New file.
24468         * lib/unistdio/u32-snprintf.c: New file.
24469         * lib/unistdio/u32-sprintf.c: New file.
24470         * lib/unistdio/u32-vasnprintf.c: New file.
24471         * lib/unistdio/u32-vasprintf.c: New file.
24472         * lib/unistdio/u32-vsnprintf.c: New file.
24473         * lib/unistdio/u32-vsprintf.c: New file.
24474         * lib/unistdio/u32-u32-asnprintf.c: New file.
24475         * lib/unistdio/u32-u32-asprintf.c: New file.
24476         * lib/unistdio/u32-u32-snprintf.c: New file.
24477         * lib/unistdio/u32-u32-sprintf.c: New file.
24478         * lib/unistdio/u32-u32-vasnprintf.c: New file.
24479         * lib/unistdio/u32-u32-vasprintf.c: New file.
24480         * lib/unistdio/u32-u32-vsnprintf.c: New file.
24481         * lib/unistdio/u32-u32-vsprintf.c: New file.
24482         * tests/unistdio/test-ulc-asnprintf1.c: New file.
24483         * tests/unistdio/test-ulc-asnprintf1.h: New file.
24484         * tests/unistdio/test-ulc-printf1.h: New file.
24485         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
24486         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
24487         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
24488         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
24489         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
24490         * tests/unistdio/test-ulc-vasprintf1.c: New file.
24491         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
24492         * tests/unistdio/test-ulc-vsprintf1.c: New file.
24493         * tests/unistdio/test-u8-asnprintf1.c: New file.
24494         * tests/unistdio/test-u8-asnprintf1.h: New file.
24495         * tests/unistdio/test-u8-printf1.h: New file.
24496         * tests/unistdio/test-u8-vasnprintf1.c: New file.
24497         * tests/unistdio/test-u8-vasnprintf2.c: New file.
24498         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
24499         * tests/unistdio/test-u8-vasnprintf3.c: New file.
24500         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
24501         * tests/unistdio/test-u8-vasprintf1.c: New file.
24502         * tests/unistdio/test-u8-vsnprintf1.c: New file.
24503         * tests/unistdio/test-u8-vsprintf1.c: New file.
24504         * tests/unistdio/test-u16-asnprintf1.c: New file.
24505         * tests/unistdio/test-u16-asnprintf1.h: New file.
24506         * tests/unistdio/test-u16-printf1.h: New file.
24507         * tests/unistdio/test-u16-vasnprintf1.c: New file.
24508         * tests/unistdio/test-u16-vasnprintf2.c: New file.
24509         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
24510         * tests/unistdio/test-u16-vasnprintf3.c: New file.
24511         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
24512         * tests/unistdio/test-u16-vasprintf1.c: New file.
24513         * tests/unistdio/test-u16-vsnprintf1.c: New file.
24514         * tests/unistdio/test-u16-vsprintf1.c: New file.
24515         * tests/unistdio/test-u32-asnprintf1.c: New file.
24516         * tests/unistdio/test-u32-asnprintf1.h: New file.
24517         * tests/unistdio/test-u32-printf1.h: New file.
24518         * tests/unistdio/test-u32-vasnprintf1.c: New file.
24519         * tests/unistdio/test-u32-vasnprintf2.c: New file.
24520         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
24521         * tests/unistdio/test-u32-vasnprintf3.c: New file.
24522         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
24523         * tests/unistdio/test-u32-vasprintf1.c: New file.
24524         * tests/unistdio/test-u32-vsnprintf1.c: New file.
24525         * tests/unistdio/test-u32-vsprintf1.c: New file.
24526         * modules/unistdio/base: New file.
24527         * modules/unistdio/u-printf-args: New file.
24528         * modules/unistdio/ulc-asnprintf: New file.
24529         * modules/unistdio/ulc-asprintf: New file.
24530         * modules/unistdio/ulc-fprintf: New file.
24531         * modules/unistdio/ulc-printf-parse: New file.
24532         * modules/unistdio/ulc-snprintf: New file.
24533         * modules/unistdio/ulc-sprintf: New file.
24534         * modules/unistdio/ulc-vasnprintf: New file.
24535         * modules/unistdio/ulc-vasprintf: New file.
24536         * modules/unistdio/ulc-vfprintf: New file.
24537         * modules/unistdio/ulc-vsnprintf: New file.
24538         * modules/unistdio/ulc-vsprintf: New file.
24539         * modules/unistdio/u8-asnprintf: New file.
24540         * modules/unistdio/u8-asprintf: New file.
24541         * modules/unistdio/u8-printf-parse: New file.
24542         * modules/unistdio/u8-snprintf: New file.
24543         * modules/unistdio/u8-sprintf: New file.
24544         * modules/unistdio/u8-vasnprintf: New file.
24545         * modules/unistdio/u8-vasprintf: New file.
24546         * modules/unistdio/u8-vsnprintf: New file.
24547         * modules/unistdio/u8-vsprintf: New file.
24548         * modules/unistdio/u8-u8-asnprintf: New file.
24549         * modules/unistdio/u8-u8-asprintf: New file.
24550         * modules/unistdio/u8-u8-snprintf: New file.
24551         * modules/unistdio/u8-u8-sprintf: New file.
24552         * modules/unistdio/u8-u8-vasnprintf: New file.
24553         * modules/unistdio/u8-u8-vasprintf: New file.
24554         * modules/unistdio/u8-u8-vsnprintf: New file.
24555         * modules/unistdio/u8-u8-vsprintf: New file.
24556         * modules/unistdio/u16-asnprintf: New file.
24557         * modules/unistdio/u16-asprintf: New file.
24558         * modules/unistdio/u16-printf-parse: New file.
24559         * modules/unistdio/u16-snprintf: New file.
24560         * modules/unistdio/u16-sprintf: New file.
24561         * modules/unistdio/u16-vasnprintf: New file.
24562         * modules/unistdio/u16-vasprintf: New file.
24563         * modules/unistdio/u16-vsnprintf: New file.
24564         * modules/unistdio/u16-vsprintf: New file.
24565         * modules/unistdio/u16-u16-asnprintf: New file.
24566         * modules/unistdio/u16-u16-asprintf: New file.
24567         * modules/unistdio/u16-u16-snprintf: New file.
24568         * modules/unistdio/u16-u16-sprintf: New file.
24569         * modules/unistdio/u16-u16-vasnprintf: New file.
24570         * modules/unistdio/u16-u16-vasprintf: New file.
24571         * modules/unistdio/u16-u16-vsnprintf: New file.
24572         * modules/unistdio/u16-u16-vsprintf: New file.
24573         * modules/unistdio/u32-asnprintf: New file.
24574         * modules/unistdio/u32-asprintf: New file.
24575         * modules/unistdio/u32-printf-parse: New file.
24576         * modules/unistdio/u32-snprintf: New file.
24577         * modules/unistdio/u32-sprintf: New file.
24578         * modules/unistdio/u32-vasnprintf: New file.
24579         * modules/unistdio/u32-vasprintf: New file.
24580         * modules/unistdio/u32-vsnprintf: New file.
24581         * modules/unistdio/u32-vsprintf: New file.
24582         * modules/unistdio/u32-u32-asnprintf: New file.
24583         * modules/unistdio/u32-u32-asprintf: New file.
24584         * modules/unistdio/u32-u32-snprintf: New file.
24585         * modules/unistdio/u32-u32-sprintf: New file.
24586         * modules/unistdio/u32-u32-vasnprintf: New file.
24587         * modules/unistdio/u32-u32-vasprintf: New file.
24588         * modules/unistdio/u32-u32-vsnprintf: New file.
24589         * modules/unistdio/u32-u32-vsprintf: New file.
24590         * modules/unistdio/ulc-asnprintf-tests: New file.
24591         * modules/unistdio/ulc-vasnprintf-tests: New file.
24592         * modules/unistdio/ulc-vasprintf-tests: New file.
24593         * modules/unistdio/ulc-vsnprintf-tests: New file.
24594         * modules/unistdio/ulc-vsprintf-tests: New file.
24595         * modules/unistdio/u8-asnprintf-tests: New file.
24596         * modules/unistdio/u8-vasnprintf-tests: New file.
24597         * modules/unistdio/u8-vasprintf-tests: New file.
24598         * modules/unistdio/u8-vsnprintf-tests: New file.
24599         * modules/unistdio/u8-vsprintf-tests: New file.
24600         * modules/unistdio/u16-asnprintf-tests: New file.
24601         * modules/unistdio/u16-vasnprintf-tests: New file.
24602         * modules/unistdio/u16-vasprintf-tests: New file.
24603         * modules/unistdio/u16-vsnprintf-tests: New file.
24604         * modules/unistdio/u16-vsprintf-tests: New file.
24605         * modules/unistdio/u32-asnprintf-tests: New file.
24606         * modules/unistdio/u32-vasnprintf-tests: New file.
24607         * modules/unistdio/u32-vasprintf-tests: New file.
24608         * modules/unistdio/u32-vsnprintf-tests: New file.
24609         * modules/unistdio/u32-vsprintf-tests: New file.
24610         * MODULES.html.sh (Unicode string functions): Add the new modules.
24611
24612 2007-07-01  Bruno Haible  <bruno@clisp.org>
24613
24614         * lib/sprintf.c (sprintf): Limit the available length estimation,
24615         to avoid address wraparound.
24616         * lib/vsprintf.c (vsprintf): Likewise.
24617         * modules/sprintf-posix (Dependencies): Add stdint.
24618         * modules/vsprintf-posix (Dependencies): Likewise.
24619
24620 2007-07-01  Bruno Haible  <bruno@clisp.org>
24621
24622         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
24623         Windows PATH as well. Conservative double-quoting. Comments.
24624
24625 2007-07-01  Bruno Haible  <bruno@clisp.org>
24626             Eric Blake  <ebb9@byu.net>
24627             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24628
24629         * gnulib-tool (self_abspathname): Fix algorithm to cope with
24630         empty components in $PATH, denoting '.'.
24631
24632 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24633
24634         * gnulib-tool: Fix indentation.
24635         (func_create_megatestdir): Likewise.
24636         Report by Bruno Haible.
24637
24638 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24639
24640         Sync from Automake.
24641         * build-aux/gnupload: Fix shell portability issues with for loops.
24642         Report by Karl Berry.
24643
24644 2007-06-29  Simon Josefsson  <simon@josefsson.org>
24645
24646         * build-aux/maint.mk (POURL): Use translationproject.org.
24647
24648 2007-06-27  Simon Josefsson  <simon@josefsson.org>
24649             Bruno Haible  <bruno@clisp.org>
24650
24651         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
24652         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
24653         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
24654         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
24655         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
24656
24657 2007-06-27  Bruno Haible  <bruno@clisp.org>
24658
24659         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
24660         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
24661
24662 2007-06-26  Karl Berry  <karl@gnu.org>
24663
24664         * MODULES.html.sh: remove xreadlink-with-size.
24665
24666 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
24667
24668         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
24669         method that I hope also handles the double-include problem noted
24670         by Bruno Haible in
24671         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
24672
24673 2007-06-23  Bruno Haible  <bruno@clisp.org>
24674
24675         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
24676         Don't let the 'mostlyclean' target fail if the last subdirectory could
24677         not be removed.
24678         Reported by Karl Berry.
24679
24680 2007-06-23  Bruno Haible  <bruno@clisp.org>
24681
24682         * gnulib-tool (echo): Add a speedier workaround for ksh.
24683         * tests/test-echo.sh: Likewise.
24684
24685 2007-06-23  Bruno Haible  <bruno@clisp.org>
24686
24687         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
24688         * tests/test-echo.sh: Likewise.
24689
24690 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24691
24692         * gnulib-tool (IFS): Initialize early, so we don't set it to
24693         empty later.
24694         (self_abspathname): Rewrite algorithm to set it, reindent.
24695         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
24696         (func_create_megatestdir): Merge some sed scripts.
24697
24698 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
24699
24700         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
24701         exposed by Sun Studio 11 cc on Solaris 8.
24702
24703 2007-06-22  Bruno Haible  <bruno@clisp.org>
24704
24705         * gnulib-tool (echo): Ensure the echo primitive does not interpret
24706         backslashes.
24707         * tests/test-echo.sh: New file.
24708
24709 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
24710
24711         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
24712         simplify `sed_replace_build_aux' scripts, they are portable but
24713         echoing them with `echo' is not.
24714         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
24715
24716 2007-06-21  Karl Berry  <karl@gnu.org>
24717
24718         * config/srclist.txt: guess we can't handle the licenses via
24719         srclist at the moment.
24720
24721 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
24722
24723         * MODULES.html.sh: Add include_next.
24724         * modules/include_next: New file.
24725
24726 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
24727
24728         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
24729         INCLUDE_NEXT.
24730         (gl_CHECK_NEXT_HEADERS): New macro.
24731         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
24732         the obsolescent gl_ABSOLUTE_HEADER.
24733         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
24734         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
24735         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
24736         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
24737         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
24738         * m4/math_h.m4 (gl_MATH_H): Likewise.
24739         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
24740         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
24741         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
24742         * m4/stdint.m4 (gl_STDINT_H): Likewise.
24743         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
24744         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
24745         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
24746         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
24747         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
24748         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
24749         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
24750         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
24751         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
24752         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
24753         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
24754         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
24755         * m4/inttypes.m4 (gl_INTTYPES_H): Define
24756         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
24757         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
24758         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
24759         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
24760         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
24761         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
24762         * lib/float_.h: Likewise.
24763         * lib/inttypes_.h: Likewise.
24764         * lib/math_.h: Likewise.
24765         * lib/search_.h: Likewise.
24766         * lib/signal_.h: Likewise.
24767         * lib/stdint_.h: Likewise.
24768         * lib/stdio_.h: Likewise.
24769         * lib/stdlib_.h: Likewise.
24770         * lib/string_.h: Likewise.
24771         * lib/sys_stat_.h: Likewise.
24772         * lib/sys_time_.h: Likewise.
24773         * lib/time_.h: Likewise.
24774         * lib/unistd_.h: Likewise.
24775         * lib/wchar_.h: Likewise.
24776         * lib/wctype_.h: Likewise.
24777         * lib/dirent_.h: Likewise.
24778         * lib/iconv_.h: Likewise.
24779         * lib/locale_.h: Likewise.
24780         * lib/netinet_in_.h: Likewise.
24781         * lib/sys_select_.h: Likewise.
24782         * lib/sys_socket_.h: Likewise.
24783         * lib/sysexits_.h: Likewise.
24784         * modules/fcntl (Depends-on): Depend on include_next, not
24785         absolute_header.
24786         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
24787         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
24788         * modules/fchdir: Likewise.
24789         * modules/float: Likewise.
24790         * modules/iconv_open: Likewise.
24791         * modules/inttypes: Likewise.
24792         * modules/locale: Likewise.
24793         * modules/math: Likewise.
24794         * modules/netinet_in: Likewise.
24795         * modules/search: Likewise.
24796         * modules/signal: Likewise.
24797         * modules/stdint: Likewise.
24798         * modules/stdio: Likewise.
24799         * modules/stdlib: Likewise.
24800         * modules/string: Likewise.
24801         * modules/sys_select: Likewise.
24802         * modules/sys_socket: Likewise.
24803         * modules/sys_stat: Likewise.
24804         * modules/sys_time: Likewise.
24805         * modules/sysexits: Likewise.
24806         * modules/time: Likewise.
24807         * modules/unistd: Likewise.
24808         * modules/wchar: Likewise.
24809         * modules/wctype: Likewise.
24810         * modules/sys_stat: Change maintainer to "all".
24811         * modules/unistd: Likewise.
24812
24813 2007-06-20  Karl Berry  <karl@gnu.org>
24814
24815         * config/srclist.txt: track www changes in license files.
24816
24817 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
24818
24819         * build-aux/bootstrap: Remove stray dot.
24820         Make sure build_aux settings are honored when linking
24821         gnulib_extra_files.
24822
24823 2007-06-19  Eric Blake  <ebb9@byu.net>
24824
24825         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
24826         Allow compilation on cygwin.
24827
24828 2007-06-19  Jim Meyering  <jim@meyering.net>
24829
24830         xreadlink-with-size: Remove module.  No longer used.
24831         Ex-callers now use xreadlink or mreadlink-with-size.
24832         * modules/xreadlink-with-size: Remove module.
24833         * lib/xreadlink-with-size.c: Remove file.
24834         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
24835         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
24836         just before the function definition *is* accurate.
24837
24838         Eliminate one way canonicalize_filename_mode could exit.
24839         * lib/canonicalize.c (canonicalize_filename_mode):
24840         Use mreadlink_with_size, not xreadlink_with_size.
24841
24842 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
24843
24844         Detect porting problems to FreeBSD/arm, which has time_t wider than
24845         long int.  Original problem reported for GNU diff by Xin Li in
24846         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
24847         * modules/getdate (Depends-on): Add intprops, verify.
24848         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
24849         is an integer type no wider than long int.
24850
24851 2007-06-18  Jim Meyering  <jim@meyering.net>
24852
24853         New module: mreadlink-with-size.
24854         * MODULES.html.sh: Add mreadlink-with-size.
24855         * modules/mreadlink-with-size: New module
24856         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
24857         not xreadlink-with-size.
24858         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
24859
24860 2007-06-16  Bruno Haible  <bruno@clisp.org>
24861
24862         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
24863         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
24864         Reported by Gary V. Vaughan <gary@gnu.org>.
24865
24866 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
24867
24868         Revamp lchown so that it lives in unistd.h where it belongs.
24869         * lib/lchown.h: Remove.
24870         * lib/dirchownmod.c: Don't include lib/lchown.h.
24871         * lib/fchownat.c: Likewise.
24872         * lib/openat.c: Likewise.
24873         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
24874         does not follow symlinks.
24875         (EOPNOTSUPP): Define if not defined.
24876         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
24877         is defined to 0.
24878         (lchown): New decl.
24879         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
24880         Do not check for lchown decl.
24881         Set REPLACE_LCHOWN.
24882         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
24883         REPLACE_LCHOWN.
24884         * modules/chown: Make it clear it follows symlinks.
24885         * modules/lchown: Make it clear it doesn't follow symlinks.
24886         (Files): Remove lib/lchown.h
24887         (Depends-on): Add unistd.
24888         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
24889         (Include): Include <unistd.h>, not "lchown.h".
24890         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
24891         REPLACE_LCHOWN.
24892
24893 2007-06-15  Jim Meyering  <jim@meyering.net>
24894
24895         Change license (GPL to LGPL) of fsusage and dependents.
24896         * modules/fsusage (License): Change to LGPL.
24897         * modules/full-read (License): Likewise.
24898         * modules/full-write (License): Likewise.
24899         * modules/safe-read (License): Likewise.
24900         * modules/safe-write (License): Likewise.
24901
24902 2007-06-14  Ben Pfaff  <blp@gnu.org>
24903
24904         Missing part of allocsa -> malloca transition.
24905         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
24906         gl_MALLOCA.
24907
24908 2007-06-12  Bruno Haible  <bruno@clisp.org>
24909
24910         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
24911         to ia64, x86_64, i386.
24912         Reported by Eric Blake.
24913
24914 2007-06-12  Bruno Haible  <bruno@clisp.org>
24915
24916         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
24917         cross-compiling to x86_64.
24918
24919 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
24920
24921         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
24922         glitch reported by Ralf Wildenhues in
24923         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
24924
24925         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
24926         Vin Shelton.
24927
24928 2007-06-11  Bruno Haible  <bruno@clisp.org>
24929
24930         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
24931         replacement string.
24932         Reported by Eric Blake.
24933
24934 2007-06-10  Bruno Haible  <bruno@clisp.org>
24935
24936         Prepare vasnprintf code for use with Unicode strings.
24937         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
24938         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
24939         TYPE_U32_STRING.
24940         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
24941         a_u32_string variants.
24942         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
24943         * lib/printf-args.c: Don't include config.h and the specification
24944         header if PRINTF_FETCHARGS is already defined.
24945         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
24946         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
24947         TYPE_U16_STRING, TYPE_U32_STRING.
24948         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
24949         u16_directive, u16_directives, u32_directive, u32_directives): New
24950         types.
24951         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
24952         New declarations.
24953         * lib/printf-parse.c: Don't include config.h and the specification
24954         header if PRINTF_PARSE is already defined. Eliminate the set of
24955         parameters for WIDE_CHAR_VERSION; the user of this file must provide
24956         them now. Include c-ctype.h.
24957         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
24958         directive and CHAR_T_ONLY_ASCII.
24959         * lib/vasnprintf.c: Don't include config.h and the specification header
24960         if VASNPRINTF is already defined.
24961         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
24962         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
24963         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
24964         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
24965         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
24966         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
24967         code accordingly.
24968         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
24969         pad_ourselves also in this case, with the 'c' and 's' directives, and
24970         with a different notion of "width".
24971         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
24972
24973 2007-06-10  Bruno Haible  <bruno@clisp.org>
24974
24975         * modules/unistr/u32-mbsnlen: New file.
24976         * lib/unistr/u32-mbsnlen.c: New file.
24977
24978         * modules/unistr/u16-mbsnlen: New file.
24979         * lib/unistr/u16-mbsnlen.c: New file.
24980
24981         * modules/unistr/u8-mbsnlen: New file.
24982         * lib/unistr/u8-mbsnlen.c: New file.
24983
24984         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
24985         declarations.
24986
24987 2007-06-10  Bruno Haible  <bruno@clisp.org>
24988
24989         * lib/string_.h (mbsnlen): New declaration.
24990         * lib/mbsnlen.c: New file.
24991         * m4/mbsnlen.m4: New file.
24992         * modules/mbsnlen: New file.
24993         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
24994         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
24995         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
24996
24997 2007-06-10  Bruno Haible  <bruno@clisp.org>
24998
24999         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
25000
25001 2007-06-10  Bruno Haible  <bruno@clisp.org>
25002
25003         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
25004         * lib/mbuiter.h: Likewise.
25005
25006 2007-06-10  Bruno Haible  <bruno@clisp.org>
25007
25008         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
25009         declaration.
25010
25011 2007-06-10  Karl Berry  <karl@gnu.org>
25012
25013         * config/srclist.txt: remove gettext entries, Bruno prefers
25014         to update individually.
25015
25016 2007-06-10  Bruno Haible  <bruno@clisp.org>
25017
25018         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
25019         'maxlen'. Ensure only length + width bytes are allocated, not
25020         length + 1 + width.
25021
25022 2007-06-09  Bruno Haible  <bruno@clisp.org>
25023
25024         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
25025         (CHAR_T): Remove macro.
25026         (VASNPRINTF): Update.
25027
25028 2007-06-09  Bruno Haible  <bruno@clisp.org>
25029
25030         * MODULES.html.sh (Unicode string functions): Add the new modules.
25031
25032         * modules/uniconv/u32-conv-to-enc: New file.
25033         * lib/uniconv/u32-conv-to-enc.c: New file.
25034         * modules/uniconv/u32-conv-to-enc-tests: New file.
25035         * tests/uniconv/test-u32-conv-to-enc.c: New file.
25036
25037         * modules/uniconv/u16-conv-to-enc: New file.
25038         * lib/uniconv/u16-conv-to-enc.c: New file.
25039         * lib/uniconv/u-conv-to-enc.h: New file.
25040         * modules/uniconv/u16-conv-to-enc-tests: New file.
25041         * tests/uniconv/test-u16-conv-to-enc.c: New file.
25042
25043         * modules/uniconv/u8-conv-to-enc: New file.
25044         * lib/uniconv/u8-conv-to-enc.c: New file.
25045         * modules/uniconv/u8-conv-to-enc-tests: New file.
25046         * tests/uniconv/test-u8-conv-to-enc.c: New file.
25047
25048         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
25049         u32_conv_to_encoding): New declarations.
25050
25051 2007-06-09  Bruno Haible  <bruno@clisp.org>
25052
25053         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
25054
25055 2007-06-09  Bruno Haible  <bruno@clisp.org>
25056
25057         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
25058         * modules/malloca: Renamed from modules/allocsa, updated.
25059         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
25060         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
25061         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
25062         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
25063         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
25064         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
25065         * modules/xmalloca: Renamed from modules/xallocsa, updated.
25066         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
25067         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
25068         * modules/c-strcasestr (Depends-on): Update.
25069         * lib/c-strcasestr.c: Update.
25070         * modules/c-strstr (Depends-on): Update.
25071         * lib/c-strstr.c: Update.
25072         * modules/canonicalize-lgpl (Depends-on): Update.
25073         * lib/canonicalize-lgpl.c: Update.
25074         * modules/clean-temp (Depends-on): Update.
25075         * lib/clean-temp.c: Update.
25076         * modules/csharpcomp (Depends-on): Update.
25077         * lib/csharpcomp.c: Update.
25078         * modules/csharpexec (Depends-on): Update.
25079         * lib/csharpexec.c: Update.
25080         * modules/javacomp (Depends-on): Update.
25081         * lib/javacomp.c: Update.
25082         * modules/javaexec (Depends-on): Update.
25083         * lib/javaexec.c: Update.
25084         * modules/mbscasestr (Depends-on): Update.
25085         * lib/mbscasestr.c: Update.
25086         * modules/mbsstr (Depends-on): Update.
25087         * lib/mbsstr.c: Update.
25088         * modules/setenv (Depends-on): Update.
25089         * lib/setenv.c: Update.
25090         * modules/strcasestr (Depends-on): Update.
25091         * lib/strcasestr.c: Update.
25092         * modules/striconveha (Depends-on): Update.
25093         * lib/striconveha.c: Update.
25094         * modules/relocatable-prog-wrapper (Files): Update.
25095         * lib/relocwrapper.c: Update.
25096         * build-aux/install-reloc: Update.
25097         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
25098
25099 2007-06-08  Bruno Haible  <bruno@clisp.org>
25100
25101         Port to uClibc.
25102         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
25103         * lib/fpurge.c (fpurge): Likewise.
25104         * lib/freading.c (freading): Likewise.
25105         * lib/fseeko.c (rpl_fseeko): Likewise.
25106         * lib/fseterr.c (fseterr): Likewise.
25107         * lib/fwriting.c (fwriting): Likewise.
25108         * tests/test-fflush.c (main): Avoid a failure on uClibc.
25109
25110 2007-06-08  Bruno Haible  <bruno@clisp.org>
25111
25112         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
25113         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
25114         * modules/gettext (Files): Add m4/intlmacosx.m4.
25115
25116 2007-06-07  Bruno Haible  <bruno@clisp.org>
25117
25118         * modules/localename-tests: New file.
25119         * tests/test-localename.c: New file.
25120
25121         New module 'localename'.
25122         * lib/localename.h: New file.
25123         * lib/localename.c: New file, from GNU gettext.
25124         * m4/localename.m4: New file.
25125         * modules/localename: New file.
25126
25127 2007-06-07  Bruno Haible  <bruno@clisp.org>
25128
25129         Work around the lack of <wchar.h> on some builds of uClibc.
25130         * doc/headers/wchar.texi: Update.
25131         * lib/wchar_.h: Include <wchar.h> only if it exists.
25132         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
25133         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
25134         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
25135         doesn't exist.
25136         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
25137         * modules/mbfile (Depends-on): Add wchar.
25138         * modules/mbiter (Depends-on): Likewise.
25139         * modules/mbuiter (Depends-on): Likewise.
25140         Reported by Simon Josefsson.
25141
25142 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
25143
25144         Work around problem reported by Steven M. Schweda in
25145         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
25146         Tru64 5.1B with the Compaq compiler environment installed declares
25147         an 'isblank' function but does not define it in the C library.
25148         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
25149         * lib/regex_internal.h (isblank): Likewise.
25150         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
25151         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
25152
25153 2007-06-05  Bruno Haible  <bruno@clisp.org>
25154
25155         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
25156         ia64.
25157         * modules/printf-safe: New file.
25158         * modules/fprintf-posix (Depends-on): Add printf-safe.
25159         * modules/printf-posix (Depends-on): Likewise.
25160         * modules/snprintf-posix (Depends-on): Likewise.
25161         * modules/sprintf-posix (Depends-on): Likewise.
25162         * modules/vasnprintf-posix (Depends-on): Likewise.
25163         * modules/vasprintf-posix (Depends-on): Likewise.
25164         * modules/vfprintf-posix (Depends-on): Likewise.
25165         * modules/vprintf-posix (Depends-on): Likewise.
25166         * modules/vsnprintf-posix (Depends-on): Likewise.
25167         * modules/vsprintf-posix (Depends-on): Likewise.
25168         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
25169         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
25170         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
25171         "no" on i386, x86_64, ia64.
25172         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
25173         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
25174         on i386, x86_64, ia64.
25175         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
25176         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
25177         on i386, x86_64, ia64.
25178         * tests/test-vasnprintf-posix.c: Include float.h.
25179         (LDBL80_WORDS): New macro.
25180         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
25181         on i386, x86_64, ia64.
25182         * tests/test-vasprintf-posix.c: Include float.h.
25183         (LDBL80_WORDS): New macro.
25184         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
25185         on i386, x86_64, ia64.
25186         * tests/test-snprintf-posix.c: Include float.h.
25187         * tests/test-sprintf-posix.c: Likewise.
25188         * tests/test-vsnprintf-posix.c: Likewise.
25189         * tests/test-vsprintf-posix.c: Likewise.
25190
25191 2007-06-05  Bruno Haible  <bruno@clisp.org>
25192
25193         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
25194         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
25195         non-IEEE numbers on i386, x86_64, ia64.
25196         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
25197         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
25198         * tests/test-isnanl.h: Include float.h.
25199         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
25200
25201 2007-06-05  Bruno Haible  <bruno@clisp.org>
25202
25203         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
25204         also the %a / %A. Handle the %a / %A code before this extra handling.
25205
25206 2007-06-05  Bruno Haible  <bruno@clisp.org>
25207
25208         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
25209         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
25210
25211 2007-06-05  Bruno Haible  <bruno@clisp.org>
25212
25213         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
25214         typo in variable name.
25215
25216 2007-06-05  Eric Blake  <ebb9@byu.net>
25217
25218         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
25219         Reported by Simon Josefsson.
25220
25221 2007-06-04  Bruno Haible  <bruno@clisp.org>
25222
25223         Avoid test failures on some PowerPC platforms.
25224         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
25225         Define differently for PowerPC.
25226         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
25227         Reported by Gary V. Vaughan <gary@gnu.org>.
25228
25229 2007-06-02  Bruno Haible  <bruno@clisp.org>
25230
25231         Fix test-stdint failure on FreeBSD/ia64.
25232         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
25233         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
25234         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
25235         * doc/headers/stdint.texi: Update.
25236
25237 2007-06-01  Bruno Haible  <bruno@clisp.org>
25238
25239         * tests/test-binary-io.c (main): Pass a third argument to open().
25240         Reported by Gary V. Vaughan <gary@gnu.org>.
25241
25242 2007-06-01  Bruno Haible  <bruno@clisp.org>
25243
25244         * doc/functions/frexpl.texi: Update for mingw.
25245
25246 2007-06-01  Bruno Haible  <bruno@clisp.org>
25247
25248         * tests/test-lseek.c (main): Disable test of errno for invalid third
25249         argument.
25250         * doc/functions/lseek.texi: Update.
25251         Reported by Gary V. Vaughan <gary@gnu.org>.
25252
25253 2007-05-28  Bruno Haible  <bruno@clisp.org>
25254
25255         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
25256
25257 2007-05-31  Eric Blake  <ebb9@byu.net>
25258
25259         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
25260         cross compiling.
25261
25262 2007-05-30  Eric Blake  <ebb9@byu.net>
25263         and Bruno Haible  <bruno@clisp.org>
25264
25265         Work around mingw test failures exposed by m4-1.4.9b.
25266         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
25267         * tests/test-unistd.c: Disable uid_t and git_t tests for the
25268         moment.
25269
25270 2007-05-30  Bruno Haible  <bruno@clisp.org>
25271
25272         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
25273         assuming that they are closed. Needed on HP-UX 11.
25274
25275 2007-05-29  Bruno Haible  <bruno@clisp.org>
25276
25277         Fix a problem with #include_next.
25278         * lib/dirent_.h: Split the double-inclusion guard.
25279         * lib/fcntl_.h: Likewise.
25280         * lib/float_.h: Likewise.
25281         * lib/iconv_.h: Likewise.
25282         * lib/inttypes_.h: Likewise.
25283         * lib/locale_.h: Likewise.
25284         * lib/math_.h: Likewise.
25285         * lib/netinet_in_.h: Likewise.
25286         * lib/search_.h: Likewise.
25287         * lib/signal_.h: Likewise.
25288         * lib/stdint_.h: Likewise.
25289         * lib/stdio_.h: Likewise.
25290         * lib/stdlib_.h: Likewise.
25291         * lib/string_.h: Likewise.
25292         * lib/sys_select_.h: Likewise.
25293         * lib/sys_socket_.h: Likewise.
25294         * lib/sys_stat_.h: Likewise.
25295         * lib/sys_time_.h: Likewise.
25296         * lib/sysexits_.h: Likewise.
25297         * lib/time_.h: Likewise.
25298         * lib/unistd_.h: Likewise.
25299         * lib/wchar_.h: Likewise.
25300         * lib/wctype_.h: Likewise.
25301
25302 2007-05-29  Bruno Haible  <bruno@clisp.org>
25303
25304         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
25305         for the moment.
25306
25307 2007-05-29  Bruno Haible  <bruno@clisp.org>
25308
25309         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
25310         invocation.
25311         Reported by Eric Blake.
25312
25313 2007-05-29  Bruno Haible  <bruno@clisp.org>
25314
25315         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
25316         compiling case.
25317
25318 2007-05-29  Eric Blake  <ebb9@byu.net>
25319             Bruno Haible  <bruno@clisp.org>
25320
25321         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
25322         cross compiles.
25323
25324 2007-05-28  Eric Blake  <ebb9@byu.net>
25325
25326         * modules/closein-tests (test_closein_LDADD): Support test on
25327         cygwin with libtool.
25328
25329 2007-05-28  Bruno Haible  <bruno@clisp.org>
25330
25331         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
25332         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
25333         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
25334         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
25335         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
25336         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
25337         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
25338         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
25339         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
25340
25341 2007-05-28  Eric Blake  <ebb9@byu.net>
25342
25343         Unconditionally include <config.h> in unit tests.
25344         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
25345         * tests/test-allocsa.c, tests/test-arcfour.c,
25346         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
25347         tests/test-array_list.c, tests/test-array_oset.c,
25348         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
25349         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
25350         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
25351         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
25352         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
25353         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
25354         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
25355         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
25356         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
25357         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
25358         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
25359         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
25360         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
25361         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
25362         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
25363         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
25364         test-md5.c, test-memmem.c, test-printf-posix.c,
25365         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
25366         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
25367         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
25368         test-strcasestr.c, test-striconv.c, test-striconveh.c,
25369         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
25370         test-vasnprintf-posix2.c, test-vasnprintf.c,
25371         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
25372         test-vfprintf-posix.c, test-vprintf-posix.c,
25373         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
25374         test-xvasprintf.c: Likewise.
25375
25376 2007-05-28  Bruno Haible  <bruno@clisp.org>
25377
25378         * gnulib-tool (func_import): Remember the --with-tests command-line
25379         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
25380         Reported by Eric Blake.
25381
25382 2007-05-28  Bruno Haible  <bruno@clisp.org>
25383
25384         * modules/ftell-tests: New file.
25385         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
25386         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
25387
25388         * lib/ftell.c: New file.
25389         * modules/ftell: New file.
25390         * m4/ftell.m4: New file.
25391         * doc/functions/ftell.texi: Update.
25392         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
25393         REPLACE_FTELL.
25394         * lib/stdio_.h (rpl_ftell): New declaration.
25395         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
25396         REPLACE_FTELL.
25397
25398 2007-05-28  Eric Blake  <ebb9@byu.net>
25399
25400         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
25401
25402 2007-05-28  Bruno Haible  <bruno@clisp.org>
25403
25404         * modules/fseek-tests: New file.
25405         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
25406         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
25407
25408         * lib/fseek.c: New file.
25409         * modules/fseek: New file.
25410         * m4/fseek.m4: New file.
25411         * doc/functions/fseek.texi: Update.
25412         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
25413         REPLACE_FSEEK.
25414         * lib/stdio_.h (rpl_fseek): New declaration.
25415         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
25416         REPLACE_FSEEK.
25417
25418 2007-05-28  Bruno Haible  <bruno@clisp.org>
25419
25420         * lib/stdio_.h (fflush): More comments.
25421
25422 2007-05-28  Bruno Haible  <bruno@clisp.org>
25423
25424         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
25425         runtime test.
25426
25427 2007-05-28  Eric Blake  <ebb9@byu.net>
25428
25429         Improve lseek module.
25430         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
25431         * lib/unistd_.h (lseek): Scale back link warning message.
25432         * tests/test-lseek.c: Beef up test.
25433         * tests/test-lseek.sh: Exercise more facets of lseek.
25434         Reported by Bruno Haible.
25435
25436 2007-05-28  Bruno Haible  <bruno@clisp.org>
25437
25438         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
25439         to define.
25440
25441 2007-05-27  Bruno Haible  <bruno@clisp.org>
25442
25443         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
25444
25445 2007-05-27  Bruno Haible  <bruno@clisp.org>
25446
25447         * modules/openmp: New file.
25448         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
25449         Noah Misch.
25450
25451 2007-05-26  Bruno Haible  <bruno@clisp.org>
25452
25453         * modules/chdir-long (Depends-on): Add fchdir.
25454         * modules/chdir-safer (Depends-on): Likewise.
25455         * modules/fts (Depends-on): Likewise.
25456         * modules/fts-lgpl (Depends-on): Likewise.
25457         * modules/openat (Depends-on): Likewise.
25458         * modules/savewd (Depends-on): Likewise.
25459
25460 2007-05-24  Eric Blake  <ebb9@byu.net>
25461
25462         Fix lseek on mingw.
25463         * modules/lseek: New module.
25464         * m4/lseek.m4: New file.
25465         * lib/lseek.c: New file.
25466         * modules/lseek-tests: New file.
25467         * tests/test-lseek.c: New file.
25468         * tests/test-lseek.sh: New file.
25469         * MODULES.html.sh: Document lseek module.
25470         * modules/fflush (Depends-on): Add lseek, fseeko.
25471         * modules/fseeko (Depends-on): Likewise.
25472         * modules/ftello (Depends-on): Likewise.
25473         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
25474         broken.
25475         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
25476         broken.
25477         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
25478         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
25479         * lib/ftello.c (rpl_ftello): Likewise.
25480         * tests/test-fseeko.c (main): Test this.
25481         * tests/test-fseeko.sh: Likewise.
25482         * tests/test-ftello.c (main): Likewise.
25483         * tests/test-ftello.sh: Likewise.
25484         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
25485         implies replacing fseek.
25486         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
25487         HAVE_FTELLO.
25488         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
25489         * modules/unistd (Makefile.am): Likewise.
25490         * lib/unistd_.h (lseek): Declare a replacement.
25491         * doc/functions/lseek.texi (lseek): Document this fix.
25492         * doc/functions/fseek.texi (fseek): Likewise.
25493         * doc/functions/ftell.texi (ftell): Likewise.
25494
25495 2007-05-24  Bruno Haible  <bruno@clisp.org>
25496
25497         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
25498         in the printed representation of a NaN.
25499         * tests/test-vasprintf-posix.c (test_function): Likewise.
25500         * tests/test-snprintf-posix.h (test_function): Likewise.
25501         * tests/test-sprintf-posix.h (test_function): Likewise.
25502         Reported by Eric Blake.
25503
25504 2007-05-23  Eric Blake  <ebb9@byu.net>
25505
25506         Fix fseeko/ftello on cygwin 1.5.24.
25507         * doc/functions/fseeko.texi (fseeko): Document the fix.
25508         * doc/functions/ftello.texi (ftello): Document the fix.
25509         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
25510         * doc/functions/stdout.text (stdout): New file.
25511         * doc/functions/stderr.text (stderr): New file.
25512         * doc/gnulib.texi (Function Substitutes): Use new files.
25513         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
25514         prior to 1.7.0.
25515         * tests/test-ftello.c (main): Likewise for ftello.
25516         * tests/test-fseeko.sh: New file.
25517         * tests/test-ftello.sh: New file.
25518         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
25519         with seekable stdin.
25520         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
25521         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
25522         (gl_REPLACE_FSEEKO): New macro.
25523         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
25524         * modules/fseeko (Files): Distribute fseeko.c.
25525         * modules/ftello (Files): Distribute ftello.c.
25526         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
25527         mode.
25528         * lib/ftello.c (rpl_ftello): New file.
25529         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
25530         fseeko, ftello.
25531         (gl_STDIN_LARGE_OFFSET): New macro.
25532         * modules/stdio (Makefile.am): Perform the replacement.
25533         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
25534
25535 2007-05-23  Bruno Haible  <bruno@clisp.org>
25536
25537         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
25538         GNULIB_POSIXCHECK is defined.
25539
25540 2007-05-21  Bruno Haible  <bruno@clisp.org>
25541
25542         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
25543         Check also the output for NaN arguments. When cross-compiling, guess
25544         no on IRIX.
25545         * lib/vasnprintf.c: Update comments.
25546         * tests/test-vasnprintf-posix.c (strisnan): New function.
25547         (test_function): Use it.
25548         * tests/test-vasprintf-posix.c (strisnan): New function.
25549         (test_function): Use it.
25550         * tests/test-snprintf-posix.h (strisnan): New function.
25551         (test_function): Use it.
25552         * tests/test-sprintf-posix.h (strisnan): New function.
25553         (test_function): Use it.
25554         Reported by Eric Blake.
25555
25556 2007-05-20  Bruno Haible  <bruno@clisp.org>
25557
25558         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
25559         numbers that fails on BeOS.
25560         * doc/functions/frexpl.texi: Update.
25561
25562 2007-05-20  Jim Meyering  <jim@meyering.net>
25563
25564         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
25565         forced upon us by glibc-2.6.
25566
25567 2007-05-20  Bruno Haible  <bruno@clisp.org>
25568
25569         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
25570         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
25571         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
25572         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
25573         NEED_PRINTF_INFINITE.
25574         (is_infinitel): New function.
25575         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
25576         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
25577         gl_PREREQ_VASNPRINTF_INFINITE.
25578         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
25579         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
25580         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
25581         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
25582         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
25583         gl_PREREQ_VASNPRINTF_INFINITE.
25584         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
25585         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
25586         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
25587         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
25588         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
25589         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
25590         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
25591         * doc/functions/fprintf.texi: Update.
25592         * doc/functions/printf.texi: Update.
25593         * doc/functions/snprintf.texi: Update.
25594         * doc/functions/sprintf.texi: Update.
25595         * doc/functions/vfprintf.texi: Update.
25596         * doc/functions/vprintf.texi: Update.
25597         * doc/functions/vsnprintf.texi: Update.
25598         * doc/functions/vsprintf.texi: Update.
25599
25600 2007-05-20  Bruno Haible  <bruno@clisp.org>
25601
25602         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
25603         was not found in libc.
25604         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
25605
25606 2007-05-20  Bruno Haible  <bruno@clisp.org>
25607
25608         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
25609         printed as "-nan" instead of "nan".
25610         * tests/test-vasprintf-posix.c (test_function): Likewise.
25611         * tests/test-snprintf-posix.h (test_function): Likewise.
25612         * tests/test-sprintf-posix.h (test_function): Likewise.
25613         Needed for HP-UX 11.
25614
25615 2007-05-20  Jim Meyering  <jim@meyering.net>
25616
25617         Fix buggy test for the fchownat-deref bug.
25618         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
25619         symlink required for the run-test.  Without it, this test would
25620         always declare that fchownat doesn't work, and client code would
25621         unnecessarily use the replacement function with fixed libc.
25622         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
25623         Reported by Greg Schafer.
25624
25625 2007-05-19  Bruno Haible  <bruno@clisp.org>
25626
25627         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
25628         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
25629         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
25630         Needed for IRIX 6.5 and Solaris 2.5.1.
25631
25632 2007-05-19  Bruno Haible  <bruno@clisp.org>
25633
25634         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
25635         (test_function): Skip tests involving -0.0 on platforms where
25636         -0.0 = 0.0.
25637         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
25638         (test_function): Skip tests involving -0.0 on platforms where
25639         -0.0 = 0.0.
25640         * tests/test-snprintf-posix.h (have_minus_zero): New function.
25641         (test_function): Skip tests involving -0.0 on platforms where
25642         -0.0 = 0.0.
25643         * tests/test-sprintf-posix.h (have_minus_zero): New function.
25644         (test_function): Skip tests involving -0.0 on platforms where
25645         -0.0 = 0.0.
25646         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
25647         tests.
25648         * tests/test-printf-posix.h (test_function): Likewise.
25649         * tests/test-printf-posix.output: Remove all -0.0 related results.
25650         Needed for IRIX 6.5.
25651
25652 2007-05-19  Bruno Haible  <bruno@clisp.org>
25653
25654         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
25655         printed as "nan0x7fffffff" instead of "nan".
25656         * tests/test-vasprintf-posix.c (test_function): Likewise.
25657         * tests/test-snprintf-posix.h (test_function): Likewise.
25658         * tests/test-sprintf-posix.h (test_function): Likewise.
25659         * tests/test-fprintf-posix.h (NaN): Remove macro.
25660         (test_function): Remove all NaN related tests.
25661         * tests/test-printf-posix.h (NaN): Remove macro.
25662         (test_function): Remove all NaN related tests.
25663         * tests/test-printf-posix.output: Remove all NaN related results.
25664         Needed for IRIX 6.5.
25665
25666 2007-05-19  Bruno Haible  <bruno@clisp.org>
25667
25668         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
25669         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
25670
25671 2007-05-19  Bruno Haible  <bruno@clisp.org>
25672
25673         * lib/float_.h: New file.
25674         * m4/float_h.m4: New file.
25675         * modules/float: New file.
25676         * modules/isnanl (Dependencies): Add float.
25677         * modules/isnanl-nolibm (Dependencies): Likewise.
25678         * modules/mathl (Dependencies): Likewise.
25679         * modules/printf-frexpl (Dependencies): Likewise.
25680         * modules/signbit (Dependencies): Likewise.
25681         * modules/vasnprintf (Dependencies): Likewise.
25682         * doc/headers/float.texi: Update.
25683
25684 2007-05-19  Jim Meyering  <jim@meyering.net>
25685
25686         * lib/utimens.c (gl_futimens): Rename from futimens,
25687         now that glibc-2.6 declares futimens.
25688         * lib/utimens.h: Likewise.
25689
25690 2007-05-19  Bruno Haible  <bruno@clisp.org>
25691
25692         Avoid test failures on mingw.
25693         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
25694         * tests/test-printf-posix.sh: Likewise.
25695         * tests/test-vfprintf-posix.sh: Likewise.
25696         * tests/test-vprintf-posix.sh: Likewise.
25697
25698 2007-05-19  Bruno Haible  <bruno@clisp.org>
25699
25700         Fix *printf result for NaN, Inf, -0.0 on mingw.
25701         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
25702         * lib/vasnprintf.c: Include math.h and isnan.h.
25703         (is_infinite_or_zero): New function.
25704         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
25705         values in the %f, %F, %e, %E, %g, %G directives.
25706         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
25707         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
25708         gl_PRINTF_INFINITE and test its result. Invoke
25709         gl_PREREQ_VASNPRINTF_INFINITE.
25710         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
25711         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
25712         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
25713         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
25714         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
25715         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
25716         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
25717         * doc/functions/fprintf.texi: Update.
25718         * doc/functions/printf.texi: Update.
25719         * doc/functions/snprintf.texi: Update.
25720         * doc/functions/sprintf.texi: Update.
25721         * doc/functions/vfprintf.texi: Update.
25722         * doc/functions/vprintf.texi: Update.
25723         * doc/functions/vsnprintf.texi: Update.
25724         * doc/functions/vsprintf.texi: Update.
25725
25726 2007-05-19  Bruno Haible  <bruno@clisp.org>
25727
25728         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
25729         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
25730         Instead of multiplying with 10^k, set extra_zeroes to k.
25731         (scale10_round_long_double): Remove function.
25732
25733 2007-05-18  Bruno Haible  <bruno@clisp.org>
25734
25735         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
25736         introduced on 2007-05-06.
25737
25738 2007-05-18  Bruno Haible  <bruno@clisp.org>
25739
25740         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
25741         %g directives.
25742         * tests/test-vasprintf-posix.c (test_function): Likewise.
25743         * tests/test-snprintf-posix.h (test_function): Likewise.
25744         * tests/test-sprintf-posix.h (test_function): Likewise.
25745
25746 2007-05-18  Bruno Haible  <bruno@clisp.org>
25747
25748         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
25749         (strmatch): New function.
25750         (test_function): Test the %f directive on numbers of various exponents.
25751         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
25752         (strmatch): New function.
25753         (test_function): Test the %f directive on numbers of various exponents.
25754         * tests/test-snprintf-posix.h (strmatch): New function.
25755         (test_function): Test the %f directive on numbers of various exponents.
25756         * tests/test-sprintf-posix.h (strmatch): New function.
25757         (test_function): Test the %f directive on numbers of various exponents.
25758         * tests/test-snprintf-posix.c (SIZEOF): New macro.
25759         * tests/test-sprintf-posix.c (SIZEOF): New macro.
25760         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
25761         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
25762
25763 2007-05-18  Bruno Haible  <bruno@clisp.org>
25764
25765         Add support for 'long double' number output.
25766         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
25767         * lib/vasnprintf.c: Include math.h and float+.h.
25768         (mp_limb_t): New type.
25769         (GMP_LIMB_BITS): New macro.
25770         (mp_twolimb_t): New type.
25771         (GMP_TWOLIMB_BITS): New macro.
25772         (mpn_t): New type.
25773         (multiply, divide, convert_to_decimal, decode_long_double,
25774         scale10_round_long_double, scale10_round_decimal_long_double,
25775         floorlog10l): New functions.
25776         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
25777         for the %f, %F, %e, %E, %g, %G directives.
25778         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
25779         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
25780         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
25781         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
25782         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
25783         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
25784         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
25785         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
25786         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
25787         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
25788         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
25789         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
25790         * modules/snprintf-posix (Depends-on): Likewise.
25791         * modules/sprintf-posix (Depends-on): Likewise.
25792         * modules/vasnprintf-posix (Depends-on): Likewise.
25793         * modules/vasprintf-posix (Depends-on): Likewise.
25794         * modules/vfprintf-posix (Depends-on): Likewise.
25795         * modules/vsnprintf-posix (Depends-on): Likewise.
25796         * modules/vsprintf-posix (Depends-on): Likewise.
25797         * modules/vasnprintf (Files): Add lib/float+.h.
25798         * doc/functions/fprintf.texi: Update.
25799         * doc/functions/printf.texi: Update.
25800         * doc/functions/snprintf.texi: Update.
25801         * doc/functions/sprintf.texi: Update.
25802         * doc/functions/vfprintf.texi: Update.
25803         * doc/functions/vprintf.texi: Update.
25804         * doc/functions/vsnprintf.texi: Update.
25805         * doc/functions/vsprintf.texi: Update.
25806
25807 2007-05-18  Bruno Haible  <bruno@clisp.org>
25808
25809         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
25810
25811 2007-05-18  Bruno Haible  <bruno@clisp.org>
25812
25813         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
25814         for printing 64-bit integers. Needed for mingw.
25815
25816 2007-05-18  Bruno Haible  <bruno@clisp.org>
25817
25818         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
25819         gl_FUNC_FREXPL_WORKS.
25820         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
25821
25822 2007-05-18  Bruno Haible  <bruno@clisp.org>
25823
25824         * modules/frexpl-nolibm-tests: New file.
25825
25826         * modules/frexpl-nolibm: New file.
25827         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
25828
25829 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
25830
25831         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
25832         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
25833         GCC 4.2, which otherwise issues a lot of warnings.
25834         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
25835         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
25836         Likewise.
25837         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
25838         * modules/iconv_open (iconv.h): Likewise.
25839         * modules/locale (locale.h): Likewise.
25840         * modules/netinet_in (netinet/in.h): Likewise.
25841         * modules/sys_select (sys_select.h): Likewise.
25842         * modules/sys_socket (sys/socket.h): Likewise.
25843         * modules/sys_stat (sys/stat.h): Likewise.
25844         * modules/sysexits (sysexits.h): Likewise.
25845         * modules/unistd (unistd.h): Likewise.
25846
25847 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
25848
25849         * modules/closein-tests (Makefile.am): Distribute
25850         `test-closein.sh'.
25851
25852 2007-05-17  Bruno Haible  <bruno@clisp.org>
25853
25854         * tests/test-printf-posix.output: Renamed from
25855         tests/test-fprintf-posix.out.
25856         * modules/fprintf-posix-tests: Update.
25857         * modules/printf-posix-tests: Update.
25858         * modules/vfprintf-posix-tests: Update.
25859         * modules/vprintf-posix-tests: Update.
25860         * tests/test-fprintf-posix.sh: Update.
25861         * tests/test-printf-posix.sh: Update.
25862         * tests/test-vfprintf-posix.sh: Update.
25863         * tests/test-vprintf-posix.sh: Update.
25864         Reported by Ralf Wildenhues.
25865
25866 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
25867
25868         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
25869         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
25870         GCC 4.2, which otherwise issues a lot of warnings.
25871         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
25872         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
25873         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
25874         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
25875         it should no longer be needed.
25876         * lib/string_.h: Likewise.
25877         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
25878         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
25879         * modules/inttypes (inttypes.h): Likewise.
25880         * modules/math (math.h): Likewise.
25881         * modules/search (search.h): Likewise.
25882         * modules/signal (signal.h): Likewise.
25883         * modules/stdint (stdint.h): Likewise.
25884         * modules/stdio (stdio.h): Likewise.
25885         * modules/stdlib (stdlib.h): Likewise.
25886         * modules/string (string.h): Likewise.
25887         * modules/sys_time (sys/time.h): Likewise.
25888         * modules/time (time.h): Likewise.
25889         * modules/wchar (wchar.h): Likewise.
25890         * modules/wctype (wtype.h): Likewise.
25891
25892 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
25893
25894         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
25895
25896 2007-05-13  Bruno Haible  <bruno@clisp.org>
25897
25898         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
25899         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
25900         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
25901         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
25902         (gl_PREREQ_STRTOK_R): Don't require it here.
25903
25904 2007-05-13  Bruno Haible  <bruno@clisp.org>
25905
25906         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
25907         when used in C++ mode.
25908
25909 2007-05-12  Bruno Haible  <bruno@clisp.org>
25910
25911         * lib/linebuffer.h: Tweak doc.
25912         * lib/linebuffer.c: Likewise.
25913
25914 2007-05-12  James Youngman  <jay@gnu.org>
25915
25916         * lib/linebuffer.c (readlinebuffer_delim): New function,
25917         like readlinebuffer, but use a caller-specified delimiter.
25918         (readlinebuffer): Just call readlinebuffer_delim with '\n'
25919         as the delimiter.
25920         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
25921
25922 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
25923
25924         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
25925         * modules/openat (Files): Remove openat-die.c.
25926         (Depends-on): Add openat-die.
25927         * modules/openat-die: New module.
25928
25929 2007-05-06  Bruno Haible  <bruno@clisp.org>
25930
25931         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
25932         Update with info about Cygwin.
25933         * doc/functions/fprintf.texi: Update.
25934         * doc/functions/printf.texi: Update.
25935         * doc/functions/snprintf.texi: Update.
25936         * doc/functions/sprintf.texi: Update.
25937         * doc/functions/vfprintf.texi: Update.
25938         * doc/functions/vprintf.texi: Update.
25939         * doc/functions/vsnprintf.texi: Update.
25940         * doc/functions/vsprintf.texi: Update.
25941         Reported by Eric Blake.
25942
25943 2007-05-06  Bruno Haible  <bruno@clisp.org>
25944
25945         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
25946         padding ourselves for the floating-point directives.
25947         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
25948         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
25949         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
25950         gl_PRINTF_FLAG_ZERO and test its result. Invoke
25951         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
25952         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
25953         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
25954         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
25955         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
25956         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
25957         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
25958         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
25959         * tests/test-snprintf-posix.h (test_function): Also check the width
25960         and some flags in the %f directive.
25961         * tests/test-sprintf-posix.h (test_function): Likewise.
25962         * tests/test-vasnprintf-posix.c (test_function): Likewise.
25963         * tests/test-vasprintf-posix.c (test_function): Likewise.
25964         * doc/functions/fprintf.texi: Update.
25965         * doc/functions/printf.texi: Update.
25966         * doc/functions/snprintf.texi: Update.
25967         * doc/functions/sprintf.texi: Update.
25968         * doc/functions/vfprintf.texi: Update.
25969         * doc/functions/vprintf.texi: Update.
25970         * doc/functions/vsnprintf.texi: Update.
25971         * doc/functions/vsprintf.texi: Update.
25972
25973 2007-05-06  Bruno Haible  <bruno@clisp.org>
25974
25975         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
25976         pass the ' flag character to sprintf or snprintf.
25977         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
25978         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
25979         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
25980         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
25981         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
25982         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
25983         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
25984         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
25985         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
25986         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
25987         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
25988         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
25989         * tests/test-snprintf-posix.h (test_function): Also check the grouping
25990         flag.
25991         * tests/test-sprintf-posix.h (test_function): Likewise.
25992         * tests/test-vasnprintf-posix.c (test_function): Likewise.
25993         * tests/test-vasprintf-posix.c (test_function): Likewise.
25994         * doc/functions/fprintf.texi: Update.
25995         * doc/functions/printf.texi: Update.
25996         * doc/functions/snprintf.texi: Update.
25997         * doc/functions/sprintf.texi: Update.
25998         * doc/functions/vfprintf.texi: Update.
25999         * doc/functions/vprintf.texi: Update.
26000         * doc/functions/vsnprintf.texi: Update.
26001         * doc/functions/vsprintf.texi: Update.
26002
26003 2007-05-01  Bruno Haible  <bruno@clisp.org>
26004
26005         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
26006
26007 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
26008
26009         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
26010         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
26011
26012 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
26013
26014         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
26015         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
26016         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
26017
26018 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
26019
26020         * lib/argp-help.c (struct hol_entry): New member `ord'.
26021         (HOL_ENTRY_PTRCMP): Use ord for comparison
26022         (hol_sort): Initialize ord.
26023
26024 2007-05-01  Bruno Haible  <bruno@clisp.org>
26025
26026         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
26027         Reported by Eric Blake.
26028         * doc/gnulib.texi (Function Substitutes): Update.
26029
26030 2007-05-01  Bruno Haible  <bruno@clisp.org>
26031
26032         * doc/functions.texi: Remove file, now redundant through
26033         doc/functions/*.texi.
26034
26035 2007-05-01  Bruno Haible  <bruno@clisp.org>
26036
26037         * modules/argp (Depends-on): Add sleep.
26038
26039 2007-05-01  Bruno Haible  <bruno@clisp.org>
26040
26041         * modules/sleep-tests: New file.
26042         * tests/test-sleep.c: New file.
26043
26044         * modules/sleep: New file.
26045         * lib/sleep.c: New file.
26046         * m4/sleep.m4: New file.
26047         * lib/unistd_.h (sleep): New declaration.
26048         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
26049         HAVE_SLEEP.
26050         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
26051         * doc/functions/sleep.texi: Document the sleep module.
26052
26053 2007-05-01  Bruno Haible  <bruno@clisp.org>
26054
26055         * lib/sigprocmask.h: Remove file.
26056         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
26057         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
26058         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
26059         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
26060         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
26061         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
26062         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
26063         HAVE_SIGSET_T as a shell variable.
26064         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
26065         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
26066         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
26067         (Depends-on): Add signal. Remove verify.
26068         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
26069         (Include): Mention <signal.h> instead of sigprocmask.h.
26070         * NEWS: Mention the change.
26071         * lib/fatal-signal.c: Don't include sigprocmask.h.
26072
26073 2007-05-01  Bruno Haible  <bruno@clisp.org>
26074
26075         * modules/signal: New file.
26076         * lib/signal_.h: New file.
26077         * m4/signal_h.m4: New file.
26078
26079 2007-05-01  Bruno Haible  <bruno@clisp.org>
26080
26081         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
26082         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
26083         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
26084         HAVE_WCTYPE_CTMP_BUG into wctype.h.
26085
26086 2007-05-01  Bruno Haible  <bruno@clisp.org>
26087
26088         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
26089         configure time.
26090         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
26091         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
26092         * modules/sys_stat (Makefile.am): Substitute their values into
26093         sys/stat.h.
26094
26095 2007-05-01  Bruno Haible  <bruno@clisp.org>
26096
26097         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
26098         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
26099         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
26100
26101 2007-05-01  Bruno Haible  <bruno@clisp.org>
26102
26103         * doc/header/assert.texi: Undo last change: don't mention the gnulib
26104         'assert' module here.
26105
26106 2007-05-01  Bruno Haible  <bruno@clisp.org>
26107
26108         * doc/functions/*.texi: New files.
26109         * doc/functions/google-ranking.txt: New file.
26110         * doc/gnulib.texi (Function Substitutes): New chapter.
26111         (ctime, inet_ntoa): Remove sections.
26112         * doc/ctime.texi: Remove file.
26113         * doc/inet_ntoa.texi: Remove file.
26114         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
26115         dependencies.
26116         (%.info): New rule, specifying a --reference-limit.
26117
26118 2007-05-01  Bruno Haible  <bruno@clisp.org>
26119
26120         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
26121
26122 2007-05-01  Bruno Haible  <bruno@clisp.org>
26123
26124         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
26125         the portability of 'mkdir' to mingw systems.
26126
26127 2007-05-01  Bruno Haible  <bruno@clisp.org>
26128
26129         * doc/headers/google-ranking.txt: New file.
26130
26131 2007-04-30  Eric Blake  <ebb9@byu.net>
26132
26133         Prefer fseeko to fseek.
26134         * modules/getpass (Depends-on): Add fseeko.
26135         * lib/getpass.c (getpass): Use fseeko, not fseek.
26136
26137 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
26138
26139         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
26140         assumes the sorting is stable, while most qsort implementations
26141         are not.  Use argument addresses to ensure they never compare as
26142         equal.
26143
26144         * tests/test-argp-2.sh (usage-indent test): Fix output
26145         (func_compare): Restore diff options
26146         * tests/test-argp.c: Restore #include "progname.h"
26147
26148 2007-04-29  Bruno Haible  <bruno@clisp.org>
26149
26150         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
26151         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
26152         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
26153         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
26154         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
26155         (configure.ac): Define CHECK_SNPRINTF_POSIX.
26156         (TESTS, check_PROGRAMS): Add test-snprintf.
26157         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
26158         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
26159         (TESTS, check_PROGRAMS): Add test-vsnprintf.
26160         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
26161         assertions that fail on HP-UX, OSF/1, or IRIX.
26162         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
26163
26164 2007-04-29  Bruno Haible  <bruno@clisp.org>
26165
26166         * MODULES.html.sh (posix_functions): Remove 'contents'.
26167
26168 2007-04-29  Karl Berry  <karl@gnu.org>
26169
26170         * config/srclist.txt (gendocs_template_min): new entry.
26171
26172 2007-04-29  Bruno Haible  <bruno@clisp.org>
26173
26174         Work around fpurge bug on BSD systems.
26175         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
26176         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
26177         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
26178         fpurge to rpl_fpurge if the system already has this function.
26179         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
26180         the case where the system already has this function. Correct invariants
26181         on BSD systems.
26182         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
26183         BSD systems.
26184
26185 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
26186
26187         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
26188         proposed by Sven Verdoolaege.
26189
26190         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
26191         options.
26192         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
26193         (usage and help tests): Update
26194
26195 2007-04-29  Bruno Haible  <bruno@clisp.org>
26196
26197         * tests/test-fflush.c (main): Use a file of size 17, not 10.
26198         Print more information in case of failure. Disable a test on BeOS.
26199
26200 2007-04-29  Bruno Haible  <bruno@clisp.org>
26201
26202         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
26203         This helps debugging on systems on which no gdb is available.
26204
26205 2007-04-29  Bruno Haible  <bruno@clisp.org>
26206
26207         * lib/freading.h: Improve comments.
26208         * lib/fwriting.h: Likewise.
26209         * tests/test-freading.c (main): Don't check freading immediately after
26210         repositioning. Needed for glibc.
26211
26212 2007-04-29  Bruno Haible  <bruno@clisp.org>
26213
26214         * lib/freading.c (freading): Trivial simplification.
26215
26216 2007-04-28  Bruno Haible  <bruno@clisp.org>
26217
26218         * tests/test-fwriting.c (main): Also test the interaction between
26219         fflush and fwriting.
26220         * modules/fwriting-tests (Depends-on): Add fflush.
26221
26222         * tests/test-freading.c (main): Also test the interaction between
26223         fflush and freading.
26224         * modules/freading-tests (Depends-on): Add fflush.
26225
26226 2007-04-28  Bruno Haible  <bruno@clisp.org>
26227
26228         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
26229         fseeko and ftello.
26230         Suggested by Eric Blake.
26231
26232 2007-04-28  Jim Meyering  <jim@meyering.net>
26233
26234         Avoid false-negative in gl_STDINT_H's C99 conformance test.
26235         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
26236         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
26237
26238 2007-04-27  Eric Blake  <ebb9@byu.net>
26239
26240         * doc/headers/assert.texi (assert.h): Document assert module use.
26241
26242 2007-04-27  Bruno Haible  <bruno@clisp.org>
26243
26244         * doc/headers/*.texi: New files.
26245         * doc/gnulib.texi (Header File Substitutes): New chapter.
26246         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
26247         dependencies.
26248         (standards.info ,standards.html, standards.dvi): Update dependencies.
26249         (mostlyclean, clean): New targets.
26250
26251 2007-04-27  Bruno Haible  <bruno@clisp.org>
26252
26253         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
26254         * modules/sysexits (Files, Makefile.am): Update.
26255
26256         * lib/sys_socket_.h: Renamed from lib/socket_.h.
26257         * modules/sys_socket (Files, Makefile.am): Update.
26258
26259         * lib/sys_stat_.h: Renamed from lib/stat_.h.
26260         * modules/sys_stat (Files, Makefile.am): Update.
26261
26262 2007-04-27  Eric Blake  <ebb9@byu.net>
26263
26264         * lib/freading.h: Improve comments.
26265         * lib/fwriting.h: Likewise.
26266         * lib/fflush.c: Likewise.
26267
26268         Fix closein for mingw.
26269         * modules/closein-tests: Add tests for closein.
26270         * tests/test-closein.c: New file.
26271         * tests/test-closein.sh: Likewise.
26272         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
26273         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
26274
26275 2007-04-27  Bruno Haible  <bruno@clisp.org>
26276
26277         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
26278         version is < 6.
26279         * lib/math_.h [__DECC]: Likewise.
26280         * lib/stdio_.h [__DECC]: Likewise.
26281         * lib/stdlib_.h [__DECC]: Likewise.
26282         * lib/string_.h [__DECC]: Likewise.
26283         * lib/time_.h [__DECC]: Likewise.
26284         * lib/wchar_.h [__DECC]: Likewise.
26285         * lib/wctype_.h [__DECC]: Likewise.
26286
26287 2007-04-27  Bruno Haible  <bruno@clisp.org>
26288
26289         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
26290
26291 2007-04-27  Bruno Haible  <bruno@clisp.org>
26292
26293         * lib/fflush.c: Add comments.
26294         * modules/fpurge-tests (Depends-on): Add fflush.
26295         * modules/freadable-tests (Depends-on): Likewise.
26296         * modules/fwritable-tests (Depends-on): Likewise.
26297
26298 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
26299
26300         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
26301         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
26302         Report by Bruno Haible <bruno@clisp.org>.
26303
26304 2007-04-26  Eric Blake  <ebb9@byu.net>
26305
26306         Fix fflush on mingw.
26307         * modules/fflush (Depends-on): Add freading.
26308         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
26309         but unread data.
26310
26311 2007-04-26  Eric Blake  <ebb9@byu.net>
26312         and Bruno Haible  <bruno@clisp.org>
26313
26314         Implement freading and fwriting.
26315         * lib/freading.c: New file.
26316         * lib/freading.h: Likewise.
26317         * m4/freading.m4: Likewise.
26318         * modules/freading: Likewise.
26319         * modules/freading-tests: Likewise.
26320         * tests/test-freading.c: Likewise.
26321         * lib/fwriting.c: New file.
26322         * lib/fwriting.h: Likewise.
26323         * m4/fwriting.m4: Likewise.
26324         * modules/fwriting: Likewise.
26325         * modules/fwriting-tests: Likewise.
26326         * tests/test-fwriting.c: Likewise.
26327         * MODULES.html.sh (File stream based Input/Output): Mention them.
26328
26329 2007-04-26  Bruno Haible  <bruno@clisp.org>
26330
26331         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
26332         'long' when we assume it.
26333         Suggested by Eric Blake.
26334
26335 2007-04-26  Bruno Haible  <bruno@clisp.org>
26336
26337         Ensure fseeko, ftello are declared on glibc systems.
26338         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
26339         * modules/fseeko (configure.ac-early): Likewise.
26340         * modules/ftello (configure.ac-early): Likewise.
26341         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
26342         AC_FUNC_FSEEKO for this.
26343         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
26344         (gl_CHECK_FSEEKO): Remove macro.
26345
26346 2007-04-26  Bruno Haible  <bruno@clisp.org>
26347
26348         * tests/test-fflush.c (main): Also check the ftell result after
26349         fflush and fseek/fseeko.
26350         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
26351         file descriptor position cache in the stream.
26352         * lib/fseeko.c (rpl_fseeko): Likewise.
26353
26354 2007-04-26  Bruno Haible  <bruno@clisp.org>
26355
26356         * modules/fflush-tests (Depends-on): Add fseeko.
26357
26358 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
26359             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
26360
26361         * lib/argz_.h: ensure error_t definition is obtained in same
26362         mechanism system argz.h would have.
26363         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
26364         argz facilities are known bad.  Err on the side of caution if
26365         cross-compiling.
26366
26367 2007-04-25  Eric Blake  <ebb9@byu.net>
26368
26369         * lib/fpurge.c (includes): Use stdlib.h for free.
26370         * tests/test-fflush.c (main): Also test fflush-fseeko.
26371
26372 2007-04-25  Bruno Haible  <bruno@clisp.org>
26373
26374         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
26375         * lib/fseeko.c: New file.
26376         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
26377         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
26378         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
26379         gl_FUNC_FSEEKO.
26380         (gl_FUNC_FSEEKO): Invoke it.
26381         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
26382         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
26383         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
26384
26385 2007-04-25  Bruno Haible  <bruno@clisp.org>
26386
26387         * modules/fflush (Depends-on): Add ftello.
26388
26389 2007-04-25  Bruno Haible  <bruno@clisp.org>
26390
26391         * modules/ftello-tests: New file.
26392         * tests/test-ftello.c: New file.
26393
26394         * modules/ftello: New file.
26395         * m4/ftello.m4: New file.
26396         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
26397         HAVE_FTELLO.
26398         * lib/stdio_.h (ftello): New declaration.
26399         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
26400         HAVE_FTELLO.
26401
26402 2007-04-25  Bruno Haible  <bruno@clisp.org>
26403
26404         * modules/fseeko-tests: New file.
26405         * tests/test-fseeko.c: New file.
26406
26407         * modules/fseeko: New file.
26408         * m4/fseeko.m4: New file.
26409         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
26410         HAVE_FSEEKO.
26411         * lib/stdio_.h (fseeko): New declaration.
26412         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
26413         HAVE_FSEEKO.
26414
26415 2007-04-25  Bruno Haible  <bruno@clisp.org>
26416
26417         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
26418
26419 2007-04-25  Bruno Haible  <bruno@clisp.org>
26420
26421         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
26422         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
26423         * tests/test-unistd.c: Likewise.
26424         * tests/test-fcntl.c: Likewise.
26425
26426 2007-04-23  Eric Blake  <ebb9@byu.net>
26427
26428         * lib/fflush.c: Fix missing include.
26429         Reported by Bruno Haible.
26430
26431 2007-04-23  Bruno Haible  <bruno@clisp.org>
26432
26433         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
26434         Reported by Eric Blake.
26435
26436 2007-04-23  Bruno Haible  <bruno@clisp.org>
26437
26438         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
26439
26440 2007-04-23  Bruno Haible  <bruno@clisp.org>
26441
26442         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
26443
26444 2007-04-23  Bruno Haible  <bruno@clisp.org>
26445
26446         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
26447         Needed on HP-UX 11.
26448
26449 2007-04-16  Eric Blake  <ebb9@byu.net>
26450
26451         Make fflush rely on fpurge.
26452         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
26453         open coding all variants.
26454         * modules/fflush (Depends-on): Add fpurge and unistd.
26455         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
26456         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
26457
26458         Fix --with-tests compilation on cygwin.
26459         * modules/argmatch-tests (Makefile.am): List gnulib library first
26460         in LDADD.
26461         * modules/argp-tests (Makefile.am): Likewise.
26462         * modules/array-list-tests (Makefile.am): Likewise.
26463         * modules/array-oset-tests (Makefile.am): Likewise.
26464         * modules/avltree-list-tests (Makefile.am): Likewise.
26465         * modules/avltree-oset-tests (Makefile.am): Likewise.
26466         * modules/avltreehash-list-tests (Makefile.am): Likewise.
26467         * modules/carray-list-tests (Makefile.am): Likewise.
26468         * modules/dirname-tests (Makefile.am): Likewise.
26469         * modules/frexp-tests (Makefile.am): Likewise.
26470         * modules/isnanl-tests (Makefile.am): Likewise.
26471         * modules/linked-list-tests (Makefile.am): Likewise.
26472         * modules/linkedhash-list-tests (Makefile.am): Likewise.
26473         * modules/lock-tests (Makefile.am): Likewise.
26474         * modules/rbtree-list-tests (Makefile.am): Likewise.
26475         * modules/rbtree-oset-tests (Makefile.am): Likewise.
26476         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
26477         * modules/tls-tests (Makefile.am): Likewise.
26478         * modules/tsearch-tests (Makefile.am): Likewise.
26479         * modules/xvasprintf-tests (Makefile.am): Likewise.
26480
26481         Fix fpurge for cygwin.
26482         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
26483         value.
26484         * modules/fpurge-tests (Depends-on): Clean up trash.
26485
26486 2007-04-16  Simon Josefsson  <simon@josefsson.org>
26487
26488         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
26489
26490         * m4/autobuild.m4: Re-indent.
26491
26492 2007-04-13  Bruno Haible  <bruno@clisp.org>
26493
26494         * modules/fpurge-tests: New file.
26495         * tests/test-fpurge.c: New file.
26496
26497         * modules/fpurge: New file.
26498         * lib/fpurge.h: New file.
26499         * lib/fpurge.c: New file.
26500         * m4/fpurge.m4: New file.
26501
26502 2007-04-13  Bruno Haible  <bruno@clisp.org>
26503
26504         * modules/fbufmode-tests: New file.
26505         * tests/test-fbufmode.c: New file.
26506
26507         * modules/fbufmode: New file.
26508         * lib/fbufmode.h: New file.
26509         * lib/fbufmode.c: New file.
26510         * m4/fbufmode.m4: New file.
26511
26512 2007-04-13  Bruno Haible  <bruno@clisp.org>
26513
26514         * modules/fwritable-tests: New file.
26515         * tests/test-fwritable.c: New file.
26516
26517         * modules/fwritable: New file.
26518         * lib/fwritable.h: New file.
26519         * lib/fwritable.c: New file.
26520         * m4/fwritable.m4: New file.
26521
26522 2007-04-13  Bruno Haible  <bruno@clisp.org>
26523
26524         * modules/freadable-tests: New file.
26525         * tests/test-freadable.c: New file.
26526
26527         * modules/freadable: New file.
26528         * lib/freadable.h: New file.
26529         * lib/freadable.c: New file.
26530         * m4/freadable.m4: New file.
26531
26532 2007-04-13  Bruno Haible  <bruno@clisp.org>
26533
26534         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
26535         MOSTLYCLEANFILES.
26536
26537 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
26538
26539         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
26540         gzip bootstrap.conf to avoid dragging in i18n machinery.
26541         (gnulib_tool_option): Use it.
26542
26543 2007-04-13  Bruno Haible  <bruno@clisp.org>
26544
26545         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
26546         %F directives.
26547         * tests/test-vasprintf-posix.c (test_function): Likewise.
26548         * tests/test-snprintf-posix.h (test_function): Likewise.
26549         * tests/test-sprintf-posix.h (test_function): Likewise.
26550         * tests/test-fprintf-posix.h (test_function): Likewise.
26551         * tests/test-printf-posix.h (test_function): Likewise.
26552         * tests/test-fprintf-posix.out: Likewise.
26553
26554 2007-04-13  Bruno Haible  <bruno@clisp.org>
26555
26556         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
26557         * modules/tls-tests (configure.ac): Likewise.
26558         Reported by Arto C. Nirkko <anirkko@insel.ch>.
26559
26560 2007-04-13  Bruno Haible  <bruno@clisp.org>
26561
26562         * lib/tls.c (glthread_tls_get): Fix return type.
26563         Patch by Arto C. Nirkko <anirkko@insel.ch>.
26564
26565 2007-04-12  Eric Blake  <ebb9@byu.net>
26566
26567         * modules/gettime (Depends-on): Remove gettime.
26568         Reported by Dmitry V. Levin.
26569
26570 2007-04-12  Bruno Haible  <bruno@clisp.org>
26571
26572         * modules/fflush (Include): Mention <stdio.h>.
26573         * modules/strtoimax (Include): Mention <inttypes.h>.
26574         * modules/strtoumax (Include): Likewise.
26575
26576 2007-04-12  Eric Blake  <ebb9@byu.net>
26577
26578         * .cvsignore: New file.
26579         * .gitignore: Likewise.
26580
26581 2007-04-12  Bruno Haible  <bruno@clisp.org>
26582
26583         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
26584         not before, since $(LDADD) often contains libgnu.a.
26585         * modules/striconv-tests (test_striconv_LDADD): Likewise.
26586         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
26587         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
26588         Needed on Cygwin.
26589
26590 2007-04-12  Eric Blake  <ebb9@byu.net>
26591
26592         Work around glibc's failure to flush stdin on fclose.
26593         * lib/closein.c (close_stdin): Flush stdin before closing.
26594
26595         Work around glibc's failure to reset seekable stdin on exit.
26596         * modules/closein: New module.
26597         * lib/closein.c: New file.
26598         * lib/closein.h: Likewise.
26599         * m4/closein.m4: Likewise.
26600         * MODULES.html.sh (File stream based Input/Output): Document it.
26601
26602 2007-04-12  Simon Josefsson  <simon@josefsson.org>
26603
26604         * gnulib-tool: Rename generated 'autobuild' script to
26605         'do-autobuild' in --create-megatestdir output.
26606
26607         * doc/gnulib.texi (Build robot for gnulib): Fix.
26608
26609 2007-04-12  Simon Josefsson  <simon@josefsson.org>
26610
26611         * modules/sysexits (Depends-on): Add absolute-header.
26612
26613 2007-04-12  Eric Blake  <ebb9@byu.net>
26614
26615         No need to preserve errno on success.
26616         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
26617         Reported by Bruno Haible.
26618
26619 2007-04-12  Simon Josefsson  <simon@josefsson.org>
26620
26621         * MODULES.html.sh (Support for maintaining and releasing
26622         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
26623
26624 2007-04-12  Simon Josefsson  <simon@josefsson.org>
26625
26626         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
26627
26628 2007-04-12  Simon Josefsson  <simon@josefsson.org>
26629
26630         * modules/autobuild: New module.
26631
26632         * m4/autobuild.m4: New file.
26633
26634 2007-04-11  Bruno Haible  <bruno@clisp.org>
26635
26636         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
26637         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
26638         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
26639         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
26640         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
26641         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
26642         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
26643         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
26644         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
26645         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
26646         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
26647         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
26648         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
26649         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
26650         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
26651         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
26652         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
26653         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
26654         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
26655         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
26656         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
26657         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
26658         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
26659         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
26660         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
26661         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
26662         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
26663         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
26664         Reported by Eric Blake.
26665
26666 2007-04-11  Bruno Haible  <bruno@clisp.org>
26667
26668         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
26669
26670 2007-04-10  Bruno Haible  <bruno@clisp.org>
26671
26672         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
26673         for NaN and Infinity. Needed on FreeBSD 6.1.
26674         * tests/test-vasnprintf-posix.c (test_function): Undo last change
26675         regarding results for "%010a" of Infinity and NaN.
26676         * tests/test-vasprintf-posix.c (test_function): Likewise.
26677         * tests/test-snprintf-posix.h (test_function): Likewise.
26678         * tests/test-sprintf-posix.h (test_function): Likewise.
26679         * tests/test-fprintf-posix.h (test_function): Likewise.
26680         * tests/test-printf-posix.h (test_function): Likewise.
26681         * tests/test-fprintf-posix.out: Likewise.
26682
26683 2007-04-10  Bruno Haible  <bruno@clisp.org>
26684
26685         * modules/locale-tests: New file.
26686         * tests/test-locale.c: New file.
26687
26688         * modules/locale: New file.
26689         * lib/locale_.h: New file.
26690         * m4/locale_h.m4: New file.
26691
26692 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
26693             Bruno Haible  <bruno@clisp.org>
26694
26695         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
26696         be determined, test for availability of the copysignf, copysign,
26697         copysignl functions.
26698         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
26699         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
26700         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
26701
26702 2007-04-09  Eric Blake  <ebb9@byu.net>
26703
26704         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
26705         * modules/stdio (Makefile.am): Support fflush.
26706         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
26707         * modules/fflush: New file.
26708         * lib/fflush.c: Likewise.
26709         * m4/fflush.m4: Likewise.
26710         * modules/fflush-tests: New test.
26711         * tests/test-fflush.c: Likewise.
26712         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
26713
26714 2007-04-06  Bruno Haible  <bruno@clisp.org>
26715
26716         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
26717         (VASNPRINTF): Use signbit for faster determination whether to print a
26718         minus sign.
26719         * modules/vasnprintf (Files): Remove lib/float+.h.
26720         * modules/fprintf-posix (Depends-on): Add signbit.
26721         * modules/snprintf-posix (Depends-on): Likewise.
26722         * modules/sprintf-posix (Depends-on): Likewise.
26723         * modules/vasnprintf-posix (Depends-on): Likewise.
26724         * modules/vasprintf-posix (Depends-on): Likewise.
26725         * modules/vfprintf-posix (Depends-on): Likewise.
26726         * modules/vsnprintf-posix (Depends-on): Likewise.
26727         * modules/vsprintf-posix (Depends-on): Likewise.
26728
26729 2007-04-06  Bruno Haible  <bruno@clisp.org>
26730
26731         * tests/test-frexp.c (main): Test also the sign bit of zero results.
26732         * tests/test-frexpl.c (main): Likewise.
26733         * tests/test-ldexpl.c (main): Likewise.
26734         * modules/frexp-tests (Depends-on): Add signbit.
26735         * modules/frexpl-tests (Depdends-on): Likewise.
26736         * modules/ldexpl-tests (Depdends-on): Likewise.
26737
26738 2007-04-06  Bruno Haible  <bruno@clisp.org>
26739
26740         * modules/signbit-tests: New file.
26741         * tests/test-signbit.c: New file.
26742
26743         * modules/signbit: New file.
26744         * lib/signbitf.c: New file.
26745         * lib/signbitd.c: New file.
26746         * lib/signbitl.c: New file.
26747         * m4/signbit.m4: New file.
26748         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
26749         (signbit): New macro.
26750         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
26751         REPLACE_SIGNBIT.
26752         * modules/math (Makefile.am) Substibute also GNULIB_SIGNBIT and
26753         REPLACE_FREXPL into math.h.
26754
26755 2007-04-06  Bruno Haible  <bruno@clisp.org>
26756
26757         * modules/isnanf-nolibm-tests: New file.
26758         * tests/test-isnanf.c: New file.
26759
26760         * modules/isnanf-nolibm: New file.
26761         * lib/isnanf.h: New file.
26762         * lib/isnanf.c: New file.
26763         * lib/isnan.c: Consider the USE_FLOAT macro.
26764         * m4/isnanf.m4: New file.
26765
26766 2007-04-06  Bruno Haible  <bruno@clisp.org>
26767
26768         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
26769         (Link): New section.
26770
26771         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
26772
26773 2007-04-06  Bruno Haible  <bruno@clisp.org>
26774
26775         Assume the 'long double' type.
26776         * m4/longdouble.m4: Remove file.
26777         * config/srclist.txt: Don't mention longdouble.m4.
26778         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
26779         * lib/float+.h: Likewise.
26780         * lib/frexp.c: Likewise.
26781         * lib/printf-args.h: Likewise.
26782         * lib/printf-args.c: Likewise.
26783         * lib/printf-frexp.c: Likewise.
26784         * lib/printf-parse.c: Likewise.
26785         * lib/vasnprintf.c: Likewise.
26786         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
26787         * m4/intl.m4: Likewise.
26788         * m4/isnanl.m4: Likewise.
26789         * m4/printf.m4: Likewise.
26790         * m4/printf-frexpl.m4: Likewise.
26791         * m4/vasnprintf.m4: Likewise.
26792         * modules/allocsa (Files): Remove m4/longdouble.m4.
26793         * modules/gettext (Files): Likewise.
26794         * modules/relocatable-prog-wrapper (Files): Likewise.
26795         * modules/vasnprintf (Files): Likewise.
26796         * modules/isnanl (Files): Likewise.
26797         (Include): Simplify.
26798         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
26799         (Include): Simplify.
26800         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
26801         (Include): Simplify.
26802         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
26803         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
26804         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
26805         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
26806         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
26807         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
26808         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
26809         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
26810         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
26811         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
26812         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
26813         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
26814         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
26815         * tests/test-isnanl.c: Likewise.
26816         * tests/test-snprintf-posix.h: Likewise.
26817         * tests/test-sprintf-posix.h: Likewise.
26818         * tests/test-vasnprintf-posix.c: Likewise.
26819         * tests/test-vasnprintf-posix2.c: Likewise.
26820         * tests/test-vasprintf-posix.c: Likewise.
26821
26822 2007-04-06  Bruno Haible  <bruno@clisp.org>
26823
26824         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
26825         * lib/math_.h [__DECC]: Include the overridden include file through
26826         #include_next, outside the double-inclusion guard.
26827         * lib/stdio_.h [__DECC]: Likewise.
26828         * lib/stdlib_.h [__DECC]: Likewise.
26829         * lib/string_.h [__DECC]: Likewise.
26830         * lib/time_.h [__DECC]: Likewise.
26831         * lib/wchar_.h [__DECC]: Likewise.
26832         * lib/wctype_.h [__DECC]: Likewise.
26833         * lib/inttypes_.h [__DECC]: Likewise.
26834         Reported by Albert Chin <china@thewrittenword.com> in
26835         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
26836
26837 2007-04-04  Eric Blake  <ebb9@byu.net>
26838
26839         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
26840         1.5.x.
26841
26842 2007-04-04  Bruno Haible  <bruno@clisp.org>
26843
26844         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
26845         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
26846
26847 2007-04-04  Bruno Haible  <bruno@clisp.org>
26848
26849         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
26850         results for "%010a" of Infinity and NaN.
26851         * tests/test-vasprintf-posix.c (test_function): Likewise.
26852         * tests/test-snprintf-posix.h (test_function): Likewise.
26853         * tests/test-sprintf-posix.h (test_function): Likewise.
26854         * tests/test-fprintf-posix.h (test_function): Remove these tests.
26855         * tests/test-printf-posix.h (test_function): Likewise.
26856         * tests/test-fprintf-posix.out: Update.
26857         Needed for FreeBSD 6.1.
26858
26859 2007-04-04  Bruno Haible  <bruno@clisp.org>
26860
26861         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
26862         directly used by the gnulib modules nor by gnulib-tool.
26863
26864 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
26865
26866         * DEPENDENCIES: Give overall description of version dependency
26867         desirability.  Use more-typical names for apps.
26868         Add shell, coreutils, diffutils, grep, tar, gzip.
26869
26870 2007-04-04  Simon Josefsson  <simon@josefsson.org>
26871
26872         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
26873
26874 2007-04-04  Karl Berry  <karl@gnu.org>
26875
26876         * MODULES.html.sh (func_module): missing '.
26877
26878 2007-04-03  Bruno Haible  <bruno@clisp.org>
26879
26880         * modules/argmatch-tests (Makefile.am): New variable
26881         test_argmatch_LDADD.
26882         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
26883         * modules/array-list-tests (Makefile.am): New variable
26884         test_array_list_LDADD.
26885         * modules/array-oset-tests (Makefile.am): New variable
26886         test_array_oset_LDADD.
26887         * modules/avltree-list-tests (Makefile.am): New variable
26888         test_avltree_list_LDADD.
26889         * modules/avltree-oset-tests (Makefile.am): New variable
26890         test_avltree_oset_LDADD.
26891         * modules/avltreehash-list-tests (Makefile.am): New variable
26892         test_avltreehash_list_LDADD.
26893         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
26894         test_canonicalize_lgpl_LDADD.
26895         * modules/carray-list-tests (Makefile.am): New variable
26896         test_carray_list_LDADD.
26897         * modules/dirname-tests (Makefile.am): New variable
26898         test_dirname_LDADD.
26899         * modules/linked-list-tests (Makefile.am): New variable
26900         test_linked_list_LDADD.
26901         * modules/linkedhash-list-tests (Makefile.am): New variable
26902         test_linkedhash_list_LDADD.
26903         * modules/rbtree-list-tests (Makefile.am): New variable
26904         test_rbtree_list_LDADD.
26905         * modules/rbtree-oset-tests (Makefile.am): New variable
26906         test_rbtree_oset_LDADD.
26907         * modules/rbtreehash-list-tests (Makefile.am): New variable
26908         test_rbtreehash_list_LDADD.
26909         * modules/xvasprintf-tests (Makefile.am): New variable
26910         test_xvasprintf_LDADD.
26911         Reported by Eric Blake.
26912
26913 2007-04-03  Eric Blake  <ebb9@byu.net>
26914
26915         * DEPENDENCIES: Weaken m4 requirements.
26916
26917 2007-04-03  Bruno Haible  <bruno@clisp.org>
26918
26919         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
26920         * modules/isnanl-tests (configure.ac): Likewise.
26921
26922 2007-04-03  Ben Pfaff  <blp@gnu.org>
26923
26924         * modules/iconv_open: Add $(srcdir)/ to source directory
26925         references in Makefile fragments that call gperf, to fix VPATH
26926         builds.
26927
26928 2007-04-03  Bruno Haible  <bruno@clisp.org>
26929
26930         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
26931         * lib/ldexpl.c: Undo last change.
26932
26933 2007-04-03  Bruno Haible  <bruno@clisp.org>
26934
26935         * modules/printf-frexpl (Depends-on): Undo last change.
26936         (Files): Add m4/ldexpl.m4.
26937
26938 2007-04-03  Bruno Haible  <bruno@clisp.org>
26939
26940         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
26941         * modules/isnanl (Link): New section.
26942
26943         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
26944         * modules/frexp (Link): New section.
26945
26946         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
26947         * modules/frexpl (Link): New section.
26948
26949         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
26950         * modules/ldexpl (Link): New section.
26951
26952 2007-04-03  Bruno Haible  <bruno@clisp.org>
26953
26954         * modules/TEMPLATE-EXTENDED: New file.
26955         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
26956
26957 2007-04-03  Bruno Haible  <bruno@clisp.org>
26958
26959         * DEPENDENCIES: New file.
26960         Suggested by Simon Josefsson.
26961
26962 2007-04-03  Bruno Haible  <bruno@clisp.org>
26963
26964         * doc/gnulib.texi: Escape @.
26965
26966 2007-04-03  James Youngman  <jay@gnu.org>
26967         and Paul Eggert  <eggert@cs.ucla.edu>
26968
26969         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
26970         birthtime on all systems that have birthtime, not just those which
26971         use st_birthtimensec rather than st_birthtim.  Putting zero in
26972         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
26973         that the birth time is not available for files on an NFS mount.
26974
26975 2007-04-03  Simon Josefsson  <simon@josefsson.org>
26976
26977         * modules/memxor: Move back from crypto/, suggested by Bruno.
26978         * modules/crypto/hmac-sha1: Fix memxor dependency.
26979
26980         * modules/crypto/gc: Moved from ../.
26981
26982 2007-04-02  Eric Blake  <ebb9@byu.net>
26983
26984         * lib/ldexpl.c (includes): Avoid libm.
26985
26986         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
26987
26988 2007-04-02  Bruno Haible  <bruno@clisp.org>
26989
26990         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
26991         on IRIX.
26992
26993 2007-04-02  Bruno Haible  <bruno@clisp.org>
26994
26995         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
26996         x86 or x86_64 platforms running MacOS X.
26997         Reported by Ryan Schmidt <@ryandesign.com>.
26998
26999 2007-04-02  Bruno Haible  <bruno@clisp.org>
27000
27001         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
27002         i386.
27003
27004 2007-04-01  Simon Josefsson  <simon@josefsson.org>
27005
27006         * modules/crypto/arcfour: Moved from ../.
27007         * modules/crypto/arcfour-tests: Moved from ../.
27008         * modules/crypto/arctwo: Moved from ../.
27009         * modules/crypto/arctwo-tests: Moved from ../.
27010         * modules/crypto/des: Moved from ../.
27011         * modules/crypto/des-tests: Moved from ../.
27012         * modules/crypto/gc-arcfour: Moved from ../.
27013         * modules/crypto/gc-arcfour-tests: Moved from ../.
27014         * modules/crypto/gc-arctwo: Moved from ../.
27015         * modules/crypto/gc-arctwo-tests: Moved from ../.
27016         * modules/crypto/gc-des: Moved from ../.
27017         * modules/crypto/gc-des-tests: Moved from ../.
27018         * modules/crypto/gc-hmac-md5: Moved from ../.
27019         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
27020         * modules/crypto/gc-hmac-sha1: Moved from ../.
27021         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
27022         * modules/crypto/gc-md2: Moved from ../.
27023         * modules/crypto/gc-md2-tests: Moved from ../.
27024         * modules/crypto/gc-md4: Moved from ../.
27025         * modules/crypto/gc-md4-tests: Moved from ../.
27026         * modules/crypto/gc-md5: Moved from ../.
27027         * modules/crypto/gc-md5-tests: Moved from ../.
27028         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
27029         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
27030         * modules/crypto/gc-random: Moved from ../.
27031         * modules/crypto/gc-rijndael: Moved from ../.
27032         * modules/crypto/gc-rijndael-tests: Moved from ../.
27033         * modules/crypto/gc-sha1: Moved from ../.
27034         * modules/crypto/gc-sha1-tests: Moved from ../.
27035         * modules/crypto/gc-tests: Moved from ../.
27036         * modules/crypto/hmac-md5: Moved from ../.
27037         * modules/crypto/hmac-md5-tests: Moved from ../.
27038         * modules/crypto/hmac-sha1: Moved from ../.
27039         * modules/crypto/hmac-sha1-tests: Moved from ../.
27040         * modules/crypto/md2: Moved from ../.
27041         * modules/crypto/md2-tests: Moved from ../.
27042         * modules/crypto/md4: Moved from ../.
27043         * modules/crypto/md4-tests: Moved from ../.
27044         * modules/crypto/md5: Moved from ../.
27045         * modules/crypto/md5-tests: Moved from ../.
27046         * modules/crypto/memxor: Moved from ../.
27047         * modules/crypto/rijndael: Moved from ../.
27048         * modules/crypto/rijndael-tests: Moved from ../.
27049         * modules/crypto/sha1: Moved from ../.
27050
27051 2007-03-30  James Youngman  <jay@gnu.org>
27052
27053         * tests/test-stat-time.c (prepare_test): use chmod() rather than
27054         rename() to change the ctime of a file (because ctime is unaffected
27055         by rename on jfs2 on AIX 5.1).
27056         (main): Start by doing cleanup, in case a previous run failed leaving
27057         test files behind.
27058
27059 2007-03-31  Bruno Haible  <bruno@clisp.org>
27060
27061         Support old proprietary implementations of iconv.
27062         * modules/iconv_open: New file.
27063         * lib/iconv_.h: New file.
27064         * m4/iconv_h.m4: New file.
27065         * lib/iconv_open.c: New file.
27066         * lib/iconv_open-aix.gperf: New file.
27067         * lib/iconv_open-hpux.gperf: New file.
27068         * lib/iconv_open-irix.gperf: New file.
27069         * lib/iconv_open-osf.gperf: New file.
27070         * m4/iconv_open.m4: New file.
27071         * modules/linebreak (Depends-on): Add iconv_open.
27072         * modules/striconv (Depends-on): Likewise.
27073         * modules/striconveh (Depends-on): Likewise.
27074         * modules/unicodeio (Depends-on): Likewise.
27075         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
27076         (iconv_t)(-1).
27077         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
27078         conversion if cd is (iconv_t)(-1).
27079         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
27080         is not possible.
27081
27082 2007-03-31  Bruno Haible  <bruno@clisp.org>
27083
27084         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
27085         work on Solaris either. Protect also second use of "autodetect_jp".
27086
27087 2007-03-31  Bruno Haible  <bruno@clisp.org>
27088
27089         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
27090         the function is not present.
27091
27092 2007-03-31  Bruno Haible  <bruno@clisp.org>
27093
27094         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
27095         the function is not present.
27096
27097 2007-03-31  Bruno Haible  <bruno@clisp.org>
27098
27099         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
27100         a bug in HP-UX iconv_open().
27101
27102 2007-03-31  Bruno Haible  <bruno@clisp.org>
27103
27104         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
27105         (Mathematics <math.h>): New section, add fpieee.
27106         (Input/output <stdio.h>): Add fseterr.
27107         (Mathematics <math.h>): New section, add printf-frexp.
27108         (Container data structures): Add sublist.
27109         (Core language properties): Add fpucw, inline.
27110         (Functions for greatest-width integer types <inttypes.h>): Add
27111         imaxabs, imaxdiv, inttypes.
27112         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
27113         isnanl-nolibm, ldexp.
27114         (Mathematics <math.h>): New section, add printf-frexpl.
27115         (Support for systems lacking POSIX:2001): Add fprintf-posix,
27116         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
27117         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
27118         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
27119         (Unicode string functions): Add unistr/u*-mbtoucr.
27120         (Java): Add javacomp-script, javaexec-script.
27121         (C#): Add csharpcomp-script, csharpexec-script.
27122         (Support for building libraries and executables): Add havelib,
27123         relocatable-*.
27124         (Support for maintaining and releasing projects): Renamed from
27125         'Support for maintaining and release projects'. Add announce-gen.
27126
27127 2007-03-31  Bruno Haible  <bruno@clisp.org>
27128
27129         * README: Talk primarily about git.
27130         (git and CVS): Renamed from CVS.
27131         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
27132         gnulib is available through git.
27133         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
27134
27135 2007-03-30  Bruno Haible  <bruno@clisp.org>
27136
27137         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
27138         * lib/poll_.h: Likewise.
27139         * lib/stat_.h: Likewise.
27140         * lib/sys_time_.h: Likewise.
27141         * lib/sysexit_.h: Likewise.
27142         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
27143         * lib/stdbool_.h: Likewise.
27144         * lib/byteswap_.h: Add double-inclusion guard.
27145
27146 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
27147
27148         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
27149
27150 2007-03-30  Karl Berry  <karl@gnu.org>
27151
27152         * config/srclist-update: double space after USA in the license
27153         substitution, since that's how it's usually (?) written.
27154
27155 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
27156
27157         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
27158         reported by Bruno Haible.
27159
27160 2007-03-29  Bruno Haible  <bruno@clisp.org>
27161
27162         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
27163         a bug in AIX iconv().
27164
27165 2007-03-29  Bruno Haible  <bruno@clisp.org>
27166
27167         * modules/ldexpl-tests: New file.
27168         * tests/test-ldexpl.c: New file.
27169
27170 2007-03-29  Bruno Haible  <bruno@clisp.org>
27171
27172         * lib/ldexpl.c: Include fpucw.h.
27173         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
27174         multiplication.
27175         * modules/ldexpl (Depends-on): Add fpucw.
27176
27177 2007-03-29  Bruno Haible  <bruno@clisp.org>
27178
27179         * modules/ldexpl: New file.
27180         * m4/ldexpl.m4: New file.
27181         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
27182         set.
27183         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
27184         REPLACE_LDEXPL.
27185         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
27186         REPLACE_LDEXPL.
27187         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
27188         gl_FUNC_LDEXPL_WORKS.
27189         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
27190         * modules/mathl (Files): Remove lib/ldexpl.c.
27191         (Depends-on): Add ldexpl.
27192
27193 2007-03-29  Bruno Haible  <bruno@clisp.org>
27194
27195         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
27196
27197 2007-03-29  Bruno Haible  <bruno@clisp.org>
27198
27199         * tests/test-striconveh.c (main): Don't assume that a direct conversion
27200         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
27201         and possibly also HP-UX.
27202         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
27203         work on AIX, IRIX, HP-UX, OSF/1.
27204         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
27205         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
27206         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
27207         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
27208         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
27209         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
27210
27211 2007-03-29  Bruno Haible  <bruno@clisp.org>
27212
27213         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
27214
27215 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
27216
27217         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
27218         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
27219
27220 2007-03-29  Eric Blake  <ebb9@byu.net>
27221
27222         * lib/acl-internal.h: Remove redundant include.
27223         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
27224         Cygwin when a file is locked.
27225
27226 2007-03-29  Bruno Haible  <bruno@clisp.org>
27227
27228         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
27229         file.
27230         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
27231
27232 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
27233
27234         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
27235         try to remove a parent directory if the child couldn't be removed
27236         (except for the first rmdir, which could fail because the child
27237         doesn't exist).  Problem reported by Jeff Blaine in
27238         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
27239
27240 2007-03-28  Bruno Haible  <bruno@clisp.org>
27241
27242         * lib/striconveh.c (utf8conv_carefully): New function.
27243         (mem_cd_iconveh_internal): Invoke it.
27244
27245 2007-03-28  Bruno Haible  <bruno@clisp.org>
27246
27247         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
27248         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
27249         input.
27250         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
27251         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
27252         unistr/u8-uctomb.
27253
27254 2007-03-28  Bruno Haible  <bruno@clisp.org>
27255
27256         * modules/unistr/u8-mbtoucr: New file.
27257         * lib/unistr/u8-mbtoucr.c: New file.
27258         * modules/unistr/u16-mbtoucr: New file.
27259         * lib/unistr/u16-mbtoucr.c: New file.
27260         * modules/unistr/u16-mbtoucr: New file.
27261         * lib/unistr/u16-mbtoucr.c: New file.
27262         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
27263
27264 2007-03-27  Simon Josefsson  <simon@josefsson.org>
27265             Bruno Haible  <bruno@clisp.org>
27266
27267         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
27268         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
27269         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
27270
27271         * m4/stdio_h.m4: Add stubs for vasprintf too.
27272
27273         * modules/stdio: Support vasprintf in sed command.
27274
27275         * modules/vasprintf: Depend on stdio for prototypes.  Remove
27276         vasprintf.h.  Add stdio module indicator.
27277
27278         * lib/stdio_.h: Declare asprintf and vasprintf, based on
27279         vasprintf.h.
27280
27281         * lib/vasprintf.h: File removed.
27282
27283         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
27284         * lib/vasprintf.c: Ditto.
27285         * lib/xvasprintf.c: Ditto.
27286         * tests/test-vasprintf-posix.c: Ditto.
27287         * tests/test-vasprintf.c: Ditto.
27288
27289 2007-03-27  Bruno Haible  <bruno@clisp.org>
27290
27291         Make vasnprintf multithread-safe.
27292         * lib/vasnprintf.c (decimal_point_char): New function.
27293         (VASNPRINTF): Use it.
27294         Suggested by Simon Josefsson.
27295
27296 2007-03-27  Eric Blake  <ebb9@byu.net>
27297
27298         Support sub-second birthtime on cygwin.
27299         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
27300         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
27301         (get_stat_birthtime): Also work with st_birthtim.
27302
27303 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
27304
27305         * lib/stat-time.h (USE_BIRTHTIME): Remove.
27306         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
27307         (get_stat_birthtime_ns): Do not try to use "spare" fields.
27308         (get_stat_birthtime_ns): Simplify compile-time tests.
27309         (get_stat_birthtime): Change the API to look like
27310         get_stat_mtime etc., except return a negative tv_nsec on error.
27311         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
27312         Don't check for "spare" fields.
27313         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
27314         or for struct stat.st_birthtime, as these tests aren't used.
27315         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
27316
27317 2007-03-27  Bruno Haible  <bruno@clisp.org>
27318
27319         * lib/stat-time.h: Include <sys/stat.h>.
27320
27321 2007-03-27  James Youngman  <jay@gnu.org>
27322
27323         * lib/stat-time.h (get_stat_birthtime): New function for
27324           retrieving st_birthtime as provided by UFS2 (hence *BSD).
27325         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
27326           and its variants.
27327         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
27328         * modules/stat-time-test: New file.
27329         * tests/test-stat-time.c: New test, devised by Bruno Haible.
27330
27331 2007-03-26  Bruno Haible  <bruno@clisp.org>
27332
27333         Better support of signalling NaNs.
27334         * lib/atanl.c: Include isnanl.h.
27335         (atanl): Perform test for NaN at the beginning of the function and
27336         through a call to isnanl.
27337         * lib/cosl.c: Include isnanl.h.
27338         (cosl): Perform test for NaN at the beginning of the function and
27339         through a call to isnanl.
27340         * lib/ldexpl.c: Include isnanl.h.
27341         (ldexpl): Perform test for NaN through a call to isnanl.
27342         * lib/logl.c: Include isnanl.h.
27343         (logl): Perform test for NaN at the beginning of the function and
27344         through a call to isnanl.
27345         * lib/sinl.c: Include isnanl.h.
27346         (sinl): Perform test for NaN at the beginning of the function and
27347         through a call to isnanl.
27348         * lib/sqrtl.c: Include isnanl.h.
27349         (sqrtl): Perform test for NaN at the beginning of the function and
27350         through a call to isnanl.
27351         * lib/tanl.c: Include isnanl.h.
27352         (tanl): Perform test for NaN at the beginning of the function and
27353         through a call to isnanl.
27354         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
27355         * modules/mathl (Depends-on): Add isnanl.
27356
27357 2007-03-26  Eric Blake  <ebb9@byu.net>
27358
27359         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
27360         regression in logic sense of previous patch.
27361
27362 2007-03-26  Bruno Haible  <bruno@clisp.org>
27363
27364         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
27365         unportable shell command "if ! ...".
27366         Reported by Ralf Wildenhues.
27367
27368 2007-03-25  Bruno Haible  <bruno@clisp.org>
27369
27370         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
27371         <sysexits.h> file, and only add EX_CONFIG.
27372         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
27373         absolute file name and whether it is sufficient. Substitute also
27374         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
27375         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
27376         ABSOLUTE_SYSEXITS_H into sysexits.h.
27377
27378 2007-03-25  Bruno Haible  <bruno@clisp.org>
27379
27380         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
27381         hints is NULL.
27382
27383 2007-03-25  Bruno Haible  <bruno@clisp.org>
27384
27385         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
27386         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
27387
27388 2007-03-25  Bruno Haible  <bruno@clisp.org>
27389
27390         * lib/vasnprintf.c: Include langinfo.h.
27391         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
27392         multithread-safe.
27393         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
27394         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
27395         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
27396         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
27397         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
27398         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
27399         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
27400         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
27401         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
27402         Reported by Simon Josefsson.
27403
27404 2007-03-25  Bruno Haible  <bruno@clisp.org>
27405
27406         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
27407         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
27408         * modules/vasnprintf (Depends-on): Add stdint.
27409
27410 2007-03-25  Bruno Haible  <bruno@clisp.org>
27411
27412         * modules/fpieee: New file.
27413         * m4/fpieee.m4: New file.
27414         * modules/isnan-nolibm (Depends-on): Add fpieee.
27415         * modules/isnanl-nolibm (Depends-on): Add fpieee.
27416         * modules/isnanl (Depends-on): Add fpieee.
27417
27418 2007-03-25  Bruno Haible  <bruno@clisp.org>
27419
27420         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
27421
27422 2007-03-25  Bruno Haible  <bruno@clisp.org>
27423
27424         Avoid test failures on IRIX 6.5.
27425         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
27426         (main): Use it.
27427         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
27428         macros.
27429         (main): Use them.
27430
27431 2007-03-25  Bruno Haible  <bruno@clisp.org>
27432
27433         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
27434         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
27435         exists but doesn't work.
27436         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
27437         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
27438         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
27439         * modules/math (Makefile.am) Substibute also REPLACE_FREXPL into math.h.
27440
27441 2007-03-25  Bruno Haible  <bruno@clisp.org>
27442
27443         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
27444         returns inf. Needed on IRIX 6.5.
27445
27446 2007-03-25  Bruno Haible  <bruno@clisp.org>
27447
27448         * tests/test-frexpl.c: Include isnanl-nolibm.h.
27449         (main): Use isnanl instead of x != x idiom.
27450         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
27451
27452         * tests/test-frexp.c: Include isnan.h.
27453         (main): Use isnan instead of x != x idiom.
27454         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
27455
27456 2007-03-25  Bruno Haible  <bruno@clisp.org>
27457
27458         * tests/test-frexp.c (NaN): New function/macro.
27459         (main): Use it instead of 0.0 / 0.0.
27460         * tests/test-isnan.c (NaN): New function/macro.
27461         (main): Use it instead of 0.0 / 0.0.
27462         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
27463         (test_function): Use it instead of 0.0 / 0.0.
27464         * tests/test-vasprintf-posix.c (NaN): New function/macro.
27465         (test_function): Use it instead of 0.0 / 0.0.
27466         * tests/test-snprintf-posix.h (NaN): New function/macro.
27467         (test_function): Use it instead of 0.0 / 0.0.
27468         * tests/test-sprintf-posix.h (NaN): New function/macro.
27469         (test_function): Use it instead of 0.0 / 0.0.
27470         * tests/test-fprintf-posix.h (NaN): New function/macro.
27471         (test_function): Use it instead of 0.0 / 0.0.
27472         * tests/test-printf-posix.h (NaN): New function/macro.
27473         (test_function): Use it instead of 0.0 / 0.0.
27474
27475         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
27476
27477 2007-03-25  Bruno Haible  <bruno@clisp.org>
27478
27479         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
27480
27481 2007-03-25  Bruno Haible  <bruno@clisp.org>
27482
27483         * lib/regexec.c (merge_state_with_log): Make static.
27484
27485 2007-03-25  Bruno Haible  <bruno@clisp.org>
27486
27487         * lib/trigl.c (kernel_rem_pio2): Make static.
27488
27489 2007-03-25  Bruno Haible  <bruno@clisp.org>
27490
27491         * lib/sincosl.c (sincosl_table): Make static.
27492
27493 2007-03-25  Bruno Haible  <bruno@clisp.org>
27494
27495         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
27496         if the compiler does not support C99.
27497
27498 2007-03-25  Bruno Haible  <bruno@clisp.org>
27499
27500         * modules/time (Makefile.am): Ensure all rule action lines start with a
27501         tab.
27502
27503 2007-03-24  Bruno Haible  <bruno@clisp.org>
27504
27505         * modules/tsearch-tests: New file.
27506         * tests/test-tsearch.sh: New file.
27507         * tests/test-tsearch.c: New file, mostly copied from glibc.
27508
27509         * modules/search-tests: New file.
27510         * tests/test-search.c: New file.
27511
27512         * modules/search: New file.
27513         * lib/search_.h: New file, incorporating lib/tsearch.h.
27514         * m4/search_h.m4: New file.
27515         * lib/tsearch.h: Remove file.
27516         * lib/tsearch.c: Include search.h instead of tsearch.h.
27517         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
27518         HAVE_TSEARCH.
27519         * modules/tsearch (Files): Remove lib/tsearch.h.
27520         (Depends-on): Add search.
27521         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
27522         (Include): Change tsearch.h into search.h.
27523
27524 2007-03-24  Bruno Haible  <bruno@clisp.org>
27525
27526         * modules/fpucw: New file.
27527         * lib/fpucw.h: New file.
27528         * lib/frexp.c: Include fpucw.h.
27529         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
27530         (FUNC): Use them.
27531         * lib/printf-frexp.c: Include fpucw.h.
27532         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
27533         (FUNC): Use them.
27534         * lib/vasnprintf.c: Include fpucw.h.
27535         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
27536         'long double' calculations.
27537         * tests/test-frexpl.c: Include fpucw.h.
27538         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
27539         * tests/test-printf-frexpl.c: Include fpucw.h.
27540         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
27541         * modules/frexpl (Depends-on): Add fpucw.
27542         * modules/printf-frexpl (Depends-on): Likewise.
27543         * modules/fprintf-posix (Depends-on): Likewise.
27544         * modules/snprintf-posix (Depends-on): Likewise.
27545         * modules/sprintf-posix (Depends-on): Likewise.
27546         * modules/vasnprintf-posix (Depends-on): Likewise.
27547         * modules/vasprintf-posix (Depends-on): Likewise.
27548         * modules/vfprintf-posix (Depends-on): Likewise.
27549         * modules/vsnprintf-posix (Depends-on): Likewise.
27550         * modules/vsprintf-posix (Depends-on): Likewise.
27551         * modules/frexpl-tests (Depends-on): Likewise.
27552         * modules/printf-frexpl-tests (Depends-on): Likewise.
27553
27554 2007-03-24  Bruno Haible  <bruno@clisp.org>
27555
27556         * lib/float+.h: New file.
27557         * lib/isnan.c: Include float+.h.
27558         (SIZE): New macro.
27559         (FUNC): Compare only SIZE bytes of the value.
27560         * lib/vasnprintf.c: Include float+.h.
27561         (VASNPRINTF): When comparing agains +0.0L or +0.0, compare only
27562         SIZEOF_LDBL or SIZEOF_DBL bytes.
27563         * modules/isnan-nolibm (Files): Add lib/float+.h.
27564         * modules/isnanl-nolibm (Files): Add lib/float+.h.
27565         * modules/isnanl (Files): Add lib/float+.h.
27566         * modules/vasnprintf (Files): Add lib/float+.h.
27567
27568 2007-03-24  Bruno Haible  <bruno@clisp.org>
27569
27570         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
27571         include isnanl-nolibm.h.
27572
27573 2007-03-24  Bruno Haible  <bruno@clisp.org>
27574
27575         * tests/test-read-file.c (main): Don't produce spurious output for
27576         expected situations. Make the test fail if it encountered unexpected
27577         results.
27578
27579 2007-03-24  Bruno Haible  <bruno@clisp.org>
27580
27581         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
27582         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
27583
27584 2007-03-24  Bruno Haible  <bruno@clisp.org>
27585
27586         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
27587
27588 2007-03-24  Bruno Haible  <bruno@clisp.org>
27589
27590         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
27591         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
27592
27593         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
27594         * modules/utf8-ucs4: Turn into a symbolic link to module
27595         unistr/u8-mbtouc.
27596
27597         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
27598         utf8-ucs4-unsafe.
27599         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
27600         unistr/u8-mbtouc-unsafe.
27601
27602         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
27603         * modules/utf16-ucs4: Turn into a symbolic link to module
27604         unistr/u16-mbtouc.
27605
27606         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
27607         utf16-ucs4-unsafe.
27608         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
27609         unistr/u16-mbtouc-unsafe.
27610
27611         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
27612         * modules/ucs4-utf8: Turn into a symbolic link to module
27613         unistr/u8-ubtomb.
27614
27615         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
27616         * modules/ucs4-utf16: Turn into a symbolic link to module
27617         unistr/u16-ubtomb.
27618
27619 2007-03-24  Bruno Haible  <bruno@clisp.org>
27620
27621         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
27622         Enable the function only if HAVE_INLINE.
27623         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
27624         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
27625         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
27626         Enable the function only if HAVE_INLINE.
27627         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
27628         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
27629         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
27630         Enable the function only if HAVE_INLINE.
27631         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
27632         Enable the function only if HAVE_INLINE.
27633         * modules/utf8-ucs4: Update.
27634         * modules/utf8-ucs4-unsafe: Update.
27635         * modules/utf16-ucs4: Update.
27636         * modules/utf16-ucs4-unsafe: Update.
27637         * modules/ucs4-utf8: Update.
27638         * modules/ucs4-utf16: Update.
27639
27640 2007-03-24  Bruno Haible  <bruno@clisp.org>
27641
27642         * lib/utf8-ucs4.h: Remove file.
27643         * lib/utf8-ucs4-unsafe.h: Remove file.
27644         * lib/utf16-ucs4.h: Remove file.
27645         * lib/utf16-ucs4-unsafe.h: Remove file.
27646         * lib/ucs4-utf8.h: Remove file.
27647         * lib/ucs4-utf16.h: Remove file.
27648         * lib/unistr.h: Include their previous contents.
27649         * m4/utf-ucs4.m4: Remove file.
27650         * m4/ucs4-utf.m4: Remove file.
27651         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
27652         (Depends-on): Add unistr/base.
27653         (configure.ac): Remove gl_UTF_UCS4.
27654         (Makefile.am): Update.
27655         (Include): Change to unistr.h.
27656         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
27657         (Depends-on): Add unistr/base.
27658         (configure.ac): Remove gl_UTF_UCS4.
27659         (Makefile.am): Update.
27660         (Include): Change to unistr.h.
27661         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
27662         (Depends-on): Add unistr/base.
27663         (configure.ac): Remove gl_UTF_UCS4.
27664         (Makefile.am): Update.
27665         (Include): Change to unistr.h.
27666         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
27667         (Depends-on): Add unistr/base.
27668         (configure.ac): Remove gl_UTF_UCS4.
27669         (Makefile.am): Update.
27670         (Include): Change to unistr.h.
27671         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
27672         (Depends-on): Add unistr/base.
27673         (configure.ac): Remove gl_UCS4_UTF.
27674         (Makefile.am): Update.
27675         (Include): Change to unistr.h.
27676         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
27677         (Depends-on): Add unistr/base.
27678         (configure.ac): Remove gl_UCS4_UTF.
27679         (Makefile.am): Update.
27680         (Include): Change to unistr.h.
27681         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
27682         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
27683         utf8-ucs4-unsafe.h.
27684         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
27685         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
27686         utf16-ucs4-unsafe.h.
27687         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
27688         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
27689         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
27690         * lib/unistr/u8-strchr.c: Likewise.
27691         * lib/unistr/u8-strrchr.c: Likewise.
27692         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
27693         * lib/unistr/u16-strchr.c: Likewise.
27694         * lib/unistr/u16-strrchr.c: Likewise.
27695         * lib/striconveh.c: Update.
27696         * lib/linebreak.c: Update.
27697
27698 2007-03-24  Bruno Haible  <bruno@clisp.org>
27699
27700         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
27701         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
27702
27703 2007-03-22  Bruno Haible  <bruno@clisp.org>
27704
27705         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
27706
27707 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
27708
27709         * MODULES.html.sh (File system functions): New module write-any-file.
27710         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
27711         * m4/write-any-file.m4: New files.
27712
27713 2007-03-23  Eric Blake  <ebb9@byu.net>
27714
27715         * gnulib-tool: Rearrange space-tab sequences, since some editors
27716         like to eat them.
27717
27718 2007-03-23  Eric Blake  <ebb9@byu.net>
27719
27720         * lib/version-etc.c (version_etc_va): Update license wording to
27721         be more concise.  Recommended by Richard Stallman.
27722
27723 2007-03-22  Bruno Haible  <bruno@clisp.org>
27724
27725         * lib/poll.c (MSG_PEEK): New fallback definition.
27726
27727 2007-03-22  Bruno Haible  <bruno@clisp.org>
27728
27729         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
27730         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
27731         (main): Update.
27732         Fixes a compilation error on BeOS.
27733
27734 2007-03-22  Bruno Haible  <bruno@clisp.org>
27735
27736         * modules/frexpl-tests: New file.
27737         * tests/test-frexpl.c: New file.
27738
27739         * modules/frexpl: New file.
27740         * m4/frexpl.m4: New file.
27741         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
27742         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
27743         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
27744         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
27745         (Depends-on): Add frexpl. Remove isnanl-nolibm.
27746         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
27747
27748 2007-03-22  Bruno Haible  <bruno@clisp.org>
27749
27750         * lib/frexpl.c: Share code with lib/frexp.c.
27751         * modules/mathl (Files): Add lib/frexp.c.
27752         (Depends-on): Add isnanl-nolibm.
27753
27754 2007-03-22  Bruno Haible  <bruno@clisp.org>
27755
27756         * modules/printf-frexp (Files): Add m4/frexp.m4.
27757         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
27758         only if the found frexp function actually works.
27759
27760 2007-03-22  Bruno Haible  <bruno@clisp.org>
27761
27762         * lib/frexp.c: Remove older implementation that uses divisions.
27763
27764 2007-03-21  Bruno Haible  <bruno@clisp.org>
27765
27766         * modules/frexp-tests: New file.
27767         * tests/test-frexp.c: New file.
27768
27769         * modules/frexp: New file.
27770         * lib/frexp.c: New file.
27771         * m4/frexp.m4: New file.
27772         * lib/math_.h (frexp): New declaration.
27773         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
27774         REPLACE_FREXP.
27775         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
27776
27777 2007-03-21  Bruno Haible  <bruno@clisp.org>
27778
27779         * modules/isnanl-tests: New file.
27780         * tests/test-isnanl.c: New file.
27781
27782         * modules/isnanl: New file.
27783         * lib/isnanl.h: New file.
27784         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
27785         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
27786         gl_FUNC_ISNANL_WORKS.
27787         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
27788         New macros.
27789
27790 2007-03-21  Bruno Haible  <bruno@clisp.org>
27791
27792         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
27793         lib/isnanl.h.
27794         (Include): Update.
27795         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
27796         * lib/vasnprintf.c: Update.
27797         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
27798         tests/test-isnanl.h, remove tests/test-isnanl.c.
27799         (Makefile.am): Update.
27800         * tests/test-isnanl-nolibm.c: New file.
27801         * tests/test-isnanl.h: New file.
27802         * tests/test-isnanl.c: Remove file.
27803
27804 2007-03-21  Jim Meyering  <jim@meyering.net>
27805
27806         When trying to open ".", treat ESTALE like EACCES.
27807         * lib/savewd.c (savewd_save): Resort to forking not just upon
27808         failure with EACCES, but also when errno is ESTALE.
27809
27810 2007-03-20  Bruno Haible  <bruno@clisp.org>
27811
27812         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
27813         Needed on AIX 5.1. Reported by Matthew Woehlke.
27814
27815 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
27816
27817         Suggestions by Bruno Haible:
27818         * lib/acl-internal.h: Include "gettext.h" rather than rolling
27819         our own.
27820         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
27821         * modules/acl (Depends-on): Add gettext.
27822
27823 2007-03-19  Bruno Haible  <bruno@clisp.org>
27824
27825         * modules/iconvme: Remove file.
27826         * lib/iconvme.h: Remove file.
27827         * lib/iconvme.c: Remove file.
27828         * m4/iconvme.m4: Remove file.
27829
27830 2007-03-19  Bruno Haible  <bruno@clisp.org>
27831
27832         * doc/relocatable-maint.texi: Break long shell script line.
27833         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
27834
27835 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
27836
27837         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
27838         handle file_has_acl.
27839         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
27840         * lib/acl.c: Move header inclusions and related macro defns into
27841         lib/acl-internal.h.
27842         (S_ISLNK): Remove defn, since that's now done for us.
27843         (file_has_acl): Move to lib/file-has-acl.c.
27844         Call acl_trivial if available.  This is the crucial part of the fix.
27845         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
27846         shared within the library.  Rewrite a bit, partly to make it compatible
27847         with the GNU coding style.
27848         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
27849         Remove unnecessary double-quotes.
27850         Don't test for acl_to_text; the build will catch that.
27851         Replace acl_entries if it doesn't exist and it is needed.
27852         Check for -lsec and acl_trivial (as used on Solaris 10).
27853         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
27854         lib/file-has-acl.c.
27855         (Depends-on): Add sys_stat, for S_ISLNK.
27856
27857 2007-03-19  Ben Pfaff  <blp@gnu.org>
27858
27859         * doc/gnulib.texi: Fix typos.
27860         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
27861
27862 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
27863
27864         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
27865         If size is zero here, buf must be zero.
27866
27867 2007-03-19  Simon Josefsson  <simon@josefsson.org>
27868
27869         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
27870         <bruno@clisp.org>.
27871
27872 2007-03-18  Bruno Haible  <bruno@clisp.org>
27873
27874         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
27875         Suggested by Eric Blake.
27876
27877 2007-03-18  Ben Pfaff  <blp@gnu.org>
27878
27879         * doc/relocatable.texi: Recommend using as prefix a directory
27880         that does not exist and will never be created.  Based on
27881         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
27882         and others.
27883
27884 2007-03-17  Bruno Haible  <bruno@clisp.org>
27885
27886         * lib/fchownat.c: Include lchown.h.
27887
27888 2007-03-17  Bruno Haible  <bruno@clisp.org>
27889
27890         Fix endless loop when the given allocated size was > INT_MAX.
27891         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
27892         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
27893         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
27894         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
27895         * lib/sprintf.c (sprintf): Likewise.
27896
27897 2007-03-17  Bruno Haible  <bruno@clisp.org>
27898
27899         * tests/test-argp-2.sh (func_compare): Output a context diff.
27900
27901 2007-03-17  Bruno Haible  <bruno@clisp.org>
27902
27903         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
27904         locale's decimal-point character.
27905
27906 2007-03-17  Bruno Haible  <bruno@clisp.org>
27907
27908         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
27909         before comparing it. Needed because on some platforms (e.g. x86) a
27910         'long double' occupies less bytes than sizeof (long double).
27911
27912 2007-03-17  Bruno Haible  <bruno@clisp.org>
27913
27914         * tests/test-crc.c (main): Make printf statements 64-bit clean.
27915         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
27916         * tests/test-getaddrinfo.c (simple): Likewise.
27917         * tests/test-read-file.c (main): Likewise.
27918
27919 2007-03-17  Bruno Haible  <bruno@clisp.org>
27920
27921         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
27922
27923 2007-03-17  Bruno Haible  <bruno@clisp.org>
27924
27925         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
27926         unused variable.
27927
27928 2007-03-17  Bruno Haible  <bruno@clisp.org>
27929
27930         * tests/test-c-strcasecmp.c: Include c-strcase.h.
27931         * tests/test-c-strncasecmp.c: Likewise.
27932
27933 2007-03-17  Bruno Haible  <bruno@clisp.org>
27934
27935         * modules/stdlib (Depends-on): Add unistd.
27936         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
27937         Needed for MacOS X 10.3.
27938
27939 2007-03-17  Bruno Haible  <bruno@clisp.org>
27940
27941         * lib/unistr/u-strdup.h: Include <stdlib.h>.
27942
27943 2007-03-17  Bruno Haible  <bruno@clisp.org>
27944
27945         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
27946
27947 2007-03-17  Bruno Haible  <bruno@clisp.org>
27948
27949         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
27950         to reflect files copied from gnulib (with or without modifications).
27951         Suggested by Jim Meyering.
27952
27953 2007-03-17  Eric Blake  <ebb9@byu.net>
27954
27955         * NEWS: Document stdlib change from 2007-02-18.
27956
27957 2007-03-17  Jim Meyering  <jim@meyering.net>
27958
27959         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
27960         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
27961         someone uses a name containing shell meta-characters.
27962         Reported by Alfred M. Szmidt.
27963
27964         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
27965
27966 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
27967
27968         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
27969         and copy gettext configuration files only if configure.ac contains
27970         a use of AM_GNU_GETTEXT_VERSION.
27971
27972 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
27973
27974         * build-aux/bootstrap (gnulib_name): New variable.
27975         (gnulib_tool_options): Use it.
27976
27977 2007-03-13  Simon Josefsson  <simon@josefsson.org>
27978
27979         * tests/test-des.c: Use new namespace.
27980
27981 2007-03-15  Bruno Haible  <bruno@clisp.org>
27982
27983         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
27984         Reported by James Youngman <jay@gnu.org>.
27985
27986 2007-03-15  Bruno Haible  <bruno@clisp.org>
27987
27988         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
27989         declared prototype. Needed with cc on OSF/1 5.1.
27990
27991 2007-03-15  Bruno Haible  <bruno@clisp.org>
27992
27993         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
27994         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
27995         (struct gl_list_implementation): Add dispose_fn argument to the
27996         'create_empty', 'create' methods.
27997         (struct gl_list_impl_base): Add field 'dispose_fn'.
27998         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
27999         argument.
28000         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
28001         dispose_fn argument.
28002         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
28003         dispose_fn on the dropped values.
28004         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
28005         dispose_fn argument.
28006         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
28007         dropped values.
28008         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
28009         (gl_tree_remove_node): Call dispose_fn on the dropped value.
28010         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
28011         (gl_tree_remove_node): Call dispose_fn on the dropped value.
28012         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
28013         argument.
28014         (gl_tree_list_free): Call dispose_fn on the dropped values.
28015         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
28016         the dropped values.
28017         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
28018         Add dispose_fn argument.
28019         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
28020         Call dispose_fn on the dropped values.
28021         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
28022         Add dispose_fn argument.
28023         (gl_sublist_create): Initialize the 'dispose_fn' field.
28024         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
28025         * tests/test-array_list.c (main): Update.
28026         * tests/test-carray_list.c (main): Update.
28027         * tests/test-avltree_list.c (main): Update.
28028         * tests/test-rbtree_list.c (main): Update.
28029         * tests/test-avltreehash_list.c (main): Update.
28030         * tests/test-rbtreehash_list.c (main): Update.
28031         * tests/test-linked_list.c (main): Update.
28032         * tests/test-linkedhash_list.c (main): Update.
28033         * tests/test-array_oset.c (main): Update.
28034
28035 2007-03-15  Bruno Haible  <bruno@clisp.org>
28036
28037         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
28038         (gl_oset_create_empty): Add dispose_fn argument.
28039         (struct gl_oset_implementation): Add dispose_fn argument to
28040         'create_empty' method.
28041         (struct gl_oset_impl_base): Add dispose_fn field.
28042         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
28043         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
28044         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
28045         values.
28046         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
28047         (gl_tree_oset_free): Call dispose_fn on the dropped values.
28048         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
28049         dropped value.
28050         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
28051         dropped value.
28052         * tests/test-array_oset.c (main): Update.
28053         * tests/test-avltree_oset.c (main): Update.
28054         * tests/test-rbtree_oset.c (main): Update.
28055         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
28056
28057 2007-03-13  Bruno Haible  <bruno@clisp.org>
28058
28059         * tests/test-stdbool.c (i): Update after last patch.
28060
28061 2007-03-12  Bruno Haible  <bruno@clisp.org>
28062
28063         * lib/quotearg.c: Include <wctype.h> early, before the definition of
28064         the iswprint macro. Needed on Solaris 2.5.1.
28065
28066 2007-03-12  Bruno Haible  <bruno@clisp.org>
28067
28068         * tests/test-printf-frexp.c (main): Declare x as volatile.
28069
28070 2007-03-12  Simon Josefsson  <simon@josefsson.org>
28071
28072         * doc/gnulib.texi (Build robot for gnulib): New section.
28073
28074 2007-03-12  Jim Meyering  <jim@meyering.net>
28075
28076         * build-aux/bootstrap: New file.
28077         * build-aux/bootstrap.conf: New file, from coreutils.
28078
28079 2007-03-11  Bruno Haible  <bruno@clisp.org>
28080
28081         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
28082
28083 2007-03-12  Simon Josefsson  <simon@josefsson.org>
28084
28085         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
28086         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
28087         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
28088
28089 2007-03-11  Bruno Haible  <bruno@clisp.org>
28090
28091         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
28092         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
28093
28094 2007-03-11  Bruno Haible  <bruno@clisp.org>
28095
28096         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
28097         formula. Needed for SunPRO C 5.0.
28098
28099 2007-03-11  Bruno Haible  <bruno@clisp.org>
28100
28101         * modules/long-options (Depends-on): Add getopt.
28102
28103 2007-03-11  Bruno Haible  <bruno@clisp.org>
28104
28105         * modules/modechange (Depends-on): Add stdbool.
28106
28107 2007-03-11  Bruno Haible  <bruno@clisp.org>
28108
28109         * modules/i-ring (Depends-on): Add stdbool.
28110
28111 2007-03-11  Bruno Haible  <bruno@clisp.org>
28112
28113         * modules/gc-des (Depends-on): Add stdbool.
28114
28115 2007-03-11  Bruno Haible  <bruno@clisp.org>
28116
28117         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
28118
28119 2007-03-11  Bruno Haible  <bruno@clisp.org>
28120
28121         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
28122
28123 2007-03-11  Bruno Haible  <bruno@clisp.org>
28124
28125         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
28126
28127 2007-03-11  Bruno Haible  <bruno@clisp.org>
28128
28129         * lib/vasnprintf.c (sprintf): Undefine.
28130
28131 2007-03-11  Bruno Haible  <bruno@clisp.org>
28132
28133         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
28134         initializers in SunPRO C and Compaq C compilers.
28135
28136 2007-03-11  Bruno Haible  <bruno@clisp.org>
28137
28138         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
28139         decrementing code ANSI C compliant.
28140
28141 2007-03-11  Bruno Haible  <bruno@clisp.org>
28142
28143         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
28144         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
28145
28146 2007-03-11  Bruno Haible  <bruno@clisp.org>
28147
28148         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
28149         <stdbool.h> substitute doesn't pass.
28150
28151 2007-03-11  Bruno Haible  <bruno@clisp.org>
28152
28153         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
28154
28155 2007-03-11  Bruno Haible  <bruno@clisp.org>
28156
28157         * gnulib-tool (func_create_megatestdir): Create also an autobuild
28158         script, for submission to autobuild.josefsson.org.
28159
28160 2007-03-10  Bruno Haible  <bruno@clisp.org>
28161
28162         * modules/canonicalize-lgpl-tests: New file.
28163         * tests/test-canonicalize-lgpl.sh: New file.
28164         * tests/test-canonicalize-lgpl.c: New file.
28165
28166         * modules/c-strcase-tests: New file.
28167         * tests/test-c-strcase.sh: New file.
28168         * tests/test-c-strcasecmp.c: New file.
28169         * tests/test-c-strncasecmp.c: New file.
28170
28171         * modules/atexit-tests: New file.
28172         * tests/test-atexit.sh: New file.
28173         * tests/test-atexit.c: New file.
28174
28175 2007-03-10  Bruno Haible  <bruno@clisp.org>
28176
28177         * tests/test-binary-io.sh: Use temporary filenames that are not so
28178         likely to clash with those of other tests (in a parallel make).
28179         * tests/test-binary-io.c: Likewise.
28180
28181 2007-03-10  Bruno Haible  <bruno@clisp.org>
28182
28183         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
28184         fallback; use #error instead.
28185         Suggested by Simon Josefsson.
28186
28187 2007-03-10  Bruno Haible  <bruno@clisp.org>
28188
28189         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
28190         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
28191         first and the last.
28192
28193 2007-03-10  Bruno Haible  <bruno@clisp.org>
28194
28195         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
28196
28197 2007-03-10  Bruno Haible  <bruno@clisp.org>
28198
28199         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
28200         "make distcheck".
28201         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
28202         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
28203         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
28204
28205 2007-03-10  Bruno Haible  <bruno@clisp.org>
28206
28207         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
28208         variable.
28209         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
28210         variable.
28211
28212 2007-03-09  Eric Blake  <ebb9@byu.net>
28213         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
28214
28215         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
28216         types are not being provided by gnulib.
28217         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
28218         types are supported.
28219
28220 2007-03-10  Bruno Haible  <bruno@clisp.org>
28221
28222         * lib/stdio_.h (__attribute__): New macro.
28223         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
28224         vsprintf): Specify __attribute__ __format__ for GCC.
28225         Suggested by Eric Blake.
28226
28227 2007-03-09  Bruno Haible  <bruno@clisp.org>
28228
28229         * modules/printf-posix-tests: New file.
28230         * tests/test-printf-posix.sh: New file.
28231         * tests/test-printf-posix.c: New file.
28232
28233         * modules/printf-posix: New file.
28234         * lib/printf.c: New file.
28235         * m4/printf-posix-rpl.m4: New file.
28236         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
28237         REPLACE_PRINTF.
28238         * lib/stdio_.h (printf): New declaration.
28239         (format, __format__, ____printf____, ____scanf____, ____strftime____,
28240         ____strfmon____): New macros.
28241         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
28242         REPLACE_PRINTF.
28243
28244 2007-03-09  Bruno Haible  <bruno@clisp.org>
28245
28246         * tests/test-vasnprintf-posix2.sh: New file.
28247         * tests/test-vasnprintf-posix2.c: New file.
28248         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
28249         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
28250         (Makefile.am): Activate test-vasnprintf-posix2.sh.
28251
28252         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
28253         a locale dependent decimal point, rather than always '.'.
28254
28255 2007-03-09  Eric Blake  <ebb9@byu.net>
28256
28257         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
28258         spite of platforms like Tandem/NSK that define it to -1.
28259
28260 2007-03-08  Bruno Haible  <bruno@clisp.org>
28261
28262         * modules/vprintf-posix-tests: New file.
28263         * tests/test-vprintf-posix.sh: New file.
28264         * tests/test-vprintf-posix.c: New file.
28265         * tests/test-printf-posix.h: New file.
28266
28267         * modules/vprintf-posix: New file.
28268         * lib/vprintf.c: New file.
28269         * m4/vprintf-posix.m4: New file.
28270         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
28271         REPLACE_VPRINTF.
28272         * lib/stdio_.h (vprintf): New declaration.
28273         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
28274         REPLACE_VPRINTF.
28275
28276 2007-03-08  Bruno Haible  <bruno@clisp.org>
28277
28278         * modules/fprintf-posix-tests: New file.
28279         * tests/test-fprintf-posix.sh: New file.
28280         * tests/test-fprintf-posix.c: New file.
28281
28282         * modules/fprintf-posix: New file.
28283         * lib/fprintf.c: New file.
28284         * m4/fprintf-posix.m4: New file.
28285         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
28286         REPLACE_FPRINTF.
28287         * lib/stdio_.h (fprintf): New declaration.
28288         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
28289         REPLACE_FPRINTF.
28290
28291 2007-03-08  Bruno Haible  <bruno@clisp.org>
28292
28293         * modules/vfprintf-posix-tests: New file.
28294         * tests/test-vfprintf-posix.sh: New file.
28295         * tests/test-vfprintf-posix.c: New file.
28296         * tests/test-fprintf-posix.h: New file.
28297         * tests/test-fprintf-posix.out: New file.
28298
28299         * modules/vfprintf-posix: New file.
28300         * lib/vfprintf.c: New file.
28301         * m4/vfprintf-posix.m4: New file.
28302         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
28303         REPLACE_VFPRINTF.
28304         * lib/stdio_.h (vfprintf): New declaration.
28305         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
28306         REPLACE_VFPRINTF.
28307
28308 2007-03-08  Bruno Haible  <bruno@clisp.org>
28309
28310         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
28311
28312 2007-03-08  Bruno Haible  <bruno@clisp.org>
28313
28314         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
28315         instead of 'expr' invocations.
28316         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
28317         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
28318         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
28319         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
28320         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
28321         Suggested by Paul Eggert.
28322
28323 2007-03-08  Bruno Haible  <bruno@clisp.org>
28324
28325         * modules/fseterr-tests: New file.
28326         * tests/test-fseterr.c: New file.
28327
28328         * modules/fseterr: New file.
28329         * lib/fseterr.h: New file.
28330         * lib/fseterr.c: New file.
28331
28332 2007-03-08  Bruno Haible  <bruno@clisp.org>
28333
28334         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
28335         * lib/getopt_.h: Likewise.
28336         * lib/mbswidth.h: Likewise.
28337         * lib/setenv.h: Likewise.
28338         * lib/vasnprintf.h: Likewise.
28339         * lib/vasprintf.h: Likewise.
28340         * lib/verror.h: Likewise.
28341         * lib/xsetenv.h: Likewise.
28342         * lib/xvasprintf.h: Likewise.
28343
28344 2007-03-08  Jim Meyering  <jim@meyering.net>
28345
28346         * users.txt: Add parted.
28347
28348         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
28349
28350 2007-03-07  Bruno Haible  <bruno@clisp.org>
28351
28352         * m4/printf.m4: Make the shell script snippets copy&pastable.
28353
28354 2007-03-02  Bruno Haible  <bruno@clisp.org>
28355
28356         * lib/netinet_in_.h: New file.
28357         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
28358         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
28359         * modules/netinet_in (Files): Add lib/netinet_in_.h.
28360         (Depends-on): Add absolute-header.
28361         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
28362         into netinet/in.h.
28363
28364 2007-03-03  Bruno Haible  <bruno@clisp.org>
28365
28366         * lib/sys_select_.h: New file.
28367         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
28368         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
28369         * modules/sys_select (Files): Add lib/sys_select_.h.
28370         (Depends-on): Add absolute-header.
28371         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
28372         into sys/select.h.
28373
28374 2007-03-02  Bruno Haible  <bruno@clisp.org>
28375
28376         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
28377         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
28378         values.
28379         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
28380         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
28381         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
28382         * modules/sys_socket (Depends-on): Add absolute-header.
28383         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
28384         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
28385         (Include): Remove requirement of inclusion of <sys/types.h>.
28386
28387 2007-03-02  Bruno Haible  <bruno@clisp.org>
28388
28389         * lib/byteswap_.h (bswap_32): Fix formula.
28390
28391 2007-03-06  Bruno Haible  <bruno@clisp.org>
28392
28393         * modules/sprintf-posix-tests: New file.
28394         * tests/test-sprintf-posix.c: New file.
28395
28396         * modules/sprintf-posix: New file.
28397         * lib/sprintf.c: New file.
28398         * m4/sprintf-posix.m4: New file.
28399         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
28400         REPLACE_SPRINTF.
28401         * lib/stdio_.h (sprintf): New declaration.
28402         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
28403         REPLACE_SPRINTF.
28404
28405 2007-03-06  Bruno Haible  <bruno@clisp.org>
28406
28407         * modules/vsprintf-posix-tests: New file.
28408         * tests/test-vsprintf-posix.c: New file.
28409         * tests/test-sprintf-posix.h: New file.
28410
28411         * modules/vsprintf-posix: New file.
28412         * lib/vsprintf.c: New file.
28413         * m4/vsprintf-posix.m4: New file.
28414         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
28415         REPLACE_VSPRINTF.
28416         * lib/stdio_.h (vsprintf): New declaration.
28417         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
28418         REPLACE_VSPRINTF.
28419
28420 2007-03-06  Bruno Haible  <bruno@clisp.org>
28421
28422         * modules/vsnprintf (Depend-on): Remove minmax.
28423
28424 2007-03-06  Bruno Haible  <bruno@clisp.org>
28425
28426         * modules/snprintf-posix-tests: New file.
28427         * tests/test-snprintf-posix.c: New file.
28428
28429         * modules/snprintf-posix: New file.
28430         * m4/snprintf-posix.m4: New file.
28431         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
28432         gl_FUNC_SNPRINTF.
28433         (gl_FUNC_SNPRINTF): Invoke it.
28434         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
28435         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
28436         is set.
28437         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
28438
28439 2007-03-06  Bruno Haible  <bruno@clisp.org>
28440
28441         * modules/vsnprintf-posix-tests: New file.
28442         * tests/test-vsnprintf-posix.c: New file.
28443         * tests/test-snprintf-posix.h: New file.
28444
28445         * modules/vsnprintf-posix: New file.
28446         * m4/vsnprintf-posix.m4: New file.
28447         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
28448         gl_FUNC_VSNPRINTF.
28449         (gl_FUNC_VSNPRINTF): Invoke it.
28450         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
28451         * lib/stdio_.h (vsnprintf): Define as a replacement if
28452         REPLACE_VSNPRINTF is set.
28453         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
28454
28455 2007-03-06  Bruno Haible  <bruno@clisp.org>
28456
28457         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
28458         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
28459
28460 2007-03-06  Bruno Haible  <bruno@clisp.org>
28461
28462         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
28463         (asinl): Declare also if HAVE_DECL_ASINL is set.
28464         (atanl): Declare also if HAVE_DECL_ATANL is set.
28465         (ceill): Declare also if HAVE_DECL_CEILL is set.
28466         (cosl): Declare also if HAVE_DECL_COSL is set.
28467         (expl): Declare also if HAVE_DECL_EXPL is set.
28468         (floorl): Declare also if HAVE_DECL_FLOORL is set.
28469         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
28470         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
28471         (logl): Declare also if HAVE_DECL_LOGL is set.
28472         (sinl): Declare also if HAVE_DECL_SINL is set.
28473         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
28474         (tanl): Declare also if HAVE_DECL_TANL is set.
28475         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
28476         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
28477         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
28478         declaration of frexpl, ldexpl.
28479         * modules/printf-frexpl (Depends-on): Add math.
28480         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
28481
28482 2007-03-05  Bruno Haible  <bruno@clisp.org>
28483
28484         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
28485         frexpl and ldexpl are declared.
28486         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
28487
28488 2007-03-05  Bruno Haible  <bruno@clisp.org>
28489
28490         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
28491         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
28492
28493 2007-03-05  Bruno Haible  <bruno@clisp.org>
28494
28495         * lib/stdio_.h: Include <stddef.h>.
28496
28497 2007-03-05  Bruno Haible  <bruno@clisp.org>
28498
28499         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
28500
28501 2007-03-05  Bruno Haible  <bruno@clisp.org>
28502
28503         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
28504         NetBSD 4, from Ralf Wildenhues.
28505
28506 2007-03-04  Bruno Haible  <bruno@clisp.org>
28507
28508         * lib/vasprintf.h: Update #if logic for the case when the functions
28509         exist but are overridden.
28510
28511 2007-03-04  Bruno Haible  <bruno@clisp.org>
28512
28513         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
28514         implementations: glibc-2.4 and MacOS X 10.3.
28515         * tests/test-vasnprintf-posix.c (test_function): Test also the case
28516         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
28517         * tests/test-vasprintf-posix.c (test_function): Likewise.
28518
28519 2007-03-04  Bruno Haible  <bruno@clisp.org>
28520
28521         * modules/vasprintf-posix-tests: New file.
28522         * tests/test-vasprintf-posix.c: New file.
28523
28524         * modules/vasprintf-posix: New file.
28525         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
28526         defined.
28527         * m4/vasprintf-posix.m4: New file.
28528         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
28529         gl_FUNC_VASPRINTF.
28530         (gl_FUNC_VASPRINTF): Invoke it.
28531         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
28532         here.
28533         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
28534
28535 2007-03-04  Bruno Haible  <bruno@clisp.org>
28536
28537         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
28538         REPLACE_GETTIMEOFDAY.
28539         * modules/sys_time (Makefile.am): Likewise.
28540         * m4/sys_time_h.m4: Likewise.
28541         * m4/gettimeofday.m4: Likewise.
28542
28543 2007-03-04  Bruno Haible  <bruno@clisp.org>
28544
28545         * modules/vasnprintf-posix-tests: New file.
28546         * tests/test-vasnprintf-posix.c: New file.
28547
28548         * modules/vasnprintf-posix: New file.
28549         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
28550         printf-frexpl.h.
28551         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
28552         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
28553         REPLACE_VASNPRINTF is defined.
28554         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
28555         gl_FUNC_VASNPRINTF.
28556         (gl_FUNC_VASNPRINTF): Invoke it.
28557         * m4/vasnprintf-posix.m4: New file.
28558         * m4/printf.m4: New file.
28559
28560 2007-03-04  Bruno Haible  <bruno@clisp.org>
28561
28562         Compile progreloc.c only if --enable-relocatable is specified.
28563         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
28564         if --enable-relocatable was specified.
28565         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
28566         lib_SOURCES.
28567
28568 2007-03-04  Jim Meyering  <jim@meyering.net>
28569
28570         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
28571         Use it consistently, rather than enumerating errno constants.
28572
28573 2007-03-04  Bruno Haible  <bruno@clisp.org>
28574
28575         * modules/xvasprintf-tests: New file.
28576         * tests/test-xvasprintf.c: New file.
28577
28578         * modules/vasprintf-tests: New file.
28579         * tests/test-vasprintf.c: New file.
28580
28581         * modules/vasnprintf-tests: New file.
28582         * tests/test-vasnprintf.c: New file.
28583
28584         * modules/vsnprintf-tests: New file.
28585         * tests/test-vsnprintf.c: New file.
28586
28587         * modules/snprintf-tests: New file.
28588         * tests/test-snprintf.c: New file.
28589
28590 2007-03-04  Bruno Haible  <bruno@clisp.org>
28591
28592         Compile relocatable.c only if --enable-relocatable is specified.
28593         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
28594         gl_RELOCATABLE_LIBRARY.
28595         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
28596         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
28597         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
28598         gl_RELOCATABLE_LIBRARY.
28599         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
28600         (Makefile.am): Remove lib_SOURCES.
28601         * modules/relocatable-lib-lgpl (configure.ac): Invoke
28602         gl_RELOCATABLE_LIBRARY.
28603         (Makefile.am): Remove lib_SOURCES.
28604         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
28605         always.
28606         * modules/relocatable-prog-wrapper (configure.ac): Invoke
28607         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
28608
28609 2007-03-04  Bruno Haible  <bruno@clisp.org>
28610
28611         * modules/argmatch-tests: New file.
28612         * tests/test-argmatch.c: New file.
28613
28614         * tests/test-allocsa.c (main): Halve the number of loop runs.
28615
28616         * modules/alloca-opt-tests: New file.
28617         * tests/test-alloca-opt.c: New file.
28618
28619 2007-03-04  Jim Meyering  <jim@meyering.net>
28620
28621         Work around difference between Linux ACLs and Solaris 10 ZFS.
28622         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
28623         for EINVAL.
28624
28625 2007-03-03  Bruno Haible  <bruno@clisp.org>
28626
28627         * modules/relocatable-prog (Depends-on): Add back progreloc's
28628         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
28629
28630 2007-03-03  Bruno Haible  <bruno@clisp.org>
28631
28632         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
28633         * modules/relocatable-lib: New file.
28634
28635 2007-03-03  Bruno Haible  <bruno@clisp.org>
28636
28637         * modules/relocatable-prog: Renamed from modules/relocatable.
28638         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
28639
28640 2007-03-03  Bruno Haible  <bruno@clisp.org>
28641
28642         * modules/relocatable-script (Files): Add doc/relocatable.texi,
28643         m4/relocatable-lib.m4.
28644         (Depends-on): Remove 'relocatable'.
28645         (configure.ac): Add gl_RELOCATABLE_NOP.
28646
28647 2007-03-03  Bruno Haible  <bruno@clisp.org>
28648
28649         * modules/relocatable-prog-wrapper: New file.
28650         * modules/relocatable (Depends-on): Add it. Remove all other
28651         dependencies except progname.
28652         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
28653
28654         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
28655         (gl_FUNC_STRERROR): Nop.
28656         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
28657
28658         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
28659         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
28660
28661         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
28662         (gl_FUNC_READLINK): Update.
28663
28664         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
28665
28666 2007-03-03  Bruno Haible  <bruno@clisp.org>
28667
28668         * lib/xreadlink.c: Include <unistd.h> unconditionally.
28669         * modules/xreadlink (Depends-on): Add unistd.
28670         * modules/xreadlink-with-size (Depends-on): Likewise.
28671
28672 2007-03-03  Bruno Haible  <bruno@clisp.org>
28673
28674         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
28675         extracted from gt_FUNC_SETENV.
28676         (gt_FUNC_SETENV): Remove macro.
28677         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
28678         remove gt_FUNC_SETENV.
28679
28680 2007-03-03  Bruno Haible  <bruno@clisp.org>
28681
28682         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
28683         ENABLE_RELOCATABLE here.
28684         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
28685
28686 2007-03-03  Bruno Haible  <bruno@clisp.org>
28687
28688         * modules/rbtreehash-list-tests (Depends-on): Add progname.
28689         * tests/test-rbtreehash_list.c: Include progname.h.
28690         (main): Call set_program_name.
28691
28692         * modules/rbtree-oset-tests (Depends-on): Add progname.
28693         * tests/test-rbtree_oset.c: Include progname.h.
28694         (main): Call set_program_name.
28695
28696         * modules/rbtree-list-tests (Depends-on): Add progname.
28697         * tests/test-rbtree_list.c: Include progname.h.
28698         (main): Call set_program_name.
28699
28700         * modules/linked-list-tests (Depends-on): Add progname.
28701         * tests/test-linked_list.c: Include progname.h.
28702         (main): Call set_program_name.
28703
28704 2007-03-03  Bruno Haible  <bruno@clisp.org>
28705
28706         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
28707         All uses of __restrict changed to _Restrict_.
28708         * lib/glob_.h (__restrict): Remove macro.
28709
28710 2007-03-02  Bruno Haible  <bruno@clisp.org>
28711
28712         * modules/gettext (configure.ac): Require gettext infrastructure
28713         from version 0.16.1.
28714
28715 2007-03-02  Bruno Haible  <bruno@clisp.org>
28716
28717         * modules/linkedhash-list-tests (Depends-on): Add progname.
28718         * tests/test-linkedhash_list.c: Include progname.h.
28719         (main): Call set_program_name.
28720
28721         * modules/carray-list-tests (Depends-on): Add progname.
28722         * tests/test-carray_list.c: Include progname.h.
28723         (main): Call set_program_name.
28724
28725         * modules/avltreehash-list-tests (Depends-on): Add progname.
28726         * tests/test-avltreehash_list.c: Include progname.h.
28727         (main): Call set_program_name.
28728
28729         * modules/avltree-oset-tests (Depends-on): Add progname.
28730         * tests/test-avltree_oset.c: Include progname.h.
28731         (main): Call set_program_name.
28732
28733         * modules/avltree-list-tests (Depends-on): Add progname.
28734         * tests/test-avltree_list.c: Include progname.h.
28735         (main): Call set_program_name.
28736
28737         * modules/array-oset-tests (Depends-on): Add progname.
28738         * tests/test-array_oset.c: Include progname.h.
28739         (main): Call set_program_name.
28740
28741         * modules/array-list-tests (Depends-on): Add progname.
28742         * tests/test-array_list.c: Include progname.h.
28743         (main): Call set_program_name.
28744
28745         * modules/argp-tests (Depends-on): Add progname.
28746         * tests/test-argp.c: Include argp.h first. Include progname.h.
28747         (main): Call set_program_name.
28748
28749 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
28750
28751         * doc/gnulib-tool.texi (Initial import): Reword description of
28752         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
28753         limited effect even if defined after the first system include.
28754
28755 2007-03-01  Bruno Haible  <bruno@clisp.org>
28756
28757         * build-aux/config.libpath: Update to libtool-1.5.22.
28758         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
28759
28760 2007-03-01  Bruno Haible  <bruno@clisp.org>
28761
28762         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
28763         foo_CFLAGS.
28764         Reported by Ralf Wildenhues.
28765
28766 2007-03-01  Bruno Haible  <bruno@clisp.org>
28767
28768         * build-aux/install-reloc: Remove object files left over by some
28769         compilers.
28770         Reported by Ralf Wildenhues.
28771
28772 2007-03-01  Bruno Haible  <bruno@clisp.org>
28773
28774         * build-aux/install-reloc: Break long lines.
28775
28776 2007-03-01  Bruno Haible  <bruno@clisp.org>
28777
28778         * doc/relocatable.texi: Document that it may not work on OpenBSD.
28779         Reported by Ralf Wildenhues.
28780
28781 2007-03-01  Bruno Haible  <bruno@clisp.org>
28782
28783         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
28784         include ordering constraints.
28785
28786 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
28787
28788         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
28789         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
28790         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
28791         as another example.
28792         * lib/time_.h: Fix misspelling.
28793         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
28794         Require gl_HEADER_TIME_H_DEFAULTS.
28795         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
28796         * m4/time_r.m4 (gl_TIME_R): Likewise.
28797         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
28798
28799 2007-03-01  Bruno Haible  <bruno@clisp.org>
28800
28801         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
28802         * m4/utimens.m4 (gl_UTIMENS): Likewise.
28803
28804 2007-03-01  Jim Meyering  <jim@meyering.net>
28805
28806         * modules/xreadlink (Maintainer): Add my name.
28807         * modules/xreadlink-with-size (Depends-on): Alphabetize.
28808
28809 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
28810             Bruno Haible  <bruno@clisp.org>
28811
28812         * build-aux/install-reloc: Compile also c-ctype.c.
28813         * build-aux/relocatable.sh.in: New file.
28814         * doc/relocatable.texi: New file.
28815         * doc/relocatable-maint.texi: New file.
28816         * doc/gnulib.texi: Include relocatable-maint.texi.
28817         * lib/progreloc.c: Include unistd.h unconditionally.
28818         * lib/relocwrapper.c: Include unistd.h unconditionally.
28819         Include c-ctype.h.
28820         (add_dotbin): Use c_tolower.
28821         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
28822         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
28823         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
28824         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
28825         to m4/relocatable-lib.m4.
28826         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
28827         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
28828         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
28829         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
28830         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
28831         * modules/relocatable: New file.
28832         * modules/relocatable-lib: New file.
28833         * modules/relocatable-script: New file.
28834
28835 2007-02-28  Bruno Haible  <bruno@clisp.org>
28836
28837         Import --enable-relocatable infrastructure.
28838         * build-aux/config.libpath: New file, from GNU gettext.
28839         * build-aux/install-reloc: New file, from GNU gettext.
28840         * build-aux/reloc-ldflags: New file, from GNU gettext.
28841         * lib/relocatable.h: New file, from GNU gettext.
28842         * lib/relocatable.c: New file, from GNU gettext.
28843         * lib/relocwrapper.c: New file, from GNU gettext.
28844         * m4/relocatable.m4: New file, from GNU gettext.
28845
28846 2007-02-28  Bruno Haible  <bruno@clisp.org>
28847
28848         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
28849
28850         * modules/xreadlink: New file, from GNU gettext with modifications.
28851         * lib/xreadlink.c: New file, from GNU gettext.
28852         * lib/xreadlink.h: Add comments.
28853         (xreadlink): New declaration.
28854
28855         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
28856         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
28857         lib/xreadlink-with-size.c.
28858         (configure.ac): Remove gl_XREADLINK invocation.
28859         (Makefile.am): Augment lib_SOURCES.
28860         * m4/xreadlink.m4: Remove file.
28861         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
28862         (xreadlink_with_size): Renamed from xreadink.
28863         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
28864         * modules/canonicalize (Depends-on): Replace xreadlink with
28865         xreadlink-with-size.
28866         * lib/canonicalize.c (canonicalize_filename_mode): Update.
28867
28868 2007-02-25  Jim Meyering  <jim@meyering.net>
28869
28870         * build-aux/announce-gen: When complaining about excess arguments,
28871         list them.
28872
28873 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
28874
28875         * README: Document signed integer overflow situation more
28876         accurately.
28877
28878 2007-02-25  Bruno Haible  <bruno@clisp.org>
28879
28880         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
28881         'a' or 'A' conversion.
28882
28883 2007-02-25  Bruno Haible  <bruno@clisp.org>
28884
28885         * modules/filename: Renamed from modules/pathname.
28886         (Files): Replace lib/pathname.h with lib/filename.h. Replace
28887         lib/concatpath.c with lib/concat-filename.c.
28888         (Makefile.am): Update.
28889         (Include): Replace pathname.h with filename.h.
28890         * lib/filename.h: Renamed from lib/pathname.h.
28891         (concatenated_filename): Renamed from concatenated_pathname.
28892         * lib/concat-filename.c: Renamed from lib/concatpath.c.
28893         (concatenated_filename): Renamed from concatenated_pathname.
28894         * lib/findprog.c: Include filename.h instead of pathname.h.
28895         (find_in_path): Update.
28896         * lib/javacomp.c: Include filename.h instead of pathname.h.
28897         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
28898         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
28899         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
28900         is_oldgcj_14_13_usable, is_javac_usable): Update.
28901         * lib/javaexec.c: Include filename.h instead of pathname.h.
28902         (execute_java_class): Update.
28903         * modules/findprog: Update.
28904         * modules/javacomp: Update.
28905         * modules/javaexec: Update.
28906         * MODULES.html.sh (File system functions): Add 'filename', remove
28907         'pathname'.
28908
28909 2007-02-25  Bruno Haible  <bruno@clisp.org>
28910
28911         * modules/printf-frexpl-tests: New file.
28912         * tests/test-printf-frexpl.c: New file.
28913
28914         * modules/printf-frexpl: New file.
28915         * lib/printf-frexpl.h: New file.
28916         * lib/printf-frexpl.c: New file.
28917         * m4/printf-frexpl.m4: New file.
28918
28919 2007-02-25  Bruno Haible  <bruno@clisp.org>
28920
28921         * modules/printf-frexp-tests: New file.
28922         * tests/test-printf-frexp.c: New file.
28923
28924         * modules/printf-frexp: New file.
28925         * lib/printf-frexp.h: New file.
28926         * lib/printf-frexp.c: New file.
28927         * m4/printf-frexp.m4: New file.
28928
28929 2007-02-25  Bruno Haible  <bruno@clisp.org>
28930
28931         Assume automake >= 1.10 for the tests.
28932         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
28933         * modules/arctwo-tests: Likewise.
28934         * modules/argp-tests: Likewise.
28935         * modules/avltree-list-tests: Likewise.
28936         * modules/avltree-oset-tests: Likewise.
28937         * modules/avltreehash-list-tests: Likewise.
28938         * modules/carray-list-tests: Likewise.
28939         * modules/crc-tests: Likewise.
28940         * modules/des-tests: Likewise.
28941         * modules/gc-arcfour-tests: Likewise.
28942         * modules/gc-arctwo-tests: Likewise.
28943         * modules/gc-des-tests: Likewise.
28944         * modules/gc-hmac-md5-tests: Likewise.
28945         * modules/gc-hmac-sha1-tests: Likewise.
28946         * modules/gc-md2-tests: Likewise.
28947         * modules/gc-md4-tests: Likewise.
28948         * modules/gc-md5-tests: Likewise.
28949         * modules/gc-pbkdf2-sha1-tests: Likewise.
28950         * modules/gc-rijndael-tests: Likewise.
28951         * modules/gc-sha1-tests: Likewise.
28952         * modules/gc-tests: Likewise.
28953         * modules/getaddrinfo-tests: Likewise.
28954         * modules/hmac-md5-tests: Likewise.
28955         * modules/hmac-sha1-tests: Likewise.
28956         * modules/linked-list-tests: Likewise.
28957         * modules/linkedhash-list-tests: Likewise.
28958         * modules/lock-tests: Likewise.
28959         * modules/md2-tests: Likewise.
28960         * modules/md4-tests: Likewise.
28961         * modules/md5-tests: Likewise.
28962         * modules/rbtree-list-tests: Likewise.
28963         * modules/rbtree-oset-tests: Likewise.
28964         * modules/rbtreehash-list-tests: Likewise.
28965         * modules/read-file-tests: Likewise.
28966         * modules/rijndael-tests: Likewise.
28967         * modules/stdint-tests: Likewise.
28968         * modules/tls-tests: Likewise.
28969
28970 2007-02-24  Bruno Haible  <bruno@clisp.org>
28971
28972         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
28973         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
28974         function; instead check whether isnan with a double argument links.
28975         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
28976         function; instead check whether isnan with a 'long double' argument
28977         links.
28978         Reported by Eric Blake <ebb9@byu.net>.
28979
28980 2007-02-24  Bruno Haible  <bruno@clisp.org>
28981
28982         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
28983         defined.
28984         * lib/isnanl.c: Remove all code. Just include isnan.c.
28985         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
28986
28987 2007-02-25  Jim Meyering  <jim@meyering.net>
28988
28989         Avoid conflicting types for 'unsetenv' on FreeBSD.
28990         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
28991         conflicting with FreeBSD's (5.0 and 6.1) function declaration
28992         in stdlib.h.
28993
28994 2007-02-24  Bruno Haible  <bruno@clisp.org>
28995
28996         * modules/isnanl-nolibm-tests: New file.
28997         * tests/test-isnanl.c: New file.
28998
28999         * modules/isnanl-nolibm: New file.
29000         * lib/isnanl.h: New file.
29001         * lib/isnanl.c: New file.
29002         * m4/isnanl.m4: New file.
29003
29004 2007-02-24  Bruno Haible  <bruno@clisp.org>
29005
29006         * modules/isnan-nolibm-tests: New file.
29007         * tests/test-isnan.c: New file.
29008
29009         * modules/isnan-nolibm: New file.
29010         * lib/isnan.h: New file.
29011         * lib/isnan.c: New file.
29012         * m4/isnan.m4: New file.
29013
29014 2007-02-24  Bruno Haible  <bruno@clisp.org>
29015
29016         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
29017         assume that an exponent fits in 20 bits.
29018
29019 2007-02-24  Jim Meyering  <jim@meyering.net>
29020
29021         * m4/regex.m4: Update the description of the configure-time option,
29022         --without-included-regex, to state accurately what the defaults are,
29023         and perhaps to give people an idea why using this option is risky.
29024
29025 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
29026
29027         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
29028         loops on small arguments.  This attempts to avoid the problem
29029         Bruno Haible reported for AIX 4.3.2 in
29030         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
29031
29032 2007-02-23  Bruno Haible  <bruno@clisp.org>
29033
29034         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
29035         Needed for help2man.
29036
29037 2007-02-23  Karl Berry  <karl@gnu.org>
29038
29039         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
29040         exists, foo.h should be cvs-ignored, not committed.
29041
29042 2007-02-23  Eric Blake  <ebb9@byu.net>
29043
29044         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
29045         * lib/stat-time.h (includes): Likewise.
29046         * lib/utimecmp.c (includes): Likewise.
29047         * lib/utimens.h (includes): Likewise.
29048         * lib/getdate.y (includes): Also include "timespec.h" for use
29049         internal to the module.
29050         * modules/utimens (Depends-on): Revert yesterday's patch.
29051         * modules/nanosleep (Depends-on): Add missing dependency.
29052
29053 2007-02-22  Bruno Haible  <bruno@clisp.org>
29054
29055         * lib/glob.c: Don't include getlogin_r.h.
29056
29057 2007-02-22  Jim Meyering  <jim@meyering.net>
29058
29059         * modules/utimens (Depends-on): Add timespec, required for
29060         utimens.h's inclusion of timespec.h.
29061
29062 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
29063
29064         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
29065         long unreadable paths in GNU/Linux.  Problem reported by Andreas
29066         Schwab in
29067         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
29068         I'll try to think of a better way to fix the Solaris problem.
29069
29070         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
29071         like glibc; on Solaris 10, it fails with errno == EINVAL.
29072         POSIX says the behavior is unspecified if the first argument is NULL,
29073         so play it safe and never pass NULL to the system getcwd.
29074
29075 2007-02-21  Jim Meyering  <jim@meyering.net>
29076
29077         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
29078         of gettimeofday.  It would conflict with the one now always
29079         provided via sys_time_.h.  Reported by Matthew Woehlke, as
29080         an IRIX 6.5 build failure.
29081
29082 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
29083
29084         Minor fixups to port to Solaris 10 with Sun C 5.8.
29085         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
29086         * modules/getcwd (Depends-on): Add dirfd.
29087         * lib/putenv.c (putenv): #undef it.
29088         (rpl_putenv): New decl.
29089         (malloc, free): Include <stdlib.h> rather than prototyping separately.
29090
29091 2007-02-20  Bruno Haible  <bruno@clisp.org>
29092
29093         * modules/stdio-tests: New file.
29094         * tests/test-stdio.c: New file.
29095
29096         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
29097         (Depends-on): Add stdio.
29098         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
29099         (Include): Use <stdio.h> instead of vsnprintf.h.
29100         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
29101         HAVE_DECL_VSNPRINTF.
29102         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
29103
29104         * modules/snprintf (Files): Remove lib/snprintf.h.
29105         (Depends-on): Add stdio.
29106         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
29107         (Include): Use <stdio.h> instead of snprintf.h.
29108         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
29109         HAVE_DECL_SNPRINTF.
29110         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
29111         * lib/getaddrinfo.c: Likewise.
29112
29113         * modules/stdio: New file.
29114         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
29115         * lib/snprintf.h: Remove file.
29116         * lib/vsnprintf.h: Remove file.
29117         * lib/.cppi-disable: Remove snprintf.h.
29118         * m4/stdio_h.m4: New file.
29119         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
29120
29121 2007-02-20  Jim Meyering  <jim@meyering.net>
29122
29123         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
29124         used by e.g., mingw.  From Bruno Haible.
29125
29126 2007-02-19  Bruno Haible  <bruno@clisp.org>
29127
29128         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
29129         warnings.
29130         Reported by Ben Pfaff <blp@cs.stanford.edu>.
29131
29132 2007-02-19  Bruno Haible  <bruno@clisp.org>
29133
29134         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
29135         from mingw users.
29136
29137 2007-02-19  Bruno Haible  <bruno@clisp.org>
29138
29139         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
29140         warnings.
29141         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
29142
29143 2007-02-19  Jim Meyering  <jim@meyering.net>
29144
29145         Don't use FD after a successful "fdopendir (fd)".
29146         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
29147         Reset it by calling dirfd on the just-obtained DIR*.
29148
29149         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
29150         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
29151
29152 2007-02-18  Bruno Haible  <bruno@clisp.org>
29153
29154         * lib/readlink.c: Include <unistd.h>.
29155         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
29156         HAVE_READLINK.
29157         * modules/readlink (Depends-on): Add unistd.
29158         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
29159         (Include): Add <unistd.h>.
29160
29161         * lib/getlogin_r.h: Remove file.
29162         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
29163         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
29164         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
29165         HAVE_DECL_GETLOGIN_R.
29166         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
29167         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
29168         (Include): Use <unistd.h> instead of getlogin_r.h.
29169
29170         * lib/getcwd.h: Remove file.
29171         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
29172         * lib/xgetcwd.c: Likewise.
29173         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
29174         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
29175         * modules/getcwd (Files): Remove lib/getcwd.h.
29176         (Depends-on): Add unistd.
29177         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
29178         (Include): Use <unistd.h> instad of getcwd.h.
29179
29180         * lib/ftruncate.c: Include <unistd.h> first.
29181         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
29182         Set HAVE_FTRUNCATE.
29183         * modules/ftruncate (Depends-on): Add unistd.
29184         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
29185
29186         * lib/fchdir.c: Include <unistd.h> first.
29187         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
29188         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
29189         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
29190         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
29191         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
29192
29193         * lib/dup2.c: Include <unistd.h> first.
29194         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
29195         HAVE_DUP2.
29196         * modules/dup2 (Depends-on): Add unistd.
29197         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
29198
29199         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
29200         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
29201         REPLACE_CHOWN. Don't define chown as a macro here.
29202         * modules/chown (Depends-on): Add unistd.
29203         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
29204
29205         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
29206         Add definition for GL_LINK_WARNING.
29207         (chown, dup2): New declarations.
29208         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
29209         link warning.
29210         (ftruncate): New declaration.
29211         (getcwd): New declaration, taken from old getcwd.h.
29212         (getlogin_r): New declaration, taken from old getlogin_r.h.
29213         (readlink): New declaration.
29214         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
29215         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
29216         (gl_PREREQ_UNISTD): Remove macro.
29217         (gl_UNISTD_MODULE_INDICATOR): New macro.
29218         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
29219         many new variables. Don't set UNISTD_H.
29220         * modules/unistd (Description): Change.
29221         (Depends-on): Add link-warning.
29222         (configure.ac): Update.
29223         (Makefile.am): Create unistd.h always. Substitute many new variables
29224         into it.
29225
29226 2007-02-18  Bruno Haible  <bruno@clisp.org>
29227
29228         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
29229         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
29230         HAVE_GETSUBOPT.
29231         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
29232         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
29233         * lib/getsubopt.h: Remove file.
29234         * modules/getsubopt (Files): Remove lib/getsubopt.h.
29235         (Depends-on): Add stdlib.
29236         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
29237         (Includes): Use <stdlib.h> instead of getsubopt.h.
29238         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
29239         Set HAVE_GETSUBOPT.
29240         * lib/getsubopt.c: Don't include getsubopt.h.
29241
29242 2007-02-18  Bruno Haible  <bruno@clisp.org>
29243
29244         * modules/fchdir (Depends-on): Add dup2.
29245
29246 2007-02-18  Bruno Haible  <bruno@clisp.org>
29247
29248         * lib/stdlib_.h: Handle glibc's special invocation convention
29249         specially.
29250
29251 2007-02-18  Bruno Haible  <bruno@clisp.org>
29252
29253         * modules/stdlib-tests: New file.
29254         * tests/test-stdlib.c: New file.
29255
29256         * modules/mkstemp (Files): Remove lib/mkstemp.h.
29257         (Depends-on): Add stdlib.
29258         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
29259         (Includes): Use <stdlib.h> instead of mkstemp.h.
29260         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
29261         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
29262         * lib/mkstemp.c: Don't include mkstemp.h.
29263         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
29264         * lib/stdlib--.h: Don't include mkstemp.h.
29265
29266         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
29267         (Depends-on): Add stdlib.
29268         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
29269         (Includes): Use <stdlib.h> instead of mkdtemp.h.
29270         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
29271         HAVE_MKDTEMP.
29272         * lib/mkdtemp.c: Don't include mkdtemp.h.
29273         * lib/clean-temp.c: Don't include mkdtemp.h.
29274
29275         * modules/exit (Files): Remove lib/exit.h.
29276         (Depends-on): Add stdlib.
29277         (Makefile.am): Remove lib_SOURCES.
29278         (Include): Use <stdlib.h> instead of exit.h.
29279         * lib/argmatch.c: Don't include exit.h.
29280         * lib/execute.c: Likewise.
29281         * lib/pagealign_alloc.c: Likewise.
29282         * lib/pipe.c: Likewise.
29283         * lib/wait-process.c: Likewise.
29284         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
29285         * lib/exitfail.c: Likewise.
29286         * lib/savewd.c: Likewise.
29287         * lib/xsetenv.c: Likewise.
29288
29289         * modules/stdlib: New file.
29290         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
29291         and extra comments about mkstemp().
29292         * lib/exit.h: Remove file.
29293         * lib/mkdtemp.h: Remove file.
29294         * lib/mkstemp.h: Remove file.
29295         * m4/stdlib_h.m4: New file.
29296         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
29297
29298 2007-02-18  Bruno Haible  <bruno@clisp.org>
29299
29300         * modules/math-tests: New file.
29301         * tests/test-math.c: New file.
29302
29303         * modules/math: New file.
29304         * modules/mathl (Files): Remove lib/mathl.h.
29305         (Depends-on): Add math.
29306         (Makefile.am): Don't mention mathl.h.
29307         (Include): Use <math.h> instead of mathl.h.
29308         * lib/math_.h: New file.
29309         * lib/mathl.h: Remove file.
29310         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
29311         mathl.h.
29312         * lib/asinl.c: Likewise.
29313         * lib/atanl.c: Likewise.
29314         * lib/ceill.c: Likewise.
29315         * lib/cosl.c: Likewise.
29316         * lib/expl.c: Likewise.
29317         * lib/floorl.c: Likewise.
29318         * lib/frexpl.c: Likewise.
29319         * lib/ldexpl.c: Likewise.
29320         * lib/logl.c: Likewise.
29321         * lib/sincosl.c: Likewise.
29322         * lib/sinl.c: Likewise.
29323         * lib/sqrtl.c: Likewise.
29324         * lib/tanl.c: Likewise.
29325         * lib/trigl.c: Likewise.
29326         * m4/math_h.m4: New file.
29327         * MODULES.html.sh (Mathematics): Add math.
29328
29329 2007-02-17  Bruno Haible  <bruno@clisp.org>
29330
29331         * modules/wctype-tests: New file.
29332         * tests/test-wctype.c: New file.
29333
29334         * modules/wchar-tests: New file.
29335         * tests/test-wchar.c: New file.
29336
29337         * modules/unistd-tests: New file.
29338         * tests/test-unistd.c: New file.
29339
29340         * modules/time-tests: New file.
29341         * tests/test-time.c: New file.
29342
29343         * modules/sysexits-tests: New file.
29344         * tests/test-sysexits.c: New file.
29345
29346         * modules/sys_time-tests: New file.
29347         * tests/test-sys_time.c: New file.
29348
29349         * modules/sys_stat-tests: New file.
29350         * tests/test-sys_stat.c: New file.
29351
29352         * modules/sys_socket-tests: New file.
29353         * tests/test-sys_socket.c: New file.
29354
29355         * modules/sys_select-tests: New file.
29356         * tests/test-sys_select.c: New file.
29357
29358         * modules/string-tests: New file.
29359         * tests/test-string.c: New file.
29360
29361         * modules/stdbool-tests: New file.
29362         * tests/test-stdbool.c: New file.
29363
29364         * modules/netinet_in-tests: New file.
29365         * tests/test-netinet_in.c: New file.
29366
29367         * modules/inttypes-tests: New file.
29368         * tests/test-inttypes.c: New file.
29369
29370         * modules/fcntl-tests: New file.
29371         * tests/test-fcntl.c: New file.
29372
29373         * modules/byteswap-tests: New file.
29374         * tests/test-byteswap.c: New file.
29375
29376         * modules/arpa_inet-tests: New file.
29377         * tests/test-arpa_inet.c: New file.
29378
29379 2007-02-17  Bruno Haible  <bruno@clisp.org>
29380
29381         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
29382         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
29383         if the corresponding module is not enabled. Emit link warnings if
29384         the function is used nevertheless.
29385         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
29386         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
29387         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
29388         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
29389         * modules/inttypes (Depends-on): Add link-warning.
29390         (Makefile.am): Copy the contents of build-aux/link-warning.h into
29391         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
29392         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
29393         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
29394         * modules/imaxdiv (configure.ac): Likewise.
29395         * modules/strtoimax (configure.ac): Likewise.
29396         * modules/strtoumax (configure.ac): Likewise.
29397
29398 2007-02-17  Bruno Haible  <bruno@clisp.org>
29399
29400         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
29401         gl_STRING_MODULE_INDICATOR_DEFAULTS.
29402         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
29403         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
29404
29405 2007-02-17  Bruno Haible  <bruno@clisp.org>
29406
29407         * modules/link-warning: New file.
29408         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
29409         * lib/string_.h (GL_LINK_WARNING): Remove definition.
29410         * modules/string (Depends-on): Add link-warning.
29411         (Makefile.am): Copy the contents of build-aux/link-warning.h into
29412         string.h.
29413         * MODULES.html.sh (Support for building libraries and executables): Add
29414         link-warning.
29415
29416 2007-02-17  Bruno Haible  <bruno@clisp.org>
29417
29418         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
29419         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
29420         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
29421         long lines.
29422
29423 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
29424             Bruno Haible  <bruno@clisp.org>
29425
29426         * modules/tmpfile: New file.
29427         * lib/tmpfile.c: New file.
29428         * m4/tmpfile.m4: New file.
29429         * MODULES.html.sh (func_all_modules): New section "Input/output".
29430
29431 2007-02-15  Bruno Haible  <bruno@clisp.org>
29432
29433         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
29434         (supports_delete_on_close): New function.
29435         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
29436
29437 2007-02-14  Bruno Haible  <bruno@clisp.org>
29438
29439         * modules/mbspcasecmp-tests: New file.
29440         * tests/test-mbspcasecmp.sh: New file.
29441         * tests/test-mbspcasecmp.c: New file.
29442
29443         New module mbspcasecmp.
29444         * modules/mbspcasecmp: New file.
29445         * lib/mbspcasecmp.c: New file.
29446         * lib/string_.h (strncasecmp): Change warning message.
29447         (mbspcasecmp): New declaration.
29448         * m4/mbspcasecmp.m4: New file.
29449         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
29450         GNULIB_MBSPCASECMP.
29451         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
29452         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
29453
29454 2007-02-14  Bruno Haible  <bruno@clisp.org>
29455
29456         * modules/mbsncasecmp-tests: New file.
29457         * tests/test-mbsncasecmp.sh: New file.
29458         * tests/test-mbsncasecmp.c: New file.
29459
29460         New module mbsncasecmp.
29461         * modules/mbsncasecmp: New file.
29462         * lib/mbsncasecmp.c: New file.
29463         * lib/string_.h (mbsncasecmp): New declaration.
29464         * m4/mbsncasecmp.m4: New file.
29465         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
29466         GNULIB_MBSNCASECMP.
29467         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
29468         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
29469
29470 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
29471
29472         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
29473         Verify that it doesn't overlap with our flags.
29474         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
29475         do not have the desired effect in multibyte locales; instead, use
29476         mbscasecmp.
29477         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
29478         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
29479         we don't require GNU fnmatch ourselves (if our users require it, they
29480         should do so explicitly).
29481
29482         Fix regex code so it doesn't rely on strcasecmp.
29483         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
29484         Otherwise, include gnulib's langinfo.h.
29485         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
29486         undesirable behavior in non-C locales.  Instead, rely on localecharset.
29487         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
29488         * modules/regex (FILES): Remove m4/codeset.m4.
29489         (Depends-on): Add localcharset.  Remove strcase.
29490
29491 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29492
29493         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
29494         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
29495
29496 2007-02-13  Bruno Haible  <bruno@clisp.org>
29497
29498         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
29499         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29500
29501 2007-02-12  Bruno Haible  <bruno@clisp.org>
29502
29503         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
29504         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
29505         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
29506         time warning rather than a link error.
29507
29508 2007-02-12  Bruno Haible  <bruno@clisp.org>
29509
29510         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
29511         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
29512         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
29513
29514 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
29515
29516         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
29517         args, not 2.
29518
29519 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
29520
29521         New module 'time', so that apps can include <time.h> as per
29522         POSIX and GNU instead of separate include files like time_r.h
29523         and timegm.h.  This implementation tries out a simpler approach
29524         for replacing decls in standard include files (as compared to
29525         the string module), somewhat as an experiment.
29526
29527         * config/srclist.txt: Comment out mktime.c for now.
29528         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
29529         since it doesn't apply any more.  Use generic wording instead.
29530         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
29531         'time'.
29532         * lib/time_.h, m4/time_h.m4, modules/time: New files.
29533         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
29534         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
29535         Don't include <sys/types.h>; no longer needed since we assume C89.
29536         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
29537         * lib/strftime.c: Likewise.
29538         * lib/time_r.c: Likewise.
29539         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
29540         * lib/nanosleep.c: Include <time.h> first, to check interface.
29541         * lib/strptime.c: Likewise.
29542         * lib/time_r.c: Likewise.
29543         * lib/timegm.c: Likewise.
29544         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
29545         needed.
29546         * lib/timegm.c: Don't include timegm.h; no longer needed.
29547         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
29548         time.h now handles any problems in that area.
29549         (struct timespec, nanosleep): Remove; time.h now arranges for these.
29550         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
29551         that time.h defines struct timespec.
29552         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
29553         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
29554         handles that.
29555         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
29556         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
29557         needed.  Set REPLACE_LOCALTIME.
29558         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
29559         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
29560         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
29561         nanosleep; time_h.m4 now does that.  Don't require
29562         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
29563         module handles this now.
29564         * modules/getdate (Depends-on): Remove timespec.  Add time.
29565         * modules/nanosleep (Depends-on): Likewise.
29566         * modules/stat-time (Depends-on): Likewise.
29567         * modules/nanosleep (Include): Include time.h, not timespec.h.
29568         * modules/strptime (Files): Remove lib/strptime.h.
29569         (Depends-on): Add extensions, time.
29570         (Include): Include time.h, not strptime.h.
29571         * modules/time_r (Files): Remove lib/time_r.h.
29572         (Depends-on): Add time.
29573         (Include): Include time.h, not time_r.h.
29574         * modules/timegm: Likewise.
29575         * modules/timespec (Description): Now does timespec-related decls
29576         of our own, instead of struct timespec itself.
29577         (Depends-on): Add time; remove extensions.
29578         (Maintainer): Add self.
29579         * modules/utimecmp (Depends-on): Add time; remove timespec.
29580         * modules/utimens (Depends-on): Likewise.
29581         * modules/xnanosleep (Depends-on): Likewise.
29582
29583 2007-02-11  Bruno Haible  <bruno@clisp.org>
29584
29585         * lib/c-strstr.c: Include allocsa.h.
29586         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
29587         * lib/c-strcasestr.c: Include allocsa.h.
29588         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
29589         * lib/strcasestr.c: Include allocsa.h.
29590         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
29591         * lib/mbsstr.c: Include allocsa.h.
29592         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
29593         allocsa/freesa instead of malloc/free.
29594         * lib/mbscasestr.c: Include allocsa.h.
29595         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
29596         allocsa/freesa instead of malloc/free.
29597         * modules/c-strstr (Depends-on): Add allocsa.
29598         * modules/c-strcasestr (Depends-on): Likewise.
29599         * modules/strcasestr (Depends-on): Likewise.
29600         * modules/mbsstr (Depends-on): Likewise.
29601         * modules/mbscasestr (Depends-on): Likewise.
29602
29603 2007-02-11  Bruno Haible  <bruno@clisp.org>
29604
29605         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
29606
29607         * modules/mbsspn-tests: New file.
29608         * tests/test-mbsspn.sh: New file.
29609         * tests/test-mbsspn.c: New file.
29610
29611 2007-02-11  Bruno Haible  <bruno@clisp.org>
29612
29613         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
29614
29615         * modules/mbspbrk-tests: New file.
29616         * tests/test-mbspbrk.sh: New file.
29617         * tests/test-mbspbrk.c: New file.
29618
29619 2007-02-11  Bruno Haible  <bruno@clisp.org>
29620
29621         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
29622         unneeded cast.
29623
29624         * modules/mbscspn-tests: New file.
29625         * tests/test-mbscspn.sh: New file.
29626         * tests/test-mbscspn.c: New file.
29627
29628 2007-02-11  Bruno Haible  <bruno@clisp.org>
29629
29630         * modules/mbscasecmp-tests: New file.
29631         * tests/test-mbscasecmp.sh: New file.
29632         * tests/test-mbscasecmp.c: New file.
29633
29634 2007-02-11  Bruno Haible  <bruno@clisp.org>
29635
29636         Ensure O(n) worst-case complexity of mbscasestr.
29637         * lib/mbscasestr.c: Include stdbool.h.
29638         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
29639         functions.
29640         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
29641         the bookkeeping indicates that it's worth it.
29642         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
29643
29644         * modules/mbscasestr-tests: New file.
29645         * tests/test-mbscasestr1.c: New file.
29646         * tests/test-mbscasestr2.sh: New file.
29647         * tests/test-mbscasestr2.c: New file.
29648         * tests/test-mbscasestr3.sh: New file.
29649         * tests/test-mbscasestr3.c: New file.
29650         * tests/test-mbscasestr4.sh: New file.
29651         * tests/test-mbscasestr4.c: New file.
29652         * m4/locale-tr.m4: New file.
29653
29654 2007-02-11  Bruno Haible  <bruno@clisp.org>
29655
29656         Ensure O(n) worst-case complexity of mbsstr.
29657         * lib/mbsstr.c: Include stdbool.h.
29658         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
29659         functions.
29660         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
29661         bookkeeping indicates that it's worth it.
29662         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
29663
29664         * modules/mbsstr-tests: New file.
29665         * tests/test-mbsstr1.c: New file.
29666         * tests/test-mbsstr2.sh: New file.
29667         * tests/test-mbsstr2.c: New file.
29668         * tests/test-mbsstr3.sh: New file.
29669         * tests/test-mbsstr3.c: New file.
29670         * m4/locale-fr.m4: New file.
29671
29672 2007-02-11  Bruno Haible  <bruno@clisp.org>
29673
29674         * lib/mbsrchr.c (mbsrchr): Fix bug.
29675
29676         * modules/mbsrchr-tests: New file.
29677         * tests/test-mbsrchr.sh: New file.
29678         * tests/test-mbsrchr.c: New file.
29679
29680 2007-02-11  Bruno Haible  <bruno@clisp.org>
29681
29682         * lib/mbschr.c (mbschr): Fix bug.
29683
29684         * modules/mbschr-tests: New file.
29685         * tests/test-mbschr.sh: New file.
29686         * tests/test-mbschr.c: New file.
29687         * m4/locale-zh.m4: New file.
29688
29689 2007-02-11  Bruno Haible  <bruno@clisp.org>
29690
29691         Support for copying multibyte string iterators.
29692         * lib/mbiter.h: Include <string.h>.
29693         (mbiter_multi_copy): New function.
29694         (mbi_copy): New macro.
29695         * lib/mbuiter.h: Include <string.h>.
29696         (mbuiter_multi_copy): New function.
29697         (mbui_copy): New macro.
29698
29699 2007-02-11  Bruno Haible  <bruno@clisp.org>
29700
29701         New module mbslen.
29702         * modules/mbslen: New file.
29703         * lib/mbslen.c: New file.
29704         * lib/string_.h (mbslen): New declaration.
29705         * m4/mbslen.m4: New file.
29706         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
29707         GNULIB_MBSLEN.
29708         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
29709         * MODULES.html.sh (Internationalization functions): Add mbslen.
29710
29711 2007-02-11  Bruno Haible  <bruno@clisp.org>
29712
29713         Ensure O(n) worst-case complexity of strcasestr substitute.
29714         * lib/strcasestr.c: Include stdbool.h.
29715         (knuth_morris_pratt): New function.
29716         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
29717         bookkeeping indicates that it's worth it.
29718         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
29719
29720         * modules/strcasestr-tests: New file.
29721         * tests/test-strcasestr.c: New file.
29722
29723 2007-02-11  Bruno Haible  <bruno@clisp.org>
29724
29725         Ensure O(n) worst-case complexity of c_strcasestr.
29726         * lib/c-strcasestr.c: Include stdbool.h, string.h.
29727         (knuth_morris_pratt): New function.
29728         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
29729         the bookkeeping indicates that it's worth it.
29730         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
29731
29732         * modules/c-strcasestr-tests: New file.
29733         * tests/test-c-strcasestr.c: New file.
29734
29735 2007-02-11  Bruno Haible  <bruno@clisp.org>
29736
29737         Ensure O(n) worst-case complexity of c_strstr.
29738         * lib/c-strstr.c: Include stdbool.h, string.h.
29739         (knuth_morris_pratt): New function.
29740         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
29741         bookkeeping indicates that it's worth it.
29742         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
29743
29744         * lib/c-strstr.c: Complete rewrite for maintainability.
29745
29746         * modules/c-strstr-tests: New file.
29747         * tests/test-c-strstr.c: New file.
29748
29749 2007-02-11  Bruno Haible  <bruno@clisp.org>
29750
29751         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
29752         5.2.1 and earlier, whereby \055 was treated just like the range
29753         delimiter '-'.
29754         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
29755
29756 2007-02-08  Bruno Haible  <bruno@clisp.org>
29757
29758         * modules/regex (Depends-on): Add stdbool.
29759         Reported by Dalibor Topic <robilad@kaffe.org>.
29760
29761 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
29762
29763         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
29764         Prefer returning from main to exiting from it.
29765         Remove unnecessary parens after sizeof.
29766
29767 2007-02-05  Bruno Haible  <bruno@clisp.org>
29768
29769         New module mbssep.
29770         * modules/mbssep: New file.
29771         * lib/mbssep.c: New file.
29772         * lib/string_.h (strsep): Add a conditional link warning.
29773         (mbssep): New declaration.
29774         * m4/mbssep.m4: New file.
29775         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
29776         GNULIB_MBSSEP.
29777         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
29778         * MODULES.html.sh (Internationalization functions): Add mbssep.
29779
29780 2007-02-05  Bruno Haible  <bruno@clisp.org>
29781
29782         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
29783         Optimize search in case of 1 delimiter.
29784
29785 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
29786
29787         * lib/acl.h: Include sys/types.h before sys/acl.h.
29788
29789 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
29790
29791         Merge upstream fix for glibc bugzilla #3957:
29792
29793         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
29794
29795         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
29796         bit for RE_HAT_LISTS_NOT_NEWLINE.
29797         (build_charclass_op): Remove bogus comment.
29798
29799 2007-02-05  Simon Josefsson  <simon@josefsson.org>
29800
29801         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
29802
29803 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
29804
29805         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
29806         * lib/memmem.c [!defined _LIBC]: Include config.h.
29807
29808 2007-02-04  Bruno Haible  <bruno@clisp.org>
29809
29810         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
29811         warning message.
29812
29813 2007-02-04  Bruno Haible  <bruno@clisp.org>
29814
29815         New module mbstok_r.
29816         * modules/mbstok_r: New file.
29817         * lib/mbstok_r.c: New file.
29818         * lib/string_.h (strtok_r): Change argument names to match the
29819         comments. Add a conditional link warning.
29820         (mbstok_r): New declaration.
29821         * m4/mbstok_r.m4: New file.
29822         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
29823         GNULIB_MBSTOK_R.
29824         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
29825         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
29826
29827 2007-02-04  Bruno Haible  <bruno@clisp.org>
29828
29829         New module mbsspn.
29830         * modules/mbsspn: New file.
29831         * lib/mbsspn.c: New file.
29832         * lib/string_.h (strspn): Add a conditional link warning.
29833         (mbsspn): New declaration.
29834         * m4/mbsspn.m4: New file.
29835         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
29836         GNULIB_MBSSPN.
29837         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
29838         * MODULES.html.sh (Internationalization functions): Add mbsspn.
29839
29840 2007-02-04  Bruno Haible  <bruno@clisp.org>
29841
29842         New module mbspbrk.
29843         * modules/mbspbrk: New file.
29844         * lib/mbspbrk.c: New file.
29845         * lib/string_.h (strpbrk): Add a conditional link warning.
29846         (mbspbrk): New declaration.
29847         * m4/mbspbrk.m4: New file.
29848         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
29849         GNULIB_MBSPBRK.
29850         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
29851         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
29852
29853 2007-02-04  Bruno Haible  <bruno@clisp.org>
29854
29855         New module mbscspn.
29856         * modules/mbscspn: New file.
29857         * lib/mbscspn.c: New file.
29858         * lib/string_.h (strcspn): Add a conditional link warning.
29859         (mbscspn): New declaration.
29860         * m4/mbscspn.m4: New file.
29861         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
29862         GNULIB_MBSCSPN.
29863         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
29864         * MODULES.html.sh (Internationalization functions): Add mbscspn.
29865
29866 2007-02-04  Bruno Haible  <bruno@clisp.org>
29867
29868         New module mbscasestr, reduced goal of strcasestr.
29869         * modules/mbscasestr: New file.
29870         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
29871         (mbscasestr): Renamed from strcasestr.
29872         * lib/strcasestr.c: Don't include mbuiter.h.
29873         (strcasestr): Remove support for multibyte locales.
29874         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
29875         Change the conditional link warning.
29876         (mbscasestr): New declaration.
29877         * m4/mbscasestr.m4: New file.
29878         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
29879         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
29880         REPLACE_STRCASESTR.
29881         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
29882         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
29883         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
29884         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
29885         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
29886         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
29887         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
29888         (Depends-on): Remove mbuiter.
29889         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
29890
29891 2007-02-04  Bruno Haible  <bruno@clisp.org>
29892
29893         Simplify handling of strncasecmp.
29894         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
29895         the conditional link warning.
29896         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
29897         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
29898         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
29899         * modules/strcase (configure.ac): Don't invoke
29900         gl_STRING_MODULE_INDICATOR.
29901         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
29902
29903 2007-02-04  Bruno Haible  <bruno@clisp.org>
29904
29905         New module mbscasecmp, reduced goal of strcasecmp.
29906         * modules/mbscasecmp: New file.
29907         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
29908         (mbscasecmp): Renamed from strcasecmp.
29909         * lib/strcasecmp.c: Don't include mbuiter.h.
29910         (strcasecmp): Remove support for multibyte locales.
29911         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
29912         Change the conditional link warning.
29913         (mbscasecmp): New declaration.
29914         * m4/mbscasecmp.m4: New file.
29915         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
29916         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
29917         REPLACE_STRCASECMP.
29918         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
29919         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
29920         GNULIB_MBSCASECMP.
29921         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
29922         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
29923         * modules/strcase (Files): Remove m4/mbrtowc.m4.
29924         (Depends-on): Remove mbuiter.
29925         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
29926
29927 2007-02-04  Bruno Haible  <bruno@clisp.org>
29928
29929         New module mbsstr. Remove module strstr.
29930         * modules/mbsstr: New file.
29931         * modules/strstr: Remove file.
29932         * lib/mbsstr.c: Renamed from lib/strstr.c.
29933         (mbsstr): Renamed from strstr.
29934         * lib/string_.h (strstr): Remove declaration. Change the conditional
29935         link warning.
29936         (mbsstr): New declaration.
29937         * m4/mbsstr.m4: New file.
29938         * m4/strstr.m4: Remove file.
29939         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
29940         REPLACE_STRSTR.
29941         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
29942         Don't initialize GNULIB_STRSTR.
29943         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
29944         substitute GNULIB_STRSTR and REPLACE_STRSTR.
29945         * MODULES.html.sh (Internationalization functions): Add mbsstr.
29946         (Support for systems lacking ANSI C 89): Remove strstr.
29947
29948 2007-02-04  Bruno Haible  <bruno@clisp.org>
29949
29950         New module mbsrchr.
29951         * modules/mbsrchr: New file.
29952         * lib/mbsrchr.c: New file.
29953         * lib/string_.h (strrchr): Add a conditional link warning.
29954         (mbsrchr): New declaration.
29955         * m4/mbsrchr.m4: New file.
29956         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
29957         GNULIB_MBSRCHR.
29958         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
29959         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
29960
29961 2007-02-04  Bruno Haible  <bruno@clisp.org>
29962
29963         New module mbschr.
29964         * modules/mbschr: New file.
29965         * lib/mbschr.c: New file.
29966         * lib/string_.h (strchr): Add a conditional link warning.
29967         (mbschr): New declaration.
29968         * m4/mbschr.m4: New file.
29969         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
29970         GNULIB_MBSCHR.
29971         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
29972         * MODULES.html.sh (Internationalization functions): Add mbschr.
29973
29974 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
29975
29976         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
29977
29978         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
29979
29980 2007-02-04  Bruno Haible  <bruno@clisp.org>
29981
29982         New module description section 'configure.ac-early'.
29983         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
29984         (func_get_autoconf_early_snippet): New function.
29985         (func_import, func_create_testdir): Use it. Remove special cases for
29986         modules 'extensions' and 'lock'.
29987         * modules/extensions (configure.ac-early): Require
29988         gl_USE_SYSTEM_EXTENSIONS.
29989         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
29990
29991 2007-02-04  Bruno Haible  <bruno@clisp.org>
29992
29993         Make use of gcj-4.3's -fsource and -ftarget option.
29994         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
29995         and if so try the options -fsource and -ftarget.
29996         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
29997         source_version, ftarget_option, target_version arguments.
29998         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
29999         (is_envjavac_oldgcj_14_14_usable): Renamed from
30000         is_envjavac_gcj_14_14_usable.
30001         (is_envjavac_oldgcj_14_13_usable): Renamed from
30002         is_envjavac_gcj_14_13_usable.
30003         (is_gcj_present): Update.
30004         (is_gcj_43, is_gcj43_usable): New functions.
30005         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
30006         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
30007         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
30008         try the options -fsource and -ftarget.
30009
30010 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
30011
30012         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
30013         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
30014         larger value.
30015
30016 2007-02-03  Jim Meyering  <jim@meyering.net>
30017
30018         Give tools a better chance to allocate space for very large buffers.
30019         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
30020
30021         Make pwd and readlink work also when run with an unreadable parent dir
30022         on systems with openat support.
30023         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
30024         provided getcwd function, even when we have openat support.
30025         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
30026
30027 2007-02-02  Bruno Haible  <bruno@clisp.org>
30028
30029         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
30030         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
30031         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
30032         portability problems if one of these functions is only used on specific
30033         platforms.
30034         Reported by Paul Eggert.
30035
30036 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
30037
30038         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
30039         is causing more trouble than it's curing.
30040         * lib/regex_internal.h (__mempcpy): Remove.
30041         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
30042         (and make the code a tad smaller to boot).
30043         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
30044
30045 2007-02-02  Jim Meyering  <jim@meyering.net>
30046
30047         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
30048         section, not in the Makefile.am: one.
30049
30050 2007-02-02  Eric Blake  <ebb9@byu.net>
30051
30052         * lib/strchrnul.c: Always include config.h first.
30053
30054         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
30055         gnulib strstr is not necessary here.
30056
30057 2007-02-02  Simon Josefsson  <simon@josefsson.org>
30058
30059         * m4/socklen.m4: Fix typo.
30060
30061 2007-02-02  Eric Blake  <ebb9@byu.net>
30062
30063         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
30064         * modules/netinet_in (Makefile.am): Likewise.
30065
30066 2007-02-01  Bruno Haible  <bruno@clisp.org>
30067
30068         * lib/string_.h (GL_LINK_WARNING): New macro.
30069         (strcasecmp, strstr, strcasestr): If provided by the system,
30070         conditionally define as a macro that leads to a warning instead of to
30071         an error.
30072         (strncasecmp): Conditionally define as a macro that leads to a warning.
30073
30074 2007-02-01  Karl Berry  <karl@gnu.org>
30075
30076         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
30077
30078 2007-02-01  Bruno Haible  <bruno@clisp.org>
30079
30080         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
30081         renamings.
30082
30083 2007-02-01  Eric Blake  <ebb9@byu.net>
30084
30085         * modules/regex (Depends-on): Revert dependence on mempcpy.
30086         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
30087         module's definition of mempcpy.
30088         Reported by Paul Eggert.
30089
30090 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
30091
30092         * lib/string_.h: If the gnulib module XYZ is not present, undefine
30093         the symbol XYZ before redefining it.  This fixes a problem with
30094         programs that don't use XYZ, when compiled on systems that define
30095         XYZ to something else.
30096
30097 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
30098
30099         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
30100         occurs when "mkdir -m foo" creates a setgid directory that is (1)
30101         writeable to group or other and (2) is intended to have a special
30102         mode bit that is set or cleared.  In such a case, the directory
30103         should be neither group- nor other-writeable until the special
30104         mode bits are right.
30105
30106 2007-01-31  Eric Blake  <ebb9@byu.net>
30107
30108         * modules/mountlist (Depends-on): Add strstr.
30109
30110         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
30111         bug.
30112         * modules/string (Makefile.am): Remove redundant replacement.
30113         * modules/regex (Depends-on): Add mempcpy.
30114
30115 2007-01-31  Bruno Haible  <bruno@clisp.org>
30116
30117         New module description field 'Link'.
30118         * gnulib-tool (func_usage): Document --extract-link-directive.
30119         (sed_extract_prog): Recognize 'Link' directive.
30120         (func_get_link_directive): New function.
30121         (func_import): Show summary of link directives.
30122         Handle --extract-link-directive option.
30123         * modules/acl (Link): New section.
30124         * modules/clock-time (Link): New section.
30125         * modules/euidaccess (Link): New section.
30126         * modules/gettext (Link): New section.
30127         * modules/iconv (Link): New section.
30128         * modules/lock (Link): New section.
30129         * modules/nanosleep (Link): New section.
30130         * modules/readline (Link): New section.
30131
30132 2007-01-27  Bruno Haible  <bruno@clisp.org>
30133
30134         Enforce the use of gnulib modules for unportable <string.h> functions.
30135         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
30136         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
30137         (gl_HEADER_STRING_H_BODY): Require it.
30138         * lib/string_.h: If the gnulib module XYZ is not present, redefine
30139         the symbol XYZ to one that gives a link error.
30140         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
30141         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
30142         * modules/mempcpy (configure.ac): Likewise.
30143         * modules/memrchr (configure.ac): Likewise.
30144         * modules/stpcpy (configure.ac): Likewise.
30145         * modules/stpncpy (configure.ac): Likewise.
30146         * modules/strcase (configure.ac): Likewise.
30147         * modules/strcasestr (configure.ac): Likewise.
30148         * modules/strchrnul (configure.ac): Likewise.
30149         * modules/strdup (configure.ac): Likewise.
30150         * modules/strndup (configure.ac): Likewise.
30151         * modules/strnlen (configure.ac): Likewise.
30152         * modules/strpbrk (configure.ac): Likewise.
30153         * modules/strsep (configure.ac): Likewise.
30154         * modules/strstr (configure.ac): Likewise.
30155         * modules/strtok_r (configure.ac): Likewise.
30156
30157 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
30158
30159         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
30160
30161 2007-01-30  Jim Meyering  <jim@meyering.net>
30162
30163         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
30164
30165 2007-01-29  Bruno Haible  <bruno@clisp.org>
30166
30167         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
30168         * lib/execute.c: Likewise.
30169         * lib/pipe.c: Likewise.
30170         * lib/printf-args.h: Likewise.
30171         * lib/printf-args.c: Likewise.
30172         * lib/printf-parse.c: Likewise.
30173         * lib/vasnprintf.c: Likewise.
30174
30175 2007-01-29  Eric Blake  <ebb9@byu.net>
30176
30177         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
30178         declaration.
30179
30180 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
30181
30182         * lib/strptime.h (strptime): Use 'restrict' for args where
30183         POSIX requires this.
30184         * lib/strptime.c (strptime): Likewise.
30185         Change license notice from LGPL to GPL, since gnulib-tool will
30186         change this as needed.
30187         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
30188         defined.
30189         Include "strptime.h" first, to check interface.
30190         Do not #undef _LIBC and _NL_CURRENT.
30191         Do not include <stdlib.h>; no longer needed.
30192         Include "time_r.h" and declare ptime_locale_status
30193         only if _LIBC is not defined.
30194         (__P): Remove unused macro.
30195         (match_string): Bring back glibc version, but use it only if _LIBC
30196         is defined.
30197         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
30198         Remove unnecessary assertion and abort() call.
30199         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
30200         * m4/strptime.m4: Fix serial number comment.
30201         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
30202         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
30203         (Depends-on): Add time_r.
30204
30205 2007-01-29  Bruno Haible  <bruno@clisp.org>
30206
30207         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
30208         strptime.
30209         * modules/strptime (Depends-on): Add stdbool.
30210         * lib/strptime.h: Include <time.h> always. Add comments.
30211
30212 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
30213
30214         * modules/strptime: New file.
30215         * lib/strptime.h: New file.
30216         * lib/strptime.c: New file.
30217         * m4/strptime.m4: New file.
30218
30219 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
30220
30221         * MODULES.html.sh: New module mpsort.
30222         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
30223
30224         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
30225         a circularity problem with HP-UX ia64 reported by Bob Proulx in
30226         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
30227         All uses changed.
30228         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
30229         All uses changed.
30230         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
30231         to _Restrict_.
30232         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
30233         the parameter matches the prototype.
30234
30235 2007-01-28  Jim Meyering  <jim@meyering.net>
30236
30237         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
30238         sys/time.h here, reverting that part of the previous patch:
30239         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
30240
30241 2007-01-28  Bruno Haible  <bruno@clisp.org>
30242
30243         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
30244         value of $(SYS_TIME_H).
30245         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
30246         remove it conditionally, too. [added by Jim Meyering]
30247         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
30248         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
30249         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
30250         GETTIMEOFDAY_REPLACEMENT to 1.
30251
30252 2007-01-28  Bruno Haible  <bruno@clisp.org>
30253
30254         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
30255         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
30256         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
30257         Set UNISTD_H instead of UNISTD_H2.
30258         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
30259
30260 2007-01-28  Bruno Haible  <bruno@clisp.org>
30261
30262         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
30263         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
30264
30265 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30266
30267         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
30268         (func_create_testdir): Ensure C locale for `grep' and `tr'
30269         character ranges.
30270         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
30271         ACLOCAL_AMFLAGS parsing state machine.
30272
30273 2007-01-27  Bruno Haible  <bruno@clisp.org>
30274
30275         * modules/unistr/base: Update.
30276
30277 2007-01-27  Bruno Haible  <bruno@clisp.org>
30278
30279         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
30280         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
30281         * modules/unistr/u32-mbtouc-unsafe: Renamed from
30282         modules/unistr/u32-mbtouc.
30283         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
30284         * lib/unistr.h: Update.
30285         * lib/linebreak.c: Update.
30286         * modules/unistr/u32-mbtouc: Renamed from
30287         modules/unistr/u32-mbtouc-safe.
30288         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
30289         * lib/unistr.h: Update.
30290         * lib/unistr/u32-to-u8.c: Update.
30291         * lib/unistr/u32-to-u16.c: Update.
30292
30293 2007-01-27  Bruno Haible  <bruno@clisp.org>
30294
30295         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
30296         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
30297         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
30298         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
30299         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
30300         * modules/unistr/u16-mbtouc-unsafe: Renamed from
30301         modules/unistr/u16-mbtouc.
30302         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
30303         * lib/unistr.h: Update.
30304         * lib/linebreak.c: Update.
30305         * modules/linebreak: Update.
30306         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
30307         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
30308         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
30309         * modules/unistr/u16-mbtouc: Renamed from
30310         modules/unistr/u16-mbtouc-safe.
30311         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
30312         * lib/unistr.h: Update.
30313         * lib/unistr/u16-to-u8.c: Update.
30314         * modules/unistr/u16-to-u8: Update.
30315         * lib/unistr/u16-to-u32.c: Update.
30316         * modules/unistr/u16-to-u32: Update.
30317
30318 2007-01-27  Bruno Haible  <bruno@clisp.org>
30319
30320         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
30321         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
30322         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
30323         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
30324         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
30325         * modules/unistr/u8-mbtouc-unsafe: Renamed from
30326         modules/unistr/u8-mbtouc.
30327         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
30328         * lib/unistr.h: Update.
30329         * lib/striconveh.c: Update.
30330         * modules/striconveh: Update.
30331         * lib/linebreak.c: Update.
30332         * modules/linebreak: Update.
30333         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
30334         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
30335         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
30336         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
30337         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
30338         * lib/unistr.h: Update.
30339         * lib/striconveh.c: Update.
30340         * modules/striconveh: Update.
30341         * lib/unistr/u8-to-u16.c: Update.
30342         * modules/unistr/u8-to-u16: Update.
30343         * lib/unistr/u8-to-u32.c: Update.
30344         * modules/unistr/u8-to-u32: Update.
30345
30346 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
30347
30348         Sync from Libtool.
30349         * lib/argz.c: Do not include strings.h nor memory.h, include
30350         string.h unconditionally.  Patch by Simon Josefsson.
30351
30352 2007-01-27  Bruno Haible  <bruno@clisp.org>
30353
30354         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
30355         from gl_HEADER_STRING_H_BODY.
30356         (gl_HEADER_STRING_H_BODY): Require it.
30357         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
30358         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
30359         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
30360         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
30361         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
30362         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
30363         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
30364         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
30365         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
30366         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
30367         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
30368         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
30369         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
30370         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
30371         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
30372
30373 2007-01-27  Bruno Haible  <bruno@clisp.org>
30374
30375         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
30376         check_PROGRAMS into noinst_PROGRAMS.
30377         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
30378         check_PROGRAMS in this case.
30379         (func_import): Set for_test to false.
30380         (func_create_testdir): Set for_test to true.
30381
30382 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
30383             Bruno Haible  <bruno@clisp.org>
30384
30385         * modules/strcasestr (Files): Remove lib/strcasestr.h.
30386         (Depends-on): Add string.
30387         (Includes): Use <string.h> instead of strcasestr.h.
30388         * modules/string (Makefile.am): Also substitute the value of
30389         REPLACE_STRCASESTR.
30390         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
30391         assume strcasestr is declared in <string.h> not <strings.h>. Also
30392         set REPLACE_STRCASESTR.
30393         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
30394         REPLACE_STRCASESTR.
30395         * lib/strcasestr.h: Remove file.
30396         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
30397         * lib/string_.h (strcasestr): New declaration.
30398
30399 2007-01-27  Bruno Haible  <bruno@clisp.org>
30400
30401         * lib/string_.h: Use 'extern'.
30402
30403 2007-01-27  Jim Meyering  <jim@meyering.net>
30404
30405         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
30406         of set-but-not-used local, "q".
30407
30408         * lib/mempcpy.c: Include <config.h> before <string.h>.
30409         This fixes a compilation error on HP-UX, due to the system's
30410         "restrict"-using mempcpy prototype.
30411
30412 2007-01-26  Bruno Haible  <bruno@clisp.org>
30413
30414         Small optimization.
30415         * lib/javacomp.c: Include c-strstr.h.
30416          (is_envjavac_gcj): Use c_strstr instead of strstr.
30417         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
30418
30419 2007-01-26  Bruno Haible  <bruno@clisp.org>
30420
30421         * MODULES.html.sh (Unicode string functions): Add the new modules.
30422
30423         * modules/uniconv/u32-strconv-to-locale: New file.
30424         * lib/uniconv/u32-strconv-to-locale.c: New file.
30425
30426         * modules/uniconv/u16-strconv-to-locale: New file.
30427         * lib/uniconv/u16-strconv-to-locale.c: New file.
30428
30429         * modules/uniconv/u8-strconv-to-locale: New file.
30430         * lib/uniconv/u8-strconv-to-locale.c: New file.
30431
30432         * modules/uniconv/u32-strconv-from-locale: New file.
30433         * lib/uniconv/u32-strconv-from-locale.c: New file.
30434
30435         * modules/uniconv/u16-strconv-from-locale: New file.
30436         * lib/uniconv/u16-strconv-from-locale.c: New file.
30437
30438         * modules/uniconv/u8-strconv-from-locale: New file.
30439         * lib/uniconv/u8-strconv-from-locale.c: New file.
30440
30441         * modules/uniconv/u32-strconv-to-enc: New file.
30442         * lib/uniconv/u32-strconv-to-enc.c: New file.
30443         * modules/uniconv/u32-strconv-to-enc-tests: New file.
30444         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
30445
30446         * modules/uniconv/u16-strconv-to-enc: New file.
30447         * lib/uniconv/u16-strconv-to-enc.c: New file.
30448         * lib/uniconv/u-strconv-to-enc.h: New file.
30449         * modules/uniconv/u16-strconv-to-enc-tests: New file.
30450         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
30451
30452         * modules/uniconv/u8-strconv-to-enc: New file.
30453         * lib/uniconv/u8-strconv-to-enc.c: New file.
30454         * modules/uniconv/u8-strconv-to-enc-tests: New file.
30455         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
30456
30457         * modules/uniconv/u32-strconv-from-enc: New file.
30458         * lib/uniconv/u32-strconv-from-enc.c: New file.
30459         * modules/uniconv/u32-strconv-from-enc-tests: New file.
30460         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
30461
30462         * modules/uniconv/u16-strconv-from-enc: New file.
30463         * lib/uniconv/u16-strconv-from-enc.c: New file.
30464         * modules/uniconv/u16-strconv-from-enc-tests: New file.
30465         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
30466
30467         * modules/uniconv/u8-strconv-from-enc: New file.
30468         * lib/uniconv/u8-strconv-from-enc.c: New file.
30469         * lib/uniconv/u-strconv-from-enc.h: New file.
30470         * modules/uniconv/u8-strconv-from-enc-tests: New file.
30471         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
30472
30473         * modules/uniconv/u32-conv-from-enc: New file.
30474         * lib/uniconv/u32-conv-from-enc.c: New file.
30475         * modules/uniconv/u32-conv-from-enc-tests: New file.
30476         * tests/uniconv/test-u32-conv-from-enc.c: New file.
30477
30478         * modules/uniconv/u16-conv-from-enc: New file.
30479         * lib/uniconv/u16-conv-from-enc.c: New file.
30480         * lib/uniconv/u-conv-from-enc.h: New file.
30481         * modules/uniconv/u16-conv-from-enc-tests: New file.
30482         * tests/uniconv/test-u16-conv-from-enc.c: New file.
30483
30484         * modules/uniconv/u8-conv-from-enc: New file.
30485         * lib/uniconv/u8-conv-from-enc.c: New file.
30486         * modules/uniconv/u8-conv-from-enc-tests: New file.
30487         * tests/uniconv/test-u8-conv-from-enc.c: New file.
30488
30489         * modules/uniconv/base: New file.
30490         * lib/uniconv.h: New file.
30491
30492 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
30493
30494         * doc/gnulib-tool.texi (Initial import): Update to match current
30495         behavior with strdup module.
30496         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
30497         * lib/memmem.h: Remove; all uses removed.  This is now done
30498         by <string.h>.
30499         * lib/mempcpy.h: Likewise.
30500         * lib/memrchr.h: Likewise.
30501         * lib/stpcpy.h: Likewise.
30502         * lib/stpncpy.h: Likewise.
30503         * lib/strcase.h: Likewise.
30504         * lib/strchrnul.h: Likewise.
30505         * lib/strdup.h: Likewise.
30506         * lib/strndup.h: Likewise.
30507         * lib/strnlen.h: Likewise.
30508         * lib/strpbrk.h: Likewise.
30509         * lib/strsep.h: Likewise.
30510         * lib/strstr.h: Likewise.
30511         * lib/strtok_r.h: Likewise.
30512         * lib/string_.h: New file.
30513         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
30514         Rely on <string.h> instead.
30515         * lib/canon-host.c: Likewise.
30516         * lib/chdir-long.c: Likewise.
30517         * lib/concatpath.c: Likewise.
30518         * lib/exclude.c: Likewise.
30519         * lib/fchdir.c: Likewise.
30520         * lib/getaddrinfo.c: Likewise.
30521         * lib/getcwd.c: Likewise.
30522         * lib/getsubopt.c: Likewise.
30523         * lib/glob.c: Likewise.
30524         * lib/hard-locale.c: Likewise.
30525         * lib/iconvme.c: Likewise.
30526         * lib/javacomp.c: Likewise.
30527         * lib/mempcpy.c: Likewise.
30528         * lib/memrchr.c: Likewise.
30529         * lib/regex_internal.h: Likewise.
30530         * lib/stpncpy.c: Likewise.
30531         * lib/strcasecmp.c: Likewise.
30532         * lib/strchrnul.c: Likewise.
30533         * lib/strdup.c: Likewise.
30534         * lib/striconv.c: Likewise.
30535         * lib/striconveh.c: Likewise.
30536         * lib/striconveha.c: Likewise.
30537         * lib/strncasecmp.c: Likewise.
30538         * lib/strndup.c: Likewise.
30539         * lib/strnlen.c: Likewise.
30540         * lib/strsep.c: Likewise.
30541         * lib/strstr.c: Likewise.
30542         * lib/strtok_r.c: Likewise.
30543         * lib/userspec.c: Likewise.
30544         * lib/w32spawn.h: Likewise.
30545         * lib/xstrndup.c: Likewise.
30546         * lib/mountlist.c (strstr): Remove decl.
30547         * m4/string_h.m4: New file.
30548         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
30549         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
30550         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
30551         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
30552         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
30553         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
30554         Set REPLACE_STRCASECMP if necessary.
30555         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
30556         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
30557         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
30558         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
30559         HAVE_DECL_STRDUP if necessary.
30560         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
30561         since gl_FUNC_STRNDUP does that now.
30562         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
30563         Check for decl here...
30564         (gl_PREREQ_STRNLEN): ... not here.
30565         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
30566         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
30567         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
30568         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
30569         necessary.
30570         * modules/string: New file.
30571         * modules/memmem (Files): Remove special-purpose include file.
30572         (Depends-on): Add string.
30573         (Include): Include <string.h>, not the removed file.
30574         * modules/mempcpy: Likewise.
30575         * modules/memrchr: Likewise.
30576         * modules/stpcpy: Likewise.
30577         * modules/stpncpy: Likewise.
30578         * modules/strcase: Likewise.
30579         * modules/strchrnul: Likewise.
30580         * modules/strdup: Likewise.
30581         * modules/strndup: Likewise.
30582         * modules/strnlen: Likewise.
30583         * modules/strpbrk: Likewise.
30584         * modules/strsep: Likewise.
30585         * modules/strstr: Likewise.
30586         * modules/strtok_r: Likewise.
30587         * tests/test-dirname.c: Don't include "strdup.h", since
30588         <string.h> now suffices.
30589         * tests/test-memmem.c: Don't include "memmem.h", since
30590         <string.h> now suffices.
30591
30592 2007-01-25  Bruno Haible  <bruno@clisp.org>
30593
30594         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
30595         *resultp is 0.
30596
30597         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
30598         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
30599         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
30600         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
30601
30602         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
30603         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
30604         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
30605         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
30606         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
30607         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
30608
30609 2007-01-24  Bruno Haible  <bruno@clisp.org>
30610
30611         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
30612         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
30613         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
30614         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
30615         gl_FUNC_FTS_CORE.
30616         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
30617         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
30618         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
30619         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
30620         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
30621         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
30622         gl_FUNC_FCHOWNAT.
30623         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
30624         gl_FUNC_STRFTIME.
30625         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
30626         Reported by Ralf Wildenhues.
30627
30628 2007-01-24  Bruno Haible  <bruno@clisp.org>
30629
30630         Drop AC_REQUIRE calls that are redundant with the module dependencies.
30631         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
30632         gl_GETADDRINFO.
30633         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
30634         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
30635         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
30636
30637 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
30638
30639         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
30640         Don't use 'exit'; just return from 'main'.
30641         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
30642
30643         * lib/fnmatch_.h: Readjust white space and comments to match
30644         glibc, to avoid spurious diffs.
30645
30646 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
30647
30648         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
30649         2004-12-01 change by Jakub Jelinek, since this code won't compile
30650         if !LIBC.  Problem reported by Bob Proulx.
30651
30652 2007-01-23  Bruno Haible  <bruno@clisp.org>
30653
30654         * lib/striconveh.c: Include c-strcaseeq.h.
30655         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
30656         * modules/striconveh (Depends-on): Add c-strcaseeq.
30657
30658 2007-01-23  Bruno Haible  <bruno@clisp.org>
30659
30660         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
30661
30662         * modules/c-strcaseeq: New file.
30663         * lib/c-strcaseeq.h: New file.
30664
30665         * modules/streq: New file.
30666         * lib/streq.h: New file.
30667
30668 2007-01-23  Bruno Haible  <bruno@clisp.org>
30669
30670         * modules/striconveha-tests: New file.
30671         * tests/test-striconveha.c: New file.
30672
30673         * lib/striconveha.h: Include <stdbool.h>.
30674         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
30675         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
30676         (mem_iconveha_notranslit): Renamed from mem_iconveha.
30677         (mem_iconveha): New function.
30678         (str_iconveha_notranslit): Renamed from str_iconveha.
30679         (str_iconveha): New function.
30680         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
30681         c-strcase.
30682
30683 2007-01-23  Bruno Haible  <bruno@clisp.org>
30684
30685         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
30686         encodings without forgiving before trying any encoding with handler.
30687         (str_iconveha): Try all encodings without forgiving before trying any
30688         encoding with handler.
30689
30690 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
30691
30692         Import the following changes from libc.
30693
30694         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
30695
30696         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
30697
30698         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
30699
30700         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
30701         normal_bracket label.
30702
30703         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
30704
30705         [BZ #361]
30706         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
30707         to normal_bracket after fetching the next character.
30708
30709 2007-01-22  Bruno Haible  <bruno@clisp.org>
30710
30711         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
30712         argument.
30713         * lib/striconveh.c (iconv_carefully_1): New function.
30714         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
30715         argument.
30716         (str_cd_iconveh): Update.
30717         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
30718         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
30719         * tests/test-striconveh.c (MAGIC): New macro.
30720         (new_offsets): New function.
30721         (main): Test call with and without offsets.
30722
30723 2007-01-22  Bruno Haible  <bruno@clisp.org>
30724
30725         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
30726         * modules/sys_select (Makefile.am): Likewise.
30727         * modules/sys_socket (Makefile.am): Likewise.
30728         * modules/sys_time (Makefile.am): Likewise.
30729
30730 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
30731
30732         * modules/gettimeofday (License): Change from GPL to LGPL, since
30733         gettimeofday is a library function.
30734
30735 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
30736
30737         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
30738
30739 2007-01-21  Bruno Haible  <bruno@clisp.org>
30740
30741         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
30742
30743 2007-01-21  Bruno Haible  <bruno@clisp.org>
30744
30745         * modules/striconveha: New file.
30746         * lib/striconveha.h: New file.
30747         * lib/striconveha.c: New file.
30748         * MODULES.html.sh (Internationalization functions): Add striconveha.
30749         * lib/striconv.c (str_iconv): Optimize the case of an empty input
30750         string.
30751         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
30752
30753 2007-01-21  Bruno Haible  <bruno@clisp.org>
30754
30755         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
30756         * lib/striconveh.c (str_iconveh): Likewise.
30757
30758 2007-01-21  Bruno Haible  <bruno@clisp.org>
30759
30760         * lib/striconveh.h (mem_iconveh): New declaration.
30761         * lib/striconveh.c (mem_iconveh): New function.
30762         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
30763
30764 2007-01-21  Bruno Haible  <bruno@clisp.org>
30765
30766         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
30767
30768         * lib/striconveh.h (mem_cd_iconveh): Change specification.
30769         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
30770         original result buffer.
30771         (str_cd_iconveh): Update.
30772         * tests/test-striconveh.c (main): Update.
30773
30774         * lib/striconv.h (mem_cd_iconv): Change specification.
30775         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
30776         result buffer.
30777         (str_cd_iconv): Update.
30778         * tests/test-striconv.c (main): Update.
30779
30780 2007-01-21  Bruno Haible  <bruno@clisp.org>
30781
30782         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
30783
30784 2007-01-20  Jim Meyering  <jim@meyering.net>
30785
30786         * lib/userspec.c (parse_with_separator): If a user or group string
30787         starts with "+", skip the corresponding name-to-ID look-up, since
30788         such a look-up must fail: user and group names may not include "+".
30789
30790 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
30791
30792         * lib/poll.c: Include sys/time.h and time.h unconditionally,
30793         since we now assume the sys_time module.
30794         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
30795         check for sys/time.h; no longer needed.
30796         * modules/poll (Depends-on): Depend on sys_time.
30797
30798 2007-01-18  Bruno Haible  <bruno@clisp.org>
30799
30800         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
30801         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
30802
30803         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
30804         gettimeofday.
30805
30806         * tests/test-gettimeofday.c: Include <time.h>.
30807         (dummy): Remove variable.
30808
30809         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
30810         gl_HEADER_SYS_TIME_H.
30811         (gl_HEADER_SYS_TIME_H): New macro.
30812
30813         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
30814         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
30815         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
30816         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
30817         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
30818         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
30819         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
30820         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
30821         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
30822         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
30823         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
30824
30825         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
30826         last change; it caused a compilation error when cross-compiling to
30827         Cygwin.
30828
30829 2007-01-18  Jim Meyering  <jim@meyering.net>
30830
30831         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
30832         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
30833         than the race-prone "test -d sys || mkdir sys".
30834         (configure.ac): Use AC_PROG_MKDIR_P.
30835         * modules/sys_select: Likewise.
30836         * modules/sys_socket: Likewise.
30837         * modules/sys_time: Likewise.
30838
30839 2007-01-18  Eric Blake  <ebb9@byu.net>
30840
30841         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
30842         replace gettimeofday.
30843         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
30844         name, to avoid infinite recursion.
30845
30846 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
30847
30848         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
30849         module sys_time.
30850         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
30851         assume timespec.h defines struct timeval.
30852         * lib/settime.c: Likewise.
30853         * lib/utimens.c: Likewise.
30854         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
30855         since we now assume the gettimeofday module.
30856         * lib/tempname.c (__gen_tempname): Likewise.
30857         * lib/gettimeofday.h: Remove.
30858         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
30859         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
30860         Include <time.h>, for 'time()'.
30861         (localtime_buffer_addr): Also use this workaround if
30862         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
30863         to simplify the uses.  All uses changed.
30864         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
30865         that #undef is inside {}, and 'const' follows type name consistently.
30866         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
30867         (gettimeofday): Do not use the maximum possible value for
30868         tv->tv_usec, since that might break usages other than ls.c.
30869         Instead, we'll leave ls.c alone.  This undoes today's patch
30870         by Bruno.  Add a compile-time warning for 1s-clock resolution;
30871         we've never observed the problem but might as well keep the
30872         canary.
30873         * lib/nanosleep.c: Include timespec.h first, for interface check.
30874         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
30875         now assume the sys_time module.
30876         * lib/tempname.c: Likewise.
30877         * lib/timespec.h: Likewise.
30878         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
30879         needed.
30880         * lib/strftime.c: Likewise.
30881         * lib/timespec.h: Likewise.
30882         * lib/posixtm.c: Include posixtm.h first, for interface check.
30883         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
30884         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
30885         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
30886         * lib/sys_time_.h: New file.
30887         * lib/timespec.h (struct timespec): Use long int, not long.
30888         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
30889         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
30890         Remove obsolescent call to AC_HEADER_TIME.
30891         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
30892         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
30893         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
30894         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
30895         Likewise.
30896         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
30897         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
30898         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
30899         into the sys_time module.  Check for gettimeofday just once.
30900         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
30901         for gettimeofday signature to just check the signature.  Merely
30902         compile it, since linking doesn't test signature.  Improve test for
30903         whether gettimeofday.o is actually needed.
30904         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
30905         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
30906         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
30907         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
30908         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
30909         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
30910         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
30911         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
30912         than worrying about sys/time.h.
30913         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
30914         Don't bother worrying about TIME_WITH_SYS_TIME.
30915         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
30916         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
30917         * m4/sys_time_h.m4: New file.
30918         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
30919         Don't include sys/time.h.  Return from main rather than exiting.
30920         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
30921         all uses changed.
30922         * modules/gethrxtime (Depends-on): Add sys_time.
30923         * modules/gettime (Depends-on): Likewise.
30924         * modules/gettimeofday (Depends-on): Likewise.
30925         * modules/nanosleep (Depends-on): Likewise.
30926         * modules/settime (Depends-on): Likewise.
30927         * modules/tempname (Depends-on): Likewise.
30928         * modules/utimens (Depends-on): Likewise.
30929         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
30930         (Include:) Change back to <sys/time.h>.
30931         (Maintainer:) Add self.
30932         * modules/sys_time: New file.
30933         * modules/tempname (Depends-on): Add gettimeofday.
30934         * tests/test-gettimeofday.c: Include <sys/time.h>
30935         rather than gettimeofday.h.
30936
30937 2007-01-17  Bruno Haible  <bruno@clisp.org>
30938
30939         * gnulib-tool (func_get_license): Revert last patch. Instead, let
30940         the license default to GPL.
30941         (func_create_testdir): Don't complain if a module is LGPL and its
30942         tests module depends on GPLed modules.
30943
30944 2007-01-17  Bruno Haible  <bruno@clisp.org>
30945
30946         * lib/gettimeofday.c (gettimeofday): Add code for the case
30947         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
30948         maximum possible value for tv->tv_usec, rather than the minimum one.
30949
30950 2005-10-08  Martin Lambers  <marlam@marlam.de>
30951 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
30952 2007-01-16  Bruno Haible  <bruno@clisp.org>
30953
30954         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
30955         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
30956         gl_FUNC_GETTIMEOFDAY.
30957         (Include): Add gettimeofday.h.
30958         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
30959         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
30960         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
30961         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
30962         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
30963         * lib/gettimeofday.h: New file.
30964         * lib/gettimeofday.c: Include <sys/timeb.h>.
30965         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
30966         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
30967         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
30968         fall back on time().
30969
30970         * tests/test-gettimeofday.c: New file.
30971         * modules/gettimeofday-tests: New file.
30972
30973 2007-01-16  Eric Blake  <ebb9@byu.net>
30974
30975         * modules/fnmatch (Depends-on): Depend on wchar.
30976         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
30977         * m4/fnmatch.m4: Likewise.
30978         * modules/mbchar (Makefile.am): Assume <wchar.h>.
30979         * m4/mbchar.m4: Likewise.
30980         * modules/mbswidth (Depends-on): Depend on wchar.
30981         * lib/mbswidth.c: Assume <wchar.h>.
30982         * m4/mbswidth.m4: Likewise.
30983         * modules/quotearg (Depends-on): Depend on wchar.
30984         * lib/quotearg.c: Assume <wchar.h>.
30985         * m4/quotearg.m4: Likewise.
30986         * modules/regex (Depends-on): Depend on wchar.
30987         * lib/regex_internal.h: Assume <wchar.h>.
30988         * m4/regex.m4: Likewise.
30989         * modules/stdint (Depends-on): Depend on wchar.
30990         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
30991         * m4/stdint.m4: Likewise.
30992         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
30993         * modules/strftime (Depends-on): Depend on wchar.
30994         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
30995         * modules/strtol (Depends-on): Depend on wchar.
30996         * lib/strtol.c: Assume <wchar.h>.
30997         * modules/wcwidth (Depends-on): Depend on wchar.
30998         * lib/wcwidth.h: Assume <wchar.h>.
30999         * m4/wcwidth.m4: Likewise.
31000
31001 2007-01-16  Bruno Haible  <bruno@clisp.org>
31002
31003         * modules/csharpexec-script: New, created from...
31004         * modules/csharpexec: ... this.
31005
31006 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
31007
31008         * modules/javaexec-script: New, created from...
31009         * modules/javaexec: ... this.
31010
31011 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
31012
31013         * modules/poll (Dependencies): Add sys_select.
31014
31015 2007-01-15  Jim Meyering  <jim@meyering.net>
31016
31017         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
31018         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
31019         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
31020         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
31021
31022 2007-01-15  Bruno Haible  <bruno@clisp.org>
31023
31024         * modules/striconveh: New file.
31025         * lib/striconveh.h: New file.
31026         * lib/striconveh.c: New file.
31027         * MODULES.html.sh (Internationalization functions): Add striconveh.
31028
31029         * modules/striconveh-tests: New file.
31030         * tests/test-striconveh.c: New file.
31031
31032 2007-01-15  Bruno Haible  <bruno@clisp.org>
31033
31034         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
31035         not from GNU libiconv or GNU libc.
31036
31037 2007-01-15  Bruno Haible  <bruno@clisp.org>
31038
31039         * doc/gnulib-intro.texi (Copyright): Explain the different license
31040         terms for module descriptions, autoconf macros, tests, documentation.
31041
31042 2007-01-14  Bruno Haible  <bruno@clisp.org>
31043
31044         * modules/striconv-tests: New file.
31045         * tests/test-striconv.c: New file.
31046
31047 2007-01-14  Bruno Haible  <bruno@clisp.org>
31048
31049         * modules/iconv-tests: New file.
31050         * tests/test-iconv.c: New file.
31051
31052 2007-01-14  Bruno Haible  <bruno@clisp.org>
31053
31054         * gnulib-tool (func_get_license): For test modules, use the license of
31055         the main module.
31056
31057 2007-01-14  Bruno Haible  <bruno@clisp.org>
31058
31059         * modules/iconv (Include): Clarify that <iconv.h> can only be included
31060         if iconv is found to exist.
31061
31062 2007-01-14  Bruno Haible  <bruno@clisp.org>
31063
31064         * modules/c-ctype-tests: New file.
31065         * tests/test-c-ctype.c: New file.
31066
31067 2007-01-14  Bruno Haible  <bruno@clisp.org>
31068
31069         * modules/binary-io-tests: New file.
31070         * tests/test-binary-io.sh: New file.
31071         * tests/test-binary-io.c: New file.
31072
31073 2007-01-14  Bruno Haible  <bruno@clisp.org>
31074
31075         * modules/array-oset-tests: New file.
31076         * tests/test-array_oset.c: New file.
31077
31078 2007-01-14  Bruno Haible  <bruno@clisp.org>
31079
31080         * modules/array-list-tests: New file.
31081         * tests/test-array_list.c: New file.
31082
31083 2007-01-14  Bruno Haible  <bruno@clisp.org>
31084
31085         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
31086         and make.
31087         Reported by Simon Josefsson in
31088         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
31089
31090 2007-01-14  Bruno Haible  <bruno@clisp.org>
31091
31092         * modules/allocsa-tests: New file.
31093         * tests/test-allocsa.c: New file.
31094
31095 2007-01-14  Bruno Haible  <bruno@clisp.org>
31096
31097         * modules/fchdir (Depends-on): Add absolute-header.
31098         * modules/unistd (Depends-on): Likewise.
31099
31100 2006-12-30  Bruno Haible  <bruno@clisp.org>
31101
31102         * modules/fchdir: New file.
31103         * modules/unistd (Files): Add lib/unistd_.h.
31104         (Makefile.am): Generate unistd.h from unistd_.h.
31105         * lib/fchdir.c: New file.
31106         * lib/dirent_.h: New file.
31107         * lib/unistd_.h: New file.
31108         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
31109         * m4/fchdir.m4: New file.
31110         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
31111         (gl_HEADER_UNISTD): Invoke it.
31112         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
31113         function.
31114         * lib/backupfile.c (opendir, closedir): Undefine.
31115         * lib/chown.c (open, close): Undefine.
31116         * lib/clean-temp.c (open, close): Undefine.
31117         * lib/copy-file.c (open, close): Undefine.
31118         * lib/execute.c (open, close): Undefine.
31119         * lib/fsusage.c (open, close): Undefine.
31120         * lib/gc-gnulib.c (open, close): Undefine.
31121         * lib/getcwd.c (opendir, closedir): Undefine.
31122         * lib/glob.c (opendir, closedir): Undefine.
31123         * lib/javacomp.c (open, close): Undefine.
31124         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
31125         * lib/openat-proc.c (open, close): Undefine.
31126         * lib/pagealign_alloc.c (open, close): Undefine.
31127         * lib/pipe.c (open, close): Undefine.
31128         * lib/progreloc.c (open, close): Undefine.
31129         * lib/savedir.c (opendir, closedir): Undefine.
31130         * lib/utime.c (open, close): Undefine.
31131         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
31132
31133 2007-01-10  Bruno Haible  <bruno@clisp.org>
31134
31135         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
31136
31137 2007-01-12  Eric Blake  <ebb9@byu.net>
31138
31139         Provide a robust <wchar.h>.  Further simplifications are now
31140         possible in other modules, but not included here.
31141         * modules/wchar: New module.
31142         * m4/wchar.m4: New file.
31143         * lib/wchar_.h: Likewise.
31144         * modules/mbchar (Depends-on): Depend on wchar, as the first use
31145         of the new module.
31146         * MODULES.html.sh (Extended multibyte and wide character utilities):
31147         New section.
31148
31149 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
31150
31151         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
31152         to a reasonable default for memory allocation.
31153         (xreadlink): Don't allocate a huge buffer, to work around a buggy
31154         file system that reports garbage st_size values for symlinks.
31155         Problem reported by Liyang Hu.
31156
31157 2007-01-11  Simon Josefsson  <simon@josefsson.org>
31158
31159         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
31160         Emacs .#* auto-save files).
31161
31162 2007-01-11  Bruno Haible  <bruno@clisp.org>
31163
31164         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
31165         directory.
31166
31167 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
31168
31169         Use @...@ consistently in lib/wctype_.h.
31170         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
31171         on it being set to 1 or 0.
31172         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
31173         go back to AC_SUBSTing it.
31174         * modules/wctype (Makefile.am): Undo previous change.
31175
31176 2007-01-10  Eric Blake  <ebb9@byu.net>
31177
31178         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
31179         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
31180         * modules/wctype (Makefile.am): Likewise.
31181         Reported by Chris McGuire.
31182
31183 2007-01-10  Jim Meyering  <jim@meyering.net>
31184
31185         fts.c: a small readability/maintainability improvement
31186         * lib/fts.c (fts_read): Make this code slightly more readable and
31187         maintainable by hoisting the "sp->fts_cur = p" assignments to
31188         immediately follow the statements that set P.  Derived from
31189         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
31190
31191 2007-01-10  Eric Blake  <ebb9@byu.net>
31192
31193         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
31194         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
31195         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
31196         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
31197         Reported by Chris McGuire.
31198
31199 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31200
31201         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
31202         in sed script.
31203
31204 2007-01-09  Bruno Haible  <bruno@clisp.org>
31205
31206         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
31207         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
31208         variables.
31209         (func_module): Use them.
31210
31211 2007-01-09  Bruno Haible  <bruno@clisp.org>
31212
31213         * modules/unistr/base: New file.
31214         * lib/unistr.h: New file.
31215
31216         * modules/unistr/u8-to-u16: New file.
31217         * lib/unistr/u8-to-u16.c: New file.
31218
31219         * modules/unistr/u8-to-u32: New file.
31220         * lib/unistr/u8-to-u32.c: New file.
31221
31222         * modules/unistr/u16-to-u8: New file.
31223         * lib/unistr/u16-to-u8.c: New file.
31224
31225         * modules/unistr/u16-to-u32: New file.
31226         * lib/unistr/u16-to-u32.c: New file.
31227
31228         * modules/unistr/u32-to-u8: New file.
31229         * lib/unistr/u32-to-u8.c: New file.
31230
31231         * modules/unistr/u32-to-u16: New file.
31232         * lib/unistr/u32-to-u16.c: New file.
31233
31234         * modules/unistr/u8-check: New file.
31235         * modules/unistr/u16-check: New file.
31236         * modules/unistr/u32-check: New file.
31237         * lib/unistr/u8-check.c: New file.
31238         * lib/unistr/u16-check.c: New file.
31239         * lib/unistr/u32-check.c: New file.
31240
31241         * modules/unistr/u8-chr: New file.
31242         * modules/unistr/u16-chr: New file.
31243         * modules/unistr/u32-chr: New file.
31244         * lib/unistr/u8-chr.c: New file.
31245         * lib/unistr/u16-chr.c: New file.
31246         * lib/unistr/u32-chr.c: New file.
31247
31248         * modules/unistr/u8-cmp: New file.
31249         * modules/unistr/u16-cmp: New file.
31250         * modules/unistr/u32-cmp: New file.
31251         * lib/unistr/u8-cmp.c: New file.
31252         * lib/unistr/u16-cmp.c: New file.
31253         * lib/unistr/u32-cmp.c: New file.
31254
31255         * modules/unistr/u8-cpy: New file.
31256         * modules/unistr/u16-cpy: New file.
31257         * modules/unistr/u32-cpy: New file.
31258         * lib/unistr/u8-cpy.c: New file.
31259         * lib/unistr/u16-cpy.c: New file.
31260         * lib/unistr/u32-cpy.c: New file.
31261         * lib/unistr/u-cpy.h: New file.
31262
31263         * modules/unistr/u8-cpy-alloc: New file.
31264         * modules/unistr/u16-cpy-alloc: New file.
31265         * modules/unistr/u32-cpy-alloc: New file.
31266         * lib/unistr/u8-cpy-alloc.c: New file.
31267         * lib/unistr/u16-cpy-alloc.c: New file.
31268         * lib/unistr/u32-cpy-alloc.c: New file.
31269         * lib/unistr/u-cpy-alloc.h: New file.
31270
31271         * modules/unistr/u8-endswith: New file.
31272         * modules/unistr/u16-endswith: New file.
31273         * modules/unistr/u32-endswith: New file.
31274         * lib/unistr/u8-endswith.c: New file.
31275         * lib/unistr/u16-endswith.c: New file.
31276         * lib/unistr/u32-endswith.c: New file.
31277         * lib/unistr/u-endswith.h: New file.
31278
31279         * modules/unistr/u8-mblen: New file.
31280         * modules/unistr/u16-mblen: New file.
31281         * modules/unistr/u32-mblen: New file.
31282         * lib/unistr/u8-mblen.c: New file.
31283         * lib/unistr/u16-mblen.c: New file.
31284         * lib/unistr/u32-mblen.c: New file.
31285
31286         * modules/unistr/u8-mbtouc: New file.
31287         * modules/unistr/u16-mbtouc: New file.
31288         * modules/unistr/u32-mbtouc: New file.
31289         * lib/unistr/u8-mbtouc.c: New file.
31290         * lib/unistr/u16-mbtouc.c: New file.
31291         * lib/unistr/u32-mbtouc.c: New file.
31292
31293         * modules/unistr/u8-mbtouc-safe: New file.
31294         * modules/unistr/u16-mbtouc-safe: New file.
31295         * modules/unistr/u32-mbtouc-safe: New file.
31296         * lib/unistr/u8-mbtouc-safe.c: New file.
31297         * lib/unistr/u16-mbtouc-safe.c: New file.
31298         * lib/unistr/u32-mbtouc-safe.c: New file.
31299
31300         * modules/unistr/u8-move: New file.
31301         * modules/unistr/u16-move: New file.
31302         * modules/unistr/u32-move: New file.
31303         * lib/unistr/u8-move.c: New file.
31304         * lib/unistr/u16-move.c: New file.
31305         * lib/unistr/u32-move.c: New file.
31306         * lib/unistr/u-move.h: New file.
31307
31308         * modules/unistr/u8-next: New file.
31309         * modules/unistr/u16-next: New file.
31310         * modules/unistr/u32-next: New file.
31311         * lib/unistr/u8-next.c: New file.
31312         * lib/unistr/u16-next.c: New file.
31313         * lib/unistr/u32-next.c: New file.
31314
31315         * modules/unistr/u8-prev: New file.
31316         * modules/unistr/u16-prev: New file.
31317         * modules/unistr/u32-prev: New file.
31318         * lib/unistr/u8-prev.c: New file.
31319         * lib/unistr/u16-prev.c: New file.
31320         * lib/unistr/u32-prev.c: New file.
31321
31322         * modules/unistr/u8-set: New file.
31323         * modules/unistr/u16-set: New file.
31324         * modules/unistr/u32-set: New file.
31325         * lib/unistr/u8-set.c: New file.
31326         * lib/unistr/u16-set.c: New file.
31327         * lib/unistr/u32-set.c: New file.
31328         * lib/unistr/u-set.h: New file.
31329
31330         * modules/unistr/u8-startswith: New file.
31331         * modules/unistr/u16-startswith: New file.
31332         * modules/unistr/u32-startswith: New file.
31333         * lib/unistr/u8-startswith.c: New file.
31334         * lib/unistr/u16-startswith.c: New file.
31335         * lib/unistr/u32-startswith.c: New file.
31336         * lib/unistr/u-startswith.h: New file.
31337
31338         * modules/unistr/u8-stpcpy: New file.
31339         * modules/unistr/u16-stpcpy: New file.
31340         * modules/unistr/u32-stpcpy: New file.
31341         * lib/unistr/u8-stpcpy.c: New file.
31342         * lib/unistr/u16-stpcpy.c: New file.
31343         * lib/unistr/u32-stpcpy.c: New file.
31344         * lib/unistr/u-stpcpy.h: New file.
31345
31346         * modules/unistr/u8-stpncpy: New file.
31347         * modules/unistr/u16-stpncpy: New file.
31348         * modules/unistr/u32-stpncpy: New file.
31349         * lib/unistr/u8-stpncpy.c: New file.
31350         * lib/unistr/u16-stpncpy.c: New file.
31351         * lib/unistr/u32-stpncpy.c: New file.
31352         * lib/unistr/u-stpncpy.h: New file.
31353
31354         * modules/unistr/u8-strcat: New file.
31355         * modules/unistr/u16-strcat: New file.
31356         * modules/unistr/u32-strcat: New file.
31357         * lib/unistr/u8-strcat.c: New file.
31358         * lib/unistr/u16-strcat.c: New file.
31359         * lib/unistr/u32-strcat.c: New file.
31360         * lib/unistr/u-strcat.h: New file.
31361
31362         * modules/unistr/u8-strchr: New file.
31363         * modules/unistr/u16-strchr: New file.
31364         * modules/unistr/u32-strchr: New file.
31365         * lib/unistr/u8-strchr.c: New file.
31366         * lib/unistr/u16-strchr.c: New file.
31367         * lib/unistr/u32-strchr.c: New file.
31368
31369         * modules/unistr/u8-strcmp: New file.
31370         * modules/unistr/u16-strcmp: New file.
31371         * modules/unistr/u32-strcmp: New file.
31372         * lib/unistr/u8-strcmp.c: New file.
31373         * lib/unistr/u16-strcmp.c: New file.
31374         * lib/unistr/u32-strcmp.c: New file.
31375
31376         * modules/unistr/u8-strcpy: New file.
31377         * modules/unistr/u16-strcpy: New file.
31378         * modules/unistr/u32-strcpy: New file.
31379         * lib/unistr/u8-strcpy.c: New file.
31380         * lib/unistr/u16-strcpy.c: New file.
31381         * lib/unistr/u32-strcpy.c: New file.
31382         * lib/unistr/u-strcpy.h: New file.
31383
31384         * modules/unistr/u8-strcspn: New file.
31385         * modules/unistr/u16-strcspn: New file.
31386         * modules/unistr/u32-strcspn: New file.
31387         * lib/unistr/u8-strcspn.c: New file.
31388         * lib/unistr/u16-strcspn.c: New file.
31389         * lib/unistr/u32-strcspn.c: New file.
31390         * lib/unistr/u-strcspn.h: New file.
31391
31392         * modules/unistr/u8-strdup: New file.
31393         * modules/unistr/u16-strdup: New file.
31394         * modules/unistr/u32-strdup: New file.
31395         * lib/unistr/u8-strdup.c: New file.
31396         * lib/unistr/u16-strdup.c: New file.
31397         * lib/unistr/u32-strdup.c: New file.
31398         * lib/unistr/u-strdup.h: New file.
31399
31400         * modules/unistr/u8-strlen: New file.
31401         * modules/unistr/u16-strlen: New file.
31402         * modules/unistr/u32-strlen: New file.
31403         * lib/unistr/u8-strlen.c: New file.
31404         * lib/unistr/u16-strlen.c: New file.
31405         * lib/unistr/u32-strlen.c: New file.
31406         * lib/unistr/u-strlen.h: New file.
31407
31408         * modules/unistr/u8-strmblen: New file.
31409         * modules/unistr/u16-strmblen: New file.
31410         * modules/unistr/u32-strmblen: New file.
31411         * lib/unistr/u8-strmblen.c: New file.
31412         * lib/unistr/u16-strmblen.c: New file.
31413         * lib/unistr/u32-strmblen.c: New file.
31414
31415         * modules/unistr/u8-strmbtouc: New file.
31416         * modules/unistr/u16-strmbtouc: New file.
31417         * modules/unistr/u32-strmbtouc: New file.
31418         * lib/unistr/u8-strmbtouc.c: New file.
31419         * lib/unistr/u16-strmbtouc.c: New file.
31420         * lib/unistr/u32-strmbtouc.c: New file.
31421
31422         * modules/unistr/u8-strncat: New file.
31423         * modules/unistr/u16-strncat: New file.
31424         * modules/unistr/u32-strncat: New file.
31425         * lib/unistr/u8-strncat.c: New file.
31426         * lib/unistr/u16-strncat.c: New file.
31427         * lib/unistr/u32-strncat.c: New file.
31428         * lib/unistr/u-strncat.h: New file.
31429
31430         * modules/unistr/u8-strncmp: New file.
31431         * modules/unistr/u16-strncmp: New file.
31432         * modules/unistr/u32-strncmp: New file.
31433         * lib/unistr/u8-strncmp.c: New file.
31434         * lib/unistr/u16-strncmp.c: New file.
31435         * lib/unistr/u32-strncmp.c: New file.
31436
31437         * modules/unistr/u8-strncpy: New file.
31438         * modules/unistr/u16-strncpy: New file.
31439         * modules/unistr/u32-strncpy: New file.
31440         * lib/unistr/u8-strncpy.c: New file.
31441         * lib/unistr/u16-strncpy.c: New file.
31442         * lib/unistr/u32-strncpy.c: New file.
31443         * lib/unistr/u-strncpy.h: New file.
31444
31445         * modules/unistr/u8-strnlen: New file.
31446         * modules/unistr/u16-strnlen: New file.
31447         * modules/unistr/u32-strnlen: New file.
31448         * lib/unistr/u8-strnlen.c: New file.
31449         * lib/unistr/u16-strnlen.c: New file.
31450         * lib/unistr/u32-strnlen.c: New file.
31451         * lib/unistr/u-strnlen.h: New file.
31452
31453         * modules/unistr/u8-strpbrk: New file.
31454         * modules/unistr/u16-strpbrk: New file.
31455         * modules/unistr/u32-strpbrk: New file.
31456         * lib/unistr/u8-strpbrk.c: New file.
31457         * lib/unistr/u16-strpbrk.c: New file.
31458         * lib/unistr/u32-strpbrk.c: New file.
31459         * lib/unistr/u-strpbrk.h: New file.
31460
31461         * modules/unistr/u8-strrchr: New file.
31462         * modules/unistr/u16-strrchr: New file.
31463         * modules/unistr/u32-strrchr: New file.
31464         * lib/unistr/u8-strrchr.c: New file.
31465         * lib/unistr/u16-strrchr.c: New file.
31466         * lib/unistr/u32-strrchr.c: New file.
31467
31468         * modules/unistr/u8-strspn: New file.
31469         * modules/unistr/u16-strspn: New file.
31470         * modules/unistr/u32-strspn: New file.
31471         * lib/unistr/u8-strspn.c: New file.
31472         * lib/unistr/u16-strspn.c: New file.
31473         * lib/unistr/u32-strspn.c: New file.
31474         * lib/unistr/u-strspn.h: New file.
31475
31476         * modules/unistr/u8-strstr: New file.
31477         * modules/unistr/u16-strstr: New file.
31478         * modules/unistr/u32-strstr: New file.
31479         * lib/unistr/u8-strstr.c: New file.
31480         * lib/unistr/u16-strstr.c: New file.
31481         * lib/unistr/u32-strstr.c: New file.
31482         * lib/unistr/u-strstr.h: New file.
31483
31484         * modules/unistr/u8-strtok: New file.
31485         * modules/unistr/u16-strtok: New file.
31486         * modules/unistr/u32-strtok: New file.
31487         * lib/unistr/u8-strtok.c: New file.
31488         * lib/unistr/u16-strtok.c: New file.
31489         * lib/unistr/u32-strtok.c: New file.
31490         * lib/unistr/u-strtok.h: New file.
31491
31492         * modules/unistr/u8-uctomb: New file.
31493         * modules/unistr/u16-uctomb: New file.
31494         * modules/unistr/u32-uctomb: New file.
31495         * lib/unistr/u8-uctomb.c: New file.
31496         * lib/unistr/u16-uctomb.c: New file.
31497         * lib/unistr/u32-uctomb.c: New file.
31498
31499         * MODULES.html.sh (Unicode string functions): Add the new modules.
31500
31501 2007-01-08  Bruno Haible  <bruno@clisp.org>
31502
31503         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
31504         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
31505         subdirectories.
31506
31507 2007-01-08  Karl Berry  <karl@gnu.org>
31508
31509         * doc/error.texi: mention that main() fns must set program_name
31510         when progname is used.
31511
31512 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
31513
31514         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
31515         WCTYPE_H is empty, for the benefit of builds from non-distclean
31516         directories.  Problem reported by Eric Blake in
31517         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
31518
31519 2007-01-08  Bruno Haible  <bruno@clisp.org>
31520
31521         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
31522         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
31523         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
31524         PROVIDE_CANONICALIZE_FILENAME_MODE.
31525         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
31526
31527 2007-01-08  Bruno Haible  <bruno@clisp.org>
31528
31529         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
31530         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
31531         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
31532         * lib/fts.c: Likewise.
31533         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
31534
31535 2006-12-25  Bruno Haible  <bruno@clisp.org>
31536
31537         * modules/utf8-ucs4-safe: New file.
31538         * lib/utf8-ucs4-safe.h: New file.
31539         * lib/unistr/utf8-ucs4-safe.c: New file.
31540
31541         * modules/utf16-ucs4-safe: New file.
31542         * lib/utf16-ucs4-safe.h: New file.
31543         * lib/unistr/utf16-ucs4-safe.c: New file.
31544
31545         * MODULES.html.sh (Unicode string functions): Add the new modules.
31546
31547 2007-01-08  Bruno Haible  <bruno@clisp.org>
31548
31549         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
31550         (Depends-on): Add unitypes.
31551         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
31552         (u8_mbtouc_aux): Move out to separate file.
31553         (u8_mbtouc): Use ucs4_t, uint8_t types.
31554         * lib/unistr/utf8-ucs4.c: New file.
31555
31556         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
31557         (Depends-on): Add unitypes.
31558         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
31559         (u16_mbtouc_aux): Move out to separate file.
31560         (u16_mbtouc): Use ucs4_t, uint16_t types.
31561         * lib/unistr/utf16-ucs4.c: New file.
31562
31563         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
31564         (Depends-on): Add unitypes.
31565         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
31566         (u8_uctomb_aux): Move out to separate file.
31567         (u8_uctomb): Use ucs4_t, uint8_t types.
31568         * lib/unistr/ucs4-utf8.c: New file.
31569
31570         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
31571         (Depends-on): Add unitypes.
31572         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
31573         (u16_uctomb_aux): Move out to separate file.
31574         (u16_uctomb): Use ucs4_t, uint16_t types.
31575         * lib/unistr/ucs4-utf16.c: New file.
31576
31577 2006-12-25  Bruno Haible  <bruno@clisp.org>
31578
31579         * modules/unitypes: New file.
31580         * lib/unitypes.h: New file.
31581         * MODULES.html.sh (func_all_modules): New section "Unicode string
31582         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
31583         this section. Add unitypes.
31584
31585 2007-01-08  Bruno Haible  <bruno@clisp.org>
31586
31587         Avoid variable names that conflict with those from libtool.
31588         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
31589         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
31590         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
31591         library_names_spec to acl_library_names_spec, hardcode_* to
31592         acl_hardcode_*.
31593         Reported by Ralf Wildenhues.
31594
31595 2007-01-08  Bruno Haible  <bruno@clisp.org>
31596
31597         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
31598         definition.
31599         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
31600         definition.
31601         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
31602         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
31603         definition.
31604         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
31605         definition.
31606         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
31607         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
31608         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
31609         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
31610         definition.
31611         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
31612         definition.
31613         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
31614         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
31615         GC_USE_<algorithm>.
31616         * lib/gc-libgcrypt.c: Likewise.
31617         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
31618         * modules/gc-arctwo (configure.ac): Likewise.
31619         * modules/gc-des (configure.ac): Likewise.
31620         * modules/gc-hmac-md5 (configure.ac): Likewise.
31621         * modules/gc-hmac-sha1 (configure.ac): Likewise.
31622         * modules/gc-md2 (configure.ac): Likewise.
31623         * modules/gc-md4 (configure.ac): Likewise.
31624         * modules/gc-md5 (configure.ac): Likewise.
31625         * modules/gc-random (configure.ac): Likewise.
31626         * modules/gc-rijndael (configure.ac): Likewise.
31627         * modules/gc-sha1 (configure.ac): Likewise.
31628
31629 2007-01-08  Bruno Haible  <bruno@clisp.org>
31630
31631         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
31632         macro definition.
31633         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
31634         definition.
31635         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
31636         definition.
31637         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
31638         * modules/fcntl-safer (configure.ac): Likewise.
31639         * modules/fopen-safer (configure.ac): Likewise.
31640         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
31641         GNULIB_FWRITEERROR macro definition.
31642
31643 2007-01-08  Bruno Haible  <bruno@clisp.org>
31644
31645         * m4/gnulib-common.m4: New file.
31646         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
31647         (func_get_filelist): Add m4/gnulib-common.m4.
31648
31649 2007-01-08  Bruno Haible  <bruno@clisp.org>
31650
31651         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
31652         command.
31653
31654 2007-01-08  Jim Meyering  <jim@meyering.net>
31655
31656         Use a more robust test for a "can't happen" condition.
31657         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
31658         narrowed the st_size value.  Presuming the "can't happen" condition
31659         is true, that narrowing could conceivably convert an invalid st_size
31660         value into a valid one.  Instead, use a change based on Matthew
31661         Woehlke's original patch.
31662
31663         Slight readability improvement: use an assert-like macro
31664         in place of literal "abort ()" uses.
31665         * lib/fts.c (fts_assert): Define.
31666         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
31667         Use this macro instead of a bare 'abort'.
31668
31669 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
31670
31671         Don't worry about using IRIX 5.3's wctype.h broken definitions;
31672         simply work around them.
31673         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
31674         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
31675         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
31676         declaring.
31677         Don't bother to define as macros, since the standard doesn't require it.
31678         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
31679         longer worry about IRIX 5.3.
31680         (HAVE_WCTYPE_CTMP_BUG): Remove.
31681
31682 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
31683
31684         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
31685         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
31686         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
31687         Problems reported by Georg Schwarz for IRIX 5.3.
31688
31689         * gnulib-tool (autoconf_minversion): Take the maximum version number
31690         found, not the minimum.  Problem reported by James Youngman.
31691
31692 2007-01-03  Karl Berry  <karl@gnu.org>
31693
31694         * doc/error.texi: new file, explaining interaction with progname.
31695         * doc/gnulib.texi: include it.  Update copyright.
31696
31697 2007-01-03  Simon Josefsson  <simon@josefsson.org>
31698
31699         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
31700         AC_CANONICAL_HOST, to improve autobuild outputs.
31701
31702 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
31703             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
31704
31705         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
31706         sockets, server sockets, and other file descriptors.  Count errors
31707         to compute the return value.  Reorder the code a bit to be easier
31708         to follow.  Don't set event bits that were not requested (except
31709         POLLERR and POLLHUP).
31710
31711 2007-01-01  Bruno Haible  <bruno@clisp.org>
31712
31713         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
31714
31715 2007-01-03  Jim Meyering  <jim@meyering.net>
31716
31717         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
31718
31719 2007-01-02  Bruno Haible  <bruno@clisp.org>
31720
31721         * modules/settime (Include): Require timespec.h.
31722         * modules/nanosleep (Include): Likewise.
31723
31724 2007-01-01  Bruno Haible  <bruno@clisp.org>
31725
31726         * gnulib-tool (func_emit_copyright_notice): Bump year.
31727         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
31728
31729 2007-01-01  Bruno Haible  <bruno@clisp.org>
31730
31731         Improve support for OpenBSD.
31732         * build-aux/config.rpath (libname_spec): Export.
31733         (library_names_spec): New variable. Export.
31734         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
31735         library_names_spec from the config.rpath output. Locate shared library
31736         through the name pattern in library_names_spec.
31737
31738 2007-01-01  Eric Blake  <ebb9@byu.net>
31739
31740         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
31741
31742 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
31743
31744         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
31745         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
31746         assume the C locale, and avoid an "eval" that could cause trouble.
31747         Problem with SORT reported by Bob Proulx.
31748
31749         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
31750         Define.  Trivial patch from Henning Nielsen Lund, originally
31751         sent to bug-grep@gnu.org today.
31752
31753 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
31754
31755         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
31756         struct stat.  Problem reported by Henning Nielsen Lund.
31757         * lib/acl.c: Include acl.h first, to check interface.  Don't
31758         bother to include sys/types.h and sys/stat.h again.
31759
31760 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
31761
31762         Import the following change from libc; problem reported by
31763         Sven Verdoolaege.
31764
31765         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
31766
31767         [BZ #1373]
31768         * lib/argp.h: Remove __NTH for __argp_usage inline function.
31769
31770 2006-12-28  Jim Meyering  <jim@meyering.net>
31771
31772         * build-aux/announce-gen: Do not assume that the package
31773         builds any of tar.gz, tar.bz2, and .xdelta files.
31774         Suggestion from Simon Josefsson.
31775
31776 2006-12-28  Simon Josefsson  <simon@josefsson.org>
31777
31778         * modules/announce-gen: New file.
31779
31780 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
31781
31782         * lib/mbchar.h: Just include <wctype.h>; the wctype module
31783         handles its gotchas now.
31784         * lib/mbswidth.c: Likewise.
31785         * lib/wcwidth.h: Likewise.
31786         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
31787         and iswcntrl; the wctype module does this stuff now.
31788         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
31789         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
31790         * modules/mbchar (Depends-on): Add wctype.
31791         * modules/mbswidth (Depends-on): Likewise.
31792         * modules/wcwidth (Depends-on): Likewise.
31793
31794 2006-12-27  Eric Blake  <ebb9@byu.net>
31795
31796         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
31797         module uses more than what <wctype.h> is required to provide.
31798
31799 2006-12-26  Eric Blake  <ebb9@byu.net>
31800
31801         * gnulib-tool (sed_extract_prog): Avoid space-tab.
31802
31803 2006-12-26  Eric Blake  <ebb9@byu.net>
31804
31805         * modules/absolute-header: New module.
31806         * modules/fcntl (Depends-on): Depend on it.
31807         * modules/inttypes (Depends-on): Likewise.
31808         * modules/stdint (Depends-on): Likewise.
31809         * modules/sys_stat (Depends-on): Likewise.
31810         * modules/wctype (Depends-on): Likewise.
31811         * MODULES.html.sh (Support for building libraries and
31812         executables): Document it.
31813
31814 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
31815
31816         * gnulib-tool (SED): Remove, undoing previous change.
31817         The problem was that it broke coreutils on Solaris, because
31818         "sed --posix" leaked into a makefile.
31819         (sed): New alias, if 'alias' and GNU sed.
31820
31821 2006-12-24  Jim Meyering  <jim@meyering.net>
31822
31823         Work around an fchownat bug in glibc-2.4:
31824         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
31825         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
31826         in spite of the -P option.
31827         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
31828         New macros.
31829         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
31830         * modules/openat (Files): Add lib/fchownat.c.
31831         * lib/openat.c (fchownat): Don't define here.  Move to...
31832         * lib/fchownat.c: ...this new file.
31833
31834 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
31835
31836         Fix bug reported by Bruno Haible in
31837         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
31838         where quotearg.c didn't compile on Mac OS X 10.2 because it
31839         lacks <wchar.h> and wint_t.
31840         * lib/wctype_.h (__wctype_wint_t): New type.
31841         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
31842         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
31843         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
31844         Arg is now of type __wctype_wint_t, not wint_t.
31845         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
31846         substitute HAVE_WINT_T.
31847         * modules/wctype (Files): Add m4/wint_t.m4.
31848         (wctype.h): Substitute HAVE_WINT_T.
31849
31850 2006-12-23  Bruno Haible  <bruno@clisp.org>
31851
31852         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
31853
31854 2006-12-23  Bruno Haible  <bruno@clisp.org>
31855
31856         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
31857         S_ISLNK.
31858         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
31859         mingw.
31860
31861 2006-12-22  Bruno Haible  <bruno@clisp.org>
31862
31863         * lib/copy-file.c: Include acl.h.
31864         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
31865         Close the file descriptors only after being done with copy_acl.
31866         * modules/copy-file (Depends-on): Add acl.
31867
31868 2006-12-22  Bruno Haible  <bruno@clisp.org>
31869
31870         * gnulib-tool (SED): New variable.
31871         Use $SED instead of sed everywhere.
31872
31873 2006-12-22  Bruno Haible  <bruno@clisp.org>
31874
31875         * modules/no-c++: New file.
31876         * m4/no-c++.m4: New file.
31877         * MODULES.html.sh (Support for building libraries and executables):
31878         Add no-c++.
31879
31880 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
31881
31882         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
31883         Include <limits.h>, and use its INT_MAX to rewrite the
31884         j loop so that it does not overflow 'int'.  Problem reported by
31885         Ralf Wildenhues in
31886         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
31887         Play it safe by shifting left by 1 rather than multiplying by 2,
31888         as GCC is less likely to optimize this away when the value
31889         is signed (when it assumes overflow leads to undefined behavior).
31890         Also, don't assume time_t uses two's complement.
31891
31892 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
31893
31894         * MODULES.html.sh: New module wctype.
31895         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
31896         * lib/fnmatch.c: Don't bother to include <wchar.h> before
31897         <wctype.h>, since the new wctype module should fix this.
31898         * lib/quotearg.c: Include <wctype.h> unconditionally, since
31899         the wctype module should arrange for it.
31900         * lib/regex_internal.h: Likewise.
31901         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
31902         since the wctype module should handle this now.
31903         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
31904         * modules/fnmatch (Depends-on): Add wctype.
31905         * modules/quotearg (Depends-on): Likewise.
31906         * modules/regex (Depends-on): Likewise.
31907
31908 2006-12-19  Bruno Haible  <bruno@clisp.org>
31909
31910         * lib/strdup.h [C++]: Wrap definitions in extern "C".
31911         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
31912
31913 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31914
31915         * modules/savewd (Depends-on): Fix dependency on fcntl.
31916
31917 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
31918
31919         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
31920         conforms to C99, rather than relying on the user's environment
31921         setting of STDINT_H.
31922
31923 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
31924         and Eric Blake  <ebb9@byu.net>
31925
31926         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
31927         This is more consistent with the other defines here.
31928         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
31929         Port to z/OS.  Problem reported by Paul Gilmartin.
31930         Change local vars to use gl_ prefix rather than ac_.
31931         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
31932         with other defines.
31933         * modules/double-slash-root: New module.
31934         * modules/dirname (Files): Remove m4/double-slash-root.m4.
31935         (Depends-on): Add double-slash-root.
31936         * MODULES.html.sh (File system functions): Mention new module.
31937
31938 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
31939
31940         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
31941         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
31942         This is for the benefit of gzip, which doesn't do i18n.
31943
31944 2006-12-12  Jim Meyering  <jim@meyering.net>
31945
31946         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
31947         Reported by Andreas Schwab <schwab@suse.de>.
31948
31949 2006-12-12  Bruno Haible  <bruno@clisp.org>
31950
31951         Merge these changes.
31952         2006-09-05  Bruno Haible  <bruno@clisp.org>
31953         * lib/iconvme.c (iconv_string): No need to save and restore errno when
31954         iconv_alloc succeeded.
31955         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
31956         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
31957         test for " && dest " at the end - dest is always != NULL there. Call
31958         iconv with 4xNULL arguments initially, to reset the state. Call iconv
31959         with 2xNULL arguments, also to flush the state storage. Handle the
31960         IRIX iconv behaviour. Realloc the final result, to throw away unused
31961         memory.
31962
31963 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
31964
31965         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
31966         and fchmodat unconditionally, since glibc 2.4 has them.
31967         Problem reported by Arkadiusz Miskiewicz.
31968
31969 2006-12-10  Bruno Haible  <bruno@clisp.org>
31970
31971         * gnulib-tool (func_import): Show the include files only for those
31972         modules that are copied and specified.
31973         Reported by Karl Berry.
31974
31975 2006-12-08  Jim Meyering  <jim@meyering.net>
31976
31977         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
31978         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
31979
31980         * build-aux/announce-gen: Add two new options, both optional:
31981         --bootstrap-tools=TOOL_LIST
31982               a comma-separated list of tools, e.g.,
31983               autoconf,automake,bison,gnulib
31984         --gnulib-snapshot-date=DATE
31985               if gnulib is in the bootstrap tool list,
31986               then report this as the snapshot date.
31987               If not specified, use the current date/time.
31988               If you specify a date here, be sure it's UTC.
31989
31990 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
31991
31992         * tests/test-argp-2.sh: Fix test to match actual output.
31993         (func_compare): Fix sed script to be portable.
31994
31995 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
31996
31997         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
31998         workaround for this case.  It is not autoconfigured now; offhand
31999         it's hard to see how to autoconfigure it.
32000
32001 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
32002
32003         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
32004         a directory that is about to be chowned.  Such a directory's
32005         initial file permissions should permit the owner only and this
32006         should not be changed until after the chown, since the group and
32007         other bits would be incorrect if they granted permission before
32008         the chown.
32009
32010         Fix porting problem for iswctype reported by Georg Schwarz in:
32011         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
32012         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
32013         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
32014         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
32015         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
32016
32017 2006-12-03  Jim Meyering  <jim@meyering.net>
32018
32019         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
32020         p->fts_statp may not yet be defined.
32021         (fts_read): Instead, set it in the caller, once p->fts_statp is
32022         sure to be defined, and corresponds to a top-level directory.
32023         This bug made du -x fail.  Here's the coreutils test case:
32024         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
32025         Reported by Mike Frysinger.
32026
32027 2006-12-01  Jim Meyering  <jim@meyering.net>
32028
32029         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
32030         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
32031         Reported by Simon Josefsson.
32032
32033 2006-11-30  Jim Meyering  <jim@meyering.net>
32034
32035         * m4/warning.m4: Use the all-permissive copyright notice
32036         recommended by RMS (rather than LGPL).
32037         * m4/vararrays.m4: Likewise.
32038         * m4/flexmember.m4: Likewise.
32039
32040 2006-11-29  Bruno Haible  <bruno@clisp.org>
32041
32042         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
32043         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
32044         using +=.
32045         Reported by Simon Josefsson <simon@josefsson.org>.
32046
32047 2006-11-28  James Youngman <jay@gnu.org>
32048
32049         * README: Advise users that they might find the bug-gnulib@gnu.org
32050         and autotools-announce@gnu.org mailing lists useful.
32051
32052 2006-11-28  Bruno Haible  <bruno@clisp.org>
32053
32054         * m4/ptrdiff_max.m4: Remove file.
32055
32056 2006-11-21  Bruno Haible  <bruno@clisp.org>
32057
32058         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
32059         _AC_COMPUTE_INT.
32060         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
32061         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
32062         _AC_COMPUTE_INT.
32063         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
32064         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
32065         _AC_COMPUTE_INT.
32066         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
32067
32068 2006-11-28  Jim Meyering  <jim@meyering.net>
32069
32070         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
32071         warning from "gcc -Wshadow" about shadowing the builtin.
32072
32073 2006-11-27  Bruno Haible  <bruno@clisp.org>
32074
32075         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
32076         _AC_COMPUTE_INT.
32077         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
32078
32079 2006-11-27  Bruno Haible  <bruno@clisp.org>
32080             Paul Eggert  <eggert@cs.ucla.edu>
32081
32082         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
32083
32084 2006-11-26  Bruno Haible  <bruno@clisp.org>
32085
32086         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
32087         noinst_LTLIBRARIES.
32088
32089 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
32090             Bruno Haible  <bruno@clisp.org>
32091
32092         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
32093         if compiling with "gcc -ansi".
32094
32095 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
32096
32097         Fix some incompatibilities with gcc -ansi -pedantic.
32098         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
32099         if compiling pedantically with GCC, unless it's C99 or later.
32100         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
32101         it mishandles gcc -ansi -pedantic as well.
32102         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
32103         if gcc -pedantic.
32104         * lib/regexec.c (check_node_accept_bytes): Don't use auto
32105         initializers for struct if -pedantic, unless it's C99 or later.
32106
32107 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
32108
32109         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
32110         Don't close an fd more than once. Identical atimes indicate
32111         success, not failure.
32112
32113 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
32114
32115         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
32116
32117 2006-11-23  Jim Meyering  <jim@meyering.net>
32118
32119         * build-aux/announce-gen: New file.  From coreutils.
32120
32121 2006-11-22  Jim Meyering  <jim@meyering.net>
32122
32123         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
32124         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
32125         (fts_read): Use a temporary to narrow the overused st_size member
32126         before using it in a switch statement.  Reported by Matthew Woehlke.
32127
32128         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
32129         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
32130
32131 2006-11-20  Bruno Haible  <bruno@clisp.org>
32132
32133         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
32134         changequote instead of pairs of brackets.
32135         Reported by Andreas Schwab <schwab@suse.de>.
32136
32137 2006-11-21  Jim Meyering  <jim@meyering.net>
32138
32139         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
32140         so as to remain compatible with older compilers.
32141         Patch from Michael Deutschmann.
32142
32143 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
32144
32145         * MODULES.html.sh (File system functions): Add openat.
32146
32147         * lib/openat.h (rpl_fstatat): New macro, if
32148         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
32149         (fstatat): Define to rpl_fstatat under the same conditions,
32150         unless COMPILING_FSTATAT.
32151         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
32152         seems to have the bug.
32153         * lib/fstatat.c: New file.
32154         * modules/openat (Files): Add it.
32155
32156 2006-11-20  Bruno Haible  <bruno@clisp.org>
32157
32158         * Makefile: New file.
32159
32160 2006-11-20  Jim Meyering  <jim@meyering.net>
32161
32162         The beginnings of syntax-related checks for gnulib.
32163         * lib/Makefile: New file.
32164         * lib/t-idcache: New script.  Ensure that the two halves of
32165         idcache.c stay in sync.
32166
32167         * lib/idcache.c: Adjust comments in user- and group- portions to
32168         be more accurate, and to be consistent with one another.
32169
32170 2006-11-20  Jim Meyering  <jim@meyering.net>
32171
32172         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
32173         continue using the flexible array member (thus, this module performs
32174         half as many malloc calls), with the addition that...
32175         (getgroup, getuser): Consistently record a non-match via an empty
32176         "name" string, and map an empty string match to a NULL return value.
32177         * modules/idcache (Depends-on): Re-add flexmember.
32178
32179         * lib/idcache.c (getuser): Remove all uses of the register keyword.
32180         (getuidbyname, getgroup, getgidbyname): Likewise.
32181
32182         Use cleaner syntax: NULL rather than 0.
32183         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
32184
32185 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
32186
32187         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
32188         It mishandled the case where the group was missing.
32189         Problem reported by Greg Schafer.
32190         * modules/idcache: Likewise.
32191
32192 2006-11-18  Jim Meyering  <jim@meyering.net>
32193
32194         * check-module (%exempt_header): Add exception for some
32195         conditionally-included headers.
32196
32197         * modules/i-ring (Depends-on): Add verify.
32198         (License): Change to LGPL.
32199
32200 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
32201
32202         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
32203         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
32204         and inttostr.h.  Use snprintf rather than uinttostr, so that
32205         LGPLed code doesn't depend on GPLed.
32206
32207 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
32208
32209         * modules/inline (License): Change from GPL to LGPL.
32210
32211 2006-11-17  Jim Meyering  <jim@meyering.net>
32212
32213         * modules/d-type (License): Switch to LGPL.
32214
32215 2006-11-15  Bruno Haible  <bruno@clisp.org>
32216
32217         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
32218
32219 2006-11-15  Eric Blake  <ebb9@byu.net>
32220
32221         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
32222         the module dependency.
32223
32224 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
32225             Bruno Haible  <bruno@clisp.org>
32226
32227         * gnulib-tool (func_create_testdir): Add license consistency check.
32228
32229 2006-11-15  Eric Blake  <ebb9@byu.net>
32230
32231         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
32232         random "(cached)" in configure output.
32233
32234 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32235
32236         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
32237         test for conforming inttypes.h is both announced and cached.
32238
32239         * MODULES.html.sh (seen_modules, seen_files): New variables.
32240         (func_module): Rewrite to use a few less gnulib-tool and sed
32241         invocations.  Avoid a couple of quadratic algorithms for ...
32242         (missed_modules, missed_files): ... these, with ...
32243         (func_append, func_tmpdir): ... these new functions, from
32244         gnulib-tool.  Analogously, install traps for cleanup.
32245
32246         * tests/test-gc.c (main): Remove unused variables.
32247         * tests/test-read-file.c: Include stdlib.h, for 'free'.
32248
32249 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
32250
32251         * modules/inttostr (License): Change to LGPL.
32252
32253 2006-11-14  Eric Blake  <ebb9@byu.net>
32254
32255         * modules/tempname (License): Change to LGPL.
32256
32257 2006-11-14  Eric Blake  <ebb9@byu.net>
32258
32259         * doc/functions.texi (Function Portability): *printf functions on
32260         Cygwin now understand all POSIX size specifiers.
32261
32262 2006-11-14  Bruno Haible  <bruno@clisp.org>
32263
32264         * modules/c-ctype (License): Change to LGPL.
32265
32266 2006-11-12  Bruno Haible  <bruno@clisp.org>
32267
32268         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
32269         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
32270         for GNOME libraries, for which the include files are installed in
32271         subdirectories of $prefix/include.
32272
32273 2006-11-12  Bruno Haible  <bruno@clisp.org>
32274
32275         * m4/lib-link.m4: Require at least autoconf-2.54.
32276         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
32277         name to underscores for the --with option.
32278
32279 2006-11-13  Bruno Haible  <bruno@clisp.org>
32280
32281         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
32282         the tests directory.
32283         Reported by Ralf Wildenhues.
32284
32285 2006-11-13  Bruno Haible  <bruno@clisp.org>
32286
32287         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
32288         (func_emit_initmacro_end): Undo the override here.
32289         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
32290         Works around the famous automake error in coreutils.
32291
32292 2006-11-13  Eric Blake  <ebb9@byu.net>
32293
32294         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
32295         element, not its node.
32296
32297 2006-11-12  Bruno Haible  <bruno@clisp.org>
32298
32299         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
32300         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
32301
32302 2006-11-12  Bruno Haible  <bruno@clisp.org>
32303
32304         * gnulib-tool: New option --local-symlink.
32305         (func_usage): Document it.
32306         (lsymbolic): New variable.
32307         (func_import, func_create_testdir): If --symlink was not specified,
32308         test whether --local-symlink was specified and the file comes from
32309         the local_gnulib_dir.
32310
32311 2006-11-12  Bruno Haible  <bruno@clisp.org>
32312
32313         * gnulib-tool (func_ln): New function.
32314         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
32315
32316 2006-11-12  Bruno Haible  <bruno@clisp.org>
32317
32318         Finish support for source files in subdirectories.
32319         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
32320         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
32321         AUTOMAKE_OPTIONS.
32322         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
32323
32324 2006-11-12  Bruno Haible  <bruno@clisp.org>
32325
32326         * gnulib-tool (func_get_automake_snippet): Synthesize also an
32327         EXTRA_lib_SOURCES augmentation.
32328         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
32329
32330 2006-11-12  Jim Meyering  <jim@meyering.net>
32331
32332         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
32333         file descriptors.  This also averts a failure on systems with
32334         native openat support when a traversed directory lacks "x" access.
32335         * lib/fts_.h: Include "i-ring.h"
32336         (struct FTS) [fts_fd_ring]: New member.
32337         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
32338         (FCHDIR): Add parentheses.
32339         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
32340         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
32341         When descending, rather than simply closing the previous
32342         fts_cwd_fd value, push that file descriptor onto the ring.
32343         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
32344         (fts_open): Initialize the new fd_ring member.
32345         (fts_close): Clear the ring.
32346         (fts_safe_changedir): When possible, use our new fd_ring to skip
32347         the diropen and fstat and dev/ino comparison that would normally
32348         accompany a virtual `chdir ("..")'.
32349
32350         * modules/fts (Depends-on): Add i-ring.
32351         * modules/i-ring: New module.
32352         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
32353         * m4/i-ring.m4: New file.
32354
32355 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32356
32357         * gnulib-tool (func_create_testdir): Fix replacement of
32358         `build-aux' in configure.ac.  Run autotools in gltests
32359         subdirectory.
32360         (func_create_testdir, func_create_megatestdir, test): There is
32361         no need for '--force' in most autotool invocations in a new
32362         tree.  Actually fail the whole test if any of the tools, or the
32363         configure or make stages fail.
32364
32365         Sync from Automake.
32366         * build-aux/gnupload: Revert last change.  Add pointer to upload
32367         instructions of the GNU Maintenance Instructions.
32368         Suggestion by Karl Berry.
32369
32370 2006-11-10  Jim Meyering  <jim@meyering.net>
32371
32372         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
32373
32374 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
32375
32376         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
32377         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
32378         (bind_textdomain_codeset) [! ENABLE_NLS]:
32379         Evaluate all the arguments.  That way, callers get compatible behavior
32380         if the arguments have side effects.  Also, it avoids some GCC
32381         diagnostics in some cases; Joel E. Denny reported problems when Bison
32382         was configured with --enable-gcc-warnigs.
32383
32384 2006-11-10  Jim Meyering  <jim@meyering.net>
32385
32386         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
32387         relevant options in CFLAGS (like -O, -fno-inline) are taken into
32388         account.
32389
32390 2006-11-10  Jim Meyering  <jim@meyering.net>
32391
32392         * modules/inline: New file/module.
32393         * modules/xalloc (Files): Remove m4/inline.m4.
32394         (Depends-on): Add inline, instead.
32395         * modules/oset: Likewise.
32396         * modules/list: Likewise.
32397
32398 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
32399
32400         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
32401         Problem reported by Matthew Woehlke.
32402
32403 2006-11-09  Bruno Haible  <bruno@clisp.org>
32404
32405         * lib/tempname.c (gen_tempname): Remove variant that invokes
32406         __gen_tempname.
32407         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
32408         __gen_tempname.
32409
32410 2006-11-08  Bruno Haible  <bruno@clisp.org>
32411
32412         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
32413         to 'yes' instead of 'cross-compiling'.
32414
32415 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
32416
32417         * lib/quotearg.h (quotearg_free): New decl.
32418         * lib/quotearg.c (quotearg_free): New function.
32419         (slot0, nslots, slotvec0, slotvec):
32420         Now file-scope so that quotearg_free can get at them.
32421
32422 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32423
32424         Sync from Automake.
32425         * build-aux/gnupload: Add missing 'gnu' to example URL.
32426         Report by Karl Berry.
32427
32428 2006-11-08  Bruno Haible  <bruno@clisp.org>
32429
32430         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
32431         Suggested by Paul Eggert.
32432
32433 2006-11-08  Jim Meyering  <jim@meyering.net>
32434
32435         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
32436         It's already included if !_LIBC.
32437         (fts_safe_changedir): Add a comment.
32438
32439 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
32440
32441         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
32442         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
32443         Matthew Woehlke.
32444
32445         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
32446         definitions up, to avoid colliding with change below.
32447         (static_inline) [HAVE_INLINE]: New macro.
32448         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
32449         Provide extern decls when !HAVE_INLINE.  Do not define unless
32450         static_inline is defined, either by us or by xmalloc.c.  Use
32451         static_inline rather than static inline.
32452         (XCALLOC): Optimize sizeof(T) = 1 case.
32453         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
32454
32455 2006-11-07  Bruno Haible  <bruno@clisp.org>
32456
32457         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
32458         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
32459         AC_C_INLINE.
32460         * modules/xalloc (Files): Add m4/inline.m4.
32461
32462 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32463
32464         * README: Fix typo.
32465         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
32466         (Miscellanous Notes): ...from this.
32467
32468 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
32469
32470         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
32471         Mention that offsetof should be used instead of sizeof.
32472         From Bruno Haible.
32473
32474 2006-11-07  Bruno Haible  <bruno@clisp.org>
32475
32476         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
32477
32478 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
32479
32480         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
32481         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
32482         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
32483         (gl_tree_add_before, gl_tree_add_after):
32484         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
32485         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
32486         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
32487         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
32488         (gl_linked_add_after, gl_linked_add_at): Likewise.
32489         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
32490         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
32491         (gl_tree_add_before, gl_tree_add_after): Likewise.
32492         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
32493         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
32494         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
32495
32496 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32497
32498         * lib/gl_oset.h: Use C comment style, not C++ comment style.
32499
32500 2006-11-06  Bruno Haible  <bruno@clisp.org>
32501
32502         * m4/inline.m4: New file.
32503         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
32504         * modules/list (Files): Add m4/inline.m4.
32505         * modules/oset (Files): Likewise.
32506
32507 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
32508
32509         * lib/idcache.c: Include <stddef.h>, for offsetof.
32510         (struct userid.name): Change from char * to a flexible array member.
32511         All uses changed.
32512         * modules/idcache (Depends-on): Add flexmember.
32513
32514         * MODULES.html.sh (Core language properties): New module flexmember.
32515         * modules/flexmember, m4/flexmember.m4: New files.
32516
32517         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
32518         inline functions that are identical with the old xnmalloc_inline,
32519         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
32520         that we can avoid some unnecessary integer multiplications and
32521         divisions in the common case where the element size is known at
32522         compile time.
32523         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
32524         needed.
32525         (xnboundedmalloc): Remove.
32526         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
32527         arguments, for consistency with rest of this header.
32528         (xcharalloc): Rewrite using XNMALLOC.
32529         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
32530         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
32531         versions have been moved to lib/xalloc.h and renamed to be the
32532         non-*_inline versions.
32533         (xmalloc, xrealloc): Implement without reference to the xnmalloc
32534         and xnrealloc functions, since those functions are now inline and
32535         now call us.
32536         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
32537         renaming described above.
32538         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
32539         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
32540         captures the dependency in AC_C_INLINE.
32541
32542         New module canonicalize-lgpl, proposed by Charles Wilson in
32543         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
32544         with a few small changes afterwards.
32545         * MODULES.html.sh (File system functions): New module
32546         canonicalize-lgpl.
32547         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
32548         and canonicalize_file_name.
32549         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
32550         * modules/canonicalize-lgpl: New files.
32551
32552 2006-11-05  Bruno Haible  <bruno@clisp.org>
32553
32554         * gnulib-tool (func_import, func_create_testdir): Create directories
32555         also for files in subdirectories of lib/.
32556
32557 2006-11-05  Bruno Haible  <bruno@clisp.org>
32558
32559         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
32560         ANSI C compliant.
32561
32562 2006-11-03  Bruno Haible  <bruno@clisp.org>
32563
32564         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
32565         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
32566         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
32567         (xnboundedmalloc): New inline function.
32568         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
32569         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
32570         xmalloc.
32571         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
32572         xmalloc.
32573         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
32574         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
32575         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
32576         xmalloc.
32577         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
32578         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
32579         xmalloc.
32580         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
32581         gl_tree_add_after): Use XMALLOC instead of xmalloc.
32582         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
32583         xmalloc.
32584         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
32585         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
32586         gl_tree_add_after): Use XMALLOC instead of xmalloc.
32587         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
32588         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
32589         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
32590         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
32591
32592 2006-11-03  Bruno Haible  <bruno@clisp.org>
32593
32594         * lib/c-ctype.h [C++]: Define functions without name mangling.
32595         * lib/fwriteerror.h [C++]: Likewise.
32596         * lib/gcd.h [C++]: Likewise.
32597         * lib/linebreak.h [C++]: Likewise.
32598
32599 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
32600
32601         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
32602         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
32603         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
32604         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
32605         Check for functions and headers just once.
32606         Check for declaration of canonicalize_file_name.
32607         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
32608
32609 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
32610
32611         * gnulib-tool (func_import): Fix typo in actioncmd.
32612
32613 2006-11-02  Bruno Haible  <bruno@clisp.org>
32614
32615         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
32616         newline sequence in the Makefile.am snippet as a space, like "make"
32617         does.
32618         Reported by Roger Persson <perrog@gmail.com>.
32619
32620 2006-11-01  Bruno Haible  <bruno@clisp.org>
32621
32622         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
32623         already declared in <string.h>.
32624         * lib/strcase.h (strncasecmp): Don't declare it if yes.
32625
32626 2006-11-01  Bruno Haible  <bruno@clisp.org>
32627
32628         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
32629         * lib/strcase.h: Include <string.h>.
32630         (strcasecmp): Define to rpl_strcasecmp here.
32631
32632 2006-11-01  Bruno Haible  <bruno@clisp.org>
32633
32634         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
32635
32636 2006-11-01  Eric Blake  <ebb9@byu.net>
32637
32638         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
32639
32640         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
32641
32642 2006-10-29  Bruno Haible  <bruno@clisp.org>
32643
32644         Make it compile in C++ mode.
32645         * lib/full-write.c (full_rw): Add a cast.
32646
32647 2006-11-01  Bruno Haible  <bruno@clisp.org>
32648
32649         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
32650         be POSIX compliant.
32651         Reported by Roger Persson <perrog@gmail.com>.
32652
32653 2006-11-01  Eric Blake  <ebb9@byu.net>
32654
32655         * lib/getopt_.h: Fix comments.
32656
32657 2006-10-31  Eric Blake  <ebb9@byu.net>
32658
32659         * modules/tmpdir (Depends-on): Add sys_stat.
32660         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
32661         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
32662         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
32663         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
32664         tempname.
32665
32666 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
32667
32668         Avoid some C++ diagnostics reported by Bruno Haible.
32669         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
32670         xmalloc.
32671         (quotearg_alloc): Use xcharalloc rather than xmalloc.
32672         (struct slotvec): Move to top level.
32673         (quotearg_n_options): Rewrite to avoid xmalloc.
32674         * lib/xalloc.h (xcharalloc): New function.
32675         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
32676         [defined __cplusplus]: Add function template that provides result
32677         type propagation.  This part of the change is from Bruno Haible.
32678
32679 2006-10-29  Bruno Haible  <bruno@clisp.org>
32680
32681         Make it compile in C++ mode.
32682         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
32683         * lib/strnlen1.c (strnlen1): Cast memchr result.
32684         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
32685         * lib/clean-temp.c (string_equals, string_hash): Add casts.
32686         (create_temp_dir): Rename local variable 'template'.
32687         (compile_csharp_using_sscli): Add cast.
32688         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
32689         * lib/findprog.c (find_in_path): Likewise.
32690         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
32691         * lib/wait-process.c (register_slave_subprocess): Likewise.
32692
32693 2006-10-22  Bruno Haible  <bruno@clisp.org>
32694
32695         * modules/tsearch: New file.
32696         * lib/tsearch.h: New file.
32697         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
32698         * m4/tsearch.m4: New file.
32699         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
32700
32701 2006-10-29  Eric Blake  <ebb9@byu.net>
32702
32703         * lib/arcfour.c: Assume config.h.
32704         * lib/arctwo.c: Likewise.
32705         * lib/base64.c: Likewise.
32706         * lib/check-version.c: Likewise.
32707         * lib/crc.c: Likewise.
32708         * lib/des.c: Likewise.
32709         * lib/gc-gnulib.c: Likewise.
32710         * lib/gc-libgcrypt.c: Likewise.
32711         * lib/gc-pbkdf2-sha1.c: Likewise.
32712         * lib/getaddrinfo.c: Likewise.
32713         * lib/getdelim.c: Likewise.
32714         * lib/getline.c: Likewise.
32715         * lib/hmac-md5.c: Likewise.
32716         * lib/hmac-sha1.c: Likewise.
32717         * lib/iconvme.c: Likewise.
32718         * lib/md2.c: Likewise.
32719         * lib/md4.c: Likewise.
32720         * lib/memxor.c: Likewise.
32721         * lib/read-file.c: Likewise.
32722         * lib/readline.c: Likewise.
32723         * lib/rijndael-alg-fst.c: Likewise.
32724         * lib/rijndael-api-fst.c: Likewise.
32725         * lib/xgetdomainname.c: Likewise.
32726
32727 2006-10-28  Eric Blake  <ebb9@byu.net>
32728
32729         * lib/xstrndup.c: Assume config.h.
32730
32731 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
32732
32733         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
32734         stat-macros.h is now for our own macros, whereas stat_h is for
32735         macros in the <sys/stat.h> name space.
32736         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
32737         (STAT_MACROS_H): Remove.
32738         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
32739         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
32740         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
32741         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
32742         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
32743         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
32744         Move these macros to ...
32745         * lib/stat_.h: here.  Don't include stat-macros.h.
32746         * lib/canonicalize.c: Don't include stat-macros.h.
32747         * lib/chown.c: Likewise.
32748         * lib/euidaccess.c: Likewise.
32749         * lib/file-type.c: Likewise.
32750         * lib/filemode.c: Likewise.
32751         * lib/glob.c: Likewise.
32752         * lib/isapipe.c: Likewise.
32753         * lib/lchown.c: Likewise.
32754         * lib/lstat.c: Likewise.
32755         * lib/mkdir-p.c: Likewise.
32756         * lib/rmdir.c: Likewise.
32757         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
32758         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
32759         unless mkdir isn't declared, to speed up 'configure'.
32760         Always create sys/stat.h, since it's unlikely any real sys/stat.h
32761         would define all the S_* symbols.
32762         * modules/canonicalize (Depends-on):
32763         Depend on sys_stat, not stat-macros.
32764         * modules/chown: Likewise.
32765         * modules/euidaccess: Likewise.
32766         * modules/filemode: Likewise.
32767         * modules/file-type: Likewise.
32768         * modules/glob: Likewise.
32769         * modules/isapipe: Likewise.
32770         * modules/lchown: Likewise.
32771         * modules/lstat: Likewise.
32772         * modules/mkancesdirs: Likewise.
32773         * modules/rmdir: Likewise.
32774         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
32775         * modules/modechange: Likewise.
32776         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
32777         (configure.ac): Remove gl_STAT_MACROS.
32778         * modules/sys_stat (Depends-on): Remove stat-macros.
32779
32780 2006-10-27  Bruno Haible  <bruno@clisp.org>
32781
32782         * m4/signed.m4: Remove file.
32783         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
32784         invocation.
32785         * modules/vasnprintf (Files): Remove m4/signed.m4.
32786
32787 2006-10-27  Bruno Haible  <bruno@clisp.org>
32788
32789         Update to GNU gettext 0.16.
32790         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
32791         m4/inttypes-h.m4, m4/signed.m4.
32792         * m4/gettext.m4: Update to GNU gettext 0.16.
32793         * m4/intl.m4: New file, from GNU gettext.
32794         * m4/intldir.m4: New file, from GNU gettext.
32795         * config/srclist.txt: Update
32796
32797 2006-10-27  Eric Blake  <ebb9@byu.net>
32798
32799         * MODULES.html.sh: Document tempname.
32800         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
32801         dependencies.
32802         (Files): Move lib/tempname.c...
32803         * modules/tempname: ...to this new module.
32804         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
32805         (gl_PREREQ_TEMPNAME): Move...
32806         * m4/tempname.m4: ...to this new file.
32807         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
32808         * modules/sys_stat (Depends-on): Add stat-macros.
32809         * lib/stat_.h (includes): Pick up stat macros.
32810         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
32811         if stat macros are broken.
32812         * lib/tempname.c (includes): No need to include "stat-macros.h".
32813         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
32814         (direxists, __path_search) [!_LIBC]: Don't compile these in
32815         gnulib; the tmpdir module covers that.
32816         * lib/tempname.h: New file.
32817
32818 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
32819
32820         * COPYING: Explain how gnulib-tool converts licence headers.
32821         Almost all wording by Eric Blake.
32822
32823 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
32824
32825         * lib/mbchar.h (is_basic_table): Make read-only.
32826         * lib/mbchar.c (is_basic_table): Likewise.
32827         Reported by John Darrington.
32828
32829 2006-10-25  Bruno Haible  <bruno@clisp.org>
32830
32831         * lib/progname.h (set_program_name): Undefine before defining.
32832
32833 2006-10-25  Bruno Haible  <bruno@clisp.org>
32834
32835         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
32836         false for non-gcc C++ compilers.
32837         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
32838
32839 2006-10-24  Bruno Haible  <bruno@clisp.org>
32840
32841         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
32842         iconv implementations like Irix iconv.
32843
32844 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
32845
32846         * modules/vararrays: New file.
32847         * m4/vararrays.m4: New file, taken from diffutils.
32848         * MODULES.html.sh: New module vararrays.
32849
32850 2006-10-24  Karl Berry  <karl@gnu.org>
32851
32852         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
32853         Don't call GNU Unix.
32854
32855 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32856
32857         * users.txt: Add Libtool.
32858
32859         Sync from Libtool:
32860
32861         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
32862
32863         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
32864         to gnulib's policy of including config.h unconditionally.
32865
32866 2006-10-24  Bruno Haible  <bruno@clisp.org>
32867
32868         * modules/wcwidth (Files): Add m4/wint_t.m4.
32869         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
32870         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
32871
32872 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
32873
32874         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
32875         to pacify GCC with some -W flags enabled.  Problem reported by
32876         Bruno Haible.
32877
32878 2006-10-24  Jim Meyering  <jim@meyering.net>
32879
32880         * MODULES.html.sh: Remove uinttostr.  It's not a module.
32881         Reported by Karl Berry.
32882
32883 2006-10-23  Bruno Haible  <bruno@clisp.org>
32884
32885         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
32886
32887 2006-10-24  Bruno Haible  <bruno@clisp.org>
32888
32889         * lib/gl_list.h: Use C comment style, not C++ comment style.
32890
32891 2006-10-23  Eric Blake  <ebb9@byu.net>
32892
32893         * lib/getaddrinfo.c (includes): Add missing include.
32894
32895 2006-10-23  Bruno Haible  <bruno@clisp.org>
32896             Paul Eggert  <eggert@cs.ucla.edu>
32897
32898         Ability to rename obstack_free.
32899         * lib/obstack.h (__obstack_free): New macro. Declare instead of
32900         obstack_free.
32901         (obstack_free): Invoke the __obstack_free macro.
32902         * lib/obstack.c (obstack_free): Use __obstack_free macro.
32903
32904 2006-10-23  Bruno Haible  <bruno@clisp.org>
32905             Paul Eggert  <eggert@cs.ucla.edu>
32906
32907         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
32908         __argc, __argv from the declaration. (They are defined as macros on
32909         mingw.)
32910
32911 2006-10-22  Bruno Haible  <bruno@clisp.org>
32912
32913         * doc/gnulib-intro.texi: New file.
32914         * doc/gnulib.texi: Include it.
32915
32916 2006-10-21  Bruno Haible  <bruno@clisp.org>
32917
32918         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
32919         "Introduction", "Miscellanous Notes", "Particular Modules".
32920
32921 2006-10-21  Bruno Haible  <bruno@clisp.org>
32922
32923         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
32924         Change mostlyclean-local rule to avoid sh syntax error from bash
32925         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
32926
32927 2006-10-23  Jim Meyering  <jim@meyering.net>
32928
32929         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
32930         in place of snprintf.
32931
32932         * modules/inttostr (Files): Add lib/uinttostr.c.
32933         * lib/uinttostr.c (inttostr): New file/function.
32934         * lib/inttostr.h (uinttostr): Declare.
32935         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
32936         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
32937         Add uinttostr.
32938         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
32939
32940 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
32941
32942         * lib/canonicalize.c (ELOOP): Define if not already defined.
32943         Problem reported by Bruno Haible in
32944         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
32945
32946 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
32947
32948         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
32949         Problem reported by Perry Smith and Ville Laurikari.
32950
32951         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
32952         uses.
32953
32954 2006-10-19  Bruno Haible  <bruno@clisp.org>
32955
32956         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
32957         for mingw.
32958
32959 2006-10-19  Bruno Haible  <bruno@clisp.org>
32960
32961         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
32962         Needed for mingw.
32963
32964 2006-10-19  Bruno Haible  <bruno@clisp.org>
32965
32966         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
32967
32968 2006-10-19  Bruno Haible  <bruno@clisp.org>
32969
32970         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
32971         it.
32972
32973 2006-10-19  Bruno Haible  <bruno@clisp.org>
32974
32975         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
32976         invocation.
32977
32978 2006-10-19  Bruno Haible  <bruno@clisp.org>
32979
32980         * gnulib-tool (func_create_testdir): Don't include ftruncate and
32981         mountlist by default.
32982
32983 2006-10-16  Bruno Haible  <bruno@clisp.org>
32984
32985         * lib/c-strstr.c: Include c-strstr.h.
32986
32987 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
32988
32989         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
32990         in a slash.
32991
32992 2006-10-18  Bruno Haible  <bruno@clisp.org>
32993
32994         * lib/lock.h [C++]: Wrap definitions in extern "C".
32995
32996 2006-10-18  Bruno Haible  <bruno@clisp.org>
32997
32998         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
32999         gl_LIBOBJS list.
33000
33001 2006-10-18  Bruno Haible  <bruno@clisp.org>
33002
33003         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
33004
33005 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
33006
33007         * lib/xstrtol.h: Include gettext.h.
33008         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
33009         Problem reported by Eric Blake.
33010         * modules/xstrtol (Depends-on): Add gettext-h.
33011
33012 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
33013
33014         * lib/strftime.c (advance): New macro.
33015         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
33016         incomplete type, so you can't add 0 to it.  Problem and patch
33017         reported by Eelco Dolstra for dietlibc.
33018
33019 2006-10-18  Jim Meyering  <jim@meyering.net>
33020
33021         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
33022         type for a local, and rename it: s/up/user_proc/.
33023
33024 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
33025
33026         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
33027         READ_UTMP_USER_PROCESS.
33028         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
33029
33030 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
33031
33032         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
33033         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
33034
33035 2006-10-17  Eric Blake  <ebb9@byu.net>
33036
33037         * lib/sigprocmask.c (sigprocmask): Fix typo.
33038
33039         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
33040
33041         * modules/clean-temp (Makefile.am): Don't add to make output...
33042         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
33043         config.h.
33044
33045 2006-10-17  Bruno Haible  <bruno@clisp.org>
33046
33047         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
33048         differently if DEFAULT_TEXT_DOMAIN is set.
33049
33050 2006-10-16  Bruno Haible  <bruno@clisp.org>
33051
33052         * lib/clean-temp.c: Include fwriteerror.h.
33053
33054 2006-10-16  Bruno Haible  <bruno@clisp.org>
33055
33056         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
33057
33058 2006-10-16  Bruno Haible  <bruno@clisp.org>
33059
33060         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
33061         * lib/sigprocmask.h: Include <sys/types.h>.
33062         (sigset_t): Use the system's definition if present.
33063
33064 2006-10-17  Eric Blake  <ebb9@byu.net>
33065
33066         * lib/xvasprintf.c (includes): Assume config.h.
33067         * lib/xasprintf.c (includes): Likewise.
33068
33069 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
33070
33071         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
33072         at least as wide as intmax_t.
33073
33074 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
33075
33076         (Imported from Automake.)
33077         * build-aux/gnupload: Update to version 1.1 of directive file.
33078
33079 2006-10-16  Eric Blake  <ebb9@byu.net>
33080
33081         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
33082         match Automake 1.10a.
33083
33084 2006-10-14  Bruno Haible  <bruno@clisp.org>
33085
33086         * modules/sigprocmask: New file.
33087         * lib/sigprocmask.h: New file.
33088         * lib/sigprocmask.c: New file.
33089         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
33090         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
33091         request sigprocmask.o.
33092         (gl_PREREQ_SIGPROCMASK): New macro.
33093         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
33094         (Depends-on): Add sigprocmask.
33095         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
33096         gt_SIGNALBLOCKING. Test for 'raise' only once.
33097         * lib/fatal-signal.c: Include sigprocmask.h.
33098         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
33099         unblock_fatal_signals): Define always.
33100         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
33101         sigprocmask.
33102
33103 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
33104
33105         Sync from Automake.
33106         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
33107         which incorrectly sets the mode of an existing destination
33108         directory.  In some cases the unpatched install-sh could do the
33109         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
33110         system.  We hope this is rare in practice, but it's clearly worth
33111         fixing.  Problem reported by Alex Unleashed in
33112         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
33113         Also, don't bother to check for -m bugs unless we're using -m;
33114         suggested by Stepan Kasal.
33115
33116 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
33117
33118         Sync from Automake.
33119         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
33120         `-c' flag, so they appear at the same position as in %FASTDEP%
33121         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
33122         which ignores unknown options only after the first non-option.
33123         Bug report against M4 by Nelson H. F. Beebe.
33124
33125 2006-10-13  Jim Meyering  <jim@meyering.net>
33126
33127         Fix a bug in yesterday's change.
33128         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
33129         p->fts_statp->st_dev would be used uninitialized.
33130         Ensures that we always call fts_stat on the very first entry.
33131         Miklos Szeredi reported that find -xdev stopped working.
33132
33133 2006-10-12  Bruno Haible  <bruno@clisp.org>
33134
33135         * gnulib-tool (func_get_automake_snippet): Append an automatically
33136         computed EXTRA_DIST augmentation.
33137         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
33138         * modules/alloca-opt (Makefile.am): Likewise.
33139         * modules/allocsa (Makefile.am): Likewise.
33140         * modules/arcfour (Makefile.am): Likewise.
33141         * modules/arctwo (Makefile.am): Likewise.
33142         * modules/argmatch (Makefile.am): Likewise.
33143         * modules/argz (Makefile.am): Likewise.
33144         * modules/atexit (Makefile.am): Likewise.
33145         * modules/backupfile (Makefile.am): Likewise.
33146         * modules/byteswap (Makefile.am): Likewise.
33147         * modules/c-strtod (Makefile.am): Likewise.
33148         * modules/c-strtold (Makefile.am): Likewise.
33149         * modules/calloc (Makefile.am): Likewise.
33150         * modules/canon-host (Makefile.am): Likewise.
33151         * modules/canonicalize (Makefile.am): Likewise.
33152         * modules/chdir-long (Makefile.am): Likewise.
33153         * modules/chdir-safer (Makefile.am): Likewise.
33154         * modules/check-version (Makefile.am): Likewise.
33155         * modules/chown (Makefile.am): Likewise.
33156         * modules/cloexec (Makefile.am): Likewise.
33157         * modules/close-stream (Makefile.am): Likewise.
33158         * modules/closeout (Makefile.am): Likewise.
33159         * modules/crc (Makefile.am): Likewise.
33160         * modules/csharpexec (Makefile.am): Likewise.
33161         * modules/cycle-check (Makefile.am): Likewise.
33162         * modules/des (Makefile.am): Likewise.
33163         * modules/dev-ino (Makefile.am): Likewise.
33164         * modules/dirfd (Makefile.am): Likewise.
33165         * modules/dirname (Makefile.am): Likewise.
33166         * modules/dup2 (Makefile.am): Likewise.
33167         * modules/eealloc (Makefile.am): Likewise.
33168         * modules/error (Makefile.am): Likewise.
33169         * modules/euidaccess (Makefile.am): Likewise.
33170         * modules/exclude (Makefile.am): Likewise.
33171         * modules/exitfail (Makefile.am): Likewise.
33172         * modules/fcntl-safer (Makefile.am): Likewise.
33173         * modules/fcntl (Makefile.am): Likewise.
33174         * modules/file-type (Makefile.am): Likewise.
33175         * modules/fileblocks (Makefile.am): Likewise.
33176         * modules/filemode (Makefile.am): Likewise.
33177         * modules/filenamecat (Makefile.am): Likewise.
33178         * modules/fnmatch (Makefile.am): Likewise.
33179         * modules/fopen-safer (Makefile.am): Likewise.
33180         * modules/fpending (Makefile.am): Likewise.
33181         * modules/fprintftime (Makefile.am): Likewise.
33182         * modules/free (Makefile.am): Likewise.
33183         * modules/fsusage (Makefile.am): Likewise.
33184         * modules/ftruncate (Makefile.am): Likewise.
33185         * modules/fts (Makefile.am): Likewise.
33186         * modules/gc-arcfour (Makefile.am): Likewise.
33187         * modules/gc-des (Makefile.am): Likewise.
33188         * modules/gc-hmac-md5 (Makefile.am): Likewise.
33189         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
33190         * modules/gc-md4 (Makefile.am): Likewise.
33191         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
33192         * modules/gc-sha1 (Makefile.am): Likewise.
33193         * modules/gc (Makefile.am): Likewise.
33194         * modules/getaddrinfo (Makefile.am): Likewise.
33195         * modules/getcwd (Makefile.am): Likewise.
33196         * modules/getdelim (Makefile.am): Likewise.
33197         * modules/getdomainname (Makefile.am): Likewise.
33198         * modules/getgroups (Makefile.am): Likewise.
33199         * modules/gethostname (Makefile.am): Likewise.
33200         * modules/gethrxtime (Makefile.am): Likewise.
33201         * modules/getline (Makefile.am): Likewise.
33202         * modules/getloadavg (Makefile.am): Likewise.
33203         * modules/getlogin_r (Makefile.am): Likewise.
33204         * modules/getndelim2 (Makefile.am): Likewise.
33205         * modules/getopt (Makefile.am): Likewise.
33206         * modules/getpagesize (Makefile.am): Likewise.
33207         * modules/getpass-gnu (Makefile.am): Likewise.
33208         * modules/getpass (Makefile.am): Likewise.
33209         * modules/getsubopt (Makefile.am): Likewise.
33210         * modules/gettime (Makefile.am): Likewise.
33211         * modules/gettimeofday (Makefile.am): Likewise.
33212         * modules/getugroups (Makefile.am): Likewise.
33213         * modules/getusershell (Makefile.am): Likewise.
33214         * modules/glob (Makefile.am): Likewise.
33215         * modules/group-member (Makefile.am): Likewise.
33216         * modules/hard-locale (Makefile.am): Likewise.
33217         * modules/hash (Makefile.am): Likewise.
33218         * modules/hmac-md5 (Makefile.am): Likewise.
33219         * modules/hmac-sha1 (Makefile.am): Likewise.
33220         * modules/human (Makefile.am): Likewise.
33221         * modules/idcache (Makefile.am): Likewise.
33222         * modules/imaxabs (Makefile.am): Likewise.
33223         * modules/imaxdiv (Makefile.am): Likewise.
33224         * modules/inet_ntop (Makefile.am): Likewise.
33225         * modules/inet_pton (Makefile.am): Likewise.
33226         * modules/intprops (Makefile.am): Likewise.
33227         * modules/inttostr (Makefile.am): Likewise.
33228         * modules/inttypes (Makefile.am): Likewise.
33229         * modules/isapipe (Makefile.am): Likewise.
33230         * modules/javaversion (Makefile.am): Likewise.
33231         * modules/lchmod (Makefile.am): Likewise.
33232         * modules/lchown (Makefile.am): Likewise.
33233         * modules/localcharset (Makefile.am): Likewise.
33234         * modules/long-options (Makefile.am): Likewise.
33235         * modules/lstat (Makefile.am): Likewise.
33236         * modules/malloc (Makefile.am): Likewise.
33237         * modules/mathl (Makefile.am): Likewise.
33238         * modules/mbchar (Makefile.am): Likewise.
33239         * modules/md2 (Makefile.am): Likewise.
33240         * modules/md4 (Makefile.am): Likewise.
33241         * modules/md5 (Makefile.am): Likewise.
33242         * modules/memcasecmp (Makefile.am): Likewise.
33243         * modules/memchr (Makefile.am): Likewise.
33244         * modules/memcmp (Makefile.am): Likewise.
33245         * modules/memcoll (Makefile.am): Likewise.
33246         * modules/memcpy (Makefile.am): Likewise.
33247         * modules/memmem (Makefile.am): Likewise.
33248         * modules/memmove (Makefile.am): Likewise.
33249         * modules/mempcpy (Makefile.am): Likewise.
33250         * modules/memrchr (Makefile.am): Likewise.
33251         * modules/memset (Makefile.am): Likewise.
33252         * modules/memxor (Makefile.am): Likewise.
33253         * modules/mkancesdirs (Makefile.am): Likewise.
33254         * modules/mkdir-p (Makefile.am): Likewise.
33255         * modules/mkdir (Makefile.am): Likewise.
33256         * modules/mkdtemp (Makefile.am): Likewise.
33257         * modules/mkstemp (Makefile.am): Likewise.
33258         * modules/mktime (Makefile.am): Likewise.
33259         * modules/modechange (Makefile.am): Likewise.
33260         * modules/mountlist (Makefile.am): Likewise.
33261         * modules/nanosleep (Makefile.am): Likewise.
33262         * modules/obstack (Makefile.am): Likewise.
33263         * modules/openat (Makefile.am): Likewise.
33264         * modules/pagealign_alloc (Makefile.am): Likewise.
33265         * modules/pathmax (Makefile.am): Likewise.
33266         * modules/physmem (Makefile.am): Likewise.
33267         * modules/poll (Makefile.am): Likewise.
33268         * modules/posixtm (Makefile.am): Likewise.
33269         * modules/posixver (Makefile.am): Likewise.
33270         * modules/putenv (Makefile.am): Likewise.
33271         * modules/quote (Makefile.am): Likewise.
33272         * modules/quotearg (Makefile.am): Likewise.
33273         * modules/raise (Makefile.am): Likewise.
33274         * modules/read-file (Makefile.am): Likewise.
33275         * modules/readline (Makefile.am): Likewise.
33276         * modules/readlink (Makefile.am): Likewise.
33277         * modules/readtokens (Makefile.am): Likewise.
33278         * modules/readutmp (Makefile.am): Likewise.
33279         * modules/realloc (Makefile.am): Likewise.
33280         * modules/regex (Makefile.am): Likewise.
33281         * modules/rename-dest-slash (Makefile.am): Likewise.
33282         * modules/rename (Makefile.am): Likewise.
33283         * modules/rijndael (Makefile.am): Likewise.
33284         * modules/rmdir (Makefile.am): Likewise.
33285         * modules/rpmatch (Makefile.am): Likewise.
33286         * modules/safe-read (Makefile.am): Likewise.
33287         * modules/safe-write (Makefile.am): Likewise.
33288         * modules/same-inode (Makefile.am): Likewise.
33289         * modules/same (Makefile.am): Likewise.
33290         * modules/save-cwd (Makefile.am): Likewise.
33291         * modules/savedir (Makefile.am): Likewise.
33292         * modules/setenv (Makefile.am): Likewise.
33293         * modules/settime (Makefile.am): Likewise.
33294         * modules/sha1 (Makefile.am): Likewise.
33295         * modules/sig2str (Makefile.am): Likewise.
33296         * modules/snprintf (Makefile.am): Likewise.
33297         * modules/stat-macros (Makefile.am): Likewise.
33298         * modules/stat-time (Makefile.am): Likewise.
33299         * modules/stdbool (Makefile.am): Likewise.
33300         * modules/stdint (Makefile.am): Likewise.
33301         * modules/stdlib-safer (Makefile.am): Likewise.
33302         * modules/stpcpy (Makefile.am): Likewise.
33303         * modules/stpncpy (Makefile.am): Likewise.
33304         * modules/strcase (Makefile.am): Likewise.
33305         * modules/strcasestr (Makefile.am): Likewise.
33306         * modules/strchrnul (Makefile.am): Likewise.
33307         * modules/strcspn (Makefile.am): Likewise.
33308         * modules/strdup (Makefile.am): Likewise.
33309         * modules/strerror (Makefile.am): Likewise.
33310         * modules/strftime (Makefile.am): Likewise.
33311         * modules/strndup (Makefile.am): Likewise.
33312         * modules/strnlen (Makefile.am): Likewise.
33313         * modules/strpbrk (Makefile.am): Likewise.
33314         * modules/strsep (Makefile.am): Likewise.
33315         * modules/strstr (Makefile.am): Likewise.
33316         * modules/strtod (Makefile.am): Likewise.
33317         * modules/strtoimax (Makefile.am): Likewise.
33318         * modules/strtok_r (Makefile.am): Likewise.
33319         * modules/strtol (Makefile.am): Likewise.
33320         * modules/strtoll (Makefile.am): Likewise.
33321         * modules/strtoul (Makefile.am): Likewise.
33322         * modules/strtoull (Makefile.am): Likewise.
33323         * modules/strtoumax (Makefile.am): Likewise.
33324         * modules/strverscmp (Makefile.am): Likewise.
33325         * modules/sys_socket (Makefile.am): Likewise.
33326         * modules/sys_stat (Makefile.am): Likewise.
33327         * modules/sysexits (Makefile.am): Likewise.
33328         * modules/time_r (Makefile.am): Likewise.
33329         * modules/timegm (Makefile.am): Likewise.
33330         * modules/timespec (Makefile.am): Likewise.
33331         * modules/tmpfile-safer (Makefile.am): Likewise.
33332         * modules/trim (Makefile.am): Likewise.
33333         * modules/unistd-safer (Makefile.am): Likewise.
33334         * modules/unlinkdir (Makefile.am): Likewise.
33335         * modules/unlocked-io (Makefile.am): Likewise.
33336         * modules/userspec (Makefile.am): Likewise.
33337         * modules/utime (Makefile.am): Likewise.
33338         * modules/utimecmp (Makefile.am): Likewise.
33339         * modules/utimens (Makefile.am): Likewise.
33340         * modules/vasnprintf (Makefile.am): Likewise.
33341         * modules/vasprintf (Makefile.am): Likewise.
33342         * modules/vsnprintf (Makefile.am): Likewise.
33343         * modules/xalloc (Makefile.am): Likewise.
33344         * modules/xgetcwd (Makefile.am): Likewise.
33345         * modules/xnanosleep (Makefile.am): Likewise.
33346         * modules/xreadlink (Makefile.am): Likewise.
33347         * modules/xstrtod (Makefile.am): Likewise.
33348         * modules/xstrtol (Makefile.am): Likewise.
33349         * modules/xstrtold (Makefile.am): Likewise.
33350         * modules/yesno (Makefile.am): Likewise.
33351         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
33352
33353 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
33354
33355         * modules/error (Makefile.am): Distribute files through
33356         EXTRA_DIST, not lib_SOURCES.
33357
33358 2006-10-12  Eric Blake  <ebb9@byu.net>
33359
33360         * modules/error (Makefile.am): Distribute files in /lib.
33361         * modules/obstack (Makefile.am): Likewise.
33362
33363 2006-10-12  Bruno Haible  <bruno@clisp.org>
33364
33365         * modules/acl (Makefile.am): Distribute all files in lib/ through
33366         EXTRA_DIST.
33367         * modules/arcfour (Makefile.am): Likewise.
33368         * modules/arctwo (Makefile.am): Likewise.
33369         * modules/argmatch (Makefile.am): Likewise.
33370         * modules/argz (Makefile.am): Likewise.
33371         * modules/atexit (Makefile.am): Likewise.
33372         * modules/backupfile (Makefile.am): Likewise.
33373         * modules/c-strtod (Makefile.am): Likewise.
33374         * modules/c-strtold (Makefile.am): Likewise.
33375         * modules/calloc (Makefile.am): Likewise.
33376         * modules/canon-host (Makefile.am): Likewise.
33377         * modules/canonicalize (Makefile.am): Likewise.
33378         * modules/chdir-long (Makefile.am): Likewise.
33379         * modules/chdir-safer (Makefile.am): Likewise.
33380         * modules/check-version (Makefile.am): Likewise.
33381         * modules/chown (Makefile.am): Likewise.
33382         * modules/cloexec (Makefile.am): Likewise.
33383         * modules/close-stream (Makefile.am): Likewise.
33384         * modules/closeout (Makefile.am): Likewise.
33385         * modules/crc (Makefile.am): Likewise.
33386         * modules/cycle-check (Makefile.am): Likewise.
33387         * modules/des (Makefile.am): Likewise.
33388         * modules/dirfd (Makefile.am): Likewise.
33389         * modules/dirname (Makefile.am): Likewise.
33390         * modules/dup2 (Makefile.am): Likewise.
33391         * modules/euidaccess (Makefile.am): Likewise.
33392         * modules/exclude (Makefile.am): Likewise.
33393         * modules/exitfail (Makefile.am): Likewise.
33394         * modules/fcntl-safer (Makefile.am): Likewise.
33395         * modules/file-type (Makefile.am): Likewise.
33396         * modules/fileblocks (Makefile.am): Likewise.
33397         * modules/filemode (Makefile.am): Likewise.
33398         * modules/filenamecat (Makefile.am): Likewise.
33399         * modules/fnmatch (Makefile.am): Likewise.
33400         * modules/fopen-safer (Makefile.am): Likewise.
33401         * modules/fpending (Makefile.am): Likewise.
33402         * modules/fprintftime (Makefile.am): Likewise.
33403         * modules/free (Makefile.am): Likewise.
33404         * modules/fsusage (Makefile.am): Likewise.
33405         * modules/ftruncate (Makefile.am): Likewise.
33406         * modules/fts (Makefile.am): Likewise.
33407         * modules/gc (Makefile.am): Likewise.
33408         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
33409         * modules/getaddrinfo (Makefile.am): Likewise.
33410         * modules/getcwd (Makefile.am): Likewise.
33411         * modules/getdelim (Makefile.am): Likewise.
33412         * modules/getdomainname (Makefile.am): Likewise.
33413         * modules/getgroups (Makefile.am): Likewise.
33414         * modules/gethostname (Makefile.am): Likewise.
33415         * modules/gethrxtime (Makefile.am): Likewise.
33416         * modules/getline (Makefile.am): Likewise.
33417         * modules/getloadavg (Makefile.am): Likewise.
33418         * modules/getlogin_r (Makefile.am): Likewise.
33419         * modules/getopt (Makefile.am): Likewise.
33420         * modules/getpass (Makefile.am): Likewise.
33421         * modules/getpass-gnu (Makefile.am): Likewise.
33422         * modules/getsubopt (Makefile.am): Likewise.
33423         * modules/gettime (Makefile.am): Likewise.
33424         * modules/gettimeofday (Makefile.am): Likewise.
33425         * modules/getugroups (Makefile.am): Likewise.
33426         * modules/getusershell (Makefile.am): Likewise.
33427         * modules/glob (Makefile.am): Likewise.
33428         * modules/group-member (Makefile.am): Likewise.
33429         * modules/hard-locale (Makefile.am): Likewise.
33430         * modules/hash (Makefile.am): Likewise.
33431         * modules/hmac-md5 (Makefile.am): Likewise.
33432         * modules/hmac-sha1 (Makefile.am): Likewise.
33433         * modules/human (Makefile.am): Likewise.
33434         * modules/idcache (Makefile.am): Likewise.
33435         * modules/imaxabs (Makefile.am): Likewise.
33436         * modules/imaxdiv (Makefile.am): Likewise.
33437         * modules/inet_ntop (Makefile.am): Likewise.
33438         * modules/inet_pton (Makefile.am): Likewise.
33439         * modules/inttostr (Makefile.am): Likewise.
33440         * modules/isapipe (Makefile.am): Likewise.
33441         * modules/lchown (Makefile.am): Likewise.
33442         * modules/long-options (Makefile.am): Likewise.
33443         * modules/lstat (Makefile.am): Likewise.
33444         * modules/malloc (Makefile.am): Likewise.
33445         * modules/mathl (Makefile.am): Likewise.
33446         * modules/mbchar (Makefile.am): Likewise.
33447         * modules/md2 (Makefile.am): Likewise.
33448         * modules/md4 (Makefile.am): Likewise.
33449         * modules/md5 (Makefile.am): Likewise.
33450         * modules/memcasecmp (Makefile.am): Likewise.
33451         * modules/memchr (Makefile.am): Likewise.
33452         * modules/memcmp (Makefile.am): Likewise.
33453         * modules/memcoll (Makefile.am): Likewise.
33454         * modules/memcpy (Makefile.am): Likewise.
33455         * modules/memmem (Makefile.am): Likewise.
33456         * modules/memmove (Makefile.am): Likewise.
33457         * modules/mempcpy (Makefile.am): Likewise.
33458         * modules/memrchr (Makefile.am): Likewise.
33459         * modules/memset (Makefile.am): Likewise.
33460         * modules/memxor (Makefile.am): Likewise.
33461         * modules/mkancesdirs (Makefile.am): Likewise.
33462         * modules/mkdir (Makefile.am): Likewise.
33463         * modules/mkdir-p (Makefile.am): Likewise.
33464         * modules/mkdtemp (Makefile.am): Likewise.
33465         * modules/mkstemp (Makefile.am): Likewise.
33466         * modules/mktime (Makefile.am): Likewise.
33467         * modules/modechange (Makefile.am): Likewise.
33468         * modules/mountlist (Makefile.am): Likewise.
33469         * modules/nanosleep (Makefile.am): Likewise.
33470         * modules/openat (Makefile.am): Likewise.
33471         * modules/pagealign_alloc (Makefile.am): Likewise.
33472         * modules/physmem (Makefile.am): Likewise.
33473         * modules/poll (Makefile.am): Likewise.
33474         * modules/posixtm (Makefile.am): Likewise.
33475         * modules/posixver (Makefile.am): Likewise.
33476         * modules/putenv (Makefile.am): Likewise.
33477         * modules/quote (Makefile.am): Likewise.
33478         * modules/quotearg (Makefile.am): Likewise.
33479         * modules/raise (Makefile.am): Likewise.
33480         * modules/read-file (Makefile.am): Likewise.
33481         * modules/readline (Makefile.am): Likewise.
33482         * modules/readlink (Makefile.am): Likewise.
33483         * modules/readtokens (Makefile.am): Likewise.
33484         * modules/readutmp (Makefile.am): Likewise.
33485         * modules/realloc (Makefile.am): Likewise.
33486         * modules/regex (Makefile.am): Likewise.
33487         * modules/rename (Makefile.am): Likewise.
33488         * modules/rename-dest-slash (Makefile.am): Likewise.
33489         * modules/rijndael (Makefile.am): Likewise.
33490         * modules/rmdir (Makefile.am): Likewise.
33491         * modules/rpmatch (Makefile.am): Likewise.
33492         * modules/safe-read (Makefile.am): Likewise.
33493         * modules/safe-write (Makefile.am): Likewise.
33494         * modules/same (Makefile.am): Likewise.
33495         * modules/save-cwd (Makefile.am): Likewise.
33496         * modules/savedir (Makefile.am): Likewise.
33497         * modules/setenv (Makefile.am): Likewise.
33498         * modules/settime (Makefile.am): Likewise.
33499         * modules/sha1 (Makefile.am): Likewise.
33500         * modules/sig2str (Makefile.am): Likewise.
33501         * modules/snprintf (Makefile.am): Likewise.
33502         * modules/stdlib-safer (Makefile.am): Likewise.
33503         * modules/stpcpy (Makefile.am): Likewise.
33504         * modules/stpncpy (Makefile.am): Likewise.
33505         * modules/strcase (Makefile.am): Likewise.
33506         * modules/strcasestr (Makefile.am): Likewise.
33507         * modules/strchrnul (Makefile.am): Likewise.
33508         * modules/strcspn (Makefile.am): Likewise.
33509         * modules/strdup (Makefile.am): Likewise.
33510         * modules/strerror (Makefile.am): Likewise.
33511         * modules/strftime (Makefile.am): Likewise.
33512         * modules/strndup (Makefile.am): Likewise.
33513         * modules/strnlen (Makefile.am): Likewise.
33514         * modules/strpbrk (Makefile.am): Likewise.
33515         * modules/strsep (Makefile.am): Likewise.
33516         * modules/strstr (Makefile.am): Likewise.
33517         * modules/strtod (Makefile.am): Likewise.
33518         * modules/strtoimax (Makefile.am): Likewise.
33519         * modules/strtok_r (Makefile.am): Likewise.
33520         * modules/strtol (Makefile.am): Likewise.
33521         * modules/strtoll (Makefile.am): Likewise.
33522         * modules/strtoul (Makefile.am): Likewise.
33523         * modules/strtoull (Makefile.am): Likewise.
33524         * modules/strtoumax (Makefile.am): Likewise.
33525         * modules/strverscmp (Makefile.am): Likewise.
33526         * modules/time_r (Makefile.am): Likewise.
33527         * modules/timegm (Makefile.am): Likewise.
33528         * modules/tmpfile-safer (Makefile.am): Likewise.
33529         * modules/unistd-safer (Makefile.am): Likewise.
33530         * modules/unlinkdir (Makefile.am): Likewise.
33531         * modules/userspec (Makefile.am): Likewise.
33532         * modules/utime (Makefile.am): Likewise.
33533         * modules/utimecmp (Makefile.am): Likewise.
33534         * modules/utimens (Makefile.am): Likewise.
33535         * modules/vasnprintf (Makefile.am): Likewise.
33536         * modules/vasprintf (Makefile.am): Likewise.
33537         * modules/vsnprintf (Makefile.am): Likewise.
33538         * modules/xalloc (Makefile.am): Likewise.
33539         * modules/xgetcwd (Makefile.am): Likewise.
33540         * modules/xnanosleep (Makefile.am): Likewise.
33541         * modules/xreadlink (Makefile.am): Likewise.
33542         * modules/xstrtod (Makefile.am): Likewise.
33543         * modules/xstrtol (Makefile.am): Likewise.
33544         * modules/xstrtold (Makefile.am): Likewise.
33545         * modules/yesno (Makefile.am): Likewise.
33546
33547 2006-10-12  Jim Meyering  <jim@meyering.net>
33548
33549         * m4/getloadavg.m4: Revert the change below.
33550
33551         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
33552         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
33553         fail with a symlink, which is what coreutils' ./bootstrap now
33554         creates by default.
33555
33556 2006-10-12  Bruno Haible  <bruno@clisp.org>
33557
33558         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
33559         mingw.
33560         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
33561         MSVC and mingw explicitly.
33562
33563 2006-10-11  Simon Josefsson  <jas@extundo.com>
33564             Bruno Haible  <bruno@clisp.org>
33565
33566         Add support for multiple gnulib-tool invocations in the scope of a
33567         single configure.ac file.
33568         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
33569         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
33570         with the same contents as the _LIBADD variable.
33571         (func_emit_initmacro_start, func_emit_initmacro_end,
33572         func_emit_initmacro_done): New functions.
33573         (func_import, func_create_testdir): Invoke them. Allow the identifiers
33574         gl_LIBOBJS and gl_LTLIBOBJS.
33575
33576 2006-10-11  Bruno Haible  <bruno@clisp.org>
33577
33578         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
33579         (func_create_testdir): Don't create po/Makefile.am, don't invoke
33580         autoreconf. Instead, invoke autopoint explicitly but move back the
33581         *.m4 files from gnulib.
33582
33583 2006-10-11  Bruno Haible  <bruno@clisp.org>
33584
33585         * gnulib-tool (func_usage): Make module names after --create-testdir
33586         optional.
33587         (func_create_testdir): If no module was specified, use nearly all
33588         modules.
33589
33590 2006-10-12  Jim Meyering  <jim@meyering.net>
33591
33592         Big performance improvement for fts-based tools that use FTS_NOSTAT.
33593         Avoid spurious inode-mismatch problems on non-POSIX file systems.
33594         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
33595         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
33596         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
33597         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
33598         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
33599         (fts_set_stat_required): New function.
33600         (fts_open): Defer the calls to fts_stat, if possible or requested.
33601         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
33602         into fts_stat itself.
33603         (fts_read): Perform any required (deferred) fts_stat call.
33604         (fts_build): Likewise, for the directory we're about to open and read.
33605         In the readdir loop, carefully decide whether each entry will require
33606         an eventual call to fts_stat, using dirent.d_type info if available.
33607         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
33608         a command line argument into this function.  Update all callers.
33609         Map a return value of FTS_DOT to FTS_D for a command line argument.
33610         * modules/fts (Depends-on): Add d-type.  Alphabetize.
33611         Thanks to Miklos Szeredi for his tenacity and for the initial
33612         bug report about "find" failing on a FUSE-based file system.
33613
33614         * lib/fts.c (fts_open): Use consistent indentation.
33615
33616 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
33617
33618         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
33619         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
33620         reported by Jim Meyering.  All uses of cache variables renamed
33621         to match Autoconf's.
33622         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
33623         the other one.
33624
33625         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
33626         Fix misspelling in diagnostic.
33627
33628 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
33629
33630         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
33631         defined.  Problem reported by Matthew Woehlke.
33632
33633         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
33634         Add support for Tandem NonStop R series.
33635         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
33636         Use new macro.
33637
33638         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
33639         (has_trailing_slash): Omit size arg; all callers changed.
33640         Omit 'inline', since it doesn't help performance and we'd
33641         need to configure it.
33642         Don't count //, ///, etc. as having a trailing slash.
33643         As a side effect, this removes a C99ism reported by Matthew Woehlke.
33644         (rpl_rename_dest_slash): On failure, use rename's errno rather
33645         than (in some cases) an incorrect or junk errno.
33646         Simplify code by removing need to compute length; this does
33647         cause it to make two passes instead of one over the file name,
33648         but it's worth it.
33649
33650         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
33651         change, since Autoconf's version may no longer be appropriate now
33652         that we are using CVS Autoconf's version.  Add support for Tandem.
33653
33654 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
33655             Bruno Haible  <bruno@clisp.org>
33656
33657         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
33658         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
33659         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
33660         gl_AC_TYPE_LONG_LONG.
33661
33662         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
33663         instead of HAVE_LONG_LONG.
33664         * lib/printf-args.c (printf_fetchargs): Likewise.
33665         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
33666         * lib/vasnprintf.c (VASNPRINTF): Likewise.
33667         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
33668         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
33669         gl_AC_TYPE_LONG_LONG.
33670
33671 2006-10-11  Bruno Haible  <bruno@clisp.org>
33672
33673         * m4/longlong.m4: Add comments.
33674         * m4/ulonglong.m4: Likewise.
33675
33676 2006-10-10  Bruno Haible  <bruno@clisp.org>
33677
33678         Make it possible to #define stpcpy, strdup to aliases.
33679         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
33680         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
33681
33682 2006-10-10  Bruno Haible  <bruno@clisp.org>
33683
33684         Make it possible to #define gcd to an alias.
33685         * lib/gcd.c: Include config.h.
33686
33687 2006-10-10  Bruno Haible  <bruno@clisp.org>
33688
33689         Make it possible to #define c_isascii to an alias.
33690         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
33691         defined. Undefine the macros before defining them, to avoid gcc
33692         warnings.
33693         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
33694         define NO_C_CTYPE_MACROS early.
33695
33696 2006-10-10  Bruno Haible  <bruno@clisp.org>
33697
33698         Make it possible to #define set_program_name to an alias.
33699         * lib/progname.c: Don't undefine set_program_name; instead, undefine
33700         ENABLE_RELOCATABLE early.
33701
33702 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
33703
33704         Port to Tandem NSK OSS, which has 64-bit signed int but at most
33705         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
33706         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
33707         More generally, don't assume that 64-bit signed int is available
33708         if unsigned int is, and vice versa.
33709         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
33710         unsigned symbols, not on their signed counterparts.
33711         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
33712         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
33713         (UINT64_C, UINTMAX_C):
33714         Likewise.
33715         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
33716         unsigned counterparts.
33717         (Have_long_long, Unsigned): New macros.
33718         (Int): Renamed from INT.
33719         (strtoimax): Use the new macros.
33720         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
33721         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
33722         * modules/inttypes (inttypes.h): Substitute
33723         HAVE_UNSIGNED_LONG_LONG_INT.
33724         * modules/stdint (stdint.h): Likewise.
33725         (Files): Add m4/ulonglong.m4.
33726
33727 2006-10-10  Bruno Haible  <bruno@clisp.org>
33728
33729         Fix a gcc -Wshadow warning.
33730         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
33731         to 'bucket'.
33732         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
33733         gl_linked_indexof_from_to): Likewise.
33734         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
33735         Likewise.
33736         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
33737         Likewise.
33738         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
33739         Reported by Eric Blake.
33740
33741 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
33742
33743         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
33744         for NetBSD.  Problem reported by Bruno Haible.
33745
33746 2006-10-09  Jim Meyering  <jim@meyering.net>
33747
33748         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
33749         Patch from Bruno Haible.
33750
33751 2006-10-09  Jim Meyering  <jim@meyering.net>
33752
33753         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
33754         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
33755         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
33756
33757 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
33758
33759         Don't include <config.h> twice; this doesn't work in some cases,
33760         e.g., when config.h has "#define intmax_t long long int" and
33761         we include <config.h>, <inttypes.h>, <config.h> in that order.
33762         Problem reported by Matthew Woehlke in:
33763         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
33764         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
33765         * lib/fts-cycle.c: Don't include config.h.
33766         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
33767         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
33768         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
33769         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
33770         inttypes.h.
33771         * lib/xstrtoumax.c: Likewise.
33772         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
33773         __strtol and the like, so that this module is more like its siblings.
33774         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
33775         Remove; no longer needed now that we assume gnulib inttypes.h.
33776
33777 2006-10-08  Bruno Haible  <bruno@clisp.org>
33778
33779         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
33780         option.
33781
33782 2006-10-07  Jim Meyering  <jim@meyering.net>
33783
33784         * modules/inttypes (inttypes.h): Revert what seems to have been
33785         an inadvertent part of today's change: use "|", not "/" in the
33786         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
33787
33788 2006-10-07  Bruno Haible  <bruno@clisp.org>
33789
33790         * modules/sublist: New file.
33791
33792 2006-10-07  Bruno Haible  <bruno@clisp.org>
33793
33794         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
33795         * modules/argz (argz.h): Likewise.
33796         * modules/arpa_inet (arpa/inet.h): Likewise.
33797         * modules/byteswap (byteswap.h): Likewise.
33798         * modules/configmake (configmake.h): Likewise.
33799         * modules/fcntl (fcntl.h): Likewise.
33800         * modules/fnmatch (fnmatch.h): Likewise.
33801         * modules/getopt (getopt.h): Likewise.
33802         * modules/glob (glob.h): Likewise.
33803         * modules/inttypes (inttypes.h): Likewise.
33804         * modules/netinet_in (netinet/in.h): Likewise.
33805         * modules/poll (poll.h): Likewise.
33806         * modules/stdbool (stdbool.h): Likewise.
33807         * modules/stdint (stdint.h): Likewise.
33808         * modules/sys_select (sys/select.h): Likewise.
33809         * modules/sys_socket (sys/socket.h): Likewise.
33810         * modules/sys_stat (sys/stat.h): Likewise.
33811         * modules/sysexits (sysexits.h): Likewise.
33812         * modules/unistd (unistd.h): Likewise.
33813         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
33814         Add a "DO NOT EDIT" comment to the generated file.
33815         (func_import): Likewise for gnulib-comp.m4.
33816
33817 2006-10-07  Bruno Haible  <bruno@clisp.org>
33818
33819         * lib/gl_sublist.h: New file.
33820         * lib/gl_sublist.c: New file.
33821
33822 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
33823
33824         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
33825         name (relative to the original working directory) and the file
33826         name component (relative to the temporary working directory).  All
33827         callers changed.
33828         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
33829         * lib/mkdir-p.c (make_dir_parents): Likewise.
33830         * lib/mkdir-p.h (make_dir_parents): Likewise.
33831
33832 2006-10-06  Eric Blake  <ebb9@byu.net>
33833
33834         Define several macros for use by the clean-temp module.
33835         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
33836         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
33837         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
33838
33839         * lib/clean-temp.h (close_stream_temp): New declaration.
33840         * lib/clean-temp.c (includes): Pull in headers according to what
33841         other modules are in use.
33842         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
33843
33844 2006-10-06  Bruno Haible  <bruno@clisp.org>
33845
33846         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
33847         instead of fopen, fwriteerror.
33848
33849 2006-10-06  Bruno Haible  <bruno@clisp.org>
33850
33851         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
33852         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
33853         int.
33854         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
33855         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
33856         Return an error indicator.
33857         Suggested by Eric Blake.
33858
33859 2006-10-06  Bruno Haible  <bruno@clisp.org>
33860
33861         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
33862         Reported by Eric Blake.
33863
33864 2006-10-06  Bruno Haible  <bruno@clisp.org>
33865
33866         * modules/closeout (Description): Mention stderr too.
33867
33868 2006-10-06  Bruno Haible  <bruno@clisp.org>
33869         and Paul Eggert  <eggert@cs.ucla.edu>
33870
33871         * lib/closeout.c (close_stdout): Also close stderr.
33872         * lib/closeout.h: Update comment.
33873
33874 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
33875
33876         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
33877         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
33878         * lib/dirchownmod.c: Include lchown.h.
33879         * lib/lchown.c: Don't include files that lchown.h now includes.
33880         Don't declare chown, since lchown.h now does that.
33881         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
33882         (lchown): Define to rpl_chown if lchown is declared but
33883         does not exist.  Declare using a prototype if lchown is not
33884         declared.  Add a copyright notice.
33885         * lib/mkstemp.h: Include <unistd.h>.
33886         * lib/openat.c: Include lchown.h.
33887
33888         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
33889         we now test for that separately.
33890         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
33891         rather than O_NOFOLLOW, when testing whether it's possible to
33892         avoid a race condition reliably.
33893         * lib/savewd.c (savewd_chdir): Likewise.
33894
33895         Remove macros that are no longer needed now that stdint.h is
33896         reliable.
33897         * lib/fsusage.c (UINTMAX_MAX): Remove.
33898         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
33899         * lib/utimecmp.c (SIZE_MAX): Remove.
33900
33901         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
33902
33903         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
33904         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
33905         O_NOATIME works.
33906
33907 2006-10-05  Bruno Haible  <bruno@clisp.org>
33908
33909         * lib/gl_list.h (gl_sortedlist_search_from_to,
33910         gl_sortedlist_indexof_from_to): New declarations.
33911         (gl_list_implementation): New fields sortedlist_search_from_to,
33912         sortedlist_indexof_from_to.
33913         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
33914         inline functions.
33915         * lib/gl_list.c (gl_sortedlist_search_from_to,
33916         gl_sortedlist_indexof_from_to): New functions.
33917         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
33918         function.
33919         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
33920         (gl_array_sortedlist_search_from_to): New function.
33921         (gl_array_list_implementation): Update.
33922         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
33923         function.
33924         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
33925         (gl_carray_sortedlist_search_from_to): New function.
33926         (gl_carray_list_implementation): Update.
33927         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
33928         gl_linked_sortedlist_indexof_from_to): New functions.
33929         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
33930         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
33931         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
33932         gl_tree_sortedlist_indexof_from_to): New functions.
33933         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
33934         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
33935         Update.
33936         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
33937         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
33938         Update.
33939
33940 2006-10-05  Bruno Haible  <bruno@clisp.org>
33941
33942         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
33943         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
33944         (struct gl_list_implementation): Add fields search_from_to,
33945         indexof_from_to. Remove fields search, indexof.
33946         (gl_list_search): Use the search_from_to method.
33947         (gl_list_search_from, gl_list_search_from_to): New functions.
33948         (gl_list_indexof): Use the indexof_from_to method.
33949         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
33950         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
33951         (gl_list_search_from, gl_list_search_from_to): New functions.
33952         (gl_list_indexof): Use the indexof_from_to method.
33953         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
33954         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
33955         gl_array_indexof. Add start_index, end_index arguments.
33956         (gl_array_search_from_to): Renamed from gl_array_search. Add
33957         start_index, end_index arguments.
33958         (gl_array_remove, gl_array_list_implementation): Update.
33959         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
33960         gl_carray_indexof. Add start_index, end_index arguments.
33961         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
33962         start_index, end_index arguments.
33963         (gl_carray_remove, gl_carray_list_implementation): Update.
33964         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
33965         gl_linked_search. Add start_index, end_index arguments.
33966         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
33967         start_index, end_index arguments.
33968         (gl_linked_remove): Update.
33969         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
33970         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
33971         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
33972         field to 'size_t'.
33973         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
33974         gl_tree_search. Add start_index, end_index arguments.
33975         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
33976         start_index, end_index arguments.
33977         (gl_tree_remove): Update.
33978         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
33979         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
33980         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
33981         function.
33982         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
33983         gl_tree_search. Add start_index, end_index arguments.
33984         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
33985         start_index, end_index arguments.
33986         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
33987         Update.
33988         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
33989
33990 2006-10-05  Bruno Haible  <bruno@clisp.org>
33991
33992         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
33993
33994         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
33995         fwriteerror_temp): New declarations.
33996         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
33997         (descriptors): New variable.
33998         (cleanup): First, close the descriptors.
33999         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
34000         fclose_temp, fwriteerror_temp): New functions.
34001
34002 2006-10-04  Jim Meyering  <jim@meyering.net>
34003
34004         * lib/fts.c (fts_open): Tiny comment change.
34005
34006 2006-10-04  Bruno Haible  <bruno@clisp.org>
34007
34008         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
34009         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
34010         gl_LOCK_BODY.
34011         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
34012         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
34013         gl_LOCK_EARLY_BODY.
34014         (gl_LOCK): Require gl_LOCK_BODY.
34015
34016 2006-10-04  Bruno Haible  <bruno@clisp.org>
34017
34018         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
34019         (gl_oset_search_atleast): New declaration.
34020         (struct gl_oset_implementation): Add field 'search_atleast'.
34021         (gl_oset_search_atleast): New inline function.
34022         * lib/gl_oset.c (gl_oset_search_atleast): New function.
34023         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
34024         (gl_array_oset_implementation): Update.
34025         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
34026         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
34027         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
34028
34029 2006-10-04  Bruno Haible  <bruno@clisp.org>
34030
34031         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
34032
34033 2006-10-03  Bruno Haible  <bruno@clisp.org>
34034
34035         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
34036         from gl_avltreehash_list_implementation.
34037
34038 2006-10-03  Bruno Haible  <bruno@clisp.org>
34039
34040         * lib/gl_oset.c (gl_oset_add): Fix return type.
34041
34042 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
34043
34044         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
34045
34046 2006-10-02  Eric Blake  <ebb9@byu.net>
34047
34048         * modules/strnlen (Depends-on): Add extensions.
34049
34050 2006-10-02  Eric Blake  <ebb9@byu.net>
34051
34052         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
34053         definition in 2.60+.
34054
34055 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
34056
34057         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
34058         checks.
34059
34060 2006-10-02  Bruno Haible  <bruno@clisp.org>
34061
34062         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
34063         to the AUTOMAKE_OPTIONS.
34064         Reported by Jim Meyering.
34065
34066 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
34067
34068         Work around bug in Solaris 10 /proc file system:
34069         /proc/self/fd/NNN/.. isn't the parent directory of
34070         the directory whose file descriptor is NNN.  This needs to
34071         be worked around at run time, not compile time, since a
34072         program might be built on Solaris 8, where things work, and
34073         run on Solaris 10.
34074         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
34075         to use the following interface instead:
34076         (OPENAT_BUFFER_SIZE): New macro.
34077         (openat_proc_name): New function.
34078         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
34079         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
34080         Likewise.
34081         * lib/openat-proc.c: New file.
34082         * modules/openat (Files): Add lib/openat-proc.c.
34083         (Depends-on): Add same-inode, stdbool.
34084         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
34085
34086 2006-09-29  Bruno Haible  <bruno@clisp.org>
34087
34088         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
34089         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
34090         argument. Set stdout_closed before testing for ferror, not after.
34091         (fwriteerror, fwriteerror_no_ebadf): New functions.
34092
34093 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34094
34095         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
34096
34097 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
34098
34099         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
34100         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
34101
34102 2006-09-28  Jim Meyering  <jim@meyering.net>
34103
34104         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
34105         Include <unistd.h>.
34106
34107 2006-09-28  Bruno Haible  <bruno@clisp.org>
34108
34109         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
34110         * modules/linkedhash-list (Depends-on): Likewise.
34111         * modules/rbtreehash-list (Depends-on): Likewise.
34112
34113 2006-09-28  Bruno Haible  <bruno@clisp.org>
34114
34115         * lib/strndup.h: Simplify the redefinition of strndup.
34116         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
34117         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
34118
34119 2006-09-28  Bruno Haible  <bruno@clisp.org>
34120
34121         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
34122         * lib/gl_linkedhash_list.c: Likewise.
34123         * lib/gl_rbtreehash_list.c: Likewise.
34124
34125 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
34126
34127         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
34128         getaddrinfo.
34129
34130         * lib/__fpending.h: Don't include <stdio_ext.h> unless
34131         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
34132         it causes <stdio_ext.h> to cause a compile-time error.
34133         Problem reported by Nelson H. F. Beebe.
34134         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
34135         of HAVE_DECL___PENDING.
34136
34137         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
34138         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
34139         declaration.
34140
34141 2006-09-27  Jim Meyering  <jim@meyering.net>
34142
34143         This file could end up with a definition for a function
34144         named __strndup, rather than rpl_strndup on a system with
34145         incomplete weak_alias support.
34146         * lib/strndup.c (strndup): Rename from __strndup.
34147         Remove #defines that used to map __strndup to strndup.
34148         Don't use K&R prototypes.
34149         Remove LIBC-related code, since this file is not sync'd with glibc.
34150         * lib/strndup.h: Revamp, accordingly.
34151         * m4/strndup.m4: Modernize.
34152
34153 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
34154
34155         * modules/savewd (Depends-on): Add 'raise'.
34156         * lib/savewd.c: Include <signal.h>, for 'raise'.
34157
34158 2006-09-26  Jim Meyering  <jim@meyering.net>
34159
34160         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
34161         when we detect Darwin 8.7.0's acl_get_file bug.
34162         Rearrange to perform the new (below) run-test while $LIBS
34163         contains any acl-related library.  Set USE_ACL at the end.
34164         (gl_ACL_GET_FILE): New function.
34165
34166 2006-09-26  Eric Blake  <ebb9@byu.net>
34167
34168         * lib/verror.c: Include <config.h> unconditionally.
34169
34170 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
34171
34172         * modules/clock-time (Maintainer): Add self.
34173         * modules/getlogin_r (Depends-on): Add extensions.
34174
34175 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34176
34177         * modules/clock-time: New module.
34178         * modules/nanosleep (Depends-on): Add clock-time.
34179         * modules/gethrxtime (Depends-on): Likewise.
34180         * modules/gettime (Depends-on): Likewise.
34181         * modules/settime (Depends-on): Likewise.
34182
34183         * modules/fts-lgpl: Depend on openat.
34184         * modules/mkancesdirs: Depend on savewd.
34185         * modules/mkdir-p: Likewise.
34186
34187 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34188
34189         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
34190
34191         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
34192         `gl_have_arbitrary_file_name_length_limit' to
34193         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
34194         actually works between configure runs.
34195
34196 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34197             Bruno Haible  <bruno@clisp.org>
34198
34199         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
34200
34201 2006-09-25  Jim Meyering  <jim@meyering.net>
34202
34203         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
34204         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
34205
34206 2006-09-25  Eric Blake  <ebb9@byu.net>
34207
34208         * gnulib-tool (func_import, func_create_testdir): Fix typos in
34209         exec's in 2006-09-18 patch when shuffling fds.
34210
34211 2006-09-25  Bruno Haible  <bruno@clisp.org>
34212
34213         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
34214         Reported by Jim Meyering.
34215
34216 2006-09-24  Jim Meyering  <jim@meyering.net>
34217
34218         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
34219         compare a pointer against a literal "0".  That caused failures with
34220         at least HP-UX's hpcc.
34221
34222 2006-09-22  Simon Josefsson  <jas@extundo.com>
34223
34224         * modules/gc-sha1:
34225         * modules/gc-md4:
34226         * modules/gc-hmac-sha1:
34227         * modules/gc-hmac-md5:
34228         * modules/gc-des:
34229         * modules/gc-arcfour: Distribute more files.
34230
34231 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34232
34233         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
34234         (gl_linked_iterator_from_to): Initialize struct completely.
34235         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
34236         (gl_tree_iterator_from_to): Likewise
34237         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
34238         * lib/gl_array_list.c [lint] (gl_array_iterator)
34239         (gl_array_iterator_from_to): Likewise.
34240         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
34241         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
34242         (gl_carray_iterator_from_to): Likewise.
34243
34244         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
34245         * lib/md4.c (md4_process_block): Remove unused variable.
34246         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
34247         parentheses for clarity.
34248
34249 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34250
34251         * modules/bison-i18n (Depends-on): Add gettext.
34252
34253 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34254
34255         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
34256         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
34257         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
34258         also add missing comma that caused broken test.
34259         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
34260         stdlib.h, for `abort'.
34261         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
34262         variables.
34263         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
34264         include unistd.h if present, for `rmdir'.
34265         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
34266         variables.
34267         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
34268         in the process include standard headers for prototypes.
34269         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
34270         gets declared on GNU/Linux.
34271         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
34272         unistd.h, for `rmdir'.
34273         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
34274
34275         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
34276         always true.
34277         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
34278
34279         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
34280
34281 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34282
34283         * gnulib-tool (func_version): Create output all at once.  This
34284         may help avoid triggering unnecessary SIGPIPEs, and at any
34285         rate it doesn't hurt.
34286
34287 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34288             Bruno Haible  <bruno@clisp.org>
34289
34290         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
34291         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
34292         * m4/signed.m4 (bh_C_SIGNED): Likewise.
34293
34294         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
34295         (gl_FUNC_VASPRINTF): Invoke it.
34296
34297 2006-09-22  Bruno Haible  <bruno@clisp.org>
34298
34299         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
34300         getloadavg.c as first argument.
34301
34302 2006-09-22  Bruno Haible  <bruno@clisp.org>
34303
34304         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
34305         at the beginning of the gl_INIT macro.
34306         * modules/getloadavg (configure.ac): Pass $gl_source_base to
34307         gl_GETLOADAVG.
34308
34309 2006-09-22  Bruno Haible  <bruno@clisp.org>
34310
34311         * gnulib-tool (func_create_megatestdir): Don't include the config-h
34312         module.
34313         Suggested by Ralf Wildenhues.
34314
34315 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
34316
34317         Import this patch from libc:
34318
34319         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
34320
34321         * lib/regex_internal.c (re_string_reconstruct): Handle
34322         offset < pstr->valid_raw_len && pstr->offsets_needed case.
34323         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
34324         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
34325         re_string_context_at.
34326
34327         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
34328         now requires it.
34329         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
34330         gl_REGEX now does it for us.
34331         (gl_REGEX): Add test taken from
34332         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
34333
34334         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
34335         Check that large offsets work.  Modernize Autoconf usages.
34336         Prefer "yes" to mean a good thing rather than a bad.
34337         Don't put "#define mkstemp" in config.h, as this might interfere
34338         with standard system headers that "#define mkstemp mkstemp64".
34339
34340         * modules/mkstemp (Depends-on): Add extensions, so that
34341         mkstemp is visible on some platforms.
34342         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
34343         (Include): Change to "mkstemp.h" from <stdlib.h>.
34344         (Files): Add mkstemp.h.
34345
34346         * lib/mkstemp.h: New file, since some standard headers
34347         #define mkstemp.
34348         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
34349         Include "mkstemp.h".
34350         Make the _LIBC code resemble glibc original more,
34351         e.g., use K&R style.
34352         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
34353         (mkstemp): Remove, since mkstemp.h does this for us.
34354         * lib/stdlib--.h: Include mkstemp.h.
34355
34356         Import this patch from libc:
34357
34358         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
34359
34360         * lib/tempname.c (__gen_tempname): Change attempts_min
34361         into a macro.  Use preprocessor to decide how to initialize
34362         attempts [Coverity CID 67].
34363
34364 2006-09-20  Bruno Haible  <bruno@clisp.org>
34365
34366         * lib/mkdtemp.c: Import from libc.
34367         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
34368                 * sysdeps/posix/tempname.c (__gen_tempname): Change
34369                 attempts_min into a macro.  Use preprocessor to decide how to
34370                 initialize attempts [Coverity CID 67].
34371         2001-11-27  Paul Eggert  <eggert@twinsun.com>
34372                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
34373                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
34374
34375 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34376
34377         * gnulib-tool (func_exit): New function, to allow to pass the
34378         exit status portably through the trap.  Use everywhere.
34379         (--help, --version): Signal a write error.
34380         (trap): catch SIGPIPE, for write errors.
34381         Exit at the end of the trap, with the correct exit status.
34382
34383 2006-09-19  Karl Berry  <karl@gnu.org>
34384
34385         * doc/gnulib.texi: note about the license texinfo files.
34386
34387 2006-09-19  Eric Blake  <ebb9@byu.net>
34388
34389         * gnulib-tool: Avoid space-tab.
34390
34391 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
34392
34393         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
34394         that prevented coreutils 6.1 from building.  Problem reported
34395         by Petter Reinholdtsen.
34396
34397 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
34398
34399         * gnulib-tool (avoidlist): Fix typo that broke options like
34400         --avoid=lock that are used by coreutils bootstrap.
34401
34402 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
34403
34404         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
34405         more systematically.
34406
34407 2006-09-18  Jim Meyering  <jim@meyering.net>
34408
34409         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
34410
34411 2006-09-18  Bruno Haible  <bruno@clisp.org>
34412
34413         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
34414
34415 2006-09-18  Bruno Haible  <bruno@clisp.org>
34416
34417         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
34418         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
34419         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
34420         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
34421         * m4/gettext.m4: Require autoconf >= 2.52.
34422         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
34423         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
34424         of gl_cv_header_inttypes_h.
34425
34426 2006-09-18  Bruno Haible  <bruno@clisp.org>
34427
34428         * lib/javaversion.c: Include configmake.h.
34429
34430 2006-09-18  Bruno Haible  <bruno@clisp.org>
34431
34432         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
34433         avoid that the while loops be executed in a subshell.
34434
34435 2006-09-18  Bruno Haible  <bruno@clisp.org>
34436
34437         * MODULES.html.sh (func_module): Break long lines.
34438         Suggested by Bruce Korb <bkorb@gnu.org>.
34439
34440 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34441
34442         Speed up by a factor of 1.12.
34443         * gnulib-tool (nl): New variable.
34444         (func_import): Rewrite include directive extraction to only read each
34445         directive once.
34446
34447 2006-09-17  Bruno Haible  <bruno@clisp.org>
34448
34449         * modules/javaversion (Makefile.am): Remove DEFS setting.
34450         (Depends-on): Add configmake, for PKGDATADIR definition.
34451
34452 2006-09-17  Bruno Haible  <bruno@clisp.org>
34453
34454         * gnulib-tool (func_create_testdir): Rewrite all files at once.
34455
34456 2006-09-17  Bruno Haible  <bruno@clisp.org>
34457
34458         * gnulib-tool (func_append): New function, stolen from libtool.m4.
34459         (func_modules_transitive_closure, func_modules_add_dummy,
34460         func_modules_to_filelist, func_import, func_create_testdir,
34461         func_create_megatestdir, ...): Use it wherever possible.
34462         Suggested by Ralf Wildenhues.
34463
34464 2006-09-16  Karl Berry  <karl@gnu.org>
34465
34466         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
34467         to avoid sectioning errors.
34468         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
34469         [ifinfo]: blank line after @center-ed titles.
34470         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
34471         Spell FSF address consistently with others.
34472         (These changes approved by rms.)
34473
34474 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34475
34476         Speed up by a factor of 1.61.
34477         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
34478         already checked module names again.
34479
34480 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34481
34482         Speed up by a factor of 1.13.
34483         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
34484         for new_files, and the input to func_add_or_update.
34485
34486 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34487
34488         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
34489         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
34490
34491 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
34492
34493         * modules/mkancesdirs (Depends-on): Add fcntl.
34494         * modules/savewd: New file.
34495         * MODULES.html.sh (File system functions): Add savewd.
34496
34497         * modules/configmake (Makefile.am): Add support for the
34498         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
34499
34500 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
34501
34502         * m4/savewd.m4: New file.
34503
34504 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
34505
34506         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
34507         (dirchownmod): New arg FD.  All callers changed.
34508         Use FD rather than opening the directory ourself, as opening is
34509         now the caller's responsibility.
34510         * lib/dirchownmod.h: Likewise.
34511         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
34512         hosts that require <sys/types.h> before <sys/stat.h>.  Include
34513         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
34514         (test_dir): Remove.
34515         (mkancesdirs): Return length of prefix of FILE that has already
34516         been made, or -2 if there is a child doing the work.  Redo
34517         algorithm so that it is O(N) rather than O(N**2).  Optimize away
34518         ".", and treat ".." specially since it might stray back into
34519         already-created areas.  Use a subprocess if necessary.  New arg
34520         WD; all users changed.  MAKE_DIR function should now return 1
34521         if it creates a directory that is not readable.  Return -2 if
34522         a child process is spun off.
34523         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
34524         Adjust signature to match code.
34525         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
34526         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
34527         all users changed.
34528         * lib/savewd.c, lib/savewd.h: New files.
34529
34530 2006-09-15  Jim Meyering  <jim@meyering.net>
34531
34532         * modules/rename-dest-slash: New module.
34533         * MODULES.html.sh (posix_compat): Add it here.
34534
34535         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
34536
34537 2006-09-15  Jim Meyering  <jim@meyering.net>
34538
34539         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
34540         file.
34541
34542         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
34543
34544 2006-09-15  Jim Meyering  <jim@meyering.net>
34545
34546         * lib/rename-dest-slash.c (has_trailing_slash): Use
34547         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
34548         (rpl_rename_dest_slash): Perform the cheaper trailing slash
34549         test before testing whether SRC is a directory.
34550         Suggestions from Bruno Haible.
34551
34552         Avoid a warning about an unused variable.
34553         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
34554         into the #ifdef block where it's used.
34555
34556         * lib/rename-dest-slash.c: New file.
34557
34558 2006-09-14  Bruno Haible  <bruno@clisp.org>
34559
34560         * lib/allocsa.c: Include <config.h> unconditionally.
34561         * lib/asnprintf.c: Likewise.
34562         * lib/asprintf.c: Likewise.
34563         * lib/c-strcasecmp.c: Likewise.
34564         * lib/c-strcasestr.c: Likewise.
34565         * lib/c-strncasecmp.c: Likewise.
34566         * lib/c-strstr.c: Likewise.
34567         * lib/classpath.c: Likewise.
34568         * lib/clean-temp.c: Likewise.
34569         * lib/concatpath.c: Likewise.
34570         * lib/copy-file.c: Likewise.
34571         * lib/csharpcomp.c: Likewise.
34572         * lib/csharpexec.c: Likewise.
34573         * lib/execute.c: Likewise.
34574         * lib/fatal-signal.c: Likewise.
34575         * lib/findprog.c: Likewise.
34576         * lib/fwriteerror.c: Likewise.
34577         * lib/gl_array_list.c: Likewise.
34578         * lib/gl_array_oset.c: Likewise.
34579         * lib/gl_avltree_list.c: Likewise.
34580         * lib/gl_avltree_oset.c: Likewise.
34581         * lib/gl_avltreehash_list.c: Likewise.
34582         * lib/gl_carray_list.c: Likewise.
34583         * lib/gl_linked_list.c: Likewise.
34584         * lib/gl_linkedhash_list.c: Likewise.
34585         * lib/gl_list.c: Likewise.
34586         * lib/gl_oset.c: Likewise.
34587         * lib/gl_rbtree_list.c: Likewise.
34588         * lib/gl_rbtree_oset.c: Likewise.
34589         * lib/gl_rbtreehash_list.c: Likewise.
34590         * lib/imaxabs.c: Likewise.
34591         * lib/imaxdiv.c: Likewise.
34592         * lib/javacomp.c: Likewise.
34593         * lib/javaexec.c: Likewise.
34594         * lib/javaversion.c: Likewise.
34595         * lib/linebreak.c: Likewise.
34596         * lib/localcharset.c: Likewise.
34597         * lib/lock.c: Likewise.
34598         * lib/mbchar.c: Likewise.
34599         * lib/mbswidth.c: Likewise.
34600         * lib/mkdtemp.c: Likewise.
34601         * lib/pipe.c: Likewise.
34602         * lib/printf-args.c: Likewise.
34603         * lib/printf-parse.c: Likewise.
34604         * lib/progname.c: Likewise.
34605         * lib/progreloc.c: Likewise.
34606         * lib/readlink.c: Likewise.
34607         * lib/sh-quote.c: Likewise.
34608         * lib/stpcpy.c: Likewise.
34609         * lib/stpncpy.c: Likewise.
34610         * lib/strcasecmp.c: Likewise.
34611         * lib/strcasestr.c: Likewise.
34612         * lib/strcspn.c: Likewise.
34613         * lib/striconv.c: Likewise.
34614         * lib/strncasecmp.c: Likewise.
34615         * lib/strnlen1.c: Likewise.
34616         * lib/strstr.c: Likewise.
34617         * lib/strtok_r.c: Likewise.
34618         * lib/tls.c: Likewise.
34619         * lib/tmpdir.c: Likewise.
34620         * lib/unicodeio.c: Likewise.
34621         * lib/unsetenv.c: Likewise.
34622         * lib/vasnprintf.c: Likewise.
34623         * lib/vasprintf.c: Likewise.
34624         * lib/wait-process.c: Likewise.
34625         * lib/xallocsa.c: Likewise.
34626         * lib/xsetenv.c: Likewise.
34627         * lib/xstriconv.c: Likewise.
34628
34629 2006-09-13  Simon Josefsson  <jas@extundo.com>
34630
34631         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
34632         that internally, suggested by Ralf Wildenhues
34633         <Ralf.Wildenhues@gmx.de>.
34634
34635 2006-09-13  Simon Josefsson  <jas@extundo.com>
34636
34637         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
34638         @LIBOBJS@.
34639         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
34640
34641 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
34642
34643         * lib/_fpending.c: Include <config.h> unconditionally, since we no
34644         longer worry about uses that don't define HAVE_CONFIG_H.
34645         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
34646         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
34647         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
34648         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
34649         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
34650         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
34651         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
34652         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
34653         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
34654         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
34655         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
34656         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
34657         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
34658         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
34659         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
34660         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
34661         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
34662         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
34663         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
34664         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
34665         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
34666         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
34667         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
34668         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
34669         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
34670         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
34671         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
34672         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
34673         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
34674         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
34675         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
34676         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
34677         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
34678         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
34679         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
34680         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
34681         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
34682         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
34683         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
34684         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
34685         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
34686         Likewise.
34687
34688 2006-09-13  Eric Blake  <ebb9@byu.net>
34689
34690         * lib/getopt.c: Fix typo in last commit.
34691
34692 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
34693
34694         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
34695         dgettext.
34696
34697 2006-09-12  Jim Meyering  <jim@meyering.net>
34698
34699         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
34700         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
34701         Reported by Nelson H. F. Beebe.
34702
34703 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
34704
34705         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
34706         program_invocation_name and program_invocation_short_name are
34707         initialized.
34708         * lib/argp-namefrob.h: Move declarations of program_invocation_name
34709         and program_invocation_short_name to argp.h, so they are visible
34710         to user programs.
34711         * lib/argp.h: Likewise
34712
34713 2006-09-10  Bruno Haible  <bruno@clisp.org>
34714
34715         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
34716         m4/inttypes_h.m4, m4/uintmax_t.m4.
34717
34718 2006-09-10  Bruno Haible  <bruno@clisp.org>
34719
34720         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
34721         gl_AC_TYPE_UINTMAX_T.
34722
34723 2006-09-10  Bruno Haible  <bruno@clisp.org>
34724
34725         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
34726
34727 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
34728
34729         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
34730         convention.  Text proposed by Bruno Haible.
34731         (struct argp_option): Document the use of N_() wrappers.
34732
34733         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
34734         '\v', and translate the two parts separately, instead of feeding
34735         the whole string to gettext.  This allows to exclude
34736         '\v' from the strings visible to the translator by writing doc
34737         strings as N_("..") "\v" N_("..").
34738
34739 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
34740
34741         * config/srclist.txt: Undo latest change; the bug was fixed.
34742
34743 2006-09-09  Bruno Haible  <bruno@clisp.org>
34744
34745         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
34746         assignments if building a library without libtool.
34747         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
34748         in func_emit_lib_Makefile_am.
34749         (func_import): When building a static library libfoo.a, arrange to
34750         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
34751         (func_create_testdir): Likewise.
34752         * modules/gc (configure.ac, Makefile.am): If building statically,
34753         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
34754         * modules/iconvme (configure.ac, Makefile.am): Likewise.
34755         * modules/striconv (configure.ac, Makefile.am): Likewise.
34756         Based on a suggestion by Ralf Wildenhues.
34757
34758 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
34759
34760         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
34761         Check for unistd.h too, since Autoconf doesn't assume POSIX.
34762         Also:
34763
34764         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
34765         Add year_2050_test to catch glibc bug 2821
34766         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
34767
34768         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
34769         Prefer #ifdef to #if.
34770
34771         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
34772         Return from 'main' instead of calling 'exit'.
34773
34774 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
34775
34776         * lib/mktime.c (guess_time_tm): Fix bug where mktime
34777         returned the maximum time_t value rather than (time_t) -1.
34778         Problem originally reported by William Bardwell
34779         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
34780
34781         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
34782         Moved to here ...
34783         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
34784         ... from here.
34785
34786 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
34787
34788         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
34789         2821 is fixed.
34790
34791 2006-09-08  Jim Meyering  <jim@meyering.net>
34792
34793         Don't make generated files read-only.  That would bother too many
34794         people.  However, do retain the ability to work when targets are
34795         read-only: remove the destination and temporary files before writing
34796         them (when generated via sed or echo), or by using the -f option for
34797         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
34798         * modules/alloca-opt, modules/argz, modules/arpa_inet:
34799         * modules/byteswap, modules/configmake, modules/fcntl:
34800         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
34801         * modules/localcharset, modules/netinet_in, modules/poll:
34802         * modules/stdbool, modules/stdint, modules/sys_select:
34803         * modules/sys_socket, modules/sys_stat, modules/sysexits:
34804
34805 2006-09-08  Jim Meyering  <jim@meyering.net>
34806
34807         Avoid new build failure on FreeBSD 6.0.
34808         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
34809         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
34810         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
34811
34812 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34813
34814         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
34815
34816 2006-09-07  Jim Meyering  <jim@meyering.net>
34817
34818         Fix global typo in last change: use chmod u-w, not chmod u-x.
34819         Spotted by Paul Eggert and Bruce Korb.
34820         * modules/alloca-opt, modules/argz, modules/arpa_inet:
34821         * modules/byteswap, modules/configmake, modules/fcntl:
34822         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
34823         * modules/localcharset, modules/netinet_in, modules/poll:
34824         * modules/stdbool, modules/stdint, modules/sys_select:
34825         * modules/sys_socket, modules/sys_stat, modules/sysexits:
34826
34827 2006-09-06  Jim Meyering  <jim@meyering.net>
34828
34829         Make generated files be read-only.
34830         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
34831         Ensure that each generated file is now read-only.
34832         * modules/argz: Likewise.
34833         * modules/arpa_inet: Likewise.
34834         * modules/byteswap: Likewise.
34835         * modules/configmake: Likewise.
34836         * modules/fcntl: Likewise.
34837         * modules/fnmatch: Likewise.
34838         * modules/getopt: Likewise.
34839         * modules/glob: Likewise.
34840         * modules/inttypes: Likewise.
34841         * modules/netinet_in: Likewise.
34842         * modules/poll: Likewise.
34843         * modules/stdbool: Likewise.
34844         * modules/stdint: Likewise.
34845         * modules/sys_select: Likewise.
34846         * modules/sys_socket: Likewise.
34847         * modules/sys_stat: Likewise.
34848         * modules/sysexits: Likewise.
34849         * modules/localcharset: Same as above, but continue using temporary
34850         file named "t-$@" (why different?) rather than the "$@-t" used
34851         everywhere else.
34852
34853         * modules/sysexits (Makefile.am): Replace literal occurrences
34854         of "sysexit.h" more readable, and more consistent, "$@".
34855
34856 2006-09-06  Bruno Haible  <bruno@clisp.org>
34857
34858         * modules/striconv: New file.
34859         * modules/xstriconv: New file.
34860         * MODULES.html.sh (Internationalization functions): Add striconv,
34861         xstriconv.
34862
34863 2006-09-06  Bruno Haible  <bruno@clisp.org>
34864
34865         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
34866         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
34867         not using libtool correctly.
34868
34869 2006-09-06  Bruno Haible  <bruno@clisp.org>
34870
34871         * lib/striconv.h: New file.
34872         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
34873         iconvstring.c.
34874         * lib/xstriconv.h: New file.
34875         * lib/xstriconv.c: New file.
34876
34877 2006-09-06  Bruno Haible  <bruno@clisp.org>
34878
34879         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
34880         lib_..._LDFLAGS.
34881
34882 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34883
34884         * lib/argz_.h: Sync from Libtool.
34885
34886         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
34887                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
34888
34889         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
34890
34891 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
34892
34893         * modules/trim: New file.
34894
34895 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
34896
34897         * lib/trim.h: New file.
34898         * lib/trim.c: New file.
34899
34900 2006-09-05  Bruno Haible  <bruno@clisp.org>
34901
34902         * MODULES.html.sh (String handling): Add trim.
34903
34904 2006-09-04  Karl Berry  <karl@gnu.org>
34905
34906         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
34907         until next release.
34908
34909 2006-09-03  Bruno Haible  <bruno@clisp.org>
34910
34911         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
34912         correctly.
34913
34914 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
34915
34916         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
34917         not gl_GETLOADAVG.  Omit unneeded semicolons.
34918         Problems reported by Ralf Wildenhues in
34919         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
34920         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
34921         at the end, which is the usual gnulib style.
34922
34923         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
34924         of doing all the work ourselves.
34925         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
34926         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
34927
34928 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
34929
34930         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
34931         Problem reported by Ralf Wildenhues in
34932         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
34933
34934         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
34935         HAVE_STRUCT_STATFS_F_FSTYPENAME.
34936
34937 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
34938
34939         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
34940         yesterday's patch by changing test -n to test -z.
34941
34942 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
34943
34944         * modules/getloadavg (Files): Add m4/getloadavg.m4.
34945         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
34946         the former is now obsolescent.
34947
34948         * modules/chdir-long (Depends-on): Add fcntl.
34949
34950 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
34951
34952         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
34953         obsolescent, and programs should use gnulib instead.
34954         * m4/getloadavg.m4: New file, with contents taken from Autoconf
34955         but with prefixes changed.
34956
34957 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
34958
34959         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
34960         or stdbool.h, because they might not exist while configuring.
34961
34962         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
34963         Don't include unistd.h or limits.h; not needed, since chdir-long.h
34964         does that for us.
34965         (O_DIRECTORY): Remove.
34966
34967 2006-08-31  Eric Blake  <ebb9@byu.net>
34968
34969         * gnulib-tool: Don't let emacs change spaces to TAB.
34970
34971 2006-08-31  Bruno Haible  <bruno@clisp.org>
34972
34973         * gnulib-tool: When calling func_import more than once, do it in a
34974         subshell.
34975         Reported by Eric Blake <ebb9@byu.net>.
34976
34977 2006-08-31  Bruno Haible  <bruno@clisp.org>
34978
34979         * gnulib-tool (nl): Remove variable.
34980         (sed_transform_lib_file): Use more robust test for config-h module.
34981         (func_import): Fix typo in 2006-08-25 patch.
34982
34983 2006-08-31  Bruno Haible  <bruno@clisp.org>
34984
34985         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
34986         specified, augment Makefile.am variables instead of assigning them.
34987
34988 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
34989
34990         Work around a bug in both the Linux and SunOS 64-bit kernels:
34991         nanosleep mishandles sleeps for longer than 2**31 seconds.
34992         Problem reported by Frank v Waveren in
34993         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
34994         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
34995         Check for nanosleep bug.
34996         (LIB_NANOSLEEP): Append clock_gettime library if needed.
34997
34998 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
34999
35000         Work around a bug in both the Linux and SunOS 64-bit kernels:
35001         nanosleep mishandles sleeps for longer than 2**31 seconds.
35002         Problem reported by Frank v Waveren in
35003         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
35004         * lib/nanosleep.c (BILLION): New constant.
35005         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
35006         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
35007         implementation.
35008
35009 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
35010
35011         * modules/nanosleep (Depends-on): Add gettime.
35012
35013 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
35014         and Simon Josefsson  <jas@extundo.com>
35015         and Oskar Liljeblad  <oskar@osk.mine.nu>
35016
35017         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
35018         * gnulib-tool (func_import): New license type 'unmodifiable license
35019         text'.
35020         * modules/fdl: Use it.  Longer description.
35021         * module/gpl, module/lgpl: New files.
35022
35023 2006-08-30  Jim Meyering  <jim@meyering.net>
35024
35025         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
35026         shadowing the parameter.
35027
35028 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35029
35030         Sync from Libtool:
35031
35032         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35033
35034         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
35035         sharing with gnulib.  Report by Eric Blake.
35036
35037 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
35038
35039         * modules/isapipe: New file.
35040         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
35041
35042 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
35043
35044         * modules/configmake (Makefile.am): Add a comment, and omit
35045         the CONFIGMAKE_ prefix from generated macro names.  Suggested
35046         by Bruno Haible.
35047
35048 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
35049
35050         * m4/isapipe.m4: New file.
35051
35052 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
35053
35054         * lib/isapipe.c, lib/isapipe.h: New files.
35055
35056 2006-08-29  Jim Meyering  <jim@meyering.net>
35057
35058         * modules/configmake (Makefile.am): Make configmake.h depend on
35059         Makefile.  Otherwise, a stale configmake.h could hang around.
35060
35061 2006-08-29  Eric Blake  <ebb9@byu.net>
35062
35063         * lib/error.c (error_at_line, print_errno_message): Match libc, after
35064         resolution of upstream bug 3044.
35065
35066 2006-08-29  Bruno Haible  <bruno@clisp.org>
35067
35068         * modules/localcharset (Depends-on): Add configmake.
35069         (Makefile.am): Remove setting of LIBDIR through DEFS.
35070
35071 2006-08-29  Bruno Haible  <bruno@clisp.org>
35072
35073         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
35074         defined.
35075
35076 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
35077
35078         * modules/fcntl: New file.
35079         * modules/chdir-safer (Depends-on): Add fcntl.
35080         * modules/fts: Likewise.
35081         * modules/mkdir-p: Likewise.
35082
35083         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
35084         This undoes the most recent change, since we're now addressing the
35085         problem in a different way.
35086
35087         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
35088         into output, since the output might be called Makefile.am even
35089         if $makefile_name is something different.
35090         (func_import): Use $makefile_am rather than
35091         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
35092         empty.
35093
35094         * modules/inttypes (Files): Add m4/inttypes-h.m4.
35095
35096 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
35097
35098         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
35099         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
35100         recent change to stdint.m4, since we're now addressing the problem in a
35101         different way.
35102
35103 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
35104
35105         * m4/fcntl_h.m4: New file.
35106
35107 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
35108
35109         * lib/fcntl_.h: New file.
35110         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
35111         the fcntl module.
35112         * lib/dirchownmod.c: Likewise.
35113         * lib/fts.c: Likewise.
35114
35115         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
35116         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
35117         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
35118         just before including <inttypes.h>, to avoid circular inclusion.
35119
35120 2006-08-28  Jim Meyering  <jim@meyering.net>
35121
35122         * doc/visibility.texi: Actually read and correct the grammar of the
35123         sentence affected by yesterday's change.
35124
35125 2006-08-28  Eric Blake  <ebb9@byu.net>
35126
35127         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
35128         needs wrapper.
35129
35130 2006-08-28  Eric Blake  <ebb9@byu.net>
35131
35132         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
35133
35134 2006-08-28  Eric Blake  <ebb9@byu.net>
35135
35136         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
35137
35138 2006-08-28  Bruno Haible  <bruno@clisp.org>
35139
35140         * modules/c-strstr: New file, from GNU gettext.
35141         * MODULES.html.sh (String handling): Add c-strstr.
35142
35143 2006-08-28  Bruno Haible  <bruno@clisp.org>
35144
35145         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
35146         macros.
35147         Reported by Eric Blake.
35148
35149 2006-08-28  Bruno Haible  <bruno@clisp.org>
35150
35151         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
35152         (VASNPRINTF): Return a string of length > INT_MAX without failing.
35153         * lib/vasprintf.c: Include errno.h, limits.h.
35154         (EOVERFLOW): New fallback definition.
35155         (vasprintf): Test here whether the string length is > INT_MAX.
35156         * lib/vsnprintf.c: Include errno.h, limits.h.
35157         (EOVERFLOW): New fallback definition.
35158         (vsnprintf): Fix bug when generated string was too long for the buffer.
35159         Test here whether the string length is > INT_MAX.
35160
35161 2006-08-28  Bruno Haible  <bruno@clisp.org>
35162
35163         * lib/inttypes_.h (SCNX*): Remove definitions.
35164         Reported by Eric Blake.
35165
35166 2006-08-28  Bruno Haible  <bruno@clisp.org>
35167
35168         * lib/c-strstr.h: New file, from GNU gettext.
35169         * lib/c-strstr.c: New file, from GNU gettext.
35170
35171 2006-08-28  Bruno Haible  <bruno@clisp.org>
35172
35173         * gnulib-tool: Reorder some statements.
35174
35175 2006-08-28  Bruno Haible  <bruno@clisp.org>
35176
35177         * gnulib-tool: New option --makefile-name.
35178         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
35179         $makefile_name.
35180         (func_import): Write $makefile_name to the cache file, and read it from
35181         there unless explicitly specified. Use $makefile_name as file name
35182         instead of Makefile.am. Adjust the recommendations accordingly.
35183
35184 2006-08-28  Bruno Haible  <bruno@clisp.org>
35185
35186         * gnulib-tool (func_verify_module): Check against misapplying patch.
35187
35188 2006-08-28  Bruno Haible  <bruno@clisp.org>
35189
35190         * gnulib-tool (func_relativize, func_relconcat): New functions.
35191         Give an error if --local-dir is given with --update.
35192         Remove trailing slashes from $local_gnulib_dir.
35193         (func_import): Store the relativized $local_gnulib_dir in
35194         gnulib-cache.m4, and read it from there if not specified explicitly.
35195
35196 2006-08-28  Bruno Haible  <bruno@clisp.org>
35197
35198         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
35199         is the current directory. Respect also $local_gnulib_dir.
35200
35201 2006-08-28  Bruno Haible  <bruno@clisp.org>
35202             Simon Josefsson  <jas@extundo.com>
35203
35204         BeOS portability.
35205         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
35206
35207 2006-08-27  Jim Meyering  <jim@meyering.net>
35208
35209         * doc/visibility.texi: Remove duplicate word: "pointer".
35210
35211 2006-08-26  Bruno Haible  <bruno@clisp.org>
35212
35213         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
35214         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
35215         (Makefile.am): Create inttypes.h from inttypes_.h.
35216         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
35217
35218         * modules/imaxabs: New file.
35219
35220         * modules/imaxdiv: New file.
35221
35222 2006-08-26  Bruno Haible  <bruno@clisp.org>
35223
35224         * m4/inttypes.m4: New file.
35225         * m4/_inttypes_h.m4: Remove file.
35226         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
35227         PRI_MACROS_BROKEN.
35228         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
35229
35230         * m4/imaxabs.m4: New file.
35231
35232         * m4/imaxdiv.m4: New file.
35233
35234 2006-08-26  Bruno Haible  <bruno@clisp.org>
35235
35236         * lib/inttypes_.h: New file.
35237         * lib/inttypes.h: Remove file.
35238         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
35239
35240         * lib/imaxabs.c: New file.
35241
35242         * lib/imaxdiv.c: New file.
35243
35244 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
35245
35246         New config-h module, so that "make" output needn't be cluttered
35247         by -DHAVE_CONFIG_H.
35248         * MODULES.html.sh (Support for building libraries and executables):
35249         Add config-h.
35250         * modules/config-h: New file.
35251         * gnulib-tool (nl, sed_transform_lib_file): New vars.
35252         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
35253         the config-h module is used.
35254
35255         New configmake module, so that "make" output needn't be cluttered
35256         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
35257         * MODULES.html.sh (Support for building libraries and executables):
35258         Add configmake.
35259         * modules/configmake: New file.
35260
35261 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
35262
35263         * m4/config-h.m4: New file.
35264
35265 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
35266
35267         * config/srclist.txt: Add elisp-comp.
35268
35269 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
35270
35271         * MODULES.html.sh (Support for building libraries and executables):
35272         Add elisp-comp.
35273         * build-aux/elisp-comp: New file.
35274         * modules/elisp-comp: New file.
35275
35276 2006-08-24  Bruno Haible  <bruno@clisp.org>
35277
35278         * gnulib-tool (func_create_testdir): Use non-default values of
35279         sourcebase and m4base.
35280
35281 2006-08-24  Bruno Haible  <bruno@clisp.org>
35282
35283         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
35284         HTML structure.
35285
35286 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
35287
35288         * modules/openat (Depends-on): Add lchown.
35289
35290 2006-08-23  Bruno Haible  <bruno@clisp.org>
35291
35292         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
35293         of gl_LOCK_EARLY instead of gl_LOCK.
35294
35295 2006-08-23  Bruno Haible  <bruno@clisp.org>
35296
35297         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
35298         on OSF/1 to no.
35299         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
35300
35301 2006-08-23  Bruno Haible  <bruno@clisp.org>
35302
35303         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
35304         as unusable.
35305
35306         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
35307         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
35308         (gl_LOCK): New macro.
35309
35310 2006-08-22  Simon Josefsson  <jas@extundo.com>
35311
35312         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
35313         to md5 module.
35314
35315 2006-08-22  Simon Josefsson  <jas@extundo.com>
35316
35317         * MODULES.html.sh: Add "Support for maintaining and release
35318         projects".
35319
35320         * build-aux/gnupload: New file, from coreutils.
35321
35322 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
35323
35324         Avoid the need for AC_LIBSOURCES in m4 macros.
35325         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
35326         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
35327         * modules/check-version (EXTRA_DIST): Add check-version.h.
35328         * modules/crc (EXTRA_DIST): Add crc.h.
35329         * modules/des (EXTRA_DIST): Add des.h.
35330         * modules/gc (EXTRA_DIST): Add gc.h.
35331         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
35332         * modules/getline (EXTRA_DIST): Add getline.h.
35333         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
35334         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
35335         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
35336         * modules/md2 (EXTRA_DIST): Add md2.h.
35337         * modules/md4 (EXTRA_DIST): Add md4.h.
35338         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
35339         * modules/read-file (EXTRA_DIST): Add read-file.h.
35340         * modules/readline (EXTRA_DIST): Add readline.h.
35341         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
35342         rijndael-api-fst.h.
35343
35344 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
35345
35346         * m4/rijndael.m4 (gl_ARCFOUR):
35347         * m4/arctwo.m4 (gl_ARCTWO):
35348         * m4/check-version.m4 (gl_CHECK_VERSION):
35349         * m4/crc.m4 (gl_CRC):
35350         * m4/des.m4 (gl_DES):
35351         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
35352         * m4/gc.m4 (gl_GC):
35353         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
35354         * m4/getline.m4 (gl_FUNC_GETLINE):
35355         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
35356         * m4/hmac-md5.m4 (gl_HMAC_MD5):
35357         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
35358         * m4/md2.m4 (gl_MD2):
35359         * m4/md4.m4 (gl_MD4):
35360         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
35361         * m4/read-file.m4 (gl_FUNC_READ_FILE):
35362         * m4/readline.m4 (gl_FUNC_READLINE):
35363         * m4/rijndael.m4 (gl_RIJNDAEL):
35364         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
35365         to get the necessary .h files and whatnot.
35366
35367 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
35368
35369         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
35370         gnulib rather than the other way around.
35371         * config/srclistvars.sh (COREUTILS): Remove.
35372
35373 2006-08-22  Jim Meyering  <jim@meyering.net>
35374
35375         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
35376
35377         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
35378
35379 2006-08-22  Eric Blake  <ebb9@byu.net>
35380
35381         * modules/regexprops-generic: New file.
35382         * MODULES.html.sh (Support for building documentation): List it.
35383
35384 2006-08-22  Eric Blake  <ebb9@byu.net>
35385
35386         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
35387         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
35388         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
35389         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
35390
35391 2006-08-22  Bruno Haible  <bruno@clisp.org>
35392
35393         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
35394         and lib_LTLIBRARIES like the other lib_* variables.
35395
35396 2006-08-22  Bruno Haible  <bruno@clisp.org>
35397
35398         * build-aux/x-to-1.in: New file, from GNU gettext.
35399
35400 2006-08-22  Bruno Haible  <bruno@clisp.org>
35401
35402         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
35403         <utmpx.h> exists.
35404
35405 2006-08-22  Bruno Haible  <bruno@clisp.org>
35406
35407         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
35408         <utmpx.h> exists.
35409
35410 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
35411
35412         BeOS portability.
35413         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
35414         exist.
35415         Problem reported by Bruno Haible.
35416
35417 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
35418
35419         Avoid the need for AC_LIBSOURCES in m4 macros.
35420         * modules/acl (EXTRA_DIST): Add acl.h.
35421         * modules/argmatch (Files): Add m4/argmatch.m4.
35422         (configure.ac): Add gl_ARGMATCH.
35423         (EXTRA_DIST): Renamed from lib_SOURCES, for
35424         consistency with the other modules.  Remove argmatch.c.
35425         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
35426         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
35427         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
35428         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
35429         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
35430         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
35431         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
35432         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
35433         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
35434         * modules/closeout (EXTRA_DIST): Add closeout.h.
35435         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
35436         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
35437         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
35438         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
35439         dirname.h; remove basename.c and stripslash.c.
35440         * modules/exclude (EXTRA_DIST): Add exclude.h.
35441         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
35442         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
35443         * modules/file-type (EXTRA_DIST): Add file-type.h.
35444         * modules/filemode (EXTRA_DIST): Add filemode.h.
35445         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
35446         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
35447         * modules/fpending (EXTRA_DIST): Add __fpending.h.
35448         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
35449         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
35450         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
35451         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
35452         * modules/getdate (EXTRA_DIST): Add getdate.c.
35453         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
35454         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
35455         * modules/getpass (EXTRA_DIST): Add getpass.h.
35456         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
35457         * modules/group-member (EXTRA_DIST): Add group-member.h.
35458         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
35459         * modules/hash (EXTRA_DIST): Add hash.h.
35460         * modules/human (EXTRA_DIST): Add human.h.
35461         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
35462         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
35463         * modules/lchown (EXTRA_DIST): Add lchown.h.
35464         * modules/long-options (EXTRA_DIST): Add long-options.h.
35465         * modules/lstat (EXTRA_DIST): Add lstat.h.
35466         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
35467         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
35468         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
35469         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
35470         * modules/memxor (EXTRA_DIST): Add memxor.h.
35471         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
35472         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
35473         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
35474         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
35475         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
35476         * modules/physmem (EXTRA_DIST): Add physmem.h.
35477         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
35478         * modules/posixver (EXTRA_DIST): Add posixver.h.
35479         * modules/quote (EXTRA_DIST): Add quote.h.
35480         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
35481         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
35482         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
35483         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
35484         regex_internal.h regexec.c.
35485         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
35486         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
35487         * modules/same (EXTRA_DIST): Add same.h.
35488         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
35489         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
35490         * modules/savedir (EXTRA_DIST): Add savedir.h.
35491         * modules/sha1 (EXTRA_DIST): Add sha1.h.
35492         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
35493         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
35494         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
35495         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
35496         * modules/strdup (EXTRA_DIST): Add strdup.h.
35497         * modules/strftime (EXTRA_DIST): Add strftime.h.
35498         * modules/strndup (EXTRA_DIST): Add strndup.h.
35499         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
35500         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
35501         * modules/time_r (EXTRA_DIST): Add time_r.h.
35502         * modules/timespec (EXTRA_DIST): Add timespec.h.
35503         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
35504         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
35505         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
35506         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
35507         * modules/userspec (EXTRA_DIST): Add userspec.h.
35508         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
35509         * modules/utimens (EXTRA_DIST): Add utimens.h.
35510         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
35511         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
35512         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
35513         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
35514         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
35515         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
35516         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
35517         * modules/yesno (EXTRA_DIST): Add yesno.h.
35518
35519 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
35520
35521         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
35522
35523         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
35524         * m4/dev-ino.m4, same-inode.m4: Remove.
35525
35526         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
35527         * m4/acl.m4 (AC_FUNC_ACL):
35528         * m4/backupfile.m4 (gl_BACKUPFILE):
35529         * m4/c-strtod.m4 (gl_C99_STRTOLD):
35530         * m4/canon-host.m4 (gl_CANON_HOST):
35531         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
35532         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
35533         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
35534         * m4/cloexec.m4 (gl_CLOEXEC):
35535         * m4/close-stream.m4 (gl_CLOSE_STREAM):
35536         * m4/closeout.m4 (gl_CLOSEOUT):
35537         * m4/dirfd.m4 (gl_FUNC_DIRFD):
35538         * m4/dirname.m4 (gl_DIRNAME):
35539         * m4/exclude.m4 (gl_EXCLUDE):
35540         * m4/exitfail.m4 (gl_EXITFAIL):
35541         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
35542         * m4/file-type.m4 (gl_FILE_TYPE):
35543         * m4/filemode.m4 (gl_FILEMODE):
35544         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
35545         * m4/fpending.m4 (gl_FUNC_FPENDING):
35546         * m4/fprintftime.m4 (gl_FPRINTFTIME):
35547         * m4/fts.m4 (gl_FUNC_FTS):
35548         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
35549         * m4/getdate.m4 (gl_GETDATE):
35550         * m4/gethrxtime.m4 (gl_GETHRXTIME):
35551         * m4/getpagesize.m4 (gl_GETPAGESIZE):
35552         * m4/getpass.m4 (gl_FUNC_GETPASS):
35553         * m4/gettime.m4 (gl_GETTIME):
35554         * m4/getugroups.m4 (gl_GETUGROUPS):
35555         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
35556         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
35557         * m4/hard-locale.m4 (gl_HARD_LOCALE):
35558         * m4/hash.m4 (gl_HASH):
35559         * m4/idcache.m4 (gl_IDCACHE):
35560         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
35561         * m4/lchown.m4 (gl_FUNC_LCHOWN):
35562         * m4/long-options.m4 (gl_LONG_OPTIONS):
35563         * m4/lstat.m4 (gl_FUNC_LSTAT):
35564         * m4/md5.m4 (gl_MD5):
35565         * m4/memcasecmp.m4 (gl_MEMCASECMP):
35566         * m4/memcoll.m4 (gl_MEMCOLL):
35567         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
35568         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
35569         * m4/memxor.m4 (gl_MEMXOR):
35570         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
35571         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
35572         * m4/modechange.m4 (gl_MODECHANGE):
35573         * m4/mountlist.m4 (gl_MOUNTLIST):
35574         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
35575         * m4/openat.m4 (gl_FUNC_OPENAT):
35576         * m4/pathmax.m4 (gl_PATHMAX):
35577         * m4/physmem.m4 (gl_PHYSMEM):
35578         * m4/posixtm.m4 (gl_POSIXTM):
35579         * m4/posixver.m4 (gl_POSIXVER):
35580         * m4/quote.m4 (gl_QUOTE):
35581         * m4/quotearg.m4 (gl_QUOTEARG):
35582         * m4/readtokens.m4 (gl_READTOKENS):
35583         * m4/readutmp.m4 (gl_READUTMP):
35584         * m4/regex.m4 (gl_REGEX):
35585         * m4/safe-read.m4 (gl_SAFE_READ):
35586         * m4/safe-write.m4 (gl_SAFE_WRITE):
35587         * m4/same.m4 (gl_SAME):
35588         * m4/save-cwd.m4 (gl_SAVE_CWD):
35589         * m4/savedir.m4 (gl_SAVEDIR):
35590         * m4/settime.m4 (gl_SETTIME):
35591         * m4/sha1.m4 (gl_SHA1):
35592         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
35593         * m4/stat-macros.m4 (gl_STAT_MACROS):
35594         * m4/stat-time.m4 (gl_STAT_TIME):
35595         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
35596         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
35597         * m4/strdup.m4 (gl_FUNC_STRDUP):
35598         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
35599         * m4/strndup.m4 (gl_FUNC_STRNDUP):
35600         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
35601         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
35602         * m4/time_r.m4 (gl_TIME_R):
35603         * m4/timespec.m4 (gl_TIMESPEC):
35604         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
35605         * m4/unlinkdir.m4 (gl_UNLINKDIR):
35606         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
35607         * m4/userspec.m4 (gl_USERSPEC):
35608         * m4/utimecmp.m4 (gl_UTIMECMP):
35609         * m4/utimens.m4 (gl_UTIMENS):
35610         * m4/xalloc.m4 (gl_XALLOC):
35611         * m4/xgetcwd.m4 (gl_XGETCWD):
35612         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
35613         * m4/xreadlink.m4 (gl_XREADLINK):
35614         * m4/xstrtod.m4 (gl_XSTRTOD):
35615         * m4/yesno.m4 (gl_YESNO):
35616         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
35617         to get the necessary .h files and whatnot.
35618
35619 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
35620             Bruno Haible  <bruno@clisp.org>
35621
35622         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
35623         /bin/sh understanding of '!' conditional negation.
35624
35625 2006-08-21  Jim Meyering  <jim@meyering.net>
35626
35627         * modules/openat (Depends-on): Really alphabetize.
35628
35629         * modules/acl (Depends-on): Add error and quote.
35630
35631         * check-module (find_included_lib_files): Add at-func.c to the
35632         ok-to-include-more-than-once white list.
35633
35634         * modules/openat (Depends-on): Add lstat.  Alphabetize.
35635
35636 2006-08-21  Bruno Haible  <bruno@clisp.org>
35637
35638         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
35639         Emit a pkgdata_DATA variable only if some snippets add contents to it.
35640         Reported by Martin Lambers <marlam@marlam.de>.
35641
35642 2006-08-21  Bruno Haible  <bruno@clisp.org>
35643
35644         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
35645         specify an installation location, don't emit a noinst_LIBRARIES or
35646         noinst_LTLIBRARIES assignment.
35647
35648 2006-08-21  Bruno Haible  <bruno@clisp.org>
35649
35650         BeOS portability.
35651         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
35652         BeOS has mbrtowc() but no <wctype.h>.
35653
35654 2006-08-21  Bruno Haible  <bruno@clisp.org>
35655
35656         BeOS portability.
35657         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
35658         exist.
35659
35660 2006-08-21  Bruno Haible  <bruno@clisp.org>
35661
35662         BeOS portability.
35663         * lib/mbchar.h: Include <wctype.h> only if it exists.
35664
35665 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
35666
35667         Remove files that are no longer needed by their respective modules.
35668         * m4/obstack.m4: Remove.
35669         * m4/strerror_r.m4: Remove.
35670         * m4/uint32_t.m4: Remove.
35671         * m4/uintptr_t.m4: Remove.
35672         * m4/ullong_max.m4: Remove.
35673         * m4/xstrtoimax.m4: Remove.
35674         * m4/xstrtoumax.m4: Remove.
35675
35676         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
35677         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
35678         dependencies now capture this.
35679
35680         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
35681         Do not use AC_LIBSOURCES, since gnulib modules now do this.
35682         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
35683         * m4/human.m4 (gl_HUMAN): Likewise.
35684         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
35685         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
35686
35687         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
35688
35689         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
35690         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
35691         stdint.
35692         * m4/human.m4 (gl_HUMAN): Likewise.
35693         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
35694         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
35695         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
35696         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
35697         * m4/xstrtol (gl_XSTRTOL): Likewise.
35698
35699         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
35700         AC_TYPE_LONG_LONG_INT.
35701         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
35702         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
35703         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
35704         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
35705
35706         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
35707         on stdbool.
35708
35709         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
35710         (gl_PREREQ_XSTRTOUL): Remove.
35711
35712         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
35713
35714         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
35715         mode.
35716
35717 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
35718
35719         Add and change modules to make it easier for coreutils to use
35720         gnulib-tool.
35721         * modules/backupfile (Files): Remove m4/d-ino.m4.
35722         (Depends-on): Add d-ino.
35723         * modules/cycle-check (Depends-on): Add stdint.
35724         (lib_SOURCES): Add cycle-check.h.
35725         * modules/d-ino: New module.
35726         * modules/d-type: New module.
35727         * modules/error (Files): Remove m4/strerror_r.m4.
35728         * modules/filemode (Files): Add m4/st_dm_mode.m4.
35729         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
35730         m4/inttypes_h.m4, m4/uintmax_t.m4.
35731         (Depends-on): Add stdint.
35732         (lib_SOURCES): Add fsusage.h.
35733         * modules/getcwd (Files): Remove d-ino.m4.
35734         (Depends-on): Add d-ino.
35735         * modules/getndelim2 (Depends-on): Add stdint.
35736         * modules/glob (Files): Remove m4/d-type.m4.
35737         (Depends-on): Add d-type.
35738         * modules/host-os: New module.
35739         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
35740         m4/inttypes_h.m4, m4/uintmax_t.m4.
35741         * Depends-on: Add stdint.
35742         (lib_SOURCES): Add human.h.
35743         * modules/inttostr (Files): Remove m4/intmax_t.m4,
35744         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
35745         m4/uintmax_t.m4, m4/ulonglong.m4.
35746         (Depends-on): Add stdint.
35747         (EXTRA_DIST): Add inttostr.h.
35748         * modules/lchmod: New module.
35749         * modules/link-follow: New module.
35750         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
35751         (Depends-on): Add lchmod.
35752         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
35753         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
35754         (Depends-on): Add stdint.
35755         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
35756         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
35757         (Depends-on): Add stdint.
35758         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
35759         * modules/perl: New module.
35760         * modules/regex (Depends-on): Add stdint.
35761         * modules/rmdir-errno: New module.
35762         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
35763         m4/intmax_t.m4.
35764         (Depends-on): Add stdint.
35765         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
35766         m4/uintmax_t.m4.
35767         (Depends-on): Add stdint.
35768         * modules/unlink-busy: New module.
35769         * modules/utimecmp (Depends-on): Add stdint.
35770         * modules/uptime: New module.
35771         * modules/winsz-ioctl: New module.
35772         * modules/winsz-termios: New module.
35773         * modules/xnanosleep (Depends-on): Add nanosleep.
35774         * modules/ullong_max: Remove.
35775         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
35776         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
35777         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
35778         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
35779         (Depends-on): Add inttypes.
35780         (lib_SOURCES): Add xstrtol.h.
35781         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
35782         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
35783         * MODULES.html.sh: Move 'assert' into the assert section.
35784         Move 'dummy' into the linking section.
35785         Remove ullong_max.
35786         Add section for compatibility checks for POSIX:2001 functions,
35787         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
35788         winsz-ioctl, and winsz-termios into it.
35789         Add lchmod.
35790         Add top-level Misc section and put host-os, perl, and uptime
35791         into it.
35792
35793 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
35794
35795         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
35796         now assume the stdint module.  Do not include inttypes.h.
35797         * lib/fsusage.h: Likewise.
35798         * lib/getndelim2.c: Likewise.
35799         * lib/human.h: Likewise.
35800         * lib/inttostr.h: Likewise.
35801         * lib/obstack.c: Likewise.
35802         * lib/regex_internal.h: Likewise.
35803         * lib/tempname.c: Likewise.
35804         * lib/utimecmp.c: Likewise.
35805         * lib/xstrtol.h: Likewise.
35806
35807         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
35808
35809         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
35810         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
35811         * lib/xtime.h: Likewise.
35812
35813 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
35814
35815         * modules/openat (Files): Add lib/fchmodat.c.
35816         Fixes problem reported by Jay Youngman.
35817
35818 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
35819
35820         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
35821         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
35822
35823 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
35824             Bruno Haible  <bruno@clisp.org>
35825
35826         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
35827         and is a script that invokes bison. Tighten the code. Add comments.
35828
35829 2006-08-18  Jim Meyering  <jim@meyering.net>
35830
35831         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
35832         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
35833         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
35834         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
35835
35836 2006-08-18  Bruno Haible  <bruno@clisp.org>
35837
35838         * modules/bison-i18n: New file.
35839         * MODULES.html.sh (Internationalization functions): Add it.
35840
35841 2006-08-18  Bruno Haible  <bruno@clisp.org>
35842
35843         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
35844         sys/statvfs.h. When getmntinfo was found, check its declaration and
35845         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
35846
35847 2006-08-18  Bruno Haible  <bruno@clisp.org>
35848
35849         * m4/bison-i18n.m4: New file, from bison.
35850
35851 2006-08-18  Bruno Haible  <bruno@clisp.org>
35852
35853         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
35854         (ME_DUMMY): Treat "kernfs" as a dummy.
35855         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
35856
35857 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
35858
35859         Update from coreutils.
35860
35861         2006-08-15  Jim Meyering  <jim@meyering.net>
35862
35863         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
35864
35865         2006-01-17  Jim Meyering  <jim@meyering.net>
35866
35867         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
35868
35869         2006-01-11  Jim Meyering  <jim@meyering.net>
35870
35871         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
35872         Check for the lchmod function.
35873
35874 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
35875
35876         Update from coreutils.
35877
35878         * lib/__fpending.h: Add copyright notice.
35879         * lib/fprintftime.h: Likewise.
35880         * lib/savedir.c: Use (C) in copyright notice.
35881         * lib/savedir.h: Likewise.
35882
35883         2006-08-15  Jim Meyering  <jim@meyering.net>
35884
35885         * lib/at-func.c: New file, with the logic of all emulated at-functions.
35886         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
35887         in support of the EXPECTED_ERRNO macro.
35888         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
35889         definitions.  Instead, define the appropriate symbols and include
35890         "at-func.c".
35891         * lib/mkdirat.c (mkdirat): Likewise.
35892         * lib/fchmodat.c (fchmodat): Likewise.
35893         (ENOSYS): Remove definition.
35894         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
35895         it.  Don't include "unistd--.h" -- it wasn't ever used.
35896
35897         2006-01-17  Jim Meyering  <jim@meyering.net>
35898
35899         Rewrite fts.c not to change the current working directory,
35900         by using openat, fstatat, fdopendir, etc..
35901
35902         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
35903         (HAVE_OPENAT_SUPPORT): Define.
35904         [_LIBC] (fchdir): Don't undef or define; no longer used.
35905         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
35906         Now, this `function' always succeeds, and consumes its file descriptor
35907         parameter -- so callers must not close such FDs.  Update callers.
35908         (diropen_fd, opendirat, cwd_advance_fd): New functions.
35909         (diropen): Add parameter, SP.  Adjust all callers.
35910         Implement using diropen_fd, rather than open.
35911         (fts_open): Initialize new member, fts_cwd_fd.
35912         Remove fts_rft-setting code.
35913         (fts_close): Close fts_cwd_fd, if necessary.
35914         (__opendir2): Define in terms of opendir or opendirat,
35915         depending on whether the FST_NOCHDIR flag is set.
35916         (fts_build): Since fts_safe_changedir consumes its FD, and since
35917         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
35918         and close the dup'd file descriptor upon failure.
35919         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
35920         (fts_safe_changedir): Tweak semantics to reflect that this function
35921         now calls cwd_advance_fd and hence consumes its FD argument.
35922         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
35923         [struct FTS] (fts_rft): Remove now-unused member.
35924         [struct FTS] (fts_cycle.state): Improve comment.
35925
35926         * lib/openat.c (openat_needs_fchdir): New function.
35927         * lib/openat.h (openat_needs_fchdir): Declare it.
35928
35929 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
35930
35931         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
35932         Problem and fix reported by Pádraig Brady in
35933         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
35934
35935 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
35936
35937         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
35938
35939 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
35940
35941         * lib/memcoll.c (memcoll): Optimize for the common case where the
35942         arguments are bytewise equal.
35943
35944 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
35945
35946         * doc/regexprops-generic.texi: Add a copyright notice.
35947
35948 2006-08-15  Bruno Haible  <bruno@clisp.org>
35949
35950         * modules/tmpdir (License): Change to LGPL.
35951
35952 2006-08-15  Bruno Haible  <bruno@clisp.org>
35953
35954         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
35955         module.
35956
35957 2006-08-14  Simon Josefsson  <jas@extundo.com>
35958
35959         * config/srclist.txt: Add gnupload.
35960
35961 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
35962
35963         Change copyright notice from LGPL 2 to GPL 2, since that's the
35964         standard form used in the gnulib repository.
35965         * tests/test-lock.c: Likewise.
35966         * tests/test-stdint.c: Likewise.
35967         * tests/test-tls.c: Likewise.
35968
35969         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
35970         prelude-manager.  User shorter URLs for GNU projects, without '?'.
35971         Add copyright notice.
35972
35973         * check-module: Add copyright notice.  Output a copyright
35974         notice if "--version" is specified.
35975         * modules/COPYING: New file.
35976         * tests/test-getaddrinfo.c: Add copyright notice.
35977         * tests/test-verify.c: Likewise.
35978
35979 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
35980
35981         Change copyright notice from LGPL 2 to GPL 2, since that's the
35982         standard form used in the gnulib repository.
35983         * lib/lock.c: LGPL -> GPL.
35984         * lib/lock.h: Likewise.
35985         * lib/strnlen1.c: Likewise.
35986         * lib/strnlen1.h: Likewise.
35987         * lib/tls.c: Likewise.
35988         * lib/tls.h: Likewise.
35989         * lib/tmpdir.c: Likewise.
35990
35991         * lib/TODO: Remove; this belongs only in coreutils.
35992
35993 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
35994
35995         Add copyright notices to long-enough files that lack them, since
35996         otherwise the files aren't clearly free.  Use the same notice that
35997         getdate.texi already uses.
35998         * doc/alloca-opt.texi: Add copyright notice.
35999         * doc/alloca.texi: Likewise.
36000         * doc/ctime.texi: Likewise.
36001         * doc/functions.texi: Likewise.
36002         * doc/gcd.texi: Likewise.
36003         * doc/gnulib-tool.texi: Likewise.
36004         * doc/inet_ntoa.texi: Likewise.
36005         * doc/visibility.texi: Likewise.
36006
36007         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
36008         * doc/quote.texi: Add copyright notice.
36009
36010         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
36011         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
36012         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
36013         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
36014         is now obsolete, and give a pointer to the Sun list.
36015         Add copyright notice.
36016
36017 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
36018
36019         * config/srclistvars.sh: Add copyright notice.
36020
36021 2006-08-14  Eric Blake  <ebb9@byu.net>
36022
36023         Import the following change from libc:
36024
36025         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
36026
36027         Upstream bug 2997.
36028         * lib/misc/error.c: Add space between program name and message if file
36029         name is missing.
36030
36031 2006-08-12  Karl Berry  <karl@gnu.org>
36032
36033         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
36034         remove, these originate in gnulib now.
36035
36036 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36037
36038         * doc/Makefile (standards.info standards.html standards.dvi):
36039         Also depend on make-stds.texi.
36040
36041 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
36042
36043         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
36044         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
36045
36046         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
36047         in wchar_t.  Problem reported by Eric Blake.
36048
36049         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
36050         LEN is smaller than SIZE.  Suggested by Bruno Haible.
36051         Also, help the compiler to keep LEN in a register.
36052
36053 2006-08-11  Eric Blake  <ebb9@byu.net>
36054
36055         * users.txt: Sort.  Add tar.
36056
36057 2006-08-11  Bruno Haible  <bruno@clisp.org>
36058
36059         * users.txt: New file.
36060
36061 2006-08-11  Bruno Haible  <bruno@clisp.org>
36062
36063         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
36064         before <wchar.h>. Needed for OSF/1 and BSD/OS.
36065
36066 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
36067
36068         * modules/snprintf (Depends-on): Remove minmax.
36069         (Maintainer): Add self and Bruno.
36070
36071 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
36072
36073         * lib/.cppi-disable: Add snprintf.h, socket_.h.
36074         * lib/snprintf.c: Include <errno.h> and <limits.h>.
36075         (EOVERFLOW): Define if the system does not.
36076         Do not include "minmax.h"; it wasn't used.
36077         (snprintf): Don't assume size_t promotes to an unsigned type.
36078         Fix bug when generated string was too long for the buffer: the
36079         buffer's contents are supposed to be the initial prefix of the
36080         output.  Don't assume vasnprintf returns EOVERFLOW if the size
36081         exceeds INT_MAX; do the check ourselves.
36082
36083         Import the following changes from libc:
36084
36085         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
36086
36087         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
36088         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
36089         set wc to the byte which couldn't be converted.
36090         (re_string_reconstruct): Don't clear valid_raw_len before calling
36091         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
36092         tip_context using re_string_context_at.
36093
36094         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
36095
36096         * lib/posix/regex.h: g++ still cannot handled [restrict].
36097
36098         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
36099
36100         * lib/posix/regex.h: Remove special handling for VMS.
36101
36102 2006-08-10  Jim Meyering  <jim@meyering.net>
36103
36104         * modules/same-inode: New module.
36105         * modules/dev-ino: New module.
36106         * modules/cycle-check: Depend on these modules, rather than simply
36107         including their .h files.
36108         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
36109         required via m4/cycle-check.m4.
36110         * modules/same: Depend on new same-inode module, rather than
36111         including same-inode.h.
36112         * modules/chdir-safer: New file.
36113
36114         * modules/chown (Depends-on): Add stat-macros.
36115
36116 2006-08-10  Jim Meyering  <jim@meyering.net>
36117
36118         * m4/cycle-check.m4: New file.
36119         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
36120         * m4/dev-ino.m4, m4/same-inode.m4: New files.
36121
36122 2006-08-10  Eric Blake  <ebb9@byu.net>
36123
36124         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
36125         in from original proposal.
36126
36127 2006-08-10  Eric Blake  <ebb9@byu.net>
36128         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
36129
36130         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
36131         namespace.
36132
36133 2006-08-10  Bruno Haible  <bruno@clisp.org>
36134
36135         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
36136         as well.
36137
36138 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
36139
36140         Sync from coreutils.
36141
36142         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
36143
36144         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
36145         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
36146
36147 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
36148
36149         * modules/restrict: Remove; no longer needed now that we assume
36150         Autoconf 2.59 or later.
36151         * MODULES.html.sh: Remove 'restrict'.
36152         * modules/argp (Depends-on): Remove 'restrict'.
36153         * modules/base64 (Depends-on): Likewise.
36154         * modules/gc (Depends-on): Likewise.
36155         * modules/getaddrinfo (Depends-on): Likewise.
36156         * modules/glob (Depends-on): Likewise.
36157         * modules/inet_ntop (Depends-on): Likewise.
36158         * modules/inet_pton (Depends-on): Likewise.
36159         * modules/memxor (Depends-on): Likewise.
36160         * modules/regex (Depends-on): Likewise.
36161         * modules/strtok_r (Depends-on): Likewise.
36162         * modules/time_r (Depends-on): Likewise.
36163
36164 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
36165
36166         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
36167         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
36168         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
36169         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
36170         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
36171         * m4/memxor.m4 (gl_MEMXOR): Likewise.
36172         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
36173         gl_C_RESTRICT replaced by AC_C_RESTRICT.
36174
36175         Merge from coreutils.
36176         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
36177         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
36178         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
36179         * m4/time_r.m4 (gl_TIME_R): Likewise.
36180
36181 2006-08-09  Karl Berry  <karl@gnu.org>
36182
36183         * config/srclist.txt: no more gettext-tools, per Bruno.
36184
36185 2006-08-08  Eric Blake  <ebb9@byu.net>
36186
36187         * modules/verror: New module.
36188         * MODULES.html.sh: Document it.
36189
36190 2006-08-08  Eric Blake  <ebb9@byu.net>
36191
36192         * lib/verror.h, lib/verror.c: New files.
36193
36194 2006-08-08  Eric Blake  <ebb9@byu.net>
36195
36196         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
36197         verror_at_line output complies with GNU Coding Standards even when
36198         file is NULL.
36199
36200 2006-08-07  Bruno Haible  <bruno@clisp.org>
36201
36202         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
36203         versions of AIX.
36204         Reported by Ralf Wildenhues.
36205
36206 2006-08-07  Bruno Haible  <bruno@clisp.org>
36207
36208         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
36209         in an AC_DEFUN. Needed so that the autoconf snippets can use
36210         AC_REQUIRE.
36211
36212 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36213
36214         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
36215         Initialize pkgdata_DATA.
36216         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
36217         overriding it.
36218
36219 2006-08-06  Eric Blake  <ebb9@byu.net>
36220
36221         * lib/error.h: Fold in some upstream changes from glibc.
36222         * lib/error.c: Likewise.
36223
36224 2006-08-04  Bruno Haible  <bruno@clisp.org>
36225
36226         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
36227         Make the mostlyclean-local rule depend on mostlyclean-generic.
36228         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
36229
36230 2006-07-31  Bruno Haible  <bruno@clisp.org>
36231
36232         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
36233         <stdlib.h>, <string.h>.
36234
36235 2006-07-30  Bruno Haible  <bruno@clisp.org>
36236
36237         * modules/readlink (License): Change to LGPL.
36238
36239 2006-07-30  Bruno Haible  <bruno@clisp.org>
36240
36241         * modules/javaversion (Makefile.am): Distribute javaversion.java and
36242         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
36243         set PKGDATADIR to point to it.
36244
36245 2006-07-30  Bruno Haible  <bruno@clisp.org>
36246
36247         * modules/csharpexec (configure.ac): Comment out macro invocation.
36248         * modules/javaexec (configure.ac): Likewise.
36249         * modules/javacomp-script (configure.ac): Likewise.
36250
36251         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
36252
36253 2006-07-30  Bruno Haible  <bruno@clisp.org>
36254
36255         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
36256         linked-list.
36257
36258 2006-07-30  Bruno Haible  <bruno@clisp.org>
36259
36260         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
36261
36262 2006-07-30  Bruno Haible  <bruno@clisp.org>
36263
36264         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
36265         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
36266         get removed.
36267
36268 2006-07-29  Bruno Haible  <bruno@clisp.org>
36269
36270         Make it possible for gnulib-tool to work with locally modified or
36271         augmented gnulib repositories.
36272         * gnulib-tool (func_usage): Document --local-dir option.
36273         (local_gnulib_dir): New variable.
36274         Handle --local-dir option.
36275         (func_lookup_file): New function.
36276         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
36277         (func_get_description, func_get_filelist, func_get_description,
36278         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
36279         func_get_automake_snippet, func_get_include_directive,
36280         func_get_license, func_get_maintainer): Use func_lookup_file.
36281         (func_import, func_create_testdir): Use func_lookup_file.
36282
36283 2006-07-29  Bruno Haible  <bruno@clisp.org>
36284
36285         * modules/setenv (Depends-on): Add unistd.
36286
36287 2006-07-29  Bruno Haible  <bruno@clisp.org>
36288
36289         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
36290
36291 2006-07-29  Bruno Haible  <bruno@clisp.org>
36292
36293         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
36294
36295 2006-07-29  Bruno Haible  <bruno@clisp.org>
36296
36297         * gnulib-tool (import, update): If there is no Makefile.am, look at
36298         aclocal.m4, instead of bailing out.
36299
36300 2006-07-29  Bruno Haible  <bruno@clisp.org>
36301
36302         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
36303         Categorize the options by when they are useful.
36304
36305 2006-07-29  Bruno Haible  <bruno@clisp.org>
36306
36307         * gnulib-tool (func_usage): Document option --no-libtool.
36308         Handle option --no-libtool.
36309         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
36310         for changed semantics of $libtool variable.
36311         (func_import): Likewise. If libtool is not used, show this through
36312         an option --no-libtool.
36313         (func_create_testdir): Update.
36314
36315 2006-07-29  Bruno Haible  <bruno@clisp.org>
36316
36317         * gnulib-tool (func_import): Extend error message about missing
36318         --doc-base.
36319
36320 2006-07-29  Bruno Haible  <bruno@clisp.org>
36321
36322         * gnulib-tool (func_import): Don't create the $docbase directory if
36323         there is no file to store there.
36324
36325 2006-07-29  Bruno Haible  <bruno@clisp.org>
36326
36327         * gnulib-tool (autoconf_minversion): If a --dir option is given and
36328         relevant, look for configure.ac there, not in the current directory.
36329         Also use a simple search for AC_PREREQ, not "autoconf --trace".
36330
36331 2006-07-29  Bruno Haible  <bruno@clisp.org>
36332
36333         * gnulib-tool (SORT): New variable.
36334         (func_usage): Undocument --assume-autoconf option.
36335         Remove --assume-autoconf option handling.
36336         (autoconf_minversion): Determine from the contents of configure.ac.
36337         (func_import): Remove autoconf_minversion handling.
36338         Suggested by Eric Blake.
36339
36340 2006-07-29  Bruno Haible  <bruno@clisp.org>
36341
36342         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
36343
36344 2006-07-29  Bruno Haible  <bruno@clisp.org>
36345
36346         * config/srclist.txt (*setenv.[ch]): Remove rules.
36347
36348 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36349
36350         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
36351
36352 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36353
36354         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
36355         arpa/inet.h.
36356
36357 2006-07-28  Simon Josefsson  <jas@extundo.com>
36358
36359         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
36360         * modules/inet_pton (Depends-on): Likewise.
36361
36362 2006-07-28  Simon Josefsson  <jas@extundo.com>
36363
36364         * m4/netinet_in_h.m4: New file.
36365
36366 2006-07-28  Simon Josefsson  <jas@extundo.com>
36367
36368         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
36369         #include's.
36370
36371 2006-07-28  Simon Josefsson  <jas@extundo.com>
36372
36373         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
36374         #include's.
36375
36376 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
36377
36378         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
36379         setgid on directories only if they set these bits.
36380         * lib/modechange.h: Remove obsolete comment about masks.
36381
36382 2006-07-28  Eric Blake  <ebb9@byu.net>
36383
36384         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
36385         macro expansion.
36386
36387 2006-07-28  Bruno Haible  <bruno@clisp.org>
36388
36389         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
36390
36391 2006-07-28  Bruno Haible  <bruno@clisp.org>
36392
36393         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
36394
36395 2006-07-28  Bruno Haible  <bruno@clisp.org>
36396
36397         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
36398         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
36399         Define fallbacks.
36400         Avoids link error on FreeBSD 4.x.
36401         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
36402
36403         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
36404         encoding.
36405         * lib/mbswidth.c (iswcntrl): Likewise.
36406
36407 2006-07-27  Bruno Haible  <bruno@clisp.org>
36408
36409         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
36410         test.
36411
36412 2006-07-27  Bruno Haible  <bruno@clisp.org>
36413
36414         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
36415         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
36416         defined.
36417
36418 2006-07-26  Eric Blake  <ebb9@byu.net>
36419
36420         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
36421
36422 2006-07-26  Eric Blake  <ebb9@byu.net>
36423
36424         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
36425         like mingw that lack mkstemp.
36426         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
36427         avoid compilation warning on mingw.
36428
36429 2006-07-26  Bruno Haible  <bruno@clisp.org>
36430
36431         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
36432         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
36433         INT_FAST*_MIN, INTPTR_MIN.
36434
36435 2006-07-25  Bruno Haible  <bruno@clisp.org>
36436
36437         * modules/version-etc (Depends-on): Add stdarg.
36438
36439 2006-07-25  Bruno Haible  <bruno@clisp.org>
36440
36441         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
36442         complex commands.
36443
36444 2006-07-25  Bruno Haible  <bruno@clisp.org>
36445
36446         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
36447         defined in <stdarg.h> or config.h.
36448
36449 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
36450
36451         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
36452         (gl_STDIO_SAFER): Remove.
36453
36454 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
36455
36456         * MODULES.html.sh (File stream based Input/Output):
36457         Add fopen-safer, tmpfile-safer; remove stdio-safer.
36458         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
36459         * modules/fopen-safer, modules/tmpfile-safer: New files.
36460         * modules/stdio-safer: Remove.
36461
36462 2006-07-24  Bruno Haible  <bruno@clisp.org>
36463
36464         * modules/tmpdir: New file.
36465         * MODULES.html.sh (File system functions): Add it.
36466
36467 2006-07-24  Bruno Haible  <bruno@clisp.org>
36468
36469         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
36470         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
36471
36472 2006-07-24  Bruno Haible  <bruno@clisp.org>
36473
36474         * modules/clean-temp: New file.
36475
36476 2006-07-24  Bruno Haible  <bruno@clisp.org>
36477
36478         * m4/tmpdir.m4: New file, from GNU gettext.
36479
36480 2006-07-24  Bruno Haible  <bruno@clisp.org>
36481
36482         * lib/tmpdir.h: New file, from GNU gettext.
36483         * lib/tmpdir.c: New file, from GNU gettext.
36484
36485 2006-07-24  Bruno Haible  <bruno@clisp.org>
36486
36487         * lib/clean-temp.h: New file, from GNU gettext.
36488         * lib/clean-temp.c: New file, from GNU gettext.
36489
36490 2006-07-23  Eric Blake  <ebb9@byu.net>
36491
36492         * modules/stdio-safer (Files): Add tmpfile-safer.c.
36493         (Depends-on): Add binary-io.
36494
36495 2006-07-23  Eric Blake  <ebb9@byu.net>
36496
36497         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
36498
36499 2006-07-23  Eric Blake  <ebb9@byu.net>
36500
36501         * lib/tmpfile-safer.c: New file.
36502         * lib/stdio-safer.h (fopen_safer): Add prototype.
36503         * lib/stdio--.h (tmpfile): Make safer.
36504
36505 2006-07-23  Bruno Haible  <bruno@clisp.org>
36506
36507         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
36508         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
36509         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
36510         gl_linked_remove_at): Use it.
36511
36512 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
36513         and Simon Josefsson <jas@extundo.com>
36514
36515         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
36516
36517         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
36518
36519 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
36520
36521         * modules/close-stream: New file.
36522         * modules/closeout (Description): Make it clear that it exits
36523         with a diagnostic on error.
36524         (Depends-on): Add close-stream.  Remove fpending, stdbool.
36525         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
36526
36527 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
36528
36529         * m4/close-stream.m4: New file.
36530
36531 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
36532
36533         * lib/close-stream.c, lib/close-stream.h: New files.
36534
36535 2006-07-22  Bruno Haible  <bruno@clisp.org>
36536
36537         Merge from GNU gettext 0.15.
36538
36539         2006-05-01  Bruno Haible  <bruno@clisp.org>
36540
36541                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
36542
36543         2006-07-22  Bruno Haible  <bruno@clisp.org>
36544
36545                 * modules/javaversion: New file.
36546                 * MODULES.html.sh (Java): Add javaversion.
36547
36548         2006-03-12  Bruno Haible  <bruno@clisp.org>
36549
36550                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
36551
36552         2005-12-04  Bruno Haible  <bruno@clisp.org>
36553
36554                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
36555                 (untested).
36556
36557         2006-06-21  Bruno Haible  <bruno@clisp.org>
36558
36559                 Avoid warnings from recent versions of mcs.
36560                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
36561                 -o, -L, -r any more. Use options documented since mcs-1.0
36562                 instead. Similarly for -g.
36563
36564         2005-12-04  Bruno Haible  <bruno@clisp.org>
36565
36566                 * build-aux/csharpcomp.sh.in: Suffix for resources is
36567                 .resources, not .resource.
36568
36569         2005-07-09  Bruno Haible  <bruno@clisp.org>
36570
36571                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
36572                 add a .dll suffix.
36573                 Reported by Mark Junker <mjscod@gmx.de>.
36574
36575         2006-07-22  Bruno Haible  <bruno@clisp.org>
36576
36577                 * modules/gettext: Upgrade to gettext-0.15.
36578                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
36579                 m4/visibility.m4.
36580                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
36581
36582 2006-07-22  Bruno Haible  <bruno@clisp.org>
36583
36584         Merge from GNU gettext 0.15.
36585
36586         2006-03-25  Bruno Haible  <bruno@clisp.org>
36587
36588                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
36589
36590         2006-07-21  Bruno Haible  <bruno@clisp.org>
36591
36592                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
36593                 "1.1".
36594
36595         2006-05-09  Bruno Haible  <bruno@clisp.org>
36596
36597                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
36598                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
36599                 for the conftestver execution.
36600
36601         2006-05-01  Bruno Haible  <bruno@clisp.org>
36602
36603                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
36604                 optional target-version argument. Verify that the compiler
36605                 groks source of the specified source-version, or add -source
36606                 option as necessary. Verify that the compiler produces
36607                 bytecode in the specified target-version, or add -target and
36608                 -source options as necessary. Make the result of the test
36609                 available as variable CONF_JAVAC. Also log error output in
36610                 config.log.
36611
36612         2006-03-11  Bruno Haible  <bruno@clisp.org>
36613
36614                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
36615
36616         2006-05-09  Bruno Haible  <bruno@clisp.org>
36617
36618                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
36619                 CLASSPATH_SEPARATOR to a semicolon.
36620
36621         2006-03-12  Bruno Haible  <bruno@clisp.org>
36622
36623                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
36624                 available as variable CONF_JAVA, for subsequent autoconf
36625                 tests. Also log error output in config.log.
36626
36627         2006-07-19  Bruno Haible  <bruno@clisp.org>
36628
36629                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
36630                 that getline works on glibc2 systems. Needed to avoid trouble
36631                 in relocatable.c.
36632                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
36633
36634         2005-12-04  Bruno Haible  <bruno@clisp.org>
36635
36636                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
36637                 launcher (untested).
36638
36639         2005-12-04  Bruno Haible  <bruno@clisp.org>
36640
36641                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
36642
36643         2006-07-22  Bruno Haible  <bruno@clisp.org>
36644
36645                 * gettext.m4: Update from GNU gettext-0.15.
36646                 * nls.m4: Likewise.
36647                 * po.m4: Likewise.
36648                 * inttypes-pri.m4: Likewise.
36649                 * inttypes-h.m4: Renamed from inttypes.m4.
36650                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
36651
36652 2006-07-22  Bruno Haible  <bruno@clisp.org>
36653
36654         Merge from GNU gettext 0.15.
36655
36656         2005-07-05  Bruno Haible  <bruno@clisp.org>
36657
36658                 * printf-args.c (printf_fetchargs): Work around broken
36659                 definition of wint_t on mingw.
36660
36661         2005-02-12  Bruno Haible  <bruno@clisp.org>
36662
36663                 * xallocsa.h: Add extern "C" for C++.
36664
36665         2006-05-17  Bruno Haible  <bruno@clisp.org>
36666
36667                 Cygwin portability.
36668                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
36669
36670         2006-04-30  Bruno Haible  <bruno@clisp.org>
36671
36672                 * progreloc.c: Include <mach-o/dyld.h> if available.
36673                 (find_executable): Use _NSGetExecutablePath when possible.
36674
36675         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
36676
36677                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
36678                 function.
36679
36680         2005-12-29  Bruno Haible  <bruno@clisp.org>
36681
36682                 * progreloc.c (set_program_name_and_installdir): Fix
36683                 compilation error.
36684
36685         2005-12-04  Bruno Haible  <bruno@clisp.org>
36686
36687                 Cygwin portability.
36688                 * progreloc.c: Include <windows.h> also on Cygwin.
36689                 (find_executable): Add support for Cygwin.
36690                 (set_program_name_and_installdir): Handle also platforms with
36691                 nonempty EXEEXT.
36692
36693         2006-07-11  Bruno Haible  <bruno@clisp.org>
36694
36695                 * javacomp.c: Fix a comment.
36696                 Reported by Jim Meyering.
36697
36698         2006-04-30  Bruno Haible  <bruno@clisp.org>
36699
36700                 * javacomp.h (compile_java_class): Add source_version,
36701                 target_version arguments.
36702                 * javacomp.c: Rewritten to choose only a compiler that
36703                 respects the specified source_version and target_version.
36704
36705         2006-06-27  Bruno Haible  <bruno@clisp.org>
36706
36707                 Assume correct S_ISDIR macro.
36708                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
36709
36710         2006-07-22  Bruno Haible  <bruno@clisp.org>
36711
36712                 * javaversion.h: New file, from GNU gettext.
36713                 * javaversion.c: New file, from GNU gettext.
36714                 * javaversion.java: New file, from GNU gettext.
36715                 * javaversion.class: New file, from GNU gettext.
36716
36717         2006-05-17  Bruno Haible  <bruno@clisp.org>
36718
36719                 Cygwin portability.
36720                 * javaexec.c (execute_java_class): Test for jview program
36721                 also on Cygwin.
36722
36723         2006-04-09  Bruno Haible  <bruno@clisp.org>
36724
36725                 * fatal-signal.c: Don't include string.h.
36726                 (at_fatal_signal): Use a copying loop instead of memcpy.
36727
36728         2005-12-04  Bruno Haible  <bruno@clisp.org>
36729
36730                 * csharpexec.c: Add support for 'clix' launcher (untested).
36731                 (execute_csharp_using_sscli): New function.
36732                 (execute_csharp_program): Call it.
36733
36734         2006-06-21  Bruno Haible  <bruno@clisp.org>
36735
36736                 Avoid warnings from recent versions of mcs.
36737                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
36738                 -o, -L, -r any more. Use options documented since mcs-1.0
36739                 instead. Similarly for -g.
36740
36741         2005-07-09  Bruno Haible  <bruno@clisp.org>
36742
36743                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
36744                 add a .dll suffix.
36745                 Reported by Mark Junker <mjscod@gmx.de>.
36746
36747         2006-06-17  Bruno Haible  <bruno@clisp.org>
36748
36749                 * config.charset: Update for NetBSD 3.0.
36750
36751         2006-05-17  Bruno Haible  <bruno@clisp.org>
36752
36753                 Cygwin portability.
36754                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
36755
36756         2006-05-16  Bruno Haible  <bruno@clisp.org>
36757
36758                 * localcharset.c [CYGWIN]: Include <windows.h>.
36759                 (get_charset_aliases): For Cygwin, return the same CPxxx
36760                 aliases list as under WIN32.
36761                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
36762                 the environment variables. Fall back to GetACP().
36763
36764         2006-04-05  Bruno Haible  <bruno@clisp.org>
36765
36766                 * config.charset: Update Juan Manuel Guerrero's address.
36767
36768         2005-02-12  Bruno Haible  <bruno@clisp.org>
36769
36770                 * allocsa.h: Add extern "C" for C++.
36771
36772         2005-02-10  Bruno Haible  <bruno@clisp.org>
36773
36774                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
36775                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
36776
36777         2006-07-22  Bruno Haible  <bruno@clisp.org>
36778
36779                 * gettext.h: Update to GNU gettext-0.15.
36780
36781 2006-07-22  Bruno Haible  <bruno@clisp.org>
36782
36783         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
36784         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
36785         lib-prefix.m4, longdouble.m4, ssize_t.m4.
36786
36787 2006-07-21  Eric Blake  <ebb9@byu.net>
36788
36789         * modules/stdlib-safer: New file.
36790         * MODULES.html.sh (File stream based Input/Output): Add
36791         stdlib-safer.
36792
36793 2006-07-21  Eric Blake  <ebb9@byu.net>
36794
36795         * lib/stdlib-safer.h: New file from coreutils, required by
36796         stdlib--.h.
36797
36798 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
36799
36800         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
36801
36802 2006-07-20  Bruno Haible  <bruno@clisp.org>
36803
36804         * gnulib-tool: Recognize new option --assume-autoconf.
36805         (autoconf_minversion): New variable.
36806         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
36807
36808 2006-07-20  Bruno Haible  <bruno@clisp.org>
36809
36810         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
36811
36812 2006-07-19  Derek R. Price  <derek@ximbiot.com>
36813
36814         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
36815         Reindent and repaginate.
36816
36817 2006-07-19  Derek Price  <derek@ximbiot.com>
36818
36819         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
36820         Correct grammar.
36821
36822 2006-07-17  Bruno Haible  <bruno@clisp.org>
36823
36824         * modules/list: New file.
36825         * modules/array-list: New file.
36826         * modules/carray-list, modules/carray-list-tests: New files.
36827         * modules/linked-list, modules/linked-list-tests: New files.
36828         * modules/avltree-list, modules/avltree-list-tests: New files.
36829         * modules/rbtree-list, modules/rbtree-list-tests: New files.
36830         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
36831         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
36832         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
36833         * modules/oset: New file.
36834         * modules/array-oset: New file.
36835         * modules/avltree-oset, modules/avltree-oset-tests: New files.
36836         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
36837         * tests/test-carray_list.c: New file.
36838         * tests/test-linked_list.c: New file.
36839         * tests/test-avltree_list.c: New file.
36840         * tests/test-rbtree_list.c: New file.
36841         * tests/test-linkedhash_list.c: New file.
36842         * tests/test-avltreehash_list.c: New file.
36843         * tests/test-rbtreehash_list.c: New file.
36844         * tests/test-avltree_oset.c: New file.
36845         * tests/test-rbtree_oset.c: New file.
36846         * MODULES.html.sh (Container data structures): New section.
36847
36848 2006-07-17  Bruno Haible  <bruno@clisp.org>
36849
36850         * m4/gl_list.m4: New file.
36851
36852 2006-07-17  Bruno Haible  <bruno@clisp.org>
36853
36854         * lib/gl_list.h: New file.
36855         * lib/gl_list.c: New file.
36856         * lib/gl_array_list.h: New file.
36857         * lib/gl_array_list.c: New file.
36858         * lib/gl_carray_list.h: New file.
36859         * lib/gl_carray_list.c: New file.
36860         * lib/gl_linked_list.h: New file.
36861         * lib/gl_linked_list.c: New file.
36862         * lib/gl_anylinked_list1.h: New file.
36863         * lib/gl_anylinked_list2.h: New file.
36864         * lib/gl_avltree_list.h: New file.
36865         * lib/gl_avltree_list.c: New file.
36866         * lib/gl_anyavltree_list1.h: New file.
36867         * lib/gl_anyavltree_list2.h: New file.
36868         * lib/gl_rbtree_list.h: New file.
36869         * lib/gl_rbtree_list.c: New file.
36870         * lib/gl_anyrbtree_list1.h: New file.
36871         * lib/gl_anyrbtree_list2.h: New file.
36872         * lib/gl_anytree_list1.h: New file.
36873         * lib/gl_anytree_list2.h: New file.
36874         * lib/gl_linkedhash_list.h: New file.
36875         * lib/gl_linkedhash_list.c: New file.
36876         * lib/gl_anyhash_list1.h: New file.
36877         * lib/gl_anyhash_list2.h: New file.
36878         * lib/gl_avltreehash_list.h: New file.
36879         * lib/gl_avltreehash_list.c: New file.
36880         * lib/gl_rbtreehash_list.h: New file.
36881         * lib/gl_rbtreehash_list.c: New file.
36882         * lib/gl_anytreehash_list1.h: New file.
36883         * lib/gl_anytreehash_list2.h: New file.
36884
36885         * lib/gl_oset.h: New file.
36886         * lib/gl_oset.c: New file.
36887         * lib/gl_array_oset.h: New file.
36888         * lib/gl_array_oset.c: New file.
36889         * lib/gl_avltree_oset.h: New file.
36890         * lib/gl_avltree_oset.c: New file.
36891         * lib/gl_rbtree_oset.h: New file.
36892         * lib/gl_rbtree_oset.c: New file.
36893         * lib/gl_anytree_oset.h: New file.
36894
36895 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
36896
36897         * m4/mkancesdirs.m4: New file.
36898         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
36899         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
36900         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
36901         it.
36902
36903 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
36904
36905         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
36906         * lib/mkancesdirs.h: New files.
36907         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
36908         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
36909         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
36910         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
36911         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
36912         callers changed.  Revamp internals significantly, by not
36913         attempting to create directories that are temporarily more
36914         permissive than the final results.  Do not attempt to use
36915         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
36916         This removes some race conditions, fixes some bugs, and simplifies
36917         things.  Use new dirchownmod function to do owner and mode changes.
36918         * lib/mkdir-p.h: Likewise.
36919         * lib/modechange.c (octal_to_mode): New function.
36920         (struct mode_change): New member mentioned.
36921         (make_node_op_equals): New arg mentioned.  All callers changed.
36922         (mode_compile): Keep track of which mode bits the user has explicitly
36923         mentioned.
36924         (mode_adjust): New arg DIR, so that we implement the X op correctly.
36925         New arg PMODE_BITS, to keep track of which mode bits the user
36926         mentioned; it treats S_ISUID and S_ISGID speciall.
36927         All callers changed.
36928         * lib/modechange.h: Likewise.
36929
36930 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
36931
36932         * MODULES.html.sh: Add mkancestors.
36933         * modules/mkancesdirs: New module.
36934         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
36935         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
36936         The chdir-safer and afs files are now orphans; I'll remove them
36937         unless someone speaks up.
36938         Add lib/dirchownmod.c, lib/dirchownmod.h.
36939         (Depends-on): Remove alloca, chown, save-cwd, dirname.
36940         Add lchown, mkancesdirs.
36941         (Maintainer): Add self.
36942
36943 2006-07-15  Karl Berry  <karl@gnu.org>
36944
36945         * gnulib-tool: help message wording/arrangement.
36946
36947 2006-07-14  Simon Josefsson  <jas@extundo.com>
36948
36949         * doc/gnulib.texi (Libtool and Windows): New section.
36950
36951 2006-07-12  Simon Josefsson  <jas@extundo.com>
36952
36953         * modules/gendocs (License): Fix license, approved by Karl.
36954
36955 2006-07-12  Eric Blake  <ebb9@byu.net>
36956
36957         * MODULES.html.sh: Add gendocs.
36958
36959 2006-07-11  Eric Blake  <ebb9@byu.net>
36960
36961         * modules/fdl: New module, to install doc/fdl.texi.
36962         * MODULES.html.sh: Add new section for documentation modules.
36963         * gnulib-tool: Avoid space-tab.
36964         (--doc-base): New option, to manage files from doc.
36965
36966 2006-07-11  Eric Blake  <ebb9@byu.net>
36967
36968         * m4/absolute-header.m4: Fix comments to match recent change.
36969
36970 2006-07-11  Eric Blake  <ebb9@byu.net>
36971
36972         * gnulib-tool: List --doc-base before --tests-base.
36973
36974 2006-07-11  Derek R. Price  <derek@ximbiot.com>
36975
36976         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
36977
36978 2006-07-11  Bruno Haible  <bruno@clisp.org>
36979
36980         * README: Mention where to put documentation.
36981
36982 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36983
36984         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
36985
36986 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
36987
36988         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
36989         to stdint.m4.
36990
36991 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
36992
36993         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
36994         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
36995         "no/such/file/stdint.h" when there is no such file, so that
36996         the resulting C code can be parsed by dodgy compilers.
36997         Problems reported by Bob Proulx.
36998
36999 2006-07-10  Derek R. Price  <derek@ximbiot.com>
37000
37001         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
37002         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
37003         macros into the GNU _D_EXACT_NAMLEN.
37004         * lib/savedir.c:  Likewise.
37005         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
37006
37007 2006-07-10  Derek R. Price  <derek@ximbiot.com>
37008         and Paul Eggert  <eggert@cs.ucla.edu>
37009
37010         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
37011         * m4/savedir.m4:
37012         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
37013         macros into the GNU _D_EXACT_NAMLEN.
37014
37015 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
37016
37017         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
37018         around the absolute name, to work around a problem with the HP-UX
37019         11.23 native C compiler, reported by Bob Proulx.
37020
37021 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
37022
37023         * doc/maintain.texi, make-stds.texi: Sync from
37024         <http://savannah.gnu.org/projects/gnustandards>.
37025
37026 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
37027
37028         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
37029
37030 2006-07-09  Jim Meyering  <jim@meyering.net>
37031
37032         * m4/glob.m4: Remove a doubled word in a comment.
37033
37034 2006-07-09  Jim Meyering  <jim@meyering.net>
37035
37036         * lib/argp-pv.c: Remove a doubled word in a comment.
37037         * lib/check-version.c (check_version): Likewise.
37038         * lib/javacomp.c (compile_java_class): Likewise.
37039
37040 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
37041
37042         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
37043         for the benefit of people using Autoconf 2.60.  If you want to
37044         support older Autoconf versions you can copy m4/onceonly_2_57.m4
37045         (or m4/onceonly.m4, if pre-2.57) manually.
37046
37047 2006-07-08  Jim Meyering  <jim@meyering.net>
37048
37049         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
37050         comment.
37051         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
37052         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
37053         comment.
37054
37055 2006-07-08  Jim Meyering  <jim@meyering.net>
37056
37057         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
37058
37059 2006-07-07  Simon Josefsson  <jas@extundo.com>
37060
37061         * tests/test-crc.c: Change expected crc value, the test vector
37062         were probably computed using the old broken crc.c?
37063
37064 2006-07-06  Simon Josefsson  <jas@extundo.com>
37065
37066         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
37067         now the canonical place for the M4 file).
37068
37069         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
37070         from the sys_socket dependency now.
37071
37072         * modules/inet_pton (Files): Ditto.
37073
37074         * modules/inet_ntop (Files): Ditto.
37075
37076 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
37077
37078         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
37079         not gl_PREREQ_GETUSERSHELL.
37080
37081 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37082
37083         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
37084         with only one argument, for Autoconf 2.60.
37085         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
37086         expand to nothing, so add a shell command to avoid syntax error.
37087         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
37088
37089 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
37090
37091         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
37092
37093 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
37094
37095         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
37096         no longer needed.  Check for isblank decl.
37097         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
37098         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
37099         of existence.
37100
37101 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
37102
37103         * lib/getloadavg.c: Use __VMS, not VMS.
37104         * lib/getopt.c: Likewise.
37105         * lib/getpagesize.h: Likewise.
37106         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
37107         and probably does not work.
37108
37109 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
37110
37111         * lib/.cppi-disable: Add wcwidth.
37112         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
37113         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
37114         (ISGRAPH): Remove.  All uses changed to isgraph.
37115         (FOLD) [!defined _LIBC]: Remove special case.
37116         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
37117         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
37118         HAVE_ISBLANK.
37119         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
37120         case.
37121
37122 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
37123
37124         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
37125         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
37126         brackets.  Other minor changes to suppress some compiler
37127         warnings.
37128
37129 2006-07-06  Derek R. Price  <derek@ximbiot.com>
37130         and Paul Eggert  <eggert@cs.ucla.edu>
37131
37132         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
37133         of invoking obsolescent AC_HEADER_DIRENT macro.
37134         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
37135         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
37136         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
37137         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
37138         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
37139         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
37140         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
37141         * m4/readdir.m4: Remove; no longer needed.
37142
37143 2006-07-06  Derek R. Price  <derek@ximbiot.com>
37144         and Paul Eggert  <eggert@cs.ucla.edu>
37145
37146         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
37147         Don't worry about this obsolete case any more.
37148         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
37149         directories.
37150         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
37151         worry about this obsolete case any more.
37152         * lib/fts.c: Likewise.
37153         * lib/getcwd.c: Likewise.
37154         * lib/glob.h: Likewise.
37155         * lib/savedir.c: Likewise.
37156
37157 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
37158
37159         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
37160         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
37161         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
37162         needed.
37163         All uses removed.
37164         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
37165         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
37166         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
37167         needed.
37168         * m4/getdate.m4 (gl_GETDATE): Likewise.
37169         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
37170         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
37171         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
37172         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
37173         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
37174         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
37175         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
37176         needed.
37177
37178 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
37179
37180         * lib/memcasecmp.c: Include <limits.h>.
37181         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
37182         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
37183         Don't assume isdigit succeeds only on '0' through '9'.
37184
37185 2006-07-05  Eric Blake  <ebb9@byu.net>
37186
37187         * modules/getaddrinfo (Depends-on): Add snprintf.
37188
37189 2006-07-05  Eric Blake  <ebb9@byu.net>
37190
37191         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
37192         to avoid 'header present but could not be compiled' on cygwin.
37193
37194 2006-07-05  Eric Blake  <ebb9@byu.net>
37195
37196         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
37197         missing from netdb.h.
37198         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
37199
37200 2006-07-05  Derek R. Price  <derek@ximbiot.com>
37201
37202         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
37203         no longer needed.
37204         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
37205         * m4/getdate.m4 (gl_GETDATE): Likewise.
37206         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
37207         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
37208         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
37209         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
37210         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
37211
37212 2006-07-05  Derek R. Price  <derek@ximbiot.com>
37213
37214         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
37215         All uses of is_space replaced by isspace.
37216         * lib/exit.h: Don't talk about STDC_HEADERS.
37217         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
37218         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
37219         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
37220         replaced by isprint etc.
37221         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
37222         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
37223         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
37224         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
37225         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
37226         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
37227
37228 2006-07-05  Bruno Haible  <bruno@clisp.org>
37229
37230         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
37231         the function exists, before testing against AIX.
37232         Reported by Martin Lambers <marlam@marlam.de>.
37233
37234 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
37235
37236         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
37237         From Mark D. Baushke.
37238
37239 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
37240
37241         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
37242         to the absolute name, not just one, to bypass Sun C 5.8's
37243         "warning: #include of /usr/include/... may be non-portable".
37244
37245 2006-07-04  Eric Blake  <ebb9@byu.net>
37246
37247         * modules/dirname-tests: New test module.
37248         * tests/test-dirname.c: New file, replacing dirname.c
37249         TEST_DIRNAME section that was recently deleted.
37250
37251 2006-07-04  Bruno Haible  <bruno@clisp.org>
37252
37253         Assume ANSI C header files and <ctype.h> functions.
37254         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
37255         (mbsnwidth): Use isprint, iscntrl instead.
37256
37257 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
37258
37259         Merge from coreutils.
37260         * MODULES.html.sh: Add xstrtold.
37261         * modules/xstrtold: New file.
37262         * modules/cycle-check (Files): Add lib/same-inode.h.
37263         * modules/dirname (Files): Add m4/double-slash-root.m4.
37264         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
37265         * modules/mkdir-p (Files): Add lib/same-inode.h.
37266         * modules/same (Files): Add lib/same-inode.h.
37267
37268 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
37269
37270         * m4/absolute-header.m4: Renamed from full-header-path.m4.
37271         This is to keep the terminology clean; POSIX talks about
37272         "absolute pathnames", not "full pathnames", but the GNU
37273         Coding Standards say to use "path" for something else;
37274         so use "absolute" to keep both sides happy.
37275         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
37276         Set gl_absolute_header, not gl_full_header_path.
37277         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
37278         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
37279         All uses changed.
37280
37281         Merge from coreutils.
37282
37283         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
37284
37285         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
37286         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
37287         want to require the building of c-strtod.o.
37288         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
37289         needs -lm directly.
37290         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
37291
37292         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
37293
37294         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
37295         --as-needed option if available.  Problem reported by Albert Chin in
37296         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
37297         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
37298         cc merely issues a bunch of annoying warnings for --as-needed
37299         (this problem was reported by Bob Proulx).  Also, try linking with
37300         -lm to detect a bug in binutils 2.16 (this problem was reported
37301         by Ralf Wildenhues).
37302
37303         2006-06-18  Jim Meyering  <jim@meyering.net>
37304
37305         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
37306         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
37307         macro.
37308         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
37309         also check for glibc-2.4's abort-inducing bug.
37310
37311         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
37312         Low-probability clean-up should be to use rmdir to get rid of
37313         the just-created directory, not unlink.
37314
37315         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
37316         configure fail, and request a bug report to inform us about it.
37317         Add a comment that, barring reports to the contrary, in 2007 we'll
37318         assume ftruncate is universally available.
37319
37320         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
37321
37322         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
37323
37324         2006-03-12  Jim Meyering  <jim@meyering.net>
37325
37326         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
37327         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
37328         * m4/same.m4 (gl_SAME): Likewise.
37329         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
37330
37331         2006-03-11  Eric Blake  <ebb9@byu.net>
37332
37333         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
37334         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
37335         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
37336         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
37337
37338 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
37339
37340         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
37341         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
37342         reported by Mark D. Baushke, one in
37343         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
37344
37345         Merge from coreutils.
37346
37347         * lib/.cppi-disable: Add stdint_.h.
37348         * lib/.cvsignore: Add stdint.h.
37349
37350         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
37351
37352         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
37353         both double and long double versions.
37354         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
37355         * lib/xstrtold.c: New file.
37356         * lib/xstrtod.h (xstrtold): New decl.
37357
37358         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
37359
37360         * lib/filemode.c (setst): Remove.
37361         (strmode): Rewrite to avoid setst.  This makes the code shorter,
37362         (arguably) clearer, and the generated code is a bit smaller on my
37363         Debian GNU/Linux stable x86 host.
37364
37365         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
37366
37367         * lib/filemode.c: Include "filemode.h" first, to test the interface.
37368         Assume that filemode.h includes sys/types.h and sys/stat.h.
37369         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
37370         (ftypelet): Reorder to put common cases first, for efficiency.
37371         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
37372         to do 'M'.
37373         (strmode): Renamed from mode_string, and now stores 12 bytes instead
37374         of 10, for compatibility with FreeBSD.  All callers changed.
37375         (filemodestring): Now stores 12 bytes instead of 10, and sets file
37376         types that can't be deduced solely from st_mode.  First arg is now a
37377         const pointer.
37378         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
37379         (strmode): Renamed from mode_string.
37380         (filemodestring): New decl.
37381         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
37382         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
37383         needed.
37384         (S_ISPORT, S_ISWHT): New macros, if not already defined.
37385
37386         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
37387
37388         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
37389         fsusage.h now does that.  Include fsusage.h first, to test interface.
37390         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
37391         at most one method (the old code could have generated decls that
37392         didn't conform to C89, not that this was ever exercised).
37393         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
37394
37395         2006-03-19  Jim Meyering  <jim@meyering.net>
37396
37397         Work even in a chroot where d_ino values for entries in "/"
37398         don't match the stat.st_ino values for the same names.
37399         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
37400         number, iterate through all entries again, using lstat instead.
37401         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
37402         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
37403
37404         * lib/getcwd.c (__getcwd): Clarify a comment.
37405         Use memcpy in place of a call to strcpy.
37406
37407         2006-03-12  Jim Meyering  <jim@meyering.net>
37408
37409         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
37410         matches that of the current directory (which we're about to chdir ".."
37411         out of), then save the dev-ino of the parent, instead.
37412
37413         * lib/same-inode.h (SAME_INODE): New file/macro.
37414         * lib/chdir-safer.c (SAME_INODE): Remove definition.
37415         Include "same-inode.h", instead.
37416         * lib/same.c: Likewise.
37417         * lib/cycle-check.h: Include "same-inode.h".
37418         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
37419         * lib/cycle-check.c (SAME_INODE): Remove definition.
37420         * lib/root-dev-ino.h: Include "same-inode.h".
37421
37422         2006-03-11  Eric Blake  <ebb9@byu.net>
37423
37424         * lib/same.c (same_name): s/base_name/last_component/
37425         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
37426         * lib/filenamecat.c (file_name_concat): Likewise.
37427
37428         2006-03-11  Eric Blake  <ebb9@byu.net>,
37429                     Paul Eggert  <eggert@cs.ucla.edu>
37430
37431         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
37432         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
37433         drive prefix.
37434         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
37435         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
37436         (last_component): New method.
37437         * lib/dirname.c (dir_len): Determine when drive letters need a
37438         subsequent slash.  Preserve // when it is special.
37439         (dir_name): Don't append dot when drive letter is absolute.
37440         [TEST_DIRNAME]: Move into a full-blown gnulib test.
37441         * lib/basename.c (base_name): New semantics - malloc the result.
37442         Preserve // when it is special.  Preserve relative files that look
37443         like drive letters.
37444         (base_len): Preserve // when it is special.
37445         (last_component): New method, similar to old base_name semantics.
37446         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
37447         base_name.  Strip redundant slashes from ///.
37448
37449 2006-07-03  Jim Meyering  <jim@meyering.net>
37450
37451         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
37452         macro is used before the first cycle_check call.
37453
37454 2006-07-03  Eric Blake  <ebb9@byu.net>
37455
37456         * modules/dirname (Depends-on): Add xstrndup.
37457
37458 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
37459
37460         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
37461         test cases, so that config.log is a bit easier to follow.
37462
37463 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
37464
37465         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
37466         both are 64 bits, since this seems to be the tradition, and this
37467         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
37468         we ever run into a host that prefers long long to long in this
37469         case, we'll need another configure-time test.  Problem reported by
37470         Jim Meyering.
37471
37472 2006-07-02  Eric Blake  <ebb9@byu.net>
37473
37474         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
37475
37476 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
37477
37478         * modules/inttypes (Depends-on): No longer depends on stdint.
37479         * modules/stdint (Description): Say more about assumptions.
37480         Say that the fast types might differ.  Say macros are used.
37481         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
37482         (Makefile.am): Revise list of substituted symbols to match
37483         new stdint.m4.
37484         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
37485         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
37486         * tests/test-stdint.c (verify_same_types)
37487         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
37488         the code conforms to C99/C89.
37489         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
37490         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
37491
37492 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
37493
37494         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
37495         but fix a bug, by requiring at least 64 bits.
37496         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
37497         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
37498         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
37499         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG) Likewise.
37500
37501         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
37502         changes.  Make 2.59 a prerequisite.  Check and substitute for
37503         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
37504         inttypes.h.  Do not use special include files; just use the
37505         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
37506         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
37507         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
37508         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
37509         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
37510         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
37511         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
37512         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
37513         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
37514         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
37515         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
37516         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
37517         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
37518         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
37519         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
37520         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
37521         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
37522         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
37523         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
37524         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
37525         WINT_MAX.  Check for C99 conformance more strictly, by detecting
37526         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
37527         not check for things that C99 does not require, e.g., int8_t.  If
37528         a test isn't needed unless <stdint.h> isn't working, and is
37529         unlikely to be needed for any other reason, then don't do it
37530         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
37531         size_t, since we assume C89 freestanding at least.  Do not check
37532         for sig_atomic_t, wchar_t, or wint_t, since the code now does
37533         the right thing even if the types are not defined.  Instead use:
37534         (gl_STDINT_TYPE_PROPERTIES): New macro.
37535         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
37536         testing whether <sys/types.h> clashes, as Autoconf does this for
37537         us now.  All uses removed.
37538         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
37539         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
37540         (gl_CHECK_TYPE_SAME):
37541         Remove; no longer needed.
37542         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
37543         exists, since we'll return 0 anyway in that case.
37544         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
37545
37546 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
37547
37548         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
37549         possible collision with system files.
37550         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
37551         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
37552         WCHAR_MIN and WCHAR_MAX in this case.
37553         (<stddef.h>): Do not include; no longer needed.
37554         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
37555         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
37556         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
37557         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
37558         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
37559         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
37560         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
37561         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
37562         !defined(__c99))]: Include in this case too, since it's harmless
37563         now.
37564         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
37565         dangerous to do so.
37566         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
37567         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
37568         (_STDINT_MIN, _STDINT_MAX): New macros.
37569         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
37570         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
37571         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
37572         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
37573         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
37574         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
37575         macros, not typedefs; this simplifies things quite a bit.
37576         Use long int for all types narrower than int64_t.
37577         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
37578         Define in terms of long long int or int64_t or long int,
37579         not int64_t or int32_t.  This saves some compile-time testing.
37580         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
37581         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
37582         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
37583         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
37584         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
37585         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
37586         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
37587         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
37588         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
37589         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
37590         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
37591         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
37592         undef any previous version and define our own version, for
37593         simplicity and consistency with the new macros for types.
37594         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
37595         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
37596         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
37597         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
37598         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
37599         @WINT_T_SUFFIX@ to keep things simple here.
37600         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
37601         Simplify by assuming typical 8/16/32/64 host, since we're
37602         already doing that elsewhere anyway.
37603         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
37604         and assume long long int is 64 bits if available.  This
37605         speeds up 'configure'.
37606
37607 2006-07-01  Eric Blake  <ebb9@byu.net>
37608
37609         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
37610         Reported by Andreas Buening.
37611
37612 2006-07-01  Eric Blake  <ebb9@byu.net>
37613
37614         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
37615
37616 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
37617
37618         * lib/getaddrinfo.c: fixed typo
37619
37620 2006-06-29  Jim Meyering  <jim@meyering.net>
37621
37622         * modules/strftime (Maintainer): Add my name, since with the
37623         FPRINTFTIME changes strftime.c has forked from glibc.
37624
37625 2006-06-29  Eric Blake  <ebb9@byu.net>
37626
37627         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
37628
37629 2006-06-29  Eric Blake  <ebb9@byu.net>
37630
37631         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
37632
37633 2006-06-29  Eric Blake  <ebb9@byu.net>
37634
37635         * lib/stat_.h: New file.
37636
37637 2006-06-29  Eric Blake  <ebb9@byu.net>
37638
37639         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
37640         unused static function.
37641
37642 2006-06-29  Eric Blake  <ebb9@byu.net>
37643
37644         * doc/functions.texi (Function Portability): Document missing lstat
37645         on mingw.
37646
37647 2006-06-29  Eric Blake  <ebb9@byu.net>
37648
37649         * MODULES.html.sh: Add sys_stat.
37650         * modules/sys_stat: New module.
37651         * modules/mkstemp (Depends-on): Add sys_stat.
37652
37653 2006-06-29  Derek R. Price  <derek@ximbiot.com>
37654
37655         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
37656
37657 2006-06-29  Derek R. Price  <derek@ximbiot.com>
37658
37659         * m4/c-bs-a.m4: Removed.
37660
37661 2006-06-29  Derek R. Price  <derek@ximbiot.com>
37662
37663         * lib/strftime.c: Assume strftime() exists.
37664
37665 2006-06-29  Derek Price  <derek@ximbiot.com>
37666
37667         * modules/c-bs-a: Removed - \a is C89.
37668         * MODULES.html.sh: Remove c-bs-a.
37669
37670 2006-06-29  Bruno Haible  <bruno@clisp.org>
37671
37672         * modules/wcwidth (License): Change to LGPL.
37673
37674 2006-06-28  Simon Josefsson  <jas@extundo.com>
37675
37676         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
37677         on _WIN32.
37678
37679         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
37680         getnameinfo.
37681
37682 2006-06-28  Simon Josefsson  <jas@extundo.com>
37683
37684         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
37685
37686 2006-06-28  Simon Josefsson  <jas@extundo.com>
37687
37688         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
37689         functions there.  It will succeed on Windows XP, but on Windows
37690         2000 and (presumably) earlier, it will fail, and use the internal
37691         re-implementation.
37692         (use_win32_p): New function.
37693         (getaddrinfo): Use strtoul on servname, to support numeric ports.
37694         Support AI_NUMERICSERV to disable getservbyname.
37695         (getnameinfo): New function, only supports
37696         NI_NUMERICHOST|NI_NUMERICSERV for now.
37697
37698         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
37699         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
37700         getnameinfo.
37701
37702 2006-06-28  Eric Blake  <ebb9@byu.net>
37703
37704         * modules/wcwidth: New file.
37705         * modules/mbchar (Depends-on): Add wcwidth.
37706         * modules/mbswidth (Depends-on): Add wcwidth.
37707         * MODULES.html.sh: Add wcwidth.
37708
37709 2006-06-28  Eric Blake  <ebb9@byu.net>
37710
37711         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
37712         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
37713
37714 2006-06-28  Eric Blake  <ebb9@byu.net>
37715
37716         * lib/xvasprintf.h: Fix comments.
37717
37718 2006-06-28  Eric Blake  <ebb9@byu.net>
37719
37720         * lib/mbchar.h (wcwidth): Include wcwidth.h.
37721         * lib/mbswidth.c (wcwidth): Move from here...
37722         * lib/wcwidth.h: ...to this new file.
37723
37724 2006-06-28  Derek R. Price  <derek@ximbiot.com>
37725
37726         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
37727
37728         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
37729         it's obsolete.
37730         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
37731
37732 2006-06-28  Derek R. Price  <derek@ximbiot.com>
37733
37734         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
37735         Autoconf 2.60 says this stuff was obsolete.
37736
37737 2006-06-28  Bruno Haible  <bruno@clisp.org>
37738
37739         * modules/wcwidth (Files): Add m4/wchar_t.m4.
37740
37741 2006-06-28  Bruno Haible  <bruno@clisp.org>
37742
37743         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
37744         gt_TYPE_WCHAR_T.
37745
37746 2006-06-28  Bruno Haible  <bruno@clisp.org>
37747
37748         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
37749         declaration for wcwidth.
37750         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
37751
37752 2006-06-28  Bruno Haible  <bruno@clisp.org>
37753
37754         * lib/mkdtemp.c [MINGW]: Include <io.h>.
37755         (mkdir): Define using _mkdir.
37756
37757 2006-06-28  Bruno Haible  <bruno@clisp.org>
37758
37759         * lib/getaddrinfo.h: Fix POSIX URL.
37760         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
37761         _WIN32.
37762         (use_win32_p): Make static.
37763         (getaddrinfo): Reject service name if it is empty or does not consist
37764         solely of decimal digits, or if its value is > 65535.
37765         (getnameinfo): Remove useless casts.
37766
37767 2006-06-27  Simon Josefsson  <jas@extundo.com>
37768
37769         * modules/sys_select: New file, suggested by Bruno Haible, Paul
37770         Eggert and Martin Lambers.
37771
37772 2006-06-27  Simon Josefsson  <jas@extundo.com>
37773
37774         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
37775         Eggert and Martin Lambers.
37776
37777 2006-06-27  Bruno Haible  <bruno@clisp.org>
37778
37779         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
37780         result to 0, not to empty.
37781         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
37782
37783 2006-06-27  Bruno Haible  <bruno@clisp.org>
37784
37785         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
37786
37787 2006-06-26  Simon Josefsson  <jas@extundo.com>
37788
37789         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
37790         present.
37791
37792 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
37793
37794         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
37795         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
37796         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
37797
37798 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
37799
37800         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
37801
37802 2006-06-26  Bruno Haible  <bruno@clisp.org>
37803
37804         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
37805
37806 2006-06-26  Bruno Haible  <bruno@clisp.org>
37807
37808         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
37809
37810 2006-06-26  Bruno Haible  <bruno@clisp.org>
37811
37812         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
37813         SGI C compiler in pre-C99 mode.
37814         Suggested by Mark D. Baushke and Larry Jones.
37815
37816 2006-06-26  Bruno Haible  <bruno@clisp.org>
37817
37818         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
37819         WCHAR_MAX.
37820         Reported by Mark D. Baushke and Larry Jones.
37821
37822 2006-06-26  Bruno Haible  <bruno@clisp.org>
37823
37824         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
37825         in pre-C99 mode.
37826         Suggested by Mark D. Baushke and Larry Jones.
37827
37828 2006-06-23  Simon Josefsson  <jas@extundo.com>
37829             Bruno Haible  <bruno@clisp.org>
37830
37831         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
37832         Emit mostlyclean-local rule.
37833         (func_emit_tests_Makefile_am): Likewise.
37834         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
37835
37836 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
37837
37838         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
37839
37840 2006-06-23  Bruno Haible  <bruno@clisp.org>
37841
37842         * tests/test-stdint.c: Update to match ISO C 99 Technical
37843         Corrigendum 1.
37844
37845 2006-06-23  Bruno Haible  <bruno@clisp.org>
37846
37847         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
37848
37849 2006-06-23  Bruno Haible  <bruno@clisp.org>
37850
37851         * lib/stdint_.h: Treat IRIX like OpenBSD.
37852
37853 2006-06-23  Bruno Haible  <bruno@clisp.org>
37854
37855         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
37856         ISO C 99 Technical Corrigendum 1.
37857
37858 2006-06-22  Simon Josefsson  <jas@extundo.com>
37859
37860         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
37861         MinGW.
37862
37863 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
37864
37865         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
37866         needed.  Some compiler complained about some of them.  Problem reported
37867         by Larry Jones in
37868         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
37869
37870 2006-06-21  Simon Josefsson  <jas@extundo.com>
37871
37872         * tests/test-getaddrinfo.c: New file.
37873
37874         * modules/getaddrinfo-tests: New file.
37875
37876         * MODULES.html.sh: Add inet_pton.
37877
37878         * modules/inet_pton: New file.
37879
37880 2006-06-21  Simon Josefsson  <jas@extundo.com>
37881
37882         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
37883         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
37884         of using the (limited) gnulib implementation on Windows XP.
37885
37886         * m4/inet_pton.m4: New file.
37887
37888 2006-06-21  Simon Josefsson  <jas@extundo.com>
37889
37890         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
37891         variable.
37892
37893         * lib/socket_.h: Don't define WINVER.
37894
37895         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
37896         slightly modified to work in gnulib.
37897
37898 2006-06-21  Simon Josefsson  <jas@extundo.com>
37899
37900         * doc/gnulib.texi (Windows sockets): Add.
37901
37902 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
37903
37904         * lib/read-file.c (fread_file): Start with buffer allocation of
37905         0 bytes rather than 1 byte; this simplifies the code.
37906         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
37907         code to free buffer and save/restore errno.
37908         (internal_read_file): Remove unused local.
37909
37910 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
37911
37912         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
37913         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
37914         Problem reported by Denis Excoffier in
37915         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
37916
37917 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
37918
37919         * modules/sys_socket, modules/socklen: Include sys/types since
37920         FreeBSD 4.x's sys/socket.h needs it.
37921
37922 2006-06-19  Simon Josefsson  <jas@extundo.com>
37923
37924         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
37925
37926 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
37927
37928         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
37929
37930 2006-06-19  Bruno Haible  <bruno@clisp.org>
37931
37932         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
37933         and FULL_PATH_INTTYPES_H in angle brackets.
37934         Reported by Mark D. Baushke <mdb@gnu.org>.
37935
37936 2006-06-17  Eric Blake  <ebb9@byu.net>
37937
37938         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
37939         errno.
37940
37941 2006-06-17  Bruno Haible  <bruno@clisp.org>
37942
37943         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
37944         <sys/inttypes.h>.
37945
37946 2006-06-17  Bruno Haible  <bruno@clisp.org>
37947
37948         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
37949         whether errno is declared. Assume <errno.h> declares errno.
37950
37951 2006-06-17  Bruno Haible  <bruno@clisp.org>
37952
37953         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
37954
37955 2006-06-17  Bruno Haible  <bruno@clisp.org>
37956
37957         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
37958         problem on Solaris 2.5.1.
37959
37960 2006-06-16  Eric Blake  <ebb9@byu.net>
37961
37962         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
37963         * lib/unicodeio.c [!defined errno]: Likewise.
37964         * lib/strtol.c [!defined errno]: Likewise.
37965         * lib/strtod.c [!defined errno]: Likewise.
37966
37967 2006-06-15  Eric Blake  <ebb9@byu.net>
37968
37969         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
37970
37971 2006-06-15  Eric Blake  <ebb9@byu.net>
37972
37973         * config/srclist.txt (ssize_t.m4): Lose sync.
37974
37975 2006-06-15  Bruno Haible  <bruno@clisp.org>
37976
37977         * modules/stdint (Files): Include m4/full-header-path.m4,
37978         m4/size_max.m4, m4/wchar_t.m4.
37979         (Makefile.am): Many more substitutions.
37980         * modules/stdint-tests: New file.
37981         * tests/test-stdint.c: New file.
37982
37983 2006-06-15  Bruno Haible  <bruno@clisp.org>
37984
37985         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
37986         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
37987         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
37988         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
37989         gl_CHECK_TYPE_SAME): New macros.
37990
37991 2006-06-15  Bruno Haible  <bruno@clisp.org>
37992
37993         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
37994
37995 2006-06-15  Bruno Haible  <bruno@clisp.org>
37996
37997         * lib/stdint_.h: Rewritten to be fully auto-configured.
37998         Fixes bug on HP-UX/IA64.
37999
38000 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
38001
38002         * lib/getdate.y (__attribute__): Don't define if already defined.
38003         Problem reported by Larry Jones.
38004         * lib/utimens.c (__attribute__): Likewise.
38005
38006 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
38007
38008         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
38009         reported by Andreas Schwab.
38010
38011 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38012             Bruno Haible  <bruno@clisp.org>
38013
38014         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
38015         check for the declaration of strnlen and a run test that exposes the
38016         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
38017         rpl_strndup.
38018
38019 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38020             Bruno Haible  <bruno@clisp.org>
38021
38022         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
38023
38024 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38025
38026         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
38027         compile test, for Tru64 4.0D.
38028
38029 2006-05-28  Karl Berry  <karl@gnu.org>
38030
38031         * config/srclist.txt (printf-args.c): lose sync.
38032
38033 2006-05-26  Martin Lambers  <marlam@marlam.de>
38034
38035         * lib/getpass.c: Updates the test for the native W32 API, and adds
38036         missing includes, thus fixing compilation warnings.
38037
38038 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
38039
38040         * lib/exclude.c (exclude_fnmatch): New function.
38041         (excluded_file_name): Call exclude_fnmatch.
38042         * lib/exclude.h (excluded_file_name): New prototype
38043
38044 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
38045
38046         * lib/tempname.c (small_open, large_open): New macros.
38047         (__open, __open64) [!_LIBC]: Remove.
38048         (__gen_tempname): Use small_open and large_open instead of __open
38049         and __open64.  This fixes a portability bug on HP-UX 11.11i
38050         reported by Simon Wing-Tang in
38051         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
38052
38053 2006-05-24  Bruno Haible  <bruno@clisp.org>
38054
38055         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
38056         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
38057         Reported by Thorsten Maerz <torte@netztorte.de> via
38058         Aaron Stone <aaron@serendipity.cx>.
38059
38060 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
38061
38062         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
38063         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
38064         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
38065         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
38066         not really conditional on the cache.
38067         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
38068
38069 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
38070
38071         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
38072         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
38073         (my_usleep): Don't mishandle maximum value.
38074
38075 2006-05-19  Jim Meyering  <jim@meyering.net>
38076
38077         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
38078
38079 2006-05-17  Bruno Haible  <bruno@clisp.org>
38080
38081         Cygwin portability.
38082         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
38083
38084 2006-05-17  Bruno Haible  <bruno@clisp.org>
38085
38086         * lib/stdint_.h: Fix recognition of Cygwin.
38087
38088 2006-05-15  Bruno Haible  <bruno@clisp.org>
38089
38090         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
38091         on libtool patch by Ralf Wildenhues.
38092
38093 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
38094
38095         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
38096         test for C99 conformance; (bool) 0.5 is an integer constant
38097         expression, but (bool) -0.5 is not.  Problem reported by Fedor
38098         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
38099
38100 2006-05-11  Simon Josefsson  <jas@extundo.com>
38101
38102         * m4/xvasprintf.m4: Fix obvious typo.
38103
38104 2006-05-11  Jim Meyering  <jim@meyering.net>
38105
38106         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
38107         James Lemley.
38108
38109 2006-05-10  Simon Josefsson  <jas@extundo.com>
38110
38111         * lib/md4.c: Typo fix, update copyright years.
38112         (K1, K2): Don't use L because it turn computations into 64-bit on
38113         64-bit platforms.
38114
38115 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
38116
38117         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
38118         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
38119         unwanted sign propagation, e.g., on hosts with 64-bit int.
38120         There still are some problems with reeelly weird theoretical hosts
38121         (e.g., 33-bit int) but it's not worth worrying about now.
38122         * lib/sha1.c (rol): Likewise.
38123         (K1, K2, K3, K4): Remove unnecessary L suffix.
38124
38125 2006-05-10  Bruno Haible  <bruno@clisp.org>
38126
38127         * lib/des.c: Cast to avoid warnings.
38128
38129 2006-05-09  Bruno Haible  <bruno@clisp.org>
38130
38131         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
38132         (Depends-on): Depend also on xsize, stdarg.
38133         (configure.ac): Add gl_XVASPRINTF.
38134
38135 2006-05-09  Bruno Haible  <bruno@clisp.org>
38136
38137         * m4/xvasprintf.m4: New file.
38138
38139 2006-05-09  Bruno Haible  <bruno@clisp.org>
38140
38141         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
38142         (EOVERFLOW): Define fallback value.
38143         (xstrcat): New function.
38144         (xvasprintf): Recognize the special case of a string concatenation.
38145
38146 2006-05-08  Eric Blake  <ebb9@byu.net>
38147
38148         * gnulib-tool (func_version): Base copyright year on CVS date.
38149         (func_emit_copyright_notice): New function.
38150         (func_emit_lib_Makefile_am): Use it.
38151         (func_emit_tests_Makefile_am): Likewise.
38152         (func_import): Likewise.
38153
38154 2006-05-08  Bruno Haible  <bruno@clisp.org>
38155
38156         * modules/stdarg: New file.
38157         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
38158
38159 2006-05-08  Bruno Haible  <bruno@clisp.org>
38160
38161         * m4/stdarg.m4: New file, from GNU gettext.
38162
38163 2006-05-08  Bruno Haible  <bruno@clisp.org>
38164
38165         * config/srclist.txt (build-aux/config.rpath): different from latest
38166         release.
38167
38168 2006-05-08  Bruno Haible  <bruno@clisp.org>
38169
38170         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
38171
38172 2006-05-05  Jim Meyering  <jim@meyering.net>
38173
38174         * m4/warning.m4: New file, derived from bison's file by the same name.
38175
38176 2006-05-03  Bruno Haible  <bruno@clisp.org>
38177
38178         * lib/stdint_.h: Shorter URL.
38179         * lib/inttypes.h: Likewise.
38180
38181 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
38182
38183         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
38184
38185 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
38186
38187         * lib/verify.h: Document the internals better.  Most of this change
38188         was written by Bruno Haible.
38189
38190 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
38191
38192         * doc/verify.texi: New file, partly based on a proposal by
38193         Bruno Haible.
38194
38195 2006-05-02  Bruno Haible  <bruno@clisp.org>
38196
38197         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
38198         test from here...
38199         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
38200
38201 2006-04-29  Bruno Haible  <bruno@clisp.org>
38202
38203         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
38204         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
38205
38206 2006-04-29  Bruno Haible  <bruno@clisp.org>
38207
38208         * gnulib-tool: Make --update option actually work.
38209
38210 2006-04-29  Bruno Haible  <bruno@clisp.org>
38211
38212         * doc/gcd.texi: New file.
38213         * doc/gnulib.texi: Include it.
38214
38215 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
38216
38217         * lib/getdate.y (get_date): When adding relative date, start with the
38218         initial time, not with the result of the first mktime call.
38219
38220 2006-04-25  Bruno Haible  <bruno@clisp.org>
38221
38222         * gnulib-tool (func_import): Output the include directives in three
38223         blocks, sorted separately.
38224         Reported by Ben Pfaff <blp@cs.stanford.edu>.
38225
38226 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
38227
38228         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
38229         to define main with arguments, for C++.  Reported by Eric Blake.
38230         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
38231         Prefer 'int main ()' to 'int main (void)', for C++.
38232         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
38233         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
38234         for 'main', for C99 and C++.
38235
38236 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
38237
38238         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
38239         Don't assume that exit status -1 is valid.
38240         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
38241         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
38242         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
38243         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
38244         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
38245         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
38246         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
38247         functions can be used without declaring them, or that you can
38248         exit with status -1.
38249         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
38250
38251 2006-04-24  Karl Berry  <karl@gnu.org>
38252
38253         * config/srclist.txt (longdouble.m4): sync lost.
38254
38255 2006-04-24  Eric Blake  <ebb9@byu.net>
38256
38257         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
38258
38259 2006-04-24  Bruno Haible  <bruno@clisp.org>
38260
38261         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
38262         poll() implementation in AIX.
38263         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38264
38265 2006-04-24  Bruno Haible  <bruno@clisp.org>
38266
38267         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
38268         assigned exactly once.
38269
38270 2006-04-23  Claudio Fontana  <claudio@gnu.org>
38271             Bruno Haible  <bruno@clisp.org>
38272
38273         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
38274         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
38275         for AM_CPPFLAGS.
38276
38277 2006-04-23  Bruno Haible  <bruno@clisp.org>
38278
38279         * modules/copy-file: Depend on unistd.
38280         * modules/execute: Likewise.
38281         * modules/fatal-signal: Likewise.
38282         * modules/findprog: Likewise.
38283         * modules/mkdtemp : Likewise.
38284         * modules/pipe: Likewise.
38285         * modules/wait-process: Likewise.
38286
38287 2006-04-23  Bruno Haible  <bruno@clisp.org>
38288
38289         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
38290         condition was already detected.
38291         Reported by Ben Pfaff <blp@cs.stanford.edu>.
38292
38293 2006-04-23  Bruno Haible  <bruno@clisp.org>
38294
38295         * lib/copy-file.c: Include <unistd.h> unconditionally.
38296         * lib/execute.c: Likewise.
38297         * lib/fatal-signal.c: Likewise.
38298         * lib/findprog.c: Likewise.
38299         * lib/mkdtemp.c: Likewise.
38300         * lib/pipe.h: Likewise.
38301         * lib/pipe.c: Likewise.
38302         * lib/wait-process.h: Likewise.
38303
38304 2006-04-23  Bruno Haible  <bruno@clisp.org>
38305
38306         * gnulib-tool (func_usage): Fix --import description. Document
38307         --update.
38308         (func_import): Create temporary file in a temporary directory, if
38309         --dry-run is specified. Silence errors from 'grep' when there are no
38310         m4 files in $m4dir.
38311         (func_create_testdir): Silence errors from 'grep' when there are no
38312         m4 files in $m4dir.
38313         Reported by Karl Berry <karl@freefriends.org>.
38314
38315 2006-04-20  Bruno Haible  <bruno@clisp.org>
38316
38317         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
38318         one argument, so that the code will be portable to Autoconf 2.60.
38319         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
38320         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
38321         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
38322
38323 2006-04-19  Derek Price  <derek@ximbiot.com>
38324             Eric Blake  <ebb9@byu.net>
38325
38326         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
38327         rather than "/full/path.h".  Update comment to match.  Shorten &
38328         generalize m4_translit call via AS_TR_CPP.
38329
38330 2006-04-19  Derek Price  <derek@ximbiot.com>
38331             Eric Blake  <ebb9@byu.net>
38332
38333         * lib/inttypes.h: Correct grammar in comment.
38334
38335 2006-04-18  Derek Price  <derek@ximbiot.com>
38336             Paul Eggert  <eggert@cs.ucla.edu>
38337
38338         * modules/inttypes: New file.
38339         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
38340
38341 2006-04-18  Derek Price  <derek@ximbiot.com>
38342             Paul Eggert  <eggert@cs.ucla.edu>
38343
38344         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
38345         New files.
38346
38347 2006-04-18  Derek Price  <derek@ximbiot.com>
38348             Paul Eggert  <eggert@cs.ucla.edu>
38349
38350         * lib/inttypes.h: New file.
38351         * lib/strtoimax.c: Assume <inttypes.h>.
38352
38353 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
38354
38355         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
38356         isn't mounted.  Problem reported by Kir Kolyshkin.
38357
38358 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
38359
38360         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
38361         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
38362         Derek R. Price.
38363         * lib/regex.h (RE_DUP_MAX): Update comment to match current
38364         implementation.
38365
38366 2006-04-12  Eric Blake  <ebb9@byu.net>
38367
38368         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
38369         is now done automatically by the corresponding Autoconf macro.
38370
38371 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
38372
38373         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
38374         time_r.h.
38375
38376 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
38377
38378         Merge regex changes from libc, removing some of our
38379         POSIX-conformance changes that were rejected and redoing them in a
38380         less-intrusive way.
38381
38382         * lib/regcomp.c (re_compile_internal, init_dfa):
38383         Length arg is now size_t, not Idx.  All uses changed.
38384         (peek_token): Forward decl now says internal_function.
38385         (__re_error_msgid, __re_error_msgid_idx):
38386         Now static rather than extern with attribute_hidden.
38387         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
38388         For some reason libc prefers K&R style defns for external functions.
38389         (regerror) [!defined _LIBC]: Likewise.
38390         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
38391         (seek_collating_symbol_entry, lookup_collation_sequence_value):
38392         (build_range_exp, build_collating_symbol):
38393         Use K&R-style defn.
38394         (re_compile_fastmap): Use '\0' to memset, not 0.
38395         (utf8_sb_map): Make the calculations more obvious.
38396         (init_dfa, parse_bracket_exp, build_charclass_op):
38397         Call calloc and cast result, as glibc does.
38398         (init_word_char, fetch_token, peek_token, peek_token_bracket):
38399         (build_range_exp, build_collating_symbol):
38400         Now internal functions.
38401
38402         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
38403
38404         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
38405         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
38406         Don't depend on VMS; depend on __VMS instead, for POSIX
38407         namespace cleanness.
38408         (regoff_t): Define to ssize_t, not long int.
38409
38410         Remove the REG_ macros named below.  Instead, make the old names
38411         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
38412         __USE_GNU_REGEX.
38413         (REG_BACKSLASH_ESCAPE_IN_LISTS):
38414         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
38415         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
38416         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
38417         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
38418         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
38419         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
38420         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
38421         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
38422         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
38423         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
38424         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
38425         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
38426         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
38427         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
38428         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
38429         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
38430         (REG_NREGS):
38431         Remove.  All uses replaced by the old RE_* names.
38432         (RE_BACKSLASH_ESCAPE_IN_LISTS):
38433         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
38434         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
38435         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
38436         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
38437         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
38438         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
38439         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
38440         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
38441         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
38442         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
38443         Don't bother having these macros be independent of each others'
38444         values, since they no longer exist in the POSIX name space.
38445
38446         Rename the following member names back to their old names,
38447         unless !__USE_GNU_REGEX.  All uses changed back.
38448         (buffer): Renamed from re_buffer.
38449         (allocated): Renamed from re_allocated.
38450         (used): Renamed from re_used.
38451         (syntax): Renamed from re_syntax.
38452         (fastmap): Renamed from re_fastmap.
38453         (translate): Renamed from re_translate.
38454         (can_be_null): Renamed from re_can_be_null.
38455         (regs_allocated): Renamed from re_regs_allocated.
38456         (fastmap_accurate): Renamed from re_fastmap_accurate.
38457         (no_sub): Renamed from re_no_sub.
38458         (not_bol): Renamed from re_not_bol.
38459         (not_eol): Renamed from re_not_eol.
38460         (newline_anchor): Renamed from re_newline_anchor.
38461         (num_regs): Renamed from rm_num_regs.
38462         (start): Renamed from rm_start.
38463         (end): Renamed from rm_end.
38464
38465         (free_state): Move up a bit.
38466
38467         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
38468         #define to be empty.
38469         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
38470         when that is what is intended.
38471         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
38472         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
38473         (MAX): New macro.
38474         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
38475         All uses changed back to re_malloc, etc.  It's now the caller's
38476         responsibility to check for overflow; all callers changed.
38477         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
38478         (re_x2nrealloc): Remove.
38479         (free_state): Remove decl.
38480
38481         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
38482         (re_set_registers, re_exec):
38483         Use K&R-style defn.
38484
38485         2006-01-31  Roland McGrath  <roland@redhat.com>
38486
38487         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
38488         Reported by Mike Frysinger <vapier@gentoo.org>.
38489
38490         2006-01-15  Andreas Jaeger  <aj@suse.de>
38491
38492         [BZ #1950]
38493         * lib/regex_internal.c (re_string_reconstruct): Adjust for
38494         build_wcs_upper_buffer change.
38495         (build_wcs_upper_buffer): Change return type.
38496
38497         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
38498
38499         * lib/regex_internal.h: Include <stdint.h> if available.
38500
38501         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
38502
38503         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
38504
38505         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
38506
38507         * lib/regcomp.c: Adjust for changed secondary hash function.
38508
38509         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
38510
38511         * lib/regex.h: Pretty printing.
38512         Clean up namespace a bit.
38513
38514         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
38515
38516         * lib/regexec.c (update_cur_sifted_state, check_arrival,
38517         check_arrival_add_next_nodes): Avoid using uninitialized variable.
38518
38519         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
38520                     Ulrich Drepper  <drepper@redhat.com>
38521
38522         [BZ #1302]
38523         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
38524         changed.
38525         (bitset_word_t): Renamed from bitset_word.  All uses changed.
38526
38527         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
38528
38529         [BZ #281]
38530         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
38531         * lib/regcomp.c: Remove unnecessary uses of
38532         unsigned RE_TRANSLATE_TYPE.
38533         * lib/regex_internal.h: Likewise.
38534         * lib/regex_internal.c: Likewise.
38535         * lib/regexec.c: Likewise.
38536         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
38537
38538         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
38539
38540         * lib/regexec.c (find_recover_state): Remove unnecessary
38541         initialization.
38542         (transit_state_bkref): Make DFA a const pointer.
38543         (get_subexp): Likewise.
38544         (check_arrival): Likewise.
38545         (update_cur_sifted_state): Likewise.
38546         (re_search_internal): Likewise.
38547         (prune_impossible_nodes): Likewise.
38548         (acquire_init_state_context): Likewise.
38549         (proceed_next_node): Likewise.
38550         (set_regs): Likewise.
38551         (free_fail_stack_return): Likewise.
38552         (check_arrival_expand_ecl): Mark DFA parameter as const.
38553         (check_arrival_expand_ecl_sub): Likewise.
38554         (check_subexp_limits): Likewise.
38555         (sub_epsilon_src_nodes):  Likewise.
38556         (add_epsilon_src_nodes):  Likewise.
38557         (merge_state_array): Likewise.
38558         (update_regs): Likewise.
38559         (build_trtable): Likewise.
38560         (sift_states_backward): Mark MCTX parameter as const.
38561         (build_sifted_states): Likewise.
38562         (update_cur_sifted_state): Likewise.
38563         (sift_states_mkref): Likewise.
38564         (check_arrival_expand_ecl): Mark eclosure as const.
38565         (check_dst_limits_calc_pos_1): Likewise.
38566         * lib/regex_internal.h (re_match_context_t): Make dfa a const
38567         pointer.
38568
38569         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
38570
38571         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
38572         (transit_state_sb): Likewise.
38573         (transit_state_mb): Likewise.
38574         (sift_states_iter_mb): Likewise.
38575         (check_arrival_add_next_nodes): Likewise.
38576         (check_node_accept_bytes): Change first parameter to pointer-to-const.
38577         [_LIBC] (re_search_2_stub): Use mempcpy.
38578
38579         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
38580         mbrtowc for very simple UTF-8 case.
38581
38582         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
38583         a pointer-to-const.
38584         (re_acquire_state_context): Likewise.
38585         * lib/regex_internal.h: Adjust prototypes.
38586
38587         * lib/regex.c: Prevent using C++ compilers.
38588
38589         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
38590         (re_acquire_state_context): Likewise.
38591
38592 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
38593
38594         * modules/regex (Depends-on): Add ssize_t.
38595
38596 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
38597
38598         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
38599         translation table.
38600
38601 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
38602
38603         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
38604
38605 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
38606             Bruno Haible  <bruno@clisp.org>
38607
38608         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
38609         <sys/types.h> and <inttypes.h>.
38610
38611 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38612
38613         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
38614         `__error_t_defined', so argp.h will not typedef the former.
38615
38616 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
38617
38618         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
38619         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
38620         glibc names.  Even if glibc is changed to conform to POSIX, the
38621         traditional names will be available anyway, since regex depends on
38622         the extensions module.  Also, fix a longstanding typo in the
38623         implementation of Spencer ERE test #75 from grep 2.3.  Problems
38624         reported by Emanuele Giaquinta.  Also, change sense of cached
38625         variable, so that the message makes sense.
38626
38627 2006-03-24  Simon Josefsson  <jas@extundo.com>
38628
38629         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
38630         including some doc fixes.
38631         (base64_encode_alloc): Fix +1 bug on allocation failures.
38632
38633 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38634
38635         * lib/base64.c (base64_encode): Do not read past end of array with
38636         unsanitized input on systems with CHAR_BIT > 8.
38637
38638 2006-03-24  Eric Blake  <ebb9@byu.net>
38639
38640         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
38641
38642 2006-03-22  Karl Berry  <karl@gnu.org>
38643
38644         * config/srclist.txt (*setenv.[ch]): get from coreutils.
38645         * config/srclistvars.sh (COREUTILS): new var.
38646
38647 2006-03-17  Jim Meyering  <jim@meyering.net>
38648
38649         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
38650         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
38651
38652 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
38653
38654         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
38655         no longer needs it.  Instead, check that regoff_t is as least
38656         as wide as ptrdiff_t.
38657
38658         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
38659         so that our regex.h stays compatible with the installed regex.
38660         This is helpful for installers who configure --without-included-regex.
38661         Problem reported by Emanuele Giaquinta.
38662
38663 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
38664
38665         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
38666         Typedef to long int, not to off_, as POSIX will likely change
38667         in that direction.
38668
38669 2006-03-15  Eric Blake  <ebb9@byu.net>
38670
38671         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
38672
38673 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
38674
38675         * lib/argp-help.c (validate_uparams): Fix typo
38676         * lib/argp-parse.c (argp_default_options): Consistently begin help
38677         messages with a lowercase letter.
38678
38679 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
38680
38681         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
38682         overrun buffers and shouldn't be used (much as gets shouldn't be
38683         used).
38684         * lib/time_r.c (asctime_r, ctime_r): Likewise.
38685
38686 2006-03-08  Simon Josefsson  <jas@extundo.com>
38687
38688         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
38689         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38690
38691 2006-03-08  Simon Josefsson  <jas@extundo.com>
38692
38693         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
38694         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38695
38696 2006-03-08  Simon Josefsson  <jas@extundo.com>
38697
38698         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
38699         signal that configure disabled the device.
38700
38701 2006-03-08  Simon Josefsson  <jas@extundo.com>
38702
38703         * build-aux/maint.mk: Fix refresh-po, to handle no translated
38704         languages.
38705
38706 2006-03-07  Simon Josefsson  <jas@extundo.com>
38707
38708         * modules/getopt (Depends-on): Add unistd.
38709
38710         * modules/unistd: New file.
38711
38712 2006-03-07  Simon Josefsson  <jas@extundo.com>
38713
38714         * modules/gc-random: New file.
38715
38716 2006-03-07  Simon Josefsson  <jas@extundo.com>
38717
38718         * m4/unistd_h.m4: New file.
38719
38720 2006-03-07  Simon Josefsson  <jas@extundo.com>
38721
38722         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
38723         test to be side-effect free by storing the result in the cache
38724         variable gl_cv_lib_readline, and moving the assignment of
38725         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
38726         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
38727
38728 2006-03-07  Simon Josefsson  <jas@extundo.com>
38729
38730         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
38731         error on missing devices (the functions will return an error).
38732
38733         * m4/gc.m4: Move random stuff to gc-random.m4
38734
38735 2006-03-07  Simon Josefsson  <jas@extundo.com>
38736
38737         * lib/unistd_.h: New file.
38738
38739 2006-03-07  Simon Josefsson  <jas@extundo.com>
38740
38741         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
38742
38743 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
38744
38745         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
38746         Problem reported by Juan Manuel Guerrero.
38747
38748 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
38749
38750         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
38751         the unistd module.
38752         * lib/getlogin_r.c: Likewise.
38753         * lib/getlogin_r.h: Likewise.
38754         * lib/glob.c: Likewise.
38755         * lib/pagealign_alloc.c: Likewise.
38756         * lib/unistd_.h: Remove; no longer needed.
38757
38758 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
38759
38760         * MODULES.html.sh (Support for systems lacking POSIX:2001):
38761         Add unistd.
38762         * modules/c-stack (Depends-on): Add unistd.
38763         * modules/getlogin_r: Likewise.
38764         * modules/glob: Likewise.
38765         * modules/pagealign_alloc: Likewise.
38766         * modules/unistd (Files): Remove lib/unistd_.h.
38767         (EXTRA_DIST): Remove.
38768         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
38769         need unistd_.h.
38770         (MOSTLYCLEANFILES): Remove unistd.h-t.
38771
38772 2006-03-03  Simon Josefsson  <jas@extundo.com>
38773
38774         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
38775
38776 2006-03-03  Simon Josefsson  <jas@extundo.com>
38777
38778         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
38779         libidn and bison.
38780
38781 2006-03-03  Simon Josefsson  <jas@extundo.com>
38782
38783         * build-aux/maint.mk: Add indent target.
38784
38785 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
38786
38787         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
38788         our replacement poll.h in any case, to avoid a differing
38789         declaration from a system header.  Seen on AIX.
38790
38791 2006-03-01  Simon Josefsson  <jas@extundo.com>
38792
38793         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
38794         <kasal@ucw.cz>.
38795
38796 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
38797
38798         * modules/gettime (Depends-on): Add extensions module.
38799         * modules/nanosleep (Depends-on): Likewise.
38800         * modules/settime (Depends-on): Likewise.
38801
38802 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
38803
38804         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
38805         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
38806         pedantically.
38807         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
38808         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
38809
38810         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
38811         not "==".  Reported by Ralf Wildenhues.
38812
38813 2006-03-01  Karl Berry  <karl@gnu.org>
38814
38815         * doc/Copyright/request-*: new files, synced from gnuorg.
38816
38817 2006-03-01  Karl Berry  <karl@gnu.org>
38818
38819         * config/srclist.txt (Copyright/*): new entries.
38820
38821 2006-02-28  Simon Josefsson  <jas@extundo.com>
38822
38823         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
38824
38825 2006-02-27  Simon Josefsson  <jas@extundo.com>
38826
38827         * lib/base64.h: Indent #define's.  From Jim Meyering
38828         <jim@meyering.net>.
38829
38830 2006-02-27  Jim Meyering  <jim@meyering.net>
38831
38832         Revert the change of 2006-02-24, so these files can continue
38833         to be sync'd from gettext.
38834         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
38835         of `config.h'.
38836
38837 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
38838
38839         * modules/intprops: New file.
38840         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
38841         Add intprops.
38842         * modules/getloadavg (Files): Remove lib/intprops.h.
38843         (Depends-on): Add intprops.
38844         * modules/human: Likewise.
38845         * modules/inttostr: Likewise.
38846         * modules/openat: Likewise.
38847         * modules/sig2str: Likewise.
38848         * modules/userspec: Likewise.
38849         * modules/utimecmp: Likewise.
38850         * modules/xnanosleep: Likewise.
38851         * modules/xstrtol: Likewise.
38852
38853 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
38854
38855         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
38856         * modules/lock-tests (TESTS): Use $(EXEEXT).
38857         * modules/tls-tests: Likewise.
38858         * modules/argp-tests: Likewise.
38859         (check_PROGRAMS): New var, replacing...
38860         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
38861
38862 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38863
38864         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
38865         `config.h'.
38866
38867 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
38868
38869         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
38870
38871 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
38872
38873         Sync from coreutils.
38874         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
38875         gl_CHDIR_SAFER.
38876
38877 2006-02-22  Jim Meyering  <jim@meyering.net>
38878
38879         Sync from coreutils.
38880         * m4/chdir-safer.m4: New file.
38881
38882 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
38883
38884         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
38885         AT_FDCWD exceeds INT_MAX.
38886         * lib/openat.h (AT_FDCWD): Likewise.
38887
38888 2006-02-17  Eric Blake  <address@hidden>
38889
38890         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
38891
38892 2006-02-16  Simon Josefsson  <jas@extundo.com>
38893
38894         * modules/getaddrinfo (Depends-on): Add sys_socket.
38895
38896 2006-02-15  Simon Josefsson  <jas@extundo.com>
38897
38898         * build-aux/maint.mk: Add dsyntax-check rule.
38899
38900 2006-02-15  Eric Blake  <ebb9@byu.net>
38901
38902         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
38903         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
38904         'present but cannot compile' warnings on cygwin.
38905         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
38906         use ws2tcpip.h if sys/socket.h works.
38907         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
38908         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
38909
38910 2006-02-14  Simon Josefsson  <jas@extundo.com>
38911
38912         * modules/maintainer-makefile (Files): Rename.
38913
38914         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
38915         and (the local) Makefile.cfg to maint-cfg.mk.
38916
38917         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
38918         to the latter.
38919
38920         * modules/maintainer-makefile: New module.
38921
38922         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
38923         severaly stripped to make it possible to build it up from scratch
38924         with reliable tests.
38925
38926         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
38927         fixes to permit overriding the default actions when configure and
38928         makefile are not available.
38929
38930 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
38931
38932         Sync from coreutils.
38933         * modules/lstat (Depends-on): Don't depend on xalloc.
38934         (License): Change from GPL to LGPL, since this is now simply a
38935         replacement for a libc function.
38936
38937 2006-02-14  Jim Meyering  <jim@meyering.net>
38938
38939         Sync from coreutils.
38940
38941         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
38942         failure on deficient systems, and simplify gnulib lgpl dependencies.
38943         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
38944         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
38945
38946         * lib/xalloc-die.c: Remove unused definition of N_.
38947
38948 2006-02-14  Jim Meyering  <jim@meyering.net>
38949
38950         Sync from coreutils.
38951         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
38952         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
38953         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
38954         double-quote uses of that variable, to accommodate the rare case in
38955         which getmntent is available in none of the libraries checked.  This
38956         happens at least on FreeBSD 5.0.
38957
38958 2006-02-13  Simon Josefsson  <jas@extundo.com>
38959
38960         * gnulib-tool (Usage): Fix --import, from
38961         karl@freefriends.org (Karl Berry).
38962
38963 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
38964
38965         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
38966
38967 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
38968
38969         * lib/argp-namefrob.h: Restore changes accidentally lost during the
38970         "autoupdate" on 2005-12-12.
38971
38972 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
38973
38974         * modules/closeout (Depends-on): Remove atexit.
38975
38976 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
38977
38978         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
38979         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
38980
38981 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
38982
38983         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
38984         __EXTENSIONS__ if this causes compilation to fail.  Problem
38985         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
38986         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
38987
38988 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
38989
38990         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
38991         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
38992         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
38993         All uses changed.
38994
38995 2006-01-26  Simon Josefsson  <jas@extundo.com>
38996
38997         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
38998         prototype is visible on mingw32.
38999
39000         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
39001         for mingw32.
39002
39003         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
39004         mingw32).
39005
39006 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
39007
39008         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
39009         attempt to open for write; this always fails, at least on POSIX
39010         hosts.  This reinstates the 2006-01-09 change, which was
39011         inadvertently removed.
39012
39013 2006-01-26  Bruno Haible  <bruno@clisp.org>
39014
39015         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
39016         Reported by Paul Eggert.
39017
39018 2006-01-26  Bruno Haible  <bruno@clisp.org>
39019             Paul Eggert  <eggert@cs.ucla.edu>
39020
39021         * lib/stdbool_.h (_Bool)
39022         [(! (defined __cplusplus || defined __BEOS__)
39023           && !defined __GNUC__
39024           && !(defined __HP_cc || defined __xlc__
39025                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
39026                || defined __sgi))]:
39027         #define to signed char in these cases too; this simplifies
39028         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
39029         etc., separately) and makes it more conservative.
39030
39031 2006-01-25  Simon Josefsson  <jas@extundo.com>
39032
39033         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
39034         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
39035         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
39036
39037 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
39038
39039         * lib/argp-namefrob.h: Bugfix. Remove stray #
39040
39041 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
39042
39043         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
39044         so that we test the test.
39045         Check for yet another HP-UX cc bug involving *bool |= bool.
39046
39047 2006-01-25  Karl Berry  <karl@gnu.org>
39048
39049         * config/srclist.txt (vasnprintf.c): sync lost.
39050
39051 2006-01-25  Jim Meyering  <jim@meyering.net>
39052
39053         Sync from the stable (b5) branch of coreutils:
39054
39055         * lib/fts.c (fts_children): Don't let close() clobber errno from
39056         failed fchdir().
39057
39058         * lib/fts.c (fts_stat): When following a symlink-to-directory,
39059         don't necessarily interpret stat-fails+lstat-succeeds as indicating
39060         a dangling symlink.  That can also happen at least for ELOOP.
39061         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
39062         FYI, this bug predates the inclusion of fts.c in coreutils.
39063
39064         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
39065         in their own block, so pre-c99 compilers don't object.
39066
39067         Avoid the double-free (first in fts_read, second in fts_close) that
39068         would occur when an `active' directory is made inaccessible (e.g.,
39069         via chmod a-x) during a traversal.
39070         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
39071         before returning.  Reproduce this failure by
39072         mkdir -p a/b; cd a; chmod a-x . b
39073         Reported by Stavros Passas.
39074
39075 2006-01-25  Jim Meyering  <jim@meyering.net>
39076
39077         * lib/fileblocks.c: Remove more useless parentheses.
39078         * lib/readutmp.h: Likewise.
39079
39080 2006-01-25  Bruno Haible  <bruno@clisp.org>
39081
39082         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
39083         warnings.
39084         Reported by Paul Eggert.
39085
39086 2006-01-25  Bruno Haible  <bruno@clisp.org>
39087
39088         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
39089         rid of a trap command. For Solaris sh.
39090         Reported by Mark D. Baushke <mdb@gnu.org>.
39091
39092 2006-01-24  Simon Josefsson  <jas@extundo.com>
39093
39094         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
39095         Bruno.
39096
39097 2006-01-24  Karl Berry  <karl@gnu.org>
39098
39099         * config/srclist.txt (argp-namefrob.h): sync lost.
39100
39101 2006-01-24  Jim Meyering  <jim@meyering.net>
39102
39103         * modules/openat (Files): Add lib/intprops.h.
39104         From Mark D. Baushke.
39105
39106 2006-01-24  Jim Meyering  <jim@meyering.net>
39107
39108         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
39109         Reported by Mark D. Baushke.
39110
39111 2006-01-24  Jim Meyering  <jim@meyering.net>
39112
39113         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
39114
39115 2006-01-24  Bruno Haible  <bruno@clisp.org>
39116
39117         * modules/strnlen (Maintainer): Change from glibc to all.
39118
39119 2006-01-24  Bruno Haible  <bruno@clisp.org>
39120
39121         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
39122         Patch by Paul Eggert.
39123
39124 2006-01-24  Bruno Haible  <bruno@clisp.org>
39125
39126         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
39127         already has it.
39128         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
39129         2005-11-26.
39130
39131         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
39132         'signed char' to avoid problems with the built-in _Bool type.
39133         Reported by Paul Eggert on 2005-11-26.
39134
39135 2006-01-24  Bruno Haible  <bruno@clisp.org>
39136
39137         * gnulib-tool (func_import): Avoid constructing complicated sed
39138         expressions inside backquote.
39139         Report and solution by Mark D. Baushke <mdb@gnu.org>.
39140
39141 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
39142
39143         These changes imported from libc.
39144         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
39145         test and two separate function calls.
39146         * lib/strndup.c (__strndup): Add libc_hidden_def.
39147
39148 2006-01-23  Simon Josefsson  <jas@extundo.com>
39149
39150         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
39151         Remove the test_*_SOURCES variable: automake infers it by default.
39152         * modules/tls-tests: Likewise.
39153
39154 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
39155
39156         Work around porting bugs reported by Dieter in
39157         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
39158         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
39159         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
39160         Include "getopt.h" first, to check interface.
39161         (getenv): Declare only if defined HAVE_DECL_GETENV &&
39162         !HAVE_DECL_GETENV.
39163         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
39164         (__strndup): Revert to K&R-style function dfns, the glibc style.
39165         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
39166         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
39167         Include strnlen.h first, to get prototype properly.
39168         (strnlen): Renamed from __strnlen.
39169         Remove weak alias.
39170
39171 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
39172
39173         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
39174
39175 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
39176
39177         * config/srclist.txt: Adjust to reflect glibc reorganization.
39178         This affects only comments.
39179
39180 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
39181
39182          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
39183          Reported by Bruce Korb <bkorb@gnu.org>.
39184
39185 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
39186
39187         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
39188         to pacify gcc -Wswitch-default.
39189
39190 2006-01-22  Bruno Haible  <bruno@clisp.org>
39191
39192         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
39193         temporary buffer for sprintf, take into account the precision also
39194         for 'd', 'i', 'u', 'o', 'x', 'X'.
39195
39196 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
39197
39198         * modules/argp-tests: New module
39199         * tests/test-argp.c: New file
39200         * tests/test-argp-2.sh: New file
39201
39202 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
39203
39204         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
39205         (__argp_base_name): Removed
39206         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
39207         typo.
39208         (__argp_base_name): Provide macro definition or extern declaration
39209         depending on the configuration
39210
39211 2006-01-20  Simon Josefsson  <jas@extundo.com>
39212
39213         * modules/inet_ntop (Depends-on): Depend on sys_socket.
39214
39215 2006-01-20  Simon Josefsson  <jas@extundo.com>
39216
39217         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
39218
39219 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
39220
39221         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
39222         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
39223         Suggested by Bruno Haible.
39224
39225 2006-01-20  Karl Berry  <karl@gnu.org>
39226
39227         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
39228         until changes propagate, I guess.
39229
39230 2006-01-19  Simon Josefsson  <jas@extundo.com>
39231
39232         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
39233
39234 2006-01-19  Simon Josefsson  <jas@extundo.com>
39235
39236         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
39237
39238 2006-01-19  Simon Josefsson  <jas@extundo.com>
39239
39240         * gnulib-tool: Set check_PROGRAMS.
39241
39242         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
39243         modules/des-tests, modules/gc-arcfour-tests,
39244         modules/gc-arctwo-tests, modules/gc-des-tests,
39245         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
39246         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
39247         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
39248         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
39249         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
39250         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
39251         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
39252         test_*_SOURCES.
39253
39254 2006-01-18  Simon Josefsson  <jas@extundo.com>
39255
39256         * modules/socklen (Depends-on): Depend on sys_socket.
39257
39258 2006-01-18  Simon Josefsson  <jas@extundo.com>
39259
39260         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
39261         modules/des-tests, modules/gc-arcfour-tests,
39262         modules/gc-arctwo-tests, modules/gc-des-tests,
39263         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
39264         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
39265         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
39266         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
39267         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
39268         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
39269         $(EXEEXT) to automake TESTS variable, for mingw32.
39270
39271 2006-01-17  Simon Josefsson  <jas@extundo.com>
39272
39273         * modules/socklen (Include): Need sys/socket.h.
39274
39275 2006-01-17  Bruno Haible  <bruno@clisp.org>
39276
39277         * modules/ssize_t (Include): Add <sys/types.h>.
39278
39279 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
39280
39281         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
39282         it's not portable and it doesn't work with cross-compiles.
39283         Problem reported by Bruno Haible.  Fix missing-$ typo in
39284         'test "gl_cv_ignore_unused_libraries" ...' that prevented
39285         -zignore from being used with Sun's C compiler.
39286
39287 2006-01-12  Simon Josefsson  <jas@extundo.com>
39288
39289         * lib/base64.c: Fix warning, reported by Bruno Haible
39290         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
39291
39292 2006-01-12  Bruno Haible  <bruno@clisp.org>
39293
39294         * modules/ldd: New file.
39295         * build-aux/ldd.sh.in: New file.
39296         * MODULES.html.sh (Support for building libraries and executables): Add
39297         ldd.
39298
39299 2006-01-12  Bruno Haible  <bruno@clisp.org>
39300
39301         * m4/ldd.m4: New file.
39302
39303 2006-01-12  Bruno Haible  <bruno@clisp.org>
39304
39305         * gnulib-tool (func_import, func_create_testdir): Don't go into an
39306         endless loop while replacing $auxdir with build-aux.
39307
39308 2006-01-11  Simon Josefsson  <jas@extundo.com>
39309
39310         * lib/stdint_.h (SIZE_MAX): Add missing (.
39311
39312 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
39313
39314         Sync from coreutils.
39315         * lib/md5.c: Fix commentary typos.
39316         (alignof, UNALIGNED_P): No need for a GCC-specific version.
39317         * lib/md5.h (__attribute__): Remove; unused.
39318         * lib/sha1.c: Fix commentary to match md5 better.
39319         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
39320         so that we don't need to worry about alignment.  All uses changed.
39321         This merges the 2005-10-28 md5 change into sha1.
39322
39323 2006-01-11  Jim Meyering  <jim@meyering.net>
39324
39325         Sync from coreutils.
39326         * lib/md5.c (OP): Fix spacing.
39327
39328 2006-01-11  Bruno Haible  <bruno@clisp.org>
39329
39330         Ensure automatic ordering between gl_LOCK and gl_ARGP.
39331         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
39332         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
39333
39334 2006-01-11  Bruno Haible  <bruno@clisp.org>
39335
39336         Ensure automatic ordering between gl_LOCK and gl_ARGP.
39337         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
39338         the "early" section as well.
39339
39340 2006-01-11  Bruno Haible  <bruno@clisp.org>
39341
39342         Avoid "ar: no archive members specified" error on MacOS X.
39343         * gnulib-tool (func_modules_add_dummy): New function.
39344         (func_import, func_create_testdir): Invoke it.
39345
39346 2006-01-11  Bruno Haible  <bruno@clisp.org>
39347
39348         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
39349         with $auxdir in AC_CONFIG_FILES statements.
39350
39351 2006-01-11  Bruno Haible  <bruno@clisp.org>
39352
39353         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
39354         Initialize also noinst_HEADERS to empty.
39355
39356 2006-01-11  Bruno Haible  <bruno@clisp.org>
39357
39358         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
39359         variables.
39360         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
39361         autoreconf.
39362
39363 2006-01-11  Bruno Haible  <bruno@clisp.org>
39364
39365         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
39366         overridable by the user.
39367         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
39368
39369 2006-01-10  Simon Josefsson  <jas@extundo.com>
39370
39371         * modules/sys_socket: New file.
39372
39373 2006-01-10  Simon Josefsson  <jas@extundo.com>
39374
39375         * m4/sys_socket_h.m4: New file.
39376
39377 2006-01-10  Simon Josefsson  <jas@extundo.com>
39378
39379         * lib/socket_.h: New file.
39380
39381 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
39382
39383         * modules/readutmp (Maintainer): Add myself.
39384
39385 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
39386
39387         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
39388         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
39389         People who are still concerned with buggy memcmp implementations
39390         can invoke gl_FUNC_MEMCMP themselves.
39391
39392 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
39393
39394         * lib/regex_internal.h (BITSET_WORD_BITS):
39395         Work around a bug in 64-bit PGC (before version 6.1-2), where the
39396         preprocessor mishandles large unsigned values as if they were signed.
39397         Problem reported by Claudio Fontana in
39398         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
39399
39400 2006-01-10  Jim Meyering  <jim@meyering.net>
39401
39402         Avoid the double-free (first in fts_read, second in fts_close) that
39403         would occur when an `active' directory is made inaccessible (e.g.,
39404         via chmod a-x) during a traversal.
39405         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
39406         before returning.  Reproduce this failure by
39407         mkdir -p a/b; cd a; chmod a-x . b
39408         Reported by Stavros Passas.
39409
39410         Sync from coreutils.
39411         * lib/sha1.c: Tweak grammar in a comment.
39412
39413 2006-01-10  Jim Meyering  <jim@meyering.net>
39414
39415         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
39416         Patch by Joerg Sonnenberger.
39417
39418 2006-01-10  Bruno Haible  <bruno@clisp.org>
39419
39420         * modules/readutmp: Depend on module free.
39421         * modules/strtok_r: Depend on module restrict.
39422
39423 2006-01-10  Bruno Haible  <bruno@clisp.org>
39424
39425         * modules/gettext (configure.ac): Add an invocation of
39426         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
39427
39428 2006-01-10  Bruno Haible  <bruno@clisp.org>
39429
39430         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
39431         Reported by Werner Lemberg <wl@gnu.org>.
39432
39433 2006-01-10  Bruno Haible  <bruno@clisp.org>
39434
39435         * lib/localcharset.c: Update from GNU gettext.
39436
39437 2006-01-10  Bruno Haible  <bruno@clisp.org>
39438
39439         * lib/argp.h (__const): Remove macro. Use const instead.
39440         * lib/argp-fmtstream.h (__const): Likewise.
39441         * lib/glob_.h (__const): Remove macro.
39442         * lib/glob-libc.h: Use const instead of __const.
39443
39444 2006-01-10  Bruno Haible  <bruno@clisp.org>
39445
39446         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
39447         variable.
39448         Needed to avoid an automake error regarding the 'gettext' module.
39449
39450 2006-01-09  Simon Josefsson  <jas@extundo.com>
39451
39452         * modules/inet_ntop (Depends-on): Add restrict.
39453
39454 2006-01-09  Simon Josefsson  <jas@extundo.com>
39455
39456         * modules/gc-rijndael-tests (License): Put under LGPL.
39457
39458         * modules/gc-des-tests (License): Likewise.
39459
39460         * modules/gc-arcfour-tests (License): Likewise.
39461
39462         * modules/gc-arctwo-tests (License): Likewise.
39463
39464         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
39465
39466         * modules/gc-hmac-sha1-tests (Files): Likewise.
39467
39468         * modules/gc-hmac-md5-tests (License): Likewise.
39469
39470         * modules/gc-sha1-tests (License): Likewise.
39471
39472         * modules/gc-md5-tests (License): Likewise.
39473
39474         * modules/gc-md4-tests (License): Likewise.
39475
39476         * modules/gc-md2-tests (License): Likewise.
39477
39478         * modules/gc-tests (License): Likewise.
39479
39480         * modules/des-tests (License): Likewise.
39481
39482         * modules/md4-tests (License): Likewise.
39483
39484         * modules/md2-tests (License): Likewise.
39485
39486 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
39487
39488         Sync from coreutils:
39489
39490         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
39491         * modules/lib-ignore: New file.
39492         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
39493         chdir-safer.m4, lchmod.m4.
39494         * modules/openat: Add mkdirat.c, openat-priv.h.
39495
39496 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
39497
39498         Sync from coreutils.
39499         * m4/lib-ignore.m4: New file.
39500         * m4/lchmod.m4: New file.
39501
39502 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
39503
39504         Sync from coreutils.
39505         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
39506         for write access: POSIX says that must fail.
39507         * lib/fts.c (diropen): Likewise.
39508         * lib/save-cwd.c (save_cwd): Likewise.
39509         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
39510         well, for minor improvements on hosts that lack O_DIRECTORY.
39511         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
39512         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
39513         Fall back on chown if open failed with EACCES.
39514
39515         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
39516         Report an error at compile-time if only a 1-second nominal clock
39517         resolution is found.
39518
39519         * lib/lchmod.h: New file.
39520         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
39521         (make_dir_parents): Use lchown rather than chown, and
39522         lchmod rather than chmod.
39523
39524         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
39525         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
39526         "proc" reported by n0dalus.
39527
39528         * lib/mountlist.c: Include <limits.h>.
39529         (dev_from_mount_options)
39530         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
39531         New function.  It no longer assumes "dev=" has the System V meaning
39532         on Linux (since it doesn't).  It also parses "dev=" more carefully.
39533         (read_file_system_list)
39534         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
39535         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
39536         dev= in that case.
39537
39538         * lib/posixtm.h (PDS_PRE_2000): New macro.
39539         * lib/posixtm.c (year): Arg is now syntax_bits rather than
39540         allow_century.  All usages changed.  Reject dates outside the range
39541         1969-1999 if PDS_PRE_2000 is used.
39542
39543 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
39544
39545         Sync from coreutils.
39546         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
39547         (Time of day items): Mention the possibility of leap seconds.
39548         Problem reported by Dr. David Alan Gilbert.
39549
39550 2006-01-09  Jim Meyering  <jim@meyering.net>
39551
39552         Sync from coreutils.
39553
39554         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
39555
39556         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
39557
39558         * lib/modechange.c (mode_compile): Reject an invalid mode string
39559         that starts with an octal digit.  From Andreas Gruenbacher.
39560
39561         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
39562         and dup to open_safer and dup_safer, respectively.
39563         (openat_permissive): Fix typo in comment.
39564
39565         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
39566         "gettext.h"; either no longer needed or are guaranteed by openat.h.
39567         (_): Remove; no longer needed.
39568         (openat): Renamed from rpl_openat; no need for rpl_openat
39569         since openat.h renames openat for us.
39570         Replace most of the body with a call to openat_permissive,
39571         to avoid duplicate code.
39572         Port to (probably hypothetical) environments were mode_t is
39573         wider than int.
39574         (openat_permissive): Require mode arg, so that we can check
39575         types better.  Put it just after flags.  Change cwd failure
39576         indicator from pointer-to-bool to pointer-to-errno-value.
39577         All callers changed.
39578         Invoke openat_save_fail and/or openat_restore_fail if
39579         cwd_errno is null, so that openat can call us.
39580         (openat_permissive, fdopendir, fstatat, unlinkat):
39581         Simplify errno handling to avoid some duplicate code,
39582         as it's OK to set errno on success.
39583         * lib/openat.h: Revamp code so that function macros depend on
39584         __OPENAT_PREFIX only, not also on AT_FDCWD.
39585         (openat_ro): Remove.  Caller changed to use openat_permissive.
39586         (openat_permissive): Now a macro, if not a function.
39587         (openat_restore_fail, openat_save_fail): Now always functions,
39588         since mkdirat needs them even if __OPENAT_PREFIX is defined.
39589
39590         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
39591         and openat.c.
39592         * lib/mkdirat.c: Include openat-priv.h.
39593         Remove definitions of macros defined therein.
39594         * lib/openat.c: Likewise.
39595
39596         * lib/mkdirat.c (mkdirat): New file and function.
39597         * lib/openat.h (mkdirat): Declare.
39598
39599         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
39600
39601         * lib/openat.h (openat_permissive): Declare.
39602         (openat_ro): Define.
39603
39604         * lib/openat.c (EXPECTED_ERRNO): New macro.
39605         (openat_permissive): New function -- used in remove.c rewrite.
39606         (all functions): Set errno just before returning, only if there
39607         was an actual failure.
39608         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
39609
39610         Emulate openat-family functions using Linux's procfs, if possible.
39611         Idea and some code based on Ulrich Drepper's glibc changes.
39612
39613         * lib/openat.c: (BUILD_PROC_NAME): New macro.
39614         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
39615         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
39616         before falling back on save_cwd and restore_cwd.
39617         (fdopendir, fstatat, unlinkat): Likewise.
39618
39619         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
39620         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
39621
39622         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
39623         as second argument to va_arg.  Otherwise, some versions of gcc
39624         warn that `if this code is reached, the program will abort'.
39625
39626 2006-01-09  Jim Meyering  <jim@meyering.net>
39627
39628         Sync from coreutils.
39629         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
39630         Require openat-priv.h.
39631
39632 2006-01-09  Bruno Haible  <bruno@clisp.org>
39633
39634         * modules/strnlen (Include): Use strnlen.h.
39635
39636 2006-01-09  Bruno Haible  <bruno@clisp.org>
39637
39638         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
39639
39640 2006-01-09  Bruno Haible  <bruno@clisp.org>
39641
39642         * lib/sysexit_.h (EX_OK): New macro.
39643         Suggested by Martin Lambers <marlam@marlam.de>.
39644
39645 2006-01-09  Bruno Haible  <bruno@clisp.org>
39646
39647         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
39648         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
39649
39650 2006-01-09  Bruno Haible  <bruno@clisp.org>
39651
39652         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
39653         numbers.
39654
39655 2006-01-09  Bruno Haible  <bruno@clisp.org>
39656
39657         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
39658         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
39659         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
39660         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
39661
39662 2006-01-09  Bruno Haible  <bruno@clisp.org>
39663
39664         * build-aux/javacomp.sh.in: New file, moved from lib/.
39665         * modules/javacomp-script (Files): Update.
39666         (configure.ac): Add AC_CONFIG_FILES invocation.
39667         (EXTRA_DIST): Remove variable.
39668
39669         * build-aux/javaexec.sh.in: New file, moved from lib/.
39670         * modules/javaexec (Files): Update.
39671         (configure.ac): Add AC_CONFIG_FILES invocation.
39672         (EXTRA_DIST): Remove javaexec.sh.in.
39673
39674         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
39675         * modules/csharpcomp-script (Files): Update.
39676         (configure.ac): Add AC_CONFIG_FILES invocation.
39677         (EXTRA_DIST): Remove variable.
39678
39679         * build-aux/csharpexec.sh.in: New file, moved from lib/.
39680         * modules/csharpexec (Files): Update.
39681         (configure.ac): Add AC_CONFIG_FILES invocation.
39682         (EXTRA_DIST): Remove csharpexec.sh.in.
39683
39684 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
39685
39686         Sync from coreutils.
39687
39688         Add POSIX ACL support
39689         * lib/acl.h (copy_acl, set_acl): Add declarations.
39690         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
39691         systems other than Linux.
39692         (chmod_or_fchmod): New function: use fchmod when possible,
39693         and chmod otherwise.
39694         (file_has_acl): Add a POSIX ACL implementation, with a
39695         Linux-specific subcase.
39696         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
39697         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
39698         acls are unsupported.
39699         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
39700         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
39701         are unsupported.
39702
39703 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
39704
39705         Sync from coreutils.
39706         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
39707
39708 2006-01-07  Bruno Haible  <bruno@clisp.org>
39709
39710         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
39711         gl_EARLY.
39712
39713 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
39714
39715         * lib/strftime.c (tzname): Don't declare if it is already #defined.
39716         Problem reported for Mingw by Mark Junker.
39717
39718 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
39719
39720         * README: Gnulib normally doesn't generate a tarball.
39721
39722 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
39723
39724         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
39725         long int, not int, for nanosecond counts, so that people who are
39726         used to POSIX struct timespec won't be surprised.  Reported by Jim
39727         Meyering.
39728
39729 2005-12-28  Bruno Haible  <bruno@clisp.org>
39730
39731         * build-aux/config.rpath: Update from GNU gettext.
39732
39733 2005-12-16  Jim Meyering  <jim@meyering.net>
39734
39735         * modules/fprintftime: New module.
39736         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
39737
39738 2005-12-16  Jim Meyering  <jim@meyering.net>
39739
39740         * m4/fprintftime.m4: New file.
39741
39742 2005-12-16  Jim Meyering  <jim@meyering.net>
39743
39744         * lib/fprintftime.c, lib/fprintftime.h: New files.
39745
39746 2005-12-15  Simon Josefsson  <jas@extundo.com>
39747
39748         * modules/socklen (configure.ac): Fix M4 macro name, to align with
39749         new m4/socklen.m4.
39750
39751 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
39752
39753         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
39754         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
39755
39756 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
39757
39758         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
39759         * lib/argp-help.c (fill_in_uparams): Check if the constructed
39760         struct uparams is valid. Fall back to the default values if it is
39761         not.
39762
39763 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
39764
39765         * modules/argp (Files): Add argp-pin.c
39766         (Depends-on): dirname
39767         (lib_SOURCES): Add argp-pin.c
39768
39769 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
39770
39771         * m4/argp.m4:  Check if program_invocation_name and
39772         program_invocation_short_name are declared and define appropriate
39773         macros if they are not.
39774
39775 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
39776
39777         * lib/argp-help.c (__argp_base_name): New function
39778         (__argp_short_program_name): Rewrite using __argp_base_name
39779         * lib/argp-namefrob.h: Define program_invocation_name and
39780         program_invocation_short_name if requested
39781         (__argp_base_name): Add prototype
39782         * lib/argp-parse.c (argp_def): Use gettext wrappers
39783         (argp_default_parser): Use __argp_base_name
39784         * lib/argp-pin.c: New file. Defines program_invocation_name and
39785         program_invocation_short_name on systems that lack them.
39786
39787 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
39788
39789         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
39790         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
39791         porting problem reported by Georg Schwarz in
39792         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
39793
39794 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
39795
39796         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
39797         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
39798         porting problem reported by Georg Schwarz in
39799         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
39800
39801 2005-12-05  Bruno Haible  <bruno@clisp.org>
39802
39803         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
39804         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
39805         Reported by Mark Junker <mjscod@gmx.de>.
39806
39807 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
39808
39809         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
39810         Use implementation from Albert Chin, with some
39811         comments/corrections by Stepan Kasal and myself.
39812
39813 2005-12-02  Bruno Haible  <bruno@clisp.org>
39814
39815         * gnulib-tool (func_import): Accept GPLed build tool modules when
39816         --lgpl is given.
39817         * modules/csharpcomp-script: New file.
39818         * modules/csharpcomp: Depend on it.
39819         * modules/javacomp-script: New file.
39820         * modules/javacomp: Depend on it.
39821         Suggested by Simon Josefsson.
39822
39823 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
39824
39825         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
39826         statement, to work around an HP-UX 10.20 compiler bug reported by
39827         Peter O'Gorman.
39828
39829 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
39830
39831         * modules/savedir (Depends-on): Add openat.
39832
39833 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
39834
39835         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
39836         (uintmax_t) [defined uintmax_t]: Do not declare.
39837         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
39838         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
39839         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
39840         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
39841         sake of portability to weird hosts that C allows (though we don't
39842         know of any practical examples).
39843
39844         * lib/savedir.h (fdsavedir): New decl.
39845         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
39846         contains most of the former guts of savedir.
39847         (savedir): Use savedirstream.
39848         Include "openat.h".
39849
39850 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
39851
39852         * modules/obstack (Files): Add m4/ulonglong.m4.
39853         Problem reported by Davide Angelocola.
39854
39855 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
39856
39857         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
39858         coreutils no longer futzes with rounding modes.
39859
39860 2005-11-14  Jim Meyering  <jim@meyering.net>
39861
39862         * lib/mkstemp-safer.c: Include <config.h>, required for possible
39863         replacement of mkstemp.
39864
39865 2005-11-10  Simon Josefsson  <jas@extundo.com>
39866
39867         * lib/readline.c: Remove EOL.
39868
39869 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
39870
39871         * modules/gethrxtime (Depends-on): Add gettime.
39872
39873 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
39874
39875         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
39876         or gettimeofday; no longer needed.
39877
39878 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
39879
39880         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
39881         time business.
39882         (gethrxtime) [! (HAVE_NANOUPTIME
39883         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
39884         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
39885         our own approximation.
39886
39887 2005-11-08  Eric Blake  <ebb9@byu.net>
39888
39889         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
39890
39891 2005-11-08  Eric Blake  <ebb9@byu.net>
39892
39893         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
39894
39895 2005-11-04  Bruno Haible  <bruno@clisp.org>
39896
39897         * gnulib-tool: Implement --update mode.
39898
39899 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
39900
39901         Fix porting problem reported by Theodoros V. Kalamatianos.
39902         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
39903         Don't assume that futimes failing means we must fail.
39904
39905 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
39906
39907         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
39908         variables to suggest the intended function of the PATH_MAX check.
39909
39910 2005-10-30  Kean Johnston  <jkj@sco.com>
39911
39912         Trivial changes to support SCO systems.
39913         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
39914         as PATH_MAX.
39915         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
39916         where __ptr is null when no I/O is pending.
39917
39918 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
39919
39920         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
39921         leave errno alone.  Problem reported by Dmitry V. Levin.
39922
39923 2005-10-28  Simon Josefsson  <jas@extundo.com>
39924
39925         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
39926         Test more.
39927
39928         * tests/test-gc-md2.c, tests/test-md2.c: New files.
39929
39930         * modules/md2, modules/md2-tests: New files.
39931
39932 2005-10-28  Simon Josefsson  <jas@extundo.com>
39933
39934         * m4/inet_ntop.m4: More tests.
39935
39936         * m4/gc-md2.m4, md2.m4: New file.
39937
39938 2005-10-28  Simon Josefsson  <jas@extundo.com>
39939
39940         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
39941         "restrict" keywords, as per POSIX.  Protect the function
39942         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
39943         Don't use K&R prototypes.  Check the sprintf return values.
39944         Re-define EAFNOSUPPORT if not present.  Indent.
39945
39946         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
39947         suggested by Bruno Haible <bruno@clisp.org>.
39948
39949         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
39950
39951         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
39952
39953         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
39954         libgcrypt).
39955
39956         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
39957
39958         * lib/md2.h, lib/md2.c: New files.
39959
39960 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
39961
39962         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
39963         errno alone.  Problem reported by Frederic Jolliton.
39964
39965 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
39966
39967         * modules/verify (License): Change from GPL to LGPL.  This is a
39968         tiny module and there are apparently near-equivalents that are
39969         under the BSD license.
39970
39971 2005-10-24  Simon Josefsson  <jas@extundo.com>
39972
39973         * modules/sha1: Relicense to LGPL.
39974
39975 2005-10-24  Simon Josefsson  <jas@extundo.com>
39976
39977         * lib/md4.h: Shrink buffer size, now that we changed the type.
39978
39979 2005-10-23  Simon Josefsson  <jas@extundo.com>
39980
39981         * gnulib-tool (func_import): Fix --tests-base.
39982
39983 2005-10-22  Simon Josefsson  <jas@extundo.com>
39984
39985         * modules/arcfour (Depends-on): Need stdint.
39986
39987 2005-10-22  Simon Josefsson  <jas@extundo.com>
39988
39989         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
39990         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
39991
39992 2005-10-22  Simon Josefsson  <jas@extundo.com>
39993
39994         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
39995         suggested by Bruno Haible <bruno@clisp.org>.
39996
39997 2005-10-22  Simon Josefsson  <jas@extundo.com>
39998
39999         * lib/crc.h: Include stddef.h, for size_t.
40000
40001 2005-10-22  Simon Josefsson  <jas@extundo.com>
40002
40003         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
40004         arcfour_context struct (simplify test vector testing in GNU
40005         Shishi).
40006
40007 2005-10-21  Simon Josefsson  <jas@extundo.com>
40008
40009         * modules/des, modules/des-tests: New files.
40010
40011         * modules/gc-des, modules/gc-des-tests: New files.
40012
40013         * tests/test-des.c, tests/test-gc-des.c: New file.
40014
40015 2005-10-21  Simon Josefsson  <jas@extundo.com>
40016
40017         * modules/arctwo, modules/arctwo-tests: New files.
40018
40019         * tests/test-arctwo.c: New file.
40020
40021         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
40022
40023         * tests/test-gc-arctwo.c: New file.
40024
40025 2005-10-21  Simon Josefsson  <jas@extundo.com>
40026
40027         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
40028         Bruno Haible <bruno@clisp.org>.
40029
40030         * m4/gc-des.m4: New file.
40031
40032 2005-10-21  Simon Josefsson  <jas@extundo.com>
40033
40034         * m4/arctwo.m4: New file.
40035
40036         * m4/gc-arctwo.m4: New file.
40037
40038 2005-10-21  Simon Josefsson  <jas@extundo.com>
40039
40040         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
40041         block.
40042
40043 2005-10-21  Simon Josefsson  <jas@extundo.com>
40044
40045         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
40046         <bruno@clisp.org>.
40047
40048         * lib/hmac-sha1.c (hmac_sha1): Likewise.
40049
40050         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
40051         Bruno Haible <bruno@clisp.org>.
40052
40053         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
40054         <bruno@clisp.org>.
40055
40056 2005-10-21  Simon Josefsson  <jas@extundo.com>
40057
40058         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
40059
40060 2005-10-21  Simon Josefsson  <jas@extundo.com>
40061
40062         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
40063
40064 2005-10-21  Simon Josefsson  <jas@extundo.com>
40065
40066         * lib/des.h, lib/des.c: New files.
40067
40068         * lib/gc-gnulib.c: Support DES.c
40069
40070 2005-10-21  Simon Josefsson  <jas@extundo.com>
40071
40072         * lib/arctwo.h, lib/arctwo.c: New files.
40073
40074         * lib/gc-gnulib.c: Support ARCTWO.
40075
40076 2005-10-21  Simon Josefsson  <jas@extundo.com>
40077
40078         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
40079         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
40080
40081 2005-10-21  Simon Josefsson  <jas@extundo.com>
40082
40083         * gnulib-tool (func_import, func_create_testdir): Define automake
40084         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
40085         Makefile.am snippet),
40086         suggested by Bruno Haible <bruno@clisp.org>.
40087
40088         * modules/gc (Makefile.am): Use it.
40089
40090 2005-10-21  Bruno Haible  <bruno@clisp.org>
40091
40092         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
40093         patch.
40094
40095 2005-10-19  Simon Josefsson  <jas@extundo.com>
40096
40097         * tests/test-gc-rijndael.c: New file.
40098
40099         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
40100
40101 2005-10-19  Simon Josefsson  <jas@extundo.com>
40102
40103         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
40104         interface too.
40105
40106 2005-10-19  Simon Josefsson  <jas@extundo.com>
40107
40108         * tests/test-gc-arcfour.c: New file.
40109
40110         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
40111
40112 2005-10-19  Simon Josefsson  <jas@extundo.com>
40113
40114         * modules/gc-md4, modules/gc-md4-tests: New file.
40115
40116         * tests/test-gc-md4.c: New file.
40117
40118 2005-10-19  Simon Josefsson  <jas@extundo.com>
40119
40120         * m4/gc-md4.m4: New file.
40121
40122 2005-10-19  Simon Josefsson  <jas@extundo.com>
40123
40124         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
40125         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
40126         <kasal@ucw.cz>.
40127
40128 2005-10-19  Simon Josefsson  <jas@extundo.com>
40129
40130         * m4/gc-arcfour.m4: New file.
40131
40132         * m4/gc-rijndael.m4: New file.
40133
40134 2005-10-19  Simon Josefsson  <jas@extundo.com>
40135
40136         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
40137
40138 2005-10-19  Simon Josefsson  <jas@extundo.com>
40139
40140         * lib/gc-gnulib.c: Support ARCFOUR.
40141
40142 2005-10-19  Simon Josefsson  <jas@extundo.com>
40143
40144         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
40145         support.
40146
40147         * lib/gc.h: Add ECB enum type.
40148
40149         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
40150
40151 2005-10-18  Simon Josefsson  <jas@extundo.com>
40152
40153         * tests/test-md5.c: New file.
40154
40155         * modules/md5-tests: New file.
40156
40157 2005-10-18  Simon Josefsson  <jas@extundo.com>
40158
40159         * tests/test-md4.c: New file.
40160
40161         * modules/md4, modules/md4-tests: New files.
40162
40163 2005-10-18  Simon Josefsson  <jas@extundo.com>
40164
40165         * m4/md4.m4: New file.
40166
40167 2005-10-18  Simon Josefsson  <jas@extundo.com>
40168
40169         * lib/md4.h, lib/md4.c: New files, based on md5.?.
40170
40171 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
40172
40173         * gnulib-tool (func_create_testdir): Omit the second check whether
40174         BUILT_SOURCES in nonempty.
40175
40176 2005-10-17  Simon Josefsson  <jas@extundo.com>
40177
40178         * tests/test-rijndael.c: New file.
40179
40180 2005-10-17  Simon Josefsson  <jas@extundo.com>
40181
40182         * modules/sha1: Depend on stdint instead of md5.
40183
40184         * modules/md5: Depend on stdint, remove uint32_t.
40185
40186 2005-10-17  Simon Josefsson  <jas@extundo.com>
40187
40188         * modules/gc-sha1-tests: New file.
40189
40190         * tests/test-gc-sha1.c: New file.
40191
40192 2005-10-17  Simon Josefsson  <jas@extundo.com>
40193
40194         * m4/md5.m4: Remove call to uint32_t.m4.
40195
40196 2005-10-17  Simon Josefsson  <jas@extundo.com>
40197
40198         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
40199
40200         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
40201         md5.h.
40202
40203         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
40204
40205         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
40206
40207 2005-10-17  Simon Josefsson  <jas@extundo.com>
40208
40209         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
40210
40211 2005-10-17  Simon Josefsson  <jas@extundo.com>
40212
40213         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
40214
40215 2005-10-17  Simon Josefsson  <jas@extundo.com>
40216
40217         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
40218
40219         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
40220
40221 2005-10-17  Bruno Haible  <bruno@clisp.org>
40222
40223         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
40224         that it can also be used in a test.
40225
40226 2005-10-16  Bruno Haible  <bruno@clisp.org>
40227
40228         * gnulib-tool (func_emit_tests_Makefile_am): Also define
40229         TESTS_ENVIRONMENT, so that individual tests can augment it.
40230
40231         * gnulib-tool (func_create_testdir): Use an intermediate target for
40232         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
40233         macros, like $(ALLOCA_H), which cannot be passed through the command
40234         line.
40235
40236 2005-10-15  Simon Josefsson  <jas@extundo.com>
40237
40238         * modules/rijndael-tests: New file.
40239
40240         * modules/rijndael: New file.
40241
40242 2005-10-15  Simon Josefsson  <jas@extundo.com>
40243
40244         * m4/rijndael.m4: New file.
40245
40246 2005-10-15  Simon Josefsson  <jas@extundo.com>
40247
40248         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
40249
40250         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
40251
40252 2005-10-14  Simon Josefsson  <jas@extundo.com>
40253
40254         * tests/test-arcfour.c: New file.
40255
40256         * modules/arcfour, modules/arcfour-tests: New files.
40257
40258 2005-10-14  Simon Josefsson  <jas@extundo.com>
40259
40260         * m4/arcfour.m4: New file.
40261
40262 2005-10-14  Simon Josefsson  <jas@extundo.com>
40263
40264         * lib/arcfour.h, lib/arcfour.c: New files.
40265
40266 2005-10-14  Roland McGrath  <roland@redhat.com>
40267
40268         Import from libc.  [BZ #1331]
40269         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
40270         macro argument.
40271         Reported by Matej Vela <vela@debian.org>.
40272
40273 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
40274
40275         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
40276         include <wchar.h>; no longer needed.
40277
40278 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
40279
40280         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
40281
40282 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
40283         and  Ulrich Drepper  <drepper@redhat.com>
40284
40285         Import from libc.
40286         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
40287         instead of inline stream orientation test and two separate
40288         function calls.  Pay no attention to USE_IN_LIBIO.
40289
40290 2005-10-13  Simon Josefsson  <jas@extundo.com>
40291
40292         * modules/gc-hmac-md5-tests: New file.
40293
40294         * tests/test-gc-hmac-sha1.c: New file.
40295
40296         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
40297
40298         * modules/gc-hmac-md5-tests: New file.
40299
40300         * tests/test-gc-md5.c: New file.
40301
40302         * modules/gc-md5-tests: New file.
40303
40304 2005-10-13  Simon Josefsson  <jas@extundo.com>
40305
40306         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
40307         Move memory allocation outside of loop.
40308
40309 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
40310
40311         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
40312         intermediate directory is in a read-only file system.  Problem
40313         reported by Eric Blake.
40314
40315 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
40316
40317         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
40318
40319 2005-10-12  Simon Josefsson  <jas@extundo.com>
40320
40321         * tests/test-hmac-sha1.c: New file.
40322
40323         * modules/hmac-sha1-tests: New file.
40324
40325         * modules/hmac-sha1: New file.
40326
40327 2005-10-12  Simon Josefsson  <jas@extundo.com>
40328
40329         * modules/gc-sha1: New file.
40330
40331 2005-10-12  Simon Josefsson  <jas@extundo.com>
40332
40333         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
40334
40335         * tests/test-gc-pbkdf2-sha1.c: New file.
40336
40337 2005-10-12  Simon Josefsson  <jas@extundo.com>
40338
40339         * modules/gc-md5, modules/gc-hmac-md5: New files.
40340
40341         * modules/gc (Files): Remove md5, memxor and hmac files.
40342
40343 2005-10-12  Simon Josefsson  <jas@extundo.com>
40344
40345         * m4/gc-pbkdf2-sha1.m4: New file.
40346
40347         * m4/gc-hmac-sha1.m4: New file.
40348
40349         * m4/gc-sha1: New file.
40350
40351         * m4/hmac-sha1.m4: New file.
40352
40353 2005-10-12  Simon Josefsson  <jas@extundo.com>
40354
40355         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
40356
40357         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
40358
40359 2005-10-12  Simon Josefsson  <jas@extundo.com>
40360
40361         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
40362         suggested by Bruno Haible <bruno@clisp.org>.
40363
40364 2005-10-12  Simon Josefsson  <jas@extundo.com>
40365
40366         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
40367
40368 2005-10-12  Simon Josefsson  <jas@extundo.com>
40369
40370         * lib/gc-pbkdf2-sha1.c: New file.
40371
40372         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
40373
40374 2005-10-12  Simon Josefsson  <jas@extundo.com>
40375
40376         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
40377
40378         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
40379
40380 2005-10-12  Simon Josefsson  <jas@extundo.com>
40381
40382         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
40383         GC_USE_HMAC_MD5, respectively.
40384
40385         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
40386         (gc_md5): Fix typo.
40387
40388         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
40389
40390         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
40391
40392         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
40393
40394 2005-10-12  Bruno Haible  <bruno@clisp.org>
40395
40396         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
40397         Reported by Stepan Kasal <kasal@ucw.cz>.
40398
40399 2005-10-11  Simon Josefsson  <jas@extundo.com>
40400
40401         * tests/test-crc.c: New file.
40402
40403         * modules/crc, modules/crc-tests: New files.
40404
40405 2005-10-11  Simon Josefsson  <jas@extundo.com>
40406
40407         * m4/crc.m4: New file.
40408
40409 2005-10-11  Simon Josefsson  <jas@extundo.com>
40410
40411         * lib/gc.h: Add gc_hash and gc_hash_buffer.
40412
40413         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
40414
40415         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
40416
40417 2005-10-11  Simon Josefsson  <jas@extundo.com>
40418
40419         * lib/crc.h, lib/crc.c: New files.
40420
40421         * lib/gc.h (gc_hash_buffer): Add doc.
40422
40423 2005-10-11  Bruno Haible  <bruno@clisp.org>
40424
40425         * modules/c-strcasestr: New file.
40426         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
40427
40428 2005-10-11  Bruno Haible  <bruno@clisp.org>
40429
40430         * modules/c-strcase: New file.
40431         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
40432
40433 2005-10-11  Bruno Haible  <bruno@clisp.org>
40434
40435         * lib/strcasecmp.c: Include limits.h.
40436         (strcasecmp): Avoid integer overflow on exotic platforms.
40437         * lib/strncasecmp.c: Include limits.h.
40438         (strncasecmp): Avoid integer overflow on exotic platforms.
40439         Reported by Paul Eggert.
40440
40441 2005-10-11  Bruno Haible  <bruno@clisp.org>
40442
40443         * lib/c-strcasestr.h: New file, from GNU gettext.
40444         * lib/c-strcasestr.c: New file, from GNU gettext.
40445
40446 2005-10-11  Bruno Haible  <bruno@clisp.org>
40447
40448         * lib/c-strcase.h: New file, from GNU gettext.
40449         * lib/c-strcasecmp.c: New file, from GNU gettext.
40450         * lib/c-strncasecmp.c: New file, from GNU gettext.
40451
40452 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
40453
40454         * modules/mempcpy (License): GPL -> LGPL.
40455         * modules/strchrnul (License): Likewise.
40456         * modules/sysexits (License): Likewise.
40457
40458 2005-10-08  Simon Josefsson  <jas@extundo.com>
40459
40460         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
40461
40462 2005-10-07  Simon Josefsson  <jas@extundo.com>
40463
40464         * m4/memxor.m4: Remove gl_C_RESTRICT call.
40465
40466 2005-10-06  Simon Josefsson  <jas@extundo.com>
40467
40468         * tests/test-hmac-md5.c: New file.
40469
40470         * modules/hmac-md5-tests: New file.
40471
40472         * modules/hmac-md5: New file.
40473
40474 2005-10-06  Simon Josefsson  <jas@extundo.com>
40475
40476         * m4/hmac-md5.m4: New file.
40477
40478         * m4/memxor.m4: Require gl_C_RESTRICT.
40479
40480 2005-10-06  Simon Josefsson  <jas@extundo.com>
40481
40482         * lib/memxor.c (memxor): Avoid casts and warnings.
40483
40484 2005-10-06  Simon Josefsson  <jas@extundo.com>
40485
40486         * lib/hmac-md5.c: New file.
40487
40488         * lib/hmac.h: New file.
40489
40490 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
40491
40492         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
40493         promotes to int, not unsigned int, to catch the AIX 5.3
40494         compiler bug.
40495
40496 2005-10-05  Simon Josefsson  <jas@extundo.com>
40497
40498         * modules/memxor: New file.
40499
40500         * modules/iconv (Files): Move config.rpath to havelib, it is used
40501         there.
40502
40503         * modules/havelib (Files): Add config.rpath.
40504
40505 2005-10-05  Simon Josefsson  <jas@extundo.com>
40506
40507         * m4/memxor.m4: New file.
40508
40509 2005-10-05  Simon Josefsson  <jas@extundo.com>
40510
40511         * lib/memxor.c (memxor): Fix compiler error.
40512
40513         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
40514         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
40515
40516         * lib/memxor.h, lib/memxor.c: New files.
40517
40518         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
40519         we assume all systems have it, suggested by Jim Meyering
40520         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
40521         any systems lack sys/socket.h; mingw32 is known to lack it, but we
40522         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
40523         same reasons.
40524
40525 2005-10-05  Simon Josefsson  <jas@extundo.com>
40526
40527         * config/srclist.txt: Add glibc bug 1423 for md5.h.
40528
40529 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
40530
40531         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
40532         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
40533         needed, since the source code now assumes these .h files.
40534
40535 2005-10-05  Derek Price  <derek@ximbiot.com>
40536
40537         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
40538
40539 2005-10-05  Bruno Haible  <bruno@clisp.org>
40540
40541         * modules/stdint (License): Change to LGPL.
40542
40543 2005-10-04  Simon Josefsson  <jas@extundo.com>
40544
40545         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
40546         D. Baushke" <mdb@gnu.org>.
40547
40548 2005-10-04  Bruno Haible  <bruno@clisp.org>
40549
40550         * lib/verify.h (verify_true): Provide alternative definition for C++.
40551
40552 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
40553
40554         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
40555         (SSIZE_MAX): New macro, if not already defined.
40556         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
40557         than 2 GiB.
40558
40559 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
40560
40561         Sync from coreutils.
40562         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
40563         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
40564         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
40565         ULLONG_MAX doesn't work with 2.7.2.1.
40566
40567 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
40568
40569         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
40570         From Ben Pfaff.
40571
40572         * modules/exclude (Depends-on): Depend on verify.
40573         * modules/strtoimax (Depends-on): Likewise.
40574         * modules/utimecmp (Depends-on): Likewise.
40575
40576 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
40577
40578         * lib/exclude.c: Include verify.h.
40579         (verify): Remove.  All callers changed to use verify.h's version.
40580         * lib/strtoimax.c: Likewise.
40581         * lib/utimecmp.c: Likewis.e
40582
40583         Sync from coreutils.
40584         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
40585         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
40586         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
40587         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
40588         bother returning ENOSYS if settimeofday or stime fails; just let
40589         them return whatever errno they want to return.
40590         * lib/utimens.c: Include unistd.h, for dup2.
40591         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
40592         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
40593
40594 2005-10-02  Jim Meyering  <jim@meyering.net>
40595
40596         Sync from coreutils.
40597         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
40598         from glibc-2.2.5 that fails for read-only files.
40599
40600 2005-10-02  Jim Meyering  <jim@meyering.net>
40601
40602         Sync from coreutils.
40603         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
40604         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
40605         `#if HAVE_CONFIG_H'.
40606         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
40607         Remove AT_FDCWD test.
40608         Do not consume the fd unless successful.
40609         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
40610         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
40611         block, so that we don't even try to compile it if settimeofday is
40612         available.  This works around a compilation failure on OSF1 V5.1,
40613         due to stime requiring a `long int*' while tv_sec is `int'.
40614
40615 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
40616
40617         Sync from coreutils.
40618         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
40619         against `yes', rather than just testing for nonempty.
40620
40621 2005-10-01  Simon Josefsson  <jas@extundo.com>
40622
40623         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
40624         and Darwin.
40625
40626         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
40627         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
40628         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
40629         freeaddrinfo and gai_strerror are declared by the POSIX headers.
40630         Check if struct addrinfo is declared.
40631
40632 2005-10-01  Simon Josefsson  <jas@extundo.com>
40633
40634         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
40635         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
40636         AI_* and EAI_* definitions.  Protect function declarations.
40637
40638 2005-10-01  Jim Meyering  <jim@meyering.net>
40639
40640         Sync from coreutils.
40641
40642         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
40643         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
40644         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
40645         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
40646         in the inet and nsl libraries.  Required on Solaris 5.7.
40647
40648 2005-10-01  Jim Meyering  <jim@meyering.net>
40649
40650         Sync from coreutils.
40651         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
40652         in the inet and nsl libraries.  Required on Solaris 5.7.
40653
40654 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
40655
40656         * lib/getdelim.c (getdelim): Remove unused variables.
40657
40658 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
40659
40660         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
40661         so that the code works even with ancient cpp.  Portability problem
40662         with GCC 2.7.2.1 reported by Thomas M.Ott.
40663
40664 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
40665
40666         * modules/regex (Depends-on): Add strcase.
40667
40668         * modules/gethostname (Licence): Change from GPL to LGPL, since
40669         gethostname.c is a trivial implementation of a standard library
40670         function.
40671         * modules/poll (License): Change from GPL to LGPL, since it's
40672         derived from LGPL code.
40673
40674 2005-09-27  Jim Meyering  <jim@meyering.net>
40675
40676         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
40677         HAVE_CONFIG_H.
40678
40679         * lib/intprops.h (signed_type_or_expr__): Define.
40680         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
40681         for unsigned types.
40682
40683 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
40684
40685         * lib/verify.h (verify_expr): Remove, replacing with:
40686         (verify_true): New macro that returns true instead of void.
40687         (verify_type__): Remove.
40688         (verify): Use verify_true rather than verify_type__.
40689
40690 2005-09-26  Bruno Haible  <bruno@clisp.org>
40691
40692         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
40693         is necessary.
40694         (lib_SOURCES): Remove mbchar.c.
40695         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
40696         (Files): Add m4/mbrtowc.m4.
40697         * modules/mbiter: Likewise.
40698         * modules/mbuiter: Likewise.
40699
40700 2005-09-26  Bruno Haible  <bruno@clisp.org>
40701
40702         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
40703         compile mbchar.c if they are not both present.
40704         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
40705         * m4/mbiter.m4 (gl_MBITER): Likewise.
40706         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
40707         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
40708         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
40709
40710 2005-09-25  Jim Meyering  <jim@meyering.net>
40711
40712         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
40713         also uses socklen_t.
40714
40715 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
40716
40717         * lib/utimens.c (ENOSYS): Define if not already defined.
40718         (futimens): Support having a null PATH if the file descriptor
40719         is nonnegative.
40720
40721         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
40722         Remove.
40723         (__attribute): Define to empty unless GCC 3.1 or later.
40724         This works around a core dump on OpenBSD 3.4, which has GCC
40725         2.95.3, which dumps core when given __attribute__(()).  It also
40726         simplifies other tests, since we really don't want to bother with
40727         worrying about which ancient version of GCC supported what.
40728         Original problem reported by Yoann Vandoorselaere, with part of
40729         the fix suggested by Derek Price.
40730
40731 2005-09-24  Jim Meyering  <jim@meyering.net>
40732
40733         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
40734         so we can once again use a positive bitfield width of 1 -- now we
40735         don't have to explain why we were using a bitfield width of 2.
40736
40737 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
40738
40739         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
40740         and similarly for the other external symbols.  Problem reported
40741         by James Gallager.
40742
40743         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
40744         bug reported by Jim Meyering.
40745
40746         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
40747         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
40748         not needed, since socklen is a prerequisite module.
40749
40750 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
40751
40752         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
40753         Problem reported by Eric Blake.
40754         (getaddrinfo): Initialize se so that it's not garbage.
40755         Redo internal storage allocation so that it doesn't make unportable
40756         assumptions about alignment.
40757         Fix a memory leak.
40758
40759         * lib/utimens.c (futimens): Use futimesat if available.
40760         Prefer it to futimes since it doesn't have the futimes bug.
40761
40762         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
40763         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
40764         Instead, declare a function that returns a pointer to an array,
40765         and use verify_type__ to declare the size of the array.
40766         Problem and germ of a solution reported by Bruno Haible.
40767         (verify_type__): Use 2, not 1, for bitfield size, to avoid
40768         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
40769
40770 2005-09-23  Jim Meyering  <jim@meyering.net>
40771
40772         Sync from coreutils.
40773         Correct build failure (socklen_t not defined) on at least
40774         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
40775         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
40776
40777 2005-09-23  Jim Meyering  <jim@meyering.net>
40778
40779         * modules/getaddrinfo (Depends-on): Add socklen.
40780
40781 2005-09-23  Bruno Haible  <bruno@clisp.org>
40782
40783         * tests/test-verify.c: New file.
40784
40785 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
40786
40787         Sync from coreutils.
40788
40789         * modules/argmatch (Depends-on): Add verify.
40790         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
40791         unistd-safer.
40792         * modules/save-cwd (Depends-on): Likewise.
40793
40794         * modules/openat (Files): Add lib/openat-die.c.
40795         (Depends-on): Remove error, exitfail.
40796         Add dirname.
40797
40798         * modules/verify: New file.
40799         * MODULES.html.sh (Diagnostics <assert.h>): New section,
40800         with "verify" module.
40801
40802 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
40803
40804         Sync from coreutils.
40805
40806         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
40807         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
40808         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
40809         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
40810         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
40811         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
40812         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
40813         Don't bother checking for string.h, stdlib.h, unistd.h.
40814         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
40815         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
40816         module's job.
40817         * m4/jm-macros.m4 (gl_MACROS): Likewise.
40818         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
40819
40820         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
40821         (gl_GETDATE): Use it.
40822
40823         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
40824
40825 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
40826
40827         Sync from coreutils.
40828
40829         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
40830         stat-time.h.
40831         * lib/argmatch.h: Include verify.h
40832         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
40833         (ARGMATCH_ASSERT): Remove; unused.
40834         * lib/canonicalize.c: Assume STDC_HEADERS.
40835         * lib/exclude.c: Include "strcase.h".
40836         * lib/regex_internal.h [!defined _LIBC]: Likewise.
40837         * lib/getusershell.c: Include stdio--.h rather than stdio.h
40838         and stdio-safer.h.
40839         (getusershell): Call fopen, not fopen_safer.
40840         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
40841         Do not include unistd-safer.h.
40842         (save_cwd): Don't call fd_safer; no longer needed
40843         now that we include fcntl--.h.
40844
40845         * lib/getdate.y (relative_time): New type.
40846         (RELATIVE_TIME_0): New constant.
40847         (parser_control): Use relative_time instead of doing it ourselves.
40848         (%union): Add new relative_time rel member.
40849         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
40850         Now typeless.
40851         (relunit, relunit_snumber): Now of type rel.
40852         (zone, rel, relunit, get_date): Adjust to above changes.
40853
40854         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
40855         Do not include unistd-safer.h.
40856         (getloadavg): Don't call fd_safer; no longer needed
40857         now that we include fcntl--.h.
40858
40859         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
40860         (make_dir_parents): Treat ENOSYS like EEXIST.
40861
40862         Improve quality of diagnostics on restore_cwd failure.
40863         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
40864         (make_dir_parents): Last arg is now int * (for errno), not bool *.
40865         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
40866         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
40867         each time through the loop.  Do not diagnose restore_cwd failure;
40868         that is the caller's job (and perhaps the caller does not care).
40869
40870         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
40871         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
40872         If the file already exists but is not a directory, don't bother
40873         to try to make its parents.
40874         Close potential file descriptor leak if we can't chdir("/") (!).
40875         Don't always return true if chdir($PWD) fails; return true only
40876         if the requested action was done successfully (except for the
40877         chdir($PWD)).
40878         Don't log final directory unless we actually made it.
40879         Refactor to avoid duplicate code to fix up permissions.
40880         Don't attempt to fix up parent permissions if chdir($PWD) fails.
40881
40882         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
40883         to make it a bit faster and (I hope) clearer.
40884         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
40885         Fix bug in formats like %2N.
40886
40887         * lib/verify.h: New file.
40888
40889 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
40890
40891         Sync from coreutils.
40892         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
40893
40894 2005-09-22  Jim Meyering  <jim@meyering.net>
40895
40896         Sync from coreutils.
40897
40898         * m4/lstat.m4 (gl_FUNC_LSTAT):
40899         Use AC_LIBSOURCES to require lstat.c and lstat.h.
40900         Remove obsolete comment.
40901         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
40902         * m4/xstrtod.m4: Likewise.
40903
40904         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
40905
40906 2005-09-22  Jim Meyering  <jim@meyering.net>
40907
40908         Sync from coreutils.
40909
40910         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
40911
40912         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
40913         the .tm_year member, since otherwise gcc-4.0 would now warn about
40914         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
40915
40916         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
40917         order to avoid an unsuppressible warning from gcc on 64-bit systems.
40918
40919         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
40920         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
40921         when run in a time zone for which daylight savings time is in effect
40922         for the starting date.
40923
40924         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
40925         stop us from restricting permissions of just-created absolute-named
40926         directories.
40927         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
40928         to restore initial working directory.
40929         * lib/mkdir-p.c (make_dir_parents): New parameter:
40930         different_working_dir, to tell caller if/when we change the working
40931         directory and are unable to return to the initial one.
40932         * lib/mkdir-p.h (make_dir_parents): Update prototype.
40933         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
40934         `return false'.  This fixes a bug introduced on 2004-07-30.
40935
40936         * lib/openat.c (fdopendir): Be sure to close the supplied
40937         file descriptor before returning.  This makes our replacement
40938         implementation a little closer to Solaris's, where fdopendir
40939         ties the file descriptor to the returned DIR* pointer.
40940         * lib/openat.c (unlinkat): New function.
40941         * lib/openat.h (unlinkat): Add prototype.
40942         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
40943         (openat_restore_fail): Rename from openat_restore_die.
40944         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
40945
40946         Provide an alternative to exiting immediately upon save_cwd or
40947         restore_cwd failure.  Now, an application can arrange e.g.,
40948         to perform a longjump in that case.
40949         * lib/openat.c: Include dirname.h.
40950         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
40951         (rpl_openat, fdopendir, fstatat): Call openat_save_die
40952         and openat_restore_die rather than calling error directly.
40953         Don't include "error.h" or "exitfail.h"; they're no longer needed.
40954
40955         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
40956         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
40957         define.
40958
40959         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
40960         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
40961                             int utc, int nanoseconds);
40962         Background:
40963         date should not have to allocate a megabyte of virtual memory to
40964         handle a format argument like +%1048575T.  When implemented with
40965         strftime, it must allocate such a buffer, use strftime to fill it
40966         in, print it, then free it.
40967         With fprintftime, it simply prints everything and exits.
40968         With no need for memory allocation, that's one fewer way to fail.
40969         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
40970         optional field width, not before, so we accept %9:z, not %:9z.
40971         (my_strftime): Be sure to use L_('x') for literals.
40972
40973         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
40974         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
40975         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
40976         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
40977         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
40978         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
40979         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
40980         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
40981         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
40982         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
40983         * lib/xgethostname.c, lib/xreadlink.c:
40984         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
40985
40986         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
40987         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
40988         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
40989         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
40990         and don't include <sys/file.h>).
40991
40992 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
40993
40994         Sync from coreutils.
40995
40996         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
40997         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
40998         [!LDAV_DONE]: Avoid unused variable warning.
40999
41000 2005-09-21  Bruno Haible  <bruno@clisp.org>
41001
41002         * lib/unicodeio.h (unicode_to_mb): New declaration.
41003
41004 2005-09-20  Derek Price  <derek@ximbiot.com>
41005
41006         * lib/getaddrinfo.c: Don't include <netdb.h> included from
41007         getaddrinfo.h.
41008
41009 2005-09-20  Bruno Haible  <bruno@clisp.org>
41010
41011         * gnulib-tool: Remove trailing slashes from the values specified for
41012         --source-base, --m4-base, --tests-base, --aux-dir.
41013         Suggested by Simon Josefsson <jas@extundo.com>.
41014
41015 2005-09-20  Bruno Haible  <bruno@clisp.org>
41016
41017         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
41018         func_modules_to_filelist, func_import, func_create_testdir): Make all
41019         sorting results locale-independent, so that gnulib-cache.m4 doesn't
41020         change when gnulib-tool is invoked in a different locale.
41021
41022 2005-09-19  Simon Josefsson  <jas@extundo.com>
41023
41024         * m4/socklen.m4: Fix typo.
41025
41026 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
41027
41028         Use a consistent style for including <config.h>.
41029         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
41030         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
41031         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
41032         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
41033         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
41034         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
41035         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
41036         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
41037         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
41038         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
41039         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
41040         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
41041         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
41042         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
41043         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
41044         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
41045         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
41046         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
41047         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
41048         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
41049         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
41050         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
41051         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
41052         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
41053         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
41054         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
41055         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
41056         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
41057         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
41058         lib/xstrtoumax.c, lib/yesno.c:
41059         Standardize inclusion of config.h.
41060         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
41061         lib/inttostr.h:  Removed inclusion of config.h from header files.
41062         * lib/inttostr.c:  Adjusted in-tree users.
41063         * lib/timespec.h: Remove superfluous warning to include config.h.
41064         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
41065         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
41066         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
41067         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
41068         config.h with HAVE_CONFIG_H.
41069
41070 2005-09-19  Jim Meyering  <jim@meyering.net>
41071
41072         * modules/pathmax (License): Change to LGPL.
41073
41074 2005-09-19  Derek Price  <derek@ximbiot.com>
41075
41076         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
41077
41078 2005-09-19  Bruno Haible  <bruno@clisp.org>
41079
41080         * gnulib-tool (import): Provide default for --tests-base.
41081
41082 2005-09-19  Bruno Haible  <bruno@clisp.org>
41083
41084         * doc/quote.texi: New file, extracted from gnulib.texi.
41085         * doc/ctime.texi: New file, extracted from gnulib.texi.
41086         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
41087         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
41088         * doc/gnulib.texi: Include them.
41089
41090 2005-09-18  Bruno Haible  <bruno@clisp.org>
41091
41092         Portability fix.
41093         * gnulib-tool (func_readlink): New function.
41094         (func_ln_if_changed): Use it.
41095
41096 2005-09-18  Bruno Haible  <bruno@clisp.org>
41097
41098         * gnulib-tool: Support --with-tests also with --import.
41099         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
41100         (func_import): Use variables $testsbase and $inctests. Emit a
41101         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
41102         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
41103         SUBDIRS += $testsdir.
41104         (func_create_testdir): Update.
41105
41106 2005-09-18  Bruno Haible  <bruno@clisp.org>
41107
41108         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
41109         instead of $dry_run.
41110         (func_cp_if_changed, func_mv_if_changed): Remove functions.
41111         (func_ln_if_changed): Don't handle dry-run here.
41112         (func_import): In dry-run mode, detect more precisely which actions
41113         would be performed, and don't use "...ing" verbs.
41114
41115 2005-09-18  Bruno Haible  <bruno@clisp.org>
41116
41117         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
41118         (func_import): Use join on two temporary files instead of three nested
41119         loops, in order to determine which files are new or old.
41120
41121 2005-09-18  Bruno Haible  <bruno@clisp.org>
41122
41123         * gnulib-tool (func_import): Comment out code that spits out the
41124         new files with --dry-run.
41125
41126 2005-09-18  Bruno Haible  <bruno@clisp.org>
41127
41128         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
41129
41130 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
41131
41132         * lib/stat-time.h: New file.
41133         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
41134         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
41135         in a different way.
41136         (timespec_cmp): New function.
41137         * lib/utimecmp.c: Include stat-time.h.
41138         (SYSCALL_RESOLUTION): Depend on whether various struct stat
41139         members exist, not on the obsolescent ST_MTIM_NSEC.
41140         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
41141
41142 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
41143
41144         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
41145
41146 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
41147
41148         * MODULES.html.sh (File system functions): Add stat-time.
41149         * modules/stat-time: New file.
41150         * modules/timespec (Files): Remove m4/st_mtim.m4; this
41151         is now done in a different way, by the stat-time module.
41152         * modules/utimecmp (Depends-on): Add stat-time.
41153
41154 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
41155
41156         * m4/st_mtim.m4: Remove.  Superseded by...
41157         * m4/stat-time.m4: New file.
41158         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
41159         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
41160
41161 2005-09-15  Derek Price  <derek@ximbiot.com>
41162
41163         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
41164
41165 2005-09-15  Derek Price  <derek@ximbiot.com>
41166
41167         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
41168         * lib/regex_internal.c: Ditto, using this...
41169         (__GNUC_PREREQ): ...new macro.
41170         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
41171         using...
41172         (__GNUC_PREREQ): ...this new macro.
41173
41174         * lib/strstr.h: Include string.h. Define strstr as a macro here.
41175
41176 2005-09-15  Derek Price  <derek@ximbiot.com>
41177             Paul Eggert  <eggert@cs.ucla.edu>
41178
41179         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
41180         changes, consolidating in...
41181         * lib/regex_internal.h: ...this file.
41182
41183 2005-09-13  Jim Meyering  <jim@meyering.net>
41184
41185         * lib/canon-host.c: Filter through gnu indent and reword comments
41186         slightly.
41187         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
41188
41189 2005-09-13  Derek Price  <derek@ximbiot.com>
41190
41191         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
41192         failure.
41193         Reported by Jim Meyering  <jim@meyering.net>.
41194
41195 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
41196
41197         * lib/base64.c: Typo.
41198         (base64_encode): Put b64str in initialized data section.
41199
41200 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
41201
41202         Merge glibc and coreutils changes into gnulib, plus a few
41203         extra fixes.
41204         * lib/md5.c: Use #error rather than a string.
41205         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
41206         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
41207         (__attribute__): Define to empty for non recent-GCC.
41208         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
41209         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
41210         Renamed from their non-__ counterparts, with new macros replacing
41211         them if not _LIBC.  Add __THROW attribute.
41212         (rol): Remove.
41213         (struct md5_ctx): Align buffer if using GCC.
41214         * lib/sha1.h (struct sha1_ctx): Likewise.
41215         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
41216         The old name was backwards.
41217         (NOTSWAP): Remove; not used.
41218         (rol): New macro, moved here from md5.h.
41219         (sha1_process_block): Remove a FIXME that doesn't make sense.
41220
41221 2005-09-12  Derek Price  <derek@ximbiot.com>
41222
41223         Return usable errors from canon-host.
41224         * lib/canon-host.h: New file.
41225         * lib/canon-host.c (canon_host): Wrap...
41226         (canon_host_r): ...this new function, which now relies exclusively on
41227         getaddrinfo.
41228         (ch_strerror): New function.
41229         (last_cherror): New global.
41230         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
41231         interface.
41232         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
41233         void *.
41234         (freeaddrinfo): Free ai->ai_canonname when set.
41235
41236 2005-09-12  Derek Price  <derek@ximbiot.com>
41237
41238         Make canon-host require getaddrinfo.
41239         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
41240         AC_LIBSOURCE canon-host.h.  Call...
41241         (gl_PREREQ_CANON_HOST): ...this new function, which requires
41242         gl_GETADDRINFO.
41243         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
41244
41245 2005-09-12  Derek Price  <derek@ximbiot.com>
41246
41247         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
41248         LGPL.
41249         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
41250
41251 2005-09-12  Derek Price  <derek@ximbiot.com>
41252
41253         * lib/gai_strerror.c: Include config.h when available.  Include
41254         getaddrinfo.h before other headers to test interface.
41255         Reported by Larry Jones <lawrence.jones@ugs.com>.
41256
41257 2005-09-12  Derek Price  <derek@ximbiot.com>
41258             Paul Eggert  <eggert@cs.ucla.edu>
41259
41260         * modules/glob (Files): Add glob-libc.h.
41261
41262 2005-09-12  Derek Price  <derek@ximbiot.com>
41263             Paul Eggert  <eggert@cs.ucla.edu>
41264
41265         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
41266         glob_.h, glob-libc.h.
41267         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
41268
41269 2005-09-12  Derek Price  <derek@ximbiot.com>
41270             Paul Eggert  <eggert@cs.ucla.edu>
41271
41272         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
41273         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
41274         protecting things that should be done only in gnulib contexts.
41275         * lib/glob_.h: New file, containing only the glob things needed for
41276         gnulib.
41277         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
41278         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
41279         (glob, globfree, glob_pattern_p): Now defined simply in terms of
41280         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
41281         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
41282         and to respect the namespace rules better.
41283
41284 2005-09-08  Simon Josefsson  <jas@extundo.com>
41285
41286         * modules/socklen: New file.
41287
41288 2005-09-08  Simon Josefsson  <jas@extundo.com>
41289
41290         * m4/socklen.m4: New file.
41291
41292 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
41293
41294         * modules/utimens (Files): Add m4/utimbuf.m4, since
41295         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
41296         Reported by Sergey Poznyakoff.
41297
41298 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
41299
41300         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
41301         definitions, since that's the preferred style in glibc.
41302         Fix a minor spacing issue, and update copyright notice to match
41303         glibc's.
41304
41305 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
41306
41307         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
41308
41309 2005-09-06  Simon Josefsson  <jas@extundo.com>
41310
41311         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
41312         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
41313
41314 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
41315
41316         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
41317         warning.
41318
41319 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
41320
41321         * config/srclist.txt: Add glibc bug 1302.
41322
41323 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
41324
41325         Change bitset word type from unsigned int to unsigned long int,
41326         as this has better performance on typical 64-bit hosts.
41327         Port bitset code to hosts with unusual word sizes.
41328         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
41329         (build_collating_symbol):
41330         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
41331         argument is a bitset.  This is merely a style issue, but it makes
41332         it clearer that an entire array is expected.
41333         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
41334         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
41335         Port to the case where bitset_word is not the same as unsigned int.
41336         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
41337         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
41338         Likewise.
41339         * lib/regexec.c (check_dst_limits_calc_pos_1,
41340         check_subexp_matching_top):
41341         (build_trtable, group_nodes_into_DFAstates):
41342         Likewise.
41343         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
41344         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
41345         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
41346         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
41347         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
41348         * lib/regcomp.c (optimize_subexps, lower_subexp):
41349         Work even if bitset_word has holes in its bitwise representation.
41350         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
41351         * lib/regexec.c (check_dst_limits_calc_pos_1,
41352         check_subexp_matching_top):
41353         Likewise.
41354         * lib/regex_internal.c (re_string_reconstruct):
41355         Don't assume UCHAR_MAX == 255.
41356         * lib/regex_internal.h (bitset_set_all): Likewise.
41357         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
41358         All uses changed.
41359         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
41360         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
41361         All uses changed.
41362         (BITSET_WORD_MAX): New macro.
41363         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
41364         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
41365         (bitset_empty, bitset_copy):
41366         Prefer sizeof (bitset) to multiplying it out ourselves.
41367         (bitset_not_merge): Remove; unused.
41368         (bitset_contain): Return bool, not unsigned int with one bit on.
41369         All callers changed.
41370         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
41371         alignment than re_node_set; do this by defining a new internal
41372         type struct dests_alloc and using it to allocate memory.
41373
41374 2005-09-05  Bruno Haible  <bruno@clisp.org>
41375
41376         * gnulib-tool (func_import): Fix comparison in handling of symbolic
41377         links.
41378
41379 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
41380
41381         * modules/size_max (Makefile.am): Add size_max.h
41382
41383 2005-09-04  Derek Price  <derek@ximbiot.com>
41384
41385         * gnulib-tool (func_import): Fix reversed $symbolic logic.
41386
41387 2005-09-03  Simon Josefsson  <jas@extundo.com>
41388
41389         * gnulib-tool: Fix typo.
41390
41391 2005-09-03  Simon Josefsson  <jas@extundo.com>
41392
41393         * config/srclist.txt: Add glibc bug 1293.
41394
41395 2005-09-03  Derek Price  <derek@ximbiot.com>
41396
41397         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
41398         From Larry Jones <lawrence.jones@ugs.com>.
41399
41400 2005-09-02  Simon Josefsson  <jas@extundo.com>
41401
41402         * modules/socklen: New file.
41403
41404 2005-09-02  Simon Josefsson  <jas@extundo.com>
41405
41406         * modules/havelib: New module.
41407
41408         * modules/gettext, modules/iconv, modules/lock, modules/readline:
41409         Use havelib.
41410
41411 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
41412
41413         Check for arithmetic overflow when calculating sizes, to prevent
41414         some buffer-overflow issues.  These patches are conservative, in the
41415         sense that when I couldn't determine whether an overflow was possible,
41416         I inserted a run-time check.
41417         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
41418         macros.
41419         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
41420         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
41421         (re_xnrealloc, re_x2nrealloc): New inline functions.
41422         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
41423         parse_bracket_exp):
41424         (build_equiv_class, build_charclass): Check for arithmetic overflow
41425         in size expression calculations.
41426         * lib/regex_internal.c (re_string_realloc_buffers):
41427         (build_wcs_upper_buffer, re_node_set_add_intersect):
41428         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
41429         (re_dfa_add_node, register_state): Likewise.
41430         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
41431         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
41432         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
41433         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
41434
41435 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
41436
41437         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
41438         m4/ulonglong.m4.  Problem reported by Martin Lambers.
41439
41440 2005-09-02  Bruno Haible  <bruno@clisp.org>
41441
41442         Support for lib vs. lib64 distinction on biarch platforms.
41443         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
41444         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
41445         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
41446
41447 2005-09-02  Bruno Haible  <bruno@clisp.org>
41448
41449         * gnulib-tool (import): In the other first-use case, provide defaults
41450         as well.
41451
41452 2005-09-02  Bruno Haible  <bruno@clisp.org>
41453
41454         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
41455         patches not yet found in the latest gettext release.
41456
41457 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
41458
41459         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
41460         to avoid a collision with bits/local_lim.h in glibc.
41461         All uses changed.  Problem reported by Dmitry V. Levin in
41462         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
41463
41464         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
41465         bugs in int versus size_t comparisons.
41466         (re_string_context_at): Fix bug where the code assumed that
41467         Idx is signed.
41468
41469         Use bool where appropriate.
41470         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
41471         All callers changed.
41472         (calc_eclosure_iter): Likewise, for ROOT arg.
41473         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
41474         (build_charclass_op): Likewise, for NON_MATCH arg.
41475         * lib/regex_internal.c (re_string_allocate, re_string_construct):
41476         (re_string_construct_common): Likewise, for ICASE arg.
41477         * lib/regexec.c (re_search_2_stub, re_search_stub):
41478         Likewise, for RET_LEN arg.
41479         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
41480         (set_regs): Likewise, for FL_BACKTRACK arg.
41481         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
41482         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
41483         (calc_eclosure_iter, parse_bracket_exp):
41484         Use bool for internal variables that are booleans.
41485         * lib/regexec.c (re_search_internal, check_matching,
41486         proceed_next_node):
41487         (set_regs, build_sifted_states, sift_states_bkref):
41488         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
41489         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
41490         (find_collation_sequence_value):
41491         Likewise.
41492         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
41493         (re_node_set_compare):
41494         Return bool, not int. All callers changed.
41495         * lib/regexec.c (check_halt_node_context, check_dst_limits):
41496         (build_trtable, check_node_accept): Likewise.
41497         * lib/regex_internal.h: Include stdbool.h.
41498
41499         Fix bugs uncovered when converting to bool.
41500         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
41501         failure instead of charging ahead blindly.
41502         * lib/regex_internal.c (register_state): Likewise.
41503         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
41504         for freeing internal storage.
41505         (group_nodes_into_DFA_states): Use unsigned int, not int, for
41506         bitset pieces used as boolean, to avoid undefined behavior
41507         on hosts that do int overflow checking.
41508
41509 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
41510
41511         * config/srclist.txt: Add glibc bugs 1285-1287.
41512
41513 2005-09-01  Jim Meyering  <jim@meyering.net>
41514
41515         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
41516         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
41517         Require gl_STAT_MACROS, too.
41518
41519 2005-09-01  Bruno Haible  <bruno@clisp.org>
41520
41521         * gnulib-tool (import): In the first-use case, provide defaults.
41522
41523 2005-09-01  Bruno Haible  <bruno@clisp.org>
41524
41525         * gnulib-tool (func_import): Remove the .tmp files.
41526
41527 2005-09-01  Bruno Haible  <bruno@clisp.org>
41528
41529         * gnulib-tool (func_import): Fix handling of symbolic links.
41530
41531 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
41532
41533         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
41534         old glibc regex code mishandles strings longer than 2**31 bytes.
41535         This patch fixes this when the regex code is used in gnulib
41536         (i.e., outside glibc).
41537
41538         This patch should not affect the use of the regex code inside
41539         glibc.  No doubt this problem also needs to be handled for glibc
41540         as well, but the result will be an incompatible change to the
41541         glibc ABI, and the old ABI will have to be supported too.  That
41542         can be the the subject for another patch.
41543
41544         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
41545         governing whether the rest of this patch is active.  By default,
41546         the macro is disabled and the patch has no effect.
41547         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
41548         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
41549         (struct re_pattern_buffer, re_search, re_search_2, re_match):
41550         (re_match_2, re_set_registers): Use the new types.
41551         * lib/regex_internal.h (Idx, re_hashval_t): New types.
41552         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
41553         New macros.
41554         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
41555         (re_string_context_at, bin_tree_t, re_dfastate_t):
41556         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
41557         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
41558         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
41559         (re_string_char_size_at, re_string_wchar_at):
41560         (re_string_elem_size_at):
41561         Use the new types and macros to port to 64-bit hosts.
41562         Use unsigned types for internal values, so that the code
41563         mostly works even for arrays larger than SSIZE_MAX.
41564         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
41565         (search_duplicated_node, calc_eclosure_iter, fetch_number):
41566         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
41567         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
41568         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
41569         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
41570         (calc_inveclosure, parse_dup_op, build_range_exp):
41571         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
41572         (fetch_number, create_token_tree, mark_opt_subexp):
41573         Likewise.
41574         * lib/regex_internal.c (re_string_construct_common,
41575         create_ci_newstate):
41576         (create_cd_newstate, re_string_allocate, re_string_construct):
41577         (re_string_realloc_buffers, build_wcs_upper_buffer):
41578         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
41579         (re_string_reconstruct, re_string_peek_byte_case):
41580         (re_string_fetch_byte_case, re_string_context_at):
41581         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
41582         (re_node_set_init_copy, re_node_set_add_intersect):
41583         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
41584         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
41585         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
41586         (re_acquire_state, re_acquire_state_context, register_state):
41587         Likewise.
41588         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
41589         search_cur_bkref_entry):
41590         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
41591         (re_search_internal, re_search_2_stub, re_search_stub)
41592         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
41593         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
41594         (update_cur_sifted_state, check_dst_limits):
41595         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
41596         (check_subexp_limits, sift_states_bkref, merge_state_array):
41597         (check_subexp_matching_top, get_subexp, get_subexp_sub):
41598         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
41599         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
41600         (expand_bkref_cache, check_node_accept_bytes):
41601         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
41602         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
41603         (acquire_init_state_context, check_halt_node_context):
41604         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
41605         (sift_states_backward, clean_state_log_if_needed):
41606         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
41607         (find_recover_state, transit_state_sb, transit_state_mb):
41608         (transit_state_bkref, build_trtable, match_ctx_clean):
41609         Likewise.
41610         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
41611         to work around an assumption that REG_MISSING is negative.
41612
41613         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
41614         (seek_collating_symbol_entry) [defined _LIBC]:
41615         (lookup_collation_sequence_value) [defined _LIBC]:
41616         (build_range_exp, build_collating_symbol) [defined _LIBC]:
41617         Use prototypes rather than old-style function definitions.
41618         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
41619         (transit_state_sb) [0]:
41620         (find_collation_sequence_value) [defined _LIBC]: Likewise.
41621
41622         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
41623         rm_eo.
41624
41625         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
41626         (optimize_subexps, lower_subexp):
41627         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
41628         since the signed shift might overflow.  Use 1u<<31 instead.
41629         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
41630         Likewise.
41631         * lib/regexec.c (check_dst_limits_calc_pos_1,
41632         check_subexp_matching_top): Likewise.
41633
41634         * lib/regcomp.c (optimize_subexps, lower_subexp):
41635         Use CHAR_BIT rather than 8, for clarity.
41636         * lib/regexec.c (check_dst_limits_calc_pos_1):
41637         (check_subexp_matching_top): Likewise.
41638         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
41639         have to worry about portability issues when shifting it left.
41640         Remove no-longer-needed test for table_size > 0.
41641         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
41642         in a word, as the resulting behavior is undefined.
41643         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
41644         in one case, a <= should have been an <, and in another case the
41645         whole test was missing.
41646         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
41647         the standard name CHAR_BIT.
41648         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
41649         this is not true on one's complement and signed-magnitude hosts.
41650
41651         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
41652         next_last_offset.
41653         (struct re_dfa_t): Remove unused member states_alloc.
41654         * lib/regcomp.c (init_dfa): Don't initialize unused members.
41655
41656 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
41657
41658         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
41659         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
41660         and large-file glibc and in 32-bit large-file Solaris.
41661
41662 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
41663
41664         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
41665         lengths fit in regoff_t; this isn't true if regoff_t is the same
41666         width as size_t.
41667         * lib/regex.c (re_search_internal): 5th arg is LAST_START
41668         (= START + RANGE) instead of RANGE.  This avoids overflow
41669         problems when regoff_t is the same width as size_t.
41670         All callers changed.
41671         (re_search_2_stub): Check for overflow when adding the
41672         sizes of the two strings.
41673         (re_search_stub): Check for overflow when adding START
41674         to RANGE; if it occurs, substitute the extreme value.
41675
41676 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
41677
41678         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
41679
41680 2005-08-31  Jim Meyering  <jim@meyering.net>
41681
41682         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
41683         a pointer-to-const.
41684         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
41685         (register_state): Likewise.
41686         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
41687         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
41688         (group_nodes_into_DFAstates): Likewise.
41689
41690 2005-08-31  Jim Meyering  <jim@meyering.net>
41691
41692         * check-module: Add a FIXME comment.
41693
41694 2005-08-31  Eric Blake  <ebb9@byu.net>
41695
41696         * modules/unistd-safer (Files): Add unistd--.h.
41697         * modules/stdio-safer (Files): Add stdio--.h.
41698
41699 2005-08-31  Derek Price  <derek@ximbiot.com>
41700
41701         * lib/getdelim.c (getdelim): Return EOF on EOF.
41702         Reported by Larry Jones <lawrence.jones@ugs.com>.
41703
41704 2005-08-31  Bruno Haible  <bruno@clisp.org>
41705
41706         Avoid unnecessary diffs in the generated lib/Makefile.am.
41707         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
41708         the generated files.
41709         (func_import): Don't set cmd.
41710
41711 2005-08-31  Bruno Haible  <bruno@clisp.org>
41712
41713         * lib/strstr.c: Include <stddef.h>, for NULL.
41714         * lib/strcasestr.c: Likewise.
41715         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
41716
41717 2005-08-31  Bruno Haible  <bruno@clisp.org>
41718
41719         * gnulib-tool: New option --macro-prefix.
41720         (func_import): Use macro_prefix.
41721         (import): Handle option --macro-prefix.
41722
41723 2005-08-31  Bruno Haible  <bruno@clisp.org>
41724
41725         * gnulib-tool (import): Rename most ac_* variables to cached_*.
41726         Also use new variables cached_lgpl, cached_libtool.
41727
41728 2005-08-31  Bruno Haible  <bruno@clisp.org>
41729
41730         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
41731         always instantiating them.
41732
41733 2005-08-31  Bruno Haible  <bruno@clisp.org>
41734
41735         * gnulib-tool (func_import): Read the previous cached settings
41736         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
41737         earlier added by gnulib but are now dropped. Warn when a gnulib file
41738         overwrites a non-gnulib file.
41739
41740 2005-08-31  Bruno Haible  <bruno@clisp.org>
41741
41742         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
41743         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
41744         projects that don't keep autogenerated files in CVS. Put into
41745         actioncmd only the specified modules, not the transitive closure.
41746
41747 2005-08-31  Bruno Haible  <bruno@clisp.org>
41748
41749         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
41750         Create directories that shall be filled.
41751         (import): Don't look for gl_* macros in configure.ac. Recurse across
41752         all directories containing a gnulib-cache.m4 files, if meaningful.
41753
41754 2005-08-31  Bruno Haible  <bruno@clisp.org>
41755
41756         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
41757         (import): Set seen_libtool when we see gl_LIBTOOL.
41758
41759 2005-08-31  Bruno Haible  <bruno@clisp.org>
41760
41761         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
41762         declaration macro definitions from generated gnulib.m4.
41763
41764 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
41765
41766         * lib/iconvme.h: Add prototype for iconv_alloc.
41767
41768 2005-08-29  Simon Josefsson  <jas@extundo.com>
41769
41770         * lib/iconvme.c: Fix errno.
41771
41772 2005-08-29  Bruno Haible  <bruno@clisp.org>
41773
41774         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
41775         that it works when the directory contains spaces.
41776
41777 2005-08-29  Bruno Haible  <bruno@clisp.org>
41778
41779         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
41780
41781 2005-08-29  Bruno Haible  <bruno@clisp.org>
41782
41783         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
41784         Emit more advice.
41785
41786 2005-08-29  Bruno Haible  <bruno@clisp.org>
41787         and Stepan Kasal  <kasal@ucw.cz>
41788
41789         * check-module: If more parameters are given, check each of them
41790         separately; add more exceptions, as noted by Jim Meyering.
41791         (check_module): New procedure.
41792         (%exempt_header): Now contains all exceptions.
41793
41794 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
41795
41796         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
41797
41798 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
41799
41800         * lib/iconvme.c: Split iconv_string into iconv_alloc.
41801
41802 2005-08-28  Bruno Haible  <bruno@clisp.org>
41803
41804         * m4/gnulib-tool.m4: New file.
41805
41806 2005-08-27  Jim Meyering  <jim@meyering.net>
41807
41808         * modules/unistd-safer (Files): Add pipe-safer.c.
41809         * modules/fcntl-safer (Files): Add creat-safer.c.
41810
41811 2005-08-27  Jim Meyering  <jim@meyering.net>
41812
41813         * m4/stdlib-safer.m4: New file.  From coreutils.
41814         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
41815         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
41816         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
41817         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
41818         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
41819
41820 2005-08-27  Jim Meyering  <jim@meyering.net>
41821
41822         * lib/fopen-safer.c: Merge minor changes from coreutils.
41823         * lib/dup-safer.c: Likewise.
41824         * lib/fd-safer.c: Likewise.
41825
41826         Merge from coreutils.
41827         * lib/stdio--.h: New file.
41828         * lib/stdlib--.h: New file.
41829         * lib/mkstemp-safer.c: New file.
41830
41831         GNU tar needs these.
41832         * lib/pipe-safer.c: New file.
41833         * lib/creat-safer.c: New file.
41834         * lib/fcntl--.h (creat): Define to creat_safer.
41835         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
41836         * lib/unistd--.h (pipe): Define to pipe_safer.
41837         * lib/unistd-safer.h: Declare pipe_safer.
41838
41839 2005-08-26  Simon Josefsson  <jas@extundo.com>
41840
41841         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
41842         Haible <bruno@clisp.org>.
41843
41844 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
41845
41846         * lib/regex_internal.h: Remove all references to
41847         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
41848         or better.
41849         (bitset_not, bitset_merge, bitset_not_merge):
41850         (bitset_mask, re_string_allocate, re_string_construct):
41851         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
41852         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
41853         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
41854         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
41855         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
41856         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
41857         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
41858         (re_acquire_state_context):
41859         Remove unnecessary forward decls.
41860         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
41861         Put __attribute at function definition,
41862         now that the function decl has been removed.
41863         * lib/regex_internal.c (re_string_peek_byte_case):
41864         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
41865         Likewise.
41866
41867 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
41868
41869         * m4/regex.m4: Add AC_PREREQ(2.50).
41870         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
41871
41872 2005-08-25  Simon Josefsson  <jas@extundo.com>
41873
41874         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
41875         __fsetlocking.
41876
41877 2005-08-25  Simon Josefsson  <jas@extundo.com>
41878
41879         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
41880         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
41881         GLIBC specific code.
41882
41883 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
41884
41885         Make regex safe for g++.  This fixes one real bug (an "err"
41886         that should have been "*err").  g++ problem reported by
41887         Sam Steingold.
41888         * lib/regex_internal.h (re_calloc): New macro, consistent with
41889         re_malloc etc.  All callers of calloc changed to use re_calloc.
41890         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
41891         not int.  All callers changed.
41892         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
41893         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
41894         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
41895         (find_recover_state): Change "err" to "*err"; this fixes what
41896         appears to be a real bug.
41897         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
41898         versus int.
41899
41900 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
41901
41902         * modules/regex (Depends-on): Add malloc, since the code
41903         assumes that !malloc(0) means failure.
41904
41905 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
41906
41907         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
41908
41909         alloca modernization/simplification for regex.
41910         * lib/regex.c: Remove portability cruft for alloca.  This no longer
41911         needs to be at the start of the file, and can be moved into
41912         regex_internal.h and simplified.
41913         * lib/regex_internal.h: Include <alloca.h>.
41914         (__libc_use_alloca) [!defined _LIBC]: New macro.
41915         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
41916         now works outside glibc.
41917
41918 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
41919
41920         * config/srclist.txt: Add glibc bugs 1241, 1245.
41921
41922 2005-08-25  Jim Meyering  <jim@meyering.net>
41923
41924         * lib/open-safer.c: Include <config.h>.
41925         Otherwise, we'd lose LARGEFILE support in any file using
41926         e.g. "fcntl--.h"
41927
41928 2005-08-25  Bruno Haible  <bruno@clisp.org>
41929
41930         * m4/minmax.m4: Require autoconf 2.52.
41931         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
41932         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
41933         alternatives of translit over the alphabet.
41934         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
41935
41936 2005-08-24  Simon Josefsson  <jas@extundo.com>
41937
41938         * tests/test-getpass.c: New file.
41939
41940 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
41941
41942         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
41943         for GNU regex features.
41944
41945 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
41946
41947         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
41948         * lib/regex.h (regerror): Likewise.
41949
41950         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
41951         requires this.  (The code never needed it.)
41952
41953         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
41954         All uses of recently-renamed identifiers changed to use the new,
41955         POSIX-compliant names.  The code will build and run just fine
41956         without these changes, but it's better to eat our own dog food
41957         and use the standard-conforming names.
41958
41959         * lib/regex.h: Fix a multitude of POSIX name space violations.
41960         These changes have an effect only for programs that define
41961         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
41962         do not change anything for programs compiled in the normal way.
41963         Also, there is no effect on the ABI.
41964
41965         (_REGEX_SOURCE): New macro.
41966         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
41967         defined and _GNU_SOURCE is not; this fixes a name space violation.
41968
41969         Rename the following macros to obey POSIX requirements.
41970         The old names are still visible as macros if _REGEX_SOURCE is defined.
41971         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
41972         RE_BACKSLASH_ESCAPE_IN_LISTS.
41973         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
41974         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
41975         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
41976         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
41977         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
41978         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
41979         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
41980         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
41981         (REG_INTERVALS): renamed from RE_INTERVALS.
41982         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
41983         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
41984         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
41985         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
41986         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
41987         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
41988         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
41989         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
41990         RE_UNMATCHED_RIGHT_PAREN_ORD.
41991         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
41992         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
41993         (REG_DEBUG): renamed from RE_DEBUG.
41994         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
41995         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
41996         unusual, since we can't clash with the POSIX REG_ICASE.
41997         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
41998         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
41999         (REG_NO_SUB): renamed from RE_NO_SUB.
42000         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
42001         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
42002         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
42003         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
42004         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
42005         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
42006         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
42007         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
42008         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
42009         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
42010         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
42011         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
42012         RE_SYNTAX_POSIX_MINIMAL_BASIC.
42013         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
42014         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
42015         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
42016         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
42017         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
42018         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
42019         (REG_FIXED): Renamed from REGS_FIXED.
42020         (REG_NREGS): Renamed from RE_NREGS.
42021
42022         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
42023         of other REG_* macros, since POSIX says the user is allowed to
42024         #undef these macros selectively.
42025
42026         (reg_errcode_t): Update comment stating what other tables need
42027         to be consistent.
42028
42029         Rename the following enum values to obey POSIX requirements.
42030         The old names are still visible as macros.
42031         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
42032         is not defined, since GNU is supposed to be a superset of POSIX as
42033         much as possible, and since we want reg_errcode_t to be a signed
42034         type for implementation consistency.
42035         (_REG_NOERROR): Renamed from REG_NOERROR.
42036         (_REG_NOMATCH): Renamed from REG_NOMATCH.
42037         (_REG_BADPAT): Renamed from REG_BADPAT.
42038         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
42039         (_REG_ECTYPE): Renamed from REG_ECTYPE.
42040         (_REG_EESCAPE): Renamed from REG_EESCAPE.
42041         (_REG_ESUBREG): Renamed from REG_ESUBREG.
42042         (_REG_EBRACK): Renamed from REG_EBRACK.
42043         (_REG_EPAREN): Renamed from REG_EPAREN.
42044         (_REG_EBRACE): Renamed from REG_EBRACE.
42045         (_REG_BADBR): Renamed from REG_BADBR.
42046         (_REG_ERANGE): Renamed from REG_ERANGE.
42047         (_REG_ESPACE): Renamed from REG_ESPACE.
42048         (_REG_BADRPT): Renamed from REG_BADRPT.
42049         (_REG_EEND): Renamed from REG_EEND.
42050         (_REG_ESIZE): Renamed from REG_ESIZE.
42051         (_REG_ERPAREN): Renamed from REG_ERPAREN.
42052         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
42053         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
42054         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
42055         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
42056
42057         (_REG_RE_NAME, _REG_RM_NAME): New macros.
42058         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
42059         changed.  But support the old name if the new one is not defined
42060         and if _REGEX_SOURCE.
42061
42062         Change the following member names in struct re_pattern_buffer.
42063         The old names are still supported if !_REGEX_SOURCE.
42064         The new names are always supported, regardless of _REGEX_SOURCE.
42065         (re_buffer): Renamed from buffer.
42066         (re_allocated): Renamed from allocated.
42067         (re_used): Renamed from used.
42068         (re_syntax): Renamed from syntax.
42069         (re_fastmap): Renamed from fastmap.
42070         (re_translate): Renamed from translate.
42071         (re_can_be_null): Renamed from can_be_null.
42072         (re_regs_allocated): Renamed from regs_allocated.
42073         (re_fastmap_accurate): Renamed from fastmap_accurate.
42074         (re_no_sub): Renamed from no_sub.
42075         (re_not_bol): Renamed from not_bol.
42076         (re_not_eol): Renamed from not_eol.
42077         (re_newline_anchor): Renamed from newline_anchor.
42078
42079         Change the following member names in struct re_registers.
42080         The old names are still supported if !_REGEX_SOURCE.
42081         The new names are always supported, regardless of _REGEX_SOURCE.
42082         (rm_num_regs): Renamed from num_regs.
42083         (rm_start): Renamed from start.
42084         (rm_end): Renamed from end.
42085
42086         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
42087         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
42088         Prepend __ to parameter names.
42089
42090         Undo yesterday's changes.
42091
42092 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
42093
42094         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
42095         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
42096         lib/regex.c.
42097
42098 2005-08-24  Jim Meyering  <jim@meyering.net>
42099
42100         Sync from coreutils.
42101         * m4/fcntl-safer.m4: New file.
42102
42103         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
42104         and object files for this module.
42105
42106 2005-08-24  Jim Meyering  <jim@meyering.net>
42107
42108         Sync from coreutils.
42109         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
42110
42111 2005-08-24  Jim Meyering  <jim@meyering.net>
42112
42113         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
42114         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
42115
42116 2005-08-24  Jim Meyering  <jim@meyering.net>
42117
42118         * modules/fcntl-safer: New module.
42119         * modules/fts (Depends-on): Add fcntl-safer.
42120         * MODULES.html.sh (File descriptor based Input/Output):
42121         Add fcntl-safer.
42122
42123 2005-08-24  Bruno Haible  <bruno@clisp.org>
42124
42125         Support for unit test modules.
42126         * modules/README: Mention tests modules.
42127         * modules/TEMPLATE-TESTS: New file.
42128         * gnulib-tool: New options --extract-tests-module, --with-tests and
42129         --tests-base (unused for the moment).
42130         (testsbase, inctests): New variables.
42131         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
42132         (func_verify_module): Exclude TEMPLATE-TESTS.
42133         (func_verify_nontests_module, func_verify_tests_module): New functions.
42134         (func_get_dependencies): Add implicit dependency for tests modules.
42135         (func_get_tests_module): New function.
42136         (func_modules_transitive_closure): When --with-tests was specified,
42137         include the unit tests as well, unless explicitly avoided.
42138         (func_emit_lib_Makefile_am): Ignore the tests modules here.
42139         (func_emit_tests_Makefile_am): New function.
42140         (func_create_testdir): When --with-tests was specified, emit a
42141         tests/ directory.
42142         * MODULES.html.sh (Future developments): Update.
42143
42144 2005-08-24  Bruno Haible  <bruno@clisp.org>
42145
42146         * modules/tls-tests: New file.
42147         * tests/test-tls.c: New file, from GNU gettext.
42148
42149 2005-08-24  Bruno Haible  <bruno@clisp.org>
42150
42151         * modules/lock-tests: New file.
42152         * tests/test-lock.c: New file, from GNU gettext.
42153
42154 2005-08-24  Bruno Haible  <bruno@clisp.org>
42155
42156         * lib/lock.h: Add multiple inclusion guard.
42157         * lib/tls.h: Add multiple inclusion guard.
42158
42159 2005-08-24  Bruno Haible  <bruno@clisp.org>
42160
42161         * gnulib-tool: Add support for the --aux-dir option to
42162         --create-testdir, --create-megatestdir, --test, --megatest.
42163         (func_create_testdir, func_create_megatestdir): Optionally emit a
42164         AC_CONFIG_AUX_DIR directive.
42165         (create-testdir, create-megatestdir, test, megatest): Provide a
42166         default value for $auxdir.
42167
42168 2005-08-24  Bruno Haible  <bruno@clisp.org>
42169
42170         * gnulib-tool (import): Use compound statement instead of subshell
42171         where possible.
42172
42173 2005-08-24  Bruno Haible  <bruno@clisp.org>
42174
42175         * gnulib-tool (import): Change --aux-dir default to "build-aux".
42176
42177 2005-08-24  Bruno Haible  <bruno@clisp.org>
42178
42179         * gnulib-tool (func_version): Update.
42180
42181 2005-08-24  Bruno Haible  <bruno@clisp.org>
42182
42183         * gnulib-tool (func_import, func_create_testdir,
42184         func_create_megatestdir): Quote all autoconf macro arguments.
42185
42186 2005-08-24  Bruno Haible  <bruno@clisp.org>
42187
42188         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
42189         option --force, because --force causes the aclocal.m4 of each
42190         subdirectory to be newer than the corresponding config.h.in.
42191
42192 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
42193
42194         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
42195         All contents moved to gl_REGEX.
42196         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
42197         assume that it does.
42198
42199 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
42200
42201         * lib/regex.h (REG_NOSYS)
42202         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
42203         Define, since POSIX requires it as of 2001.
42204         (_REG_ENOSYS)
42205         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
42206         New private symbol, used to keep the enum signed in all cases.
42207         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
42208         Youngman in
42209         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
42210
42211         * lib/regex_internal.c (re_string_skip_chars, register_state):
42212         (calc_state_hash):
42213         Remove forward decls; no longer needed now that we use prototypes.
42214         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
42215         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
42216         (clean_state_log_if_needed): Likewise.
42217
42218 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
42219
42220         * config/srclist.txt: Add glibc bugs 1231-1233.
42221
42222 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
42223
42224         Fix problems reported by Sam Steingold in
42225         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
42226         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
42227         assumed that reg_errcode_t is a signed type, which is not
42228         necessarily true if _XOPEN_SOURCE is not defined.
42229         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
42230         since some compilers warn about it otherwise.
42231
42232 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
42233
42234         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
42235         (init_word_char, create_initial_state, duplicate_node_closure):
42236         (fetch_token, peek_token_bracket, build_range_exp):
42237         (build_collating_symbol): Remove forward decls; no longer needed
42238         now that we use prototypes.
42239
42240         * lib/regcomp.c:
42241         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
42242         (re_compile_fastmap_iter, regcomp, regerror, regfree):
42243         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
42244         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
42245         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
42246         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
42247         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
42248         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
42249         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
42250         (build_range_exp, build_collating_symbol, parse_bracket_exp):
42251         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
42252         (build_charclass, build_charclass_op, fetch_number, create_tree):
42253         (create_token_tree, mark_opt_subexp, duplicate_tree):
42254         Use prototypes rather than old-style definitions.
42255
42256         * lib/regex_internal.c:
42257         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
42258         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
42259         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
42260         (re_string_reconstruct, re_string_peek_byte_case):
42261         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
42262         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
42263         (re_node_set_init_copy, re_node_set_add_intersect):
42264         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
42265         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
42266         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
42267         (re_acquire_state, re_acquire_state_context, register_state):
42268         (create_ci_newstate, create_cd_newstate, free_state):
42269         Likewise.
42270         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
42271         re_search_2):
42272         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
42273         (re_search_internal, prune_impossible_nodes):
42274         (acquire_init_state_context, check_matching, static):
42275         (check_halt_node_context, check_halt_state_context, proceed_next_node):
42276         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
42277         (update_regs, sift_states_backward, build_sifted_states):
42278         (clean_state_log_if_needed, merge_state_array):
42279         (update_cur_sifted_state, add_epsilon_src_nodes):
42280         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
42281         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
42282         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
42283         (find_recover_state, check_subexp_matching_top, transit_state_mb):
42284         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
42285         (check_arrival, check_arrival_add_next_nodes):
42286         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
42287         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
42288         (check_node_accept_bytes, check_node_accept, extend_buffers):
42289         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
42290         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
42291         (sift_ctx_init):
42292         Likewise.
42293
42294         * lib/regex_internal.h:
42295         (re_string_allocate, re_string_construct, re_string_reconstruct):
42296         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
42297         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
42298         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
42299         (re_string_context_at, re_string_peek_byte_case):
42300         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
42301         is defined, since we now use prototypes always.
42302
42303         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
42304         C89 or better.  All uses removed.
42305
42306 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
42307
42308         * config/srclist.txt: Add glibc bugs 1220-1227.
42309
42310 2005-08-20  Jim Meyering  <jim@meyering.net>
42311
42312         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
42313         of unused local, dfa.
42314
42315 2005-08-20  Bruno Haible  <bruno@clisp.org>
42316
42317         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
42318
42319 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
42320
42321         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
42322         (re_node_set_insert_last, re_dfa_add_node):
42323         Rename local variables to avoid GCC shadowing warnings.
42324
42325 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
42326
42327         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
42328         [defined lint]: Suppress bogus uninitialized-variable warnings.
42329
42330         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
42331         and let the caller return REG_ESPACE if out of space.  This
42332         removes an uninitialied-variable warning with GCC 4.0.1, and also
42333         avoids taking the address of a local variable.  All callers
42334         changed.
42335
42336 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
42337
42338         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
42339         $LIBCSRC/posix/regexec.c.
42340         Add glibc bug 1217 for regcomp.c.
42341
42342 2005-08-19  Jim Meyering  <jim@meyering.net>
42343
42344         * lib/regexec.c (proceed_next_node): Redo local variables to
42345         avoid GCC shadowing warnings.
42346
42347 2005-08-18  Bruno Haible  <bruno@clisp.org>
42348
42349         * lib/strstr.c (strstr): Fix return value in multibyte case.
42350         * lib/strcasestr.c (strcasestr): Likewise.
42351
42352 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
42353
42354         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
42355
42356 2005-08-17  Jim Meyering  <jim@meyering.net>
42357
42358         Make the %s format (seconds since the epoch) work for a negative
42359         number and when used with a zero-padded field width, e.g. %015s.
42360
42361         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
42362         label so that it precedes the code to set `digits'.  Otherwise,
42363         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
42364         print `00-22'.  Now, it prints `-0022', as it should.
42365
42366 2005-08-17  Bruno Haible  <bruno@clisp.org>
42367
42368         * modules/strstr (Files): Add m4/mbrtowc.m4.
42369         (Depends-on): Add mbuiter.
42370
42371 2005-08-17  Bruno Haible  <bruno@clisp.org>
42372
42373         * modules/strcasestr: New file.
42374         * MODULES.html.sh (String handling, based on ANSI C 89): Add
42375         strcasestr.
42376
42377 2005-08-17  Bruno Haible  <bruno@clisp.org>
42378
42379         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
42380
42381 2005-08-17  Bruno Haible  <bruno@clisp.org>
42382
42383         * modules/mbuiter: New file.
42384         * MODULES.html.sh (Extended multibyte and wide character utilities):
42385         Add mbuiter.
42386
42387 2005-08-17  Bruno Haible  <bruno@clisp.org>
42388
42389         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
42390         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
42391
42392 2005-08-17  Bruno Haible  <bruno@clisp.org>
42393
42394         * m4/strcasestr.m4: New file.
42395
42396 2005-08-17  Bruno Haible  <bruno@clisp.org>
42397
42398         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
42399         * lib/strstr.c: Completely rewritten, with multibyte locale support.
42400
42401 2005-08-17  Bruno Haible  <bruno@clisp.org>
42402
42403         * lib/strcasestr.h: New file.
42404         * lib/strcasestr.c: New file.
42405
42406 2005-08-17  Bruno Haible  <bruno@clisp.org>
42407
42408         * lib/strcasecmp.c: Use mbuiter.h.
42409
42410 2005-08-17  Bruno Haible  <bruno@clisp.org>
42411
42412         * lib/mbuiter.h: New file.
42413
42414 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
42415
42416         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
42417         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
42418         and gl_GETOPT are both invoked via different paths (as happens
42419         with GNU tar CVS because it uses both argp and getopt), the former
42420         wins.
42421
42422 2005-08-16  Bruno Haible  <bruno@clisp.org>
42423
42424         * modules/tls: New file.
42425         * MODULES.html.sh (Multithreading): Add tls.
42426
42427 2005-08-16  Bruno Haible  <bruno@clisp.org>
42428
42429         * modules/strnlen1: New file.
42430         * MODULES.html.sh (String handling): Add strnlen1.
42431
42432 2005-08-16  Bruno Haible  <bruno@clisp.org>
42433
42434         * modules/strcase (Files): Add m4/mbrtowc.m4.
42435         (Depends-on): Add strnlen1, mbchar.
42436
42437 2005-08-16  Bruno Haible  <bruno@clisp.org>
42438
42439         * modules/mbiter: New file.
42440         * MODULES.html.sh (Extended multibyte and wide character utilities):
42441         Add mbiter.
42442
42443 2005-08-16  Bruno Haible  <bruno@clisp.org>
42444
42445         * modules/mbfile: New file.
42446         * MODULES.html.sh (Extended multibyte and wide character utilities):
42447         Add mbfile.
42448
42449 2005-08-16  Bruno Haible  <bruno@clisp.org>
42450
42451         * modules/mbchar: New file.
42452         * MODULES.html.sh (Extended multibyte and wide character utilities):
42453         New section.
42454
42455 2005-08-16  Bruno Haible  <bruno@clisp.org>
42456
42457         * m4/tls.m4: New file, from GNU gettext.
42458
42459 2005-08-16  Bruno Haible  <bruno@clisp.org>
42460
42461         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
42462         always.
42463         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
42464
42465 2005-08-16  Bruno Haible  <bruno@clisp.org>
42466
42467         * m4/mbiter.m4: New file.
42468
42469 2005-08-16  Bruno Haible  <bruno@clisp.org>
42470
42471         * m4/mbfile.m4: New file.
42472
42473 2005-08-16  Bruno Haible  <bruno@clisp.org>
42474
42475         * m4/mbchar.m4: New file.
42476
42477 2005-08-16  Bruno Haible  <bruno@clisp.org>
42478
42479         * lib/tls.h: New file, from GNU gettext.
42480         * lib/tls.c: New file, from GNU gettext.
42481
42482 2005-08-16  Bruno Haible  <bruno@clisp.org>
42483
42484         * lib/strnlen1.h: New file.
42485         * lib/strnlen1.c: New file.
42486
42487 2005-08-16  Bruno Haible  <bruno@clisp.org>
42488
42489         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
42490         (mbi_init): Update.
42491         (mbi_avail, mbi_advance): Let the iteration end before the terminating
42492         NUL byte, not after it.
42493
42494 2005-08-16  Bruno Haible  <bruno@clisp.org>
42495
42496         * lib/strcase.h (strcasecmp): Add note in comments.
42497         * lib/strncasecmp.c: Use code from strcasecmp.c.
42498         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
42499         (strcasecmp): Work correctly in multibyte locales.
42500
42501 2005-08-16  Bruno Haible  <bruno@clisp.org>
42502
42503         * lib/mbiter.h: New file.
42504
42505 2005-08-16  Bruno Haible  <bruno@clisp.org>
42506
42507         * lib/mbfile.h: New file.
42508
42509 2005-08-16  Bruno Haible  <bruno@clisp.org>
42510
42511         * lib/mbchar.h: New file.
42512         * lib/mbchar.c: New file.
42513
42514 2005-08-16  Bruno Haible  <bruno@clisp.org>
42515
42516         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
42517         the valid ones. Makes the comparison operations transitive:
42518         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
42519         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
42520
42521 2005-08-15  Simon Josefsson  <jas@extundo.com>
42522
42523         * modules/ssize_t (License): Change to 'unlimited'.
42524
42525         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
42526
42527 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
42528
42529         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
42530         Add comments for each pending glibc patch.
42531
42532 2005-08-15  Bruno Haible  <bruno@clisp.org>
42533
42534         * lib/regex.h (__restrict_arr): Don't define to __restrict if
42535         __cplusplus is defined.
42536
42537 2005-08-14  Jim Meyering  <jim@meyering.net>
42538
42539         Sync from coreutils.
42540
42541         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
42542         Use the hash-table-based cycle-detection code not just when
42543         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
42544         Reported by James Youngman in
42545         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
42546         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
42547         FTS_TIGHT_CYCLE_CHECK.
42548         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
42549         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
42550         once again.
42551         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
42552         * lib/fts.c (fd_safer): Remove decl.
42553         Include fcntl--.h rather than unistd-safer.h
42554         (fts_safe_changedir): Don't call fd_safer; no longer needed
42555         now that we include fcntl--.h.
42556
42557 2005-08-12  Simon Josefsson  <jas@extundo.com>
42558
42559         * modules/getndelim2: Use ssize_t module.
42560         * modules/getnline: Likewise.
42561         * modules/safe-read: Likewise.
42562         * modules/xreadlink: Likewise.
42563
42564         * modules/ssize_t: New file.
42565
42566 2005-08-12  Simon Josefsson  <jas@extundo.com>
42567
42568         * m4/readline.m4: Look for termcap, curses or ncurses if required.
42569
42570 2005-08-12  Simon Josefsson  <jas@extundo.com>
42571
42572         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
42573         ssize_t.
42574
42575 2005-08-12  Simon Josefsson  <jas@extundo.com>
42576
42577         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
42578         readline, getdelim and check_version.
42579         (Support for systems lacking ISO C 99: Sizes of integer types):
42580         Add size_max.
42581
42582 2005-08-12  Bruno Haible  <bruno@clisp.org>
42583
42584         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
42585
42586 2005-08-11  Simon Josefsson  <jas@extundo.com>
42587
42588         * modules/readline: New file.
42589
42590         * modules/strnlen (Files): Add strnlen.h.
42591
42592 2005-08-11  Simon Josefsson  <jas@extundo.com>
42593
42594         * m4/readline.m4: New file.
42595
42596 2005-08-11  Simon Josefsson  <jas@extundo.com>
42597
42598         * lib/readline.h, readline.c: New file.
42599
42600 2005-08-11  Simon Josefsson  <jas@extundo.com>
42601
42602         * doc/gnulib.texi (Initial import, Finishing touches): Mention
42603         gl_AVOID.
42604
42605 2005-08-11  Bruno Haible  <bruno@clisp.org>
42606
42607         * lib/strnlen.h (strnlen): Change parameter name to match comment.
42608
42609 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
42610
42611         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
42612
42613 2005-08-10  Simon Josefsson  <jas@extundo.com>
42614
42615         * tests/test-iconvme.c: New file.
42616
42617 2005-08-10  Simon Josefsson  <jas@extundo.com>
42618
42619         * m4/strnlen.m4: New file.
42620
42621         * m4/strndup.m4: Don't check for strnlen declaration, done in
42622         strnlen.m4.
42623
42624 2005-08-10  Simon Josefsson  <jas@extundo.com>
42625
42626         * lib/strndup.c: Use strnlen.h.
42627
42628         * lib/strnlen.h: New file.
42629
42630 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
42631
42632         * README: Typos.
42633
42634 2005-08-02  Simon Josefsson  <jas@extundo.com>
42635
42636         * modules/readline: New file.
42637
42638 2005-08-02  Simon Josefsson  <jas@extundo.com>
42639
42640         * modules/getdelim: New file.
42641
42642         * modules/getline: Rewrite, don't use getndelim2.
42643
42644 2005-08-02  Simon Josefsson  <jas@extundo.com>
42645
42646         * m4/getline.m4: Separate out getdelim stuff into separate module.
42647
42648         * m4/getdelim.m4: New file.
42649
42650 2005-08-02  Simon Josefsson  <jas@extundo.com>
42651
42652         * lib/getline.h, getline.c: Rewrite.
42653
42654         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
42655
42656 2005-07-31  Bruno Haible  <bruno@clisp.org>
42657
42658         * lib/lock.h (gl_lock_initializer): New macro.
42659         (gl_lock_define_initialized): Use it.
42660         (gl_rwlock_initializer): New macro.
42661         (gl_rwlock_define_initialized): Use it.
42662         (gl_recursive_lock_initializer): New macro.
42663         (gl_recursive_lock_define_initialized): Use it.
42664
42665 2005-07-30  Karl Berry  <karl@gnu.org>
42666
42667         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
42668         Report from Ben Pfaff, regarding getopt.
42669
42670 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
42671
42672         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
42673         normal way.
42674         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
42675         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
42676         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
42677         (gl_GETOPT): Use the new macros.  Most of the implementation
42678         is moved to the new macros.  This is for programs like Emacs
42679         that don't want all the functionality of gl_GETOPT.
42680
42681 2005-07-26  Bruno Haible  <bruno@clisp.org>
42682
42683         * m4/lock.m4: Update from GNU gettext.
42684
42685 2005-07-26  Bruno Haible  <bruno@clisp.org>
42686
42687         * lib/lock.h: Update from GNU gettext.
42688         * lib/lock.c: Update from GNU gettext.
42689
42690 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
42691
42692         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
42693         obsolescent AC_TRY_RUN.  Include the default includes files, for
42694         'exit'.
42695
42696 2005-07-24  Bruno Haible  <bruno@clisp.org>
42697
42698         * modules/visibility: New file.
42699         * MODULES.html.sh (Misc): Add visibility.
42700
42701 2005-07-24  Bruno Haible  <bruno@clisp.org>
42702
42703         * m4/visibility.m4: New file.
42704
42705 2005-07-24  Bruno Haible  <bruno@clisp.org>
42706
42707         * doc/visibility.texi: New file.
42708
42709 2005-07-22  Bruno Haible  <bruno@clisp.org>
42710
42711         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
42712         $(ALLOCA_H), redundant through BUILT_SOURCES.
42713         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
42714         redundant through BUILT_SOURCES.
42715         * modules/byteswap (Makefile.am): Remove explicit dependency on
42716         $(BYTESWAP_H), redundant through BUILT_SOURCES.
42717         * modules/fnmatch (Makefile.am): Remove explicit dependency on
42718         $(FNMATCH_H), redundant through BUILT_SOURCES.
42719         * modules/getopt (Makefile.am): Remove explicit dependency on
42720         $(GETOPT_H), redundant through BUILT_SOURCES.
42721         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
42722         redundant through BUILT_SOURCES.
42723         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
42724         redundant through BUILT_SOURCES.
42725         * modules/stdbool (Makefile.am): Remove explicit dependency on
42726         $(STDBOOL_H), redundant through BUILT_SOURCES.
42727         * modules/stdint (Makefile.am): Remove explicit dependency on
42728         $(STDINT_H), redundant through BUILT_SOURCES.
42729         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
42730         Remove explicit dependency on $(SYSEXITS_H).
42731         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
42732
42733 2005-07-18  Simon Josefsson  <jas@extundo.com>
42734
42735         * lib/check-version.c (check_version): Accept identical versions too.
42736
42737 2005-07-18  Bruno Haible  <bruno@clisp.org>
42738
42739         * modules/lock: New file.
42740         * MODULES.html.sh (Multithreading): New section.
42741
42742 2005-07-18  Bruno Haible  <bruno@clisp.org>
42743
42744         * m4/lock.m4: New file, from GNU gettext.
42745
42746 2005-07-18  Bruno Haible  <bruno@clisp.org>
42747
42748         * lib/lock.h: New file, from GNU gettext.
42749         * lib/lock.c: New file, from GNU gettext.
42750
42751 2005-07-18  Bruno Haible  <bruno@clisp.org>
42752
42753         * lib/lock.h (gl_once_t): New type.
42754         (gl_once_define, gl_once): New macros.
42755         * lib/lock.c (fresh_once): New variable.
42756         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
42757         functions.
42758
42759 2005-07-16  Simon Josefsson  <jas@extundo.com>
42760
42761         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
42762         workaround, suggested by Bruno.
42763
42764 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
42765
42766         * modules/xalloc (Depends-on): Add xalloc-die.
42767         * modules/xvasprintf (Depends-on): Add xalloc-die.
42768
42769 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
42770
42771         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
42772         with a minor change.
42773
42774 2005-07-15  Bruno Haible  <bruno@clisp.org>
42775
42776         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
42777         When using lib/poll.c, define poll as rpl_poll.
42778
42779 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
42780
42781         * modules/argp (Depends-on): Remove unlocked-io.
42782
42783 2005-07-14  Derek Price  <derek@ximbiot.com>
42784
42785         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
42786         for glob symlink bug.
42787
42788 2005-07-14  Bruno Haible  <bruno@clisp.org>
42789
42790         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
42791         Instead, test for *_unlocked function declarations directly.
42792
42793 2005-07-11  Simon Josefsson  <jas@extundo.com>
42794
42795         * modules/size_max: New file.
42796
42797         * modules/xsize: Depend on size_max module for size_max.m4.
42798
42799 2005-07-11  Simon Josefsson  <jas@extundo.com>
42800
42801         * lib/size_max.h: New file.
42802
42803 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
42804
42805         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
42806         copyright symbol and the year.
42807         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
42808         (version_etc_va): Use parameterized copyright notice.
42809         Reword to conform to the current GNU coding standards.
42810
42811 2005-07-11  Karl Berry  <karl@gnu.org>
42812
42813         * doc/gnulib.texi (Quoting): new node.
42814         (Initial import): more info, from Patrice.
42815
42816 2005-07-11  Bruno Haible  <bruno@clisp.org>
42817
42818         * gnulib-tool (func_usage): Document option --avoid.
42819         (Command line options): Handle --avoid.
42820         (func_acceptable): New function.
42821         (func_modules_transitive_closure): Use it.
42822
42823 2005-07-11  Bruno Haible  <bruno@clisp.org>
42824
42825         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
42826         Reported by Jim Meyering.
42827
42828 2005-07-10  Bruno Haible  <bruno@clisp.org>
42829
42830         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
42831         Needed when size_t is smaller than 'unsigned int'.
42832         Reported by Paul Eggert.
42833
42834 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
42835
42836         * modules/argp (Depends-on): Add unlocked-io
42837
42838 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
42839
42840         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
42841         block of defines.
42842
42843 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
42844
42845         * config/srclist.txt: Comment out regcomp.c, since we have a porting
42846         fix now.
42847
42848 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
42849         and Paul Eggert  <eggert@cs.ucla.edu>
42850
42851         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
42852         in wint_t, not wchar_t.  Remove now-unnecessary cast.
42853
42854 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
42855
42856         * modules/regex (Files): Add lib/regex_internal.c,
42857         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
42858         (Depends-on): Add extensions.
42859         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
42860
42861 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
42862
42863         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
42864         pathconf.
42865         * m4/same.m4 (gl_SAME): Likewise.
42866         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
42867
42868         * m4/regex.m4: Adjust to new libc regex implementation.
42869         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
42870         all the .c and .h parts of (the new) regex.
42871         Quote the m4 stuff better.
42872         Check for RE_ICASE bug of old gnulib.
42873         Check for REG_STARTEND of recent libc.
42874         Rename local variables from jm_* to gl_*.
42875         Quote operand of "test -f".
42876         Say "recent enough" version of libc, not "version 2".
42877         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
42878         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
42879         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
42880         Remove check for btowc, isascii.
42881         Require AM_LANGINFO_CODESET.
42882
42883 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
42884
42885         * lib/regex.c, regex.h: Sync from libc.
42886         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
42887         * lib/regexec.c:
42888         New files, synced from libc, except that regex_internal.h
42889         currently has a small porting fix.
42890
42891 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
42892
42893         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
42894         regex_internal.c, regexec.c.
42895         Add regex_internal.h too, but as a comment, since the libc version
42896         is currently broken in gnulib mode.
42897
42898 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
42899
42900         Support programs like Emacs that use gnulib but not gettext.
42901         * MODULES.html.sh (Internationalization functions): Add gettext-h.
42902         * modules/gettext-h: New file.
42903         * modules/gettext (Files): Remove lib/gettext.h.
42904         (Depends-on): Add gettext-h.
42905         (Makefile.am): Remove lib_SOURCES.
42906         * modules/argmatch, modules/c-stack, modules/closeout:
42907         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
42908         * modules/execute, modules/file-type, modules/getaddrinfo:
42909         * modules/getopt, modules/human, modules/javacomp:
42910         * modules/javaexec, modules/mkdir-p, modules/obstack:
42911         * modules/openat, modules/pagealign_alloc, modules/pipe:
42912         * modules/quotearg, modules/regex, modules/rpmatch:
42913         * modules/unicodeio, modules/userspec, modules/version-etc:
42914         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
42915         * modules/xsetenv:
42916         Depend on gettext-h, not gettext.
42917
42918 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
42919
42920         * gnulib-tool (func_import): Add support for 'public domain' license.
42921         * modules/alloca, modules/atexit, modules/memmove:
42922         Now public domain, not GPL.
42923         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
42924         * modules/realloc, modules/strerror, modules/strtod:
42925         Now LGPL, not GPL.
42926
42927 2005-07-05  Bruno Haible  <bruno@clisp.org>
42928
42929         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
42930         autoconf CVS. Needed for mingw.
42931
42932 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
42933
42934         Remove the dependency of the strftime module on the tzset module.
42935         * modules/strftime (Depends-on): Remove dependency on tzset.
42936
42937 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
42938
42939         Remove the dependency of the strftime module on the tzset module.
42940         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
42941         gl_FUNC_TZSET_CLOBBER.
42942
42943 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
42944
42945         Remove the dependency of the strftime module on the tzset module.
42946         * lib/strftime.c (my_strftime)
42947         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
42948         Copy the input structure, to work around some of the bug with
42949         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
42950         Solaris releases, you should also use the tzset module, but we won't
42951         require it as a dependency any more since we don't want LGPLed code
42952         to depend on GPLed code.
42953
42954 2005-07-02  Jim Meyering  <jim@meyering.net>
42955
42956         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
42957         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
42958         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
42959         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
42960
42961 2005-07-02  Jim Meyering  <jim@meyering.net>
42962
42963         * lib/backupfile.c (backup_args): Change a `0' to NULL.
42964
42965 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
42966
42967         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
42968         declares only 'struct timespec;' (!).
42969
42970 2005-07-01  Jim Meyering  <jim@meyering.net>
42971
42972         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
42973         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
42974         * lib/save-cwd.c, tempname.c:
42975         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
42976         and don't include <sys/file.h>).
42977
42978 2005-06-29  Jim Meyering  <jim@meyering.net>
42979
42980         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
42981         type name.  Use the variable name instead.
42982         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
42983         Likewise.
42984
42985 2005-06-28  Simon Josefsson  <jas@extundo.com>
42986
42987         * modules/check-version (Files): Add check-version.m4.
42988
42989 2005-06-28  Simon Josefsson  <jas@extundo.com>
42990
42991         * m4/check-version.m4: New file, suggested by Jim Meyering
42992         <jim@meyering.net>.
42993
42994 2005-06-28  Simon Josefsson  <jas@extundo.com>
42995
42996         * lib/check-version.h, lib/check-version.c: New files.
42997
42998 2005-06-28  Simon Josefsson  <jas@extundo.com>
42999
43000         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
43001         collision with global variable.  Better indentation.  Don't
43002         increment buffer pointer beyond buffer end.  Based on comments
43003         from Paul Eggert <eggert@cs.ucla.edu>.
43004
43005         * lib/base64.h: Indent.
43006
43007 2005-06-28  Simon Josefsson  <jas@extundo.com>
43008
43009         * doc/gnulib.texi (Library version handling): New section.
43010
43011 2005-06-28  Jim Meyering  <jim@meyering.net>
43012
43013         * check-module (find_included_lib_files): Hard-code another
43014         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
43015         but modules/fts-lgpl (correctly) does not list those files.
43016
43017         * modules/canonicalize (Files): Add lib/pathmax.h.
43018
43019 2005-06-25  Simon Josefsson  <jas@extundo.com>
43020
43021         * modules/check-version: New file.
43022
43023 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
43024
43025         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
43026         initializer of struct addrinfo, as an indication that we don't
43027         care how many members the structure has.
43028
43029 2005-06-24  Derek Price  <derek@ximbiot.com>
43030         and Bruno Haible  <bruno@clisp.org>
43031
43032         Remove stat module & update lstat.
43033         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
43034         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
43035         * m4/stat.m4: Remove this file.
43036
43037 2005-06-24  Derek Price  <derek@ximbiot.com>
43038         and Bruno Haible  <bruno@clisp.org>
43039
43040         Remove stat module & update lstat.
43041         * lib/stat.c: Remove this file...
43042         (slash_aware_lstat): ...moving this content and its support...
43043         * lib/lstat.c (rpl_lstat): ...into here.
43044         * lib/lstat.h: New file.
43045
43046 2005-06-24  Derek Price  <derek@ximbiot.com>
43047         and Bruno Haible  <bruno@clisp.org>
43048
43049         Remove stat module & update lstat.
43050         * config/srclist.txt (libc sources): Remove stat.
43051
43052 2005-06-24  Derek Price  <derek@ximbiot.com>
43053         and Bruno Haible  <bruno@clisp.org>
43054
43055         Remove stat module & update lstat.
43056         * MODULES.html.sh (stat): Remove.
43057         * MODULES.html: Regenerated.
43058         * modules/lstat (Description): Correct function name.
43059         (Files): Add "lstat.h".
43060         (Depends-on): Remove stat, add xalloc, stat-macros.
43061         * modules/stat: Remove this file.
43062         (Include): Add "lstat.h", remove <sys/stat.h>.
43063
43064 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
43065
43066         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
43067         (ranged_convert): Don't save conversion in a temporary struct.
43068         This causes a warning with GCC 4.0.0, and anyway in the typical
43069         case it's not worth the extra 100 bytes or so of code.
43070         (ranged_convert, __mktime_internal): When calling a function via a
43071         pointer P, use P () rather than (*P) (), as we now assume C89 or
43072         better.
43073
43074 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
43075
43076         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
43077         "who -r" failed to give output.  Problem reported by Tim Waugh.
43078
43079         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
43080         (xcalloc): Use it to avoid needless tests.
43081         Problem reported by Jim Meyering.
43082
43083 2005-06-20  Derek Price  <derek@ximbiot.com>
43084
43085         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
43086         unnecessary for Autoconfs > 2.59c.
43087
43088 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
43089
43090         * lib/argp.h (__option_is_short): Check upper limit of
43091         __key. Isprint() requires its argument to have the value
43092         of an unsigned char or EOF.
43093
43094 2005-06-16  Jim Meyering  <jim@meyering.net>
43095
43096         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
43097         when either N or S is zero.
43098
43099 2005-06-16  Derek Price  <derek@ximbiot.com>
43100
43101         * m4/bison.m4: Declare YACC & YFLAGS precious.
43102
43103 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
43104
43105         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
43106         multibyte string or pattern, fall back on unibyte matching.
43107         Problem reported by James Youngman.
43108
43109 2005-06-08  Bruno Haible  <bruno@clisp.org>
43110
43111         * modules/csharpcomp: New file.
43112         * MODULES.html.sh (C#): Add csharpcomp.
43113
43114 2005-06-08  Bruno Haible  <bruno@clisp.org>
43115
43116         * m4/csharpcomp.m4: New file, from GNU gettext.
43117
43118 2005-06-08  Bruno Haible  <bruno@clisp.org>
43119
43120         * lib/csharpcomp.h: New file, from GNU gettext.
43121         * lib/csharpcomp.c: New file, from GNU gettext.
43122         * lib/csharpcomp.sh.in: New file, from GNU gettext.
43123
43124 2005-06-08  Bruno Haible  <bruno@clisp.org>
43125
43126         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
43127         warning on mingw.
43128
43129 2005-06-07  Derek Price  <derek@ximbiot.com>
43130
43131         Sync from CVS.
43132         * lib/glob_.h: Indent nested #ifdef.
43133
43134 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
43135
43136         Sync from coreutils.
43137         Use "file name" when talking about file names, instead of "filename"
43138         or "path", as per the GNU coding standards.
43139         * lib/mkdir-p.c: Renamed from makepath.c.
43140         (make_dir_parents): Renamed from make_path.  All callers changed.
43141         * lib/mkdir-p.h: Likewise.  All includers changed.
43142         * lib/filenamecat.c: Renamed from path-concat.c.
43143         (file_name_concat): Renamed from path_concat.  All callers changed.
43144         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
43145         * lib/filenamecat.h: Likewise.  All includers changed.
43146         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
43147         in comments or local variable names.
43148         * lib/basename.c: Likewise.
43149         * lib/canonicalize.c, canonicalize.h: Likewise.
43150         * lib/dirname.c, dirname.h: Likewise.
43151         * lib/euidaccess.c: Likewise.
43152         * lib/exclude.c: Likewise
43153         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
43154         * lib/fsusage.c, fsuage.h: Likewise.
43155         * lib/fts.c, fts_.h: Likewise.
43156         * lib/getcwd.c: Likewise.
43157         * lib/getloadavg.c: Likewise.
43158         * lib/mkstemp.c: Likewise.
43159         * lib/mountlist.c, mountlist.h: Likewise.
43160         * lib/openat.c, openat.h: Likewise.
43161         * lib/readlink-stub.c: Likewise.
43162         * lib/readutmp.c, readutmp.h: Likewise.
43163         * lib/rename.c: Likewise.
43164         * lib/rmdir.c: Likewise.
43165         * lib/same.c: Likewise.
43166         * lib/savedir.c: Likewise.
43167         * lib/stripslash.c: Likewise.
43168         * lib/tempname.c: Likewise.
43169         * lib/xreadlink.c: Likewise.
43170         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
43171         All uses changed.
43172         * lib/exclude.h: Likewise.
43173
43174         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
43175         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
43176         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
43177         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
43178         * lib/pathmax.h: Include <limits.h> unconditionally, since other
43179         files have been getting away with it for years (MORE/BSD 4.3
43180         is extinct now).
43181         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
43182         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
43183
43184         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
43185         Define to 256, not 255, as per modern POSIX.
43186
43187 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
43188
43189         Sync from coreutils.
43190         Use "file name" when talking about file names, instead of "filename"
43191         or "path", as per the GNU coding standards.
43192         * MODULES.html.sh: mkdir-p renamed from makepath.
43193         filenamecat renamed from path-concat.
43194         * modules/filenamecat: Renamed from modules/path-concat.
43195         (Files): filenamecat.h and filenamecat.c renamed from
43196         path-concat.h and path-concat.c.
43197         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
43198         (Include): filenamecat.h, not path-concat.h.
43199         * modules/mkdir-p: Renamed from modules/makepath.
43200         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
43201         makepath.c.
43202         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
43203         (Include): mkdir-p.h, not makepath.h.
43204
43205 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
43206
43207         Sync from coreutils.
43208         * m4/mkdir-p.m4: Renamed from makepath.m4.
43209         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
43210         Rename files from makepath.c to mkdir-p.c, and from
43211         makepath.h to mkdir-p.h.
43212         * m4/filenamecat.m4: Renamed from path-concat.m4.
43213         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
43214         Rename files from path-concat.c to filenamecat.c,
43215         and from path-concat.h to filenamecat.h.
43216         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
43217         "file name" in local variables or comments.
43218         * m4/rename.m4: Likewise.
43219
43220 2005-06-01  Bruno Haible  <bruno@clisp.org>
43221
43222         * modules/csharpexec: New file.
43223         * MODULES.html.sh (C#): New section.
43224
43225 2005-06-01  Bruno Haible  <bruno@clisp.org>
43226
43227         * m4/csharp.m4: New file, from GNU gettext.
43228         * m4/csharpexec.m4: New file, from GNU gettext.
43229
43230 2005-06-01  Bruno Haible  <bruno@clisp.org>
43231
43232         * lib/csharpexec.h: New file, from GNU gettext.
43233         * lib/csharpexec.c: New file, from GNU gettext.
43234         * lib/csharpexec.sh.in: New file, from GNU gettext.
43235
43236 2005-05-31  Derek Price  <derek@ximbiot.com>
43237             Paul Eggert  <eggert@cs.ucla.edu>
43238
43239         Sync from cvs.
43240         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
43241
43242 2005-05-31  Derek Price  <derek@ximbiot.com>
43243             Paul Eggert  <eggert@cs.ucla.edu>
43244
43245         Sync from cvs.
43246         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
43247
43248 2005-05-29  Derek Price  <derek@ximbiot.com>
43249
43250         * config/srclist.txt (glob_.h, glob.c): Add these files.
43251
43252 2005-05-29  Derek Price  <derek@ximbiot.com>
43253
43254         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
43255         * modules/glob: New file.
43256         * modules/getlogin_r: Add link to POSIX spec in description.
43257
43258 2005-05-29  Derek Price  <derek@ximbiot.com>
43259             Paul Eggert  <eggert@cs.ucla.edu>
43260
43261         * m4/glob.m4: New file.
43262
43263 2005-05-29  Derek Price  <derek@ximbiot.com>
43264             Paul Eggert  <eggert@cs.ucla.edu>
43265
43266         * lib/glob_.h, lib/glob.c: New files.
43267
43268 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
43269
43270         * modules/fts (Files): Remove m4/inttypes-pri.m4.
43271         * modules/fts-lgpl (Depends-on): Remove gettext.
43272
43273 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
43274
43275         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
43276         and don't require gt_INTTYPES_PRI.
43277
43278 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
43279
43280         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
43281
43282         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
43283         the configuration hassle isn't worth it.
43284         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
43285         (LONGEST_MODIFIER, PRIuMAX): Remove.
43286
43287 2005-05-27  Bruno Haible  <bruno@clisp.org>
43288
43289         * lib/getlogin_r.h: Remove second include of <stddef.h>.
43290
43291 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
43292
43293         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
43294         _POSIX_PTHREAD_SEMANTICS for Solaris.
43295
43296 2005-05-25  Derek Price  <derek@ximbiot.com>
43297
43298         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
43299
43300 2005-05-25  Derek Price  <derek@ximbiot.com>
43301             Paul Eggert  <eggert@cs.ucla.edu>
43302
43303         * modules/getlogin_r, m4/getlogin_r.m4: New files.
43304         * lib/getlogin_r.c, getlogin_r.h: New files.
43305
43306 2005-05-25  Bruno Haible  <bruno@clisp.org>
43307             Derek Price  <derek@ximbiot.com>
43308
43309         * lib/getlogin_r.h: Simplify API documentation.
43310
43311 2005-05-23  Derek Price  <derek@ximbiot.com>
43312
43313         * modules/minmax (Files): Add m4/minmax.m4.
43314         (configure.ac): Add gl_MINMAX.
43315
43316 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
43317
43318         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
43319         so that unistd-safer.h (GPL'ed code) need not be included.
43320
43321 2005-05-22  Bruno Haible  <bruno@clisp.org>
43322
43323         * m4/minmax.m4: New file.
43324         Based on a patch by Derek Price <derek@ximbiot.com>.
43325
43326 2005-05-22  Bruno Haible  <bruno@clisp.org>
43327
43328         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
43329         (INT64_MIN): Fix definition.
43330         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
43331
43332         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
43333         NEED_SIGNED_INT_TYPES.
43334
43335         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
43336         HAVE_SYSTEM_INTTYPES.
43337
43338 2005-05-22  Bruno Haible  <bruno@clisp.org>
43339
43340         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
43341         Also include <sys/param.h> if it defines MIN, MAX.
43342         Based on a patch by Derek Price <derek@ximbiot.com>.
43343
43344 2005-05-21  Jim Meyering  <jim@meyering.net>
43345
43346         * modules/fts (Files): Add m4/inttypes-pri.m4.
43347         (Depends-on): Add lstat and remove gettext.  Alphabetize.
43348
43349 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
43350
43351         New fts module.
43352         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
43353         (setup_dir, free_dir): New functions.
43354         (enter_dir, leave_dir): Define trivial
43355         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
43356         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
43357         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
43358         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
43359         Move to fts-cycle.c.
43360         (fts_open): Use setup_dir.
43361         (fts_close): Use free_dir.
43362         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
43363         This adds a label and some gotos, but the alternatives were messier.
43364         Check for memory allocation failure when entering a dir.
43365         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
43366         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
43367         (FTS): New member fts_cycle, that is a union that contains the
43368         old active_dir_ht and cycle_state.  All uses changed to mention
43369         fts_cycle.ht and fts_cycle.state.
43370         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
43371         fts.c, with the following changes:
43372         (setup_dir, free_dir): New functions.
43373         (enter_dir): Now returns bool.  Return true if successful, false
43374         if memory exhausted.  All callers changed.
43375         Do not bother partly cleaning up on
43376         memory allocation failure; that is free_dir's job.
43377         However, free ad if hash_insert fails, to avoid memory leak.
43378         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
43379         fts->fts_options to see which union member to use.
43380
43381 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
43382
43383         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
43384         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
43385
43386 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
43387
43388         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
43389
43390 2005-05-20  Jim Meyering  <jim@meyering.net>
43391
43392         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
43393         Now a macro, to pacify GCC.
43394
43395 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
43396
43397         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
43398         of -1.
43399
43400 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
43401
43402         * lib/chown.c (rpl_chown): Return -1 on failure.
43403
43404 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
43405
43406         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
43407         Don't check for stddef.h.
43408         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
43409         don't use its results.
43410         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
43411         since we include them unconditionally.  Don't require
43412         AM_STDBOOL_H, since stdbool is a prerequisite.
43413         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
43414         since we assume C89 or better.
43415         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
43416         as we don't use their results.
43417         Don't check for fchdir, memmove, memset, strrchr, as we use
43418         them unconditionally.
43419         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
43420         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
43421
43422 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
43423
43424         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
43425         Include <stddef.h> unconditionally, since we assume C89 now.
43426         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
43427         * lib/fts.c: Include fts_.h first, to check interface.
43428         Do not include intprops.h; no longer needed.
43429         Include cycle-check.h and hash.h, since fts_.h no longer does.
43430         Remove unnecessary casts of closedir to void.
43431         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
43432         decide whether to decrement nlinks.
43433         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
43434         (FTS): Use struct hash_table * instead of Hash_table, so that
43435         we no longer need to include hash.h here.
43436
43437 2005-05-18  Jim Meyering  <jim@meyering.net>
43438
43439         * modules/dirfd (License): Change to LGPL.  Most of the code
43440         is already in the public domain.
43441
43442 2005-05-18  Jim Meyering  <jim@meyering.net>
43443
43444         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
43445         Reported by Yoann Vandoorselaere.
43446
43447 2005-05-17  Jim Meyering  <jim@meyering.net>
43448
43449         * m4/fts.m4: New file, from coreutils.
43450
43451 2005-05-17  Jim Meyering  <jim@meyering.net>
43452
43453         * lib/fts.c, lib/fts_.h: New files, from coreutils.
43454
43455 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
43456
43457         Sync from coreutils.
43458         * m4/unlinkdir.m4: New file.
43459
43460 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
43461
43462         Sync from coreutils.
43463         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
43464         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
43465         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
43466         White space changes only.
43467         * lib/makepath.c (make_path): Port to hosts where leading "//" is
43468         special.
43469         * lib/yesno.c: Include getline.h, not ctype.h.
43470         (yesno): Don't remove leading white space; POSIX doesn't allow it.
43471         Use getline to remove arbitrary restriction on response length.
43472
43473 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
43474
43475         * config/srclist-update: Spell out "Street" in FSF postal
43476         mail address; this is the style the FSF seems to prefer.
43477
43478         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
43479         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
43480         this updates FSF postal mail address.
43481
43482         Sync from coreutils.
43483         * modules/unlinkdir: New file.
43484         * modules/yesno (Depends-on): Add getline.
43485         * MODULES.html.sh (File system functions): Add unlinkdir.
43486
43487 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
43488
43489         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
43490         lib/strsep.h:
43491         Change the initial comment to refer to GPL, not LGPL.
43492         gnulib-tool will change it to LGPL as needed.
43493
43494         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
43495         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
43496         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
43497         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
43498         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
43499         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
43500         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
43501         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
43502         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
43503         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
43504         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
43505         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
43506         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
43507         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
43508         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
43509         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
43510         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
43511         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
43512         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
43513         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
43514         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
43515         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
43516         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
43517         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
43518         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
43519         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
43520         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
43521         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
43522         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
43523         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
43524         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
43525         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
43526         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
43527         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
43528         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
43529         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
43530         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
43531         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
43532         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
43533         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
43534         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
43535         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
43536         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
43537         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
43538         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
43539         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
43540         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
43541         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
43542         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
43543         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
43544         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
43545         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
43546         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
43547         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
43548         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
43549         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
43550         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
43551         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
43552         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
43553         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
43554         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
43555         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
43556         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
43557         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
43558         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
43559         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
43560         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
43561         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
43562         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
43563         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
43564         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
43565         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
43566         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
43567         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
43568         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
43569         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
43570         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
43571         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
43572         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
43573         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
43574         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
43575         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
43576         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
43577         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
43578         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
43579         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
43580         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
43581         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
43582         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
43583         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
43584         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
43585         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
43586         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
43587         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
43588         lib/yesno.c, lib/yesno.h:
43589         Update FSF postal mail address.
43590
43591 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
43592
43593         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
43594         tests/test-memmem.c, tests/test-stpncpy.c:
43595         Update FSF postal mail address.
43596
43597 2005-05-13  Bruno Haible  <bruno@clisp.org>
43598
43599         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
43600         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
43601         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
43602         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
43603         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
43604         Add support for 64-bit integers in the MSVC compiler.
43605
43606 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
43607
43608         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
43609
43610 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
43611
43612         * gnulib-tool (func_import): Sort and uniquify recommended includes.
43613
43614 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
43615
43616         * doc/getdate.texi (General date syntax): Don't say that date
43617         date --iso-8601=ns generates acceptable dates; it doesn't yet.
43618         Problem reported by Nic Ferrier.
43619
43620 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43621
43622         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
43623         specified in ai_socktype. Fix invalid ai_protocol
43624         check. ai_protocol is usually set to 0 or depending on
43625         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
43626         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
43627         ai_socktype / ai_protocol in the returned addrinfo structure.
43628
43629 2005-05-10  Simon Josefsson  <jas@extundo.com>
43630
43631         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
43632         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
43633
43634 2005-05-10  Karl Berry  <karl@gnu.org>
43635
43636         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
43637         (from http://www.gnu.org/licenses).
43638         * doc/COPYING.LIB: also rename to COPYING.LESSER.
43639         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
43640         fdl.texi suffices.
43641
43642 2005-05-10  Karl Berry  <karl@gnu.org>
43643
43644         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
43645         (COPYING.DOC): remove.
43646
43647         * config/srclist-update: new FSF address.
43648
43649 2005-05-10  Derek Price  <derek@ximbiot.com>
43650
43651         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
43652         possible.
43653
43654 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43655             Bruno Haible  <bruno@clisp.org>
43656
43657         * modules/inet_ntop: New file.
43658         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
43659         inet_ntop.
43660
43661 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43662             Bruno Haible  <bruno@clisp.org>
43663
43664         * m4/inet_ntop.m4: New file.
43665
43666 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
43667             Bruno Haible  <bruno@clisp.org>
43668
43669         * lib/inet_ntop.h: New file.
43670         * lib/inet_ntop.c: New file, from glibc with modifications.
43671
43672 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
43673
43674         * modules/time_r (License): Change to LGPL.
43675         * modules/extensions (License): Change to LGPL.  Actually,
43676         the license is more permissive than that, but currently gnulib-tool
43677         doesn't know how to handle more-permissive licenses.
43678
43679         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
43680         Problem reported by Dave Love.
43681
43682 2005-05-08  Jim Meyering  <jim@meyering.net>
43683
43684         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
43685         blank.
43686
43687 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
43688
43689         * modules/argmatch (Depends-on): Add stdbool.
43690         * modules/backupfile (Depends-on): Likewise.
43691         * modules/chdir-long (Depends-on): Likewise.
43692         * modules/closeout (Depends-on): Likewise.
43693         * modules/cycle-check (Depends-on): Likewise.
43694         * modules/dirname (Depends-on): Likewise.
43695         * modules/fnmatch (Depends-on): Likewise.
43696         * modules/fsusage (Depends-on): Likewise.
43697         * modules/fwriteerror (Depends-on): Likewise.
43698         * modules/getcwd (Depends-on): Likewise.
43699         * modules/getloadavg (Depends-on): Likewise.
43700         * modules/hard-locale (Depends-on): Likewise.
43701         * modules/makepath (Depends-on): Likewise.
43702         * modules/mountlist (Depends-on): Likewise.
43703         * modules/nanosleep (Depends-on): Likewise.
43704         * modules/posixtm (Depends-on): Likewise.
43705         * modules/quotearg (Depends-on): Likewise.
43706         * modules/readtokens (Depends-on): Likewise.
43707         * modules/readtokens0 (Depends-on): Likewise.
43708         * modules/readutmp (Depends-on): Likewise.
43709         * modules/save-cwd (Depends-on): Likewise.
43710         * modules/strftime (Depends-on): Likewise.
43711         * modules/userspec (Depends-on): Likewise.
43712         * modules/utimecmp (Depends-on): Likewise.
43713         * modules/xgetcwd (Depends-on): Likewise.
43714         * modules/xnanosleep (Depends-on): Likewise.
43715         * modules/xstrtod (Depends-on): Likewise.
43716         * modules/yesno (Depends-on): Likewise.
43717
43718 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
43719
43720         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
43721         needless checks.
43722
43723 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
43724
43725         Merge from coreutils.  Among other things,
43726         add bulletproofing for cases where stdin, stdout, or stderr are closed.
43727         * lib/fd-safer.c: New file.
43728         * lib/fcntl-safer.h, open-safer.c: Remove.
43729         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
43730         * lib/dup-safer.c: Include unistd-safer.h first.
43731         Don't include errno.h.
43732         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
43733         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
43734         * lib/file-type.c: Rely on file-type.h change.
43735         * lib/getloadavg.c: Include unistd-safer.h.
43736         (getloadavg): Use safer open.
43737         * lib/getusershell.c: Include "stdio-safer.h".
43738         (getusershell): Use safer fopen.
43739         * lib/long-options.c (long_options): Use NULL rather than 0.
43740         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
43741         'free'.
43742         * lib/modechange.c: Likewise.
43743         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
43744         (MODE_DONE): New constant.
43745         (struct mode_change): Remove 'next' member.
43746         (make_node_op_equals): New function; like the old one of the
43747         same name, except it allocates an array.
43748         (mode_compile, mode_create_from_ref): Use it.
43749         (mode_compile): Allocate result as an array, not a linked list.
43750         Parse octal string ourself, so that we catch mistakes like "+0".
43751         (mode_adjust): Arg is an array, not a linked list.
43752         * lib/modechange.c: Include stat-macros.h, xalloc.h.
43753         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
43754         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
43755         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
43756         Remove.  This is now stat-macros.h's job.
43757         (talloc): Remove.  All callers replaced by xalloc, so that
43758         our invokers don't have to worry about reporting memory failures.
43759         (make_node_op_equals): Remove.
43760         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
43761         New constants.
43762         (struct mode_change): Moved here from modechange.h.
43763         (mode_append_entry): Remove.
43764         (mode_compile): Remove MASKED_OPS arg, since it encouraged
43765         apps to have incorrect behavior.  Use simpler algorithm for head
43766         and tail.  Don't futz with umask; that's now the job of mode_adjust.
43767         Detect more invalid usages rather than having somewhat-random behavior.
43768         Don't insert an "a=" action, as that leads to incorrect behavior.
43769         (mode_compile, mode_create_from_ref): Return NULL on error instead
43770         of an enum, since now there's only one way to have an error.  All
43771         callers changed.
43772         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
43773         at the correct time.  Simplify calculation of "+u" and its ilk.
43774         Don't mishandle "+X".
43775         (mode_free): Remove "register" and localize decls.
43776         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
43777         (struct mode_change): Move to modechange.c; callers don't
43778         need to see this stuff.
43779         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
43780         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
43781         (mode_change, mode_adjust): Reflect the new signatures noted above.
43782         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
43783         that might redefine system include files.
43784         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
43785         (my_usleep): Use NULL rather than (void *) 0.
43786         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
43787         Use siginterrupt to specify that system calls should be interrupted.
43788         (rpl_nanosleep): Move initialization of suspended closer to call of
43789         my_usleep.
43790         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
43791         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
43792         (desirable_utmp_entry): New function.
43793         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
43794         using x2nrealloc, to simplify logic.
43795         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
43796         size calculation.  Do not assume utmp file is a regular file.
43797         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
43798         (READ_UTMP_CHECK_PIDS): New constant.
43799         * lib/save-cwd.c: Include unistd-safer.h.
43800         (save_cwd): Use fd_safer.
43801         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
43802         [!_LIBC] Include "stat-macros.h" instead.
43803         * lib/unistd-safer.h (fd_safer): New decl.
43804
43805 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
43806
43807         * modules/getloadavg (Depends-on): Add unistd-safer.
43808         * modules/getusershell (Depends-on): Add stdio-safer.
43809         * modules/lstat (Depends-on): Remove xalloc.
43810         * modules/mkstemp (Depends-on): Add stat-macros.
43811         * modules/modechange (Depends-on): Remove xstrtol.
43812         Add stat-macros, xalloc.
43813         * modules/save-cwd (Depends-on): Add unistd-safer.
43814         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
43815         * modules/unistd-safer (Files): Add lib/fd-safer.c
43816         (Makefile.am): Remove lib_SOURCES.
43817
43818         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
43819         Remove fcntl-safer; unistd-safer supersedes it.
43820
43821 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
43822
43823         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
43824         AC_HEADER_STAT.
43825         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
43826         (gl_PREREQ_CHOWN): Remove.
43827         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
43828         it.  Don't require AC_HEADER_STAT.
43829         (gl_PREREQ_LSTAT): Remove.
43830         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
43831         Don't require AC_HEADER_STAT.
43832         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
43833         (gl_PREREQ_RMDIR): Remove.
43834         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
43835         mention stat-macros.h or AC_HEADER_STAT, since we'll make
43836         the stat-macros module a prerequisite.
43837         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
43838         * m4/filemode.m4 (gl_FILEMODE): Likewise.
43839         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
43840         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
43841         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
43842         variable names.
43843         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
43844         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
43845         variable prefixes.
43846         * m4/fcntl-safer.m4: Remove.
43847         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
43848         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
43849         Invoke gl_PREREQ_FD_SAFER.
43850         (gl_PREREQ_FD_SAFER): New macro.
43851         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
43852         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
43853         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
43854         Remove duplicate call to AC_LIBOBJ(readutmp).
43855         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
43856
43857         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
43858         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
43859
43860 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
43861
43862         * MODULES.html.sh (Misc): Add byteswap.
43863
43864 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
43865
43866         * modules/getcwd (Depends-on): Add extensions.
43867         * modules/openat (Depends-on): Likewise.
43868
43869 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
43870
43871         * modules/byteswap: New file.
43872
43873 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
43874
43875         * m4/byteswap.m4: New file.
43876
43877 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
43878
43879         * lib/byteswap_.h: New file.
43880
43881 2005-04-25  Karl Berry  <karl@gnu.org>
43882
43883         * m4/gettext.m4: Update from GNU gettext 0.14.4.
43884
43885 2005-04-25  Albert Chin  <china@thewrittenword.com>
43886
43887         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
43888         Toolkit C bug.
43889
43890 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
43891
43892         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
43893         (func_ln_if_changed) Remove forcibly for no error message
43894         in case file does not exist.
43895
43896 2005-04-19  Simon Josefsson  <jas@extundo.com>
43897
43898         * gnulib-tool (Options): Make --symlink mean --symbolic.
43899
43900 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
43901
43902         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
43903
43904 2005-04-16  Simon Josefsson  <jas@extundo.com>
43905
43906         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
43907
43908 2005-04-15  Simon Josefsson  <jas@extundo.com>
43909
43910         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
43911
43912 2005-04-15  Simon Josefsson  <jas@extundo.com>
43913
43914         * gnulib-tool: Rename --symlink to --symbolic.
43915
43916 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
43917
43918         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
43919         symbolic links to files instead of copying/moving.  Add --aux-dir,
43920         specifying directory relative --dir where auxiliary build tools
43921         are placed.
43922
43923 2005-04-14  Bruno Haible  <bruno@clisp.org>
43924
43925         * modules/allocsa (License): Change to LGPL.
43926         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
43927
43928 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
43929
43930         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
43931         that "UTC +1 second" continues to work.  Problem reported
43932         by Dmitry V. Levin.
43933         (relunit_snumber): New rule.
43934         (relunit): Use it.
43935
43936 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
43937
43938         * lib/getdate.y (universal_time_zone_table): New constant.
43939         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
43940         universal_time_zone_table.
43941         (lookup_zone): Prefer universal_time_zone_table to
43942         local_time_zone_table, so that "GMT" time stamps are allowed in
43943         London during the summer.  Problem reported by Ian Abbott.
43944
43945 2005-04-12  Jim Meyering  <jim@meyering.net>
43946
43947         * lib/human.c (humblock): Set *options even when returning due to
43948         xstrtoumax conversion failure.  Thanks to a used-uninitialized
43949         warning from gcc-4.
43950
43951 2005-04-09  Jim Meyering  <jim@meyering.net>
43952
43953         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
43954         -Wuninitialized: initialize tm0.tm_year.
43955
43956 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
43957
43958         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
43959         count, since there's no maximum.  All uses changed.
43960         Add member dsts_seen.
43961         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
43962         not being INT_MAX.
43963         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
43964         Use pc_rels_seen to decide whther a date is absolute.
43965
43966         * lib/getdate.y (number): Don't overwrite year.
43967         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
43968         check.
43969
43970 2005-04-02  Simon Josefsson  <jas@extundo.com>
43971
43972         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
43973         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
43974
43975 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
43976
43977         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
43978         where no absolute path name can be longer than PATH_MAX.
43979
43980 2005-03-27  Jim Meyering  <jim@meyering.net>
43981
43982         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
43983
43984 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
43985
43986         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
43987         "one's complement" -> "ones' complement" in comment, as per Knuth.
43988         "value of type" -> "type or expression" in comment.
43989         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
43990
43991 2005-03-26  Jim Meyering  <jim@meyering.net>
43992
43993         Comment nits.
43994         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
43995         Correct typos: s/or/of/.
43996
43997 2005-03-26  Jim Meyering  <jim@meyering.net>
43998
43999         * modules/check-include-files: Move to ../ and rename to...
44000         * check-module: ...this.
44001
44002 2005-03-25  Jim Meyering  <jim@meyering.net>
44003
44004         * modules/xvasprintf (Files): Add xalloc.h.
44005
44006 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
44007
44008         * modules/gettext (Files): config/config.rpath ->
44009         build-aux/config.rpath
44010         * modules/iconv (Files): Likewise.
44011         Problem reported by Oskar Liljeblad.
44012
44013 2005-03-23  Jim Meyering  <jim@meyering.net>
44014
44015         * modules/check-include-files: New script to check for
44016         missing dependencies, multiple includes, etc.
44017
44018         * modules/c-strtold (Depends-on): Add xalloc.
44019         * modules/c-strtod (Depends-on): Add xalloc.
44020         * modules/hash (Depends-on): Add xalloc.
44021         (Files): Remove lib/xalloc.h.
44022
44023         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
44024         * modules/userspec (Files): Add lib/inttostr.h.
44025
44026 2005-03-23  Jim Meyering  <jim@meyering.net>
44027
44028         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
44029
44030 2005-03-22  Jim Meyering  <jim@meyering.net>
44031
44032         * modules/stat-macros: New module.
44033         * modules/canonicalize, modules/euidaccess, modules/file-type,
44034         * modules/filemode, modules/lchown, modules/makepath,
44035         * modules/rmdir, modules/stat: Depend on new stat-macros module
44036         rather than listing lib/stat-macros.h manually.
44037         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
44038
44039 2005-03-22  Jim Meyering  <jim@meyering.net>
44040
44041         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
44042
44043 2005-03-22  Bruno Haible  <bruno@clisp.org>
44044
44045         * config/srclist.txt: Replace target directory 'config' with
44046         'build-aux'.
44047         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
44048         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
44049         ../build-aux/.
44050
44051 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
44052
44053         * modules/chdir-long (Depends-on): Add mempcpy.
44054
44055         * modules/acl, modules/backupfile, modules/c-strtod,
44056         modules/c-strtold, modules/canon-host, modules/canonicalize,
44057         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
44058         modules/exclude, modules/exitfail, modules/file-type,
44059         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
44060         modules/getdate, modules/getline, modules/getpagesize,
44061         modules/getpass, modules/getugroups, modules/group-member,
44062         modules/hard-locale, modules/hash, modules/human, modules/idcache,
44063         modules/inttostr, modules/long-options, modules/makepath,
44064         modules/md5, modules/memcasecmp, modules/memcoll,
44065         modules/modechange, modules/mountlist, modules/path-concat,
44066         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
44067         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
44068         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
44069         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
44070         modules/strftime, modules/strndup, modules/strverscmp,
44071         modules/timespec, modules/unlocked-io, modules/userspec,
44072         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
44073         modules/yesno:
44074         Remove lib_SOURCES line from Makefile.am section, as this is now
44075         done automatically by the corresponding Autoconf macro.
44076
44077 2005-03-21  Jim Meyering  <jim@meyering.net>
44078
44079         Changes imported from coreutils.
44080
44081         * lib/cycle-check.c: Don't include xalloc.h.
44082
44083         * lib/path-concat.c: Don't include assert.h.
44084         (path_concat): Remove assertion that would have triggered
44085         for ABASE starting with more than one slash.
44086         Reported by Andreas Schwab.
44087
44088         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
44089         properly when ABASE is an absolute file name.
44090         Correct the description of this function.
44091         Include <assert.h>.
44092         Add an assertion and a test driver.
44093         This fixes a bug introduced on 2004-07-02.
44094         Andreas Schwab reported the resulting failure of cp --parents:
44095         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
44096
44097 2005-03-21  Jim Meyering  <jim@meyering.net>
44098
44099         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
44100         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
44101
44102 2005-03-21  Jim Meyering  <jim@meyering.net>
44103         and  Paul Eggert  <eggert@cs.ucla.edu>
44104
44105         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
44106         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
44107         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
44108         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
44109         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
44110         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
44111         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
44112         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
44113         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
44114         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
44115         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
44116         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
44117         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
44118         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
44119         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
44120         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
44121         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
44122         for these modules.
44123
44124 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
44125
44126         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
44127         (which shouldn't happen), generate nothing instead of returning 0
44128         immediately, so that nstrftime (NULL, ...) doesn't return 0.
44129
44130 2005-03-16  Bruno Haible  <bruno@clisp.org>
44131
44132         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
44133         HAVE_LONGLONG_64BIT.
44134
44135 2005-03-16  Bruno Haible  <bruno@clisp.org>
44136
44137         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
44138         HAVE_LONGLONG_64BIT.
44139
44140 2005-03-16  Bruno Haible  <bruno@clisp.org>
44141
44142         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
44143         HAVE_LONGLONG_64BIT.
44144
44145 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
44146
44147         * lib/strftime.c (my_strftime): Prepend space to format so that we can
44148         reliably distinguish strftime failure from empty output on POSIX
44149         hosts.
44150
44151 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
44152
44153         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
44154         (iconv_string): Don't guess a size-zero buffer, as that might cause
44155         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
44156         result would be 'too large', where 'too large' is (heuristically)
44157         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
44158         overflow concerns.  This will prevent some unwanted malloc failures
44159         when the inputs are very large.
44160
44161 2005-03-15  Karl Berry  <karl@gnu.org>
44162
44163         * config/srclist.txt (config.rpath): from gettext.
44164         * config/config.rpath: update.
44165
44166 2005-03-15  Bruno Haible  <bruno@clisp.org>
44167
44168         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
44169         to 'negate'.
44170
44171         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
44172         variable.
44173
44174         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
44175         results.
44176
44177 2005-03-14  Simon Josefsson  <jas@extundo.com>
44178
44179         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
44180         <fx@gnu.org>.
44181
44182 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
44183
44184         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
44185         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
44186         intprops.h.
44187         * lib/strtol.c: Likewise.
44188
44189 2005-03-14  Jim Meyering  <jim@meyering.net>
44190
44191         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
44192         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
44193         to be nonzero so that we (and caller) can detect the difference
44194         between a valid zero-length expansion and an error return, even
44195         when the underlying strftime fails before writing anything into
44196         that location.
44197
44198 2005-03-14  Bruno Haible  <bruno@clisp.org>
44199
44200         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
44201         Update from GNU gettext 0.14.3.
44202
44203 2005-03-10  Jim Meyering  <jim@meyering.net>
44204
44205         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
44206
44207 2005-03-10  Jim Meyering  <jim@meyering.net>
44208
44209         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
44210         so that this module works on systems without fchdir.
44211
44212 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
44213
44214         Factor int-properties macros into a single file, except for
44215         glibc-related files.
44216         * lib/intprops.h: New file.
44217         * lib/getloadavg.c: Include it instead of limits.h.
44218         (INT_STRLEN_BOUND): Remove.
44219         * lib/human.c: Include intprops.h.
44220         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
44221         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
44222         302/1000.
44223         * lib/inttostr.h: Include intprops.h instead of limits.h.
44224         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
44225         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
44226         for consistency with intprops.h.
44227         (time_t_is_integer, twos_complement_arithmetic): Use them.
44228         * lib/sig2str.h: Include <signal.h>, intprops.h.
44229         (INT_STRLEN_BOUND): Remove.
44230         * lib/strftime.c (TYPE_SIGNED): Remove.
44231         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
44232         * lib/strtol.c: Adjust comments to match intprops.h.
44233         * lib/userspec.c: Include intprops.h.
44234         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
44235         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
44236         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
44237         instead of rolling our own expressions.
44238         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
44239
44240         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
44241         instead of int.
44242         (my_strftime): Do not mishandle years close to INT_MAX, by doing
44243         the right thing even if adding 1900 would overflow.  Similarly
44244         for tm_mon + 1 and tm_yday + 1.
44245         Make %Y always equivalent to %C%y, and similarly for %G and %g.
44246         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
44247         (DO_SIGNED_NUMBER): New macro.
44248         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
44249
44250 2005-03-07  Bruno Haible  <bruno@clisp.org>
44251
44252         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
44253
44254 2005-03-07  Bruno Haible  <bruno@clisp.org>
44255
44256         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
44257
44258 2005-03-04  Derek R. Price  <derek@ximbiot.com>
44259
44260         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
44261         (func_import): Only replace files via --import when they have actually
44262         changed.
44263
44264 2005-03-03  Derek R. Price  <derek@ximbiot.com>
44265
44266         * m4/mmap-anon.m4: New file.
44267         * m4/pagealign_alloc.m4: New file.
44268
44269 2005-03-03  Derek R. Price  <derek@ximbiot.com>
44270             Bruno Haible  <bruno@clisp.org>
44271
44272         * modules/pagealign_alloc: New file.
44273         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
44274
44275 2005-03-03  Derek R. Price  <derek@ximbiot.com>
44276             Bruno Haible  <bruno@clisp.org>
44277
44278         * lib/pagealign_alloc.h: New file.
44279         * lib/pagealign_alloc.c: New file.
44280
44281 2005-03-03  Bruno Haible  <bruno@clisp.org>
44282
44283         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
44284         Use an all-permissive copyright notice, recommended by RMS.
44285
44286 2005-03-02  Bruno Haible  <bruno@clisp.org>
44287
44288         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
44289         of AIX, the replacement has to be done only after <string.h> is
44290         included, therefore not in config.h. stpncpy.h does the replacement,
44291         and stpncpy.c uses it.
44292
44293 2005-03-02  Bruno Haible  <bruno@clisp.org>
44294
44295         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
44296         stpncpy.c uses it.
44297
44298 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
44299
44300         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
44301         The workaround isn't strictly needed for POSIX conformance, and
44302         it's too much of a pain to configure and maintain.  We'll ask
44303         people to fix their kernels instead.
44304         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
44305         (NANOSLEEP_BUG_WORKAROUND): Remove.
44306         (xnanosleep): Remove the workaround.
44307
44308 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
44309
44310         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
44311         Reported by Derek Price.
44312         (Include): Add "timespec.h".
44313
44314         * modules/xnanosleep (Depends-on): Remove gethrxtime.
44315
44316 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
44317
44318         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
44319         to detect nanosleep bug.
44320
44321 2005-03-01  Bruno Haible  <bruno@clisp.org>
44322
44323         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
44324
44325 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
44326
44327         * modules/gethrxtime: New file.
44328         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
44329         (Depends-on): Add gethrxtime.
44330         (configure.ac): Add gl_XNANOSLEEP.
44331         (Makefile.am): Remove lib_SOURCES line.
44332
44333 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
44334
44335         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
44336         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
44337
44338 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
44339
44340         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
44341         * lib/timespec.h (gettime): Return void, since it always
44342         succeeds now.  All uses changed.
44343         * lib/gettime.c (gettime) Likewise.
44344         [HAVE_NANOTIME]: Prefer nanotime.
44345         Assume gettimeofday succeeds, as POSIX requires.
44346         Assime time () succeeds, since other code already does.
44347         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
44348         (timespec_subtract): Remove.
44349         (NANOSLEEP_BUG_WORKAROUND): New constant.
44350         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
44351         things considerably.  Use it only on GNU/Linux hosts, since the
44352         workaround shouldn't be needed elsewhere.
44353
44354 2005-02-24  Bruno Haible  <bruno@clisp.org>
44355
44356         * modules/gettext (Files): Add m4/glibc2.m4.
44357
44358 2005-02-24  Bruno Haible  <bruno@clisp.org>
44359
44360         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
44361         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
44362         * m4/progtest.m4:
44363         Update from GNU gettext 0.14.2.
44364         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
44365
44366 2005-02-24  Bruno Haible  <bruno@clisp.org>
44367
44368         * lib/localcharset.c: Update from GNU gettext 0.14.2.
44369         * lib/config.charset: Update from GNU gettext 0.14.2.
44370
44371 2005-02-24  Bruno Haible  <bruno@clisp.org>
44372
44373         * lib/gettext.h: Update from GNU gettext 0.14.2.
44374
44375 2005-02-23  Simon Josefsson  <jas@extundo.com>
44376
44377         * m4/iconvme.m4: New file.
44378
44379 2005-02-23  Jim Meyering  <jim@meyering.net>
44380
44381         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
44382         change.
44383         Thanks to Bruno Haible for catching it.
44384
44385 2005-02-22  Simon Josefsson  <jas@extundo.com>
44386
44387         * modules/iconvme: New file.
44388
44389         * MODULES.html.sh: Add iconvme.
44390
44391 2005-02-22  Simon Josefsson  <jas@extundo.com>
44392
44393         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
44394
44395 2005-02-22  Simon Josefsson  <jas@extundo.com>
44396
44397         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
44398
44399 2005-02-22  Jim Meyering  <jim@meyering.net>
44400
44401         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
44402         s/ifndef/ifdef/.
44403
44404 2005-02-20  Neil Conway  <neilc@samurai.com>
44405
44406         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
44407         returned by OSX/Darwin if the specified buffer is not large
44408         enough for the hostname.
44409
44410 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
44411
44412         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
44413         pass it to _help, otherwise the latter coredumps trying to
44414         dereference state.root_argp.
44415
44416 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
44417
44418         * modules/chdir-long (Depends-on): Add memrchr.
44419         * modules/memrchr (Files): Add lib/memrchr.h.
44420         (Include): "memrchr.h".
44421
44422 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
44423
44424         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
44425
44426 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
44427
44428         * lib/memrchr.h: New file.
44429         * lib/chdir-long.c: Include it.
44430         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
44431         Don't bother including stddef.h.
44432
44433 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
44434
44435         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
44436         inclusion.
44437         Include <sys/types.h>, for dev_t.
44438         (ME_DUMMY, ME_REMOTE): Move from here....
44439         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
44440         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
44441         Dmitry V. Levin.
44442         Include mountlist.h first, to test the interface.
44443
44444 2005-01-29  Bruno Haible  <bruno@clisp.org>
44445
44446         * lib/progname.c (program_name): Initialize.
44447         Needed when linking statically on MacOS X.
44448
44449 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
44450
44451         Sync from coreutils.
44452         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
44453         (Depends-on): Add c-strtod.
44454         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
44455
44456 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
44457
44458         Sync from coreutils.
44459         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
44460
44461         Remove files that are specific to coreutils.
44462         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
44463
44464 2005-01-28  Bruno Haible  <bruno@clisp.org>
44465
44466         * modules/javacomp: New file.
44467         * MODULES.html.sh (Java): Add javacomp.
44468
44469 2005-01-28  Bruno Haible  <bruno@clisp.org>
44470
44471         * m4/javacomp.m4: New file, from GNU gettext.
44472
44473 2005-01-28  Bruno Haible  <bruno@clisp.org>
44474
44475         * lib/javacomp.sh.in: New file, from GNU gettext.
44476         * lib/javacomp.h: New file, from GNU gettext.
44477         * lib/javacomp.c: New file, from GNU gettext.
44478
44479 2005-01-26  Simon Josefsson  <jas@extundo.com>
44480
44481         * lib/gai_strerror.c: Use GPL in header.
44482
44483 2005-01-26  Bruno Haible  <bruno@clisp.org>
44484
44485         * modules/javaexec: New file.
44486         * MODULES.html.sh (Java): Add javaexec.
44487
44488 2005-01-26  Bruno Haible  <bruno@clisp.org>
44489
44490         * m4/javaexec.m4: New file, from GNU gettext.
44491
44492 2005-01-26  Bruno Haible  <bruno@clisp.org>
44493
44494         * lib/javaexec.sh.in: New file, from GNU gettext.
44495         * lib/javaexec.h: New file, from GNU gettext.
44496         * lib/javaexec.c: New file, from GNU gettext.
44497
44498 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
44499
44500         * modules/lchown (Depends-on): Remove lchown.h
44501
44502 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
44503
44504         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
44505         must be defined if the header file was not found, in order
44506         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
44507
44508 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
44509
44510         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
44511         initializers for struct pentry_state.
44512         (__argp_error): Check return value of __asprintf
44513         (__argp_failure): Translate error message
44514
44515         * lib/argp-parse.c: Removed braces around the expansion of N_()
44516
44517 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
44518
44519         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
44520         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
44521         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
44522         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
44523         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
44524         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
44525         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
44526         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
44527         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
44528         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
44529         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
44530         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
44531         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
44532         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
44533         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
44534         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
44535         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
44536         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
44537         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
44538         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
44539         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
44540         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
44541         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
44542         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
44543         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
44544         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
44545         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
44546         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
44547         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
44548         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
44549         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
44550         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
44551         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
44552         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
44553         xstrtol.m4, xstrtoumax.m4, yesno.m4:
44554         Use an all-permissive copyright notice, recommended by RMS.
44555
44556 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
44557
44558         * modules/chdir-long (Depends-on): Remove mempcpy.
44559
44560 2005-01-21  Jim Meyering  <jim@meyering.net>
44561
44562         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
44563         same value as for Solaris 9.
44564
44565         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
44566         component length.  This included changing the parameter to be
44567         of type `char *' rather than `char const *'.
44568         * lib/chdir-long.h (chdir_long): Update prototype.
44569
44570         * lib/openat.c (fdopendir, fstatat): New functions.
44571         * lib/openat.h: Include headers required for use of DIR and struct
44572         stat.
44573         [AT_SYMLINK_NOFOLLOW]: Define.
44574         (fdopendir, fstatat): Add prototypes.
44575
44576 2005-01-21  Bruno Haible  <bruno@clisp.org>
44577
44578         * modules/classpath: New file.
44579         * MODULES.html.sh (Java): Add classpath.
44580
44581 2005-01-21  Bruno Haible  <bruno@clisp.org>
44582
44583         * lib/classpath.h: New file, from GNU gettext.
44584         * lib/classpath.c: New file, from GNU gettext.
44585
44586 2005-01-20  Simon Josefsson  <jas@extundo.com>
44587
44588         * modules/version-etc-fsf: New file.
44589
44590 2005-01-20  Simon Josefsson  <jas@extundo.com>
44591
44592         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
44593         * lib/version-etc.c: Remove version_etc_copyright.
44594         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
44595         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
44596
44597 2005-01-20  Simon Josefsson  <jas@extundo.com>
44598
44599         * lib/base64.h (isbase64): Add.
44600
44601         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
44602         using a unsigned prototype, don't inline.
44603         (base64_decode): Use it.
44604
44605 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
44606
44607         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
44608         it.
44609
44610 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
44611
44612         * lib/save-cwd.c (save_cwd): Remove code to support the case
44613         where fchdir is missing or flaky.
44614
44615 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
44616
44617         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
44618
44619 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
44620
44621         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
44622         AC_LIBSOURCES now does this.
44623         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
44624         with new ullong_max module.
44625
44626 2005-01-19  Bruno Haible  <bruno@clisp.org>
44627
44628         * modules/sh-quote: New file.
44629         * MODULES.html.sh (Executing programs): Add sh-quote.
44630
44631 2005-01-19  Bruno Haible  <bruno@clisp.org>
44632
44633         * lib/sh-quote.h: New file, from GNU gettext.
44634         * lib/sh-quote.c: New file, from GNU gettext.
44635
44636 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
44637
44638         Merge from coreutils.
44639         * m4/ullong_max.m4: New file.
44640         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
44641         (gl_MACROS): Assume localeconv exists.
44642
44643 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
44644
44645         Merge changes from coreutils, as described below in several
44646         changelogs dated today.
44647
44648         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
44649         (O_DIRECTORY): Remove; not needed here, since "." must be
44650         a directory.  All uses removed.
44651         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
44652         universal on Suns, and we also need to test for IRIX.
44653         Revamp code to use 'if' rather than '#if'.
44654         Avoid unnecessary comparison of cwd->desc to 0.
44655
44656         * lib/utimens.c (futimens): Robustify the previous patch, by checking
44657         for known valid error numbers rather than observed invalid ones.
44658
44659 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
44660
44661         * modules/ullong_max: New file.
44662
44663         * modules/chdir-long, modules/openat: New files.
44664         * modules/save-cwd (Depends-on): Depend on chdir-long.
44665         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
44666
44667 2005-01-18  Jim Meyering  <jim@meyering.net>
44668
44669         Merge from coreutils.
44670         * m4/chdir-long.m4, m4/openat.m4: New files.
44671         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
44672         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
44673         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
44674         is sane and DOES follow symlinks.  Besides, testing 20 different
44675         systems found no broken chown implementations.
44676         Prompted by a change in rsync's copy of this macro.
44677         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
44678
44679         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
44680
44681         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
44682         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
44683         NULL-means-set-to-current-time semantics.
44684         Remove temporary file immediately, rather than waiting
44685         for configure's at-exit trap code to do it.
44686
44687 2005-01-18  Jim Meyering  <jim@meyering.net>
44688
44689         * lib/version-etc.c (version_etc_copyright): Update copyright date.
44690
44691         * lib/utimens.c (futimens): Account for the fact that futimes
44692         can also fail with errno == ENOSYS or errno == ENOENT.
44693         Patch from Dmitry V. Levin.
44694
44695         Change the name of the robust chdir function from chdir to chdir_long.
44696         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
44697         (restore_cwd): Use chdir_long, not chdir.
44698         * lib/chdir-long.c: Renamed from chdir.c.
44699         * lib/chdir-long.h: Renamed from chdir.h.
44700         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
44701         Hurd.
44702
44703 2005-01-18  Bruno Haible  <bruno@clisp.org>
44704
44705         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
44706         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
44707         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
44708         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
44709         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
44710         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
44711         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
44712         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
44713         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
44714         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
44715         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
44716         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
44717         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
44718         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
44719         Use an all-permissive copyright notice, recommended by RMS.
44720
44721 2005-01-18  Bob Proulx  <bob@proulx.com>
44722
44723         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
44724         simplify offsetof() macro construct to avoid compile failure with
44725         native HP-UX 11.0 ANSI C compiler.
44726
44727 2005-01-17  Bruno Haible  <bruno@clisp.org>
44728
44729         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
44730         redundant because stpncpy.m4 takes care of it.
44731
44732 2005-01-17  Bruno Haible  <bruno@clisp.org>
44733
44734         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
44735
44736 2005-01-17  Bruno Haible  <bruno@clisp.org>
44737
44738         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
44739         used.
44740
44741 2005-01-17  Bruno Haible  <bruno@clisp.org>
44742
44743         * lib/fwriteerror.h (fwriteerror): Change specification to include
44744         fclose.
44745         * lib/fwriteerror.c: Include <stdbool.h>.
44746         (fwriteerror): At the end, close the file stream. Record whether
44747         stdout was already closed.
44748
44749 2005-01-17  Bruno Haible  <bruno@clisp.org>
44750
44751         * lib/execute.c (environ): Declare if needed.
44752         * lib/pipe.c (environ): Likewise.
44753         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
44754
44755 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
44756
44757         * modules/argp: Depend on vsnprintf
44758
44759 2005-01-10  Jim Meyering  <jim@meyering.net>
44760
44761         * modules/closeout (Depends-on): Add atexit.
44762
44763 2005-01-06  Bruno Haible  <bruno@clisp.org>
44764
44765         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
44766
44767 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
44768
44769         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
44770         definitions to be after all include files, to avoid collisions.
44771         Problem reported by Bob Proulx.
44772
44773 2005-01-04  Jim Meyering  <jim@meyering.net>
44774
44775         Changes imported from coreutils.
44776         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
44777         as the mkstemp template, use a temporary directory and an
44778         8.3-friendly template to avoid trouble on systems like DJGPP.
44779         Reported by Juan M. Guerrero via Stepan Kasal.
44780         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
44781         close. Remove the temporary directory right away, rather than waiting
44782         for configure's at-exit trap code to do it.
44783         Suggestion from Stepan Kasal.
44784
44785 2005-01-01  Simon Josefsson  <jas@extundo.com>
44786
44787         * gnulib-tool: Print #include directives when --import'ing.
44788
44789 2004-12-28  Simon Josefsson  <jas@extundo.com>
44790
44791         * tests/test-base64.c: Include required header files.  Remove
44792         unused variables.
44793
44794 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
44795
44796         * modules/error (Depends-on): Remove gettext.
44797
44798 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
44799
44800         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
44801         not needed.  This removes a dependency on the gettext module.
44802         [defined _LIBC]: Do not include <libintl.h>; not needed.
44803
44804 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
44805
44806         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
44807         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
44808
44809 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
44810
44811         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
44812         HAVE_DECL_STRTOLD.
44813
44814 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
44815
44816         * modules/getdate (Depends-on): Remove alloca-opt.
44817
44818 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
44819
44820         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
44821
44822 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
44823
44824         * lib/argp-parse.c: Include <stddef.h>.
44825         (alignof, alignto): New macros.
44826         (parser_init): Don't assume that void * is aligned sufficiently
44827         for struct option.
44828
44829         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
44830         need to extend the stack.
44831         (YYINITDEPTH): New macro, so that the initial stack isn't overly
44832         large.
44833
44834 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
44835
44836         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
44837
44838 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
44839
44840         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
44841         (2004-10-24) change.  Apparently this was a false alarm.
44842
44843         * modules/getdate: Depend on alloca-opt, not alloca.
44844
44845 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
44846
44847         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
44848         Remove now-obsolete comment about AIX.
44849         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
44850         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
44851         (YYMAXDEPTH): New macro.
44852
44853 2004-12-18  Simon Josefsson  <jas@extundo.com>
44854
44855         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
44856
44857 2004-12-18  Bruno Haible  <bruno@clisp.org>
44858
44859         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
44860
44861 2004-12-18  Bruno Haible  <bruno@clisp.org>
44862
44863         * lib/fatal-signal.c (fatal_signals): Make non-const.
44864         (init_fatal_signals): New function.
44865         (uninstall_handlers, install_handlers): Ignore signals that were set to
44866         SIG_IGN.
44867         (at_fatal_signal): Call init_fatal_signals.
44868         (init_fatal_signal_set): Likewise. Ignore signals that were set to
44869         SIG_IGN.
44870         Reported by Paul Eggert.
44871
44872 2004-12-18  Bruno Haible  <bruno@clisp.org>
44873
44874         * doc/alloca.texi: New file.
44875         * doc/alloca-opt.texi: New file.
44876
44877 2004-12-17  Jim Meyering  <jim@meyering.net>
44878
44879         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
44880         Otherwise, install-sh could exit with improper exit status when
44881         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
44882
44883 2004-12-16  Simon Josefsson  <jas@extundo.com>
44884
44885         * tests/test-base64.c: Add license.
44886
44887 2004-12-15  Stepan Kasal  <address@hidden>
44888
44889         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
44890
44891 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
44892
44893         * modules/getcwd (Files): Add m4/d-ino.m4.
44894         Suggested by Mark D. Baushke.
44895
44896 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
44897
44898         * lib/getdate.y (textint): New member "negative".
44899         (time_zone_hhmm): New function.
44900         Expect 14 shift-reduce conflicts, not 13.
44901         (o_colon_minutes): New rule.
44902         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
44903         (yylex): Set the "negative" member of signed numbers.
44904
44905 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
44906
44907         * doc/getdate.texi (Time of day items, Time zone items):
44908         Describe new formats +00:00, UTC+00:00.
44909
44910 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
44911
44912         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
44913         spurious "-l"s.  Problem reported by Stepan Kasal.
44914
44915 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
44916
44917         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
44918         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
44919
44920 2004-12-04  Simon Josefsson  <jas@extundo.com>
44921
44922         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
44923         Vandoorselaere <yoann@prelude-ids.org>.
44924
44925 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
44926
44927         Changes imported from coreutils.
44928         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
44929         exist.
44930         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
44931
44932 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
44933
44934         Changes imported from coreutils.
44935         * lib/hard-locale.c: Assume <locale.h> exists.
44936         Include "strdup.h".
44937         (GLIBC_VERSION): New macro.
44938         (hard_locale): Assume setlocale exists.
44939         Rewrite to avoid #ifdef.
44940         Use strdup rather than malloc + strcpy.
44941         * lib/human.c: Assume <locale.h> exists.
44942         (human_readable): Assume localeconv exists.
44943
44944 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
44945
44946         * modules/hard-locale (Depends-on): Add strdup.
44947
44948 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
44949
44950         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
44951         convert T2, not T.  (Imported from libc.)
44952
44953 2004-11-30  Simon Josefsson  <jas@extundo.com>
44954
44955         * modules/restrict (License): Change to LGPL.
44956
44957 2004-11-30  Simon Josefsson  <jas@extundo.com>
44958
44959         * m4/restrict.m4: Add copyright and copying conditions.
44960
44961 2004-11-30  Simon Josefsson  <jas@extundo.com>
44962
44963         * m4/base64.m4: New file.
44964
44965 2004-11-30  Simon Josefsson  <jas@extundo.com>
44966
44967         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
44968         base64.
44969
44970         * tests/test-base64.c: New file.
44971
44972         * modules/base64: New file.
44973
44974 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
44975
44976         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
44977         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
44978
44979         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
44980
44981 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
44982
44983         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
44984         (__getcwd.c): Don't restore errno; glibc doesn't.
44985         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
44986         first, falling back to our code only if its results look suspicious.
44987         Ensure that the resulting buffer is only as large as necessary.
44988
44989         * lib/readutmp.c: Include readutmp.h first.
44990         Include <errno.h>, since readutmp.h no longer does that.
44991         * lib/readutmp.h: Don't include <errno.h>,
44992         <sys/param.h>, <time.h>; not needed to establish interface.
44993         (errno): Remove decl.
44994         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
44995         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
44996         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
44997
44998 2004-11-28  Simon Josefsson  <jas@extundo.com>
44999
45000         * lib/base64.h, base64.c: New file.
45001
45002 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
45003
45004         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
45005
45006 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
45007
45008         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
45009         (Depends-on): Remove pathmax, same.  Add mempcpy.
45010         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
45011         (Makefile.am): Append getcwd.h to lib_SOURCES.
45012         (Include): Add getcwd.h.
45013         (Maintainer): Change from Jim Meyering to "all, glibc",
45014         since getdate now uses intended-for-glibc code.
45015         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
45016         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
45017
45018 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
45019
45020         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
45021         HP's ANSI C compiler.
45022         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
45023         Declaring int functions causes warnings on some modern systems and
45024         shouldn't be needed to compile on ancient ones.
45025         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
45026         defined.
45027
45028         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
45029         with the following changes.
45030         (__set_errno): Parenthesize properly.
45031         Include <stdbool.h>.
45032         (MIN, MAX, MATCHING_INO): New macros.
45033         (__getcwd): Define with prototype, not K&R form.
45034         Use heuristics to allocate default buffer on stack if possible.
45035         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
45036         behavior, and to avoid the PATH_MAX limit when computing
45037         ../../../../...
45038         Use MATCHING_INO to compare inode number to file.
45039         Check for arithmetic overflow in size calculations.
45040         Fix bug in reallocation of dot array that caused getcwd to fail
45041         on directories nested deeper than 75.
45042         Be more careful about saving errno on error.
45043         Do not use realloc; use only free+malloc, as this is a bit
45044         more flexible and avoids a needless copy operation.
45045         Do not inspect st_dev and st_ino for symbolic links; POSIX
45046         doesn't specify the latter.
45047         Check for closedir errors.
45048         Avoid needless casts.
45049         Use "#ifdef weak_alias" around weak_alias, to be like other
45050         glibc code.
45051         The following changes to getcwd.c have effect only when used in
45052         gnulib; they have no effect inside glibc proper.
45053         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
45054         as alloca isn't used.
45055         (alloca, __alloca): Likewise.
45056         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
45057         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
45058         unconditionally, as gnulib assumes C89 or better.
45059         Do not include <sys/param.h>.
45060         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
45061         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
45062         better.
45063         (NULL) [!defined NULL]: Remove; we assume C89 or better.
45064         Include <dirent.h> in a way that is compatible with modern Autoconf.
45065         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
45066         New macros, if not already defined.
45067         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
45068         Use "_LIBC", not "defined _LIBC", for consistency.
45069         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
45070         a mempcpy module.
45071         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
45072         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
45073         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
45074         credit only to Jim Meyering and adjust the copyright dates.
45075         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
45076         <stdlib.h>, <unistd.h>, "pathmax.h".
45077         Instead, include "xgetcwd.h" (first) and "getcwd.h".
45078         (INITIAL_BUFFER_SIZE): Remove.
45079         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
45080
45081 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
45082
45083         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
45084         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
45085         Use the _ONCE methods, for efficiency.
45086         Check for fcntl.h.  In test program, include <errno.h>
45087         and <fcntl.h> if available.  Remove old K&R cruft from
45088         test program.  Check for common errors in GNU/Linux,
45089         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
45090         don't do AC_LIBOBJ, as that's getcwd.m4's job.
45091         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
45092         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
45093         name accordingly.
45094         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
45095         accommodate new getcwd.c.
45096         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
45097         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
45098         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
45099         that's all we need now.
45100
45101 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
45102
45103         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
45104         argp-parse.c depends on getopt internals, that means we should
45105         always use our getopt, to be on the safe side.
45106         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
45107         order not to spoil the result of an eventual previous invocation
45108         of gl_GETOPT_SUBSTITUTE.
45109
45110 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
45111
45112         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
45113         redefinition warnings. To avoid them, include the defines
45114         in `#if !defined __need_getopt ... #endif'. The only place
45115         where __getopt_argv_const is used is in definitions
45116         of getopt_long and getopt_long_only below, which are as well
45117         protected by `#ifndef __need_getopt'.
45118         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
45119         __need_getopt after including <stdio.h> and <unistd.h> These
45120         headers might have defined it.
45121
45122 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
45123
45124         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
45125
45126 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
45127
45128         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
45129         (futimens): New function, which uses futimes if available.
45130         (futimens, utimens): Support timespec==NULL, with same semantics
45131         as utime and utimens.
45132         * lib/utimens.h (futimens): New decl.
45133
45134 2004-11-23  Jim Meyering  <jim@meyering.net>
45135
45136         * lib/getopt_.h: Remove trailing blanks.
45137
45138 2004-11-23  Jim Meyering  <jim@meyering.net>
45139
45140         * lib/__fpending.c: Add comment.
45141
45142 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
45143
45144         * modules/canonicalize (Depends-on): Add xreadlink.
45145         Problem reported by James Youngman.
45146
45147 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
45148
45149         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
45150         New macros.
45151         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
45152         optopt): Use them instead of invoking ## directly; otherwise, the
45153         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
45154
45155 2004-11-19  Bruno Haible  <bruno@clisp.org>
45156
45157         * lib/strtok_r.c: Move comments from here...
45158         * lib/strtok_r.h: ... to here.
45159
45160 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
45161
45162         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
45163         implementations that mishandle size_t overflow.
45164
45165 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
45166
45167         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
45168         might fail.  Problem reported by Yoann Vandoorselaere.
45169         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
45170         implementations that mishandle size_t overflow.
45171
45172 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
45173
45174         * modules/canon-host (Depends-on): Add strdup.
45175
45176 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
45177
45178         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
45179
45180 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
45181
45182         * lib/canon-host.c: Include "strdup.h".
45183         (canon_host): Use getaddrinfo if available, so that IPv6 works.
45184         Use strdup instead of malloc/strcpy to duplicate strings.
45185
45186         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
45187         (human_space_before_unit): New constant.
45188         * lib/human.c (human_readable): Support it.
45189
45190         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
45191         (xgetcwd): Set errno correctly when failing.
45192         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
45193         the failure is actually due to a PATH_MAX problem.
45194
45195         Further getopt changes to make it more likely that glibc will
45196         buy the changes back.
45197         * lib/getopt.c (POSIXLY_CORRECT): New constant.
45198         (getopt): Use it, so to preserve glibc semantic
45199         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
45200         when compiling for libc.
45201         * lib/getopt_.h (__getopt_argv_const): Bring it back.
45202         (getopt_long, getopt_long_only): Use it.
45203
45204         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
45205         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
45206         (getopt): Argv is now char * const *, as per standard.
45207         (_getopt_internal_r, _getopt_internal): Argv is now char **,
45208         not char *__getopt_argv_const *.
45209         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
45210         _getopt_long_only_r): Likewise.
45211         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
45212         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
45213         _getopt_long_r, _getopt_long_only_r): Likewise.
45214         * lib/getopt_.h (__getopt_argv_const): Remove.
45215         (getopt): Argv is now char * const *, as per standard.
45216
45217         * lib/getdate.y (tORDINAL): New token.
45218         (day, relunit): Allow it for relative times.
45219         (relative_time_table): Use tORDINAL for ordinals.
45220
45221 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
45222
45223         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
45224         Document that "second" isn't allowed as an ordinal number.
45225
45226 2004-11-16  Jim Meyering  <jim@meyering.net>
45227
45228         * modules/closeout (Depends-on): Add fpending.
45229
45230 2004-11-15  Jim Meyering  <jim@meyering.net>
45231
45232         * lib/closeout.c: Include "__fpending.h" once again.
45233         Include <stdbool.h>.
45234         (close_stdout): Don't fail just because stdout was closed initially,
45235         since some programs don't write to stdout in the normal course of
45236         operation (other than --version and --help), and we don't want this
45237         function to make e.g. `touch file >&-' fail.
45238         But do fail if it was closed and someone has tried to write to it.
45239         E.g., `printf foo >&-' must fail.
45240
45241 2004-11-13  Jim Meyering  <jim@meyering.net>
45242
45243         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
45244
45245 2004-11-12  Simon Josefsson  <jas@extundo.com>
45246
45247         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
45248         small doc fix is still pending.
45249
45250 2004-11-11  Simon Josefsson  <jas@extundo.com>
45251
45252         * modules/strtok_r: New file.
45253
45254         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
45255         strtok_r.
45256
45257 2004-11-11  Simon Josefsson  <jas@extundo.com>
45258
45259         * m4/strtok_r.m4: New file.
45260
45261         * m4/getopt.m4: Replace opterr.
45262
45263 2004-11-11  Simon Josefsson  <jas@extundo.com>
45264
45265         * lib/strtok_r.h, strtok_r.c: New file.
45266
45267 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
45268
45269         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
45270         of replacing opterr, getopt, etc.  This should handle the
45271         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
45272
45273 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
45274
45275         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
45276         we can stop lying to compilers about the constness of argv when we
45277         are compiled outside glibc.
45278         (getopt, getopt_long, getopt_long_only): Use it.
45279         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
45280         _getopt_internal, getopt): Likewise.
45281         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
45282         _getopt_long_only_r): Likewise.
45283         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
45284         _getopt_long_r, _getopt_long_only_r): Likewise.
45285
45286         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
45287         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
45288         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
45289         the other external symbols.
45290         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
45291         declaration, since the above renaming now works around collisions.
45292
45293 2004-11-11  Jim Meyering  <jim@meyering.net>
45294
45295         * lib/linebreak.c: Remove trailing blanks.
45296         * lib/alloca_.h: Likewise.
45297         * lib/acosl.c: Likewise.
45298         * lib/euidaccess.c: Likewise.
45299         * lib/allocsa.h: Likewise.
45300
45301 2004-11-10  Simon Josefsson  <jas@extundo.com>
45302
45303         * m4/getaddrinfo.m4: New file.
45304
45305 2004-11-10  Simon Josefsson  <jas@extundo.com>
45306
45307         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
45308
45309 2004-11-10  Simon Josefsson  <jas@extundo.com>
45310
45311         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
45312         getaddrinfo.
45313
45314         * modules/getaddrinfo: New file.
45315
45316 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
45317
45318         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
45319
45320 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
45321
45322         * lib/mktime.c (SHR): New macro, which is a portable
45323         substitute for >> that should work even on Crays.
45324         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
45325         Problem reported by Mark D. Baushke in
45326         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
45327         * lib/getdate.y (SHR): Likewise.
45328         (tm_diff): Use it.
45329         * lib/strftime.c (SHR): Likewise.
45330         (tm_diff): Use it.
45331         * lib/quotearg.c (struct quoting_options): Use unsigned int for
45332         quote_these_too, so that right shifts are well defined.  All uses
45333         changed.
45334
45335 2004-11-10  Jim Meyering  <jim@meyering.net>
45336
45337         Ensure that no close failure goes unreported.
45338         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
45339         return early when it seems there's nothing to flush.
45340         Don't include __fpending.h.
45341
45342 2004-11-10  Jim Meyering  <jim@meyering.net>
45343
45344         * modules/closeout (Depends-on): Remove fpending.
45345
45346 2004-11-10  Jim Meyering  <jim@meyering.net>
45347
45348         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
45349
45350 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
45351
45352         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
45353         gl_FUNC_STRFTIME.
45354         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
45355         and AC_REQUIRE when possible, to avoid duplicate checks.
45356         Check for <wchar.h>.
45357
45358 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
45359
45360         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
45361
45362 2004-11-09  Bruno Haible  <bruno@clisp.org>
45363
45364         * m4/sockpfaf.m4: New file.
45365
45366 2004-11-05  Bruno Haible  <bruno@clisp.org>
45367
45368         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
45369         Reported by Mark D. Baushke <mdb@cvshome.org>.
45370
45371 2004-11-04  Bruno Haible  <bruno@clisp.org>
45372
45373         2004-09-11  Bruno Haible  <bruno@clisp.org>
45374                 * allocsa.valgrind: New file.
45375         2004-02-06  Bruno Haible  <bruno@clisp.org>
45376                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
45377                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
45378                 Reported by Christopher Seip <chris.seip@hp.com>.
45379
45380 2004-11-04  Bruno Haible  <bruno@clisp.org>
45381
45382         * modules/allocsa (Files): Add lib/allocsa.valgrind.
45383         (Makefile.am): Distribute it.
45384
45385 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
45386
45387         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
45388         with errno == ERANGE if the buffer is too small.
45389         Problem reported by Mark D. Baushke.
45390
45391 2004-11-03  Albert Chin  <china@thewrittenword.com>
45392             Paul Eggert  <eggert@cs.ucla.edu>
45393
45394         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
45395         equivalent, substitute $ac_type for equivalent type rather than
45396         blindly using uint32_t *always* which won't work if uint32_t is not
45397         available.  Define _UINT32_T to work around typedef of uint32_t if
45398         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
45399         2.5.1.
45400
45401 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
45402
45403         * m4/jm-macros.m4: Sync from coreutils.
45404         (gl_MACROS): Check for mbrlen, for pathchk.
45405         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
45406
45407 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
45408
45409         * lib/xreadlink.c (MAXSIZE): New macro.
45410         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
45411         size does not exceed MAXSIZE.  Avoid cast.
45412         As suggested by Mark D. Baushke in
45413         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
45414         if readlink fails with buffer size just under MAXSIZE, try again
45415         with MAXSIZE.
45416
45417 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
45418
45419         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
45420
45421 2004-11-02  Derek R. Price  <derek@ximbiot.com>
45422         and  Paul Eggert  <eggert@cs.ucla.edu>
45423
45424         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
45425         (get_date): Overparenthesize to avoid GCC warning.
45426
45427 2004-11-02  Bruno Haible  <bruno@clisp.org>
45428
45429         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
45430         returns void.
45431
45432 2004-11-02  Bruno Haible  <bruno@clisp.org>
45433
45434         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
45435         function returns void.
45436
45437 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
45438
45439         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
45440         fflush_unlocked, flockfile, funlockfile, funlockfile,
45441         fputs_unlocked, putc_unlocked.
45442
45443 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
45444
45445         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
45446         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
45447         already declared.
45448
45449 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
45450
45451         * modules/getdate (Files): Add doc/getdate.texi.
45452         (Depends-on): Add setenv, xalloc.
45453
45454 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
45455
45456         * lib/getdate.y: Add support for TZ="foo" within a date string.
45457         Fix some bugs near time_t boundaries.  Reject dates with
45458         out-of-range components, e.g., "Sept 31".
45459         Include <stdlib.h>, "setenv.h", "xalloc.h".
45460         (ISDIGIT_LOCALE): Remove; unused.
45461         Note that the TZ and time functions used here are not reentrant.
45462         (mktime_ok, get_tz): New functions.
45463         (TZBUFSIZE): New constant.
45464         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
45465         This requires that we sometimes generate our own TZ="XXX..." setting.
45466
45467 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
45468
45469         * doc/getdate.texi: New file, from coreutils with modifications for
45470         the new TZ parsing.
45471
45472 2004-10-27  Derek R. Price  <derek@ximbiot.com>
45473
45474         * lib/mktime.c (not_equal_tm): Remove redundant check.
45475
45476 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
45477
45478         * modules/regex (lib_SOURCES): Add regex.c.
45479         Reported by James Youngman in
45480         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
45481
45482 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
45483
45484         * lib/getdate.y: Use Bison 1.875 features, and some minor
45485         code cleanups.  This change does not affect semantics.
45486         Don't include <stdlib.h>; no longer needed.
45487         Don't include unlocked-io.h; only the "#if TEST" code uses
45488         stdio, and performance isn't crucial there.
45489         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
45490         Bison 1.875 features as described below.
45491         All uses of "PC." replaced by "pc->".
45492         (YYSTYPE): Add a forward declaration.
45493         (yylex, yyerror): Use full prototypes in forward decls.
45494         Use "%pure-parser" rather than obsolescent "%pure_parser".
45495         Use %parse-param and %lex-param instead of obsolescent
45496         YYPARSE_PARAM and YYLEX_PARAM.
45497         (meridian_table, month_and_day_table, time_units_table,
45498         relative_time_table, time_zone_table, military_table,
45499         lookup_zone, lookup_word, get_date):
45500         Use NULL instead of 0 where appropriate.
45501         (to_hour): Avoid abort (), to avoid a dependency on
45502         stdlib.h.
45503         (yyerror, yylex): Now accepts parser_control * arg.
45504         (main) [TEST]: Use '\0' rather than 0 for char.
45505
45506 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
45507
45508         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
45509
45510 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
45511
45512         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
45513         It's now the caller's responsibility to handle the case where
45514         !HAVE_GETPAGESIZE && !defined getpagesize.
45515
45516         * lib/mktime.c (leapyear): Arg is long int, not int.
45517
45518 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
45519
45520         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
45521
45522 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
45523
45524         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
45525         missing.  Problem reported by James Youngman.
45526
45527 2004-10-16  Simon Josefsson  <jas@extundo.com>
45528
45529         * gnulib-tool: Fix comments.  Fix parse problem.
45530         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
45531
45532 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
45533
45534         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
45535         implementation of getopt_long.  Problem reported by Alexander Taler in:
45536         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
45537
45538 2004-10-15  Bruno Haible  <bruno@clisp.org>
45539
45540         * gnulib-tool: Untabify. Initialize supplied_libname.
45541         (func_usage): More homogenous output.
45542         (func_modules_transitive_closure, func_modules_to_filelist,
45543         func_emit_lib_Makefile_am): New functions.
45544         (func_import): New function, extracted from big case statement. Use
45545         func_get_license, func_modules_transitive_closure,
45546         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
45547         opt_lgpl. Don't use test -a, as it's not portable.
45548         (func_create_testdir): Use func_modules_transitive_closure,
45549         func_modules_to_filelist, func_emit_lib_Makefile_am.
45550
45551 2004-10-15  Bruno Haible  <bruno@clisp.org>
45552
45553         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
45554
45555 2004-10-15  Bruno Haible  <bruno@clisp.org>
45556
45557         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
45558         the portions belonging to each module.
45559         Suggested by Derek Robert Price <derek@ximbiot.com>.
45560
45561 2004-10-12  Simon Josefsson  <jas@extundo.com>
45562
45563         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
45564         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
45565         to real functions.
45566
45567 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
45568
45569         * modules/vsnprintf: New file.
45570
45571 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
45572
45573         * m4/vsnprintf.m4: New file.
45574
45575 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
45576
45577         * lib/vsnprintf.h: New file.
45578         * lib/vsnprintf.c: New file.
45579
45580 2004-10-11  Bruno Haible  <bruno@clisp.org>
45581
45582         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
45583         vsnprintf.
45584
45585 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
45586
45587         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
45588
45589 2004-10-07  Bruno Haible  <bruno@clisp.org>
45590
45591         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
45592         fits into the provided buffer.
45593
45594 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
45595
45596         * lib/diacrit.c, diacrit.h: Add GPL notice.
45597
45598         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
45599         notice.
45600         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
45601         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
45602         This avoids a potential constant-folding bug.
45603
45604 2004-10-05  Bruno Haible  <bruno@clisp.org>
45605
45606         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
45607         for the declaration of strsep.
45608
45609 2004-10-05  Bruno Haible  <bruno@clisp.org>
45610
45611         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
45612
45613 2004-10-04  Simon Josefsson  <jas@extundo.com>
45614
45615         * modules/memmem: New file.
45616         * tests/test-memmem.c: New file.
45617         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
45618
45619 2004-10-04  Simon Josefsson  <jas@extundo.com>
45620
45621         * m4/memmem.m4: New file.
45622
45623 2004-10-04  Simon Josefsson  <jas@extundo.com>
45624
45625         * lib/memmem.h: New file.
45626         * lib/memmem.c: New file, taken from glibc.
45627
45628 2004-10-04  Simon Josefsson  <jas@extundo.com>
45629
45630         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
45631         '#ifdef USE_UNLOCKED_IO'.
45632
45633 2004-10-04  Simon Josefsson  <jas@extundo.com>
45634
45635         * config/srclist.txt: Add memmem from glibc.
45636
45637 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
45638
45639         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
45640
45641         * modules/argmatch, modules/argp, modules/closeout, modules/error,
45642         modules/exclude, modules/getdate, modules/getline,
45643         modules/getndelim2, modules/getpass, modules/getpass-gnu,
45644         modules/getusershell, modules/linebuffer, modules/md5,
45645         modules/mountlist, modules/posixtm, modules/readtokens,
45646         modules/readutmp, modules/regex, modules/sha1,
45647         modules/version-etc, modules/yesno:
45648         Remove dependency on unlocked-io.
45649
45650 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
45651
45652         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
45653
45654         * m4/unlocked-io.m4: Add copyright notice.
45655         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
45656
45657 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
45658
45659         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
45660         * lib/xmalloc.c (xmemdup): Likewise.
45661         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
45662         XFREE): Remove these long-obsolescent macros.
45663         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
45664         * lib/xstrdup.c: Remove.
45665
45666         * lib/regex.c (re_comp): Cast gettext return value to char *,
45667         Problem reported by Martin Neitzel via Mark D. Baushke.
45668
45669 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
45670
45671         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
45672         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
45673         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
45674         regex.c, sha1.c, version-etc.c, yesno.c:
45675         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
45676         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
45677         the includer's responsibility.
45678
45679         Sync from coreutils.
45680
45681         * lib/modechange.c (mode_compile): Don't decrement a pointer that
45682         points to the start of a string, as the C Standard says the
45683         resulting behavior is undefined.
45684
45685         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
45686         simple -> simple_backups, numbered_existing ->
45687         numbered_existing_backups, numbered -> numbered_backups
45688         to avoid shadowing problems.  All uses changed.
45689         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
45690         * lib/backupfile.c (check_extension, numbered_backup):
45691         Rename locals to avoid shadowing 'basename'.
45692         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
45693         once.
45694
45695         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
45696         * lib/.cvsignore: Add getopt.h.
45697
45698 2004-10-04  Bruno Haible  <bruno@clisp.org>
45699
45700         * modules/README: New file.
45701         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
45702         not a module.
45703
45704 2004-10-02  Jim Meyering  <jim@meyering.net>
45705
45706         * lib/dirfd.h, getpagesize.h: Add copyright notice.
45707
45708 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
45709
45710         * modules/strsep: New file.
45711
45712 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
45713
45714         * m4/strsep.m4: New file.
45715
45716 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
45717
45718         * lib/strsep.h: New file.
45719         * lib/strsep.c: New file.
45720
45721 2004-10-01  Simon Josefsson  <jas@extundo.com>
45722
45723         * lib/snprintf.c (snprintf): Handle size==0.
45724
45725 2004-10-01  Simon Josefsson  <jas@extundo.com>
45726             Bruno Haible  <bruno@clisp.org>
45727
45728         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
45729         (snprintf): Declare 'args'.
45730
45731 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
45732
45733         * lib/snprintf.c: Remove comments as to why each header is needed.
45734
45735 2004-10-01  Bruno Haible  <bruno@clisp.org>
45736
45737         * MODULES.html.sh: Add strsep.
45738
45739 2004-09-30  Simon Josefsson  <jas@extundo.com>
45740
45741         * modules/snprintf: New file.
45742
45743 2004-09-30  Simon Josefsson  <jas@extundo.com>
45744
45745         * m4/snprintf.m4: New file.
45746
45747 2004-09-30  Simon Josefsson  <jas@extundo.com>
45748
45749         * lib/snprintf.h, lib/snprintf.c: New files.
45750
45751 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
45752
45753         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
45754         (hol_entry_help): Never translate an empty string.
45755         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
45756         * lib/argp.h (OPTION_NO_TRANS): New option.
45757
45758 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
45759
45760         * modules/argp (Maintainer): Replace Simon Josefsson
45761         by Sergey Poznyakoff.
45762
45763 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
45764
45765         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
45766         changes merged back into glibc.
45767
45768 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
45769
45770         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
45771
45772 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
45773
45774         * lib/xvasprintf.c: Include xalloc.h.
45775         (xvasprintf): Use xalloc_die, not xmalloc_die.
45776
45777 2004-09-29  Bruno Haible  <bruno@clisp.org>
45778
45779         * modules/alloca-opt: New file, derived from modules/alloca.
45780         * modules/allocsa: Depend on alloca-opt instead of alloca.
45781         * modules/setenv: Likewise.
45782         * modules/vasnprintf: Likewise.
45783         * MODULES.html.sh: Add alloca-opt.
45784
45785 2004-09-28  Simon Josefsson  <jas@extundo.com>
45786
45787         * gnulib-tool: New parameter --lgpl, to asseert that modules are
45788         LGPL, and to replace license template from GPL to LGPL.
45789
45790 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
45791
45792         * modules/dummy: Change license to LGPL.
45793
45794 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
45795
45796         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
45797
45798 2004-09-24  Simon Josefsson  <jas@extundo.com>
45799
45800         * modules/minmax (License): Change from GPL to LGPL.
45801
45802 2004-09-23  Simon Josefsson  <jas@extundo.com>
45803
45804         * gnulib-tool (--import): Typo.
45805
45806 2004-09-23  Simon Josefsson  <jas@extundo.com>
45807
45808         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
45809
45810 2004-09-22  Bruno Haible  <bruno@clisp.org>
45811
45812         * modules/*: Add 'License' field.
45813         * gnulib-tool: Accept --extract-license option.
45814         (func_get_license): New function.
45815
45816 2004-09-21  Bruno Haible  <bruno@clisp.org>
45817
45818         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
45819         Reported by Simon Josefsson.
45820
45821 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
45822
45823         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
45824         gl_AC_TYPE_LONG_LONG.
45825
45826 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
45827
45828         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
45829
45830 2004-09-18  Simon Josefsson  <jas@extundo.com>
45831         and  Paul Eggert  <eggert@cs.ucla.edu>
45832
45833         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
45834         calls with autoreconf.  Define GL_LIB.
45835
45836 2004-09-14  Karl Berry  <karl@gnu.org>
45837
45838         * config/srclist.txt: unsync setenv.c, sigh.
45839
45840 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
45841
45842         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
45843         Problem reported by Bruno Haible in:
45844         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
45845
45846 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
45847
45848         * config/srclist.txt: Comment out argp-pvh.c.
45849
45850 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
45851
45852         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
45853         in case some system header has #define'd it.  Problem reported by
45854         Soeren D. Schulze in
45855         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
45856
45857 2004-09-09  Karl Berry  <karl@gnu.org>
45858
45859         * regex.[ch]: delete from the root.  These were supposed to be
45860                 synced with emacs cvs, but this has not happened for about
45861                 a year, and anyway nothing else uses emacs regex.[ch].
45862                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
45863                 lib/regex[.ch] is untouched.
45864
45865 2004-09-09  Bruno Haible  <bruno@clisp.org>
45866
45867         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
45868
45869 2004-09-09  Bruno Haible  <bruno@clisp.org>
45870
45871         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
45872         modifications.
45873         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
45874
45875 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
45876
45877         * modules/xvasprintf: New file.
45878         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
45879
45880 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
45881
45882         * lib/xvasprintf.h: New file.
45883         * lib/xvasprintf.c: New file.
45884         * lib/xasprintf.c: New file.
45885
45886 2004-09-08  Bruno Haible  <bruno@clisp.org>
45887
45888         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
45889
45890 2004-09-08  Bruno Haible  <bruno@clisp.org>
45891
45892         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
45893         length is > INT_MAX.
45894         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
45895         more.
45896
45897 2004-09-08  Bruno Haible  <bruno@clisp.org>
45898
45899         * lib/stdint_.h: New file, taken from GNU clisp.
45900
45901 2004-09-08  Bruno Haible  <bruno@clisp.org>
45902             Oskar Liljeblad  <oskar@osk.mine.nu>
45903
45904         * modules/stdint: New file.
45905         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
45906
45907 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
45908
45909         Import from coreutils.
45910         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
45911         strings on unbounded length.  alloca's performance benefits aren't
45912         that important here.
45913         (V_STRDUP): Remove.
45914         (parse_with_separator): New function, with most of the internals
45915         of the old parse_user_spec.  Allow user to omit both user and group,
45916         for compatibility with FreeBSD.
45917         Clone only the user name, not the entire spec.
45918         Do not set *uid, *gid unless entirely successful.
45919         Avoid memory leak in some failing cases.
45920         Fix regression for USER.GROUP reported by Dmitry V. Levin in
45921         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
45922         (parse_user_spec): Rewrite to use parse_with_separator.
45923
45924 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
45925
45926         * modules/userspec: Don't depend on alloca.
45927
45928 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
45929
45930         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
45931
45932 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
45933
45934         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
45935         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
45936         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
45937
45938 2004-08-16  Simon Josefsson  <jas@extundo.com>
45939
45940         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
45941         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
45942         Add --dry-run for --import.
45943         Let user provided command line parameters override configure.ac
45944         settings.
45945
45946 2004-08-12  Simon Josefsson  <jas@extundo.com>
45947
45948         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
45949         as discussed with Paul Eggert in threads rooted at
45950         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
45951         and
45952         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
45953         Before, the test was empty, and relied on ELIDE_CODE in source
45954         code.)
45955         (gl_PREREQ_GETOPT): New macro.
45956         (gl_GETOPT): Use them.
45957
45958 2004-08-12  Simon Josefsson  <jas@extundo.com>
45959
45960         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
45961         * lib/getopt_.h: Renamed from getopt.h.
45962
45963 2004-08-12  Simon Josefsson  <jas@extundo.com>
45964
45965         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
45966         Change default library name from libfoo to libgnu.
45967         Now, if you have a configure.ac that says:
45968                 gl_SOURCE_BASE(gl)
45969                 gl_M4_BASE(gl/m4)
45970                 gl_MODULES(error getopt etcetera)
45971                 gl_INIT
45972         you can import all you need by running:
45973                 ../gnulib/gnulib-tool --import
45974
45975         * modules/getopt (Files): Rename getopt.h to getopt_.h.
45976         (Makefile.am): Rewrite, use logic from argz.
45977         (Include): Use <getopt.h> instead of "getopt.h".
45978
45979 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
45980
45981         * modules/argp (Files): Add m4/unlocked-io.m4.
45982         (Depends-on): Add extensions.
45983
45984 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
45985
45986         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
45987         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
45988         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
45989         Check for program_invocation_name, program_invocation_short_name,
45990         flockfile, funlockfile, features.h, _getopt_long_only_r.
45991
45992 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
45993
45994         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
45995         its complicated substitute.
45996         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
45997         and program_invocation_name.
45998         (__argp_basename) [!_LIBC]: Remove; the only use was
45999         replaced by its body.
46000         (__argp_short_program_name): Change condition from
46001         !defined __argp_short_program_name to
46002         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
46003         to match argp-namefrob.h.
46004         (__argp_failure): Don't assume strerror_r returns char *.
46005         * lib/argp-parse.c (N_): Define unconditionally.
46006         (argp_default_options): Fill out initializers with 0 to avoid
46007         gcc warnings.
46008
46009 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
46010
46011         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
46012         getopt1.c.
46013
46014 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
46015
46016         Merge from coreutils.
46017
46018         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
46019
46020         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
46021         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
46022
46023 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
46024
46025         Merge from coreutils.
46026
46027         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
46028         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
46029         for Reliant Unix 5.43.
46030
46031         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
46032         (union fooround): Use uintmax_t, not long int.
46033         The rest is a merge from libc:
46034         [defined _LIBC]: Include <shlib-compat.h>.
46035         (_obstack) [defined _LIBC]: Remove after 2.3.4.
46036
46037         * lib/settime.c (settime): Recode to avoid warning with
46038         Sun Forte C 6U2.
46039
46040         * lib/strverscmp.c: Convert to UTF-8.
46041
46042 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
46043
46044         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
46045         m4/uintmax_t.m4.
46046
46047 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
46048
46049         * modules/xalloc-die: New file.
46050         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
46051
46052         * modules/md5 (Files): Add m4/uint32_t.m4.
46053         * modules/sha1: Renamed from modules/sha.
46054         (Files):
46055         Rename lib/sha.h to lib/sha1.h.
46056         Rename lib/sha.c to lib/sha1.c.
46057         Rename m4/sha.m4 to m4/sha1.m4.
46058         (lib_SOURCES): Likewise.
46059         (configure.ac): Rename gl_SHA to gl_SHA1.
46060         (Include): sha.h -> sha1.h.
46061
46062 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
46063
46064         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
46065         * m4/sha1.m4: Renamed from sha.m4.
46066         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
46067
46068 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
46069
46070         * lib/obstack.h (obstack_empty_p):
46071         Don't assume that chunk->contents is suitably aligned.
46072         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
46073         Likewise. Problem reported by Benno in
46074         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
46075
46076         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
46077         readable.  This could be improved further but it'd take some work.
46078
46079 2004-08-08  Simon Josefsson  <jas@extundo.com>
46080
46081         * modules/xgethostname (Depends-on): Remove exit and error (not
46082         used).
46083
46084         * modules/getpass-gnu: Add getpass.h.
46085         (Depends-on): Add stdbool.
46086         * modules/getpass: Add getpass.h.
46087
46088 2004-08-08  Simon Josefsson  <jas@extundo.com>
46089
46090         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
46091         Check getpass declaration.
46092
46093 2004-08-08  Simon Josefsson  <jas@extundo.com>
46094
46095         * lib/xgethostname.c: Don't include error.h (not used).
46096
46097         * lib/getpass.h: Add.
46098         * lib/getpass.c: Include getpass.h first.
46099
46100 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
46101
46102         * lib/xalloc-die.c: New file.
46103         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
46104         All uses removed.
46105         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
46106         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
46107         xalloc-die.c.
46108         (_, N_, xalloc_die): Move to xalloc-die.c.
46109         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
46110         so that we needn't mess with xalloc_msg_memory_exhausted.
46111
46112         * lib/sha1.h: Renamed from sha.h.
46113         (SHA1_H): Renamed from _SHA_H.
46114         (sha1_ctx): Renamed from sha_ctx.
46115         (sha1_init_ctx): Renamed from sha_init_ctx.
46116         (sha1_process_block): Renamed from sha_process_block.
46117         (sha1_process_bytes): Renamed from sha_process_bytes.
46118         (sha1_finish_ctx): Renamed from sha_finish_ctx.
46119         (sha1_read_ctx): Renamed from sha_read_ctx.
46120         (sha1_stream): Renamed from sha_stream.
46121         (sha1_buffer): Renamed from sha_buffer.
46122         * lib/sha1.c: Likewise; renamed from sha.c.
46123         Do not include <sys/types.h>.
46124         Include <stddef.h> rather than <stdlib.h>.
46125
46126 2004-08-08  Bruno Haible  <bruno@clisp.org>
46127
46128         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
46129         FILESYSTEM_PREFIX_LEN.
46130         * lib/progreloc.c: Likewise.
46131         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
46132
46133 2004-08-06  Simon Josefsson  <jas@extundo.com>
46134
46135         * modules/progname (Depends-on): Don't depend on stdbool.
46136
46137 2004-08-06  Simon Josefsson  <jas@extundo.com>
46138
46139         * modules/getsubopt: New file.
46140         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
46141         getsubopt.
46142
46143 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
46144
46145         More merge from coreutils.
46146
46147         * m4/utimens.m4, m4/utimecmp.m4: New files.
46148         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
46149         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
46150         prereq.m4, sha.m4: Import changes from coreutils.
46151
46152 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
46153
46154         More merge from coreutils.
46155         * modules/raise, modules/readtokens0, modules/utimens:
46156         * modules/utimecmp, module/xnanosleep: New files.
46157         * modules/strftime: Add lib/strftime.h.
46158         Change include from <time.h> to "strftime.h".
46159         * modules/yesno: Add lib/yesno.h.
46160         * modules/backupfile: Remove lib/addext.c.
46161         * modules/euidaccess: Add stat-macros.h.
46162         * modules/canonicalize, modules/euidaccess,
46163         modules/filemode, modules/lchown, modules/makepath,
46164         modules/rmdir, modules/stat: Likewise.
46165
46166 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
46167
46168         Merge from tar.
46169         * lib/argp-help.c (make_hol, hol_append): Don't assume that
46170         SIZE_MAX is a valid preprocessor constant.
46171         (__argp_basename): Change from "#ifndef _LIBC"
46172         to "#ifndef __argp_short_program_name", so that
46173         we don't compile these functions for tar.
46174
46175         More merges from coreutils.
46176         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
46177         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
46178         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
46179         * lib/addext.c: Remove; no longer needed.
46180         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
46181         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
46182         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
46183         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
46184         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
46185         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
46186         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
46187         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
46188         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
46189         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
46190         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
46191         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
46192         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
46193         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
46194         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
46195         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
46196         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
46197         Import changes from coreutils.
46198
46199 2004-08-05  Simon Josefsson  <jas@extundo.com>
46200
46201         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
46202
46203 2004-08-05  Simon Josefsson  <jas@extundo.com>
46204
46205         * m4/getsubopt.m4: New file.
46206
46207 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
46208
46209         Merge from coreutils.
46210
46211         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
46212         * m4/getcwd-path-max.m4: New files.
46213
46214         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
46215         FILESYSTEM_PREFIX_LEN ->
46216         FILE_SYSTEM_PREFIX_LEN.
46217         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
46218         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
46219         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
46220         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
46221
46222         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
46223         prerequisite modules now handle the DOS stuff.
46224         Don't check for unistd.h.
46225
46226 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
46227
46228         Merge from coreutils.
46229
46230         * lib/.gdb-history: Remove; this doesn't belong here.
46231
46232         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
46233         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
46234         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
46235         * lib/getcwd.c: New files.
46236
46237         * lib/dirname.h: Include <stdbool.h>.
46238         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
46239         for consistency with POSIX terminology.  All uses changed.
46240         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
46241         (strip_trailing_slashes): Use bool for booleans.
46242         * lib/stripslash.c (strip_trailing_slashes): Likewise.
46243
46244         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
46245         sometimes returns a positive errno value even when it succeeds.
46246         (print_errno_message) [!LIBC]: Fall back on strerror if
46247         __strerror_r fails.
46248
46249         * lib/path-concat.c (mempcpy): Don't define if a system header defines
46250         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
46251         (longest_relative_suffix): New function.
46252         (path_concat): Use it.  Assume first argument is not NULL.
46253         Port to DOS.  Omit redundant separators.
46254         Report an error instead of returning NULL.
46255         Use mempcpy instead of memcpy.
46256         (xpath_concat): Remove: not declared or used.
46257
46258         * lib/same.h: Include <stdbool.h>
46259         (same_name): Return bool, not int.
46260         * lib/same.c (same_name): Likewise.
46261         (errno): Don't declare; we assume C89 or better now.
46262
46263         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
46264         if not already defined.
46265
46266         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
46267         * lib/dup-safer.c (errno): Likewise.
46268
46269 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
46270
46271         Merge from coreutils.
46272         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
46273         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
46274         * modules/path-concat: Don't depend on strdup.
46275
46276 2004-08-03  Simon Josefsson  <jas@extundo.com>
46277
46278         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
46279         * lib/progname.h: Don't include stdbool.h.
46280
46281 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
46282
46283         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
46284         * MODULES.html.sh (func_all_modules): Remove fatal.
46285
46286 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
46287
46288         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
46289
46290 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
46291
46292         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
46293         working.
46294
46295 2004-08-02  Simon Josefsson  <jas@extundo.com>
46296
46297         * lib/getsubopt.h: New file, with comments from Bruno Haible.
46298         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
46299         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
46300
46301 2004-08-01  Simon Josefsson  <jas@extundo.com>
46302
46303         * lib/xgetdomainname.c: Include stdlib.h, for free().
46304
46305 2004-07-19  Bruno Haible  <bruno@clisp.org>
46306
46307         * MODULES.html.sh (func_all_modules): Add dummy.
46308
46309 2004-07-16  Simon Josefsson  <jas@extundo.com>
46310
46311         * modules/dummy: New file.
46312
46313 2004-07-16  Simon Josefsson  <jas@extundo.com>
46314
46315         * lib/dummy.c: New file.
46316
46317 2004-07-16  Bruno Haible  <bruno@clisp.org>
46318
46319         * lib/backupfile.h: Add extern "C" for C++.
46320         * lib/closeout.h: Likewise.
46321         * lib/copy-file.h: Likewise.
46322         * lib/findprog.h: Likewise.
46323         * lib/full-write.h: Likewise.
46324         * lib/pathname.h: Likewise.
46325         * lib/progname.h: Likewise.
46326         * lib/stpcpy.h: Likewise.
46327         * lib/stpncpy.h: Likewise.
46328         * lib/strcase.h: Likewise.
46329         * lib/strstr.h: Likewise.
46330         * lib/xalloc.h: Likewise.
46331
46332         * lib/mbswidth.h: Add extern "C" for C++.
46333         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
46334
46335 2004-07-13  Robert Millan  <robertmh@gnu.org>
46336
46337         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
46338
46339 2004-07-09  Simon Josefsson  <jas@extundo.com>
46340
46341         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
46342         failed without this.)
46343
46344 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
46345
46346         * modules/chown (Files): Add lib/fchown-stub.c, since
46347         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
46348
46349 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
46350
46351         * lib/fchown-stub.c: New file.
46352
46353 2004-06-24  Jim Meyering  <jim@meyering.net>
46354
46355         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
46356
46357 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
46358
46359         * modules/argz: Omit "#include".
46360
46361         * MODULES.html.sh (func_all_modules): Add calloc, to match
46362         2004-06-01 addition of calloc module.
46363
46364 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
46365
46366         * m4/argz.m4: New file, which is autoupdated from libtool.
46367
46368 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
46369
46370         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
46371         libtool.
46372
46373 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
46374
46375         * config/srclist-update: Don't insist on "USA." before the
46376         close-comment, as libtool omits the period and puts the */ on a
46377         separate line.
46378         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
46379         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
46380
46381 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
46382
46383         * modules/argz: New file.
46384         * MODULES.html.sh (func_all_modules): Add argz.
46385
46386 2004-06-12  Jim Meyering  <jim@meyering.net>
46387         and  Paul Eggert  <eggert@cs.ucla.edu>
46388
46389         * modules/hash (Files): Add lib/xalloc.h.
46390         * modules/pipe (Depends-on): Add wait-process.
46391         * modules/stat (Depends-on): Add xalloc.
46392         * modules/userspec (Files): Add lib/userspec.h.
46393         * modules/xstrto
46394
46395         Upgrade from gettext-0.13.
46396         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
46397         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
46398         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
46399
46400 2004-06-10  Jim Meyering  <jim@meyering.net>
46401
46402         * lib/calloc.c: New file.
46403
46404 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
46405
46406         * lib/getdate.y (yylex): Allow space between sign and number.
46407         Problem reported by Dan Jacobson.
46408
46409 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
46410
46411         Merge from coreutils CVS.
46412
46413         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
46414         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
46415         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
46416         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
46417         xstrtol.m4: Fix copyright date and/or serial number.
46418
46419         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
46420         See if we need an fchown replacement.
46421         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
46422         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
46423         and use the replacement function if we detect either defect.
46424
46425         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
46426         gl_UTIMECMP.
46427
46428 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
46429         and  Jim Meyering  <jim@meyering.net>
46430
46431         Merge from coreutils CVS.
46432
46433         * lib/stat-macros.h: New file, with contents from file-type.h
46434         and coreutils' system.h.
46435         * lib/file-type.c: Include "stat-macros.h".
46436         * lib/file-type.h (file_type): Move all macro definitions to new file,
46437         stat-macros.h.
46438
46439         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
46440         Wrap old code with this conditional.
46441         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
46442         function that does not dereference symlinks.
46443         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
46444
46445         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
46446         dependency problems.
46447         (xreadlink): Accept new arg SIZE, for efficiency.
46448         All decls and uses changed.
46449         * lib/xreadlink.h: Include <stddef.h>, for size_t.
46450
46451         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
46452         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
46453
46454         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
46455         sysexits.h.
46456
46457 2004-06-01  Jim Meyering  <jim@meyering.net>
46458
46459         * m4/calloc.m4: New file.
46460
46461 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
46462
46463         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
46464         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
46465         Also, fix a typo in a diagnostic.
46466
46467 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
46468
46469         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
46470         or AC_FUNC_REALLOC.
46471
46472 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
46473
46474         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
46475         macros to be defined.
46476         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
46477         the allocator returns NULL because the requested size is zero.
46478
46479 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
46480
46481         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
46482         var.  Add comment explaining why libc still defines it.  This
46483         merges the following patch from glibc:
46484         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
46485
46486 2004-05-20  Andreas Schwab  <schwab@suse.de>
46487
46488         * m4/free.m4: Replace free if it not known to work, not the other
46489         way round.
46490
46491 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
46492
46493         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
46494         present in glibc since revision 1.1 of this file.
46495         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
46496         obstack_alignment_mask, obstack_alloc, obstack_base,
46497         obstack_blank, obstack_blank_fast, obstack_chunk_size,
46498         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
46499         obstack_grow0, obstack_init, obstack_int_grow,
46500         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
46501         obstack_next_free, obstack_object_size, obstack_ptr_grow,
46502         obstack_ptr_grow_fast, obstack_room): Remove declarations of
46503         nonexistent functions.
46504
46505 2004-05-18  Karl Berry  <karl@gnu.org>
46506
46507         * config/srclist.txt: break link for vasnprintf.c.
46508
46509 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
46510
46511         Port obstack to the AS/400, where pointers are 16 bytes wide and
46512         you cannot cast an integer to a valid pointer.  This patch is
46513         currently waiting to be integrated into glibc; see
46514         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
46515
46516         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
46517         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
46518         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
46519         (struct obstack): temp member is now a union of a pointer and
46520         an integer, instead of an integer.  All integer uses changed.
46521         This does not affect the physical layout of struct obstack,
46522         except on hosts (like the AS/400) where the size or alignment of
46523         void * is greater than that of ptrdiff_t.
46524         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
46525         __STDC__)]: Store temporary in pointer member of union, not
46526         integer member.
46527         * lib/obstack.c: Include <stddef.h>, for offsetof.
46528         (struct fooalign): Remove; it doesn't need a name.
46529         (union fooround): Change double to long double, and add void *.
46530         (DEFAULT_ALIGNMENT): Use offsetof to compute.
46531         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
46532         not a macro.  Hence the values are always int; so remove all
46533         casts-to-int in uses.
46534
46535 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
46536
46537         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
46538         we can get this patch merged into glibc.
46539
46540 2004-05-17  Derek R. Price  <derek@ximbiot.com>
46541             Paul Eggert  <eggert@cs.ucla.edu>
46542
46543         * m4/argp: Depend on alloca.
46544
46545 2004-05-17  Derek R. Price  <derek@ximbiot.com>
46546             Paul Eggert  <eggert@cs.ucla.edu>
46547
46548         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
46549         freecoding.
46550
46551 2004-05-17  Bruno Haible  <bruno@clisp.org>
46552
46553         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
46554         precision that consists of a '.' followed by an empty digit string.
46555         Patch by Tor Lillqvist <tml@iki.fi>.
46556
46557 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
46558
46559         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
46560         for backward compatibility with older code.  We need our own
46561         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
46562         it under some other name, and our alloca.h will define it.
46563
46564 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
46565             Derek Price  <derek@ximbiot.com>
46566
46567         * lib/alloca.c: Include <alloca.h>, to get our interface.
46568         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
46569         include <alloca.h> first.  Use C89 prototype for alloca; this
46570         requires including <stddef.h> for size_t.  Use extern "C" if C++.
46571         Use #elif for simplicity, since we can assume C89 now.
46572         Don't try to source the system alloca.h since it will not be found
46573         and to prevent recursively including its replacement.
46574         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
46575         * lib/regex.c: Likewise.
46576
46577 2004-05-16  Derek Price  <derek@ximbiot.com>
46578             Paul Eggert  <eggert@cs.ucla.edu>
46579
46580         getline cleanup.  This changes the getndelim2 API: both order of
46581         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
46582         no delimiter).
46583
46584         * lib/getline.c: Don't include stddef.h or stdio.h, since our
46585         interface does that.
46586         (getline): Always use getdelim, so that we don't have two
46587         copies of this code.
46588         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
46589         if available.
46590         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
46591         (GETNDELIM2_MAXIMUM): New macro.
46592         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
46593         instead of the old practice of delim2==0.  All callers changed.
46594         Return -1 on overflow, instead of returning junk.
46595         Do not set *linesize unless allocation succeeds.
46596         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
46597         that we include sys/types.h.
46598         * lib/getnline.h: Likewise.
46599         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
46600         (getndelim2): Reorder arguments.
46601         * lib/getnline.c (getnline, getndelim):
46602         Don't discard the NMAX argument.
46603         (getnline): Invoke getndelim, to avoid code duplication.
46604         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
46605         of (size_t) -1 by callers of the getnline family.
46606
46607 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
46608
46609         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
46610         Check for gettimeofday.
46611         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
46612         Check for settimeofday, stime.
46613
46614 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
46615
46616         * lib/nanosleep.c (suspended): Change its type from int to
46617         sig_atomic_t volatile.
46618         (first_call): Make it private to rpl_nanosleep, and have it
46619         be zero initially as that's a bit faster.
46620         (my_usleep): Round up fractional times instead of truncating them,
46621         as this is the usual meaning for 'sleep'.
46622
46623         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
46624         doesn't work.
46625         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
46626         (ENOSYS): Define if not defined.
46627         (settime): Fall back on stime if it exists and settimeofday fails.
46628         But don't bother with fallbacks if a method fails with errno == EPERM.
46629
46630 2004-05-11  Jim Meyering  <jim@meyering.net>
46631
46632         Prior to this change, the save_cwd caller required read access to the
46633         current directory on most systems (ones with the fchdir function).
46634
46635         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
46636         fails, try write-only, and finally, resort to using xgetcwd.
46637
46638 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
46639
46640         * lib/obstack.c, obstack.h: Import changes from libc.
46641
46642 2004-04-28  Bruno Haible  <bruno@clisp.org>
46643
46644         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
46645         also implicitly appends .exe to executables.
46646         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
46647         accepts Windows pathnames.
46648         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
46649         Treat Cygwin like Windows, since it now accepts Windows pathnames.
46650         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
46651         Treat Cygwin like Windows, since it now accepts Windows pathnames.
46652         Reported by Derek Robert Price <derek@ximbiot.com>.
46653
46654 2004-04-21  Karl Berry  <karl@gnu.org>
46655
46656         * config/srclist.txt (localcharset.c): break sync.
46657
46658 2004-04-20  Paul Eggert  <eggert@twinsun.com>
46659
46660         * m4/host-os.m4: Add a copyright notice.
46661
46662 2004-04-20  Jim Meyering  <jim@meyering.net>
46663
46664         Change UTILS_ to gl_ in AC_DEFINE'd names.
46665         Change utils_- and jm_-prefixed variables, too.
46666         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
46667         UTILS_FUNC_MKDIR_TRAILING_SLASH.
46668         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
46669
46670         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
46671         Don't emit trailing blanks.
46672         Also rename jm_-prefixed variables to have gl_ prefix.
46673
46674         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
46675         Also rename jm_-prefixed variables to have gl_ prefix.
46676
46677         * m4/jm-macros.m4: Reflect the renamings.
46678         * m4/prereq.m4: Likewise.
46679
46680 2004-04-20  Jim Meyering  <jim@meyering.net>
46681
46682         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
46683         memory.
46684
46685 2004-04-20  Jim Meyering  <jim@meyering.net>
46686             Bruno Haible  <bruno@clisp.org>
46687
46688         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
46689         memory when realloc fails.
46690
46691 2004-04-19  Jim Meyering  <jim@meyering.net>
46692
46693         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
46694         now that readutmp.c may call `free (0)'.
46695
46696 2004-04-19  Bruno Haible  <bruno@clisp.org>
46697
46698         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
46699         * m4/inttypes_h.m4: Likewise.
46700         * m4/stdint_h.m4: Likewise.
46701         * m4/intmax_t.m4: Likewise.
46702         * m4/uintmax_t.m4: Likewise.
46703
46704 2004-04-18  Jim Meyering  <jim@meyering.net>
46705
46706         * m4/prereq.m4: Don't forbid jm_ prefix.
46707
46708         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
46709         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
46710         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
46711         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
46712         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
46713         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
46714         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
46715         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
46716         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
46717         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
46718         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
46719         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
46720         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
46721         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
46722         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
46723         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
46724         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
46725         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
46726         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
46727
46728 2004-04-18  Jim Meyering  <jim@meyering.net>
46729
46730         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
46731         failure, don't leak memory and do call END_UTMP_ENT.
46732
46733 2004-04-16  Jim Meyering  <jim@meyering.net>
46734
46735         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
46736         coreutils' stat program.
46737         (gl_PREREQ): Don't require jm_PREREQ_STAT.
46738
46739 2004-04-11  Paul Eggert  <eggert@twinsun.com>
46740
46741         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
46742         C89.
46743         (CHAR_BIT): Remove, since we assume C89.
46744         Include <stdint.h> if available, as per current Autoconf CVS advice.
46745
46746 2004-03-31  Jim Meyering  <jim@meyering.net>
46747
46748         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
46749         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
46750         * m4/xalloc.m4: Likewise.
46751
46752 2004-03-30  Paul Eggert  <eggert@twinsun.com>
46753
46754         Merge from coreutils.
46755
46756         * m4/inttostr.m4: New file.
46757         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
46758         Require AM_STDBOOL_H and gl_TIMESPEC instead.
46759         Require gl_CLOCK_TIME.
46760         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
46761
46762 2004-03-30  Paul Eggert  <eggert@twinsun.com>
46763
46764         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
46765         not bool, to be more consistent with Unix conventions.
46766         Suggested by Bruno Haible.
46767
46768         Merge from coreutils.
46769
46770         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
46771         * lib/umaxtostr.c: New files.
46772
46773         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
46774         the usual <time.h> dance.
46775         (get_date): Change signature to support fractional time stamps.
46776         All callers changed.
46777         * lib/getdate.y: Include "getdate.h" first, as we can now
46778         assume C89 and don't need to worry about 'const'.
46779         Similarly, include "unlocked-io.h" near start, not in middle.
46780         Include <limits.h>.
46781         (textint.value): Use long int rather than int.
46782         (textint.digits): Use size_t rather than int.
46783         (BILLION, LOG10_BILLION): New constants.
46784         (parser_control): New member rel_ns.  Members day_ordinal,
46785         time_zone, month, day, hour, minutes, rel_year, rel_month,
46786         rel_day, rel_hour, rel_minutes, rel_seconds
46787         are now long int, not int.  Member seconds is now struct timespec,
46788         not int.  New member timespec_seen.  Members dates_seen, days_seen,
46789         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
46790         not int.
46791         (%union.intval): Now long int, not int.
46792         New member timespec.
46793         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
46794         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
46795         (spec): Now is a timespec or an item list.
46796         (timespec, items): New nonterminals.
46797         (time, rel, relunit, number, get_date):
46798         Add support for fractional seconds.
46799         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
46800         (gmtime, localtime, mktime): Remove decls; not needed with C89.
46801         (to_hour): First arg is now long int, not int.
46802         (to_year): Returns long int, not int.
46803         Don't treat year -70 like 70.
46804         (tm_diff): Returns long int, not int.
46805         (lookup_word): Use bool instead of int when appropriate.
46806         (yylex): Use size_t for count, not int.
46807         Detect overflow when parsing large integer constants.
46808         Add support for fractions.
46809         (get_date): Make pointers 'const' if possible.
46810         Use more-portable code to detect integer overflow.
46811         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
46812         Don't use ctime; it's not reliable if the year has >4 digits.
46813
46814         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
46815         This is for compatibility with BSD.
46816
46817         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
46818         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
46819         From coreutils' system.h.
46820
46821         * lib/userspec.c: Don't include "posixver.h".
46822         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
46823         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
46824         compatible extension.  Simplify code by removing a boolean int
46825         that was always nonzero if a string was nonnull.
46826
46827 2004-03-30  Jim Meyering  <jim@meyering.net>
46828
46829         Merge from coreutils.
46830
46831         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
46832         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
46833         on some systems one must include <grp.h> before it.
46834         Reported by Christian Krackowizer.
46835
46836 2004-03-30  Jim Meyering  <jim@meyering.net>
46837
46838         Merge from coreutils.
46839
46840         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
46841
46842         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
46843         an empty input stream.
46844
46845         * lib/readtokens.c: Include <stdbool.h>.
46846         (readtoken): Use `size_t' rather than int/long.
46847         All callers adjusted.
46848         Use `bool' rather than `int' where appropriate.
46849         Use memset rather than an explicit loop.
46850         Use x2nrealloc rather than xrealloc.
46851         Allow the use of `\0' as a delimiter.
46852         (readtokens): Likewise.
46853         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
46854
46855 2004-03-30  Jim Meyering  <jim@meyering.net>
46856
46857         * m4/realloc.m4: Remove file, since now it does no more than
46858         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
46859         the `configure.ac' section of module/realloc.
46860         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
46861
46862 2004-03-30  Bruno Haible  <bruno@clisp.org>
46863
46864         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
46865         nonnull.
46866
46867 2004-03-29  Paul Eggert  <eggert@twinsun.com>
46868
46869         Merge changes to getloadavg.c from coreutils and Emacs.
46870
46871         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
46872         Define to an expression, not to the empty string.
46873         Include cloexec.h and xalloc.h.
46874         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
46875         Use set_cloexec_flag rather than rolling our own.
46876         * lib/cloexec.c, lib/cloexec.h: New files.
46877
46878 2004-03-29  Paul Eggert  <eggert@twinsun.com>
46879
46880         * m4/cloexec.m4: New file.
46881
46882 2004-03-18  Paul Eggert  <eggert@twinsun.com>
46883
46884         * lib/getopt.h: Sync with libc CVS.
46885
46886 2004-03-18  Paul Eggert  <eggert@twinsun.com>
46887             Bruno Haible  <bruno@clisp.org>
46888
46889         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
46890         mbswidth.
46891
46892 2004-03-18  Paul Eggert  <eggert@twinsun.com>
46893             Bruno Haible  <bruno@clisp.org>
46894
46895         * lib/mbswidth.h: Include <wchar.h> only if
46896         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
46897         <wchar.h>.
46898         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
46899
46900 2004-03-09  Paul Eggert  <eggert@twinsun.com>
46901
46902         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
46903         Sync with libc CVS.
46904         * lib/getopt_int.h: New file, also synced from libc.
46905
46906 2004-03-09  Paul Eggert  <eggert@twinsun.com>
46907
46908         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
46909         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
46910         Bring back getopt.c, getopt.h, getopt1.c.
46911
46912 2004-03-07  Paul Eggert  <eggert@twinsun.com>
46913
46914         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
46915         All uses changed.  Check for sa_sigaction member; this fixes
46916         a bug first reported by Jason Andrade in
46917         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
46918
46919 2004-03-07  Paul Eggert  <eggert@twinsun.com>
46920
46921         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
46922         '#if' expressions.  Unlike the code it replaces, it does not
46923         depend on (defined _SC_PAGESIZE).  However, it does depend on
46924         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
46925         first reported by Jason Andrade in
46926         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
46927
46928 2004-02-25  Simon Josefsson  <jas@extundo.com>
46929
46930         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
46931
46932 2004-02-25  Simon Josefsson  <jas@extundo.com>
46933
46934         * lib/strdup.h: New file.
46935         * lib/strdup.c: Include it.
46936         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
46937         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
46938
46939 2004-02-23  Karl Berry  <karl@gnu.org>
46940
46941         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
46942         (from fencepost.gnu.org:/gd/gnuorg).
46943
46944 2004-02-23  Karl Berry  <karl@gnu.org>
46945
46946         * config/srclistvars.sh (GNUORG) [karl]: redefine.
46947         * config/srclist.txt: add maintain/standards documents.
46948
46949 2004-02-18  Bruno Haible  <bruno@clisp.org>
46950
46951         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
46952         Reported by Derek Robert Price <derek@ximbiot.com>.
46953
46954 2004-02-16  Karl Berry  <karl@gnu.org>
46955
46956         * config/mkinstalldirs, install-sh: update from automake.
46957
46958 2004-02-06  Karl Berry  <karl@gnu.org>
46959
46960         * m4/po.m4: update from gettext 0.14.1.
46961
46962 2004-02-06  Karl Berry  <karl@gnu.org>
46963
46964         * lib/config.charset: update from gettext 0.14.1.
46965
46966 2004-02-05  Paul Eggert  <eggert@twinsun.com>
46967
46968         Add comments and code, prompted by suggestions from Bruno Haible
46969         for sh-quote.
46970         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
46971         describing the enum quoting_style values.
46972         * lib/quotearg.c (quotearg_alloc): New function.
46973         (quotearg_buffer_restyled): Treat lone { and } as special.
46974         Treat = as special.  Work around bug with older shells
46975         that "see" a '\' that is really the 2nd byte of a multibyte char.
46976         Quote empty string with shell_quoting_style.
46977
46978 2004-02-03  Bruno Haible  <bruno@clisp.org>
46979
46980         * m4/pipe.m4: New file, from GNU gettext.
46981
46982 2004-02-03  Bruno Haible  <bruno@clisp.org>
46983
46984         * lib/pipe.h: New file, from GNU gettext.
46985         * lib/pipe.c: New file, from GNU gettext.
46986
46987 2004-01-27  Bruno Haible  <bruno@clisp.org>
46988
46989         * m4/execute.m4: New file, from GNU gettext.
46990
46991 2004-01-27  Bruno Haible  <bruno@clisp.org>
46992
46993         * lib/execute.h: New file, from GNU gettext.
46994         * lib/execute.c: New file, from GNU gettext.
46995         * lib/w32spawn.h: New file, from GNU gettext.
46996
46997 2004-01-24  Paul Eggert  <eggert@twinsun.com>
46998
46999         Merge from diffutils.
47000
47001         * lib/file-type.c (file_type): Add typed memory objects.
47002         * lib/file-type.h (S_TYPEISTMO): New macro.
47003
47004         * lib/c-stack.h (c_stack_action): Remove argv argument.
47005         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
47006         (die): Don't calculate message unless segv_action returns.
47007         (get_stack_location, min_address_from_argv, max_address_from_argv,
47008         volatile stack_base, volatile_stack_size): Remove.
47009         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
47010         that every segmentation violation is a stack overflow.  (Ouch!)
47011         See Debian bug 136249 (still outstanding) for more info about why
47012         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
47013
47014 2004-01-24  Paul Eggert  <eggert@twinsun.com>
47015
47016         Exit-status fix from coreutils.
47017
47018         Use exit_failure consistently in place of EXIT_FAILURE,
47019         so that program exit statuses are consistent on failure.
47020
47021         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
47022         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
47023         * lib/argmatch.h: Comment fix to match the above.
47024         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
47025         Now a macro referring to exit_failure, instead of a separate
47026         variable.  Include "exitfail.h" to get it.
47027         * lib/xstrtol.h: Include "exitfail.h".
47028         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
47029
47030         * lib/long-options.c (parse_long_options): Use prototype
47031         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
47032         for clarity.
47033
47034 2004-01-21  Jim Meyering  <jim@meyering.net>
47035
47036         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
47037         so as not to conflict with a different-sized __mktime_internal
47038         function in GNU libc.
47039         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
47040         Problem building statically-linked `ls' reported by Michael Brunnbauer.
47041
47042 2004-01-20  Karl Berry  <karl@gnu.org>
47043
47044         * config/config.guess: update from config.
47045
47046         * config/srclistvars.sh: GNUWWWLICENSES for karl.
47047
47048 2004-01-20  Bruno Haible  <bruno@clisp.org>
47049
47050         Safer stack allocation.
47051         * lib/setenv.c: Include allocsa.h.
47052         (alloca): Remove fallback definition.
47053         (freea): Remove macro.
47054         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
47055         instead of freea.
47056
47057 2004-01-20  Bruno Haible  <bruno@clisp.org>
47058
47059         * m4/eealloc.m4: New file, from GNU gettext.
47060
47061 2004-01-20  Bruno Haible  <bruno@clisp.org>
47062
47063         * m4/allocsa.m4: New file, from GNU gettext.
47064
47065 2004-01-20  Bruno Haible  <bruno@clisp.org>
47066
47067         * lib/xallocsa.h: New file, from GNU gettext.
47068         * lib/xallocsa.c: New file, from GNU gettext.
47069
47070 2004-01-20  Bruno Haible  <bruno@clisp.org>
47071
47072         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
47073
47074 2004-01-20  Bruno Haible  <bruno@clisp.org>
47075
47076         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
47077         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
47078         specially.
47079
47080 2004-01-20  Bruno Haible  <bruno@clisp.org>
47081
47082         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
47083         patch.
47084
47085 2004-01-20  Bruno Haible  <bruno@clisp.org>
47086
47087         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
47088
47089 2004-01-20  Bruno Haible  <bruno@clisp.org>
47090
47091         * lib/eealloc.h: New file.
47092
47093 2004-01-20  Bruno Haible  <bruno@clisp.org>
47094
47095         * lib/binary-io.h: Avoid warnings on Cygwin.
47096
47097 2004-01-20  Bruno Haible  <bruno@clisp.org>
47098
47099         * lib/allocsa.h: New file, from GNU gettext.
47100         * lib/allocsa.c: New file, from GNU gettext.
47101
47102 2004-01-18  Karl Berry  <karl@gnu.org>
47103
47104         * doc/gpl.texi, doc/lgpl.texi: new files.
47105
47106 2004-01-18  Karl Berry  <karl@gnu.org>
47107
47108         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
47109         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
47110
47111 2004-01-15  Paul Eggert  <eggert@twinsun.com>
47112
47113         Merge from coreutils.
47114
47115         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
47116         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
47117         (gl_DEFAULT_POSIX2_VERSION): Move
47118         the documentation from 'configure' into 'config.hin',
47119         so that 'configure --help' isn't burdened by it and
47120         we don't have to worry about its formatting there.
47121         Reword the documentation so that it's more succinct
47122         and can be run together into a single paragraph.
47123         * m4/same.m4 (gl_SAME): Check for pathconf.
47124
47125 2004-01-15  Paul Eggert  <eggert@twinsun.com>
47126
47127         Merge from coreutils.
47128
47129         * lib/posixver.c: Include posixver.h.
47130
47131         * lib/same.c: Include <stdbool.h>, <limits.h>.
47132         (_POSIX_NAME_MAX): Define if not defined.
47133         (MIN): New macro.
47134         (same_name): If file names are silently truncated, report
47135         that the file names are the same if they are the same after
47136         the silent truncation.
47137
47138         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
47139         conversion function.
47140         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
47141         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
47142         longer needed.
47143
47144 2004-01-15  Jim Meyering  <jim@meyering.net>
47145
47146         Merge from coreutils.
47147
47148         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
47149         if no library is required.
47150         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
47151         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
47152         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
47153         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
47154         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
47155         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
47156         value, $ac_cv_search_crypt, if it's "none required".
47157         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
47158         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
47159         not gl_FUNC_GETLOADAVG.
47160         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
47161         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
47162
47163 2004-01-15  Jim Meyering  <jim@meyering.net>
47164
47165         Merge from coreutils.
47166
47167         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
47168         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
47169         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
47170
47171         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
47172         optional configure-time default.
47173
47174         * lib/version-etc.c (version_etc_copyright): Update copyright date.
47175
47176         * lib/xreadlink.c (xreadlink): Correct outdated comment.
47177
47178 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
47179
47180         Merge from coreutils.
47181
47182         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
47183         value, $ac_cv_search_nanosleep, if it's "none required".
47184
47185 2004-01-14  Paul Eggert  <eggert@twinsun.com>
47186
47187         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
47188         with like-named macro in fnmatch.c.
47189         (EXT): Use an internal constant instead.
47190
47191         Merge fnmatch patches from glibc.
47192         * lib/fnmatch.c (mbsinit): Remove define.
47193         Add libc_hidden_ver (__fnmatch, fnmatch).
47194         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
47195         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
47196
47197 2004-01-14  Karl Berry  <karl@gnu.org>
47198
47199         * config/install-sh: update from automake.
47200
47201 2004-01-13  Karl Berry  <karl@gnu.org>
47202
47203         * config/install-sh: update from automake.
47204
47205 2004-01-09  Karl Berry  <karl@gnu.org>
47206
47207         * config/install-sh: update from automake.
47208
47209 2004-01-05  Karl Berry  <karl@gnu.org>
47210
47211         * config/config.{sub,guess}: update from config.
47212
47213 2003-12-31  Karl Berry  <karl@gnu.org>
47214
47215         * config/depcomp: update from automake.
47216
47217 2003-12-14  Karl Berry  <karl@gnu.org>
47218
47219         * lib/config.charset: update from gettext-runtime.
47220
47221 2003-12-03  Paul Eggert  <eggert@twinsun.com>
47222
47223         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
47224         Bug reported by Alfred M. Szmidt.
47225
47226 2003-12-03  Bruno Haible  <bruno@clisp.org>
47227
47228         * m4/gettext.m4: Upgrade from gettext-0.13.
47229         * m4/po.m4: Upgrade from gettext-0.13.
47230         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
47231         * m4/intmax.m4: New file, from gettext-0.13.
47232         * m4/printf-posix.m4: New file, from gettext-0.13.
47233
47234 2003-11-29  Karl Berry  <karl@gnu.org>
47235
47236         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
47237
47238 2003-11-25  Paul Eggert  <eggert@twinsun.com>
47239             Bruno Haible  <bruno@clisp.org>
47240
47241         * lib/printf-parse.h: Don't include sys/types.h.
47242         (ARG_NONE): New macro.
47243         (char_directive): Change type of *arg_index fields to size_t.
47244         * lib/printf-parse.c: Don't include sys/types.h.
47245         (SSIZE_MAX): Remove macro.
47246         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
47247         Remove unnecessary overflow check.
47248         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
47249         fields.
47250
47251 2003-11-25  Bruno Haible  <bruno@clisp.org>
47252
47253         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
47254
47255 2003-11-25  Bruno Haible  <bruno@clisp.org>
47256
47257         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
47258         gt_TYPE_SSIZE_T.
47259
47260 2003-11-24  Paul Eggert  <eggert@twinsun.com>
47261
47262         * modules/alloca: Remove dependency on xalloc.
47263
47264 2003-11-24  Paul Eggert  <eggert@twinsun.com>
47265
47266         * lib/alloca.c: Remove dependency on xalloc module.
47267         (xalloc_die): Remove.
47268         (memory_full) [!defined emacs]: New macro.
47269         [!defined emacs]: Don't include xalloc.h.
47270         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
47271         address arithmetic overflows.  Change datatypes a bit to avoid
47272         unnecessary casts.
47273
47274 2003-11-22  Jim Meyering  <jim@meyering.net>
47275
47276         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
47277         s/size/size_t/.
47278
47279 2003-11-21  Karl Berry  <karl@gnu.org>
47280
47281         * config/config.{sub,guess}: update from config.
47282
47283 2003-11-18  Karl Berry  <karl@gnu.org>
47284
47285         * config/config.{sub,guess}: update from config.
47286
47287         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
47288
47289 2003-11-17  Paul Eggert  <eggert@twinsun.com>
47290
47291         * README: Mention that S+T cannot overflow if S is the size of
47292         an existing object and T is sufficiently small.
47293
47294 2003-11-17  Jim Meyering  <jim@meyering.net>
47295
47296         On systems without utime and without a utimes function capable of
47297         dealing with a NULL struct utimbuf* argument, this utime replacement
47298         could -- in unusual circumstances -- leak a file descriptor.
47299         * lib/utime.c: Include <unistd.h> and <errno.h>.
47300         (utime_null): Be sure to close `fd' and to preserve errno.
47301         Reported by Geoff Collyer via Arnold Robbins.
47302
47303 2003-11-17  Bruno Haible  <bruno@clisp.org>
47304
47305         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
47306         (Depends-on): Add xsize.
47307
47308 2003-11-17  Bruno Haible  <bruno@clisp.org>
47309
47310         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
47311
47312 2003-11-17  Bruno Haible  <bruno@clisp.org>
47313
47314         * lib/vasnprintf.c (alloca): Remove fallback definition.
47315         (freea): Remove definition.
47316         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
47317         Reported by Paul Eggert.
47318
47319 2003-11-16  Paul Eggert  <eggert@twinsun.com>
47320             Bruno Haible  <bruno@clisp.org>
47321
47322         Protect against address arithmetic overflow.
47323         * lib/printf-args.h: Include stddef.h.
47324         (arguments): Change type of field 'count' to size_t.
47325         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
47326         'unsigned int' where appropriate.
47327         * lib/printf-parse.h: Include sys/types.h.
47328         (char_directive): Change type of *arg_index fields to ssize_t.
47329         (char_directives): Change type of fields 'count', max_*_length to
47330         size_t.
47331         * lib/printf-parse.c: Include sys/types.h and xsize.h.
47332         (SSIZE_MAX): Define fallback value.
47333         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
47334         instead of 'int' where appropriate. Check a_allocated, d_allocated
47335         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
47336         * lib/vasnprintf.c: Include xsize.h.
47337         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
47338         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
47339         overflow. Avoid wraparound when converting a width or precision from
47340         decimal to binary.
47341
47342 2003-11-16  Bruno Haible  <bruno@clisp.org>
47343
47344         Update from GNU gettext.
47345         * lib/printf-parse.c: Generalize to it can be compiled for wide
47346         strings.
47347         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
47348         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
47349         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
47350         SNPRINTF): New macros.
47351         Don't include <alloca.h> if the file is used inside libintl.
47352         (local_wcslen): New function, for Solaris 2.5.1.
47353         (VASNPRINTF): Use it instead of wcslen.
47354
47355 2003-11-16  Bruno Haible  <bruno@clisp.org>
47356
47357         * lib/xsize.h (xmax): New function.
47358         (xsum, xsum3, xsum4): Declare as "pure" functions.
47359
47360 2003-11-12  Paul Eggert  <eggert@twinsun.com>
47361
47362         * modules/xalloc (Files): Undo latest change, since xalloc.h
47363         no longer needs SIZE_MAX or PTRDIFF_MAX.
47364
47365 2003-11-12  Paul Eggert  <eggert@twinsun.com>
47366
47367         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
47368         gl_PTRDIFF_MAX.
47369
47370 2003-11-12  Paul Eggert  <eggert@twinsun.com>
47371
47372         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
47373         "return", to pacify some unknown compiler.  Problem reported
47374         by Joerg Schilling.
47375
47376 2003-11-12  Paul Eggert  <eggert@twinsun.com>
47377
47378         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
47379         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
47380         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
47381         heuristic is just as accurate as far as we know, and it removes a
47382         dependency on size_max.m4 and ptrdiff_max.m4.
47383
47384 2003-11-11  Bruno Haible  <bruno@clisp.org>
47385
47386         * modules/xsize (Files): Add m4/size_max.m4.
47387         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
47388
47389 2003-11-11  Bruno Haible  <bruno@clisp.org>
47390
47391         * m4/size_max.m4: New file.
47392         * m4/ptrdiff_max.m4: New file.
47393         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
47394         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
47395         (gl_XALLOC): Invoke it.
47396
47397 2003-11-11  Bruno Haible  <bruno@clisp.org>
47398
47399         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
47400         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
47401         defined.
47402
47403 2003-11-10  Paul Eggert  <eggert@twinsun.com>
47404
47405         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
47406         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
47407         rejected some allocations of exactly SIZE_MAX - 2 bytes.
47408         From Bruno Haible.
47409         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
47410         not (size_t) -1, since it's defined here.
47411
47412 2003-11-09  Karl Berry  <karl@gnu.org>
47413
47414         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
47415
47416 2003-11-06  Paul Eggert  <eggert@twinsun.com>
47417
47418         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
47419         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
47420         Reject sizes of exactly SIZE_MAX bytes.
47421         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
47422         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
47423
47424 2003-11-05  Bruno Haible  <bruno@clisp.org>
47425
47426         * lib/xsize.h: Include limits.h, to avoid a possible collision with
47427         SIZE_MAX defined in <limits.h> on Solaris.
47428
47429 2003-11-04  Jim Meyering  <jim@meyering.net>
47430
47431         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
47432         variable names, rather than @VAR@.
47433         * modules/poll: Likewise.
47434
47435 2003-11-04  Bruno Haible  <bruno@clisp.org>
47436
47437         * modules/xsize: New file.
47438         * modules/linebreak: Depend on xsize.
47439         * MODULES.html.sh (func_all_modules): Add xsize.
47440
47441 2003-11-04  Bruno Haible  <bruno@clisp.org>
47442
47443         * m4/xsize.m4: New file.
47444
47445 2003-11-04  Bruno Haible  <bruno@clisp.org>
47446
47447         * lib/xsize.h: New file.
47448         * lib/linebreak.c: Include xsize.h.
47449         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
47450         argument for overflow.
47451         Suggested by Paul Eggert.
47452
47453 2003-11-03  Karl Berry  <karl@gnu.org>
47454
47455         * config/config.{guess,sub}: update from config.
47456
47457 2003-11-03  Jim Meyering  <jim@meyering.net>
47458
47459         * modules/userspec (lib_SOURCES): Add userspec.h.
47460         (Include): Add "userspec.h".
47461         Improve description.
47462
47463 2003-11-03  Jim Meyering  <jim@meyering.net>
47464
47465         * lib/userspec.c: Include "userspec.h".
47466         * lib/userspec.h: New file.
47467
47468 2003-11-03  Bruno Haible  <bruno@clisp.org>
47469
47470         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
47471
47472 2003-11-03  Bruno Haible  <bruno@clisp.org>
47473
47474         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
47475         available, to avoid (extremely rare) race condition.
47476         Suggested by Paul Eggert.
47477
47478 2003-11-02  Karl Berry  <karl@gnu.org>
47479
47480         * config/srclist.txt (vasprintf.c): sync broken, sigh.
47481
47482 2003-10-31  Paul Eggert  <eggert@twinsun.com>
47483
47484         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
47485         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
47486         (read_filesystem_list): Set and use me_type_malloced.
47487         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
47488         whatever the type happens to be), for brevity and consistency.
47489         Check for size calculation overflow on Alphas running OSF/1.
47490
47491 2003-10-31  Jim Meyering  <jim@meyering.net>
47492
47493         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
47494
47495         * lib/linebuffer.c: Include <string.h> for declaration of memset.
47496
47497 2003-10-30  Paul Eggert  <eggert@twinsun.com>
47498             Bruno Haible  <bruno@clisp.org>
47499
47500         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
47501         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
47502
47503 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
47504
47505         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
47506         netbsd*-gnu*.  Suggested by Robert Millan.
47507
47508 2003-10-29  Paul Eggert  <eggert@twinsun.com>
47509
47510         * modules/group-member: Depend on stdbool.
47511
47512 2003-10-29  Paul Eggert  <eggert@twinsun.com>
47513
47514         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
47515
47516 2003-10-29  Paul Eggert  <eggert@twinsun.com>
47517
47518         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
47519         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
47520         after the 'gnu' in these cases.  This fixes some bugs in the
47521         previous change, and is based on suggestions by Robert Millan.
47522
47523 2003-10-29  Paul Eggert  <eggert@twinsun.com>
47524
47525         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
47526         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
47527         no longer needed.
47528         * lib/quotearg.c (quotearg_n_options): Use it.
47529         * lib/group-member.c: Include <stdbool.h>.
47530         (free_group_info): Arg is now const *; don't free arg.
47531         (get_group_info): Now returns bool and accepts struct group_info *,
47532         rather than returning a malloc'ed struct group_info *.
47533         All uses changed.  Check for overflow in internal size calculation.
47534
47535         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
47536         rather than xmalloc/xrealloc.
47537         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
47538         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
47539         conformance bug: the old code used a pointer after freeing the
47540         storage that it addressed.
47541         * lib/hash.c (hash_initialize): Simplify the code by using
47542         xalloc_oversized rather than doing it by hand.
47543         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
47544         the buffer preserved.  Use free and xmalloc instead.
47545         * lib/quotearg.c (quotearg_n_options): Likewise.
47546         Use a simpler test for size overflow.  Don't use xalloc_oversized
47547         because unsigned int might be wider than size_t (!); this suggests
47548         that we should switch from unsigned int to size_t for slot numbers.
47549
47550 2003-10-28  Paul Eggert  <eggert@twinsun.com>
47551
47552         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
47553         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
47554         NetBSD kernels.  Requested by Richard Stallman.
47555
47556 2003-10-27  Paul Eggert  <eggert@twinsun.com>
47557
47558         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
47559         to allocate the returned structure.  Do not allocate a subarray,
47560         as x2nrealloc will do that.
47561         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
47562         instead of xnrealloc.
47563         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
47564
47565 2003-10-27  Bruno Haible  <bruno@clisp.org>
47566
47567         * lib/stdbool_.h: Better support for BeOS.
47568
47569 2003-10-26  Paul Eggert  <eggert@twinsun.com>
47570
47571         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
47572         now uses inline.
47573
47574 2003-10-26  Paul Eggert  <eggert@twinsun.com>
47575
47576         * lib/xalloc.h (xalloc_oversized): New static inline function, for
47577         callers that want to do their own size-overflow checking.  Include
47578         <stdbool.h>, since xalloc_oversized returns bool.
47579         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
47580         to use xalloc_oversized.
47581
47582         Add two functions x2realloc, x2nrealloc, for programs that grow
47583         arrays dynamically by doubling their sizes.
47584         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
47585         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
47586         New functions.
47587
47588         Port to C99 semantics for 'inline' of external functions.
47589         Bug reported by Bruno Haible.
47590         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
47591         with the old contents of xnmalloc.
47592         (xnmalloc, xmalloc): Use it.
47593         (xnrealloc_inline): New static inline function,
47594         with the old contents of xnrealloc.
47595         (xnrealloc, xrealloc): Use it.
47596
47597         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
47598         that.
47599
47600 2003-10-26  Karl Berry  <karl@gnu.org>
47601
47602         * config/srclist.txt (COPYING.DOC): no longer available from
47603         /gd/gnuorg; don't know where the ultimate source is.
47604
47605 2003-10-25  Paul Eggert  <eggert@twinsun.com>
47606
47607         Fix several address-calculation bugs in the hash modules,
47608         plus some minor code cleanup.
47609
47610         * lib/hash.h: Include <stdbool.h>, for bool.
47611         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
47612         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
47613         hash_get_n_entries, hash_get_max_bucket_length,
47614         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
47615         hash_rehash): Use size_t rather than unsigned.
47616         * lib/hash.c (struct hash_table, hash_get_n_buckets,
47617         hash_get_n_buckets_used, hash_get_n_entries,
47618         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
47619         hash_get_entries, hash_do_for_each, hash_string, is_prime,
47620         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
47621         Likewise.
47622         (SIZE_MAX): Define if not defined.
47623         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
47624         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
47625         hash_print):
47626         Use const * when possible.
47627         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
47628         (check_tuning): Fix bug: if tuning parameters were very close to
47629         0 or 1, rounding errors could have caused subscript violations.
47630         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
47631         (hash_initialize): Add 'fail:' label
47632         to free table and return NULL, and use it to simplify code.
47633         Use calloc rather than clearing the storage ourself.
47634         (hash_initialize, hash_rehash): Check for arithmetic overflow in
47635         buffer size calculations.
47636         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
47637         Include <stddef.h>, for size_t.
47638         * lib/hash-pjw.c (hash_pjw): Likewise.
47639         Switch to method described by Bruno Haible.
47640         Include <limits.h>, for CHAR_BIT.
47641         (SIZE_BITS): New macro.
47642
47643 2003-10-23  Paul Eggert  <eggert@twinsun.com>
47644
47645         * m4/getline.m4 (AM_FUNC_GETLINE):
47646         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
47647         hosts.  Problem reported by Derek Robert Price in
47648         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
47649         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
47650         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
47651
47652 2003-10-21  Paul Eggert  <eggert@twinsun.com>
47653
47654         * lib/getndelim2.c (getndelim2): When size calculation overflows,
47655         ceiling the allocation at NMAX bytes rather than silently
47656         discarding input bytes before NMAX is reached.  This makes
47657         a difference only if NMAX exceeds SIZE_MAX / 2.
47658
47659         * lib/obstack.c: Merge from glibc.
47660         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
47661         Add libc_hidden_def (_obstack_newchunk).
47662         (_obstack_free) [! defined _LIBC]: Remove.
47663         [defined _LIBC]: Make a strong alias from obstack_free, rather than
47664         a clone of the function body.
47665         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
47666         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
47667
47668         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
47669         glibc.
47670         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
47671         arg to memcpy.
47672
47673         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
47674         (obstack_ptr_grow_fast, obstack_int_grow_fast):
47675         Don't use lvalue casts, as GCC plans to remove support for them
47676         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
47677         was also present in the non-GCC version, indicating that this
47678         code had always been buggy and had never been widely used.
47679         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
47680         Use the fast variant of each macro, rather than copying the
47681         definiens of the fast variant; that way, we'll be more likely to
47682         catch future bugs in the fast variants.
47683
47684 2003-10-20  Bruno Haible  <bruno@clisp.org>
47685
47686         * modules/wait-process: New file.
47687         * MODULES.html.sh (func_all_modules): Add wait-process.
47688
47689 2003-10-20  Bruno Haible  <bruno@clisp.org>
47690
47691         * m4/wait-process.m4: New file.
47692
47693 2003-10-20  Bruno Haible  <bruno@clisp.org>
47694
47695         * lib/wait-process.h: New file, from GNU gettext.
47696         * lib/wait-process.c: New file, from GNU gettext.
47697
47698 2003-10-19  Jim Meyering  <jim@meyering.net>
47699
47700         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
47701         HPUX 10.20.
47702
47703 2003-10-18  Karl Berry  <karl@gnu.org>
47704
47705         * config/config.guess: update from config.
47706
47707 2003-10-16  Paul Eggert  <eggert@twinsun.com>
47708
47709         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
47710         (getgroups): First arg is int, not size_t.
47711         Don't let 'free' mangle errno.
47712
47713 2003-10-16  Paul Eggert  <eggert@twinsun.com>
47714
47715         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
47716
47717 2003-10-16  Karl Berry  <karl@gnu.org>
47718
47719         * config/config.{guess,sub}: update from config.
47720
47721 2003-10-16  Jim Meyering  <jim@meyering.net>
47722
47723         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
47724         memcpy.
47725
47726 2003-10-15  Paul Eggert  <eggert@twinsun.com>
47727
47728         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
47729         (SIZE_MAX): Remove.
47730         (new_exclude, add_exclude_file): Initial size no longer needs to
47731         be a power of 2.
47732         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
47733         our own address arithmetic overflow checking.
47734
47735         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
47736         (fnmatch): Do not alloca more than 2000 wide characters;
47737         instead, use malloc for large buffers.
47738         Check for address arithmetic overflow, and return -1
47739         with errno set to ENOMEM in that case.
47740         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
47741         (NEW_PATTERN): Do not alloca more than 8000 bytes;
47742         instead, return -1.  Check for address arithmetic overflow.
47743
47744 2003-10-14  Paul Eggert  <eggert@twinsun.com>
47745
47746         Handle invalid suffixes and overflow independently, so that
47747         callers can treat them independently as needed.  Fix some bugs in
47748         suffix handling, e.g., "100k@" was not diagnosed as an invalid
47749         suffix for a human-readable blocksize.  The major caller-visible
47750         change is the addition of a new
47751         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
47752         that both overflow and suffix chars were found.
47753
47754         * lib/human.c (humblock): Don't check separately for invalid suffix
47755         char; that is xstrtoumax's job (now that its bug is fixed).
47756         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
47757         INTMAX_MAX]: New macros.
47758         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
47759         TYPE_MAXIMUM): New macros.
47760         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
47761         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
47762         if overflow occurs, as it's what __strtol does and it's more useful
47763         in practice.
47764         (__xstrtol): If __strtol reports some error other than ERANGE,
47765         reflect it to the caller as LONGINT_INVALID.  If it reports
47766         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
47767         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
47768         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
47769         value.
47770         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
47771         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
47772         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
47773         [defined UINTMAX_MAX]: New macros.
47774
47775 2003-10-14  Bruno Haible  <bruno@clisp.org>
47776
47777         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
47778
47779 2003-10-14  Bruno Haible  <bruno@clisp.org>
47780
47781         * m4/sig_atomic_t: New file, from GNU gettext.
47782         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
47783
47784 2003-10-14  Bruno Haible  <bruno@clisp.org>
47785
47786         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
47787         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
47788         Also use volatile where needed.
47789
47790 2003-10-12  Paul Eggert  <eggert@twinsun.com>
47791
47792         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
47793         Change maintainer from Bruno Haible to 'all'.
47794
47795 2003-10-12  Paul Eggert  <eggert@twinsun.com>
47796
47797         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
47798
47799 2003-10-12  Paul Eggert  <eggert@twinsun.com>
47800
47801         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
47802         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
47803         and define in terms of the other primitives.
47804         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
47805         (SIZE_MAX): Define if not already defined.
47806         (array_size_overflow): New function.
47807         (xalloc_die): Abort instead of exiting if 'error' returns.
47808         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
47809         (xmalloc, xrealloc): Use them.
47810         (xcalloc): Check for address arithmetic overflow.
47811         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
47812         a bit faster than strcpy.
47813
47814 2003-10-10  Simon Josefsson  <jas@extundo.com>
47815
47816         * modules/argp (Depends-on): Add restrict and strcase.
47817
47818 2003-10-10  Simon Josefsson  <jas@extundo.com>
47819
47820         * m4/argp.m4: Add AC_C_INLINE.
47821
47822 2003-10-08  Paul Eggert  <eggert@twinsun.com>
47823
47824         Merge getpass from libc, plus a few fixes.
47825
47826         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
47827         Include <stdbool.h>.
47828         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
47829         __fsetlocking to empty.
47830         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
47831         do include <bits/libc-lock.h>.
47832         Do not include <fcntl.h>; not needed.
47833         [_LIBC]: Include <wchar.h>.
47834         (NOTCANCEL_MODE): New macro.
47835         (flockfile, funlockfile) [_LIBC]: New macros.
47836         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
47837         [!_LIBC]: New macros.
47838         (call_fclose): New function.
47839         (getpass): Use it.  Save tty stream separately; this simplifies the
47840         code and makes it more reliable if stdin happens to equal stdout.
47841         Invoke __fsetlocking on tty.
47842         Handle thread cancellation if needed.
47843         Namespace cleanup (use __tcgetattr, __getline).
47844         Use bool for Booleans.
47845         [USE_IN_LIBIO]: Handle wide streams.
47846         [!_LIBC]: Unconditionally do the fseek, since we don't know what
47847         stream might go where.
47848
47849         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
47850         doesn't have to include <stdio.h> before us.
47851         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
47852         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
47853         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
47854         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
47855         if not declared, so that we can use getpass.c code from libc without
47856         rewriting it.
47857         (flockfile, ftrylockfile, funlockfile): New macros.
47858
47859 2003-10-08  Paul Eggert  <eggert@twinsun.com>
47860
47861         * modules/getpass: Depend on stdbool.
47862
47863 2003-10-08  Paul Eggert  <eggert@twinsun.com>
47864
47865         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
47866
47867 2003-10-07  Karl Berry  <karl@gnu.org>
47868
47869         * config/config.{guess,sub}: update from config.
47870
47871 2003-10-06  Jim Meyering  <jim@meyering.net>
47872             Bruno Haible  <bruno@clisp.org>
47873
47874         This lets translators provide better translations for the
47875         "Written by ..." part of --version output.
47876         * lib/version-etc.h: Include stdarg.h.
47877         (version_etc_copyright): Declare as readonly.
47878         (version_etc): Make this function variadic with a NULL-terminated list
47879         of author name strings.
47880         (version_etc_va): New declaration.
47881         * lib/version-etc.c: Include stdarg.h, stdlib.h.
47882         (version_etc_copyright): Declare as readonly.
47883         (version_etc_va): New function. Provide a different translatable string
47884         for each possible number of authors < 10. Abbreviate when there are 10
47885         authors or more.
47886         (version_etc): Make this function variadic. Call version_etc_va.
47887         Suggestion from Gary V. Vaughan.
47888
47889         * lib/long-options.h (parse_long_options): Change prototype: the
47890         authors string is moved to the end and becomes variadic.
47891         * lib/long-options.c: Include stdarg.h.
47892         (parse_long_options): Make this function variadic, too.
47893         Call version_etc_va, not version_etc.
47894
47895 2003-10-06  Bruno Haible  <bruno@clisp.org>
47896
47897         * modules/version-etc-2: Remove file.
47898         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
47899
47900 2003-10-06  Bruno Haible  <bruno@clisp.org>
47901
47902         * modules/fatal-signal: New file.
47903         * MODULES.html.sh (func_all_modules): Add fatal-signal.
47904
47905 2003-10-06  Bruno Haible  <bruno@clisp.org>
47906
47907         * m4/fatal-signal.m4: New file.
47908         * m4/signalblocking.m4: New file, from GNU gettext.
47909
47910 2003-10-06  Bruno Haible  <bruno@clisp.org>
47911
47912         * lib/version-etc-2.h: Remove file.
47913         * lib/version-etc-2.c: Remove file.
47914
47915 2003-10-06  Bruno Haible  <bruno@clisp.org>
47916
47917         * lib/fatal-signal.h: New file, from GNU gettext.
47918         * lib/fatal-signal.c: New file, from GNU gettext.
47919
47920 2003-10-05  Paul Eggert  <eggert@twinsun.com>
47921
47922         * README: Rework advice for preventing empty .o files.
47923         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
47924         not <sys/types.h>.
47925
47926 2003-10-04  Karl Berry  <karl@gnu.org>
47927
47928         * lib/argp*: update from libc.
47929
47930 2003-10-04  Karl Berry  <karl@gnu.org>
47931
47932         * config/config.{guess,sub}: update from config.
47933
47934 2003-10-02  Bruno Haible  <bruno@clisp.org>
47935
47936         * modules/lchown (Include): Add lchown.h.
47937         * modules/time_r (Include): Use "..." syntax.
47938         * modules/xgetdomainname (Include): Add xgetdomainname.h.
47939
47940 2003-10-01  Simon Josefsson  <jas@extundo.com>
47941
47942         * MODULES.html.sh (func_all_modules): Move gethostname from section
47943         'based on' to section 'lacking' POSIX:2001.
47944
47945 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
47946
47947         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
47948         to output mode on the same stream.
47949
47950 2003-09-29  Paul Eggert  <eggert@twinsun.com>
47951
47952         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
47953         Fix arg typo in previous patch.
47954
47955 2003-09-28  Jim Meyering  <jim@meyering.net>
47956
47957         * lib/error.c: Correct cpp indentation.
47958
47959 2003-09-27  Paul Eggert  <eggert@twinsun.com>
47960
47961         * modules/free: New file.
47962
47963 2003-09-27  Paul Eggert  <eggert@twinsun.com>
47964
47965         * m4/free.m4: New file.
47966
47967 2003-09-27  Paul Eggert  <eggert@twinsun.com>
47968
47969         * lib/minmax.h (MIN, MAX)
47970         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
47971         Omit the special code that used __typeof__, since we worry that
47972         it could be more trouble than it's worth.  See:
47973         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
47974         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
47975
47976         * lib/free.c: New file.
47977
47978 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
47979
47980         Trivial fixes to Makefile.am parts of module listings.
47981         * modules/strstr: Append strstr.h to lib_SOURCES.
47982         * modules/strcase: Likewise, for strcase.h.
47983
47984 2003-09-27  Karl Berry  <karl@gnu.org>
47985
47986         * config/mkinstalldirs: update from automake.
47987
47988 2003-09-26  Paul Eggert  <eggert@twinsun.com>
47989
47990         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
47991         (error_tail): Do not loop, reallocating temporary buffer, since
47992         the output cannot contain more wide characters than the input
47993         contains bytes, the size must be big enough already.  This avoids
47994         one potential size overflow calculation.  Check for size overflow
47995         when calculating temporary buffer size.  Free temporary buffer
47996         when done, if it was allocated with malloc; this plugs a memory
47997         leak.  Remove casts from void * to pointers, that are no longer
47998         needed now that we're assuming C89 or better.
47999
48000         Merge error changes from glibc.
48001
48002         * lib/error.c, error.h: Update copyright notice header to match glibc.
48003         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
48004         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
48005         Disable cancellation while printing error.
48006         * lib/error.h: Prepend __ to parameter names.
48007
48008 2003-09-26  Jim Meyering  <jim@meyering.net>
48009
48010         * lib/error.c (error_tail): Move some declarations
48011         into inner scope where the local variables are used.
48012
48013 2003-09-26  Bruno Haible  <bruno@clisp.org>
48014
48015         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
48016         stpncpy().
48017         Don't define stpncpy through config.h; it's now done through stpncpy.h.
48018
48019 2003-09-26  Bruno Haible  <bruno@clisp.org>
48020
48021         * lib/stpncpy.h (gnu_stpncpy): New declaration.
48022         (stpncpy): Define as alias for gnu_stpncpy.
48023         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
48024
48025 2003-09-25  Simon Josefsson  <jas@extundo.com>
48026
48027         * lib/xgetdomainname.h: New file.
48028         * lib/xgetdomainname.c: New file.
48029
48030 2003-09-25  Simon Josefsson  <jas@extundo.com>
48031             Bruno Haible  <bruno@clisp.org>
48032
48033         * modules/getdomainname: New file.
48034         * modules/xgetdomainname: New file.
48035         * MODULES.html.sh (func_all_modules): Add getdomainname,
48036         xgetdomainname.
48037
48038 2003-09-25  Simon Josefsson  <jas@extundo.com>
48039             Bruno Haible  <bruno@clisp.org>
48040
48041         * m4/getdomainname.m4: New file.
48042
48043 2003-09-25  Simon Josefsson  <jas@extundo.com>
48044             Bruno Haible  <bruno@clisp.org>
48045
48046         * lib/getdomainname.h: New file.
48047         * lib/getdomainname.c: New file.
48048
48049 2003-09-25  Karl Berry  <karl@gnu.org>
48050
48051         * lib/argp-fmtstream.c, argp-help.c: update from libc.
48052
48053 2003-09-25  Karl Berry  <karl@gnu.org>
48054
48055         * config/install-sh: update from automake.
48056
48057 2003-09-25  Bruno Haible  <bruno@clisp.org>
48058
48059         * modules/version-etc-2: New file, from modules/version-etc with
48060         modifications.
48061         * MODULES.html.sh (func_all_modules): Add version-etc-2.
48062
48063 2003-09-25  Bruno Haible  <bruno@clisp.org>
48064
48065         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
48066         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
48067
48068 2003-09-24  Simon Josefsson  <jas@extundo.com>
48069
48070         * modules/xgethostname: Add xgethostname.h.
48071
48072 2003-09-24  Paul Eggert  <eggert@twinsun.com>
48073
48074         * lib/linebuffer.c (freebuffer): Don't free the argument, just
48075         the buffer associated with the argument.  Bug reported by
48076         Simon Josefsson.
48077
48078 2003-09-24  Paul Eggert  <eggert@twinsun.com>
48079
48080         * README: Document assumptions that 'int' is at least 32 bits
48081         wide, that integer arithmetic is 2's complement without overflow,
48082         that there are no holes in integer values, that adding sizes of
48083         two nonoverlapping objects can't overflow, and that all-bits-zero
48084         yields scalar zero.  Fix spelling and capitalization typos.
48085
48086 2003-09-19  Karl Berry  <karl@gnu.org>
48087
48088         * lib/argp.h: update from libc.
48089
48090 2003-09-17  Paul Eggert  <eggert@twinsun.com>
48091
48092         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
48093         to avoid spurious warnings like "AC_RUN_IFELSE was called before
48094         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
48095
48096 2003-09-17  Paul Eggert  <eggert@twinsun.com>
48097
48098         * gnulib-tool: Use "test -h", not "test -L", for portability
48099         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
48100         (tags_regexp): Remove, since \| doesn't conform to POSIX.
48101         (sed_extract_prog): Issue s commands one-by-one, rather than
48102         using \| in one s command.
48103
48104 2003-09-16  Paul Eggert  <eggert@twinsun.com>
48105
48106         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
48107         input error, instead of returning NULL the next time we are called
48108         (and therefore losing track of errno).
48109
48110 2003-09-16  Bruno Haible  <bruno@clisp.org>
48111
48112         * gnulib-tool (func_create_testdir): Warn about duplicated
48113         dependencies.
48114
48115 2003-09-15  Paul Eggert  <eggert@twinsun.com>
48116
48117         * modules/argmatch, modules/fatal, modules/obstack,
48118         modules/xalloc, modules/xgethostname: Sort dependencies by
48119         importance, not alphabetically.
48120
48121 2003-09-15  Paul Eggert  <eggert@twinsun.com>
48122
48123         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
48124         fails, so that the caller gets the proper errno.
48125
48126         * lib/readutmp.c (read_utmp): Likewise.
48127         Check for fstat error.  Close stream and free storage
48128         when failing.
48129
48130 2003-09-14  Karl Berry  <karl@gnu.org>
48131
48132         * config/srclist.txt (strdup.c): disable for c89 changes.
48133
48134 2003-09-14  Jim Meyering  <jim@meyering.net>
48135
48136         * lib/getloadavg.c: Correct cpp indentation.
48137         * lib/strdup.c: Likewise.
48138         * lib/vasnprintf.c: Likewise.
48139
48140 2003-09-14  Bruno Haible  <bruno@clisp.org>
48141
48142         * modules/fwriteerror: New file.
48143         * MODULES.html.sh (func_all_modules): Add fwriteerror.
48144
48145 2003-09-14  Bruno Haible  <bruno@clisp.org>
48146
48147         * lib/fwriteerror.h: New file.
48148         * lib/fwriteerror.c: New file.
48149
48150 2003-09-12  Paul Eggert  <eggert@twinsun.com>
48151
48152         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
48153         modules/xgethostname, modules/xalloc: Depend on exit.
48154
48155 2003-09-12  Paul Eggert  <eggert@twinsun.com>
48156
48157         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
48158
48159         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
48160         and AC_MINIX, too, so that their extensions are available.
48161
48162         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
48163         This macro has been superseded by gl_BACKUPFILE.
48164
48165         More patches to assume C89 or better.
48166
48167         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
48168
48169         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
48170         unconditionally.
48171         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
48172         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
48173         Include <string.h>, <stdlib.h> unconditionally.
48174         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
48175         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
48176         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
48177         headers or for string.h.
48178         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
48179         or strtoul.
48180
48181         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
48182         headers.
48183         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
48184         * m4/userspec.m4 (gl_USERSPEC): Likewise.
48185         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
48186         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
48187         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
48188         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
48189         memcpy, memset.
48190         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
48191         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
48192         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
48193         strtol.
48194         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
48195         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
48196         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
48197         strtoul.
48198
48199 2003-09-12  Paul Eggert  <eggert@twinsun.com>
48200
48201         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
48202         * lib/obstack.c [!defined _LIBC]: Likewise.
48203         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
48204         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
48205         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
48206
48207         More changes to assume C89 or better.
48208
48209         * lib/error.c (error_tail): Assume vprintf.
48210
48211         * lib/argmatch.c (getenv): Remove decl.
48212         * lib/progreloc.c (get_full_program_name): Define via prototype.
48213         * lib/setenv.c (clearenv): Likewise.
48214         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
48215         needed.
48216         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
48217         (malloc, memcpy): Remove decls.
48218         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
48219         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
48220         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
48221         (memcpy): Remove macro.
48222         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
48223         (__P): Remove.  All uses removed.
48224         (PTR): Remove.  All uses changed to void *.
48225         (CHAR_BIT, NULL): Remove.
48226         (spaces, zeros, memset_space, memset_zero)
48227         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
48228         Remove.
48229         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
48230         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
48231         Define with prototype.
48232         Remove now-unnecessary prototype decl.
48233         (extra_args_spec): Assume ANSI C.  All uses changed.
48234         (extra_args_spec_iso): Remove.
48235         (my_strftime, emacs_strftimeu): Define via prototype.
48236         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
48237         unconditionally.
48238         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
48239         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
48240         (strtoul, strtol): Remove decls.
48241         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
48242         LONG_MAX): Remove.
48243         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
48244         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
48245         (LOCALE_PARAM_PROTO): New macro.
48246         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
48247         (INTERNAL (strtol), strtol): Define with a prototype.
48248         (PARAMS): Remove.  All uses removed.
48249         * lib/tempname.c: Include <string.h> unconditionally.
48250         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
48251         * lib/xgethostname.c (main): Define with a prototype.
48252         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
48253         Include <stdlib.h> unconditionally.
48254         (calloc, malloc, realloc, free): Remove decls.
48255         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
48256         Include <stdlib.h> unconditionally.  Sort include file names.
48257         (strtod): Remove.
48258         (xstrtod): Define with a prototype.
48259         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
48260         (strtol, strtoul): Remove decls.
48261
48262 2003-09-11  Paul Eggert  <eggert@twinsun.com>
48263
48264         More patches to assume C89 or better.
48265         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
48266         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
48267         string.h, memchr, STDC_HEADERS.
48268
48269 2003-09-11  Paul Eggert  <eggert@twinsun.com>
48270
48271         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
48272         Include <stdlib.h>, <string.h> unconditionally.
48273         Remove now-unnecessary cast to char *.
48274         * lib/strnlen.c: Include <string.h> unconditionally.
48275         * lib/yesno.c (yesno): Define with a prototype.
48276
48277 2003-09-11  Bruno Haible  <bruno@clisp.org>
48278
48279         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
48280
48281 2003-09-10  Jim Meyering  <jim@meyering.net>
48282
48283         * lib/error.c: Correct indentation of cpp directives.
48284
48285 2003-09-10  Bruno Haible  <bruno@clisp.org>
48286
48287         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
48288         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
48289         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
48290         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
48291         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
48292         <stdlib.h> and <string.h> checks.
48293         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
48294         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
48295
48296 2003-09-10  Bruno Haible  <bruno@clisp.org>
48297
48298         * lib/strcspn.c: Include <string.h> unconditionally.
48299         * lib/strpbrk.c: Include <string.h> unconditionally.
48300         * lib/strstr.c: Include <string.h> unconditionally.
48301         * lib/unicodeio.c: Include <string.h> unconditionally.
48302         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
48303         * lib/unsetenv.c: Likewise.
48304         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
48305         * lib/yesno.c: Include <stdlib.h> unconditionally.
48306         (rpmatch): Add prototype.
48307
48308 2003-09-09  Paul Eggert  <eggert@twinsun.com>
48309
48310         More patches to assume C89 or better.
48311         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
48312         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
48313         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
48314         or for string.h.
48315         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
48316         stdlib.h.
48317         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
48318         C headers.
48319         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
48320         string.h.
48321         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
48322         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
48323         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
48324         or for string.h.
48325         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
48326         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
48327         C headers.
48328         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
48329         memcpy.
48330         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
48331         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
48332         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
48333         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
48334         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
48335         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
48336         string.h, free.
48337         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
48338         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
48339         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
48340         C headers, or for string.h.
48341         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
48342         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
48343         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
48344         headers, memory.h, stdlib.h, string.h, strings.h.
48345         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
48346         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
48347         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
48348         strchr.
48349         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
48350         headers, memory.h, string.h.
48351         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
48352         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
48353         free.
48354         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
48355         headers.
48356         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
48357         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
48358         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
48359         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
48360         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
48361
48362 2003-09-09  Paul Eggert  <eggert@twinsun.com>
48363
48364         More K&R removal.
48365
48366         * lib/acosl.c (main): Use a prototype.
48367         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
48368         tanl.c: Likewise.
48369
48370         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
48371
48372         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
48373         (getopt, etopt_long, getopt_long_only, _getopt_internal)
48374         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
48375         with a prototype.
48376         * lib/getopt.c (const): Remove macro.
48377         Include <string.h> unconditionally.
48378         (my_index): Remove; all uses changed to strchr.
48379         (strlen): Remove decl.
48380         (exchange): Remove forward decl; no longer needed.
48381         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
48382         Define with prototype.
48383         * lib/getopt1.c (const): Remove macro.
48384         (getopt_long, getopt_long_only, main): Define with prototype.
48385
48386         * lib/getugroups.c: Include <string.h> unconditionally.
48387
48388         * lib/getusershell.c: Include <stdlib.h> unconditionally.
48389         (getusershell, setusershell, endusershell, readname, main):
48390         Define with prototypes.
48391
48392         * lib/group-member.c: Include group-member.h first.
48393         Include <stdlib.h> unconditionally.
48394
48395         * lib/hard-locale.c: Include hard-locale.h first.
48396         Include <stdlib.h>, <string.h> unconditionally.
48397
48398         * lib/hash.c (free, malloc): Remove decls.
48399         Include <stdlib.h> unconditionally.
48400
48401         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
48402         (getenv): Do not declare.
48403
48404         * lib/idcache.c: Include <string.h> unconditionally.
48405
48406         * lib/long-options.c: Include long-options.h first, to test interface.
48407         Include <stdlib.h> unconditionally.
48408
48409         * lib/makepath.c: Include makepath.h first, to test interface.
48410         Include <stdlib.h> and <string.h> unconditionally.
48411
48412         * lib/linebuffer.c: Include <stdlib.h>.
48413         (free): Remove decl.
48414
48415         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
48416         stddef.h. rpl_malloc returns void *, not char *.
48417         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
48418         prototype.
48419
48420         * lib/md5.h: Include <limits.h> unconditionally.
48421         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
48422         (__P): Remove; all uses removed.
48423         * lib/md5.c: Include "md5.h" first.
48424         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
48425         md5_buffer, md5_process_bytes, md5_process_block):
48426         Define with prototypes.
48427         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
48428         * lib/sha.c: Include "sha.h" first.
48429         Include <stdlib.h>, <string.h> unconditionally.
48430
48431         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
48432         * lib/memcmp.c (__ptr_t): Likewise.
48433         * lib/memrchr.c (__ptr_t): Likewise.
48434         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
48435         Include <string.h> unconditionally.
48436         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
48437         * lib/memchr.c: Include <stdlib.h> unconditionally.
48438         * lib/memchr.c (LONG_MAX): Remove.
48439         * lib/memrchr.c (LONG_MAX): Likewise.
48440         * lib/memchr.c (__memchr): Define via a prototype.
48441         * lib/memrchr.c (__memrchr): Likewise.
48442         * lib/memcmp.c (__P): Remove, and remove all uses.
48443         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
48444         Remove forward decls; no longer needed.
48445         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
48446         Use types required by C89 in prototype.
48447
48448         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
48449         * lib/savedir.c: Likewise.
48450         * lib/mkdir.c (free): Remove decl.
48451         * lib/rmdir.c (rmdir): Define with a prototype.
48452         * lib/savedir.c: Include savedir.h first, to test interface.
48453
48454         * lib/mktime.c (STDC_HEADERS): Remove.
48455         Include <stdlib.h>, <string.h> unconditionally.
48456
48457         * lib/modechange.c: Include <stdlib.h> unconditionally.
48458         (malloc): Remove decl.
48459
48460         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
48461         (free): Remove decl.
48462
48463         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
48464         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
48465         (This type really should be intptr_t, but that's a C99ism.)
48466         (_obstack_memcpy): Remove: all uses changed to memcpy.
48467         Include <string.h> unconditionally.
48468         (struct obstack): Assume __STDC__ for types of members
48469         chunkfun, freefun, extra_arg.
48470         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
48471         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
48472         obstack_begin, obstack_specify_allocation,
48473         obstack_specify_allocation_with_arg, obstack_chunkfun,
48474         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
48475         Remove unprototyped decls and the macros that use them.
48476         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
48477         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
48478         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
48479         (defined __STDC__ && __STDC__)]:
48480         Remove nonprototyped code.
48481         Include <stdlib.h> unconditionally.
48482         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
48483         _obstack_allocated_p, _obstack_free, obstack_free,
48484         _obstack_memory_used, print_and_abort):
48485         Define using prototypes.
48486         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
48487         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
48488         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
48489         obstack_next_free, obstack_object_size, obstack_room) [0]:
48490         Remove unused, unprototyped code.
48491
48492         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
48493
48494         * lib/physmem.c (physmem_total, physmem_available, main): Define
48495         with prototypes.
48496
48497         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
48498         (main): Define with a prototype.
48499
48500         * lib/posixver.c (getenv): Remove decl.
48501
48502         * lib/putenv.c (malloc): Returns void *, not char *.
48503         Include <string.h> unconditionally.
48504         (strchr, memcpy, NULL): Do not define.
48505
48506         * lib/readtokens.c: Include readtokens.h first, to test interface.
48507         Include <stdlib.h>, <string.h> unconditionally.
48508         (init_tokenbuffer): Define with a prototype.
48509
48510         * lib/regex.c (PARAMS): Remove.  All uses removed.
48511         All uses of _RE_ARGS removed, too.
48512         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
48513         unconditionally.
48514         (bzero): Assume memset exists.
48515         (memcmp, memcpy, NULL): Remove.
48516         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
48517         char, or assignments to local vars of type signed char.
48518         (init_syntax_once, PREFIX(extract_number_and_incr),
48519         PREFIX(print_partial_compiled_pattern),
48520         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
48521         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
48522         PREFIX(regex_grow_registers), PREFIX(regex_compile),
48523         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
48524         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
48525         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
48526         wcs_compile_range, byte_compile_range, truncate_wchar,
48527         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
48528         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
48529         count_mbs_length, wcs_re_match_2_internal,
48530         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
48531         PREFIX(alt_match_null_string_p),
48532         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
48533         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
48534         regfree, PREFIX(extract_number)): Define with prototype.  Remove
48535         now-unnecessary declaration, if any.
48536         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
48537         regcomp, regexec):
48538         Remove now-unnecessary casts among pointer types.
48539         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
48540
48541         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
48542         (free): Remove decl.
48543
48544         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
48545
48546         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
48547         (free): Remove decl.
48548
48549         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
48550         * lib/xgetcwd.c: Likewise.
48551
48552         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
48553         (free): Remove decl.
48554
48555         * lib/strchrnul.c (strchrnul): Define with a prototype.
48556         Fix bug: c_in was not converted to char before searching.
48557
48558         The following changes are not K&R related:
48559
48560         * lib/group-member.h: Include <sys/types.h>, so that this file is
48561         self-contained.
48562         * lib/makepath.h: Likewise.
48563
48564         * lib/getusershell.c (readname, default_index, line_size, readname):
48565         Use size_t, not int, for sizes.
48566         (readname): If the size overflows, report an error instead of
48567         looping forever.
48568
48569 2003-09-09  Paul Eggert  <eggert@twinsun.com>
48570
48571         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
48572         libc.
48573
48574 2003-09-09  Paul Eggert  <eggert@twinsun.com>
48575
48576         * README: New section: portability guidelines.
48577
48578 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
48579
48580         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
48581         C89 spec.
48582
48583 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
48584
48585         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
48586
48587 2003-09-08  Paul Eggert  <eggert@twinsun.com>
48588
48589         Assume C89 or better; remove K&R cruft.
48590         A few of these changes were first proposed by Derek Robert Price
48591         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
48592
48593         * lib/addext.c: Include <string.h> unconditionally.
48594         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
48595         Don't declare getenv or malloc.
48596
48597         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
48598         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
48599         (NULL): Remove.
48600         (find_stack_direction, alloca): Use prototypes.
48601
48602         * lib/atexit.c (atexit): Define using a prototype.
48603
48604         * lib/basename.c, dirname.c, stripslash.c:
48605         Include <string.h> unconditionally.
48606
48607         * lib/bcopy.c: Include <stddef.h>.
48608         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
48609
48610         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
48611
48612         * lib/error.h (error, error_at_line, error_print_progname)
48613         [! (defined (__STDC__) && __STDC__)]: Remove decls.
48614         * lib/error.c: Include error.h first, to check interface.
48615         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
48616         (VA_START): Remove; all uses changeed to va_start.
48617         (exit, strerror): Remove decls.
48618         (error_print_progname): Prototype uncondionally.
48619         Don't include <errno.h>; no longer needed.
48620         (private_strerror): Remove.
48621         (error_tail): Always define.
48622         (error, error_at_line): Assume C89 or better; always use prototypes.
48623         * lib/fatal.c: Include "fatal.h" first, to test interface.
48624         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
48625         (VA_START): Remove; all uses changed to va_start.
48626         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
48627         this case.
48628         (exit): Remove decl.
48629         (fatal): Prototype unconditionally.  Assume va_start works.
48630         Abort at end, to pacify gcc.
48631
48632         * lib/euidaccess.c (main): Define with a prototype.
48633
48634         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
48635
48636         * lib/exitfail.c: Include <stdlib.h> unconditionally.
48637
48638         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
48639         prototypes.
48640         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
48641         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
48642         (getenv): Remove decl.
48643         (fnmatch): Define using a prototype.
48644         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
48645         (FCT): Define using a prototype.
48646
48647         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
48648
48649         * lib/gethostname.c: Include <stddef.h>.
48650         (gethostname): Define with prototype.  Length is size_t, not int.
48651
48652 2003-09-08  Paul Eggert  <eggert@twinsun.com>
48653
48654         Assume C89 or better; remove K&R cruft.
48655         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
48656         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
48657         string.h, getenv, malloc.
48658         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
48659         headers.
48660         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
48661         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
48662         do not check for strerror.
48663         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
48664         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
48665         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
48666         do not check for doprnt or vprintf.
48667         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
48668         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
48669
48670 2003-09-08  Paul Eggert  <eggert@twinsun.com>
48671
48672         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
48673         getversion.c should have been removed then, but was accidentally
48674         preserved.
48675
48676         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
48677         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
48678
48679 2003-09-08  Karl Berry  <karl@gnu.org>
48680
48681         * config/config.sub, config.guess, srclistvars.sh: update from savannah
48682                 config, forget about prep.
48683
48684         * config/depcomp, missing: update from automake.
48685
48686 2003-09-07  Paul Eggert  <eggert@twinsun.com>
48687
48688         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
48689         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
48690
48691 2003-09-07  Paul Eggert  <eggert@twinsun.com>
48692
48693         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
48694         copy_tm_result.  Bug reported by Simon Josefsson in
48695         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
48696
48697 2003-09-06  Paul Eggert  <eggert@twinsun.com>
48698
48699         * m4/time_r.m4: New file.
48700         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
48701         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
48702         is. Check for timegm declaration.
48703         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
48704         Do not check for gmtime_r.
48705         Replace mktime if __mktime_internal does not exist and if mktime
48706         hasn't been replaced already.
48707
48708 2003-09-06  Paul Eggert  <eggert@twinsun.com>
48709
48710         * lib/time_r.c, lib/time_r.h: New files.
48711
48712         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
48713         __localtime_r.
48714         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
48715         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
48716
48717         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
48718         __gmtime_r.
48719         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
48720         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
48721         Include <time_r.h>.
48722
48723         * lib/timegm.c: Switch to glibc implementation, with the following
48724         changes:
48725         [defined HAVE_CONFIG_H]: Include <config.h>.
48726         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
48727         (__mktime_internal) [!defined _LIBC]: New decl.
48728         (__gmtime_r) [!defined _LIBC]: New macro and function.
48729         (timegm): Use a prototype, since gnulib assumes C89.
48730         Do not bother declaring tmp to be const, as it's not really usefu.
48731         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
48732         (timegm): Declare only if HAVE_DECL_TIMEGM.
48733
48734 2003-09-06  Paul Eggert  <eggert@twinsun.com>
48735
48736         * MODULES.html.sh (func_all_modules): Add time_r.
48737         * modules/time_r: New file.
48738         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
48739         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
48740
48741 2003-09-03  Paul Eggert  <eggert@twinsun.com>
48742
48743         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
48744         Bug reported by Lute Kamstra in
48745         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
48746
48747         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
48748         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
48749         course with correspondingly smaller numbers for tomorrow and
48750         yesterday.  From Tadayoshi Funaba.  Originally installed into
48751         sh-utils on 1999-08-07, but the patch got lost (I guess during the
48752         coreutils merge?).
48753
48754 2003-08-31  Simon Josefsson  <jas@extundo.com>
48755
48756         * modules/timegm: New file.
48757         * MODULES.html.sh (func_all_modules): Add timegm.
48758
48759 2003-08-31  Simon Josefsson  <jas@extundo.com>
48760
48761         * m4/timegm.m4: New file.
48762
48763 2003-08-31  Simon Josefsson  <jas@extundo.com>
48764
48765         * lib/timegm.h: New file.
48766         * lib/timegm.c: New file.  Based on
48767         wget-1.8.2/src/http.c:mktime_from_utc.
48768
48769 2003-08-31  Karl Berry  <karl@gnu.org>
48770
48771         * lib/argp.h: update from libc.
48772
48773 2003-08-28  Bruno Haible  <bruno@clisp.org>
48774
48775         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
48776         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
48777         followed by '#define fnmatch fnmatch_posix' gives an error.
48778
48779 2003-08-28  Bruno Haible  <bruno@clisp.org>
48780
48781         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
48782         warning on QNX, which defines O_BINARY to 000000.
48783
48784 2003-08-27  Jim Meyering  <jim@meyering.net>
48785
48786         * m4/mkstemp.m4: Require that the system mkstemp be able to create
48787         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
48788         would fail after 32.  Reported by Danny Levinson.  Details here:
48789         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
48790
48791 2003-08-24  Bruno Haible  <bruno@clisp.org>
48792
48793         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
48794         MSVC7 <stdio.h> is included later.
48795
48796 2003-08-22  Simon Josefsson  <jas@extundo.com>
48797
48798         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
48799
48800 2003-08-20  Karl Berry  <karl@gnu.org>
48801
48802         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
48803
48804 2003-08-20  Bruno Haible  <bruno@clisp.org>
48805
48806         * modules/progname: New file.
48807         * MODULES.html.sh (func_all_modules): Add progname.
48808
48809 2003-08-20  Bruno Haible  <bruno@clisp.org>
48810
48811         * lib/progname.h: New file, from GNU gettext.
48812         * lib/progname.c: New file, from GNU gettext.
48813         * lib/progreloc.c: New file, from GNU gettext.
48814
48815 2003-08-19  Jim Meyering  <jim@meyering.net>
48816
48817         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
48818         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
48819
48820 2003-08-19  Bruno Haible  <bruno@clisp.org>
48821
48822         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
48823         more.
48824
48825 2003-08-19  Bruno Haible  <bruno@clisp.org>
48826
48827         * lib/xstrdup.c: Assume <string.h> exists.
48828
48829 2003-08-18  Paul Eggert  <eggert@twinsun.com>
48830
48831         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
48832         in makefile rules.
48833
48834 2003-08-18  Jim Meyering  <jim@meyering.net>
48835
48836         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
48837         * m4/lib-ld.m4: Likewise.
48838
48839 2003-08-18  Jim Meyering  <jim@meyering.net>
48840
48841         * lib/setenv.h: Indent nested cpp directive.
48842         * lib/vasnprintf.c: Remove trailing blanks.
48843
48844 2003-08-17  Simon Josefsson  <jas@extundo.com>
48845
48846         * modules/xstrndup: New file.
48847         * MODULES.html.sh (func_all_modules): Add xstrndup.
48848
48849 2003-08-17  Simon Josefsson  <jas@extundo.com>
48850
48851         * modules/argp: Fix autoconf macro name. Add more dependencies.
48852
48853 2003-08-17  Simon Josefsson  <jas@extundo.com>
48854
48855         * m4/xstrndup.m4: New file.
48856
48857 2003-08-17  Simon Josefsson  <jas@extundo.com>
48858
48859         * m4/argp.m4: New file.
48860
48861 2003-08-17  Simon Josefsson  <jas@extundo.com>
48862             Bruno Haible  <bruno@clisp.org>
48863
48864         * lib/xstrndup.h: New file.
48865         * lib/xstrndup.c: New file.
48866
48867 2003-08-17  Bruno Haible  <bruno@clisp.org>
48868
48869         * modules/strndup (Files, Include): Add lib/strndup.h.
48870
48871 2003-08-17  Bruno Haible  <bruno@clisp.org>
48872
48873         * modules/euidaccess (Files): Add lib/euidaccess.h.
48874
48875 2003-08-17  Bruno Haible  <bruno@clisp.org>
48876
48877         * lib/strndup.h: New file.
48878
48879 2003-08-17  Bruno Haible  <bruno@clisp.org>
48880
48881         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
48882         like AC_GNU_SOURCE.
48883         * modules/extensions (configure.ac): Comment out the invocation of
48884         gl_USE_SYSTEM_EXTENSIONS.
48885
48886 2003-08-16  Paul Eggert  <eggert@twinsun.com>
48887
48888         Merges from coreutils, etc.
48889         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
48890         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
48891         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
48892         fixing a typo.
48893         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
48894         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
48895
48896 2003-08-16  Paul Eggert  <eggert@twinsun.com>
48897
48898         Document merge from coreutils.
48899         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
48900         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
48901         * modules/utime: Add m4/utimes-null.m4.
48902
48903 2003-08-16  Paul Eggert  <eggert@twinsun.com>
48904
48905         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
48906         space, undoing this 2003-08-12 change:
48907         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
48908
48909 2003-08-16  Paul Eggert  <eggert@twinsun.com>
48910
48911         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
48912         strtoul.c from libc, undoing this 2003-08-12 change:
48913         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
48914
48915 2003-08-16  Jim Meyering  <jim@meyering.net>
48916
48917         Merges from coreutils.
48918         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
48919         prefix.  Adjust cache variables similarly.  Create 500 rather than
48920         just 300 files, to exercise bug on Darwin6.5, too.
48921         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
48922         $missing_dir.
48923         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
48924         AM_SYS_POSIX_TERMIOS.
48925         Reported by mkc@mathdogs.com.
48926         Also change use of $am_cv_sys_posix_termios
48927         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
48928         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
48929         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
48930         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
48931         in /proc/mounts until it finds one with matching device number.  This
48932         is unnecessary when the FILE argument *is* a mount point.  No stat call
48933         is necessary in that case.  So, disable the statvfs-testing code on
48934         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
48935         as RedHat bug# 84846.
48936         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
48937         to 1MB, so as not to render systems with no stack size limit (e.g.,
48938         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
48939         Include <unistd.h>.  On some systems,
48940         it is required for the definition of _SC_PAGESIZE.
48941
48942 2003-08-16  Jim Meyering  <jim@meyering.net>
48943
48944         Merge from coreutils.
48945         * lib/xstrtoimax.c: #else #if -> #elif.
48946         * lib/xstrtoumax.c: Likewise.
48947
48948 2003-08-16  Jim Meyering  <jim@meyering.net>
48949
48950         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
48951         * m4/utimes.m4: Removed.
48952         * m4/utimes-null.m4: Renamed from utimes.m4.
48953
48954         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
48955         to 1MB, so as not to render systems with no stack size limit (e.g.,
48956         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
48957         Include <unistd.h>.  On some systems,
48958         it is required for the definition of _SC_PAGESIZE.
48959
48960 2003-08-16  Jim Meyering  <jim@meyering.net>
48961         and Paul Eggert  <eggert@cs.ucla.edu>
48962
48963         Merges from coreutils, etc.
48964
48965         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
48966         using the latest version from cvs.  This avoids problems with #line
48967         directives using a vendor (Sun) compiler.
48968         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
48969         Don't set GETGROUPS_LIB here; now it's
48970         done via getgroups.m4's wrapper function.
48971         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
48972         rather than just in sh-util/configure.in, so that the
48973         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
48974         same.
48975         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
48976         AC_FUNC_GETLOADAVG where to find getloadavg.c.
48977         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
48978         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
48979         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
48980         Remove code that is now done by the newly-required macros.
48981         Append $(EXEEXT) to DF_PROG.
48982         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
48983         Do not invoke or require the following here,
48984         since prereq.m4 or some gnulib .m4 now does this for us:
48985         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
48986         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
48987         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
48988         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
48989         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
48990         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
48991         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
48992         AC_FUNC_OBSTACK.
48993         Do not replace the following functions, as this is now the job
48994         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
48995         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
48996         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
48997         atexit getpass, strdup, getpagesize.
48998         Replace 'raise'.
48999         Do not check for the following functions, as this is now the job
49000         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
49001         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
49002         setregid.
49003         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
49004         Check for sys/sysctl.h.
49005         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
49006         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
49007         of checking for ssize_t ourselves.
49008
49009         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
49010         Require every macro that gnulib/modules/* suggests for us.
49011         (jm_PREREQ_ADDEXT): New macro.
49012         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
49013         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
49014
49015         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
49016         (gl_PHYSMEM): Use it.
49017         Also check for `table' function.
49018         Check for new headers and functions.
49019         Add check for sys/sysmp.h.
49020         With suggestions from Kaveh Ghazi.
49021         Ignore headers that are present but cannot be compiled.  This
49022         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
49023         C 5.4.
49024
49025 2003-08-15  Paul Eggert  <eggert@twinsun.com>
49026
49027         Document merge from coreutils.
49028         * modules/userspec: Depend on posixver.
49029         * modules/strftime: Depend on tzset.
49030
49031 2003-08-15  Paul Eggert  <eggert@twinsun.com>
49032
49033         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
49034         rather than tab, after '#' in shell-script copyright notices.
49035         Suggested by Bruno Haible.
49036
49037 2003-08-15  Paul Eggert  <eggert@twinsun.com>
49038
49039         * config/srclist-update: Use three spaces, rather than tab, after '#'
49040         in shell-script copyright notices.  Suggested by Bruno Haible.
49041         Remove unnecessary parenthesization in regular expression.
49042
49043 2003-08-15  Jim Meyering  <jim@meyering.net>
49044
49045         Merge from coreutils.
49046         * lib/xgethostname.c: Include <stdlib.h>.
49047         (xghostname): Don't exit for anything other than memory-related
49048         failure; just return NULL.
49049         * lib/userspec.c: Include "posixver.h".
49050         (parse_user_spec): Accept `.' as a separator only
49051         in pre-POSIX-200112 mode.
49052         * lib/strtoimax.c: Use #elif rather than #else #if.
49053         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
49054         Remove function, now that we can rely on a working tzset function.
49055         [!_LIBC]: Ensure that the required autoconf test has been run.
49056         [!defined _NL_CURRENT && HAVE_STRFTIME]:
49057         Use underlying_strftime for %r.
49058         * lib/sha.c: Merge in some clean-up and optimization changes from
49059         glibc.
49060         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
49061         Ensure that it is a multiple of 64.
49062         Rearrange loop exit tests so as to avoid performing an
49063         additional fread after encountering an error or EOF.
49064         * lib/realloc.c: Update copyright date.
49065
49066 2003-08-15  Jim Meyering  <jim@meyering.net>
49067         and Paul Eggert  <eggert@twinsun.com>
49068
49069         Merge from coreutils.
49070         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
49071         member but strut utmpx does not.  Needed for AIX 4.3.3.
49072         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
49073
49074 2003-08-15  Jim Meyering  <jim@meyering.net>
49075         and Paul Eggert  <eggert@cs.ucla.edu>
49076
49077         Merges from coreutils, etc.
49078         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
49079         Require gl_FUNC_TZSET_CLOBBER.
49080         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
49081         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
49082         members.
49083
49084 2003-08-14  Paul Eggert  <eggert@twinsun.com>
49085
49086         Help the merge from coreutils.
49087         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
49088         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
49089         * m4/tzset.m4: Use it too.
49090
49091 2003-08-14  Paul Eggert  <eggert@twinsun.com>
49092
49093         * modules/tzset: New file.
49094
49095 2003-08-14  Jim Meyering  <jim@meyering.net>
49096
49097         Merges from coreutils.
49098         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
49099         variable names, rather than @FNMATCH_H@.
49100         * modules/alloca: Likewise for $(ALLOCA_H).
49101
49102         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
49103         the three copies of the literal target, `fnmatch.h'.
49104         * modules/alloca (alloca.h): Likewise.
49105
49106 2003-08-14  Jim Meyering  <jim@meyering.net>
49107
49108         Merge from coreutils.
49109         * m4/tzset.m4: New file.
49110         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
49111         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
49112         otherwise, AIX 5.1 systems would end up using the latter.
49113         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
49114         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
49115         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
49116         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
49117
49118 2003-08-14  Jim Meyering  <jim@meyering.net>
49119
49120         Merge from coreutils.
49121         * lib/obstack.h: Whitespace changes.
49122         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
49123         and xcalloc return values.
49124         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
49125         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
49126         hang on OSF/1 5.1 for DIR on both local and remote file systems.
49127         Reported by (and fix confirmed by) Nelson H. F. Beebe.
49128         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
49129         error from mntctl.
49130         Use mntctl's return value to drive the entry-processing loop, since
49131         we can't rely on the value of the vmt_length member in the last
49132         entry.  On some systems doing so could result in exhausting
49133         virtual memory.  Based in part on a patch from Mike Jetzer.
49134
49135 2003-08-14  Jim Meyering  <jim@meyering.net>
49136         and Paul Eggert  <eggert@twinsun.com>
49137
49138         Merges from coreutils, plus other fixes.
49139         * lib/physmem.c: Merge in portability changes from gcc/libiberty
49140         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
49141         for credits and details.  Thanks to Kaveh Ghazi for helping
49142         to keep these files in sync.
49143         (ARRAY_SIZE): Define it.
49144         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
49145         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
49146         (memcasecmp): Don't assume size_t fits in unsigned int.
49147         Remove casts and duplicate code.
49148         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
49149         (memcpy): Remove definition.
49150         Merge in some clean-up and optimization changes from glibc.
49151         [BLOCKSIZE]: Move definition to top of file.
49152         Ensure that it is a multiple of 64.
49153         Rearrange loop exit tests so as to avoid performing an
49154         additional fread after encountering an error or EOF.
49155         * lib/md5.h (md5_uintptr): Define.
49156         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
49157         return to the initial working directory.  Preserve errno
49158         for caller.
49159         * lib/idcache.c: Include "xalloc.h".
49160         (xmalloc, xrealloc): Remove decls.
49161         (getuser): Remove casts no longer required in C89.
49162         * lib/human.c: Include stdio.h, for sprintf.
49163         * lib/group-member.c: Include "xalloc.h".
49164         (xmalloc, xrealloc): Remove decls.
49165         (get_group_info): Remove casts no longer required in C89.
49166         * lib/getusershell.c (readname): Remove casts no longer required in
49167         C89.
49168         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
49169         * lib/getline.c: Whitespace fix, from coreutils.
49170
49171 2003-08-13  Paul Eggert  <eggert@twinsun.com>
49172
49173         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
49174         Check for isascii.
49175
49176         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
49177         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
49178         Undo previous (whitespace-only) change.
49179
49180 2003-08-13  Paul Eggert  <eggert@twinsun.com>
49181
49182         * lib/exclude.c: Include <ctype.h>
49183         (IN_CTYPE_DOMAIN): New macro.
49184         (is_space): New fn.
49185         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
49186         and empty lines.
49187
49188         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
49189         Undo previous (whitespace-only) change.
49190
49191 2003-08-13  Paul Eggert  <eggert@twinsun.com>
49192
49193         * config/srclist-update: Change update back to the old behavior,
49194         leaving whitespace alone.  Use one 'sed' command rather than a
49195         pipeline.
49196         (fixlicense): Now a variable, not a function.
49197         (remove_trailing_blanks): Remove.
49198         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
49199         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
49200         Undo previous (whitespace-only) change.
49201
49202 2003-08-12  Paul Eggert  <eggert@twinsun.com>
49203
49204         Merge from coreutils.
49205         * modules/euidaccess: Add lib_SOURCES, include for new
49206         file euidaccess.h
49207
49208 2003-08-12  Paul Eggert  <eggert@twinsun.com>
49209
49210         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
49211         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
49212         Normalize leading white space and remove trailing white space.
49213
49214         Merge from coreutils
49215         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
49216
49217         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
49218         0.12.1.  These files are now being upgraded automatically by
49219         ../config/srclist-update.
49220
49221 2003-08-12  Paul Eggert  <eggert@twinsun.com>
49222
49223         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
49224         Normalize leading white space and remove trailing white space.
49225         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
49226         notice, as per ../config/srclist-update.
49227
49228         Merge from coreutils.
49229         * lib/euidaccess.h: New file.
49230         * lib/euidaccess.c: Include it.
49231         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
49232         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
49233         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
49234
49235 2003-08-12  Paul Eggert  <eggert@twinsun.com>
49236
49237         * config/srclist-update: Add copyright notice.
49238         (remove_id_lines, remove_trailing_blanks): New constants.
49239         (fixfile): Use them to normalize spacing a bit in copied files.
49240         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
49241         Normalize leading white space and remove trailing white space.
49242
49243         * config/texinfo.tex: Sync with texinfo.
49244
49245         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
49246         strtoul.c from libc, to merge coreutils whitespace changes.
49247
49248         * config/srclist.txt: Get the following m4 files from gettext:
49249         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
49250         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
49251         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
49252         wint_t.m4.
49253
49254 2003-08-12  Karl Berry  <karl@gnu.org>
49255
49256         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
49257         been made.
49258
49259 2003-08-11  Paul Eggert  <eggert@twinsun.com>
49260
49261         * modules/gnu-source, m4/gnu-source.m4:
49262         Remove; we're assuming Autoconf 2.54 or later now.
49263         Suggested by Bruno Haible.
49264         * MODULES.html.sh (func_all_modules): Remove gnu-source.
49265
49266 2003-08-11  Bruno Haible  <bruno@clisp.org>
49267
49268         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
49269
49270 2003-08-11  Bruno Haible  <bruno@clisp.org>
49271
49272         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
49273         (vasnprintf): Use it instead of wcslen.
49274
49275 2003-08-11  Bruno Haible  <bruno@clisp.org>
49276
49277         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
49278         value to ensure that _Bool promotes to int. Use #define for _Bool when
49279         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
49280
49281 2003-08-10  Karl Berry  <karl@gnu.org>
49282
49283         * lib/regex.h: update from libc (whitespace fix).
49284
49285 2003-08-09  Paul Eggert  <eggert@twinsun.com>
49286
49287         Merge some files from coreutils.  These changes were
49288         originally made by Jim Meyering.
49289         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
49290         many older Unixes require this.
49291         * lib/alloca.c (alloca): Remove cast to argument of free;
49292         no longer needed in C89.
49293         * lib/alloca_.h, regex.h: Fix white space to match
49294         what GNU indent does.
49295
49296 2003-08-09  Paul Eggert  <eggert@twinsun.com>
49297
49298         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
49299         apparently Emacs's Unicode mode got confused before my 2003-08-05
49300         checkin.
49301
49302 2003-08-08  Paul Eggert  <eggert@twinsun.com>
49303
49304         * m4/extensions.m4: New file.
49305         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
49306         Require gl_USE_SYSTEM_EXTENSIONS.
49307         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
49308         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
49309
49310 2003-08-08  Paul Eggert  <eggert@twinsun.com>
49311
49312         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
49313         * modules/extensions, modules/gnu-source: New files.
49314         * modules/timespec, modules/unlocked-io: Depend on extensions.
49315
49316 2003-08-07  Paul Eggert  <eggert@twinsun.com>
49317
49318         * modules/restrict: New file.
49319         * MODULES.html.sh (func_all_modules): Add restrict.
49320         * modules/regex: Depend on restrict.
49321
49322 2003-08-07  Paul Eggert  <eggert@twinsun.com>
49323
49324         * m4/restrict.m4: New file.
49325         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
49326
49327 2003-08-07  Bruno Haible  <bruno@clisp.org>
49328
49329         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
49330         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
49331
49332 2003-08-07  Bruno Haible  <bruno@clisp.org>
49333
49334         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
49335         makes the module 'getndelim2' compatible with the module 'getline'.
49336
49337 2003-08-05  Paul Eggert  <eggert@twinsun.com>
49338
49339         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
49340         byte with "\201" to avoid glitches when editing that source file
49341         with multi-gnome-terminal.
49342
49343 2003-08-05  Paul Eggert  <eggert@twinsun.com>
49344
49345         * lib/bumpalloc.h: Remove.
49346
49347 2003-08-05  Paul Eggert  <eggert@twinsun.com>
49348
49349         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
49350         * modules/bumpalloc: Remove.
49351
49352 2003-08-04  Paul Eggert  <eggert@twinsun.com>
49353
49354         * lib/getloadavg.c: Change copyright notice and spacing to conform to
49355         GNU coding style.
49356
49357         Merge from coreutils.
49358         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
49359         1. From glibc.
49360         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
49361         from Karl Berry, implemented by Jim Meyering.
49362         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
49363         from Dmitry V. Levin.
49364         Remove anachronistic cast of xrealloc.
49365         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
49366         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
49367         type. Otherwise, it wouldn't compile with at least /bin/cc on
49368         ymp-cray-unicos9.0.2.X.
49369         Combine two mostly-identical uses of alloca into one.
49370         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
49371
49372 2003-08-04  Dave Love  <d.love@dl.ac.uk>
49373
49374         [From Emacs.]
49375
49376         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
49377         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
49378         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
49379         obsolete NLIST_NAME_UNION.
49380         [__GNU__]: Undef BSD and FSCALE.
49381         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
49382
49383 2003-08-03  Paul Eggert  <eggert@twinsun.com>
49384
49385         * lib/stdbool_.h (_Bool): Make it signed char, instead of
49386         an enum type, so that it's guaranteed to promote to int.  See:
49387         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
49388
49389 2003-08-03  Karl Berry  <karl@gnu.org>
49390
49391         * config/depcomp: update from automake.
49392
49393 2003-07-31  Paul Eggert  <eggert@twinsun.com>
49394
49395         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
49396         (strerror): Don't assume that a printable int fits in 14 bytes.
49397
49398 2003-07-31  Bruno Haible  <bruno@clisp.org>
49399
49400         * modules/getpass-gnu: New file.
49401         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
49402
49403 2003-07-31  Bruno Haible  <bruno@clisp.org>
49404
49405         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
49406
49407 2003-07-24  Karl Berry  <karl@gnu.org>
49408
49409         * config/missing: update from automake.
49410
49411 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
49412             Bruno Haible  <bruno@clisp.org>
49413
49414         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
49415         * lib/getline.c (getline, getdelim): Likewise.
49416         Remove _GNU_SOURCE define; now it's defined in config.h through
49417         m4/getline.m4.
49418
49419 2003-07-23  Karl Berry  <karl@gnu.org>
49420
49421         * config/config.sub: update from prep.
49422
49423 2003-07-22  Paul Eggert  <eggert@twinsun.com>
49424
49425         * modules/xalloc (Depends-on): Add exitfail.
49426         * modules/xmemcoll: Likewise.
49427
49428 2003-07-22  Paul Eggert  <eggert@twinsun.com>
49429
49430         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
49431         over-parenthesization in macros.
49432
49433         Sync with coreutils.
49434
49435         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
49436         required by C99.
49437
49438         Use `exit_failure' for xalloc and xmemcoll instead of their own
49439         private exit-failure variables.
49440         * lib/xalloc.h (xalloc_exit_failure): Remove.
49441         * lib/xmalloc.c: Likewise.  Include exitfail.h.
49442         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
49443         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
49444         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
49445         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
49446
49447 2003-07-20  Jim Meyering  <jim@meyering.net>
49448
49449         * modules/closeout (Depends-on): Add exitfail.
49450         Suggestion from Bruno Haible.
49451
49452 2003-07-19  Karl Berry  <karl@gnu.org>
49453
49454         * config/config.sub: update from prep.
49455
49456 2003-07-18  Paul Eggert  <eggert@twinsun.com>
49457
49458         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
49459         Remove.
49460         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
49461         to test that it can stand by itself.  Include "exitfail.h".
49462         Clients should set exit_failure instead.
49463         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
49464
49465 2003-07-18  Bruno Haible  <bruno@clisp.org>
49466
49467         * modules/getndelim2: New file.
49468         * modules/getline: Share files with module getndelim2.
49469         * modules/getnline: Depend on getndelim2 instead of sharing files with
49470         it. Add getnline.c to lib_SOURCES.
49471         * MODULES.html.sh (func_all_modules): Add getndelim2.
49472
49473 2003-07-18  Bruno Haible  <bruno@clisp.org>
49474
49475         * m4/getndelim2.m4: New file.
49476         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
49477         invoke gl_PREREQ_GETNDELIM2.
49478         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
49479         gl_PREREQ_GETNDELIM2.
49480         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
49481         gl_GETNDELIM2.
49482
49483 2003-07-18  Bruno Haible  <bruno@clisp.org>
49484
49485         * lib/getndelim2.h: New file.
49486         * lib/getndelim2.c: Make into a module of its own. Include config.h,
49487         getndelim2.h.
49488         (getndelim2): Make non-static. Change return type to ssize_t.
49489         * lib/getline.h: Change argument names.
49490         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
49491         * lib/getnline.c: Include getndelim2.h.
49492
49493 2003-07-18  Andreas Schwab  <schwab@suse.de>
49494
49495         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
49496
49497 2003-07-17  Karl Berry  <karl@gnu.org>
49498
49499         * config/config.sub: update from prep.
49500
49501 2003-07-17  Bruno Haible  <bruno@clisp.org>
49502
49503         * modules/getnline: New file.
49504         * modules/getline: Add lib/getndelim2.c to source file list.
49505         * MODULES.html.sh (func_all_modules): Add getnline.
49506
49507 2003-07-17  Bruno Haible  <bruno@clisp.org>
49508
49509         * m4/getnline.m4: New file.
49510
49511 2003-07-17  Bruno Haible  <bruno@clisp.org>
49512
49513         * m4/Makefile.am.in: Remove file.
49514         * m4/Makefile.am: Remove file.
49515         * m4/Makefile.in: Remove file.
49516
49517 2003-07-17  Bruno Haible  <bruno@clisp.org>
49518
49519         * lib/getnline.h: New file.
49520         * lib/getnline.c: New file.
49521         * lib/getndelim2.c: New file, extracted from getline.c.
49522         (getndelim2): Renamed from getdelim2, with added nmax argument.
49523         * lib/getline.c: Include getndelim2.c.
49524         (getdelim2): Moved out to getndelim2.c.
49525         (getline, getdelim): Update.
49526
49527 2003-07-17  Bruno Haible  <bruno@clisp.org>
49528
49529         * lib/Makefile.am: Remove file.
49530         * lib/Makefile.in: Remove file.
49531
49532 2003-07-17  Bruno Haible  <bruno@clisp.org>
49533
49534         * configure.in: Remove file.
49535         * Makefile.in: Remove file.
49536
49537 2003-07-17  Bruno Haible  <bruno@clisp.org>
49538
49539         * MODULES.html.sh: Put the </BODY> right before </HTML>.
49540
49541 2003-07-16  Karl Berry  <karl@gnu.org>
49542
49543         * config/srclist-update: was running fixlicense twice, which caused
49544                 texinfo.tex to be nullified for some reason.  Simplify,
49545                 $gplsrc is no longer needed as far as I can see?
49546
49547 2003-07-16  Jim Meyering  <jim@meyering.net>
49548
49549         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
49550
49551 2003-07-15  Paul Eggert  <eggert@twinsun.com>
49552
49553         * config/srclist.txt: Get the following files from gettext-runtime/intl
49554         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
49555         ref-del.sin.  From Bruno Haible.
49556         * config/srclist-update (fixfile): Change grep pattern again, since the
49557         previous fix didn't work (there was another trailing $).  Use
49558         '[$]' to escape the $s.
49559
49560 2003-07-15  Karl Berry  <karl@gnu.org>
49561
49562         * lib/vasnprintf.c: update from gettext.
49563
49564 2003-07-15  Karl Berry  <karl@gnu.org>
49565
49566         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
49567         gets expanded when surrounded by '$'.
49568
49569 2003-07-15  Jim Meyering  <jim@meyering.net>
49570
49571         * modules/save-cwd: Don't depend on error.  From Derek Price.
49572
49573 2003-07-15  Jim Meyering  <jim@meyering.net>
49574
49575         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
49576
49577 2003-07-14  Simon Josefsson  <jas@extundo.com>
49578
49579         * modules/mempcpy: New file.
49580         * MODULES.html.sh (func_all_modules): Add mempcpy.
49581
49582 2003-07-14  Simon Josefsson  <jas@extundo.com>
49583
49584         * m4/mempcpy.m4: New file.
49585
49586 2003-07-14  Simon Josefsson  <jas@extundo.com>
49587
49588         * lib/mempcpy.h: New file.
49589         * lib/mempcpy.c: New file.
49590
49591 2003-07-14  Paul Eggert  <eggert@twinsun.com>
49592
49593         * modules/getdate, modules/posixtm: Depend on mktime.
49594
49595 2003-07-14  Paul Eggert  <eggert@twinsun.com>
49596
49597         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
49598         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
49599         unicodeio.c, unicodeio.h, unlocked-io.h:
49600         Switch from LGPL to GPL.
49601
49602 2003-07-14  Paul Eggert  <eggert@twinsun.com>
49603
49604         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
49605         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
49606         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
49607         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
49608         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
49609         updated automatically by ../config/srclist-update.  This changes
49610         their license from LPGL to GPL.
49611
49612 2003-07-14  Paul Eggert  <eggert@twinsun.com>
49613
49614         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
49615         assumed to refer to the root of the most recent stable gettext version.
49616         * config/srclistvars.sh: Add defaults for eggert.
49617         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
49618         Match "This program" as well as "The program".  This is needed
49619         for gettext.
49620
49621 2003-07-14  Jim Meyering  <jim@meyering.net>
49622
49623         Don't emit diagnostics.  Let callers do that.
49624         * lib/save-cwd.c: Don't include "error.h".
49625         (save_cwd): Don't call error.  Ensure that errno is valid
49626         when returning nonzero.
49627
49628         * lib/save-cwd.h (restore_cwd): Update prototype.
49629         * lib/save-cwd.c (restore_cwd): Remove two parameters.
49630         Simplify.  Don't call error upon failure.  Let callers do that.
49631         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
49632         when auditing is enabled.  But don't bother updating the #if.
49633
49634 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
49635
49636         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
49637         it breaks C++ compilation.
49638         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
49639
49640 2003-07-10  Simon Josefsson  <jas@extundo.com>
49641
49642         * modules/strchrnul (Makefile.am): Add strchrnul.h.
49643
49644 2003-07-10  Jim Meyering  <jim@meyering.net>
49645
49646         * m4/clock_time.m4: Remove trailing blank.
49647         * m4/intmax_t.m4: Likewise.
49648
49649 2003-07-10  Jim Meyering  <jim@meyering.net>
49650
49651         * lib/vasnprintf.c: Remove trailing blanks.
49652         Make cpp indentation consistent.
49653
49654 2003-07-09  Paul Eggert  <eggert@twinsun.com>
49655
49656         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
49657         posixver.c, strftime.c, strnlen.c, strverscmp.c:
49658         Switch from LGPL to GPL.
49659
49660 2003-07-09  Paul Eggert  <eggert@twinsun.com>
49661
49662         * config/srclist.txt: Sort sublists.  Add
49663         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
49664         that differ from gnulib for one reason or another; we'd like this list
49665         to be smaller but for now let's document what we have.
49666
49667 2003-07-08  Paul Eggert  <eggert@twinsun.com>
49668
49669         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
49670         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
49671         and sweeter "eval x=$x".
49672         * config/srclist.txt: Get lib/argp* from glibc.
49673
49674 2003-07-07  Paul Eggert  <eggert@twinsun.com>
49675
49676         * lib/mktime.c: Fix some boundary cases and remove need for floating
49677         point.
49678
49679         Issue a compile-time diagnostic if time_t is floating point, or if
49680         two's complement arithmetic is not in effect, or if arithmetic
49681         right shift does not propagate the sign.  These assumptions were
49682         all in the original code but they weren't checked.
49683
49684         (TIME_T_MIDPOINT, verify): New macros.
49685         (__isleap): Remove; it has integer overflow problems.
49686         (leapyear): New function, without those problems.
49687         (ydhms_tm_diff): Remove; splitting into two parts.
49688         (ydhms_diff): New function, containing the arithmetic part of
49689         the old ydhms_tm_diff function.  Issue a compile-time
49690         diagnostic if we are not using C99 integer division.
49691         Avoid casts when possible.
49692         (guess_time_tm): New function, containing the checking part of
49693         the old ydhms_tm_diff function.  Return the new value, rather than
49694         the difference between it and the old.  Accept a new argument T
49695         so that *T specifies the old value.  Check for overflow in the result.
49696
49697         (__mktime_internal): Use a time_t offset, not a long int offset.
49698         This undoes the 2003-06-04 change, which is no longer needed now
49699         that we have better overflow checking.
49700         (localtime_offset): Likewise.
49701
49702         (__mktime_internal): Avoid harmful overflow on hosts where time_t
49703         and long are 64-bit but int is only 32-bit.
49704         (ydhms_diff): Use long int to store year1 and yday1.
49705         Issue a compile-time diagnostic if long int is not wide enough.
49706
49707         (__mktime_internal): Use long int to store adjusted year and yday.
49708         Use plain C rather than preprocessor commands, if that doesn't
49709         affect efficiency.
49710         Check for overflow (and try to repair) after each probe
49711         rather than checking only at the very end.  This avoids some bugs
49712         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
49713         does not equal GMT offset at maximum time).
49714         Use integer to check for overflow rather than floating point; this
49715         is more portable to non-IEEE hosts, and is a tad faster.
49716         When we detect that we are oscillating between two values,
49717         don't check whether tm_isdst has the requested value, since
49718         we already know the answer.  When tm_isdst has the wrong value,
49719         use a different heuristic to find the right one, based on the
49720         extreme values actually observed in practice in tz2003a,
49721         rather than the (overly optimistic) "previous 3 calendar quarters".
49722
49723         (not_equal_tm, print_tm, check_result): Use "const T" rather than
49724         "T const" to accommodate glibc style.
49725         (check_result): Use less-confusing report format.  "long" -> "long int.
49726         (main): Likewise.
49727         Don't loop if the iteration overflows time_t.
49728         Allow a negative step in the iteration.
49729
49730 2003-07-06  Karl Berry  <karl@gnu.org>
49731
49732         * config/depcomp: update from automake.
49733         * config/config.sub: update from prep.
49734
49735 2003-07-03  Karl Berry  <karl@gnu.org>
49736
49737         * config/config.guess: update from prep.
49738
49739 2003-07-01  Paul Eggert  <eggert@twinsun.com>
49740
49741         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
49742         xreadlink.c now includes it unconditionally.
49743
49744 2003-07-01  Paul Eggert  <eggert@twinsun.com>
49745
49746         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
49747         having it depend on HAVE_SYS_TYPES_H.
49748
49749 2003-07-01  Bruno Haible  <bruno@clisp.org>
49750
49751         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
49752         <sys/types.h> should be sufficient.
49753         Reported by Paul Eggert.
49754
49755 2003-06-26  Karl Berry  <karl@gnu.org>
49756
49757         * config/depcomp: update from automake.
49758
49759 2003-06-26  Bruno Haible  <bruno@clisp.org>
49760
49761         * modules/human: Depend on module stdbool.
49762
49763 2003-06-25  Bruno Haible  <bruno@clisp.org>
49764
49765         * modules/readlink: New file.
49766         * modules/xreadlink: Depend on it.
49767         * MODULES.html.sh (func_all_modules): Add readlink.
49768
49769 2003-06-25  Bruno Haible  <bruno@clisp.org>
49770
49771         * m4/readlink.m4: New file.
49772
49773 2003-06-25  Bruno Haible  <bruno@clisp.org>
49774
49775         * lib/readlink.c: New file.
49776
49777 2003-06-22  Karl Berry  <karl@gnu.org>
49778
49779         * config/srclist.txt: update mkinstalldirs from automake.
49780         * config/mkinstalldirs: update.
49781
49782 2003-06-22  Bruno Haible  <bruno@clisp.org>
49783
49784         Portability to mingw32.
49785         * m4/ssize_t.m4: New file, from GNU gettext.
49786         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
49787         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
49788
49789 2003-06-22  Bruno Haible  <bruno@clisp.org>
49790
49791         * modules/safe-read: Add m4/ssize_t.m4.
49792         * modules/xreadlink: Add m4/ssize_t.m4.
49793
49794 2003-06-20  Bruno Haible  <bruno@clisp.org>
49795
49796         Assume C89, so PARAMS isn't needed.
49797         * lib/unicodeio.h (PARAMS): Remove.
49798         * lib/unicodeio.c: Don't use PARAMS.
49799
49800 2003-06-18  Karl Berry  <karl@gnu.org>
49801
49802         * config/config.{guess,sub}: update from prep.
49803
49804 2003-06-18  Jim Meyering  <jim@meyering.net>
49805
49806         Merge changes from coreutils.
49807         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
49808         Remove explicit declarations of xmalloc and realloc.
49809         Include xalloc.h.
49810         (read_utmp): Remove anachronistic cast of xmalloc.
49811
49812 2003-06-17  Paul Eggert  <eggert@twinsun.com>
49813
49814         Assume C89, so PARAMS isn't needed.
49815         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
49816         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
49817         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
49818         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
49819         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
49820         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
49821         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
49822         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
49823         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
49824         lib/xstrtod.h, lib/xstrtol.h: Likewise.
49825         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
49826         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
49827         no longer needed. Anyway, config.h should always be included before any
49828         other file.
49829
49830 2003-06-11  Simon Josefsson  <jas@extundo.com>
49831
49832         * modules/sysexits: New file.
49833         * MODULES.html.sh (func_all_modules): Add sysexits.
49834
49835 2003-06-11  Simon Josefsson  <jas@extundo.com>
49836
49837         * lib/sysexit_.h: New file.
49838
49839 2003-06-11  Derek Price  <derek@ximbiot.com>
49840
49841         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
49842         necessary.
49843
49844 2003-06-11  Bruno Haible  <bruno@clisp.org>
49845
49846         * m4/sysexits.m4: New file.
49847
49848 2003-06-10  Simon Josefsson  <jas@extundo.com>
49849
49850         * lib/argp.h: New file, from glibc.
49851         * lib/argp-ba.c: New file, from glibc.
49852         * lib/argp-eexst.c: New file, from glibc.
49853         * lib/argp-fmtstream.c: New file, from glibc.
49854         * lib/argp-fmtstream.h: New file, from glibc.
49855         * lib/argp-fs-xinl.c: New file, from glibc.
49856         * lib/argp-help.c: New file, from glibc.
49857         * lib/argp-namefrob.h: New file, from glibc.
49858         * lib/argp-parse.c: New file, from glibc.
49859         * lib/argp-pv.c: New file, from glibc.
49860         * lib/argp-pvh.c: New file, from glibc.
49861         * lib/argp-xinl.c: New file, from glibc.
49862
49863 2003-06-10  Simon Josefsson  <jas@extundo.com>
49864
49865         * modules/strchrnul: New file.
49866
49867 2003-06-10  Simon Josefsson  <jas@extundo.com>
49868
49869         * modules/argp: New file.
49870
49871 2003-06-10  Simon Josefsson  <jas@extundo.com>
49872
49873         * m4/strchrnul.m4: New file.
49874
49875 2003-06-10  Simon Josefsson  <jas@extundo.com>
49876
49877         * lib/strchrnul.h: New file.
49878         * lib/strchrnul.c: New file.
49879
49880 2003-06-10  Bruno Haible  <bruno@clisp.org>
49881
49882         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
49883
49884 2003-06-07  Karl Berry  <karl@gnu.org>
49885
49886         * config/config.{guess,sub}: update from prep.
49887
49888 2003-06-07  Jim Meyering  <jim@meyering.net>
49889
49890         * modules/strtod: Use $(...) notation, not @...@ for
49891         AC_REPLACE'd variables.
49892         * modules/localcharset: Likewise.
49893
49894 2003-06-07  Jim Meyering  <jim@meyering.net>
49895
49896         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
49897         in place of my name in the copyright comment.
49898         Remove definition and uses of __P.
49899
49900         From coreutils.
49901         * lib/stat.c: Don't declare xmalloc explicitly.
49902         Instead, include "xalloc.h".
49903         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
49904         xrealloc, and xcalloc return values.
49905         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
49906         Improve comment.
49907         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
49908
49909 2003-06-07  Bruno Haible  <bruno@clisp.org>
49910
49911         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
49912         avoid AC_CONFIG_LINKS.
49913         * modules/fnmatch (Makefile.am): Use explicit creation rule for
49914         fnmatch.h, to avoid AC_CONFIG_LINKS.
49915         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
49916
49917 2003-06-07  Bruno Haible  <bruno@clisp.org>
49918
49919         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
49920         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
49921         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
49922         directory.
49923         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
49924         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
49925         directory.
49926
49927 2003-06-06  Jim Meyering  <jim@meyering.net>
49928
49929         Merge from coreutils.
49930         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
49931         Consolidate declarations and initializations of *_base* locals.
49932
49933         Merge from coreutils.
49934         This avoids a core dump on systems without GNU putenv,
49935         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
49936         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
49937         (unsetenv): New static function, from GNU libc.
49938         (rpl_putenv): Use it.
49939
49940         * lib/modechange.c: Remove trailing blanks.
49941
49942         Merge from coreutils.
49943         * lib/fsusage.c: Remove declaration of statfs.
49944         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
49945
49946         * lib/posixtm.c: Include <stdbool.h> unconditionally.
49947
49948 2003-06-06  Jim Meyering  <jim@meyering.net>
49949
49950         * lib/stdbool_.h: Renamed from stdbool.h.in.
49951
49952 2003-06-06  Jim Meyering  <jim@meyering.net>
49953             Bruno Haible  <bruno@clisp.org>
49954
49955         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
49956         Adjust Makefile.am snippet not to redirect directly to target.
49957         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
49958
49959 2003-06-05  Paul Eggert  <eggert@twinsun.com>
49960
49961         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
49962         mismatch, look in future quarters as well as past.  This fixes a
49963         bug when processing fall-backwards gaps immediately after a long
49964         period of daylight-saving time.
49965
49966         * lib/mktime.c: Assume freestanding C89 or better.
49967         (HAVE_LIMITS_H): Remove.  Assume it's 1.
49968         (__P): Remove; not used.
49969         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
49970         (mktime, not_equal_tm, print_tm, check_result,
49971         main): Use prototypes.  Use const * where appropriate.
49972         (main): Fix typo in testing code that uncovered by above changes.
49973         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
49974
49975 2003-06-04  Paul Eggert  <eggert@twinsun.com>
49976
49977         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
49978         locale.h, localeconv.  This merges changes from coreutils.
49979
49980         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
49981         It can be removed after the next Autoconf is released.
49982         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
49983         needed.
49984
49985 2003-06-04  Paul Eggert  <eggert@twinsun.com>
49986
49987         * lib/mktime.c: Fix Debian bug 177940
49988         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
49989         (localtime_offset): Now long int, not time_t, because we want it
49990         to be guaranteed to be signed.  All uses changed.
49991         (__mktime_internal): If overflow would occur when adding offset,
49992         don't add it.
49993
49994         Merge 'human' changes from coreutils.  Rewrite to support
49995         locale-specific notations like thousands separators.
49996         * lib/human.c: Simplify authorship notice.
49997         Include human.h immediately after config.h.
49998         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
49999         <limits.h>: Do not include, since human.h does.
50000         (SIZE_MAX, UINTMAX_MAX): New macros.
50001         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
50002         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
50003         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
50004         (power_letter): Renamed from suffixes.
50005         (generate_suffix_backwards): Remove.
50006         (adjust_value): Now takes int style (because of human.h changes)
50007         and long double value (for greater precision on some platforms).
50008         (group_number): New function.
50009         (human_readable): Use it.  Use integer options, not enum.
50010         Put the options before the sizes in the arg list.
50011         Support all the new options.
50012         The old human_readable function has been removed;
50013         use inttostr.h instead.
50014         (human_readable, default_block_size, humblock):
50015         Use uintmax_t, not int, for block sizes.
50016         (human_readable_inexact, block_size_types): Remove.
50017         (block_size_opts): New constant.
50018         (human_options): Renamed from human_block_size, with new signature
50019         that allows block sizes up to UINTMAX_MAX.  All callers changed.
50020         * lib/human.h: Add copyright and authorship notice.
50021         Include <limits.h> and <stdbool.h> unconditionally.
50022         (PARAMS): Remove.  All uses removed.
50023         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
50024         (enum human_inexact_style): Remove tag; now a nameless enum.
50025         (human_floor, human_ceiling, human_round_to_even): Now have
50026         values 2, 0, 1 rather than -1, 1, 0.
50027         (human_group_digits, human_suppress_point_zero, human_autoscale,
50028         human_base_1024, human_SI, human_B): New constants.
50029         (human_readable_inexact, human_block_size): Remove.
50030         (human_readable): Size args are now uintmax_t, not int.
50031         (human_options): New decl.
50032
50033         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
50034         unnecessary now that we assume C89 or better.  This change
50035         imported from coreutils.
50036
50037         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
50038         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
50039         in the 2003-05-30 sync from glibc.
50040
50041         .h files should stand alone, but we shouldn't include <sys/types.h>
50042         if we can get away with just <stddef.h>.
50043
50044         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
50045         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
50046         rather than <sys/types.h>, as we merely need size_t.
50047         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
50048         to get size_t.
50049         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
50050         Include <stdio.h>, to get FILE.
50051         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
50052         memcasecmp.h has included <stddef.h> and all we need is size_t.
50053         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
50054         our interface, instead of including <sys/types.h>
50055
50056 2003-06-04  Paul Eggert  <eggert@twinsun.com>
50057
50058         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
50059         now, as glibc mktime is buggy on non-glibc systems.
50060
50061 2003-06-03  Karl Berry  <karl@gnu.org>
50062
50063         * config/config.sub: update from prep.
50064
50065 2003-06-02  Paul Eggert  <eggert@twinsun.com>
50066
50067         [from coreutils]
50068         Fix some minor time-related bugs with POSIX time arguments.
50069         Some valid time stamps were being rejected (notably -1, and
50070         time stamps before 1900 on 64-bit hosts).  And some invalid
50071         time stamps were being accepted, e.g. September 31.
50072
50073         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
50074         that we can return (time_t) -1 successfully.
50075         * lib/posixtm.c: Likewise.
50076         [HAVE_STDBOOL_H]: Include <stdbool.h>.
50077         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
50078         (t): Remove static var.
50079         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
50080         of static var.  All uses changed.
50081         (year): Do not reject years before 1900; they can occur with
50082         64-bit time_t.
50083         (posix_time_parse): Do not check for out-of-range components;
50084         that is now the caller's responsibility, since our checks were
50085         only approximations.
50086         (posixtime): Use mktime to check for out-of-range components,
50087         since it knows them exactly.
50088         If mktime returns (time_t) -1, check whether an error actually occurred
50089         by invoking localtime on -1.
50090         (main) [TEST_POSIXTIME]: Check for input data errors, and report
50091         posixtime failures better.
50092         Improve the test data (in comments only).
50093
50094 2003-06-02  Karl Berry  <karl@gnu.org>
50095
50096         * config/mkinstalldirs (version): new variable.
50097         (--version): new option.
50098         (usage): improve message.
50099
50100 2003-05-30  Karl Berry  <karl@gnu.org>
50101
50102         * lib/mktime.c: update from libc.
50103
50104 2003-05-30  Bruno Haible  <bruno@clisp.org>
50105
50106         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
50107         * config/config.rpath: Upgrade to gettext-0.12.1.
50108
50109 2003-05-30  Bruno Haible  <bruno@clisp.org>
50110
50111         * m4/gettext.m4: Upgrade to gettext-0.12.1.
50112         * m4/nls.m4: New file, from gettext-0.12.1.
50113         * m4/po.m4: New file, from gettext-0.12.1.
50114         * m4/progtest.m4: Upgrade to gettext-0.12.1.
50115
50116 2003-05-30  Bruno Haible  <bruno@clisp.org>
50117
50118         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
50119         * lib/localcharset.h: Likewise.
50120         * lib/localcharset.c: Likewise.
50121
50122 2003-05-29  Karl Berry  <karl@gnu.org>
50123
50124         * config/config.rpath: update from gettext.
50125
50126 2003-05-28  Paul Eggert  <eggert@twinsun.com>
50127
50128         Assume the headers required for C89 freestanding compilers.
50129         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
50130         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
50131         * m4/human.m4 (gl_HUMAN): Likewise.
50132         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
50133         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
50134         * m4/userspec.m4 (gl_USERSPEC): Likewise.
50135         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
50136         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
50137         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
50138
50139 2003-05-28  Paul Eggert  <eggert@twinsun.com>
50140
50141         Assume the headers required for C89 freestanding compilers.
50142         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
50143         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
50144         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
50145         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
50146         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
50147         define, since <limits.h> is guaranteed to do that.
50148         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
50149         * lib/exclude.c: Include <stdbool.h> unconditionally.
50150         * lib/tempname.c: Include <stddef.h> unconditionally.
50151         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
50152         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
50153         <stddef.h> does that.
50154         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
50155         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
50156         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
50157         needed.
50158         * lib/xstrtol.c: Likewise.
50159         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
50160         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
50161
50162         * lib/addext.c (addext): Use assignment rather than cast, to avoid
50163         warnings on some platforms.
50164
50165         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
50166         arbitrarily.
50167
50168 2003-05-26  Jim Meyering  <jim@meyering.net>
50169
50170         Merge in a change from coreutils:
50171         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
50172         that is guaranteed to be `no'.  Use `no_such_member' to indicate
50173         that condition, rather than `-1' which is slightly misleading.
50174         Change the name of the cache variable to have the gl_ prefix.
50175         Prompted by a patch from Richard Dawe for DJGPP.
50176
50177 2003-05-24  Karl Berry  <karl@gnu.org>
50178
50179         * config/config.guess: update from prep.
50180
50181 2003-05-22  Karl Berry  <karl@gnu.org>
50182
50183         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
50184
50185 2003-05-20  Karl Berry  <karl@gnu.org>
50186
50187         * config/config.guess: update from prep.
50188
50189 2003-05-18  Karl Berry  <karl@gnu.org>
50190
50191         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
50192         might actually be set by the user.
50193
50194         * config/depcomp, install-sh, mdate-sh: update from automake.
50195
50196 2003-05-17  Bruno Haible  <bruno@clisp.org>
50197
50198         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
50199         invalid expansion for AC_EGREP_CPP.
50200         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
50201         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
50202         Suggested by Akim Demaille <akim@epita.fr> in
50203         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
50204
50205 2003-05-12  Jim Meyering  <jim@meyering.net>
50206
50207         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
50208         the space-padded-by-default conversion specifiers, %e, %k, %l.
50209
50210 2003-05-12  Bruno Haible  <bruno@clisp.org>
50211
50212         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
50213         the string is longer than 4 KB.
50214
50215 2003-05-11  Karl Berry  <karl@gnu.org>
50216
50217         * config/config.{guess,sub}: update from prep.
50218
50219 2003-05-09  Bruno Haible  <bruno@clisp.org>
50220
50221         * modules/error: Add m4/strerror_r.m4 to file list.
50222
50223 2003-05-03  Bruno Haible  <bruno@clisp.org>
50224
50225         Upgrade to Unicode-4.0.
50226         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
50227         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
50228         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
50229         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
50230         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
50231         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
50232         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
50233         Change width of U+E0100..U+E01EF from 1 to 0.
50234
50235 2003-04-25  Jim Meyering  <jim@meyering.net>
50236
50237         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
50238         of type size_t, not int.
50239
50240 2003-04-25  Bruno Haible  <bruno@clisp.org>
50241
50242         * lib/copy-file.c: Include <stddef.h>, for size_t.
50243
50244 2003-04-21  Paul Eggert  <eggert@twinsun.com>
50245
50246         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
50247         code which expansion is under static control.  Patch imported from
50248         Akim Demaille's patch to Bison; see
50249         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
50250
50251 2003-04-14  Bruno Haible  <bruno@clisp.org>
50252
50253         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
50254
50255 2003-04-11  Jim Meyering  <jim@meyering.net>
50256
50257         Merge changes from Coreutils.
50258
50259         2003-03-22  Jim Meyering  <jim@meyering.net>
50260
50261         * lib/strftime.c (widen): Cast alloca return value to proper type.
50262
50263         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
50264
50265         From GNU libc.
50266         * lib/strftime.c (my_strftime): Handle very large width
50267         specifications for numeric values correctly.  Improve checks for
50268         overflow.
50269
50270         2003-01-19  Jim Meyering  <jim@meyering.net>
50271
50272         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
50273         definitions.
50274         (nl_get_alt_digit) [! defined my_strftime]: Define.
50275         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
50276         _nl_get_alt_digit and _nl_get_walt_digit.
50277
50278         * lib/strftime.c (my_strftime): Merge in locale-related changes from
50279         libc. These changes have no effect outside of _LIBC.
50280
50281 2003-04-10  Bruno Haible  <bruno@clisp.org>
50282
50283         * modules/findprog: New file.
50284         * MODULES.html.sh (func_all_modules): Add it.
50285
50286 2003-04-10  Bruno Haible  <bruno@clisp.org>
50287
50288         * m4/findprog.m4: New file.
50289         * m4/eaccess.m4: New file.
50290
50291 2003-04-10  Bruno Haible  <bruno@clisp.org>
50292
50293         * lib/findprog.h: New file, from GNU gettext.
50294         * lib/findprog.c: New file, from GNU gettext.
50295
50296 2003-04-05  Jim Meyering  <jim@meyering.net>
50297
50298         Merge changes from Coreutils.
50299
50300         * lib/exclude.h (PARAMS): Remove definition and uses.
50301         * lib/exclude.c: Remove uses of `PARAMS'.
50302
50303         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
50304         Add test-cases for DOS filenames. Declare program_name.
50305         (main): Set up program_name.  Patch by Rich Dawe.
50306
50307         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
50308         error from mntctl.
50309         Use mntctl's return value to drive the entry-processing loop, since
50310         we can't rely on the value of the vmt_length member in the last
50311         entry.  On some systems doing so could result in exhausting
50312         virtual memory.  Based in part on a patch from Mike Jetzer.
50313
50314 2003-04-04  Bruno Haible  <bruno@clisp.org>
50315
50316         * modules/linebreak: New file.
50317         * MODULES.html.sh (func_all_modules): Add it.
50318
50319 2003-04-04  Bruno Haible  <bruno@clisp.org>
50320
50321         * m4/linebreak.m4: New file.
50322
50323 2003-04-04  Bruno Haible  <bruno@clisp.org>
50324
50325         * lib/linebreak.h: New file, from GNU gettext.
50326         * lib/linebreak.c: New file, from GNU gettext with slight
50327         modifications.
50328         * lib/lbrkprop.h: New file, from GNU gettext.
50329
50330 2003-04-03  Bruno Haible  <bruno@clisp.org>
50331
50332         * modules/utf8-ucs4: New file.
50333         * modules/utf16-ucs4: New file.
50334         * modules/ucs4-utf8: New file.
50335         * modules/ucs4-utf16: New file.
50336         * MODULES.html.sh (func_all_modules): Add them.
50337
50338 2003-04-03  Bruno Haible  <bruno@clisp.org>
50339
50340         * m4/utf-ucs4.m4: New file.
50341         * m4/ucs4-utf.m4: New file.
50342
50343 2003-04-03  Bruno Haible  <bruno@clisp.org>
50344
50345         * lib/utf8-ucs4.h: New file, from GNU gettext.
50346         * lib/utf16-ucs4.h: New file, from GNU gettext.
50347         * lib/ucs4-utf8.h: New file, from GNU gettext.
50348         * lib/ucs4-utf16.h: New file, from GNU gettext.
50349
50350 2003-04-02  Bruno Haible  <bruno@clisp.org>
50351
50352         * modules/binary-io: New file.
50353         * MODULES.html.sh (func_all_modules): Add it.
50354
50355 2003-04-02  Bruno Haible  <bruno@clisp.org>
50356
50357         * lib/binary-io.h: New file, from GNU gettext.
50358
50359 2003-04-01  Bruno Haible  <bruno@clisp.org>
50360
50361         * modules/pathname: New file.
50362         * MODULES.html.sh (func_all_modules): Add it.
50363
50364 2003-04-01  Bruno Haible  <bruno@clisp.org>
50365
50366         * lib/pathname.h: New file, from GNU gettext.
50367         * lib/concatpath.c: New file, from GNU gettext.
50368
50369 2003-03-30  Bruno Haible  <bruno@clisp.org>
50370
50371         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
50372
50373 2003-03-30  Bruno Haible  <bruno@clisp.org>
50374
50375         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
50376         function chown() doesn't exist.
50377
50378 2003-03-28  Bruno Haible  <bruno@clisp.org>
50379
50380         * modules/copy-file: New file.
50381         * MODULES.html.sh (func_all_modules): Add it.
50382
50383 2003-03-28  Bruno Haible  <bruno@clisp.org>
50384
50385         * m4/copy-file.m4: New file.
50386
50387 2003-03-28  Bruno Haible  <bruno@clisp.org>
50388
50389         * lib/copy-file.h: New file, from GNU gettext.
50390         * lib/copy-file.c: New file, from GNU gettext.
50391
50392 2003-03-18  Jim Meyering  <jim@meyering.net>
50393
50394         * lib/quote.c (quote_n): Fix typo in comment.
50395
50396 2003-03-18  Bruno Haible  <bruno@clisp.org>
50397
50398         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
50399         checking.
50400         * m4/onceonly_2_57.m4: Likewise.
50401
50402 2003-03-17  Bruno Haible  <bruno@clisp.org>
50403
50404         * m4/onceonly.m4: Require autoconf 2.54 or newer.
50405         (m4_quote): Remove macro.
50406         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
50407
50408 2003-03-14  Jim Meyering  <jim@meyering.net>
50409
50410         Merge changes from Coreutils.
50411         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
50412         to be const, in order to avoid warnings.
50413         (obstack_room): Likewise.
50414         (obstack_empty_p): Likewise.
50415
50416 2003-03-14  Bruno Haible  <bruno@clisp.org>
50417
50418         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
50419         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
50420
50421 2003-03-13  Paul Eggert  <eggert@twinsun.com>
50422
50423         Merge changes from Bison.
50424         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
50425         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
50426         when compiling Bison 1.875's `bitset bset = obstack_alloc
50427         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
50428         * lib/hash.c: Include <stdbool.h> unconditionally.
50429
50430 2003-03-13  Paul Eggert  <eggert@twinsun.com>
50431
50432         * m4/onceonly.m4 (m4_quote): New macro.
50433         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
50434         Quote AC_FOREACH variable-expansions properly.
50435
50436 2003-03-13  Paul Eggert  <eggert@twinsun.com>
50437
50438         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
50439
50440 2003-03-09  Paul Eggert  <eggert@twinsun.com>
50441
50442         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
50443         Reported by Bruce Becker; see:
50444         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
50445
50446 2003-03-03  Paul Eggert  <eggert@twinsun.com>
50447             Bruno Haible  <bruno@clisp.org>
50448
50449         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
50450         Reported by John Hughes, see
50451         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
50452
50453 2003-02-20  Bruno Haible  <bruno@clisp.org>
50454
50455         * MODULES.html.sh (func_all_modules): Add poll.
50456
50457 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
50458
50459         * modules/poll: New file.
50460
50461 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
50462
50463         * lib/poll_.h: New file.
50464         * lib/poll.c: New file.
50465
50466 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
50467
50468         * m4/poll.m4: New file.
50469
50470 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
50471
50472         * modules/mathl: New file.
50473
50474 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
50475
50476         * lib/mathl.h: New file.
50477         * lib/acosl.c: New file.
50478         * lib/asinl.c: New file.
50479         * lib/atanl.c: New file.
50480         * lib/ceill.c: New file.
50481         * lib/cosl.c: New file.
50482         * lib/expl.c: New file.
50483         * lib/floorl.c: New file.
50484         * lib/frexpl.c: New file.
50485         * lib/ldexpl.c: New file.
50486         * lib/logl.c: New file.
50487         * lib/sincosl.c: New file.
50488         * lib/sinl.c: New file.
50489         * lib/sqrtl.c: New file.
50490         * lib/tanl.c: New file.
50491         * lib/trigl.c: New file.
50492         * lib/trigl.h: New file.
50493
50494 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
50495
50496         * m4/mathl.m4: New file.
50497
50498 2003-02-18  Bruno Haible  <bruno@clisp.org>
50499
50500         * MODULES.html.sh (func_all_modules): Add mathl.
50501
50502 2003-02-17  Bruno Haible  <bruno@clisp.org>
50503
50504         * modules/mkdtemp: New module.
50505         * MODULES.html.sh (func_all_modules): Add it.
50506
50507 2003-02-17  Bruno Haible  <bruno@clisp.org>
50508
50509         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
50510
50511 2003-02-17  Bruno Haible  <bruno@clisp.org>
50512
50513         * lib/mkdtemp.h: New file, from GNU gettext.
50514         * lib/mkdtemp.c: New file, from GNU gettext.
50515
50516 2003-02-02  Jim Meyering  <jim@meyering.net>
50517
50518         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
50519         e.g. glibc-2.2.93.
50520
50521 2003-01-31  Bruno Haible  <bruno@clisp.org>
50522
50523         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
50524         'rpl_rename'.
50525         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
50526         'rpl_strnlen'.
50527         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
50528         'rpl_strtod'.
50529         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
50530         'rpl_utime'.
50531
50532 2003-01-31  Bruno Haible  <bruno@clisp.org>
50533
50534         * lib/rename.c: #undef rename before defining rpl_rename.
50535         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
50536
50537 2003-01-30  Bruno Haible  <bruno@clisp.org>
50538
50539         * modules/vasnprintf, modules/vasprintf: New modules.
50540         * MODULES.html.sh (func_all_modules): Add them.
50541
50542 2003-01-30  Bruno Haible  <bruno@clisp.org>
50543
50544         * m4/signed.m4: New file, from GNU gettext.
50545         * m4/longdouble.m4: New file, from GNU gettext.
50546         * m4/wchar_t.m4: New file, from GNU gettext.
50547         * m4/wint_t.m4: New file, from GNU gettext.
50548         * m4/vasnprintf.m4: New file.
50549         * m4/vasprintf.m4: New file.
50550
50551 2003-01-30  Bruno Haible  <bruno@clisp.org>
50552
50553         * lib/printf-args.h: New file, from GNU gettext.
50554         * lib/printf-args.c: New file, from GNU gettext.
50555         * lib/printf-parse.h: New file, from GNU gettext.
50556         * lib/printf-parse.c: New file, from GNU gettext.
50557         * lib/vasnprintf.h: New file, from GNU gettext.
50558         * lib/vasnprintf.c: New file, from GNU gettext.
50559         * lib/asnprintf.c: New file, from GNU gettext.
50560         * lib/vasprintf.h: New file, from GNU gettext with modifications.
50561         * lib/vasprintf.c: New file, from GNU gettext.
50562         * lib/asprintf.c: New file, from GNU gettext.
50563
50564 2003-01-29  Bruno Haible  <bruno@clisp.org>
50565
50566         * modules/stpncpy: New module.
50567         * MODULES.html.sh (func_all_modules): Add it.
50568
50569 2003-01-29  Bruno Haible  <bruno@clisp.org>
50570
50571         * m4/stpncpy.m4: New file.
50572
50573 2003-01-29  Bruno Haible  <bruno@clisp.org>
50574
50575         * lib/stpncpy.h: New file, from GNU gettext with modifications.
50576         * lib/stpncpy.c: New file, from GNU gettext with modifications.
50577
50578 2003-01-28  Bruno Haible  <bruno@clisp.org>
50579
50580         * modules/c-ctype: New module.
50581         * MODULES.html.sh (func_all_modules): Add it.
50582
50583 2003-01-28  Bruno Haible  <bruno@clisp.org>
50584
50585         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
50586         Paul Eggert.
50587         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
50588         Paul Eggert.
50589
50590 2003-01-27  Bruno Haible  <bruno@clisp.org>
50591
50592         * modules/xsetenv: New module.
50593         * MODULES.html.sh (func_all_modules): Add it.
50594
50595 2003-01-27  Bruno Haible  <bruno@clisp.org>
50596
50597         * lib/xsetenv.h: New file, from GNU gettext.
50598         * lib/xsetenv.c: New file, from GNU gettext.
50599
50600 2003-01-23  Jim Meyering  <jim@meyering.net>
50601
50602         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
50603         from working on systems without dirfd (at least Irix and OSF1/Tru64).
50604
50605 2003-01-23  Bruno Haible  <bruno@clisp.org>
50606
50607         * modules/minmax: New module.
50608         * MODULES.html.sh (func_all_modules): Add it.
50609
50610 2003-01-23  Bruno Haible  <bruno@clisp.org>
50611
50612         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
50613         Eggert.
50614
50615 2003-01-22  Bruno Haible  <bruno@clisp.org>
50616
50617         * modules/exit: New module.
50618         * MODULES.html.sh (func_all_modules): Add it.
50619
50620 2003-01-22  Bruno Haible  <bruno@clisp.org>
50621
50622         * lib/exit.h: New file, from GNU gettext.
50623
50624 2003-01-19  Bruno Haible  <bruno@clisp.org>
50625
50626         * gnulib-tool: Recognize option --extract-maintainer.
50627         (func_get_maintainer): New function.
50628         * modules/*: Add Maintainer entry.
50629
50630 2003-01-16  Jim Meyering  <jim@meyering.net>
50631
50632         * m4/regex.m4: The `regex' struct is both input and output.
50633         Initialize it before each use.  Patch by Tim Waugh.
50634
50635 2003-01-16  Bruno Haible  <bruno@clisp.org>
50636
50637         * MODULES.html.sh: Add a table of contents. Add the module name as
50638         leftmost column. Add hyperlinks.
50639
50640 2003-01-15  Bruno Haible  <bruno@clisp.org>
50641
50642         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
50643
50644 2003-01-15  Bruno Haible  <bruno@clisp.org>
50645
50646         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
50647         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
50648         suffix.
50649
50650 2003-01-15  Bruno Haible  <bruno@clisp.org>
50651
50652         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
50653
50654 2003-01-15  Bruno Haible  <bruno@clisp.org>
50655
50656         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
50657         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
50658
50659 2003-01-14  Jim Meyering  <jim@meyering.net>
50660
50661         * lib/same.c (same_name): Tweak a comment.
50662
50663 2003-01-14  Bruno Haible  <bruno@clisp.org>
50664
50665         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
50666         when a string comparison is sufficient.
50667
50668 2003-01-14  Bruno Haible  <bruno@clisp.org>
50669
50670         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
50671         'unsigned int'.
50672
50673 2003-01-14  Bruno Haible  <bruno@clisp.org>
50674
50675         * lib/hash-pjw.c: Add comment about low quality of this function.
50676
50677 2003-01-13  Bruno Haible  <bruno@clisp.org>
50678
50679         * modules/stpcpy: Distribute lib/stpcpy.h.
50680         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
50681
50682 2003-01-13  Bruno Haible  <bruno@clisp.org>
50683
50684         * modules/*: Add a description.
50685         * modules/strpbrk: Fix Makefile.am snippet.
50686         * modules/strtoimax: Fix dependencies.
50687         * modules/strtoumax: Likewise.
50688
50689 2003-01-13  Bruno Haible  <bruno@clisp.org>
50690
50691         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
50692         * modules/alloca (Makefile.am): All object files depend on alloca.h.
50693         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
50694
50695 2003-01-13  Bruno Haible  <bruno@clisp.org>
50696
50697         * gnulib-tool (func_create_testdir): Store config/* files in the main
50698         directory.
50699         * config.rpath: Move to ...
50700         * config/config.rpath: ... here.
50701         * modules/gettext: Contains config/config.rpath, not config.rpath.
50702         * modules/iconv: Likewise.
50703
50704 2003-01-12  Paul Eggert  <eggert@twinsun.com>
50705
50706         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
50707         to avoid collisions with libcurses and libreadline.
50708
50709         * m4/getstr.m4: Remove.
50710         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
50711
50712 2003-01-12  Paul Eggert  <eggert@twinsun.com>
50713
50714         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
50715         to avoid collisions with libcurses and libreadline.
50716
50717         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
50718         * lib/getstr.h, getstr.c: Remove.
50719         * lib/getline.c: Include "getline.h", to check interface.
50720         Move body of old getstr.c here: this defines MIN_CHUNK and
50721         declares getdelim2, which is renamed from getstr.
50722         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
50723
50724         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
50725         All uses changed.
50726         * lib/linebuffer.h: Likewise.
50727         (readline): Remove backward-compatibility macro.
50728
50729 2003-01-12  Paul Eggert  <eggert@twinsun.com>
50730
50731         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
50732         to avoid collisions with libcurses and libreadline.
50733         * getstr: Remove.
50734         * MODULES.html.sh: Remove getstr.
50735         * modules/getline: Depend on unlocked-io, not getstr.
50736
50737 2003-01-12  Jim Meyering  <jim@meyering.net>
50738
50739         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
50740
50741 2003-01-10  Bruno Haible  <bruno@clisp.org>
50742
50743         * modules/alloca: Change Makefile.am requirements. Simplify Include
50744         requirements. Add lib/alloca_.h to file list.
50745
50746 2003-01-10  Bruno Haible  <bruno@clisp.org>
50747
50748         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
50749
50750 2003-01-10  Bruno Haible  <bruno@clisp.org>
50751
50752         * lib/alloca_.h: New file.
50753         * lib/getdate.y: Unconditionally include alloca.h.
50754         * lib/makepath.c: Likewise.
50755         * lib/setenv.c: Likewise.
50756         * lib/userspec.c: Likewise.
50757
50758 2003-01-09  Karl Berry  <karl@gnu.org>
50759
50760         * MODULES.html.sh: include `dirname $0` in PATH, to find
50761         gnulib-tool.
50762
50763 2003-01-09  Bruno Haible  <bruno@clisp.org>
50764
50765         * modules/stdbool: Change configure.ac, Makefile.am requirements.
50766         Simplify Include requirements. Add lib/stdbool.h.in to file list.
50767
50768 2003-01-09  Bruno Haible  <bruno@clisp.org>
50769
50770         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
50771
50772 2003-01-09  Bruno Haible  <bruno@clisp.org>
50773
50774         * lib/stdbool.h.in: New file.
50775
50776 2003-01-09  Bruno Haible  <bruno@clisp.org>
50777
50778         * gnulib-tool (func_all_modules): Ignore files ending in ~.
50779         * MODULES.html.sh: Likewise.
50780
50781 2003-01-08  Jim Meyering  <jim@meyering.net>
50782
50783         * lib/full-write.c: Undefine and define-away `const' after inclusion
50784         of errno.h, not before.  Suggestion from Bruno Haible.
50785
50786 2003-01-08  Bruno Haible  <bruno@clisp.org>
50787
50788         * modules/full-read: Depend on full-write.
50789
50790 2003-01-08  Bruno Haible  <bruno@clisp.org>
50791
50792         * lib/safe-read.c: Include specification header first, to ensure its
50793         selfcontainedness.
50794         * lib/full-write.c: Likewise.
50795
50796 2003-01-07  Jim Meyering  <jim@meyering.net>
50797
50798         * lib/full-write.c: Rework so that it may serve to define full_read,
50799         too.
50800         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
50801
50802 2003-01-07  Bruno Haible  <bruno@clisp.org>
50803
50804         * lib/strtoimax.c: Include <stdint.h> as an alternative to
50805         <inttypes.h>.
50806         * lib/xstrtol.h: Likewise.
50807         * lib/xstrtoimax.c: Likewise.
50808         * lib/xstrtoumax.c: Likewise.
50809         * lib/human.h: Likewise.
50810
50811         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
50812         on systems that have <inttypes.h> but not <stdint.h>.
50813
50814 2003-01-07  Bruno Haible  <bruno@clisp.org>
50815
50816         * MODULES.html.sh: Add copyright notice.
50817         (missed_files): Omit CVS directory entries.
50818         (func_module): Make it work with sed-3.02.
50819         * MODULES.txt: Remove file.
50820
50821 2003-01-06  Jim Meyering  <jim@meyering.net>
50822
50823         * lib/version-etc.c: Update year in translatable copyright string.
50824
50825 2003-01-03  Karl Berry  <karl@gnu.org>
50826
50827         * config/config.{guess,sub}: update from prep.
50828
50829 2003-01-02  Karl Berry  <karl@gnu.org>
50830
50831         * doc/COPYING.DOC: belatedly updated to 1.2.
50832
50833 2003-01-01  Karl Berry  <karl@gnu.org>
50834
50835         * gnulib-tool (func_verify_module): report module name $module in
50836         error message, not $1.
50837         * gnulib-tool (create-testdir): don't complain if destdir couldn't
50838         be created, only if it doesn't exist.
50839         * gnulib-tool (last_checkin_date): don't expand the $Date here.
50840
50841 2002-12-31  Paul Eggert  <eggert@twinsun.com>
50842
50843         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
50844
50845 2002-12-31  Paul Eggert  <eggert@twinsun.com>
50846
50847         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
50848         memcmp if strcoll doesn't work.
50849
50850 2002-12-31  Bruno Haible  <bruno@clisp.org>
50851
50852         * lib/utime.c (utime_null): No need to call ftruncate if the file was
50853         nonempty.
50854
50855 2002-12-31  Bruno Haible  <bruno@clisp.org>
50856
50857         * lib/memcoll.c (STRCOLL): New macro.
50858         (memcoll): Use it.
50859
50860 2002-12-31  Bruno Haible  <bruno@clisp.org>
50861
50862         * lib/localcharset.h: New file.
50863         * lib/localcharset.c: Include it.
50864         * lib/unicodeio.c: Likewise.
50865
50866 2002-12-31  Bruno Haible  <bruno@clisp.org>
50867
50868         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
50869         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
50870
50871 2002-12-31  Bruno Haible  <bruno@clisp.org>
50872
50873         * lib/getline.h: Include <stddef.h>, for size_t.
50874
50875         * lib/unicodeio.h: Include <stddef.h>, for size_t.
50876         * lib/unicodeio.c: Don't include <stddef.h>.
50877
50878 2002-12-31  Bruno Haible  <bruno@clisp.org>
50879
50880         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
50881         HAVE_TM_ZONE.
50882
50883 2002-12-24  Karl Berry  <karl@gnu.org>
50884
50885         * config/config.guess: update from prep.
50886
50887 2002-12-24  Bruno Haible  <bruno@clisp.org>
50888
50889         General infrasructure.
50890         * m4/README: Rewritten.
50891         * m4/onceonly.m4: New file.
50892         * m4/onceonly_2_57.m4: New file.
50893
50894         Module atexit.
50895         * m4/atexit.m4: New file.
50896
50897         Module strtod.
50898         * m4/strtod.m4: New file.
50899
50900         Module strtol.
50901         * m4/strtol.m4: New file.
50902
50903         Module strtoul.
50904         * m4/strtoul.m4: New file.
50905
50906         Module memchr.
50907         * m4/memchr.m4: New file.
50908
50909         Module memcmp.
50910         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
50911         (jm_FUNC_MEMCMP): Invoke it.
50912
50913         Module memcpy.
50914         * m4/memcpy.m4: New file.
50915
50916         Module memmove.
50917         * m4/memmove.m4: New file.
50918
50919         Module memset.
50920         * m4/memset.m4: New file.
50921
50922         Module strcspn.
50923         * m4/strcspn.m4: New file.
50924
50925         Module strpbrk.
50926         * m4/strpbrk.m4: New file.
50927
50928         Module strstr.
50929         * m4/strstr.m4: New file.
50930
50931         Module strerror.
50932         * m4/strerror.m4: New file.
50933
50934         Module mktime.
50935         * m4/mktime.m4: Renamed from jm-mktime.m4.
50936         (gl_PREREQ_MKTIME): New macro.
50937         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
50938
50939         Module malloc.
50940         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
50941         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
50942         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
50943
50944         Module realloc.
50945         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
50946         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
50947         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
50948
50949         Module strftime.
50950         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
50951         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
50952         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
50953         gl_TM_GMTOFF.
50954         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
50955
50956         Module xalloc.
50957         * m4/xalloc.m4: New file.
50958
50959         Module alloca.
50960         * m4/alloca.m4: New file.
50961
50962         Module putenv.
50963         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
50964         (jm_FUNC_PUTENV): Invoke it.
50965
50966         Module setenv.
50967         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
50968         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
50969         when invoked twice.
50970         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
50971         gt_FUNC_SETENV.
50972
50973         Module memrchr.
50974         * m4/memrchr.m4: New file.
50975
50976         Module stpcpy.
50977         * m4/stpcpy.m4: New file.
50978
50979         Module strcase.
50980         * m4/strcase.m4: New file.
50981
50982         Module strdup.
50983         * m4/strdup.m4: New file.
50984
50985         Module strnlen.
50986         * m4/strnlen.m4: New file.
50987
50988         Module strndup.
50989         * m4/strndup.m4: New file.
50990
50991         Module xstrtod.
50992         * m4/xstrtod.m4: New file.
50993
50994         Module xstrtol.
50995         * m4/xstrtol.m4: New file.
50996
50997         Module getdate.
50998         * m4/getdate.m4: New file.
50999
51000         Module unlocked-io.
51001         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
51002         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
51003         * m4/jm-glibc-io.m4n: Remove file.
51004
51005         Module long-options.
51006         * m4/long-options.m4: New file.
51007
51008         Module md5.
51009         * m4/md5.m4: New file.
51010
51011         Module sha.
51012         * m4/sha.m4: New file.
51013
51014         Module getstr.
51015         * m4/getstr.m4: New file.
51016
51017         Module getline.
51018         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
51019         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
51020         <sys/types.h>, for size_t. Use the function name gnu_getline, not
51021         simply getline. Infoke gl_PREREQ_GETLINE.
51022
51023         Module obstack.
51024         * m4/obstack.m4: New file.
51025
51026         Module hash.
51027         * m4/hash.m4: New file.
51028
51029         Module readtokens.
51030         * m4/readtokens.m4: New file.
51031
51032         Module strverscmp.
51033         * m4/strverscmp.m4: New file.
51034
51035         Module stdbool.
51036         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
51037         OSF/1.
51038
51039         Module strtoll.
51040         * m4/strtoll.m4: New file.
51041
51042         Module strtoull.
51043         * m4/strtoull.m4: New file.
51044
51045         Module strtoimax.
51046         * m4/strtoimax.m4: New file.
51047
51048         Module strtoumax.
51049         * m4/strtoumax.m4: New file.
51050
51051         Module xstrtoimax.
51052         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
51053         jm_AC_PREREQ_XSTRTOIMAX.
51054         Moved the strtol prerequisites to strtol.m4.
51055         Moved the strtoll prerequisites to strtoll.m4.
51056         Moved the strtoimax prerequisites to strtoimax.m4.
51057
51058         Module xstrtoumax.
51059         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
51060         jm_AC_PREREQ_XSTRTOUMAX.
51061         Moved the strtoul prerequisites to strtoul.m4.
51062         Moved the strtoull prerequisites to strtoull.m4.
51063         Moved the strtoumax prerequisites to strtoumax.m4.
51064
51065         Module chown.
51066         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
51067         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
51068
51069         Module dup2.
51070         * m4/dup2.m4: New file.
51071
51072         Module ftruncate.
51073         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
51074         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
51075
51076         Module getgroups.
51077         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
51078         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
51079
51080         Module gettimeofday.
51081         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
51082         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
51083         gl_PREREQ_GETTIMEOFDAY.
51084
51085         Module mkdir.
51086         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
51087         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
51088
51089         Module mkstemp.
51090         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
51091         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
51092         jm_AC_TYPE_UINTMAX_T.
51093         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
51094
51095         Module stat.
51096         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
51097         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
51098
51099         Module lstat.
51100         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
51101         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
51102
51103         Module timespec.
51104         * m4/timespec.m4 (gl_TIMESPEC): New macro.
51105         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
51106         * m4/st_mtim.m4: Indentation.
51107
51108         Module nanosleep.
51109         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
51110         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
51111         gl_PREREQ_NANOSLEEP.
51112
51113         Module regex.
51114         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
51115         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
51116         (gl_REGEX): New macro.
51117
51118         Module rename.
51119         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
51120         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
51121
51122         Module rmdir.
51123         * m4/rmdir.m4: New file.
51124
51125         Module utime.
51126         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
51127         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
51128         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
51129
51130         Module dirname.
51131         * m4/dirname.m4: New file.
51132
51133         Module getopt.
51134         * m4/getopt.m4: New file.
51135
51136         Module unistd-safer.
51137         * m4/unistd-safer.m4: New file.
51138
51139         Module fnmatch.
51140         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
51141         declaration.
51142         (gl_PREREQ_FNMATCH_EXTRA): New macro.
51143         (gl_FUNC_FNMATCH_POSIX): New macro.
51144         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
51145         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
51146         simply fnmatch.
51147
51148         Module exclude.
51149         * m4/exclude.m4: New file.
51150
51151         Module human.
51152         * m4/human.m4: New file.
51153
51154         Module acl.
51155         * m4/acl.m4: Nop.
51156
51157         Module backupfile.
51158         * m4/backupfile.m4: New file.
51159         * m4/d-ino.m4: Indentation.
51160
51161         Module fsusage.
51162         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
51163         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
51164         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
51165
51166         Module dirfd.
51167         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
51168         requirements.
51169
51170         Module euidaccess.
51171         * m4/euidaccess.m4: New file.
51172
51173         Module file-type.
51174         * m4/file-type.m4: New file.
51175
51176         Module fileblocks.
51177         * m4/fileblocks.m4: New file.
51178
51179         Module filemode.
51180         * m4/filemode.m4: New file.
51181
51182         Module isdir.
51183         * m4/isdir.m4: New file.
51184
51185         Module lchown.
51186         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
51187         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
51188
51189         Module makepath.
51190         * m4/makepath.m4: New file.
51191
51192         Module modechange.
51193         * m4/modechange.m4: New file.
51194
51195         Module mountlist.
51196         * m4/mountlist.m4: New file.
51197         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
51198         Indentation.
51199
51200         Module path-concat.
51201         * m4/path-concat.m4: New file.
51202
51203         Module pathmax.
51204         * m4/pathmax.m4: New file.
51205
51206         Module same.
51207         * m4/same.m4: New file.
51208
51209         Module save-cwd.
51210         * m4/save-cwd.m4: New file.
51211
51212         Module savedir.
51213         * m4/savedir.m4: New file.
51214
51215         Module xgetcwd.
51216         * m4/xgetcwd.m4: New file.
51217         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
51218
51219         Module xreadlink.
51220         * m4/xreadlink.m4: New file.
51221
51222         Module safe-read.
51223         * m4/safe-read.m4: New file.
51224
51225         Module safe-write.
51226         * m4/safe-write.m4: New file.
51227
51228         Module closeout.
51229         * m4/closeout.m4: New file.
51230
51231         Module stdio-safer.
51232         * m4/stdio-safer.m4: New file.
51233
51234         Module getpass.
51235         * m4/getpass.m4: New file.
51236
51237         Module getugroups.
51238         * m4/getugroups.m4: New file.
51239
51240         Module group-member.
51241         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
51242         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
51243
51244         Module idcache.
51245         * m4/idcache.m4: New file.
51246
51247         Module userspec.
51248         * m4/userspec.m4: New file.
51249
51250         Module gettime.
51251         * m4/clock_time.m4: New file.
51252         * m4/gettime.m4: New file.
51253
51254         Module settime.
51255         * m4/settime.m4: New file.
51256
51257         Module posixtm.
51258         * m4/posixtm.m4: New file.
51259
51260         Module gethostname.
51261         * m4/gethostname.m4: New file.
51262
51263         Module canon-host.
51264         * m4/canon-host.m4: New file.
51265
51266         Module gettext.
51267         * m4/codeset.m4: New file, from gettext-0.11.5.
51268         * m4/gettext.m4: New file, from gettext-0.11.5.
51269         * m4/glibc21.m4: New file, from gettext-0.11.5.
51270         * m4/iconv.m4: New file, from gettext-0.11.5.
51271         * m4/intdiv0.m4: New file, from gettext-0.11.5.
51272         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
51273         * m4/inttypes.m4: New file, from gettext-0.11.5.
51274         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
51275         * m4/isc-posix.m4: New file, from gettext-0.11.5.
51276         * m4/lcmessage.m4: New file, from gettext-0.11.5.
51277         * m4/lib-ld.m4: New file, from gettext-0.11.5.
51278         * m4/lib-link.m4: New file, from gettext-0.11.5.
51279         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
51280         * m4/progtest.m4: New file, from gettext-0.11.5.
51281         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
51282         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
51283         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
51284
51285         Module localcharset.
51286         * m4/localcharset.m4: New file.
51287
51288         Module hard-locale.
51289         * m4/hard-locale.m4: New file.
51290
51291         Module mbswidth.
51292         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
51293         onceonly macros.
51294         * m4/mbrtowc.m4: Add comment.
51295
51296         Module memcasecmp.
51297         * m4/memcasecmp.m4: New file.
51298
51299         Module memcoll.
51300         * m4/memcoll.m4: New file.
51301
51302         Module unicodeio.
51303         * m4/unicodeio.m4: New file.
51304
51305         Module rpmatch.
51306         * m4/rpmatch.m4: New file.
51307
51308         Module yesno.
51309         * m4/yesno.m4: New file.
51310
51311         Module exitfail.
51312         * m4/exitfail.m4: New file.
51313
51314         Module c-stack.
51315         * m4/c-stack.m4 (gl_C_STACK): New macro.
51316         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
51317
51318         Module error.
51319         * m4/error.m4 (gl_ERROR): New macro.
51320         (jm_PREREQ_ERROR): Use onceonly macros.
51321
51322         Module fatal.
51323         * m4/fatal.m4: New file.
51324
51325         Module getloadavg.
51326         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
51327         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
51328
51329         Module getpagesize.
51330         * m4/getpagesize.m4: New file.
51331
51332         Module getusershell.
51333         * m4/getusershell.m4: New file.
51334
51335         Module physmem.
51336         * m4/physmem.m4: New file.
51337
51338         Module posixver.
51339         * m4/posixver.m4: New file.
51340
51341         Module quotearg.
51342         * m4/quotearg.m4: New file.
51343
51344         Module quote.
51345         * m4/quote.m4: New file.
51346
51347         Module readutmp.
51348         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
51349
51350         Module sig2str.
51351         * m4/sig2str.m4: New file.
51352
51353         Other.
51354         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
51355         ulonglong.m4.
51356         * m4/intmax_t.m4: New file.
51357         * m4/d-type.m4: Indentation.
51358         * m4/jm-macros.m4: Update.
51359         * m4/prereq.m4 (jm_PREREQ): Update.
51360         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
51361         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
51362         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
51363         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
51364         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
51365         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
51366         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
51367         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
51368         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
51369         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
51370         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
51371         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
51372         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
51373         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
51374         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
51375         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
51376         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
51377         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
51378         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
51379
51380 2002-12-24  Bruno Haible  <bruno@clisp.org>
51381
51382         * MODULES.txt: Update according to m4/ changes.
51383
51384         Module gettext.
51385         * config.rpath: New file, from gettext-0.11.5.
51386
51387         * modules/*: New module descriptions.
51388         * gnulib-tool: New file.
51389         * MODULES.html.sh: New file.
51390
51391 2002-12-21  Karl Berry  <karl@gnu.org>
51392
51393         * doc/fdl.texi: update to version 1.2.
51394
51395 2002-12-19  Karl Berry  <karl@gnu.org>
51396
51397         * config/config.guess: update from prep.
51398
51399 2002-12-18  Bruno Haible  <bruno@clisp.org>
51400
51401         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
51402         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
51403
51404 2002-12-17  Bruno Haible  <bruno@clisp.org>
51405
51406         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
51407         stdlib.h, string.h.
51408
51409 2002-12-17  Bruno Haible  <bruno@clisp.org>
51410
51411         * lib/canon-host.c (strdup): Remove unused declaration.
51412
51413         * lib/fsusage.c: Include full_read.h.
51414         (get_fs_usage): Use full_read instead of safe_read.
51415
51416         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
51417
51418 2002-12-12  Karl Berry  <karl@gnu.org>
51419
51420         * config/config.guess: update from prep.
51421
51422 2002-12-11  Bruno Haible  <bruno@clisp.org>
51423
51424         * m4/setenv.m4: New file, from gettext-0.11.5.
51425
51426 2002-12-11  Bruno Haible  <bruno@clisp.org>
51427
51428         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
51429         not unsetenv().
51430         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
51431         modifications:
51432
51433         2002-12-11  Bruno Haible  <bruno@clisp.org>
51434
51435                 * setenv.c (alloca): Fall back to malloc.
51436                 (freea): New macro.
51437                 (setenv): Use freea() to free memory allocated with alloca().
51438
51439         2002-11-13  Bruno Haible  <bruno@clisp.org>
51440
51441                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
51442                 function declarations.
51443                 * unsetenv.c (unsetenv): Likewise.
51444
51445         2002-03-04  Bruno Haible  <bruno@clisp.org>
51446
51447                 Portability to AIX 4.3.3.
51448                 * unsetenv.c: New file, extracted from setenv.c.
51449                 * setenv.c: Move the unsetenv() function to unsetenv.c.
51450
51451         2001-12-20  Bruno Haible  <bruno@clisp.org>
51452
51453                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
51454                 use malloc instead. For SunOS 4.
51455
51456         2001-12-11  Bruno Haible  <bruno@clisp.org>
51457
51458                 * setenv.c: Declare alloca.
51459                 (compar_fn_t): New typedef.
51460                 (KNOWN_VALUE, STORE_VALUE): Use it.
51461
51462         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
51463         setenv.h.
51464
51465 2002-12-10  Paul Eggert  <eggert@twinsun.com>
51466
51467         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
51468         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
51469         Choose values that are less likely to collide with system fnmatch
51470         options.
51471         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
51472         defined (e.g., a pure POSIX system).
51473         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
51474         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
51475
51476 2002-12-06  Paul Eggert  <eggert@twinsun.com>
51477
51478         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
51479         a pain in practice to deal with generated m4 files.  This change
51480         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
51481
51482         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
51483         and jm-glibc-io.m4, as they are no longer a special case.
51484         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
51485         kludge and the auto-generation stuff.  Check only whether the
51486         functions are declared, not whether they exist, since older hosts
51487         that don't declare the functions can't use the optimization anyway.
51488
51489 2002-12-06  Jim Meyering  <jim@meyering.net>
51490
51491         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
51492
51493         Merge in changes from libc's misc/error.c, in preparation
51494         for the merge of gnulib's changes back into libc.
51495
51496         * lib/error.c (_): Define only if not already defined.
51497         Move definition to follow all #include directives.
51498         Include unlocked-io.h only if !_LIBC.
51499         [_LIBC]: Include <libio/libioP.h>.
51500         [USE_IN_LIBIO]: Include <libio/iolibio.h>
51501         (fflush): Tweak definition to use INTUSE.
51502         (putc): Define.
51503
51504 2002-12-05  Paul Eggert  <eggert@twinsun.com>
51505
51506         * lib/alloca.c [defined emacs]: Include "lisp.h".
51507         (xalloc_die) [defined emacs]: New macro.
51508         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
51509         [! defined emacs]: Include <xalloc.h>.
51510         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
51511         (pointer): Typedef to POINTER_TYPE *.
51512         (malloc): Remove decl; we now always use xmalloc.
51513         (alloca): Use old-style definition, since Emacs needs this.
51514         Check for arithmetic overflow when computing combined size.
51515
51516 2002-12-04  Paul Eggert  <eggert@twinsun.com>
51517
51518         Do not generate unlocked-io.h automatically, since it's easier to
51519         maintain it by hand.
51520
51521         * lib/unlocked-io.h: New file, from GNU diffutils,
51522         but with proper copyright notice and attribution.
51523         * lib/gen-uio: Remove.
51524         * lib/Makefile.am: Add copyright notice.
51525         (libfetish_a_SOURCES): Add unlocked-io.h.
51526         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
51527         (DISTCLEANFILES, io_functions): Remove macros.
51528         (EXTRA_DIST): Remove gen_uio.
51529         (unlocked-io.h): Remove rule.
51530
51531 2002-12-04  Jim Meyering  <jim@meyering.net>
51532
51533         Reflect the fact that stat.c and lstat.c are no longer generated.
51534         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
51535         (DISTCLEANFILES): Likewise.
51536         (EXTRA_DIST): Likewise.
51537         (all_local): Don't depend on stat.c or lstat.c.
51538         (stat.c, lstat.c): Remove rules.
51539         (EXTRA_DIST): Remove xstat.in.
51540
51541         * lib/xstat.in: Remove file.  Contents moved into stat.c.
51542         * lib/stat.c: New file.  Contents mostly from xstat.in.
51543         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
51544         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
51545
51546         * lib/safe-read.c: Rework so that it may serve to define safe_write,
51547         too.
51548         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
51549
51550 2002-12-03  Jim Meyering  <jim@meyering.net>
51551
51552         * lib/safe-read.c, safe-write.c: Change variable names and comments,
51553         but not semantics, to minimize the differences between these two files.
51554         (safe_read): Change comment to mention SAFE_READ_ERROR.
51555
51556         * lib/safe-read.c (IS_EINTR): Define.
51557         (safe_read): Use IS_EINTR in place of in-function cpp directives.
51558
51559 2002-12-02  Jim Meyering  <jim@meyering.net>
51560
51561         * lib/safe-read.c (EINTR): Define.
51562         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
51563         (INT_MAX): Provide fallback.
51564         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
51565
51566         * lib/safe-read.h (SAFE_READ_ERROR): Define.
51567
51568 2002-12-02  Bruno Haible  <bruno@clisp.org>
51569
51570         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
51571         Define, taken from safe-read.c.
51572         (INT_MAX): Provide fallback.
51573         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
51574         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
51575
51576         * lib/safe-read.c (EINTR): Remove definition.
51577         (safe_read): Don't use EINTR if it is absent.
51578
51579 2002-12-01  Jim Meyering  <jim@meyering.net>
51580
51581         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
51582         zero.
51583         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
51584
51585 2002-11-27  Paul Eggert  <eggert@twinsun.com>
51586
51587         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
51588         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
51589         with `if (! (value < limit)) abort ();', for readability.
51590
51591 2002-11-26  Karl Berry  <karl@gnu.org>
51592
51593         * lib/strdup.c: copy from libc again, with jim's ok.
51594         * lib/.cppi-disable: re-add strdup.c
51595
51596 2002-11-25  Karl Berry  <karl@gnu.org>
51597
51598         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
51599         instead of "strtol.c".
51600
51601 2002-11-25  Karl Berry  <karl@gnu.org>
51602
51603         * config/install-sh: update from automake for variable quoting, $0 in
51604         error msgs, etc.
51605
51606         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
51607         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
51608         entry.
51609
51610 2002-11-25  Jim Meyering  <jim@meyering.net>
51611
51612         * lib/mktime.c: Sync from libc, now that it has the latest fix.
51613
51614 2002-11-24  Karl Berry  <karl@gnu.org>
51615
51616         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
51617         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
51618
51619 2002-11-24  Jim Meyering  <jim@meyering.net>
51620
51621         Update from coreutils:
51622
51623         * lib/mktime.c: Merge in changes from libc.
51624
51625         Avoid a link-time failure on some Linux systems.
51626         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
51627         (otherwise).
51628         (__mon_yday): Declare with the STATIC attribute.
51629         (__mktime_internal): Likewise.
51630         Based on a report from Greg Schafer.
51631
51632 2002-11-23  Jim Meyering  <jim@meyering.net>
51633
51634         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
51635         Use `unsigned', not `int', as type of index.
51636
51637         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
51638
51639         * lib/fsusage.c: Remove unneeded parentheses around operands of
51640         `defined'.
51641
51642 2002-11-22  Paul Eggert  <eggert@twinsun.com>
51643
51644         * lib/quotearg.h: Allow multiple inclusion by surrounding with
51645         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
51646         so that we can be included first.
51647         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
51648         * lib/quotearg.c: Include quotearg.h immediately after config.h.
51649         No need to include stddef.h or sys/types.h any more.
51650         Surround local include files with "", not "<>".
51651         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
51652         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
51653         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
51654         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
51655         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
51656         (ISPRINT): Remove; no longer needed now that we assume C89.
51657
51658         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
51659         Preserve errno.
51660
51661         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
51662         quotearg_char): Use SIZE_MAX rather than
51663         (size_t) -1 when we are talking about "infinity".
51664
51665         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
51666
51667 2002-11-22  Paul Eggert  <eggert@twinsun.com>
51668
51669         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
51670         hint that one should use `if (! x) abort ();' rather than `assert
51671         (x);', and anyway it's one less thing to worry about configuring.
51672         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
51673         hash_rehash, hash_insert): Use abort rather than assert.
51674
51675 2002-11-22  Bruno Haible  <bruno@clisp.org>
51676
51677         * lib/safe-read.h: Assume C89. Add comments.
51678         (safe_read): Change return type to size_t.
51679         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
51680         byte counts > SSIZE_MAX correctly.
51681         * lib/safe-write.h: New file.
51682         * lib/safe-write.c: New file.
51683         * lib/full-read.h: New file.
51684         * lib/full-read.c: New file.
51685         * lib/full-write.h: Assume C89. Add comments.
51686         * lib/full-write.c: Include safe-write.h.
51687         (full_write): Rewritten to use safe_write.
51688         Suggested by Jim Meyering and Paul Eggert.
51689
51690 2002-11-21  Jim Meyering  <jim@meyering.net>
51691
51692         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
51693
51694         Merge in changes from the coreutils.
51695
51696         2002-09-25  Paul Eggert  <eggert@twinsun.com>
51697         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
51698         <stdint.h>.
51699         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
51700         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
51701         int.  Work more efficiently if X is the same width as uintmax_t.
51702         Do not compare X to -1, to avoid bogus compiler warning.
51703         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
51704         Don't assume that f_frsize and f_bsize are the same type.
51705
51706         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
51707         warning on FreeBSD.
51708
51709         * lib/makepath.c (make_path): Restore umask *before* creating the final
51710         component.
51711         (make_path): Minor reformatting.
51712
51713         * lib/xmalloc.c: Adjust to work with new autoconf macros,
51714         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
51715         HAVE_MALLOC/HAVE_REALLOC.
51716
51717         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
51718         dummy ones.  At least on GNU/Linux systems, `auto' means something
51719         else.
51720         From Michael Stone.
51721
51722 2002-11-21  Bruno Haible  <bruno@clisp.org>
51723
51724         Remove case insensitive option matching.
51725         * lib/argmatch.h (argcasematch): Remove declaration.
51726         (ARGCASEMATCH): Remove macro.
51727         (__xargmatch_internal): Remove case_sensitive argument.
51728         (XARGMATCH): Update.
51729         (XARGCASEMATCH): Remove macro.
51730         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
51731         case_sensitive argument.
51732         (argcasematch): Remove function.
51733         (__xargmatch_internal): Remove case_sensitive argument.
51734         (main): Use XARGMATCH instead of XARGCASEMATCH.
51735
51736         * lib/xmalloc.c: Change compile-time error message. Add comment about
51737         required autoconf version.
51738
51739 2002-11-20  Paul Eggert  <eggert@twinsun.com>
51740
51741         Merge argmatch cleanups from Bison.  Assume C89.
51742
51743         * lib/argmatch.c: Include config.h here, not in argmatch.h.
51744         Include stdlib.h, for EXIT_FAILURE.
51745         Always include <string.h>, since we assume C89.
51746         (EXIT_FAILURE): Remove pre-C89 bug workaround.
51747         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
51748         Include <stddef.h> instead, since it's all we need for size_t.
51749         (PARAMS): Remove.  All uses removed.
51750         (ARRAY_CARDINALITY): Do not bother to #undef.
51751         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
51752         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
51753         Remove unnecessary parentheses.
51754         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
51755         Insert necessary parentheses.
51756         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
51757         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
51758
51759 2002-11-19  Bruno Haible  <bruno@clisp.org>
51760
51761         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
51762         * lib/mbswidth.h: Include <stddef.h>, for size_t.
51763
51764         * lib/mbswidth.h (PARAMS): Remove macro.
51765         (mbswidth, mbsnwidth): Use ANSI C function declarations.
51766         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
51767
51768         * lib/gcd.h (PARAMS): Remove macro.
51769         (gcd): Use ANSI C function declarations.
51770         * lib/gcd.c (gcd): Likewise.
51771
51772 2002-11-15  Bruno Haible  <bruno@clisp.org>
51773
51774         * lib/strcspn.c: Include <stddef.h>.
51775         (strcspn): Use ANSI C function declaration. Change return type to
51776         size_t. Use NULL.
51777         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
51778         (strpbrk): Use NULL.
51779         * lib/strpbrk.h (PARAMS): Remove macro.
51780         (strpbrk): Use ANSI C function declaration.
51781         * lib/strstr.c: Don't include <sys/types.h>.
51782         * lib/strstr.h (PARAMS): Remove macro.
51783         (strstr): Use ANSI C function declarations.
51784
51785 2002-11-14  Karl Berry  <karl@gnu.org>
51786
51787         * config/mkinstalldirs: `do' on separate line, instead of
51788         `for var; do'.
51789
51790 2002-11-06  Bruno Haible  <bruno@clisp.org>
51791
51792         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
51793         * lib/gcd.c (gcd): Likewise.
51794
51795 2002-11-05  Bruno Haible  <bruno@clisp.org>
51796
51797         * lib/gcd.h: New file, from gettext-0.11.5.
51798         * lib/gcd.c: New file, from gettext-0.11.5.
51799
51800 2002-11-05  Bruno Haible  <bruno@clisp.org>
51801
51802         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
51803         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
51804         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
51805         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
51806
51807         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
51808         <libintl.h>.
51809         * lib/makepath.c: Include gettext.h instead of <locale.h> and
51810         <libintl.h>.
51811
51812         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
51813         * lib/human.c: Include gettext.h instead of <libintl.h>.
51814         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
51815         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
51816         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
51817         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
51818         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
51819         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
51820         (textdomain): Remove definition.
51821         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
51822
51823         * lib/long-options.c: Remove include of <libintl.h> and definition of
51824         _.
51825         * lib/same.c: Remove include of <libintl.h> and definition of _.
51826
51827 2002-11-04  Owen Taylor  <otaylor@redhat.com>
51828
51829         * lib/config.charset: A few additions for Solaris.
51830
51831 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
51832
51833         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
51834         * lib/localcharset.c (locale_charset): Declare as extern "C".
51835
51836 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
51837
51838         * lib/config.charset: msdos in uk_UA uses CP1125.
51839
51840 2002-11-04  Bruno Haible  <bruno@clisp.org>
51841
51842         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
51843         * lib/strcase.h: New file, from GNU gettext-0.11.5.
51844         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
51845         * lib/strstr.h: New file, from GNU gettext-0.11.5.
51846         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
51847
51848 2002-11-04  Bruno Haible  <bruno@clisp.org>
51849
51850         * lib/localcharset.c (locale_charset): Don't return an empty string.
51851
51852 2002-11-04  Bruno Haible  <bruno@clisp.org>
51853
51854         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
51855         aliases.
51856
51857 2002-11-04  Bruno Haible  <bruno@clisp.org>
51858
51859         * lib/config.charset: Update for newest glibc. Add canonical names
51860         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
51861
51862 2002-11-04  Bruno Haible  <bruno@clisp.org>
51863
51864         * lib/config.charset: Add support for NetBSD.
51865
51866 2002-11-04  Bruno Haible  <bruno@clisp.org>
51867
51868         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
51869
51870 2002-11-01  Bruno Haible  <bruno@clisp.org>
51871
51872         * configure.in: Add AC_CONFIG_AUX_DIR call.
51873         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
51874         test/Makefile.
51875         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
51876
51877 2002-09-28  Karl Berry  <karl@gnu.org>
51878
51879         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
51880         installed automake until the next release, since changes have been
51881         made.
51882
51883 2002-09-25  Karl Berry  <karl@gnu.org>
51884
51885         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
51886         * lib/getopt*: copy from libc/posix.
51887         * lib/gettext.h: copy from gettext.
51888         * lib/.cppi-disable: add strdup.c, gettext.h.
51889
51890 2002-09-25  Karl Berry  <karl@gnu.org>
51891
51892         * config/srclist.txt: enable gettext.h check.
51893         * config/config.{guess,sub}: update from prep.
51894         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
51895                 from automake 1.6.3.
51896         See srclist*.
51897
51898 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
51899
51900         * regex.c (PATFETCH): Remove the translating fetch.
51901         (PATFETCH_RAW): Rename to PATFETCH.
51902         (set_image_of_range): New fun.
51903         (SET_RANGE_TABLE_WORK_AREA): Use it.
51904         (regex_compile): Don't translate the pattern chars so eagerly.
51905         Only do it when inserting an `exactn' bytecode or when handling
51906         a char-range.
51907         (mutually_exclusive_p): Avoid empty statement.
51908
51909 2002-07-06  Jim Meyering  <meyering@lucent.com>
51910
51911         * m4/README: Don't mention Makefile.am.in.
51912         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
51913
51914 2002-07-01  Jim Meyering  <meyering@lucent.com>
51915
51916         * lib/c-stack.c: Include sys/time.h.
51917         From Volker Borchert.
51918
51919 2002-06-26  Paul Eggert  <eggert@twinsun.com>
51920
51921         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
51922
51923 2002-06-26  Paul Eggert  <eggert@twinsun.com>
51924
51925         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
51926         New macro.  Use it uniformly instead of
51927         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
51928         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
51929         reported by Vin Shelton.
51930
51931 2002-06-22  Paul Eggert  <eggert@twinsun.com>
51932
51933         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
51934         Do not assume SA_SIGINFO behavior.
51935         Bug reported by Jim Meyering on NetBSD 1.5.2.
51936
51937 2002-06-22  Jim Meyering  <meyering@lucent.com>
51938
51939         * m4/c-stack.m4: New file, from diffutils-2.8.2.
51940         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
51941
51942         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
51943         now that configure.ac uses AC_GNU_SOURCE.
51944         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
51945         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
51946
51947         Update to latest tools.  Suggestions from Paul Eggert.
51948         * m4/stdbool.m4: New file, from diffutils-2.8.2.
51949         * m4/gnu-source.m4: Update from diffutils-2.8.2.
51950         * m4/fnmatch.m4: Likewise.
51951         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
51952         to AC_HEADER_STDBOOL
51953
51954 2002-06-22  Jim Meyering  <meyering@lucent.com>
51955
51956         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
51957         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
51958
51959 2002-06-22  Jim Meyering  <meyering@lucent.com>
51960
51961         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
51962
51963         * lib/exitfail.c, exitfail.h: Likewise.
51964         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
51965
51966         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
51967         of fnmatch.h.
51968         (EXTRA_DIST): Add fnmatch_loop.c.
51969         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
51970
51971         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
51972         * lib/fnmatch.c: Update from diffutils-2.8.2.
51973         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
51974         * lib/fnmatch.h: Remove file.
51975
51976 2002-06-21  Jim Meyering  <meyering@lucent.com>
51977
51978         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
51979         * m4/mbrtowc.m4: Likewise.
51980
51981         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
51982         * m4/mbswidth.m4: Reflect name change:
51983         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
51984         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
51985
51986         * m4/lib-link.m4: Update from gettext-0.11.2.
51987         * m4/gettext.m4: Likewise.
51988
51989         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
51990         From Alfred M. Szmidt.
51991
51992 2002-06-18  Paul Eggert  <eggert@twinsun.com>
51993
51994         * lib/file-type.h: Report an error if neither S_ISREG nor
51995         S_IFREG is defined, instead of using a test specific to glibc
51996         2.2.  This should be safe, since POSIX requires S_ISREG and
51997         Unix Version 7 had S_IFREG.  We don't need to check for
51998         <sys/types.h> since we don't use any symbols that it defines.
51999
52000 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
52001
52002         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
52003         $@-t, so that each temporary file name is unique and valid in the first
52004         8 characters, for operation under DOS.
52005
52006 2002-06-15  Paul Eggert  <eggert@twinsun.com>
52007
52008         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
52009
52010 2002-06-15  Jim Meyering  <meyering@lucent.com>
52011
52012         Work even with DJGPP 2.03, which lacks support for symlinks.
52013         From Richard Dawe.
52014         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
52015         is defined.
52016         * lib/lchown.c (S_ISLNK): Likewise.
52017
52018 2002-06-15  Jim Meyering  <meyering@lucent.com>
52019
52020         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
52021         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
52022         have been included before this file.
52023
52024 2002-06-14  Jim Meyering  <meyering@lucent.com>
52025
52026         * lib/file-type.h: Use the version from diffutils-2.8.2.
52027         * lib/file-type.c: Likewise.
52028
52029 2002-06-07  Jim Meyering  <meyering@lucent.com>
52030
52031         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
52032         They're needed at least for NetBSD 1.5.2.
52033         ($statxfs_includes): Include those same headers.
52034         ($statxfs_includes): Include sys/vfs.h if available.
52035         ($statxfs_includes): Likewise for sys/statvfs.h.
52036         Check for the following members in both structs statfs and statvfs:
52037         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
52038
52039 2002-06-01  Jim Meyering  <meyering@lucent.com>
52040
52041         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
52042         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
52043
52044 2002-05-28  Jim Meyering  <meyering@lucent.com>
52045
52046         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
52047         Reported by Volker Borchert.
52048
52049 2002-05-27  Jim Meyering  <meyering@lucent.com>
52050
52051         Fix a problem seen only on nonconforming systems whereby ls.c's
52052         use of localtime, and then of gettimeofday would cause trouble:
52053         the localtime call used to initialize rpl_gettimeofday's save
52054         mechanism would clobber ls's current local time information so
52055         that in any long listing the first file would always be listed
52056         with date 1970-01-01.  Analysis by Volker Borchert.
52057
52058         * lib/gettimeofday.c (localtime): Undefine.
52059         (rpl_localtime): New function.
52060
52061 2002-05-27  Jim Meyering  <meyering@lucent.com>
52062
52063         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
52064         localtime.
52065
52066         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
52067         use the replacement function; it wouldn't resolve at link time.
52068         Reported by Volker Borchert.
52069
52070 2002-05-22  Jim Meyering  <meyering@lucent.com>
52071
52072         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
52073         file-type.h.
52074         * lib/file-type.h: New file.
52075         * lib/file-type.c (file_type): New file/function.  Extracted from
52076         diffutils.
52077
52078 2002-04-30  Jim Meyering  <meyering@lucent.com>
52079
52080         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
52081
52082 2002-04-29  Paul Eggert  <eggert@twinsun.com>
52083
52084         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
52085
52086 2002-04-29  Paul Eggert  <eggert@twinsun.com>
52087
52088         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
52089         Do not check for alloca.h (no longer used) or stdbool.h (was never
52090         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
52091
52092 2002-04-29  Paul Eggert  <eggert@twinsun.com>
52093
52094         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
52095
52096 2002-04-29  Jim Meyering  <meyering@lucent.com>
52097
52098         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
52099         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
52100         Use AC_FUNC_STRNLEN here instead.
52101
52102         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
52103         With autoconf-2.53a, it's part of AC_PROG_CC.
52104
52105 2002-04-28  Paul Eggert  <eggert@twinsun.com>
52106
52107         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
52108         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
52109
52110 2002-04-28  Paul Eggert  <eggert@twinsun.com>
52111
52112         * lib/sig2str.h, lib/sig2str.c: New files.
52113         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
52114
52115 2002-04-28  Paul Eggert  <eggert@twinsun.com>
52116
52117         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
52118         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
52119         of 127, since 64 is the largest conceivable number for ancient
52120         nonstandard hosts.
52121         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
52122
52123 2002-04-28  Jim Meyering  <meyering@lucent.com>
52124
52125         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
52126
52127 2002-04-24  Jim Meyering  <meyering@lucent.com>
52128
52129         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
52130         (jm_PREREQ): Use it.
52131
52132         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
52133         mach/mach.h fcntl.h.
52134         Check for this function: setlocale.
52135
52136 2002-04-24  Jim Meyering  <meyering@lucent.com>
52137
52138         * lib/gettext.h: New file, from Gettext.
52139         * lib/Makefile.am (INCLUDES): Remove -I../intl.
52140         (libfetish_a_SOURCES): Add gettext.h.
52141
52142 2002-04-16  Jim Meyering  <meyering@lucent.com>
52143
52144         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
52145         ut_pid, ut_id, ut_exit.
52146
52147 2002-04-16  Jim Meyering  <meyering@lucent.com>
52148
52149         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
52150         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
52151         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
52152
52153 2002-04-12  Jim Meyering  <meyering@lucent.com>
52154
52155         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
52156         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
52157         existence of the getmntinfo function.  Needed for Darwin 5.3.
52158
52159         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
52160         This is necessary at least on Darwin 5.3.
52161
52162         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
52163         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
52164         strnlen.o in the library, and that makes some versions of ranlib
52165         object.
52166
52167 2002-04-12  Jim Meyering  <meyering@lucent.com>
52168
52169         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
52170
52171 2002-04-09  Jim Meyering  <meyering@lucent.com>
52172
52173         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
52174         to be more precise.  Rather than saying we're checking whether the
52175         function `works', say what we're testing.
52176         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
52177         Reported by Bruno Haible.
52178
52179 2002-03-10  Jim Meyering  <meyering@lucent.com>
52180
52181         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
52182         Suggestion from Santiago Vila.
52183
52184 2002-03-08  Jim Meyering  <meyering@lucent.com>
52185
52186         * lib/rename.c: Mention that this wrapper is needed also on
52187         mips-dec-ultrix4.4 systems.
52188
52189 2002-03-02  Jim Meyering  <meyering@lucent.com>
52190
52191         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
52192         not HAVE_CLOCK_SETTIME.
52193
52194 2002-02-27  Paul Eggert  <eggert@twinsun.com>
52195
52196         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
52197         Check for clock_settime.
52198
52199 2002-02-27  Paul Eggert  <eggert@twinsun.com>
52200
52201         * lib/nanosleep.h: Rename to....
52202         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
52203
52204         * lib/gettime.c: New file.
52205         * lib/settime.c: New file.
52206         * lib/stime.c: Remove.
52207
52208         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
52209         timespec.h.  Remove nanosleep.h.
52210
52211 2002-02-25  Paul Eggert  <eggert@twinsun.com>
52212
52213         * m4/acl.m4: New file.
52214         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
52215         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
52216
52217 2002-02-25  Paul Eggert  <eggert@twinsun.com>
52218
52219         * lib/acl.c, lib/acl.h: New files.
52220         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
52221
52222 2002-02-24  Jim Meyering  <meyering@lucent.com>
52223
52224         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
52225         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
52226         cause trouble.  Reported by Nelson Beebe.
52227
52228 2002-02-23  Paul Eggert  <eggert@twinsun.com>
52229
52230         * lib/path-concat.c (xpath_concat): Reorder code to pacify
52231         compilers that don't know that xalloc_die never returns.
52232
52233 2002-02-20  Jim Meyering  <meyering@lucent.com>
52234
52235         * lib/getdate.c: Regenerate using bison-1.33.
52236
52237 2002-02-17  Jim Meyering  <meyering@lucent.com>
52238
52239         * config/config.guess (main): Don't use `head -1'; it's no longer
52240         portable. Use `sed 1q' instead.
52241
52242 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
52243
52244         * m4/codeset.m4: Upgrade to gettext-0.11.
52245         * m4/gettext.m4: Upgrade to gettext-0.11.
52246         * m4/glibc21.m4: Upgrade to gettext-0.11.
52247         * m4/iconv.m4: Upgrade to gettext-0.11.
52248         * m4/isc-posix.m4: Upgrade to gettext-0.11.
52249         * m4/lcmessage.m4: Upgrade to gettext-0.11.
52250         * m4/lib-ld.m4: New file, from gettext-0.11.
52251         * m4/lib-link.m4: New file, from gettext-0.11.
52252         * m4/lib-prefix.m4: New file, from gettext-0.11.
52253         * m4/progtest.m4: Upgrade to gettext-0.11.
52254
52255 2002-02-15  Paul Eggert  <eggert@twinsun.com>
52256
52257         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
52258         (jm_PREREQ): Use it.
52259
52260 2002-02-15  Paul Eggert  <eggert@twinsun.com>
52261
52262         * lib/posixver.c, lib/posixver.h: New files.
52263         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
52264
52265 2002-02-02  Paul Eggert  <eggert@twinsun.com>
52266             Bruno Haible  <bruno@clisp.org>
52267
52268         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
52269         (fwrite_success_callback): New declaration.
52270         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
52271         print_unicode_char. Call failure callback instead of error.
52272         (fwrite_success_callback): New function.
52273         (exit_failure_callback): New function.
52274         (fallback_failure_callback): New function.
52275         (print_unicode_char): Call unicode_to_mb.
52276
52277 2002-01-26  Jim Meyering  <meyering@lucent.com>
52278
52279         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
52280         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
52281
52282 2002-01-26  Jim Meyering  <meyering@lucent.com>
52283
52284         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
52285
52286 2002-01-22  Paul Eggert  <eggert@twinsun.com>
52287
52288         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
52289
52290 2002-01-22  Jim Meyering  <meyering@lucent.com>
52291
52292         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
52293         Otherwise, some versions of automake would omit the rule that makes
52294         Makefile from Makefile.in.
52295
52296 2002-01-21  Paul Eggert  <eggert@twinsun.com>
52297
52298         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
52299         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
52300         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
52301         (memcoll): Set errno to zero if there is no error.
52302
52303         * lib/quotearg.c (quotearg_buffer_restyled):
52304         Fix bug with quoting buffers containing NUL when backslashing escapes.
52305         This bug was exposed by the other changes in this patch.
52306         (quotearg_n_options): New arg ARGSIZE.
52307         All callers changed.
52308         (quoting_options_from_style): New function.
52309         (quotearg_n_style): Use it.
52310         (quotearg_n_style_mem): New function.
52311
52312         * lib/quotearg.h (quotearg_n_style_mem): New function.
52313
52314 2002-01-19  Jim Meyering  <meyering@lucent.com>
52315
52316         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
52317         Remove useless quotes: DF_PROG="df".
52318         * m4/strnlen.m4: New file.
52319
52320 2002-01-16  Paul Eggert  <eggert@twinsun.com>
52321
52322         * lib/backupfile.c (ISDIGIT): Comment fix.
52323         * lib/getdate.y (ISDIGIT): Likewise.
52324         * lib/posixtm.c (ISDIGIT, year): Likewise.
52325         * lib/strverscmp.c (ISDIGIT): Likewise.
52326         * lib/userspec.c (ISDIGIT): Likewise.
52327
52328 2002-01-16  Jim Meyering  <meyering@lucent.com>
52329
52330         * lib/getdate.y: Add three semicolons, each just before a closing
52331         brace. Bison (as of version 1.31) no longer papers over that mistake.
52332
52333 2002-01-05  Jim Meyering  <meyering@lucent.com>
52334
52335         * lib/version-etc.c (version_etc_copyright): Update copyright year.
52336
52337 2001-12-19  Paul Eggert  <eggert@twinsun.com>
52338
52339         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
52340         not silently exit merely because the output buffer happens to
52341         have nothing pending.
52342
52343 2001-12-18  Paul Eggert  <eggert@twinsun.com>
52344
52345         See the big note in ../ChangeLog.
52346         * lib/human.c (suffixes): Prefer K to k for 1024.
52347         (generate_suffix_backwards): New function.
52348         (human_readable_inexact): Use it.
52349         * lib/xstrtol.c (__xstrtol): If there is no number but there
52350         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
52351         Accept 'K' as well as 'k'.
52352
52353 2001-12-15  Jim Meyering  <meyering@lucent.com>
52354
52355         * lib/regex.h (__restrict_arr): Update from libc.
52356
52357         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
52358         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
52359         (STREQ): Define.
52360
52361 2001-12-14  Jim Meyering  <meyering@lucent.com>
52362
52363         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
52364         Suggestion from Bruno Haible.
52365
52366 2001-12-10  Jim Meyering  <meyering@lucent.com>
52367
52368         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
52369         xrealloc, Instead, include "xalloc.h".
52370         (initbuffer): Don't cast xmalloc return value to char*.
52371         (readline): Reword comment.
52372         Don't cast xrealloc return value to char*
52373         Return NULL, not 0.
52374
52375 2001-12-09  Jim Meyering  <meyering@lucent.com>
52376
52377         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
52378         about `signed and unsigned type in conditional expression'.
52379         * lib/posixtm.c (posix_time_parse): Likewise.
52380
52381         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
52382
52383         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
52384         to avoid a pedantic warning.
52385
52386         * lib/getstr.c: Don't include assert.h.
52387         (getstr): Remove warning-evoking assertions.
52388         Return -1 if offset parameter is out of bounds.
52389         Change the type of a local from int to size_t.
52390
52391         * lib/strftime.c (my_strftime_localtime_r): Include this function
52392         definition in the `#if ! HAVE_TM_GMTOFF' block.
52393
52394         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
52395         Include xalloc.h instead.
52396
52397 2001-12-02  Jim Meyering  <meyering@lucent.com>
52398
52399         * lib/tempname.c: Don't declare getenv, thus reverting the change of
52400         2001-11-18.  It's no longer necessary, now that stdlib.h is always
52401         included.
52402
52403         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
52404         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
52405
52406 2001-11-30  Akim Demaille  <akim@epita.fr>
52407
52408         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
52409         before being defined.
52410
52411 2001-11-27  Paul Eggert  <eggert@twinsun.com>
52412
52413         * lib/quotearg.h (quotearg_n, quotearg_n_style):
52414         First arg is int, not unsigned.
52415         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
52416         (SIZE_MAX, UINT_MAX): New macros.
52417         (quotearg_n_options): Abort if N is negative.
52418         Avoid overflow check on hosts where size_t is 64 bits and int
52419         is 32 bits, as overflow is impossible there.
52420         Fix off-by-one typo that caused unnecessary reallocation.
52421
52422 2001-11-27  Jim Meyering  <meyering@lucent.com>
52423
52424         * lib/tempname.c: Merge with version from libc.
52425         * lib/regex.c: Likewise.
52426
52427         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
52428         systems for which STDC_HEADERS is 0, it was not included, resulting in
52429         a warning about an integer-to-pointer conversion problem with getenv.
52430         Reported by Volker Borchert.
52431
52432 2001-11-26  Jim Meyering  <meyering@lucent.com>
52433
52434         * lib/gtod.h: Remove file.
52435         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
52436         * lib/gettimeofday.c: Don't include gtod.h.
52437         (GTOD_init): Remove function.
52438         (rpl_gettimeofday): Do its job here instead, rather than aborting.
52439         Suggestion from Volker Borchert.
52440
52441 2001-11-23  Jim Meyering  <meyering@lucent.com>
52442
52443         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
52444         it.
52445         * lib/hash.c (struct hash_table): Define it here instead.
52446
52447 2001-11-22  Jim Meyering  <meyering@lucent.com>
52448
52449         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
52450
52451 2001-11-20  Jim Meyering  <meyering@lucent.com>
52452
52453         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
52454         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
52455
52456 2001-11-19  Jim Meyering  <meyering@lucent.com>
52457
52458         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
52459         directory.  Use "conftestXXXXXX" as the template.
52460         Suggestion from Paul Eggert.
52461
52462         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
52463         immediately, so the test doesn't mistakenly hit the max-open-files
52464         limit.
52465
52466 2001-11-18  Paul Eggert  <eggert@twinsun.com>
52467
52468         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
52469         (TEMPORARIES): New macro.
52470         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
52471         removes an artificial limitation (e.g. HP-UX 10.20, where
52472         TMP_MAX is 17576).
52473
52474 2001-11-18  Jim Meyering  <meyering@lucent.com>
52475
52476         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
52477
52478 2001-11-18  Jim Meyering  <meyering@lucent.com>
52479
52480         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
52481         on SunOS 4.
52482
52483         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
52484         files will be created before anything else.
52485
52486 2001-11-17  Paul Eggert  <eggert@twinsun.com>
52487
52488         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
52489         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
52490
52491 2001-11-17  Jim Meyering  <meyering@lucent.com>
52492
52493         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
52494         Prompted by a report from Bob Proulx.
52495
52496         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
52497         Instead, require UTILS_FUNC_MKSTEMP.
52498
52499 2001-11-17  Jim Meyering  <meyering@lucent.com>
52500
52501         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
52502         Now, that's done as part of AC_FUNC_STRTOD.
52503
52504 2001-11-17  Jim Meyering  <meyering@lucent.com>
52505
52506         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
52507         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
52508         rather than group writable.  Patch by Juan F. Codagnone.
52509
52510         * lib/readtokens.c: Remove explicit declarations of xmalloc and
52511         xrealloc, Instead, include "xalloc.h".
52512
52513         * lib/mountlist.c: Include unlocked-io.h after all system headers.
52514         Remove explicit declarations of xmalloc, xrealloc,
52515         and xstrdup.  Instead, include "xalloc.h".
52516
52517         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
52518         unlocked-io.h.
52519         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
52520         Likewise.
52521         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
52522
52523         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
52524         Reported by Padraig Brady.
52525
52526         * lib/mkstemp.c: #undef mkstemp.
52527         Include config.h.
52528         (rpl_mkstemp): Rename from mkstemp.
52529         Protoize.
52530
52531 2001-11-16  Jim Meyering  <meyering@lucent.com>
52532
52533         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
52534         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
52535         determine the amount of total physical memory, use pstat_getstatic.
52536         HPUX-11 doesn't define _SC_PHYS_PAGES.
52537         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
52538         If sysconf couldn't be used to determine the amount of available
52539         physical memory, use both pstat_getstatic and pstat_getdynamic.
52540         Based on a patch from Bob Proulx.
52541
52542 2001-11-10  Jim Meyering  <meyering@lucent.com>
52543
52544         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
52545         (jm_PREREQ): Use it.
52546
52547 2001-11-09  Jim Meyering  <meyering@lucent.com>
52548
52549         * m4/jm-macros.m4: Require autoconf-2.52f.
52550         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
52551         Use these AC_-prefixed names, not the AM_-prefixed ones.
52552
52553         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
52554
52555 2001-11-05  Jim Meyering  <meyering@lucent.com>
52556
52557         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
52558
52559 2001-11-04  Jim Meyering  <meyering@lucent.com>
52560
52561         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
52562         $DEFS.
52563
52564 2001-11-03  Jim Meyering  <meyering@lucent.com>
52565
52566         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
52567         of AC_DEFUN.
52568
52569         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
52570         know the name of the variable in the macro definition.
52571
52572 2001-11-03  Jim Meyering  <meyering@lucent.com>
52573
52574         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
52575         in argmatch_to_argument call.
52576
52577         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
52578         argument.
52579
52580         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
52581         e.g., a fault due to an attempt to free a NULL pointer.
52582
52583 2001-11-01  Jim Meyering  <meyering@lucent.com>
52584
52585         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
52586         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
52587
52588 2001-11-01  Jim Meyering  <meyering@lucent.com>
52589
52590         * lib/dirfd.c, lib/dirfd.h: New files.
52591         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
52592
52593         * lib/hash.c (hash_print) [TESTING]: Clean up.
52594
52595 2001-10-22  Paul Eggert  <eggert@twinsun.com>
52596
52597         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
52598         to avoid a warning if -Wall.
52599
52600 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
52601
52602         * README: New file
52603         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
52604         (per RMS's instructions, this is now the canonical source)
52605         * lgpl/, gpl/: New directories.
52606
52607 2001-10-21  Paul Eggert  <eggert@twinsun.com>
52608
52609         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
52610
52611 2001-10-21  Jim Meyering  <meyering@lucent.com>
52612
52613         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
52614         this code would end up calling gettext even in packages built
52615         with --disable-nls.
52616         * lib/getopt.c (_): Likewise.
52617         * lib/regex.c (_): Likewise.
52618
52619 2001-10-20  Paul Eggert  <eggert@twinsun.com>
52620
52621         * m4/error.m4 (jm_PREREQ_ERROR):
52622         Do not invoke AC_CHECK_FUNCS with strerror_r, as
52623         AC_FUNC_STRERROR_R does that.
52624         Check for strerror declaration.
52625
52626         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
52627         are supposed to have them these days.
52628         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
52629         Merge changes from latest Autoconf CVS.
52630         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
52631         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
52632         POSIX decided to standardize on the int flavor of strerror_r.
52633
52634 2001-10-20  Paul Eggert  <eggert@twinsun.com>
52635
52636         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
52637         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
52638         Use strerror_r that is only a macro, even if it is not a function.
52639         (strerror): Check for HAVE_DECL_STRERROR before declaring.
52640         (private_strerror): Use prototypes, not old-style function definition.
52641         (print_errno_message): New function.
52642         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
52643         char*-flavored one.
52644         (error_tail, error, error_at_line): Use it.
52645
52646 2001-10-11  Jim Meyering  <meyering@lucent.com>
52647
52648         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
52649         and quote_n (1, ... to avoid clobbering a buffer.
52650
52651 2001-10-05  Jim Meyering  <meyering@lucent.com>
52652
52653         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
52654         hash-pjw.h.
52655         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
52656         * lib/hash-pjw.h: New file.
52657
52658 2001-09-30  Jim Meyering  <meyering@lucent.com>
52659
52660         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
52661         `struct fsstat' has the `f_fstypename' member.
52662         Use that to define FS_TYPE, which is now used to make
52663         the getfsstat link test tighter.
52664
52665 2001-09-30  Jim Meyering  <meyering@lucent.com>
52666
52667         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
52668         Include <sys/ucred.h>, for Apple Darwin.
52669         Include sys/mount.h and sys/fs_types.h only if available.
52670         (FS_TYPE): Define.
52671         (read_filesystem_list): Use FS_TYPE.
52672
52673 2001-09-29  Paul Eggert  <eggert@twinsun.com>
52674
52675         * lib/exclude.c (excluded_filename): 0 -> false, since it's
52676         a boolean context.
52677
52678 2001-09-29  Jim Meyering  <meyering@lucent.com>
52679
52680         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
52681         [one-argument getmntent function]): Include stdio.h before mntent.h.
52682         SunOS 4.1.x needs it for the declaration of `FILE'.
52683         Patch by Volker Borchert.
52684
52685         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
52686         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
52687         sys/fs_types.h, and make the link-test for getfsstat guard #include
52688         directives with appropriate #if HAVE_*_H tests so that we can
52689         detect getfsstat on Apple Darwin1.3.7 systems.
52690         Reported by Nelson Beebe.
52691         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
52692
52693 2001-09-28  Paul Eggert  <eggert@twinsun.com>
52694
52695         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
52696         #defines strtoimax.  Also treat the other strto* functions
52697         like strtoimax.
52698
52699         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
52700         Check for strtoul and strtoumax,
52701         as those declarations are made even in the signed case.
52702         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
52703         Likewise, for strtol and strtoimax.
52704
52705 2001-09-28  Paul Eggert  <eggert@twinsun.com>
52706
52707         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
52708         #defines strtoimax.  Also treat the other strto* functions
52709         like strtoimax.
52710
52711         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
52712         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
52713         (strtoimax, strtoumax): Do not declare if already defined as a macro.
52714
52715 2001-09-26  Jim Meyering  <meyering@lucent.com>
52716
52717         Most macros in unlocked-io.h had the wrong number of arguments.
52718         * lib/gen-uio: New script.
52719         (USE_UNLOCKED_IO): Define to 1 if not already defined.
52720         * lib/unlocked-io.hin: Remove file.
52721         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
52722         rather than trying to embed it here.
52723         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
52724         Reported by Padraig Brady.
52725
52726 2001-09-25  Volker Borchert  <bt@teknon.de>
52727
52728         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
52729         `result'.
52730
52731 2001-09-24  Jim Meyering  <meyering@lucent.com>
52732
52733         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
52734
52735 2001-09-23  Jim Meyering  <meyering@lucent.com>
52736
52737         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
52738         instead of the mere test for existence of mntent.h.  The latter
52739         would get a false-positive on AIX 3.4 systems.
52740         In the outer getmntent if-block, don't die if neither of the getmntent
52741         tests succeeds.  Instead, just fall through and continue with the
52742         remaining tests.
52743
52744 2001-09-23  Jim Meyering  <meyering@lucent.com>
52745
52746         * lib/mountlist.c: Remove useless parentheses in #if directives.
52747         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
52748         the deprecated MOUNTED symbol is no longer defined in mntent.h.
52749
52750 2001-09-22  Jim Meyering  <meyering@lucent.com>
52751
52752         * m4/gettext.m4: New file.  From gettext.
52753         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
52754         * m4/progtest.m4: Likewise
52755         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
52756         * m4/glibc21.m4: Likewise.
52757
52758         * m4/libintl.m4: Remove.  No longer used.
52759
52760 2001-09-22  Jim Meyering  <meyering@lucent.com>
52761
52762         * lib/localcharset.c: Update from latest gettext.
52763         * lib/config.charset: Likewise.
52764
52765 2001-09-20  Jim Meyering  <meyering@lucent.com>
52766
52767         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
52768         strtoimax.
52769         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
52770         strtoumax.
52771
52772 2001-09-20  Jim Meyering  <meyering@lucent.com>
52773
52774         * lib/xstrtol.c (strtoimax): Guard declaration with
52775         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
52776         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
52777         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
52778         (strtoumax): Likewise, for completeness (it wasn't necessary).
52779
52780 2001-09-17  Paul Eggert  <eggert@twinsun.com>
52781
52782         * lib/strtoimax.c (HAVE_LONG_LONG):
52783         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
52784         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
52785         to work around bug in IBM C compiler.
52786
52787 2001-09-17  Jim Meyering  <meyering@lucent.com>
52788
52789         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
52790         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
52791         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
52792         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
52793         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
52794         whenever the right hand side need not be expanded by the shell.
52795
52796 2001-09-16  Paul Eggert  <eggert@twinsun.com>
52797
52798         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
52799         library.  It's not correct, as some older glibcs are buggy.
52800         fnmatch wasn't fixed until glibc 2.2.
52801
52802         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
52803         special shell magic here.
52804
52805 2001-09-16  Jim Meyering  <meyering@lucent.com>
52806
52807         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
52808         * m4/jm-macros.m4: Require it.
52809
52810 2001-09-16  Jim Meyering  <meyering@lucent.com>
52811
52812         * lib/mkdir.c: New file.
52813
52814 2001-09-15  Jim Meyering  <meyering@lucent.com>
52815
52816         * m4/jm-macros.m4: Check for help2man.
52817
52818 2001-09-11  Jim Meyering  <meyering@lucent.com>
52819
52820         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
52821         The body, by Paul Eggert, was moved here from configure.in.
52822         * m4/jm-macros.m4: Require UTILS_HOST_OS.
52823
52824 2001-09-04  Paul Eggert  <eggert@twinsun.com>
52825
52826         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
52827         (jm_PREREQ): Use it.
52828
52829 2001-09-04  Paul Eggert  <eggert@twinsun.com>
52830
52831         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
52832         Use ssize_t, not int, to store result of readlink.
52833         Check for ssize_t overflow as well as size_t overflow,
52834         as POSIX says the result of readlink is implementation-defined
52835         when ssize_t overflows.
52836         Remove unnecessary cast to char*.
52837         Use free+malloc instead of realloc, as the storage doesn't need
52838         to be preserved and it's clearer and can be more efficient that way.
52839         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
52840         * lib/xreadlink.h (xreadlink): Update prototype.
52841
52842 2001-09-04  Paul Eggert  <eggert@twinsun.com>
52843
52844         * lib/xgetcwd.c: Revert some of the previous change; intead,
52845         fix the HAVE_GETCWD_NULL code to behave more like the
52846         !HAVE_GETCWD_NULL code used to.
52847
52848         Include "xalloc.h".
52849         (xgetcwd): Do not return NULL when memory is exhausted; instead,
52850         invoke xalloc_die.
52851
52852 2001-09-03  Paul Eggert  <eggert@twinsun.com>
52853
52854         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
52855         sys/param.h, as pathmax.h includes them.
52856
52857 2001-09-03  Paul Eggert  <eggert@twinsun.com>
52858
52859         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
52860         (jm_PREREQ_XGETCWD): New macro.
52861
52862         * m4/getcwd.m4: New file.
52863
52864 2001-09-03  Paul Eggert  <eggert@twinsun.com>
52865
52866         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
52867         like the HAVE_GETCWD_NULL code.
52868         Include pathmax.h if not HAVE_GETCWD.
52869         Do not include xalloc.h.
52870         (INITIAL_BUFFER_SIZE): New symbol.
52871         Do not use xmalloc / xrealloc, since the caller is responsible for
52872         handling errors.  Preserve errno around `free' during failure.
52873         Do not overrun buffer when using getwd.
52874
52875 2001-09-03  Paul Eggert  <eggert@twinsun.com>
52876
52877         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
52878         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
52879         getcwd (NULL, 0).
52880
52881 2001-09-03  Paul Eggert  <eggert@twinsun.com>
52882
52883         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
52884         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
52885         spotted by Jim Meyering.
52886
52887 2001-09-03  Jim Meyering  <meyering@lucent.com>
52888
52889         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
52890         failure.
52891
52892 2001-09-02  Jim Meyering  <meyering@lucent.com>
52893
52894         * lib/error.c: Update from GNU libc.
52895
52896 2001-09-01  Jim Meyering  <meyering@lucent.com>
52897
52898         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
52899         Used by df.
52900
52901 2001-09-01  Jim Meyering  <meyering@lucent.com>
52902
52903         * lib/xreadlink.c: New file.
52904         * lib/xreadlink.h: New file.
52905         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
52906         xreadlink.h.
52907
52908         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
52909         doesn't conflict with sparc Solaris 7's definition in
52910         /usr/include/sys/int_types.h.
52911
52912         * lib/exclude.c: Use `""', not `<>' to #include non-system header
52913         files.
52914         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
52915         and strncasecmp as r-values.  Unixware didn't have declarations.
52916
52917 2001-08-31  Paul Eggert  <eggert@twinsun.com>
52918
52919         * lib/xstrtol.h: Add copyright notice.
52920         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
52921         LONGINT_INVALID_SUFFIX_CHAR.
52922
52923 2001-08-31  Paul Eggert  <eggert@twinsun.com>
52924
52925         * lib/xstrtol.c (strtoimax): New decl.
52926
52927 2001-08-31  Paul Eggert  <eggert@twinsun.com>
52928
52929         * lib/xgetcwd.c: Don't include pathmax.h.
52930         Include stdlib.h and unistd.h if available.
52931         Include xalloc.h.
52932         (xmalloc, xstrdup, free): Remove decls.
52933         (xgetcwd): Don't assume sizes fit in unsigned.
52934         Check for overflow when computing sizes.
52935         Simplify reallocation code.
52936
52937 2001-08-31  Paul Eggert  <eggert@twinsun.com>
52938
52939         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
52940         a directory's st_size can have an arbitrary value, so the old
52941         usage could waste an arbitrary amount of memory.  All uses
52942         changed.
52943         * lib/savedir.h: Update prototype.
52944
52945 2001-08-31  Paul Eggert  <eggert@twinsun.com>
52946
52947         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
52948
52949         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
52950         old strtoimax.c.
52951
52952         Also, make the following further changes to make this file's
52953         configuration more similar to that of strtol.c:
52954         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
52955         (strtoumax, uintmax_t, strtoull, strtol): Remove.
52956         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
52957         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
52958         changed to signed values.
52959
52960         And make the following changes as well:
52961         Fix copyright notice, as 1999 was missing.
52962         (verify): New macro.
52963         (strtoimax): Check sizes at compile-time, not run-time.
52964         Prefer strtol to strtoll if both work.
52965         (main): Remove; it was not that useful and was a pain to maintain.
52966
52967         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
52968
52969 2001-08-31  Jim Meyering  <meyering@lucent.com>
52970
52971         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
52972         Use an initial, malloc'd, buffer of length 128 rather than
52973         a statically allocated one of length 1024.
52974
52975 2001-08-30  Paul Eggert  <eggert@twinsun.com>
52976
52977         Simplify code, partly by assuming autoconf 2.52 semantics.
52978
52979         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
52980
52981         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
52982         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
52983         All uses removed.
52984         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
52985         Move AC_REQUIRE to next-to-top level, to avoid confusion.
52986         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
52987         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
52988         jm_AC_HEADER_INTTYPES_H.
52989         * m4/jm-macros.m4 (jm_MACROS): Likewise.
52990
52991         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
52992
52993         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
52994         Quote first arg of AC_DEFUN.
52995         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
52996         since they are needed to parse the include file even if we need
52997         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
52998         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
52999         but with opposite signedness.
53000
53001 2001-08-30  Paul Eggert  <eggert@twinsun.com>
53002
53003         Merge 'exclude' changes from tar 1.13.22.
53004         This fixes one or two unlikely storage allocation overflow bugs,
53005         but doesn't change user-visible behavior otherwise.
53006
53007 2001-08-30  Paul Eggert  <eggert@twinsun.com>
53008
53009         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
53010         (jm_PREREQ_EXCLUDE): New macro.
53011
53012 2001-08-30  Paul Eggert  <eggert@twinsun.com>
53013
53014         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
53015         tm to be declared.
53016
53017 2001-08-30  Paul Eggert  <eggert@twinsun.com>
53018
53019         * lib/hash.c: Remove '2001' from copyright notice.
53020
53021 2001-08-30  Paul Eggert  <eggert@twinsun.com>
53022
53023         * lib/full-write.h: New file.
53024         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
53025         * lib/full-write.c: Correct credits, as cccp.c no longer
53026         exists and anyway it was so heavily changed from the old cccp
53027         code as to be unrecognizable.  Include full-write.h.
53028         (full_write) Return size_t, with short writes meaning failure.
53029         All callers changed.  This fixes a bug with large buffers
53030         on 64-bit hosts.
53031         * lib/utime.c: Include full-write.h.
53032
53033 2001-08-30  Paul Eggert  <eggert@twinsun.com>
53034
53035         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
53036         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
53037         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
53038         Include if available.
53039         (<xalloc.h>): Include
53040         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
53041         (verify): New macro.  Use it to verify that EXCLUDE macros do not
53042         collide with FNM macros.
53043         (struct patopts): New struct.
53044         (struct exclude): Use it, as exclude patterns now come with options.
53045         (new_exclude): Support above changes.
53046         (new_exclude, add_exclude_file):
53047         Initial size must now be a power of two to simplify overflow checking.
53048         (free_exclude, fnmatch_no_wildcards): New function.
53049         (excluded_filename): No longer requires options arg, as the options
53050         are determined by add_exclude.  Now returns bool, not int.
53051         (excluded_filename, add_exclude):
53052         Add support for the fancy new exclusion options.
53053         (add_exclude, add_exclude_file): Now takes int options arg.
53054         Check for arithmetic overflow when computing sizes.
53055         (add_exclude_file): xrealloc might modify errno, so don't
53056         realloc until after errno might be used.
53057
53058         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
53059         New macros.
53060         (free_exclude): New decl.
53061         (add_exclude, add_exclude_file): Now takes int options arg.
53062         (excluded_filename): No longer requires options arg, as the options
53063         are determined by add_exclude.  Now returns bool, not int.
53064
53065 2001-08-30  Paul Eggert  <eggert@twinsun.com>
53066
53067         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
53068
53069 2001-08-27  Jim Meyering  <meyering@lucent.com>
53070
53071         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
53072
53073         * lib/version-etc.c (N_): Remove definition.
53074         Revert most of last change.
53075         Instead, simply don't mark the `Copyright...' string for translation.
53076         Based on advice from Paul Eggert.
53077
53078         * lib/strtoxmax.c: Tweak comment.
53079
53080 2001-08-26  Jim Meyering  <meyering@lucent.com>
53081
53082         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
53083
53084         * m4/xstrtoimax.m4: New file.
53085         * m4/xstrtoumax.m4: Add comments explaining why we
53086         AC_REPLACE_FUNCS(strtol).
53087
53088 2001-08-26  Jim Meyering  <meyering@lucent.com>
53089
53090         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
53091         of copyright with `%s' so translators don't get an untranslated
53092         message in 2002.
53093         (COPYRIGHT_YEAR): Define.
53094         (version_etc): Use fprintf rather than fputs.
53095         Suggestion from Ulrich Drepper.
53096
53097         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
53098
53099         * lib/strtoll.c: New file, from GNU libc.
53100         * lib/xstrtoimax.c: New file.
53101
53102         * lib/xstrtol.h: Add xstrtoimax.
53103         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
53104         * lib/strtoimax.c: New file.  Likewise, but first define
53105         STRTOUXMAX_SIGNED.
53106
53107         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
53108         ...
53109         * lib/strtoxmax.c: ... then renamed to this.
53110
53111 2001-08-18  Paul Eggert  <eggert@twinsun.com>
53112
53113         * m4/inttypes.m4: Add AC_PREREQ(2.13).
53114         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
53115         (jm_AC_TYPE_INTMAX_T): New macro.
53116         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
53117
53118         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
53119
53120         * m4/longlong.m4: Renamed from ulonglong.m4.
53121         * m4/inttypes.m4: Renamed from inttypes_h.m4.
53122         * m4/uintmax_t.m4: Removed.
53123
53124 2001-08-13  Paul Eggert  <eggert@twinsun.com>
53125
53126         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
53127         Port to Solaris 8, where 'sed' requires a space after the 'r'
53128         command, and where sh dislikes "$/".  Clean up the spacing a bit.
53129         Redirect output to $tmp just once.
53130
53131 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
53132
53133         * lib/addext.c (<errno.h>): Include.
53134         (errno): Declare if not defined.
53135         (addext): Work correctly when pathconf returns -1 and leaves
53136         errno alone because there is no limit.  Also, work even if
53137         pathconf returns a value greater than SIZE_MAX.
53138
53139 2001-08-12  Jim Meyering  <meyering@lucent.com>
53140
53141         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
53142         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
53143         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
53144         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
53145         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
53146         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
53147         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
53148         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
53149         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
53150         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
53151         utime.m4, utimes.m4, xstrtoumax.m4:
53152         Quote the first argument in each use of AC_DEFUN.
53153
53154 2001-08-12  Jim Meyering  <meyering@lucent.com>
53155
53156         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
53157         Simply `return getcwd (NULL, 0);'.
53158         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
53159         Use 1300 as initial value for length, not PATH_MAX.
53160
53161         * lib/pathmax.h: Clean up cpp syntax.
53162
53163 2001-08-12  Jim Meyering  <meyering@lucent.com>
53164
53165         * lib/gettimeofday.c: New file.
53166         * lib/gtod.h: New file.
53167         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
53168
53169 2001-08-05  Jim Meyering  <meyering@lucent.com>
53170
53171         * m4/jm-macros.m4: Require autoconf-2.52.
53172
53173 2001-08-04  Jim Meyering  <meyering@lucent.com>
53174
53175         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
53176         stmt, to get in sync with glibc.
53177
53178 2001-08-03  Paul Eggert  <eggert@twinsun.com>
53179
53180         The following changes are from gettext 0.10.39 as maintained by
53181         Bruno Haible.
53182
53183         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
53184         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
53185         with inverted sense.  All uses changed.
53186
53187         * lib/mbswidth.c: Don't include <limits.h>.
53188         Include <stdlib.h> and <string.h> unconditionally.
53189         (iswcntrl, mbsinit, ISCNTRL): New macros.
53190         (mbsnwidth): Use K&R style function declarations.
53191         Don't bother checking for MB_LEN_MAX == 1, since the compiler
53192         can optimize it when MB_CUR_MAX == 1.
53193         The width of control characters is zero, not 1.
53194
53195 2001-08-03  Paul Eggert  <eggert@twinsun.com>
53196
53197         The following changes are from gettext 0.10.39 as maintained by
53198         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
53199
53200         * m4/codeset.m4: Upgrade to serial AM1.
53201         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
53202         all uses changed.  Quote first arg of AC_DEFUN.
53203         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
53204
53205         * m4/iconv.m4: Upgrade to serial AM2.
53206         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
53207         Add --with-libconv-prefix.
53208         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
53209         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
53210         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
53211         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
53212         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
53213
53214         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
53215         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
53216         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
53217         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
53218         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
53219         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
53220         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
53221         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
53222         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
53223
53224         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
53225         string.h any more.
53226
53227         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
53228         not the default value.
53229
53230         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
53231         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
53232         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
53233         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
53234         Also check for iswcntrl, used for wcwidth fallback.
53235         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
53236         to Autoconf 2.13.
53237
53238 2001-08-03  Jim Meyering  <meyering@lucent.com>
53239
53240         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
53241         as it was in the original.  Reported by Paul Eggert.
53242
53243 2001-07-16  Jim Meyering  <meyering@lucent.com>
53244
53245         * m4/gettimeofday.m4: New file.
53246         Prompted by a report from Bernhard Baehr.
53247
53248 2001-07-15  Jim Meyering  <meyering@lucent.com>
53249
53250         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
53251         stuff. Now it's in ../Makefile.cfg.
53252
53253 2001-07-15  Jim Meyering  <meyering@lucent.com>
53254
53255         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
53256         (BUILT_SOURCES): Add unlocked-io.h.
53257         (io_functions): Define.
53258         (unlocked-io.h): New rule.
53259         (DISTCLEANFILES): Add unlocked-io.h.
53260         (all-local): Depend on unlocked-io.h, to ensure it is created.
53261
53262         * lib/unlocked-io.hin: New file
53263
53264         * lib/regex.c: Update from glibc.
53265
53266 2001-07-05  Jim Meyering  <meyering@lucent.com>
53267
53268         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
53269         recommendation.
53270         (libfetish_a_SOURCES): Put all .h files here instead.
53271         Remove a thus-exposed (better checks in automake) duplicate and
53272         two unnecessary .h files.
53273
53274 2001-07-04  Jim Meyering  <meyering@lucent.com>
53275
53276         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
53277         that generates jm-glibc-io.m4 so that it doesn't trigger any make
53278         distcheck failure.
53279
53280 2001-07-02  Jim Meyering  <meyering@lucent.com>
53281
53282         The following changes were prompted by suggestions from Bruno Haible.
53283
53284         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
53285         is now generated.
53286         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
53287         definition of EXTRA_DIST.
53288         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
53289         ensure that the generated file is created/updated whenever the list
53290         of $(unlocked_functions) is changed.
53291         (jm-glibc-io.m4): New rule.
53292         (unlocked-io.h): New rule -- currently unused.
53293
53294 2001-06-24  Jim Meyering  <meyering@lucent.com>
53295
53296         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
53297         unmatched right bracket, rather than kludging it with an extra,
53298         falsely-matching quote in a comment.  Patch by Akim Demaille.
53299
53300 2001-06-11  Jim Meyering  <meyering@lucent.com>
53301
53302         * lib/regex.c: Update from GNU libc.
53303
53304 2001-05-27  Jim Meyering  <meyering@lucent.com>
53305
53306         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
53307         Check for ut_type in struct utmp.
53308
53309 2001-05-27  Jim Meyering  <meyering@lucent.com>
53310
53311         * lib/readutmp.h (UT_TYPE): Define.
53312
53313 2001-05-24  Jim Meyering  <meyering@lucent.com>
53314
53315         * lib/argmatch.c: Include "quote.h".
53316         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
53317         quote function.  Reported by Göran Uddeborg.
53318
53319 2001-05-22  Jim Meyering  <meyering@lucent.com>
53320
53321         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
53322         now that we use the package-supplied version unconditionally.
53323         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
53324
53325 2001-05-21  Jim Meyering  <meyering@lucent.com>
53326
53327         * m4/regex.m4: Change a couple backticks to single quotes to avoid
53328         shell syntax errors.
53329
53330 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
53331
53332         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
53333
53334 2001-05-20  Paul Eggert  <eggert@twinsun.com>
53335
53336         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
53337         Don't bother to check library strftime, since
53338         we'll be using our own my_strftime function anyway.
53339         Define my_strftime instead of strftime.
53340
53341 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
53342
53343         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
53344         which is not yet declared.
53345
53346 2001-05-15  Jim Meyering  <meyering@lucent.com>
53347
53348         * m4/regex.m4: Use proper quoting so brackets appear in the test
53349         program.
53350         Reported by, and with help from, Bruno Haible.
53351
53352 2001-05-13  Jim Meyering  <meyering@lucent.com>
53353
53354         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
53355         undefined.
53356
53357 2001-05-11  Paul Eggert  <eggert@twinsun.com>
53358
53359         dirname code cleanup.  base_name now behaves more compatibly
53360         with POSIX basename when given file names that have trailing
53361         slashes, and similarly for dir_name.  Add new primitives
53362         base_len and dir_len.  Put the directory-name-related decls
53363         into dirname.h.
53364
53365         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
53366         * lib/backupfile.c (base_name): Likewise.
53367         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
53368         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
53369         * lib/makepath.c (strip_trailing_slashes): Likewise.
53370         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
53371         ISSLASH): Likewise.
53372         * lib/rename.c (strip_trailing_slashes): Likewise.
53373         * lib/same.c (base_name): Likewise.
53374         * lib/stripslash.c (ISSLASH): Likewise.
53375
53376         * lib/addext.c: Include <dirname.h> after size_t is defined.
53377         * lib/backupfile.c: Likewise.
53378
53379         * lib/addext.c (addext): Use base_len to trim redundant
53380         trailing slashes instead of doing it ourselves.
53381         But do not trim the last slash if it is not redundant.
53382
53383         * lib/backupfile.c (find_backup_file_name,
53384         max_backup_version): Use base_len instead of rolling it ourselves.
53385         Handle the case of "" and (on DOS) "C:" correctly.
53386
53387         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
53388         needed. Include <string.h>, <dirname.h>.
53389         (base_name): Allow file names ending in slashes, other than names
53390         that are all slashes.  In this case, return the basename followed
53391         by the slashes.  This is more general, and can be used in places
53392         where the original base_name purposely had an assertion failure.
53393         (base_len): New function.
53394
53395         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
53396         Do not include <assert.h>; no longer needed.
53397         Include xalloc.h.
53398         (memrchr): Remove decl.
53399         (dir_name_r): Remove.
53400         (dir_len): Renamed from dirlen.  All callers changed.
53401         Rewrite in terms of base_name, for simplicity and consistency.
53402         (dir_name): Never return NULL.  All callers changed.
53403         Do not include <stdlib.h> in test program; no longer needed.
53404         return 0; is fine for test program.
53405
53406         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
53407         New macros.
53408         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
53409
53410         * lib/path-concat.c (path_concat): Use base_len to compute
53411         base length, not strlen; this means we cannot rely on memcpy
53412         to null-terminate.
53413
53414         * lib/same.c (STREQ): Remove.
53415         (same_name): Handle the case where the basename ends in trailing '/'.
53416
53417         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
53418         a slash was stripped.  Do not strip the last slash after a
53419         file system prefix.
53420
53421 2001-05-11  Paul Eggert  <eggert@twinsun.com>
53422
53423         * lib/Makefile.am (libfetish_a_SOURCES):
53424         Add strftime.c, since we now compile it on all hosts.
53425
53426         * lib/strftime.c (my_strftime):
53427         Define to nstrftime if emacs, but only if my_strftime is not defined.
53428         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
53429         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
53430         Add one more extra argument: a nanoseconds value.
53431         All uses changed.
53432         (ns): New macro.
53433         (my_strftime function): Add %N format.
53434         (emacs_strftimeu): Renamed from emacs_strftime,
53435         with extra ut argument.
53436
53437 2001-05-09  Paul Eggert  <eggert@twinsun.com>
53438
53439         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
53440
53441 2001-04-21  Jim Meyering  <meyering@lucent.com>
53442
53443         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
53444         doesn't interfere.
53445
53446 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
53447
53448         * m4/ftruncate.m4: Check for chsize.
53449         Link with ftruncate.o unconditionally if ftruncate is missing.
53450         This was required when cross-compiling to i586-mingw32msvc.
53451
53452 2001-04-08  Jim Meyering  <meyering@lucent.com>
53453
53454         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
53455         recomputed; that's necessary when the offset spans a DST transition.
53456         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
53457
53458 2001-04-02  Jim Meyering  <meyering@lucent.com>
53459
53460         * lib/regex.h, regex.c: Update from GNU libc.
53461
53462 2001-03-24  Jim Meyering  <meyering@lucent.com>
53463
53464         * m4/jm-macros.m4: Require autoconf-2.49d.
53465
53466 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
53467
53468         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
53469
53470 2001-03-19  Paul Eggert  <eggert@twinsun.com>
53471
53472         * lib/version-etc.c (version_etc_copyright): Update to 2001.
53473
53474 2001-03-17  Jim Meyering  <meyering@lucent.com>
53475
53476         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
53477         now that the version in autoconf is equivalent.
53478         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
53479
53480         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
53481         Suggestion from Akim Demaille.
53482
53483         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
53484         (jm_PREREQ_TEMPNAME): New function.
53485
53486 2001-03-16  Paul Eggert  <eggert@twinsun.com>
53487
53488         * lib/tempname.c (uint64_t): Define to uintmax_t if
53489         not defined, and if UINT64_MAX is not defined.
53490         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
53491         Reported by John David Anglin.
53492
53493 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
53494
53495         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
53496         resolve alias if codeset is empty.
53497         * lib/config.charset (BeOS): Use wildcard syntax.
53498
53499 2001-03-13  Jim Meyering  <meyering@lucent.com>
53500
53501         * lib/path-concat.c (path_concat)
53502         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
53503         concatenating e.g., `C:' and `foo'.
53504         From Bruno Haible.
53505
53506 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
53507
53508         * lib/localcharset.c (locale_charset): Don't use
53509         setlocale(LC_CTYPE,NULL). Don't return NULL.
53510         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
53511
53512 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
53513
53514         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
53515         support for DOS/DJGPP.
53516
53517 2001-03-01  Paul Eggert  <eggert@twinsun.com>
53518
53519         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
53520         lacks mkstemp.  Compile our own tempname.c if we compile our own
53521         mkstemp.c, as mkstemp relies on tempname.
53522
53523 2001-03-01  Jim Meyering  <meyering@lucent.com>
53524
53525         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
53526         AH_VERBATIM really does output its argument verbatim.
53527
53528 2001-02-28  Paul Eggert  <eggert@twinsun.com>
53529
53530         * lib/Makefile.am (libfetish_a_SOURCES):
53531         Add dup-safer.c, fopen-safer.c.
53532         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
53533
53534         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
53535         * lib/unistd-safer.h: New files.
53536
53537 2001-02-25  Paul Eggert  <eggert@twinsun.com>
53538
53539         The mkstemp replacement is taken from glibc 2.2.2, with some
53540         portability fixes for use outside glibc, as follows:
53541
53542         * lib/tempname.c (struct_stat64): New macro.
53543         (direxists, __gen_tempname): Use it.
53544         This avoids a portability problem with Solaris 8.
53545
53546         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
53547         (<stddef.h>, <stdint.h>, <string.h>):
53548         Include only if STDC_HEADERS || _LIBC.
53549         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
53550         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
53551         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
53552         (__set_errno): Define this macro if <errno.h> doesn't.
53553         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
53554         Define these macros if <stdio.h> doesn't.
53555         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
53556         Define these macros if <sys/stat.h>
53557         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
53558         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
53559         __xstat64): Define if not _LIBC.
53560         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
53561         (__gen_tempname): Invoke gettimeofday only if
53562         HAVE_GETTIMEOFDAY || _LIBC;
53563         otherwise, fall back on plain "time".
53564         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
53565
53566         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
53567
53568         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
53569
53570 2001-02-18  Paul Eggert  <eggert@twinsun.com>
53571
53572         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
53573
53574 2001-02-17  Paul Eggert  <eggert@twinsun.com>
53575
53576         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
53577         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
53578         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
53579         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
53580
53581 2001-02-17  Paul Eggert  <eggert@twinsun.com>
53582
53583         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
53584         Remove workaround macros for hosts that have mbrtowc but not
53585         mbstate_t, as we now insist on proper declarations for both
53586         before using mbrtowc.
53587
53588 2001-02-17  Jim Meyering  <meyering@lucent.com>
53589
53590         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
53591         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
53592         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
53593         UnixWare 7.1.1.
53594
53595         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
53596         rather than AC_CACHE_VAL.
53597
53598 2001-02-17  Jim Meyering  <meyering@lucent.com>
53599
53600         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
53601         around included file name.
53602
53603         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
53604
53605         * lib/strftime.c: Update from GNU libc (the only changes were to
53606         comments).
53607
53608 2001-02-17  Jim Meyering  <meyering@lucent.com>
53609
53610         * lib/regex.c: Update from libc.
53611
53612 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
53613
53614         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
53615         clash.
53616
53617 2001-02-16  Paul Eggert  <eggert@twinsun.com>
53618
53619         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
53620         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
53621         Reported by Mark Hounschell via Paul Eggert.
53622
53623 2001-02-07  Jim Meyering  <meyering@lucent.com>
53624
53625         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
53626
53627 2001-02-05  Jim Meyering  <meyering@lucent.com>
53628
53629         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
53630         it includes the patch required for `large file' support with at least
53631         HP-UX's 10.20 /bin/cc.
53632
53633 2001-02-03  Jim Meyering  <meyering@lucent.com>
53634
53635         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
53636         AS_IF, now that it works once again (mysteriously).
53637         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
53638
53639 2001-01-30  Jim Meyering  <meyering@lucent.com>
53640
53641         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
53642         * m4/chown.m4: Rename conftestchown to conftest.chown.
53643         * m4/rename.m4: s/conftestdir/conftest.d1/ and
53644         s/conftestdir2/conftest.d2/.
53645         * m4/utimes.m4: s/conftestdata/conftest.data/
53646         Inspired by Pavel Roskin's change in autoconf.
53647
53648 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
53649
53650         * lib/config.charset: Update for FreeBSD 4.2.
53651
53652 2001-01-27  Jim Meyering  <meyering@lucent.com>
53653
53654         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
53655         a use of AS_IF.
53656         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
53657
53658 2001-01-26  Jim Meyering  <meyering@lucent.com>
53659
53660         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
53661         quotearg.c includes it.
53662
53663 2001-01-26  Jim Meyering  <meyering@lucent.com>
53664
53665         * lib/quotearg.c: Include stddef.h.
53666         * lib/quote.c: Include stddef.h.
53667         Reported by Axel Kittenberger.
53668
53669         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
53670         line in double quotes so that it evokes a better diagnostic.
53671         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
53672         Reported by Axel Kittenberger.
53673
53674 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
53675
53676         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
53677         as if it was a `charset'.
53678
53679 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
53680
53681         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
53682         has const.
53683
53684 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
53685
53686         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
53687         to avoid a warning.  Add back 'const' to inptr.
53688
53689 2001-01-20  Jim Meyering  <meyering@lucent.com>
53690
53691         Be sure that headers are checked before used in code compiled
53692         for the type checks.
53693         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
53694         In place of that, invoke jm_CHECK_ALL_TYPES.
53695         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
53696         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
53697         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
53698         The check for ssize_t was mistakenly run before the test for unistd.h.
53699
53700         The configure-time check for stdbool.h was missing.
53701         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
53702         (jm_PREREQ_HASH): New function.
53703
53704 2001-01-17  Jim Meyering  <meyering@lucent.com>
53705
53706         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
53707         for autoconf-2.49c.
53708         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
53709
53710 2001-01-16  Jim Meyering  <meyering@lucent.com>
53711
53712         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
53713         From Bruno Haible.
53714
53715 2001-01-14  Jim Meyering  <meyering@lucent.com>
53716
53717         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
53718         foo and bar.  Create conftestdir/ in the script, not in the C code.
53719         Remove directories in the script, not in the C code.
53720         Remove conftestdir{,2} before trying to create the directory.
53721         Make the entire configure script fail if the mkdir fails.
53722
53723 2001-01-14  Jim Meyering  <meyering@lucent.com>
53724
53725         * lib/rename.c: New file.  From Volker Borchert.
53726         Include stdlib.h, string.h or strings.h, and xalloc.h.
53727         Use strip_trailing_slashes rather than open-coding it.
53728
53729 2001-01-03  Paul Eggert  <eggert@twinsun.com>
53730
53731         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
53732
53733 2001-01-03  Jim Meyering  <meyering@lucent.com>
53734
53735         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
53736         of local `inptr' to avoid warning with some system declarations of
53737         iconv.
53738
53739 2001-01-02  Volker Borchert  <bt@teknon.de>
53740
53741         * m4/rename.m4: New file.
53742         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
53743
53744 2001-01-01  Jim Meyering  <meyering@lucent.com>
53745
53746         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
53747         even on systems with utmpx.h.  It's necessary for the declaration of
53748         utmp's ut_user member.  Reported by Andreas Jaeger.
53749
53750         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
53751         available. They are required for the declarations of getgrgid and
53752         getpwuid resp.
53753         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
53754         Reported by Andreas Jaeger.
53755
53756 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
53757
53758         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
53759         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
53760         so `make install' also works in VPATH builds.
53761
53762 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
53763
53764         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
53765         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
53766         can be used in subdirectories.
53767
53768 2000-12-29  Paul Eggert  <eggert@twinsun.com>
53769
53770         * lib/modechange.c: Do not assume that mode_t uses the
53771         traditional octal encoding.  E.g. "chmod 1 FOO" should set
53772         the other-execute bit of FOO even if S_IXOTH != 1.
53773
53774         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
53775         WOTH, XOTH, ALLM): New macros.
53776         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
53777          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
53778         Use them.
53779         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
53780         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
53781         (mode_compile):
53782         No need to use uintmax_t; unsigned long is long enough.
53783         Don't bother to get suffix since we don't use it.
53784
53785 2000-12-26  Jim Meyering  <meyering@lucent.com>
53786
53787         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
53788         better with autoheader.
53789
53790 2000-12-24  Jim Meyering  <meyering@lucent.com>
53791
53792         * lib/hash.c (is_prime): Return explicit boolean values.
53793         (hash_get_first): Return NULL to appease Irix5.6's 89.
53794         Reported by Nelson Beebe.
53795
53796 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
53797
53798         * lib/localcharset.c (locale_charset): Add support for Win32.
53799
53800 2000-12-18  Paul Eggert  <eggert@twinsun.com>
53801
53802         * lib/physmem.h, lib/physmem.c: New files.
53803
53804         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
53805         (noinst_HEADERS): Add physmem.h.
53806
53807         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
53808         't' for compatibility with Solaris 8 sort.
53809
53810 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
53811
53812         * lib/config.charset: Add support for BeOS.
53813
53814 2000-12-17  Jim Meyering  <meyering@lucent.com>
53815
53816         * m4/dos.m4 (jm_AC_DOS): New file and macro.
53817         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
53818
53819 2000-12-16  Jim Meyering  <meyering@lucent.com>
53820
53821         This bug had a serious impact on chown: `chown N:M FILE' (for integer
53822         N and M) would have treated it like `chown N:N FILE'.
53823
53824         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
53825
53826 2000-12-16  Jim Meyering  <meyering@lucent.com>
53827
53828         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
53829         SHELLS_FILE to a file name that's useful on djgpp systems.
53830         Include stdlib.h.
53831         (ADDITIONAL_DEFAULT_SHELLS): Define.
53832         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
53833         Based mostly on a patch from Prashant TR.
53834
53835 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
53836
53837         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
53838         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
53839         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
53840
53841 2000-12-08  Andreas Schwab  <schwab@suse.de>
53842
53843         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
53844         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
53845
53846 2000-12-07  Jim Meyering  <meyering@lucent.com>
53847
53848         * lib/stripslash.c (ISSLASH): Define.
53849         (strip_trailing_slashes): Use ISSLASH rather than comparing against
53850         `/'.
53851         From Prashant TR.
53852
53853         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
53854         (dir_name_r): Declare this function as static.
53855         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
53856         manifest itself on a name containing a mix of slashes and
53857         backslashes.
53858         Make this function work with names starting with a DOS-style
53859         drive letter and colon prefix.
53860         (dir_name): Append `.' if necessary.
53861         Based mostly on patches from Prashant TR and Eli Zaretskii.
53862
53863         * lib/dirname.h (dir_name_r): Remove prototype.
53864
53865 2000-12-06  Paul Eggert  <eggert@twinsun.com>
53866
53867         * m4/off_t-format.m4: Remove this file.
53868         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
53869
53870 2000-12-06  Jim Meyering  <meyering@lucent.com>
53871
53872         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
53873         replacement strtoull, we may well need the replacement strtoul, too.
53874         Check for declarations of strtoul and strtoull.
53875         Check for strtol.  Mainly as a cue to cause automake to include
53876         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
53877         Check for limits.h -- strtol.c needs it.
53878
53879 2000-12-05  Jim Meyering  <meyering@lucent.com>
53880
53881         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
53882
53883 2000-12-04  Jim Meyering  <meyering@lucent.com>
53884
53885         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
53886         Also include memory.h, stdlib.h, unistd.h if appropriate.
53887         Reported by Andreas Jaeger (conflicting declaration of malloc).
53888
53889 2000-12-02  Jim Meyering  <meyering@lucent.com>
53890
53891         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
53892         * m4/jm-macros.m4 (jm_MACROS): require it.
53893
53894 2000-12-02  Jim Meyering  <meyering@lucent.com>
53895
53896         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
53897
53898 2000-12-01  Paul Eggert  <eggert@twinsun.com>
53899
53900         * lib/memrchr.c: Include <config.h> before any system include file.
53901
53902 2000-11-30  Jim Meyering  <meyering@lucent.com>
53903
53904         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
53905
53906 2000-11-30  Jim Meyering  <meyering@lucent.com>
53907
53908         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
53909
53910 2000-11-29  Paul Eggert  <eggert@twinsun.com>
53911
53912         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
53913
53914 2000-11-26  Jim Meyering  <meyering@lucent.com>
53915
53916         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
53917
53918 2000-11-22  Paul Eggert  <eggert@twinsun.com>
53919
53920         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
53921         size of (size_t) -1; it's not portable.
53922
53923 2000-11-17  Jim Meyering  <meyering@lucent.com>
53924
53925         * lib/strstr.c: Update from GNU libc.
53926
53927 2000-11-17  Akim Demaille  <akim@epita.fr>
53928
53929         * lib/obstack.h: Formatting changes.
53930         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
53931         prevent type checking.
53932         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
53933         cast the value to (void *): assigning a `foo *' to a `void *'
53934         variable is valid.
53935         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
53936
53937 2000-11-16  Jim Meyering  <meyering@lucent.com>
53938
53939         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
53940
53941 2000-11-11  Jim Meyering  <meyering@lucent.com>
53942
53943         * lib/error.c: Add a couple #includes, merging from GNU libc version.
53944
53945 2000-11-10  Jim Meyering  <meyering@lucent.com>
53946
53947         * lib/obstack.h: Update from GNU libc.
53948         * lib/obstack.c: Likewise.
53949
53950 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
53951
53952         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
53953
53954 2000-11-06  Paul Eggert  <eggert@twinsun.com>
53955
53956         * lib/getusershell.c (setusershell): Use rewind rather than
53957         fseek/fseeko, to avoid configuration hassles with fseeko.
53958         Don't bother opening SHELLS_FILE if shellstream is NULL;
53959         it's not necessary.
53960
53961 2000-11-05  Jim Meyering  <meyering@lucent.com>
53962
53963         * lib/makepath.h (make_dir): Declare.
53964         * lib/makepath.c (make_dir): Remove `static' attribute.
53965         Tweak a comment.
53966
53967 2000-11-04  Jim Meyering  <meyering@lucent.com>
53968
53969         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
53970
53971 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
53972
53973         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
53974         last one in a bucket, advance to the next bucket.
53975
53976 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
53977
53978         * lib/fnmatch.c: Do not comment out all the code if we are using
53979         the GNU C library, because in some cases we are replacing buggy
53980         code in the GNU C library itself.
53981
53982 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
53983
53984         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
53985         (regex_compile): Catch bogus \(\1\).
53986
53987 2000-10-30  Paul Eggert  <eggert@twinsun.com>
53988
53989         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
53990         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
53991         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
53992
53993 2000-10-30  Paul Eggert  <eggert@twinsun.com>
53994
53995         * lib/error.h, getline.h, modechange.h:
53996         Remove "2000" from Copyright line, as the file hasn't been
53997         changed this year other than in the copyright notice.
53998
53999         * lib/xalloc.h: Add "2000" to Copyright line, as this file
54000         was changed this year.
54001
54002 2000-10-29  Jim Meyering  <meyering@lucent.com>
54003
54004         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
54005         renaming.
54006         * m4/ls-mntd-fs.m4: Likewise
54007
54008 2000-10-29  Jim Meyering  <meyering@lucent.com>
54009
54010         * lib/xstat.in: Fix grammar in comment.
54011
54012 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
54013
54014         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
54015         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
54016         doesn't define __restrict_arr.
54017
54018 2000-10-28  Jim Meyering  <meyering@lucent.com>
54019
54020         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
54021         (jm_PREREQ_MEMCHR): New function.
54022
54023 2000-10-28  Jim Meyering  <meyering@lucent.com>
54024
54025         * lib/memchr.c: Update from libc.
54026         Adjust for portability:
54027         [HAVE_STDLIB_H]: Include stdlib.h.
54028         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
54029         Undef __memchr, too.
54030         [!weak_alias]: Define __memchr to memchr.
54031
54032         * lib/regex.c: Update from libc.
54033         * lib/regex.h: Likewise.
54034         * lib/getopt1.c: Likewise.
54035         * lib/memcmp.c: Likewise.
54036
54037         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
54038         Avoid using fseek, when possible -- it's broken by design.
54039         Patch by Ulrich Drepper.
54040
54041 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
54042
54043         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
54044         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
54045         Giving in to popular pressure to shut up the compiler with casts.
54046
54047 2000-10-26  Jim Meyering  <meyering@lucent.com>
54048
54049         * lib/strftime.c: Update from libc.
54050
54051 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
54052
54053         * regex.c: More `unsigned char' -> `re_char' changes.
54054         Also change several `int' into `re_wchar_t'.
54055         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
54056         (PUSH_FAILURE_POINTER): Don't cast any more.
54057         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
54058         We want GCC to complain, since this piece of code makes
54059         re_match non-reentrant, which *should* be fixed.
54060         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
54061         (EXTEND_BUFFER): Use RETALLOC.
54062         (SET_LIST_BIT): Don't cast.
54063         (re_wchar_t): New type.
54064         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
54065         that those two functions will always properly return.
54066         (IMMEDIATE_QUIT_CHECK): Cast to void.
54067         (analyse_first): Use recursion rather than an explicit stack.
54068         (re_compile_fastmap): Can't fail anymore.
54069         (re_search_2): Don't check re_compile_fastmap for failure.
54070         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
54071         Now also sets the new value (passed in a new argument).
54072         (re_match_2_internal): Use it.
54073         Also, use a new var `reg' of type size_t when looping through regs
54074         rather than reuse the inappropriate `mcnt'.
54075
54076 2000-10-25  Jim Meyering  <meyering@lucent.com>
54077
54078         * lib/obstack.c: Update from libc.
54079
54080 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
54081
54082         * regex.c (regex_compile): Change the way of handling a range from
54083         a char less than 256 to a char not less than 256.
54084
54085 2000-10-24  Andrew Innes  <andrewi@gnu.org>
54086
54087         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
54088         NT-Emacs only.
54089         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
54090         so that re_search functions only quit when callers expect them to.
54091
54092 2000-10-23  Jim Meyering  <meyering@lucent.com>
54093
54094         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
54095         wrong.  That set_locale call must not have any side effects.
54096         From Paul Eggert.
54097
54098 2000-10-22  Jim Meyering  <meyering@lucent.com>
54099
54100         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
54101         [CYCLIC]: Remove now-unused definition.
54102
54103         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
54104         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
54105         Suggestion from Ulrich Drepper.
54106
54107 2000-10-21  Jim Meyering  <meyering@lucent.com>
54108
54109         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
54110         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
54111         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
54112
54113 2000-10-21  Jim Meyering  <meyering@lucent.com>
54114
54115         * lib/dirname.c (memrchr): Declare if necessary.
54116         (dir_name): Remove the restriction that there be no
54117         trailing slashes.  Now, this code skips past them, effectively
54118         ignoring them.
54119         [TEST_DIRNAME] (main): New unit tests.
54120
54121         * lib/memrchr.c: New file from GNU libc.
54122         Undef __memrchr, too.
54123         [!weak_alias]: Define __memrchr to memrchr.
54124         Guard weak_alias use with `#ifdef weak_alias'.
54125
54126 2000-10-21  Jim Meyering  <meyering@lucent.com>
54127
54128         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
54129         (dir_name): Use dir_name_r.
54130         * lib/dirname.h (dir_name_r): Declare it.
54131
54132 2000-10-17  Jim Meyering  <meyering@lucent.com>
54133
54134         * lib/quote.h (PARAMS): Define and use.
54135         Reported by Akim Demaille.
54136
54137         * lib/getopt.c: Update from libc.
54138
54139 2000-10-16  Jim Meyering  <meyering@lucent.com>
54140
54141         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
54142         setlocale.
54143         From Jan Fedak.
54144
54145 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
54146
54147         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
54148
54149 2000-09-25  Jim Meyering  <meyering@lucent.com>
54150
54151         * lib/md5.h (rol): Define (from GnuPG).
54152
54153         * lib/sha.c: Give credit (GnuPG) where due.
54154         (M): Use rol rather than open-coding it.
54155         Add a FIXME comment.
54156
54157 2000-09-21  Jim Meyering  <meyering@lucent.com>
54158
54159         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
54160         Reported by Michael Stone.
54161
54162 2000-09-20  Jim Meyering  <meyering@lucent.com>
54163
54164         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
54165         (noinst_HEADERS): Add sha.h.
54166         Based on code from Scott G. Miller and from GnuPG.
54167
54168 2000-09-18  Jim Meyering  <meyering@lucent.com>
54169
54170         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
54171         LIBS. Otherwise, everyone ends up linking with -lelf for some
54172         configurations.
54173         Reported by Mike Stone.
54174
54175 2000-09-15  Jim Meyering  <meyering@lucent.com>
54176
54177         * lib/regex.c: Update from libc.
54178
54179 2000-09-10  Jim Meyering  <meyering@lucent.com>
54180
54181         * lib/getopt.c (_getopt_internal): Update from glibc.
54182
54183 2000-09-09  Jim Meyering  <meyering@lucent.com>
54184
54185         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
54186         think it should be used as a general replacement for isascii.
54187         * lib/fnmatch.c: Likewise.
54188         * lib/mbswidth.c: Likewise
54189         * lib/regex.c: Likewise.
54190
54191         Don't use atoi.
54192         * lib/userspec.c: Include sys/param.h and limits.h.
54193         Include xstrtol.h.
54194         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
54195         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
54196         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
54197         UID, GID.  Check range.
54198
54199 2000-09-06  Jim Meyering  <meyering@lucent.com>
54200
54201         * lib/getopt.c (_getopt_internal): Update from glibc.
54202
54203 2000-08-30  Jim Meyering  <meyering@lucent.com>
54204
54205         * lib/strftime.c: Merge in changes from GNU libc.
54206
54207 2000-08-26  Jim Meyering  <meyering@lucent.com>
54208
54209         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
54210         * m4/fpending.m4: New file.
54211
54212 2000-08-26  Jim Meyering  <meyering@lucent.com>
54213
54214         * lib/closeout.c: Include "__fpending.h".
54215         (close_stdout_status): Return right away if there's nothing to flush.
54216
54217         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
54218         * lib/__fpending.c: New file.
54219         * lib/__fpending.h: New file.
54220
54221 2000-08-20  Jim Meyering  <meyering@lucent.com>
54222
54223         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
54224         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
54225         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
54226
54227 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
54228
54229         Improve fileutils installation on systems where running
54230         programs (like install) can't be unlinked.
54231         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
54232         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
54233
54234 2000-08-07  Paul Eggert  <eggert@twinsun.com>
54235
54236         Standardize on "memory exhausted" instead of "Memory exhausted"
54237         or "virtual memory exhausted".
54238         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
54239         "virtual memory exhausted".
54240         * lib/same.c (same_name): Invoke xalloc_die instead of printing
54241         our own message.
54242         * lib/userspec.c (parse_user_spec): Likewise.
54243         * lib/bumpalloc.h: comment fix
54244         * lib/same.c, userspec.c: Include xalloc.h.
54245
54246         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
54247         not char *const and pointing to a constant array.
54248         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
54249         (xrealloc): Comment fix.
54250
54251         * lib/userspec.c (parse_user_spec):
54252         Don't translate a message until just before returning,
54253         to avoid unnecessary translation.
54254
54255 2000-08-07  Jim Meyering  <meyering@lucent.com>
54256
54257         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
54258         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
54259         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
54260         getgroups.c, gethostname.c, getopt.h, group-member.c,
54261         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
54262         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
54263         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
54264         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
54265         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
54266         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
54267         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
54268         yesno.c: Back out Copyright date changes for each file with no change
54269         this year.  This eases coordination with other programs using the same
54270         source code modules.  From Paul Eggert.
54271
54272 2000-08-06  Paul Eggert  <eggert@twinsun.com>
54273
54274         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
54275         not char, for compatibility with glibc 2.1.3 strftime.c.
54276
54277 2000-08-03  Greg McGary  <greg@mcgary.org>
54278
54279         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
54280         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
54281         (EXTEND_BUFFER): Use them.
54282
54283 2000-08-01  Jim Meyering  <meyering@lucent.com>
54284
54285         * lib/dirname.c (ISSLASH): Define.
54286         (BACKSLASH_IS_PATH_SEPARATOR): Define.
54287         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
54288         both `\' and `/' may be use as path separators.
54289         Based on a patch from Prashant TR.
54290
54291 2000-07-31  Paul Eggert  <eggert@twinsun.com>
54292
54293         * lib/quotearg.c (quotearg_n_options): Don't make the initial
54294         slot vector a constant, since it might get modified.
54295
54296 2000-07-31  Jim Meyering  <meyering@lucent.com>
54297
54298         * lib/xmalloc.c: Use `virtual memory exhausted', not
54299         `Memory exhausted'.
54300         * lib/obstack.c (print_and_abort): Likewise.
54301
54302 2000-07-30  Paul Eggert  <eggert@twinsun.com>
54303
54304         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
54305         buffer, so that the caller can always quote one small
54306         component of a "memory exhausted" message in slot 0.
54307         From a suggestion by Jim Meyering.
54308
54309 2000-07-30  Jim Meyering  <meyering@lucent.com>
54310
54311         * lib/makepath.c (make_path): Quote the other instance, too.
54312
54313         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
54314         (STATIC_BUF_SIZE): Define.
54315         (quotearg_n_options): Use only statically allocated storage when
54316         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
54317         than STATIC_BUF_SIZE.
54318
54319 2000-07-29  Jim Meyering  <meyering@lucent.com>
54320
54321         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
54322         * lib/dirname.c (dir_name): Likewise.
54323
54324         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
54325         `/'.
54326
54327         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
54328         (dir_name): Assert that there are no trailing slashes.
54329
54330 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
54331
54332         * lib/mbswidth.h (mbswidth): Add a flags argument.
54333         (mbswidth): New declaration.
54334         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
54335         * lib/mbswidth.c (mbswidth): Add a flags argument.
54336         (mbsnwidth): New function.
54337
54338 2000-07-24  Jim Meyering  <meyering@lucent.com>
54339
54340         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
54341
54342 2000-07-23  Paul Eggert  <eggert@twinsun.com>
54343
54344         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
54345
54346 2000-07-23  Paul Eggert  <eggert@twinsun.com>
54347
54348         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
54349         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
54350         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
54351         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
54352         invoke multibyte primitives.
54353
54354 2000-07-23  Paul Eggert  <eggert@twinsun.com>
54355
54356         * lib/quotearg.c:
54357         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
54358         so that mbstate_t is always defined.
54359
54360         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
54361         be 1 in at least one GCC installation, and this configuration
54362         error is likely to be common.  Ignoring MB_LEN_MAX hurts
54363         performance on hosts that have mbrtowc but have only unibyte
54364         locales, but I assume these hosts are rare.
54365
54366 2000-07-23  Paul Eggert  <eggert@twinsun.com>
54367
54368         * lib/mbswidth.c (_XOPEN_SOURCE):
54369         Don't define; this causes problems on Solaris 7.
54370         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
54371
54372 2000-07-23  Jim Meyering  <meyering@lucent.com>
54373
54374         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
54375         too: getgrgid, getpwuid, getuid.
54376
54377 2000-07-23  Jim Meyering  <meyering@lucent.com>
54378
54379         * lib/basename.c (base_name): Add an assertion.
54380
54381 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
54382
54383         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
54384         shadow its mbsinit function.
54385
54386 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
54387
54388         * lib/mbswidth.h: New file.
54389         * lib/mbswidth.c: New file.
54390         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
54391         (noinst_HEADERS): Add mbswidth.h.
54392
54393 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
54394
54395         * lib/config.charset: Add support for FreeBSD. Improve support for
54396         HP-UX and IRIX 6.
54397
54398 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
54399
54400         * m4/mbswidth.m4: New file.
54401         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
54402
54403 2000-07-15  Jim Meyering  <meyering@lucent.com>
54404
54405         * lib/makepath.c: Include quote.h.
54406         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
54407         corresponding argument in a `quote (...)' call.
54408         Give better diagnostics.
54409
54410         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
54411         (noinst_HEADERS): Add quote.h.
54412
54413         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
54414         from tar's src/misc.c.
54415         * lib/quote.h: New file.  Prototypes for same.
54416
54417 2000-07-14  Paul Eggert  <eggert@twinsun.com>
54418
54419         From a suggestion by Bruno Haible.
54420         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
54421         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
54422         to decide whether to define the BeOS workaround macro;
54423         this adjusts to the change to AC_MBSTATE_T.
54424
54425 2000-07-14  Jim Meyering  <meyering@lucent.com>
54426
54427         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
54428         jm_AC_TYPE_UINTMAX_T.
54429
54430 2000-07-13  Paul Eggert  <eggert@twinsun.com>
54431
54432         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
54433
54434         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
54435         quotearg_buffer_restyled): Add support for
54436         clocale_quoting_style.  Undo previous change to
54437         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
54438         and "{RIGHT QUOTATION MARK}" msgids.
54439
54440 2000-07-10  Paul Eggert  <eggert@twinsun.com>
54441
54442         From a suggestion by Bruno Haible.
54443         * m4/mbstate_t.m4 (AC_MBSTATE_T):
54444         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
54445         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
54446         and mbstate_t, to a single-part test that simply defines mbstate_t.
54447         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
54448         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
54449
54450 2000-07-10  Jim Meyering  <meyering@lucent.com>
54451
54452         * m4/strerror_r.m4: Mirror the correction made in autoconf.
54453
54454         * m4/gnu-source.m4: Output to confdefs.h directly.
54455         Suggestion from Akim Demaille.
54456
54457 2000-07-09  Paul Eggert  <eggert@twinsun.com>
54458
54459         The old behavior of quoting `like this' doesn't look good with
54460         newer, ISO-style fonts.  See:
54461         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
54462
54463         Instead, quote "like this" by default.  Let the translator
54464         tailor the locale-specific quoting behavior by providing
54465         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
54466
54467         * lib/quotearg.c (N_): New macro.
54468         (gettext_default): New function.
54469         (quotearg_buffer_restyled): Use
54470         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
54471         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
54472
54473 2000-07-09  Jim Meyering  <meyering@lucent.com>
54474
54475         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
54476         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
54477
54478         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
54479         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
54480
54481 2000-07-09  Jim Meyering  <meyering@lucent.com>
54482
54483         * lib/Most files: Update copyright dates to include 2000.
54484
54485 2000-07-08  Jim Meyering  <meyering@lucent.com>
54486
54487         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
54488         if not defined.
54489         (xgethostname): Remove now-unnecessary #ifdef.
54490         Move declaration of `err' into loop where it's used.
54491
54492 2000-07-05  Paul Eggert  <eggert@twinsun.com>
54493         and Bruno Haible  <haible@clisp.cons.org>
54494
54495         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
54496         only if the test for an object-type mbstate_t fails.  This
54497         prevents us from mistakenly reporting that mbstate_t is a
54498         system object type after we "#define mbstate_t int" to work
54499         around its lack.
54500
54501 2000-07-05  Paul Eggert  <eggert@twinsun.com>
54502         and Bruno Haible  <haible@clisp.cons.org>
54503
54504         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
54505
54506 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
54507
54508         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
54509         to strerror_r.
54510         Include <ctype.h> for use of isalpha.
54511
54512 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
54513
54514         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
54515         by allocating a larger buffer. Test the gethostname return value for
54516         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
54517         returns an error and ENAMETOOLONG isn't defined.
54518
54519 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
54520
54521         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
54522         dimension.
54523
54524 2000-07-04  Jim Meyering  <meyering@lucent.com>
54525
54526         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
54527         of the deprecated AC_CHECKING.
54528
54529 2000-07-04  Jim Meyering  <meyering@lucent.com>
54530
54531         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
54532         Reported by Bruno Haible.
54533
54534 2000-07-04  Jim Meyering  <meyering@lucent.com>
54535
54536         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
54537         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
54538         lacks mbrtowc.
54539
54540 2000-07-03  Paul Eggert  <eggert@twinsun.com>
54541
54542         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
54543         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
54544
54545 2000-07-03  Paul Eggert  <eggert@twinsun.com>
54546         and Bruno Haible  <haible@clisp.cons.org>
54547
54548         * lib/quotearg.c (mbrtowc):
54549         Assign to *pwc, and return 1 only if result is nonzero.
54550         (iswprint): Use ISPRINT when substituting our own mbrtowc.
54551
54552 2000-07-03  Jim Meyering  <meyering@lucent.com>
54553
54554         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
54555
54556 2000-07-03  Jim Meyering  <meyering@lucent.com>
54557
54558         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
54559         This is necessary to get a definition of e.g., UTMP_FILE on
54560         HP-UX 10.20.
54561         From Bob Proulx.
54562
54563 2000-07-02  Jim Meyering  <meyering@lucent.com>
54564
54565         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
54566
54567         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
54568         AC_LIBOBJ(function_name).
54569         * m4/chown.m4: Likewise.
54570         * m4/fnmatch.m4: Likewise.
54571         * m4/ftruncate.m4: Likewise.
54572         * m4/getgroups.m4: Likewise.
54573         * m4/getline.m4: Likewise.
54574         * m4/group-member.m4: Likewise.
54575         * m4/jm-macros.m4: Likewise.
54576         * m4/lstat.m4: Likewise.
54577         * m4/malloc.m4: Likewise.
54578         * m4/memcmp.m4: Likewise.
54579         * m4/nanosleep.m4: Likewise.
54580         * m4/putenv.m4: Likewise.
54581         * m4/realloc.m4: Likewise.
54582         * m4/regex.m4: Likewise.
54583         * m4/stat.m4: Likewise.
54584         * m4/strftime.m4: Likewise.
54585
54586 2000-07-02  Jim Meyering  <meyering@lucent.com>
54587
54588         * lib/quotearg.c (mbstate_t): Don't define here.
54589
54590 2000-07-02  Jim Meyering  <meyering@lucent.com>
54591
54592         * lib/nanosleep.c (SIGCONT): Define if not already defined.
54593
54594 2000-07-01  Jim Meyering  <meyering@lucent.com>
54595
54596         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
54597
54598 2000-07-01  Jim Meyering  <meyering@lucent.com>
54599
54600         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
54601         problem.
54602
54603 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
54604
54605         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
54606         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
54607
54608 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
54609
54610         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
54611         per change in ../m4/ls-mntd-fs.m4.
54612         (read_filesystem_list): Ignore symbolic links.
54613
54614 2000-06-29  Jim Meyering  <meyering@lucent.com>
54615
54616         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
54617         for declaration of strcmp.
54618
54619         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
54620
54621         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
54622         Avoid warning by casting result to `char *' to remove `const'.
54623
54624 2000-06-28  Jim Meyering  <meyering@lucent.com>
54625
54626         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
54627         included by quotearg.c, for which we perform this test.  From
54628         Bruno Haible.
54629
54630 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
54631
54632         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
54633         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
54634         <utmpx.h> exists, put readutmp.o into LIBOBJS.
54635
54636 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
54637
54638         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
54639
54640 2000-06-26  Paul Eggert  <eggert@twinsun.com>
54641
54642         savedir now sets errno on failure and invokes xmalloc to get memory.
54643         Fix a couple of other minor bugs while we're at it.
54644
54645         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
54646         (NAMLEN): Remove macro.
54647         (malloc, realloc): Remove decls.
54648         (stpcpy): Likewise.
54649         ("xalloc.h"): Include.
54650         (NAME_SIZE_DEFAULT): New macro.
54651         (savedir): Use xmalloc / xrealloc to allocate memory.
54652         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
54653         Skip "" directory entries.
54654         Use strlen to calculate directory entry length, since the old method
54655         is rarely used these days and isn't worth supporting.
54656         Don't use a pointer after freeing it.
54657         Check for integer overflow when calculating allocation size.
54658         Use memcpy to copy entries, instead of stpcpy.
54659         Set errno properly when returning NULL.
54660         Check for readdir error.
54661
54662 2000-06-26  Jim Meyering  <meyering@lucent.com>
54663
54664         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
54665
54666 2000-06-25  Jim Meyering  <meyering@lucent.com>
54667
54668         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
54669         Linux header bug when _XOPEN_SOURCE is defined to 500.
54670
54671 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
54672
54673         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
54674         deficiency.
54675
54676 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
54677
54678         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
54679         Include xalloc.h.
54680         Don't include <stdlib.h>.  Don't declare malloc, realloc.
54681
54682 2000-06-24  Jim Meyering  <meyering@lucent.com>
54683
54684         * m4/strerror_r.m4: Revive this file -- to try out an experimental
54685         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
54686         for which strerror does return char*, but which lacks a conveniently
54687         accessible declaration of the function.  If the compile-test says
54688         strerror_r doesn't work, then resort to a `run'-test that works on
54689         BeOS and segfaults on DEC Unix.
54690
54691 2000-06-24  Jim Meyering  <meyering@lucent.com>
54692
54693         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
54694
54695 2000-06-23  Paul Eggert  <eggert@twinsun.com>
54696
54697         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
54698         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
54699
54700 2000-06-23  Paul Eggert  <eggert@twinsun.com>
54701
54702         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
54703         (mbrtowc, mbstate_t): Define substitutes if
54704         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
54705         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
54706         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
54707
54708 2000-06-23  Jim Meyering  <meyering@lucent.com>
54709
54710         * m4/afs.m4: Add missing AC_MSG_RESULT.
54711         Reported by Bruno Haible.
54712
54713         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
54714         Suggestion from Bruno Haible.
54715
54716 2000-06-23  Jim Meyering  <meyering@lucent.com>
54717
54718         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
54719
54720 2000-06-21  Jim Meyering  <meyering@lucent.com>
54721
54722         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
54723
54724 2000-06-21  Jim Meyering  <meyering@lucent.com>
54725
54726         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
54727         (noinst_HEADERS): Add getstr.h.
54728
54729         * lib/getline.c (getstr): Move into a separate file.
54730         * lib/getstr.c (getstr): New file, extracted from getline.c, with
54731         the following changes: new parameter, delim2; both delim[12]
54732         parameters have type `int', not `char'.  The latter would lose
54733         with 8-bit delimiters.
54734         * lib/getstr.h: New file.
54735
54736 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
54737
54738         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
54739         than 1024, return a memory chunk of least possible size, instead
54740         of size PATH_MAX + 2. In the loop, increment the size proportionally.
54741         Use free/xmalloc instead of xrealloc to avoid copying for very long
54742         paths.
54743
54744 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
54745
54746         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
54747         the empty string.
54748
54749 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
54750
54751         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
54752         address, not strdup.  Include <stdlib.h> and don't declare free().
54753
54754 2000-06-19  Jim Meyering  <meyering@lucent.com>
54755
54756         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
54757
54758 2000-06-18  Jim Meyering  <meyering@lucent.com>
54759
54760         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
54761
54762         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
54763         `checking whether...' message to be consistent with that of the
54764         lstat test.
54765
54766 2000-06-18  Jim Meyering  <meyering@lucent.com>
54767
54768         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
54769         Besides, these days every porting target provides a mkdir function.
54770
54771         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
54772         needed. (this snippet comes from src/system.h).
54773
54774 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
54775
54776         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
54777
54778 2000-06-15  Paul Eggert  <eggert@twinsun.com>
54779
54780         * lib/human.c (adjust_value): New function.
54781         (human_readable_inexact): Apply rounding style even when
54782         printing approximate values.
54783
54784 2000-06-14  Paul Eggert  <eggert@twinsun.com>
54785
54786         * lib/human.c (human_readable_inexact): Allow an input block
54787         size that is not a multiple of the output block size, and vice versa.
54788         Reported by Piergiorgio Sartor.
54789
54790 2000-06-14  Paul Eggert  <eggert@twinsun.com>
54791
54792         * lib/getdate.y (get_date): Apply relative times after time
54793         zone indicator, not before.  Reported by Todd A. Jacobs.
54794
54795 2000-06-13  Jim Meyering  <meyering@lucent.com>
54796
54797         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
54798
54799         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
54800
54801 2000-06-12  Paul Eggert  <eggert@twinsun.com>
54802
54803         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
54804
54805 2000-06-12  Jim Meyering  <meyering@lucent.com>
54806
54807         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
54808         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
54809         optional argument.
54810         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
54811         the optional argument, `lib'.
54812
54813 2000-06-08  Jim Meyering  <meyering@lucent.com>
54814
54815         * m4/largefile.m4: Remove file (now that it's part of autoconf).
54816
54817 2000-06-04  Paul Eggert  <eggert@twinsun.com>
54818
54819         Rewrite largefile configuration so that we don't need to run
54820         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
54821         AC_CANONICAL_HOST in configure.in -- jmm]
54822
54823         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
54824         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
54825         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
54826         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
54827         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
54828         All uses changed.
54829         Instead of inspecting the output of getconf, try to compile the
54830         test program without and with the macro definition.
54831         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
54832         for getconf.  Instead, check for the needed flags by compiling
54833         test programs.
54834
54835 2000-06-04  Paul Eggert  <eggert@twinsun.com>
54836
54837         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
54838
54839 2000-06-04  Jim Meyering  <meyering@lucent.com>
54840
54841         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
54842         SunOS 4.1.4 for which gid_t is an unsigned type.
54843
54844 2000-06-03  Jim Meyering  <meyering@lucent.com>
54845
54846         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
54847         now that autoconf requires that.
54848
54849         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
54850         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
54851         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
54852
54853 2000-06-03  Jim Meyering  <meyering@lucent.com>
54854
54855         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
54856
54857 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
54858
54859         * m4/glibc21.m4: New file.
54860         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
54861
54862 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
54863
54864         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
54865         newer, don't install charset.alias.
54866         * lib/config.charset: Change the Linux/glibc rules so they become empty
54867         on glibc-2.1 or newer.
54868
54869 2000-06-02  Jim Meyering  <meyering@lucent.com>
54870
54871         * lib/mountlist.c: Back out last change.  Instead, do this...
54872         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
54873         me_dummy member using the same `ignore'-testing code.
54874         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
54875         fs_type strings.
54876         From Mark D. Roth.
54877
54878 2000-05-29  Jim Meyering  <meyering@lucent.com>
54879
54880         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
54881         mounts with the `ignore' attribute.  Based on a patch from
54882         Mark D. Roth.
54883
54884 2000-05-28  Jim Meyering  <meyering@lucent.com>
54885
54886         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
54887         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
54888         * m4/stat.m4: Likewise.
54889         * m4/lstat.m4: Likewise.
54890         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
54891
54892         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
54893         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
54894
54895 2000-05-26  Jim Meyering  <meyering@lucent.com>
54896
54897         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
54898
54899 2000-05-24  Jim Meyering  <meyering@lucent.com>
54900
54901         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
54902         autoconf requires that.
54903         * m4/lib-check.m4: Likewise.
54904         * m4/jm-macros.m4: Likewise.
54905         * m4/strftime.m4: Likewise.
54906
54907         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
54908         AC_CHECK_DECLS, now that autoconf requires that.
54909
54910 2000-05-22  Jim Meyering  <meyering@lucent.com>
54911
54912         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
54913         * m4/lstat.m4: Likewise.
54914
54915 2000-05-22  Jim Meyering  <meyering@lucent.com>
54916
54917         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
54918
54919 2000-05-20  Jim Meyering  <meyering@lucent.com>
54920
54921         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
54922         (jm_PREREQ): Use it.
54923
54924 2000-05-18  Jim Meyering  <meyering@lucent.com>
54925
54926         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
54927         back, too, since it may have been modified by allocate_entry.
54928         (hash_delete): Rewrite to use neither the assignment operator
54929         nor the comma operator in an if-expression.
54930
54931 2000-05-15  Paul Eggert  <eggert@twinsun.com>
54932
54933         * lib/closeout.c:
54934         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
54935         Remove; no longer needed.
54936         "quotearg.h": Add include.
54937         (file_name): Do not bother to explicitly initialize to NULL; it's less
54938         efficient on some hosts.
54939         (close_stdout_status): Remove test as to whether stdout was already
54940         closed; it breaks for the case "echo x | sort >&-".
54941         Quote file name colons.
54942         Do not assume that _("write error") lacks format strings.
54943
54944 2000-05-15  Jim Meyering  <meyering@lucent.com>
54945
54946         * lib/version-etc.c (version_etc_copyright): Update the copyright
54947         string used in all --version output.
54948
54949 2000-05-14  Jim Meyering  <meyering@lucent.com>
54950
54951         * lib/closeout.c (close_stdout_set_file_name): New function.
54952         (close_stdout_status): Use new file-scoped global.
54953         Return right away if fstat says the stdout file descriptor is invalid.
54954         * lib/closeout.h (close_stdout_set_file_name): Declare.
54955
54956 2000-05-10  Jim Meyering  <meyering@lucent.com>
54957
54958         * lib/closeout.c [default_exit_status]: New file-scoped variable.
54959         (close_stdout_set_status): New function.
54960         * lib/closeout.h (close_stdout_set_status): Declare.
54961
54962 2000-05-09  Jim Meyering  <meyering@lucent.com>
54963
54964         * m4/gettext.m4: Rename this...
54965         * m4/libintl.m4: ...to this.
54966
54967 2000-05-08  Jim Meyering  <meyering@lucent.com>
54968
54969         * lib/long-options.c: Don't include closeout.h.
54970         (parse_long_options): Don't call close_stdout for --version.
54971
54972 2000-05-06  Paul Eggert  <eggert@twinsun.com>
54973
54974         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
54975         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
54976         2.1.3 bug.  This avoids a clash when files like regex.c define
54977         _GNU_SOURCE.
54978
54979 2000-05-06  Jim Meyering  <meyering@lucent.com>
54980
54981         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
54982         (AC_REPLACE_FUNCS): Add strnlen.
54983
54984         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
54985         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
54986
54987         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
54988         AC_SEARCH_LIBS call for nanosleep.
54989         (LIB_NANOSLEEP): Set and AC_SUBST.
54990
54991 2000-05-06  Jim Meyering  <meyering@lucent.com>
54992
54993         * lib/strnlen.c: Undefine __strnlen and strnlen.
54994         [!weak_alias]: Define __strnlen to strnlen.
54995
54996         * lib/atexit.c: New file, from libiberty.
54997
54998 2000-05-06  Jim Meyering  <meyering@lucent.com>
54999
55000         * lib/closeout.c (close_stdout_status): Also check for errors on the
55001         stderr stream.
55002
55003 2000-05-05  Jim Meyering  <meyering@lucent.com>
55004
55005         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
55006         AC_SEARCH_LIBS call for clock_gettime.
55007         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
55008
55009         * m4/search-libs.m4: Update from autoconf.
55010
55011         su doesn't work on Solaris 2.6.
55012         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
55013         <shadow.h>.  Reported by Dragos Harabor.
55014
55015 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
55016
55017         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
55018         memcpy instead of xmalloc, xrealloc, path_concat.
55019         (locale_charset): Treat empty environment variables as absent.
55020         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
55021
55022 2000-05-04  Jim Meyering  <meyering@lucent.com>
55023
55024         * lib/getopt.c: Update from glibc.
55025         * lib/obstack.c: Likewise.
55026         * lib/obstack.h: Likewise.
55027         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
55028         file
55029
55030         * lib/regex.h: Likewise.
55031         * lib/strndup.c: Likewise.
55032         * lib/strnlen.c: New file, from glibc.
55033
55034 2000-05-03  Jim Meyering  <meyering@lucent.com>
55035
55036         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
55037
55038 2000-05-02  Paul Eggert  <eggert@twinsun.com>
55039
55040         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
55041         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
55042         compile-time test, rather than inspecting host and OS, to
55043         decide whether to define _LARGEFILE_SOURCE.
55044
55045 2000-05-01  Jim Meyering  <meyering@lucent.com>
55046
55047         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
55048
55049         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
55050         Based on a patch from Bruno Haible.
55051
55052 2000-05-01  Jim Meyering  <meyering@lucent.com>
55053
55054         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
55055
55056 2000-04-29  Jim Meyering  <meyering@lucent.com>
55057
55058         * lib/path-concat.c: Declare strdup only if it's not defined.
55059         * lib/canon-host.c: Likewise.
55060
55061 2000-04-28  Jim Meyering  <meyering@lucent.com>
55062
55063         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
55064         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
55065         is included first, then limits.h is included by locale.h by libintl.h.
55066         From John David Anglin.
55067
55068 2000-04-25  Jim Meyering  <meyering@lucent.com>
55069
55070         * lib/makepath.c (S_IRWXUGO): Define.
55071         (make_path): Always perform explicit chmod if MODE specifies any
55072         of the `special' permission bits.  Prompted by a bug report against
55073         install from Mate Wierdl and Joost van Baal.
55074
55075 2000-04-18  Jim Meyering  <meyering@lucent.com>
55076
55077         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
55078         (jm_PREREQ): Use it.
55079
55080 2000-04-18  Jim Meyering  <meyering@lucent.com>
55081
55082         * lib/README: New file.
55083
55084         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
55085         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
55086
55087 2000-04-17  Jim Meyering  <meyering@lucent.com>
55088
55089         Get it right :-)
55090         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
55091         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
55092         Suggestion from Akim Demaille.
55093
55094 2000-04-17  Jim Meyering  <meyering@lucent.com>
55095
55096         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
55097         the definition of it to rpl_strftime also defined-away the system's
55098         declaration.
55099
55100 2000-04-15  Jim Meyering  <meyering@lucent.com>
55101
55102         Use `C' to denote so-called `contiguous' files, the same way
55103         that tar does.
55104         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
55105         (ftypelet): Use S_ISCTG.
55106         From Michael Deutschmann.
55107
55108 2000-04-14  Jim Meyering  <meyering@lucent.com>
55109
55110         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
55111         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
55112         clobbered.
55113
55114 2000-04-14  Jim Meyering  <meyering@lucent.com>
55115
55116         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
55117
55118 2000-04-13  Jim Meyering  <meyering@lucent.com>
55119
55120         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
55121         AH_VERBATIM to insert required #ifndef into config.h.in.
55122         Suggestion from Akim Demaille.
55123
55124 2000-04-12  Jim Meyering  <meyering@lucent.com>
55125
55126         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
55127         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
55128         Christian Krackowizer.
55129
55130         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
55131         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
55132         (AC_SYS_LARGEFILE): Require.
55133         (AM_C_PROTOTYPES): Require.
55134
55135 2000-04-08  Jim Meyering  <meyering@lucent.com>
55136
55137         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
55138         names don't conflict.  Reported by Eli Zaretskii.
55139
55140 2000-04-07  Jim Meyering  <meyering@lucent.com>
55141
55142         * lib/putenv.c: Move inclusion of errno.h so it follows that of
55143         sys/types.h, to work around system header problems on AIX 3.2.5.
55144         From Bruno Haible.
55145
55146 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
55147
55148         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
55149         bug.  Deal with the different error behavior of Irix iconv.
55150
55151 2000-04-05  Paul Eggert  <eggert@twinsun.com>
55152
55153         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
55154         IRIX if the installer said otherwise.
55155
55156 2000-04-05  Jim Meyering  <meyering@lucent.com>
55157
55158         Portability tweaks required for ultrix4.3.
55159         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
55160         (jm_CHECK_DECLS): Add getutent to the list of functions.
55161         (_jm_DECL_HEADERS): Add utmpx.h.
55162         From John David Anglin.
55163
55164         * m4/strftime.m4: Back out the 2000-04-02 change.
55165         Instead of that change, simply undefine putenv in the test program.
55166
55167 2000-04-05  Jim Meyering  <meyering@lucent.com>
55168
55169         Portability tweaks required for ultrix4.3.
55170         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
55171         getutent.
55172         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
55173         * lib/canon-host.c: Declare strdup.
55174         * lib/path-concat.c: Likewise.
55175         From John David Anglin.
55176
55177 2000-04-04  Jim Meyering  <meyering@lucent.com>
55178
55179         Be more DOS 8.3-friendly.
55180         * lib/ref-add.sin: Renamed from ref-add.sed.in.
55181         * lib/ref-del.sin: Renamed from ref-del.sed.in.
55182         * lib/Makefile.am: Reflect renaming.
55183         Reported by Eli Zaretskii.
55184
55185         Use a temporary file name that won't clash with `charset.alias'
55186         in the DOS 8.3 name space.
55187         * lib/Makefile.am (charset_tmp): Define.
55188         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
55189         (uninstall-local): Likewise.
55190         Reported by Eli Zaretskii.
55191
55192 2000-04-03  Jim Meyering  <meyering@lucent.com>
55193
55194         * m4/gettext.m4: Fix typo in comment.
55195
55196         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
55197         textutils/configure.in).  Suggestion from Paul Eggert.
55198         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
55199
55200 2000-04-02  Paul Eggert  <eggert@twinsun.com>
55201
55202         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
55203         variable in the shell rather than using putenv, which isn't
55204         portable.  This avoids the configure-time inter-test dependency
55205         on the potentially-renamed putenv function.
55206
55207 2000-03-30  Paul Eggert  <eggert@twinsun.com>
55208
55209         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
55210         before checking struct stat.st_blksize, so that
55211         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
55212
55213 2000-03-29  Paul Eggert  <eggert@twinsun.com>
55214
55215         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
55216         since strftime.c uses HAVE_STRFTIME to decide whether to use
55217         the underlying strftime.
55218
55219 2000-03-29  Paul Eggert  <eggert@twinsun.com>
55220
55221         * lib/time/strftime.c (my_strftime): Make sure we call the system
55222         strftime, not ourselves, when invoking the underlying strftime.
55223
55224 2000-03-24  Jim Meyering  <meyering@lucent.com>
55225
55226         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
55227         (charset_alias): Define.
55228         (install-exec-local): Factor out common code.
55229         (uninstall-local): Split lines longer than 80.
55230         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
55231         (SUFFIXES): Define.
55232         (.sed.in.sed): New rule.  Don't redirect directly to $@.
55233         (CLEANFILES): Add ref-add.sed and ref-del.sed.
55234
55235 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
55236
55237         * lib/config.charset: Output a line containing "Packages using this
55238         file".
55239         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
55240         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
55241         ref-del.sed): New rules.
55242
55243 2000-03-17  Jim Meyering  <meyering@lucent.com>
55244
55245         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
55246         Otherwise, include <strings.h>
55247
55248 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
55249
55250         * lib/unicodeio.c (utf8_wctomb): New function.
55251         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
55252         format instead of in UCS-4 with platform dependent endianness.
55253
55254 2000-03-10  Jim Meyering  <meyering@lucent.com>
55255
55256         * m4/lib-check.m4: Look for getspnam in -lgen, too.
55257         From Marco Franzen.
55258
55259 2000-03-07  Paul Eggert  <eggert@twinsun.com>
55260
55261         * lib/savedir.c (savedir): Work even if directory size is
55262         negative; this can happen with some screwy NFS configurations.
55263
55264 2000-03-06  Jim Meyering  <meyering@lucent.com>
55265
55266         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
55267         if it's NULL (because we ran out of memory).  From Bruno Haible.
55268
55269 2000-03-05  Jim Meyering  <meyering@lucent.com>
55270
55271         * lib/localcharset.c ("path-concat.h"): Include.
55272         (get_charset_aliases): Use path_concat instead of ANSI string
55273         concatenation.
55274
55275         * lib/unicodeio.h (PARAMS): Define.
55276         Use it to guard prototype.
55277
55278 2000-03-04  Jim Meyering  <meyering@lucent.com>
55279
55280         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
55281         for lib/localcharset.c.
55282
55283 2000-03-04  Jim Meyering  <meyering@lucent.com>
55284
55285         * lib/Makefile.am (install-exec-local): Create $(libdir) before
55286         installing into it.
55287         (uninstall-local): Uncomment this rule so `make distcheck' works
55288         once again.
55289
55290         * lib/unicodeio.c (<errno.h>): Include it.
55291         (errno): Declare if not defined.
55292
55293         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
55294
55295         * lib/config.charset: New version, incorporating remarks from a linux
55296         i18n mailing list.  From Bruno Haible.
55297
55298 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
55299
55300         * m4/codeset.m4: New file.
55301         * m4/iconv.m4: New file.
55302         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
55303
55304 2000-03-03  Jim Meyering  <meyering@lucent.com>
55305
55306         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
55307
55308 2000-03-02  Jim Meyering  <meyering@lucent.com>
55309
55310         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
55311         the messages come out on separate lines.
55312
55313         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
55314         rather than jm_CHECK_DECLARATIONS.
55315         * m4/decl.m4: Remove now-unused file.
55316
55317         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
55318         geteuid.
55319
55320 2000-03-02  Jim Meyering  <meyering@lucent.com>
55321
55322         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
55323
55324 2000-03-01  Jim Meyering  <meyering@lucent.com>
55325
55326         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
55327         * lib/unicodeio.c: Likewise.
55328
55329 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
55330
55331         * lib/config.charset: New file.
55332         * lib/localcharset.c: New file.
55333         * lib/unicodeio.h, lib/unicodeio.c: New files.
55334         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
55335         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
55336         (noinst_HEADERS): Add unicodeio.h.
55337         (all-local, install-exec-local, charset.alias): New targets.
55338
55339 2000-02-28  Paul Eggert  <eggert@twinsun.com>
55340
55341         * lib/quotearg.c (ALERT_CHAR): New macro.
55342         (quotearg_buffer_restyled): Use it.
55343
55344 2000-02-27  Jim Meyering  <meyering@lucent.com>
55345
55346         * m4/check-decl.m4: Add getenv to the list.
55347
55348 2000-02-27  Jim Meyering  <meyering@lucent.com>
55349
55350         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
55351         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
55352
55353         * lib/backupfile.c: Guard inclusion of stdlib.h with
55354         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
55355         Declare malloc if needed.
55356
55357         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
55358         `#ifndef HAVE_DECL..'
55359         now that autoconf always defines the HAVE_DECL_ symbols.
55360         * lib/human.c: Likewise.
55361         * lib/same.c: Likewise.
55362         * lib/strtoumax.c: Likewise.
55363
55364         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
55365         declaration check was not run.
55366         * lib/hash.c: Likewise.
55367         * lib/human.c: Likewise.
55368         * lib/same.c: Likewise.
55369         * lib/strtoumax.c: Likewise.
55370
55371         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
55372         `.', then first look up the entire `.'-containing string as a login
55373         name.
55374
55375 2000-02-23  Jim Meyering  <meyering@lucent.com>
55376
55377         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
55378         in place of my hack.
55379
55380 2000-02-18  Paul Eggert  <eggert@twinsun.com>
55381
55382         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
55383         (textint): New typedef.
55384         (parser_control): Member year changed from int to textint.
55385         All uses changed.
55386         (YYSTYPE): Removed; replaced by %union with int and textint members.
55387         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
55388         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
55389         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
55390         (tSNUMBER, tUNUMBER): Now of type <textintval>.
55391         (date, number, to_year): Use width of number in digits, not its value,
55392         to determine whether it's a 2-digit year, or a 2-digit time.
55393         (yylex): Store number of digits of numeric tokens.
55394         Reported by John Kendall.
55395
55396         (parser_control): Changed from struct parser_control to typedef (for
55397         consistency).  All uses changed.
55398
55399         (tID): Removed; not used.
55400         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
55401
55402 2000-02-14  Paul Eggert  <eggert@twinsun.com>
55403
55404         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
55405         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
55406
55407 2000-02-12  Jim Meyering  <meyering@lucent.com>
55408
55409         * lib/userspec.c (ISDIGIT): Define it.
55410         (isdigit): Remove definition.
55411         (is_number): Use ISDIGIT, not isdigit.
55412         <libintl.h>: Include.
55413         (_ and N_): Define.
55414         (parse_user_spec): Mark translatable strings.
55415
55416 2000-02-10  Jim Meyering  <meyering@lucent.com>
55417
55418         With these changes, nanosleep.[ch] are finally enough like the other
55419         lib/* replacement files to compile on a few more losing systems.
55420
55421         * lib/nanosleep.h: Don't include config.h.
55422         Remove prototype from declaration of nanosleep.
55423         (PARAMS): Remove now-unneeded definition.
55424         * lib/nanosleep.c: #undef nanosleep.
55425         (rpl_nanosleep): Rename from nanosleep.
55426
55427 2000-02-10  Jim Meyering  <meyering@lucent.com>
55428
55429         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
55430         gnu_nanosleep to rpl_nanosleep.
55431
55432 2000-02-09  Jim Meyering  <meyering@lucent.com>
55433
55434         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
55435         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
55436
55437 2000-02-08  Akim Demaille  <akim@epita.fr>
55438
55439         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
55440         `[' and `]' and remove uses of `changequote'.
55441         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
55442         (AC_SYS_LARGEFILE): Likewise.
55443         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
55444         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
55445         of changequote.
55446         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
55447         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
55448         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
55449         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
55450
55451 2000-02-05  Jim Meyering  <meyering@lucent.com>
55452
55453         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
55454         Remove explicit use of AC_HEADER_TIME.  It is required by
55455         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
55456         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
55457         in autoconf whereby the expansion of the latter ended up preceding
55458         the expansion of its prerequisite, AC_HEADER_TIME.
55459         Reported by Volker Borchert.
55460
55461 2000-02-03  Jim Meyering  <meyering@lucent.com>
55462
55463         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
55464
55465 2000-02-03  Jim Meyering  <meyering@lucent.com>
55466
55467         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
55468         rather than with `#if HAVE_UTMPNAME'.
55469
55470 2000-02-02  Jim Meyering  <meyering@lucent.com>
55471
55472         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
55473         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
55474         Reported by Eli Zaretskii.
55475
55476 2000-02-01  Jim Meyering  <meyering@lucent.com>
55477
55478         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
55479
55480 2000-01-31  Jim Meyering  <meyering@lucent.com>
55481
55482         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
55483         functions.  Add the time.h and sys/time.h headers along with the
55484         AC_REQUIRE'ment of AC_HEADER_TIME.
55485
55486 2000-01-31  Jim Meyering  <meyering@lucent.com>
55487
55488         * lib/nanosleep.h (nanosleep): Guard declaration with
55489         `#if ! HAVE_DECL_NANOSLEEP'.
55490         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
55491         the declaration in that vendor's sys/timers.h.
55492         Reported by Christian Krackowizer.
55493
55494         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
55495         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
55496         (ISPRINT): Likewise.
55497         Reported by Tom Tromey.
55498
55499 2000-01-30  Jim Meyering  <meyering@lucent.com>
55500
55501         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
55502
55503         * m4/prereq.m4 (utmp_includes): Define.
55504         Check for ut_user and ut_name members in both struct utmpx
55505         and struct utmp.
55506
55507 2000-01-30  Jim Meyering  <meyering@lucent.com>
55508
55509         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
55510         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
55511         header files where only utmpx.ut_user is declared.
55512
55513         * lib/readutmp.h (UT_USER): Define.
55514
55515 2000-01-29  Jim Meyering  <meyering@lucent.com>
55516
55517         * m4/lib-check.m4: New file containing library-related checks from
55518         fileutils and sh-utils (textutils had none).
55519
55520 2000-01-28  Jim Meyering  <meyering@lucent.com>
55521
55522         * m4/perl.m4: Change format of warning message to look more like that
55523         from the missing script.  Suggestion from François Pinard.
55524
55525 2000-01-25  Jim Meyering  <meyering@lucent.com>
55526
55527         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
55528         well as time.h in the compile check.
55529         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
55530         Fix typo in cross-compiling case: s/yes/no/.
55531
55532 2000-01-23  Jim Meyering  <meyering@lucent.com>
55533
55534         * m4/jm-macros.m4: Move df-related tests here from
55535         fileutils/configure.in
55536
55537         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
55538         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
55539
55540         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
55541         s/space/ac_fsusage_space/.
55542         (jm_FILE_SYSTEM_USAGE): Take two parameters.
55543
55544         * m4/ftruncate.m4: New file (derived from part of
55545         fileutils/configure.in).
55546         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
55547         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
55548
55549         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
55550         AC_SUBST these here, rather than just in sh-util/configure.in, so
55551         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
55552         all the same.
55553         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
55554         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
55555         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
55556         (AC_SUBST(POW_LIBM)): Likewise.
55557         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
55558
55559 2000-01-23  Jim Meyering  <meyering@lucent.com>
55560
55561         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
55562         obstack.c.
55563
55564 2000-01-22  Jim Meyering  <meyering@lucent.com>
55565
55566         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
55567
55568         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
55569
55570         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
55571         configure.in
55572         (AC_CHECK_HEADERS): Likewise for sh-utils.
55573         (AC_CHECK_HEADERS): Likewise for textutils.
55574         Merge the three lists of headers.
55575
55576         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
55577         from fileutils' configure.in.
55578
55579         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
55580         code. Moved tests into their own function (_jm_DECL_HEADERS) in
55581         check-decl.m4.
55582
55583         * m4/check-decl.m4: Use #if rather than #ifdef.
55584         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
55585         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
55586         (_jm_DECL_HEADERS): Define new function.
55587         (jm_CHECK_DECLARATIONS): Require it.
55588
55589 2000-01-22  Jim Meyering  <meyering@lucent.com>
55590
55591         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
55592         [! HAVE_DECL_STRTOULL]: Declare strtoull.
55593         Required for some AIX systems.  Reported by Christian Krackowizer.
55594         [TESTING] (main): New function.
55595
55596         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
55597         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
55598         letters.
55599
55600         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
55601         iswprint.
55602
55603         * lib/strverscmp.c (ISDIGIT): Define.
55604         (strverscmp): Use ISDIGIT, not isdigit.
55605
55606 2000-01-19  Jim Meyering  <meyering@lucent.com>
55607
55608         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
55609         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
55610         defines `struct timespec' in <sys/time.h>
55611
55612         * m4/c-bs-a.m4: Remove uses of changequote altogether.
55613         Thanks to Akim for explaining.
55614
55615 2000-01-17  Paul Eggert  <eggert@twinsun.com>
55616
55617         * lib/nanosleep.c (nanosleep):
55618         Don't use SA_INTERRUPT to decide whether to call sigaction, as
55619         POSIX.1 doesn't require SA_INTERRUPT and some systems
55620         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
55621         it's been part of POSIX.1 since day 1 (in 1988).
55622
55623 2000-01-17  Jim Meyering  <meyering@lucent.com>
55624
55625         * lib/interlock: Remove unused file.  Reported by François Pinard.
55626
55627 2000-01-16  Paul Eggert  <eggert@twinsun.com>
55628
55629         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
55630         alert, backslash, formfeed, and vertical tab unnecessarily in
55631         shell quoting style.
55632
55633 2000-01-16  Jim Meyering  <meyering@lucent.com>
55634
55635         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
55636         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
55637         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
55638         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
55639
55640 2000-01-16  Jim Meyering  <meyering@lucent.com>
55641
55642         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
55643         because the latter didn't work.
55644
55645 2000-01-15  Jim Meyering  <meyering@lucent.com>
55646
55647         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
55648         (AC_REPLACE_FUNCS): Add memcpy and memset.
55649         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
55650         Add strpbrk.
55651         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
55652
55653 2000-01-12  Jim Meyering  <meyering@lucent.com>
55654
55655         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
55656         (jm_PREREQ): Use it.
55657         (jm_PREREQ_READUTMP): New macro.
55658         (jm_PREREQ): Use it.
55659
55660 2000-01-11  Paul Eggert  <eggert@twinsun.com>
55661
55662         Quote multibyte characters correctly.
55663         * m4/c-bs-a.m4: New file.
55664         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
55665         (jm_PREREQ): Use it.
55666
55667 2000-01-11  Paul Eggert  <eggert@twinsun.com>
55668
55669         * m4/uintmax_t.m4: Port to autoconf 2.13.
55670
55671 2000-01-08  Jim Meyering  <meyering@ascend.com>
55672
55673         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
55674         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
55675
55676 2000-01-04  Jim Meyering  <meyering@ascend.com>
55677
55678         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
55679         jm_STRUCT_DIRENT_D_TYPE.
55680         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
55681         jm_STRUCT_DIRENT_D_INO.
55682         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
55683         jm_STRUCT_UTIMBUF.
55684         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
55685         renamings.
55686         * m4/utime.m4: Likewise.
55687
55688         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
55689         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
55690
55691 2000-01-03  Paul Eggert  <eggert@twinsun.com>
55692
55693         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
55694         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
55695
55696 2000-01-02  Jim Meyering  <meyering@ascend.com>
55697
55698         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
55699         remember if this is necessary.
55700
55701 1999-12-26  Jim Meyering  <meyering@ascend.com>
55702
55703         * m4/jm-macros.m4: Use it here.
55704         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
55705
55706 1999-12-23  Jim Meyering  <meyering@ascend.com>
55707
55708         * m4/jm-macros.m4: Check for clock_gettime (moved from
55709         fileutils/configure.in)
55710         Check for gettimeofday.
55711
55712 1999-12-20  Jim Meyering  <meyering@ascend.com>
55713
55714         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
55715         autoconf-2.14a-1999-12-20.
55716
55717 1999-12-19  Jim Meyering  <meyering@ascend.com>
55718
55719         * m4/lstat-slash.m4: New file.
55720         * m4/jm-macros.m4: Use the new macro:
55721         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
55722
55723 1999-12-07  Jim Meyering  <meyering@ascend.com>
55724
55725         * m4/perl.m4: Require that File::Compare be available, too.
55726         Too many systems seem to lack it.
55727
55728         * m4/strftime.m4: Add checks for most of the cpp macros tested in
55729         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
55730
55731 1999-11-18  Paul Eggert  <eggert@twinsun.com>
55732
55733         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
55734         problem with the QNX 4.25 shell, which doesn't propagate exit
55735         status of failed commands inside shell assignments.
55736
55737 1999-11-17  Jim Meyering  <meyering@ascend.com>
55738
55739         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
55740
55741 1999-11-07  Jim Meyering  <meyering@ascend.com>
55742
55743         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
55744
55745 1999-11-06  Jim Meyering  <meyering@ascend.com>
55746
55747         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
55748         * m4/jm-macros.m4 (jm_MACROS): Use it here.
55749
55750 1999-11-05  Jim Meyering  <meyering@ascend.com>
55751
55752         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
55753         configure.in of textutils, fileutils, and sh-utils into this one
55754         (shared between those packages) file.
55755         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
55756         AC_STRUCT_ST_BLKSIZE.
55757
55758 1999-11-03  Jim Meyering  <meyering@ascend.com>
55759
55760         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
55761         of AC_CHECK_TYPE checks includes unistd.h.
55762         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
55763         Suggestion from Akim Demaille.
55764
55765 1999-10-30  Jim Meyering  <meyering@ascend.com>
55766
55767         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
55768         m4-quoted string.
55769         * m4/ls-mntd-fs.m4: Likewise.
55770         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
55771         * m4/jm-winsz1.m4: Likewise.
55772
55773         * m4/const.m4: Remove file, since the fix made it into the experimental
55774         version of autoconf.
55775         * m4/mktime.m4: Likewise.
55776
55777         * m4/check-type.m4: Remove file, now that the latest version of
55778         AC_CHECK_TYPE takes a third arg to specify additional #includes.
55779
55780         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
55781         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
55782         AC_CHECK_TYPE.
55783
55784 1999-10-04  Jim Meyering  <meyering@ascend.com>
55785
55786         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
55787
55788 1999-09-22  Paul Eggert  <eggert@twinsun.com>
55789
55790         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
55791         2.95.1 bug with HP-UX 10.20.
55792
55793 1999-09-17  Jim Meyering  <meyering@ascend.com>
55794
55795         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
55796         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
55797         due to missing strdup (against sh-utils-2.0).
55798
55799 1999-08-29  Jim Meyering  <meyering@ascend.com>
55800
55801         * m4/jm-macros.m4: Require jm_BISON.
55802         * m4/bison.m4: New file.
55803
55804 1999-08-17  Paul Eggert  <eggert@twinsun.com>
55805
55806         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
55807         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
55808
55809 1999-08-05  Jim Meyering  <meyering@ascend.com>
55810
55811         * m4/getline.m4: Rename test file from conftestdata to conftest.data
55812         to avoid conflicts with `conftest' on 8+3 filesystems.
55813         Suggestion from Eli Zaretskii.
55814
55815 1999-08-04  Jim Meyering  <meyering@ascend.com>
55816
55817         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
55818         fileutils and sh-utils (textutils's getline test was inadequate).
55819         (AM_FUNC_GETLINE): Run this test.
55820         (AC_CHECK_FUNCS): Check for getdelim.
55821         Reported by Bob Proulx.
55822
55823 1999-08-02  Jim Meyering  <meyering@ascend.com>
55824
55825         * m4/jm-macros.m4: Add a comment.
55826
55827 1999-08-01  Paul Eggert  <eggert@twinsun.com>
55828
55829         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
55830         <inttypes.h> defines strtoumax as a macro (and not as a
55831         function).
55832
55833 1999-08-01  Paul Eggert  <eggert@twinsun.com>
55834
55835         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
55836         that we can shift, multiply and divide unsigned long long
55837         values; Ultrix cc can't do it.
55838
55839 1999-08-01  Paul Eggert  <eggert@twinsun.com>
55840
55841         * m4/mktime.m4: New file, which is a preview of what should appear
55842         in the next public autoconf release.
55843
55844 1999-08-01  Paul Eggert  <eggert@twinsun.com>
55845
55846         * m4/lfs.m4: Remove this file.
55847         * m4/largefile.m4: New file.  It contains the old contents of
55848         lfs.m4, except that all names with prefix AC_LFS have been
55849         changed to use the prefix AC_SYS_LARGEFILE instead, to be
55850         compatible with future autoconf versions.  Also, some minor m4
55851         quoting problems have been fixed.
55852
55853 1999-08-01  Paul Eggert  <eggert@twinsun.com>
55854
55855         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
55856         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
55857         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
55858         and simplify the shell code.
55859
55860 1999-08-01  Jim Meyering  <meyering@ascend.com>
55861
55862         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
55863         m4.
55864
55865 1999-07-20  Jim Meyering  <meyering@ascend.com>
55866
55867         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
55868
55869 1999-07-15  Jim Meyering  <meyering@ascend.com>
55870
55871         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
55872
55873 1999-05-22  Jim Meyering  <meyering@ascend.com>
55874
55875         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
55876
55877 1999-05-20  Jim Meyering  <meyering@ascend.com>
55878
55879         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
55880         Add a colon after each `then' in case $4 is empty.
55881
55882 1999-05-16  Jim Meyering  <meyering@ascend.com>
55883
55884         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
55885
55886 1999-05-10  Jim Meyering  <meyering@ascend.com>
55887
55888         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
55889
55890         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
55891         AC_FUNC_MKTIME.
55892
55893 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
55894
55895         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
55896
55897 1999-05-04  Paul Eggert  <eggert@twinsun.com>
55898
55899         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
55900         not CPPFLAGS, so that linking works correctly in IRIX.
55901
55902 1999-04-30  Paul Eggert  <eggert@twinsun.com>
55903
55904         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
55905
55906 1999-04-20  Paul Eggert  <eggert@twinsun.com>
55907
55908         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
55909         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
55910         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
55911         jm_AC_TYPE_UNSIGNED_LONG_LONG.
55912         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
55913
55914         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
55915
55916 1999-04-20  Jim Meyering  <meyering@ascend.com>
55917
55918         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
55919         AC_REPLACE xstroull if necessary.  From Paul Eggert.
55920         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
55921
55922 1999-04-18  Jim Meyering  <meyering@ascend.com>
55923
55924         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
55925         * m4/jm-macros.m4: Use it.
55926
55927 1999-04-06  Jim Meyering  <meyering@ascend.com>
55928
55929         * m4/strftime.m4: Remove test for %f.
55930
55931 1999-03-29  Jim Meyering  <meyering@ascend.com>
55932
55933         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
55934         superset of the AC_TYPE_* checks in the textutils, fileutils,
55935         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
55936         AC_TYPE_PID_T.
55937
55938 1999-03-28  Jim Meyering  <meyering@ascend.com>
55939
55940         * m4/jm-macros.m4: Define GNU_PACKAGE here.
55941         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
55942         replaced e.g., in the *.sh files of the sh-utils.
55943
55944 1999-03-20  Jim Meyering  <meyering@ascend.com>
55945
55946         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
55947         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
55948         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
55949
55950 1999-03-19  Jim Meyering  <meyering@ascend.com>
55951
55952         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
55953
55954 1999-03-12  Jim Meyering  <meyering@ascend.com>
55955
55956         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
55957
55958 1999-03-07  Jim Meyering  <meyering@ascend.com>
55959
55960         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
55961         declared.
55962
55963 1999-02-17  Jim Meyering  <meyering@ascend.com>
55964
55965         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
55966         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
55967
55968 1999-02-07  Jim Meyering  <meyering@ascend.com>
55969
55970         * m4/group-member.m4: New file -- extracted from sh-utils'
55971         configure.in.
55972
55973         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
55974         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
55975
55976 1999-02-06  Jim Meyering  <meyering@ascend.com>
55977
55978         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
55979         * m4/fnmatch.m4: Likewise.
55980         * m4/getgroups.m4: Likewise.
55981         * m4/lstat.m4: Likewise.
55982         * m4/malloc.m4: Likewise.
55983         * m4/putenv.m4: Likewise.
55984         * m4/realloc.m4: Likewise.
55985         * m4/regex.m4: Likewise.
55986         * m4/stat.m4: Likewise.
55987         * m4/strftime.m4: Likewise.
55988         Suggestion from Alain Magloire.
55989
55990         * m4/chown.m4: Use `.$ac_objext', not `.o'.
55991         * m4/fnmatch.m4: Likewise.
55992         * m4/getgroups.m4: Likewise.
55993         * m4/getline.m4: Likewise.
55994         * m4/lstat.m4: Likewise.
55995         * m4/malloc.m4: Likewise.
55996         * m4/memcmp.m4: Likewise.
55997         * m4/putenv.m4: Likewise.
55998         * m4/realloc.m4: Likewise.
55999         * m4/regex.m4: Likewise.
56000         * m4/stat.m4: Likewise.
56001         * m4/strftime.m4: Likewise.
56002         Suggestion from Alain Magloire.
56003
56004         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
56005         an argument.
56006
56007         * m4/regex.m4: Add a run-time Test for proper operation of
56008         re_compile_pattern.
56009
56010 1999-01-31  Jim Meyering  <meyering@ascend.com>
56011
56012         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
56013
56014 1999-01-30  Jim Meyering  <meyering@ascend.com>
56015
56016         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
56017
56018         * m4/jm-mktime.m4: Make this a wrapper around the official
56019         AM_FUNC_MKTIME rather than my private copy, now that the official one
56020         is up to date.
56021         * m4/mktime.m4: Remove file.
56022
56023         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
56024         * m4/uptime.m4: Likewise.
56025         * m4/uintmax_t.m4: Likewise.
56026
56027 1999-01-28  Jim Meyering  <meyering@ascend.com>
56028
56029         * m4/jm-macros.m4: Use jm_AFS.
56030         * m4/afs.m4: New file (from fileutils' configure.in).
56031
56032         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
56033         * m4/chown.m4: Likewise.
56034         * m4/d-ino.m4: Likewise.
56035         * m4/d-type.m4: Likewise.
56036         * m4/fnmatch.m4: Likewise.
56037         * m4/getgroups.m4: Likewise.
56038         * m4/gettext.m4: Likewise.
56039         * m4/jm-mktime.m4: Likewise.
56040         * m4/jm-winsz2.m4: Likewise.
56041         * m4/lcmessage.m4: Likewise.
56042         * m4/ls-mntd-fs.m4: Likewise.
56043         * m4/malloc.m4: Likewise.
56044         * m4/memcmp.m4: Likewise.
56045         * m4/putenv.m4: Likewise.
56046         * m4/realloc.m4: Likewise.
56047         * m4/st_mtim.m4: Likewise.
56048         * m4/strftime.m4: Likewise.
56049
56050 1999-01-16  Jim Meyering  <meyering@ascend.com>
56051
56052         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
56053         (ARGMATCH_DIE_DECL): Define.
56054
56055 1999-01-12  Jim Meyering  <meyering@ascend.com>
56056
56057         * m4/Makefile.am.in: Rewrite to avoid using fmt.
56058         Reported by Lars Hecking.
56059
56060 1999-01-10  Jim Meyering  <meyering@ascend.com>
56061
56062         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
56063         gross kludge.
56064         * m4/inttypes_h.m4: Likewise.
56065         * m4/lstat.m4: Likewise.
56066         * m4/malloc.m4: Likewise.
56067         * m4/readdir.m4: Likewise.
56068         * m4/realloc.m4: Likewise.
56069         * m4/st_dm_mode.m4: Likewise.
56070         * m4/stat.m4: Likewise.
56071         * m4/utimbuf.m4: Likewise.
56072         * m4/utimes.m4: Likewise.
56073
56074         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
56075         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
56076         comments in config.h.in are meaningful.
56077
56078         * m4/jm-macros.m4: Require autoconf-2.13 here.
56079
56080         * m4/regex.m4: By default, don't use the included regex.c on systems
56081         with glibc 2.  Suggestion from Uli Drepper.
56082
56083 1999-01-02  Jim Meyering  <meyering@ascend.com>
56084
56085         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
56086
56087 1998-12-18  Jim Meyering  <meyering@ascend.com>
56088
56089         * m4/Makefile.am.in (Makefile.am): Simplify rule.
56090         Based on a suggestion from Lars Hecking.
56091
56092 1998-11-16  Paul Eggert  <eggert@twinsun.com>
56093
56094         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
56095
56096 1998-11-16  Jim Meyering  <meyering@ascend.com>
56097
56098         * m4/lfs.m4: Double-quote the `uname...` expression.
56099
56100 1998-11-14  Jim Meyering  <meyering@ascend.com>
56101
56102         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
56103         * m4/stat.m4: Likewise.
56104
56105 1998-11-03  Jim Meyering  <meyering@ascend.com>
56106
56107         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
56108         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
56109
56110 1998-10-18  Jim Meyering  <meyering@ascend.com>
56111
56112         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
56113
56114 1998-10-17  Jim Meyering  <meyering@ascend.com>
56115
56116         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
56117         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
56118         calls for those previously hard-coded headers.  Instead, take a new
56119         parameter.
56120         (jm_CHECK_DECLARATIONS): Reflect interface change.
56121         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
56122         (jm_CHECK_DECL_LOCALTIME_R): New macro.
56123
56124         * m4/mktime.m4: Test for spring-forward gap before long-running test.
56125
56126 1998-10-14  Jim Meyering  <meyering@ascend.com>
56127
56128         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
56129         instead of "TZ=America/Vancouver".  From Paul Eggert.
56130
56131 1998-10-11  Jim Meyering  <meyering@ascend.com>
56132
56133         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
56134         This adds a test for a recently added compatibility fix for mktime.c.
56135         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
56136
56137 1998-09-27  Jim Meyering  <meyering@ascend.com>
56138
56139         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
56140
56141         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
56142         ../configure.in, including a change from Gordon Matzigkeit to allow
56143         cross-compiling for the Hurd.
56144
56145         * m4/glibc.m4: New file/macro to test for the GNU C Library
56146         versions 1 and 2.  From Gordon Matzigkeit.
56147         Indent.
56148
56149 1998-09-21  Jim Meyering  <meyering@ascend.com>
56150
56151         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
56152
56153 1998-08-18  Paul Eggert  <eggert@twinsun.com>
56154
56155         Port nanosecond-resolution times to UnixWare 2.1.2 and
56156         pedantic Solaris 2.6.
56157
56158         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
56159         AC_STRUCT_ST_MTIM.
56160         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
56161         Generate name of ns member, instead of just 1 or undef.
56162         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
56163
56164 1998-08-15  Jim Meyering  <meyering@ascend.com>
56165
56166         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
56167         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
56168         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
56169         instead of jm_TYPE_SSIZE_T.
56170
56171 1998-08-12  Jim Meyering  <meyering@ascend.com>
56172
56173         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
56174
56175 1998-08-02  Jim Meyering  <meyering@ascend.com>
56176
56177         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
56178         in acconfig.h manually.
56179
56180 1998-07-31  Paul Eggert  <eggert@twinsun.com>
56181
56182         * m4/st_mtim.m4: New file.
56183
56184 1998-07-28  Jim Meyering  <meyering@ascend.com>
56185
56186         * m4/utimes.m4: Undef stat.
56187
56188 1998-07-25  Jim Meyering  <meyering@ascend.com>
56189
56190         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
56191         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
56192
56193 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
56194
56195         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
56196         uid and gid actually remain unchanged.
56197
56198 1998-07-07  Jim Meyering  <meyering@ascend.com>
56199
56200         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
56201
56202 1998-07-04  Jim Meyering  <meyering@ascend.com>
56203
56204         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
56205         to prove that this macro can be used in packages without regex.c.
56206
56207 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
56208
56209         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
56210         is to be used.
56211
56212 1998-07-03  Jim Meyering  <meyering@ascend.com>
56213
56214         * m4/gettext.m4: Add -lintl if it's found to be necessary.
56215
56216         * m4/gettext.m4: New file -- from gettext-0.10.35.
56217         * m4/lcmessage.m4: Likewise.
56218         * m4/progtest.m4: Likewise.
56219
56220         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
56221         * m4/jm-macros.m4: Require the new macro.
56222
56223 1998-06-29  Jim Meyering  <meyering@ascend.com>
56224
56225         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
56226         for the definition of NGROUPS (used in a system header included
56227         by sys/mount.h).
56228
56229 1998-06-28  Jim Meyering  <meyering@ascend.com>
56230
56231         * m4/ls-mntd-fs.m4: New file.
56232         * m4/fstypename.m4: New file.
56233
56234         * m4/jm-macros.m4: Require the new macro.
56235         * m4/jm-glibc-io.m4: New file.
56236
56237 1998-05-19  Jim Meyering  <meyering@ascend.com>
56238
56239         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
56240         * m4/lchown.m4: New file.
56241
56242         * m4/Makefile.am.in: New file.
56243         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
56244
56245 1998-05-14  Jim Meyering  <meyering@ascend.com>
56246
56247         * m4/Makefile.am (EXTRA_DIST): Add them.
56248         * m4/jm-macros.m4: New file.
56249         * m4/utimbuf.m4: New file.
56250
56251 1998-05-12  Jim Meyering  <meyering@ascend.com>
56252
56253         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
56254
56255 1998-05-11  Jim Meyering  <meyering@ascend.com>
56256
56257         * m4/isc-posix.m4: New file.
56258
56259 1998-05-10  Jim Meyering  <meyering@ascend.com>
56260
56261         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
56262
56263 1998-05-09  Jim Meyering  <meyering@ascend.com>
56264
56265         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
56266         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
56267         with automake.
56268
56269         * m4/ssize_t.m4: New file.
56270         * m4/mktime.m4: Remove file -- the new automake has this now.
56271
56272 1998-04-26  Jim Meyering  <meyering@ascend.com>
56273
56274         * m4/assert.m4: New file.
56275         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
56276
56277 1998-04-05  Jim Meyering  <meyering@ascend.com>
56278
56279         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
56280         (jm_PREREQ): Use it here.
56281
56282 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
56283
56284         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
56285         in acconfig.h.
56286
56287 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
56288
56289         * m4/prereq.m4: New file.
56290         * m4/error.m4: New file.
56291         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
56292
56293 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
56294
56295         * m4/getline.m4: Don't set am_cv_func_working_getline before the
56296         cache-check for the same variable -- that defeated the purpose of
56297         the test; the test program was never run.  This was a problem only
56298         on systems with losing getline functions -- HP-UX 10.20 is one.
56299         Reported by Bjorn Helgaas.
56300
56301 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
56302
56303         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
56304
56305 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
56306
56307         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
56308
56309         * m4/const.m4: New file.  Use an initializer in this declaration
56310         typedef int charset[2]; const charset x;
56311         Reported by Bob Glickstein.
56312
56313 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
56314
56315         * m4/chown.m4: Fix reversed types on -1 args to chown.
56316         From Kaveh Ghazi.
56317
56318 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
56319
56320         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
56321         Add lseek and memchr.
56322
56323         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
56324         T.E.Dickey <dickey@clark.net> said that some older preprocessors
56325         have a 20-character limit on names.
56326
56327 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
56328
56329         * m4/inttypes_h.m4: New file.
56330         * m4/uintmax_t.m4: New file.
56331         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
56332
56333
56334         -----
56335
56336         Local Variables:
56337         coding: utf-8
56338         End:
56339
56340         Copyright (C) 1997-2009 Free Software Foundation, Inc.
56341
56342         Copying and distribution of this file, with or without
56343         modification, are permitted provided the copyright notice
56344         and this notice are preserved.